File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0001

     1                          ;************************************************************************
     2                          ;*									*
     3                          ;*	title name	: "yossy tool"					*
     4                          ;*	proccess	: ram name					*
     5                          ;*	file name	: yst_ram					*
     6                          ;*									*
     7                          ;************************************************************************
     8                          ;
     9                          ;
    10                          		SALL
    11                          ;
    12                          		include		../../../JPN/union/ys_ram.asm
    13                          		include		../../../JPN/union/ys_mram.asm
    14                          ;
    15                          		XALL
    16                          ;
    17                          ;
    18                          ;========================================================================
    19                          ;=		!=0 page RAM						=
    20                          ;========================================================================
    21                          ;
    22                          ;--------------------------------------------------------------------
    23                          ;		save RAM area					    -
    24                          ;--------------------------------------------------------------------
    25          000173          SAVECK0		EQU	NMICONT+2	;save RAM check data.1 [35]
    26                          ;
    27          000174          SAVERM		EQU	SAVECK0+1
    28                          ;;;;K;;;;;
    29                          ;;;;K;;;;;-------------- file name buffer --------------------------------
    30                          ;;;;K;;;;FLNMWK		EQU	TIMERNO+2	; FILE NAME WORK
    31                          ;;;;K;;;;NMPTWK		EQU	FLNMWK+8	; FILE NAME POINTER WORK
    32                          ;
    33                          ;
    34          000196          ENBGFLG		EQU	TIMERNO+2
    35                          ;
    36                          ;
    37                          ;-------------- ƒvƒŒƒCƒ„[oŒ»ˆÊ’u ------------------------------
    38                          ;;;;K;;;;T_PLXPSL	EQU	NMPTWK+2
    39          000198          T_PLXPSL	EQU	ENBGFLG+2
    40          00019A          T_PLYPSL	EQU	T_PLXPSL+2
    41                          ;
    42                          ;-------------- ‰ŠúƒZƒbƒg‚a‚f‚Pƒ^ƒCƒv --------------------------
    43          00019C          T_BG1TYP	EQU	T_PLYPSL+2
    44          00019E          T_BG1COL	EQU	T_BG1TYP+2
    45                          ;
    46          0001A0          T_TIMER		EQU	T_BG1COL+2
    47                          ;
    48          0001A2          SAVERME		EQU	T_TIMER+2
    49          00002E          SAVERMN		EQU	SAVERME-SAVERM
    50                          ;
    51          0001A2          SAVECK1		EQU	SAVERME		;save RAM check data.2 [53]
    52                          ;
    53                          ;
    54                          ;--------------------------------------------------------------------
    55                          ;		use OAM name set				    -
    56                          ;--------------------------------------------------------------------
    57          006A00          ARROAM		EQU	OAM		; arrow OAM-0
    58          006A04          AR1OAM		EQU	OAM+4*1		;	   -1
    59          006A08          LASOAM		EQU	OAM+4*2		; last input data pos
    60          006A40          XYPOAM		EQU	OAM+4*16	; x,y-position OAM
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0002

    61          006A60          SMDOAM		EQU	XYPOAM+4*8	; set mode OAM
    62          006AAC          UTNOAM		EQU	SMDOAM+4*19	; unit no. OAM
    63                          ;;;;K;;;;UTNOAM		EQU	SMDOAM+4*15	; unit no. OAM
    64          006AB4          PTDOAM		EQU	UTNOAM+4*2	; PT & unit no. OAM
    65          006B18          MODOAM		EQU	PTDOAM+4*25	; mode OAM
    66          006B30          CHCOAM		EQU	MODOAM+4*6
    67                          ;
    68          006B00          DWOAM		EQU	OAM+100H	; window OAM
    69                          ;
    70          006B40          FLOAM		EQU	OAM+140H	; ƒtƒ@ƒCƒ‹–¼
    71                          ;
    72                          ;
    73                          ;;;;;;;;;; Save,Load mode
    74          006B00          CUROAM		EQU	OAM+100H	; cursol OAM
    75          006B04          NAMOAM		EQU	OAM+104H	; name OAM
    76                          ;
    77                          ;
    78                          ;--------------------------------------------------------------------
    79                          ;		tool RAM area					    -
    80                          ;--------------------------------------------------------------------
    81          0009C6          TOOL_RAM_START	EQU	STATIC1
    82                          ;
    83                          ;-------------- mouse data ------------------------------------------
    84          0009C6          MOUSEAS		EQU	STATIC1		;MOUSE A KEY
    85          0009C7          MOUSEAX		EQU	MOUSEAS+1	;MOUSE A X
    86          0009C8          MOUSEAY		EQU	MOUSEAX+1	;MOUSE A Y
    87          0009C9          MOUSEBS		EQU	MOUSEAY+1	;MOUSE B KEY
    88          0009CA          MOUSEBX		EQU	MOUSEBS+1	;MOUSE B X
    89          0009CB          MOUSEBY		EQU	MOUSEBX+1	;MOUSE B Y
    90          0009CC          MOUSESPA	EQU	MOUSEBY+1	;MOUSE A SPEED
    91          0009CD          MOUSESPB	EQU	MOUSESPA+1	;MOUSE A SPEED
    92          0009CE          MOUSEAT		EQU	MOUSESPB+1	;MOUSE A KEY(TRIGER)
    93          0009CF          MOUSEAB		EQU	MOUSEAT+1	;MOUSE A KEY(TRIGER WORK)
    94          0009D0          MOUSEBT		EQU	MOUSEAB+1	;MOUSE B KEY(TRIGER)
    95          0009D1          MOUSEBB		EQU	MOUSEBT+1	;MOUSE B KEY(TRIGER WORK)
    96          0009D2          MUSECTX		EQU	MOUSEBB+1	; mouse move check count
    97          0009D3          MUSECTY		EQU	MUSECTX+1	; mouse move check count
    98                          ;
    99          0009D3          MOUSWK0		EQU	MUSECTY		;mouse work RAM
   100                          ;
   101          0009D5          MUSEBUF		EQU	MOUSWK0+2	;ƒ}ƒEƒX ƒoƒbƒtƒ@
   102                          ;
   103                          ;-------------- editer ram ------------------------------------------
   104          0009D6          EDMODE		EQU	MUSEBUF+1	; edit mode flg
   105          0009D7          DTMODE		EQU	EDMODE+1	; data mode ( 0:kotei !=0:kahen )
   106                          ;
   107          0009D8          CRXPSL1		EQU	DTMODE+1	;	hi-y-pos
   108          0009D9          CRXPSH1		EQU	CRXPSL1+1	; arrow low-x-pos (Base)
   109          0009DA          CRXPSL2		EQU	CRXPSH1+1	;	hi-y-pos
   110          0009DB          CRXPSH2		EQU	CRXPSL2+1	;		  (counter)
   111          0009DC          CRYPSL1		EQU	CRXPSH2+1	; arrow hi-x-pos
   112          0009DD          CRYPSH1		EQU	CRYPSL1+1	;	low-y-pos (Base)
   113          0009DE          CRYPSL2		EQU	CRYPSH1+1	; arrow hi-x-pos
   114          0009DF          CRYPSH2		EQU	CRYPSL2+1	;		  (counter)
   115                          ;
   116          0009E0          INKEY		EQU	CRYPSH2+1	; key data
   117          0009E1          INKEY2		EQU	INKEY+1		;
   118          0009E2          INKEY3		EQU	INKEY2+1	;
   119                          ;
   120          0009E3          MVSCH1		EQU	INKEY3+1	; move SCCH1 counter
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0003

   121          0009E5          MVSCV1		EQU	MVSCH1+2	; move SCCV1 counter
   122                          ;
   123          0009E7          BGDPFG		EQU	MVSCV1+2	; BG data display flag
   124          0009E8          SIFTFG		EQU	BGDPFG+1	; shift mode flag
   125          0009E9          LDFLG		EQU	SIFTFG+1	; load flag
   126          0009EA          SVFLG		EQU	LDFLG+1		; save	"
   127          0009EB          DELFLG		EQU	SVFLG+1		; delete "
   128          0009EC          MPDSFG		EQU	DELFLG+1	; map display flag
   129          0009ED          STINFG		EQU	MPDSFG+1
   130                          ;
   131          0009EE          ERRFLG		EQU	STINFG+1	; error flag
   132          0009F0          INDTPT		EQU	ERRFLG+2	; BG data type no. cursol pos
   133          0009F1          INPBUF		EQU	INDTPT+1	;	"          set buffer
   134                          ;
   135          0009F3          STDTPT		EQU	INPBUF+2	; course data pointer
   136          0009F5          INSTPT		EQU	STDTPT+2	; insert pointer
   137          0009F7          SRCHPT		EQU	INSTPT+2	; search pointer
   138          0009F9          SRCHNO		EQU	SRCHPT+2	;    "   data pos
   139                          ;
   140          0009FB          DTPT		EQU	SRCHNO+2	; now data pos
   141                          ;
   142          0009FD          MODESV		EQU	DTPT+2
   143                          ;
   144                          ;-------------- file save & load RAM --------------------------------
   145          0009FF          NAMEPT		EQU	MODESV+2	; file name buffer pointer
   146                          ;
   147          000A00          FKOSUU		EQU	NAMEPT+1	; FILE kosuu
   148          000A01          HNUMCT		EQU	FKOSUU+1	; HI NUMBER COUNTER
   149          000A03          LNUMCT		EQU	HNUMCT+2	; LOW NUMBER COUNTER
   150          000A05          VHLTP		EQU	LNUMCT+2	; VRAMD HI LOW TOP
   151          000A07          VHLLT		EQU	VHLTP+2		; VRAMD HI LOW LAST
   152          000A09          NMBBUF		EQU	VHLLT+2		; LOAD NUMBER BUFFER
   153                          ;;;;K;;;;;
   154                          ;;;;K;;;;;-------------- file save & load RAM --------------------------------
   155                          ;;;;K;;;;NAMEPT		EQU	MODESV+2	; file name buffer pointer
   156                          ;;;;K;;;;NMDTBF0		EQU	NAMEPT+1	;	  "
   157                          ;;;;K;;;;NMDTBF1		EQU	NMDTBF0+1	;	  "
   158                          ;;;;K;;;;NMDTBF2		EQU	NMDTBF1+1	;	  "
   159                          ;;;;K;;;;NMDTBF3		EQU	NMDTBF2+1	;	  "
   160                          ;;;;K;;;;NMDTBF4		EQU	NMDTBF3+1	;	  "
   161                          ;;;;K;;;;NMDTBF5		EQU	NMDTBF4+1	;	  "
   162                          ;;;;K;;;;NMDTBF6		EQU	NMDTBF5+1	;	  "
   163                          ;;;;K;;;;NMDTBF7		EQU	NMDTBF6+1	;	  "
   164                          ;;;;K;;;;;
   165                          ;;;;K;;;;FKOSUU		EQU	NMDTBF7+1	; FILE kosuu
   166                          ;;;;K;;;;HNUMCT		EQU	FKOSUU+1	; HI NUMBER COUNTER
   167                          ;;;;K;;;;LNUMCT		EQU	HNUMCT+2	; LOW NUMBER COUNTER
   168                          ;;;;K;;;;VHLTP		EQU	LNUMCT+2	; VRAMD HI LOW TOP
   169                          ;;;;K;;;;VHLLT		EQU	VHLTP+2		; VRAMD HI LOW LAST
   170                          ;;;;K;;;;NMBBUF		EQU	VHLLT+2		; LOAD NUMBER BUFFER
   171                          ;
   172                          ;--------------------------------------------------------------------
   173          000A0B          STATX		EQU	NMBBUF+2	; cursole xpos
   174          000A0D          STATY		EQU	STATX+2		; cursole ypos
   175          000A0F          STATCMP		EQU	STATY+2
   176          000A10          FRMFLG		EQU	STATCMP+1
   177          000A11          DYNFLG		EQU	FRMFLG+1
   178          000A12          ERCODE		EQU	DYNFLG+1
   179                          ;
   180                          ;--------------------------------------------------------------------
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0004

   181          000A13          UNDONO		EQU	ERCODE+1	;undo buffer size
   182          000A15          UNDOXP1		EQU	UNDONO+2	;  "  save cursol X pos.1
   183          000A17          UNDOYP1		EQU	UNDOXP1+2	;	  "       Y   "
   184          000A19          UNDOXP2		EQU	UNDOYP1+2	;	  "       X  " .2
   185          000A1B          UNDOYP2		EQU	UNDOXP2+2	;	  "       Y   "
   186          000A1D          UNDOSFT		EQU	UNDOYP2+2
   187                          ;
   188          000A1E          LASTFG		EQU	UNDOSFT+1	;last input flag
   189          000A1F          LASTXP		EQU	LASTFG+1	;     "     data start X pos
   190          000A21          LASTYP		EQU	LASTXP+2	;	    "          Y  "
   191                          ;
   192                          ;-------------- AADA used ram ---------------------------------------
   193          000A23          WIDEX		EQU	LASTYP+2	; scroll move X wide
   194          000A24          WIDEY		EQU	WIDEX+1		; scroll move Y wide
   195          000A25          CRSSMMD		EQU	WIDEY+1		; mouse cursol semi auto mode
   196                          ;					;	0 -> off
   197                          ;					;	>0 -> X pos
   198                          ;					;	<0 -> Y pos
   199          000A26          UNTPTNSL	EQU	CRSSMMD+1
   200          000A27          STUNTNO0	EQU	UNTPTNSL+1
   201          000A28          UTPNMODE	EQU	STUNTNO0+1
   202          000A29          STUNTNO1	EQU	UTPNMODE+1
   203          000A2A          SIFTX		EQU	STUNTNO1+1
   204          000A2C          SIFTY		EQU	SIFTX+2
   205          000A2E          KHNKTIMD	EQU	SIFTY+2
   206                          ;
   207          000A2F          BAKOKRM		EQU	KHNKTIMD+1
   208                          ;
   209          000A30          XTAIHI		EQU	BAKOKRM+1	; X point ta-i-hi
   210          000A32          YTAIHI		EQU	XTAIHI+2
   211          000A34          MSSCRX		EQU	YTAIHI+2
   212          000A36          MSSCRY		EQU	MSSCRX+2
   213          000A38          UNTMVMD		EQU	MSSCRY+2	; ƒ†ƒjƒbƒg ˆÚ“® ƒ‚[ƒh NO. (‹¤—p)
   214          000A39          BG3CLSFG	EQU	UNTMVMD+1
   215          000A3A          DSPCPFM		EQU	BG3CLSFG+1
   216          000A3B          DSPCPTO		EQU	DSPCPFM+1
   217                          ;
   218                          ;-------------- AADA used ram (enmy edit tool used ram) -------------
   219          000A3C          PLDWMNFG	EQU	DSPCPTO+1	; pull down menuw flag
   220          000A3D          B2WTHF		EQU	PLDWMNFG+1	; BG2 H write flag
   221          000A3F          B2WTVF		EQU	B2WTHF+2	; BG2 V write flag
   222          000A41          ENDELFG		EQU	B2WTVF+2	; delete mode use flag
   223          000A42          ENDSPFG		EQU	ENDELFG+1	; search data disp set flag
   224          000A43          ENMDOBJ		EQU	ENDSPFG+1	; enmy edit mode obj ON flag
   225                          ;
   226          000A44          TIMSTFG		EQU	ENMDOBJ+1
   227                          ;;;;K;;;;ENBGFLG		EQU	ENMDOBJ+1	; enmy , BG edit mode flag
   228                          ;;;;K;;;;TIMSTFG		EQU	ENBGFLG+1
   229                          ;
   230                          ;--------------------------------------------------------------------
   231          000A45          FLDBUF		EQU	TIMSTFG+1
   232                          ;;;;		EQU	FLDBUF+0800H
   233                          ;
   234                          ;--------------------------------------------------------------------
   235                          ;
   236                          ;------------ AADA used ram (enmy edit mode use) --------------------
   237          000A45          FLNMBF		EQU	FLDBUF		; file name buffer
   238                          ;						500HŽg—p
   239          000A45          OBJTPBF		EQU	FLDBUF		; ƒIƒuƒWƒFƒ^ƒCƒv•Ê ƒf[ƒ^ •\Ž¦—p ƒoƒbƒtƒ@
   240          000A51          OBJTPBF0	EQU	OBJTPBF+00CH
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0005

   241          000A59          OBJTPBF1	EQU	OBJTPBF0+008
   242          000A61          OBJTPBF2	EQU	OBJTPBF1+008
   243          000A69          OBJTPBF3	EQU	OBJTPBF2+008
   244          000A71          OBJTPBF4	EQU	OBJTPBF3+008
   245          000A79          OBJTPBF5	EQU	OBJTPBF4+008
   246                          ;
   247          000A45          B2ENWTH		EQU	FLDBUF		; BG2 H-write data
   248          000A85          B2ENWTV		EQU	B2ENWTH+040H	; BG2 V-write data
   249                          ;
   250                          ;
   251          001245          ENNAMCT		EQU	FLDBUF+0800H	; enmy name buffer count
   252                          ;
   253          001247          B2WTADH		EQU	ENNAMCT+2	; BG2 write address (H scroll)
   254          001249          B2WTADV		EQU	B2WTADH+2	; BG2 write address (V scroll)
   255          00124B          ENINKYBF	EQU	B2WTADV+2	; inkey buffer
   256          00124C          ENUNDBF		EQU	ENINKYBF+1	; enmy data undo buffer
   257                          ;
   258          001256          FNBIDX		EQU	ENUNDBF+0AH	; file name buffer index
   259          001257          MJIDX0		EQU	FNBIDX+1	; mo-ji buffer index 0
   260          001258          MJIDX1		EQU	MJIDX0+1	;	"       "    1
   261          001259          MJIDX2		EQU	MJIDX1+1	;	"       "    2
   262          00125A          MJIDX3		EQU	MJIDX2+1	;	"       "    3
   263          00125B          MOJBF0		EQU	MJIDX3+1	; mo-ji disp buffer 0
   264          001263          MOJBF1		EQU	MOJBF0+8	;	"       "   1
   265                          ;
   266          001263          NMDTBF0		EQU	MOJBF1		; ‚a‚fƒR[ƒXƒf[ƒ^
   267          001264          NMDTBF1		EQU	NMDTBF0+1	;	ƒtƒ@ƒCƒ‹–¼
   268          001265          NMDTBF2		EQU	NMDTBF1+1	;
   269          001266          NMDTBF3		EQU	NMDTBF2+1	;
   270          001267          NMDTBF4		EQU	NMDTBF3+1	;
   271          001268          NMDTBF5		EQU	NMDTBF4+1	;
   272          001269          NMDTBF6		EQU	NMDTBF5+1	;
   273          00126A          NMDTBF7		EQU	NMDTBF6+1	;
   274                          ;
   275          001263          FLNMWK		EQU	MOJBF1		; FILE NAME WORK
   276          001258          NMPTWK		EQU	MJIDX1		; FILE NAME POINTER WORK
   277                          ;
   278          00126B          MOJBF2		EQU	MOJBF1+8	;	"       "   2
   279          001273          MOJBF3		EQU	MOJBF2+8	;	"       "   3
   280          00127B          SCRLBF		EQU	MOJBF3+8	; file name scroll buffer
   281          00127D          ENEMYNO		EQU	SCRLBF+2	; enmy NO.
   282          00127F          ENNOFLS		EQU	ENEMYNO+2	; enmy NO. flash counter
   283          001280          ENDTPT		EQU	ENNOFLS+1	; enmy data buffer index
   284          001282          SRCPOS		EQU	ENDTPT+2	; enmy data buffer point (search)
   285          001284          ENNAM0		EQU	SRCPOS+2	; enmy name buffer 0
   286          001285          ENNAM1		EQU	ENNAM0+1	;	"       "  1
   287          001286          ENNAM2		EQU	ENNAM1+1	;	"       "  2
   288          001287          ENNAM3		EQU	ENNAM2+1	;	"       "  3
   289          001288          ENNAM4		EQU	ENNAM3+1	;	"       "  4
   290          001289          ENMDFG0		EQU	ENNAM4+1	; file mode flag
   291          00128A          ENMDFG1		EQU	ENMDFG0+1	; ma-e-no file mode flag
   292          00128B          RDFLDT		EQU	ENMDFG1+1	; read file data flag
   293          00128C          GMMDBF		EQU	RDFLDT+1	; game mode ta-i-hi buffer
   294          00128D          NTBKCNT		EQU	GMMDBF+1	; ‚m‚d‚w‚s • ‚a‚`‚b‚j ƒXƒNƒ[ƒ‹ ƒJƒEƒ“ƒ^[
   295          00128E          CSLWKIDX	EQU	NTBKCNT+1	; ƒJ[ƒ\ƒ‹ ƒƒN ƒCƒ“ƒfƒbƒNƒX
   296          001290          CHRSCRCT	EQU	CSLWKIDX+2	; ƒ^ƒCƒv•Ê ƒf[ƒ^ ƒXƒNƒ[ƒ‹ ƒJƒEƒ“ƒ^[
   297          001291          SCRBAR		EQU	CHRSCRCT+1	; ƒ^ƒCƒv•Ê ƒf[ƒ^ ƒXƒNƒ[ƒ‹ ƒo[ ƒJƒEƒ“ƒ^[
   298          001292          ALL_UDFG	EQU	SCRBAR+1	; ‚Ü‚Æ‚ß‚Ä“®‚©‚µ‚½Œã‚Ì‚t‚m‚c‚nƒtƒ‰ƒO
   299          001294          ENMSLMD		EQU	ALL_UDFG+2
   300          001296          EN_SCH3		EQU	ENMSLMD+2
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0006

   301          001298          EN_SCV3		EQU	EN_SCH3+2
   302          00129A          EN_DP_XCT	EQU	EN_SCV3+2
   303          00129C          EN_DP_YCT	EQU	EN_DP_XCT+2
   304          00129E          ENDSP_PG	EQU	EN_DP_YCT+2
   305                          ;
   306                          ;
   307          0012A0          TOOL_RAM_END	EQU	ENDSP_PG+2
   308                          ;
   309          0008DA          TOOL_RAM_SIZE	EQU	TOOL_RAM_END-TOOL_RAM_START
   310                          ;;;;K;;;;;--------------------------------------------------------------------
   311                          ;;;;K;;;;;
   312                          ;;;;K;;;;;------------ AADA used ram (enmy edit mode use) --------------------
   313                          ;;;;K;;;;ENNAMCT		EQU	FLDBUF+1	; enmy name buffer count
   314                          ;;;;K;;;;;
   315                          ;;;;K;;;;B2WTADH		EQU	ENNAMCT+2	; BG2 write address (H scroll)
   316                          ;;;;K;;;;B2ENWTH		EQU	B2WTADH+2	; BG2 write data
   317                          ;;;;K;;;;B2WTADV		EQU	B2ENWTH+040H	; BG2 write address (V scroll)
   318                          ;;;;K;;;;B2ENWTV		EQU	B2WTADV+2	; BG2 write data
   319                          ;;;;K;;;;ENINKYBF	EQU	B2ENWTV+040H	; inkey buffer
   320                          ;;;;K;;;;ENUNDBF		EQU	ENINKYBF+1	; enmy data undo buffer
   321                          ;;;;K;;;;FLNMBF		EQU	ENUNDBF+0AH	; file name buffer
   322                          ;;;;K;;;;;
   323                          ;;;;K;;;;OBJTPBF		EQU	FLNMBF		; ƒIƒuƒWƒFƒ^ƒCƒv•Ê ƒf[ƒ^ •\Ž¦—p ƒoƒbƒtƒ@
   324                          ;;;;K;;;;OBJTPBF0	EQU	OBJTPBF+00CH
   325                          ;;;;K;;;;OBJTPBF1	EQU	OBJTPBF0+008
   326                          ;;;;K;;;;OBJTPBF2	EQU	OBJTPBF1+008
   327                          ;;;;K;;;;OBJTPBF3	EQU	OBJTPBF2+008
   328                          ;;;;K;;;;OBJTPBF4	EQU	OBJTPBF3+008
   329                          ;;;;K;;;;OBJTPBF5	EQU	OBJTPBF4+008
   330                          ;;;;K;;;;;
   331                          ;;;;K;;;;FNBIDX		EQU	FLNMBF+0500H	; file name buffer index
   332                          ;;;;K;;;;MJIDX0		EQU	FNBIDX+1	; mo-ji buffer index 0
   333                          ;;;;K;;;;MJIDX1		EQU	MJIDX0+1	;	"       "    1
   334                          ;;;;K;;;;MJIDX2		EQU	MJIDX1+1	;	"       "    2
   335                          ;;;;K;;;;MJIDX3		EQU	MJIDX2+1	;	"       "    3
   336                          ;;;;K;;;;MOJBF0		EQU	MJIDX3+1	; mo-ji disp buffer 0
   337                          ;;;;K;;;;MOJBF1		EQU	MOJBF0+8	;	"       "   1
   338                          ;;;;K;;;;MOJBF2		EQU	MOJBF1+8	;	"       "   2
   339                          ;;;;K;;;;MOJBF3		EQU	MOJBF2+8	;	"       "   3
   340                          ;;;;K;;;;SCRLBF		EQU	MOJBF3+8	; file name scroll buffer
   341                          ;;;;K;;;;ENEMYNO		EQU	SCRLBF+2	; enmy NO.
   342                          ;;;;K;;;;ENNOFLS		EQU	ENEMYNO+2	; enmy NO. flash counter
   343                          ;;;;K;;;;ENDTPT		EQU	ENNOFLS+1	; enmy data buffer index
   344                          ;;;;K;;;;SRCPOS		EQU	ENDTPT+2	; enmy data buffer point (search)
   345                          ;;;;K;;;;ENNAM0		EQU	SRCPOS+2	; enmy name buffer 0
   346                          ;;;;K;;;;ENNAM1		EQU	ENNAM0+1	;	"       "  1
   347                          ;;;;K;;;;ENNAM2		EQU	ENNAM1+1	;	"       "  2
   348                          ;;;;K;;;;ENNAM3		EQU	ENNAM2+1	;	"       "  3
   349                          ;;;;K;;;;ENNAM4		EQU	ENNAM3+1	;	"       "  4
   350                          ;;;;K;;;;ENMDFG0		EQU	ENNAM4+1	; file mode flag
   351                          ;;;;K;;;;ENMDFG1		EQU	ENMDFG0+1	; ma-e-no file mode flag
   352                          ;;;;K;;;;RDFLDT		EQU	ENMDFG1+1	; read file data flag
   353                          ;;;;K;;;;GMMDBF		EQU	RDFLDT+1	; game mode ta-i-hi buffer
   354                          ;;;;K;;;;NTBKCNT		EQU	GMMDBF+1	; ‚m‚d‚w‚s • ‚a‚`‚b‚j ƒXƒNƒ[ƒ‹ ƒJƒEƒ“ƒ^[
   355                          ;;;;K;;;;CSLWKIDX	EQU	NTBKCNT+1	; ƒJ[ƒ\ƒ‹ ƒƒN ƒCƒ“ƒfƒbƒNƒX
   356                          ;;;;K;;;;CHRSCRCT	EQU	CSLWKIDX+2	; ƒ^ƒCƒv•Ê ƒf[ƒ^ ƒXƒNƒ[ƒ‹ ƒJƒEƒ“ƒ^[
   357                          ;;;;K;;;;SCRBAR		EQU	CHRSCRCT+1	; ƒ^ƒCƒv•Ê ƒf[ƒ^ ƒXƒNƒ[ƒ‹ ƒo[ ƒJƒEƒ“ƒ^[
   358                          ;;;;K;;;;ALL_UDFG	EQU	SCRBAR+1	; ‚Ü‚Æ‚ß‚Ä“®‚©‚µ‚½Œã‚Ì‚t‚m‚c‚nƒtƒ‰ƒO
   359                          ;;;;K;;;;ENMSLMD		EQU	ALL_UDFG+2
   360                          ;;;;K;;;;EN_SCH3		EQU	ENMSLMD+2
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0007

   361                          ;;;;K;;;;EN_SCV3		EQU	EN_SCH3+2
   362                          ;;;;K;;;;EN_DP_XCT	EQU	EN_SCV3+2
   363                          ;;;;K;;;;EN_DP_YCT	EQU	EN_DP_XCT+2
   364                          ;;;;K;;;;ENDSP_PG	EQU	EN_DP_YCT+2
   365                          ;;;;K;;;;;
   366                          ;;;;K;;;;;
   367                          ;;;;K;;;;TOOL_RAM_END	EQU	ENDSP_PG+2
   368                          ;;;;K;;;;;
   369                          ;;;;K;;;;TOOL_RAM_SIZE	EQU	TOOL_RAM_END-TOOL_RAM_START
   370                          ;
   371                          ;====================================================================
   372                          ;;SFX-DOS	EQU	1E00H		; ~ 1FFFH
   373                          ;====================================================================
   374                          ;
   375                          ;
   376                          ;====================================================================
   377                          ;=		!=0 bank RAM					    =
   378                          ;====================================================================
   379                          ;
   380                          ;-------------- ‚n‚a‚iƒ^ƒCƒv•Ê ƒf[ƒ^ ƒoƒbƒtƒ@ ----------------------
   381          707C00          CHRDTBF		EQU	707C00H
   382                          ;			   |
   383                          ;			000300H
   384                          ;
   385                          ;-------------- ‚s‚n‚n‚k—p‚q‚`‚l‚Ì‘Þ”ðêŠ --------------------------
   386          708000          TOOL_BUF	EQU	708000H
   387                          ;			   |
   388                          ;			708000H+TOOL_RAM_SIZE
   389                          ;
   390                          ;-------------- “Gƒf[ƒ^ ƒoƒbƒtƒ@ -----------------------------------
   391          70E000          ENMYDTBF	EQU	70E000H		; enmy data index (L)
   392          70E002          ENDTBF		EQU	ENMYDTBF+2	;		  (H)
   393                          ;
   394          70EFFE          ENNAMCT_SB	EQU	70EFFEH
   395                          ;					; enmy data
   396          70F000          ENNAMBF		EQU	70F000H		; enmy name buffer
   397                          ;
   398                          ;-------------- “Gƒf[ƒ^ ƒoƒbƒtƒ@ ‚t‚m‚c‚nƒGƒŠƒA (‚Ü‚Æ‚ß‚ÄˆÚ“®‚µ‚½‚Æ‚«Žg—p)
   399          71C000          UNDO_ENDATA	EQU	71C000H
   400                          ;
   401                          ;--------------- “G‚Ì–¼‘O‚Ì•\Ž¦—p ƒoƒbƒtƒ@ ----------------------
   402          71D000          ENMDSPBUF	EQU	71D000H
   403                          ;
   404                          ;-------------- course data buffer ----------------------------------
   405          7EA542          COURSEDT	EQU	RPRO_RAM-(2+(7*100)+(800H*3))
   406          7EA54B          DTBUFF		EQU	COURSEDT+9
   407          7EAD42          DTBUFF2		EQU	COURSEDT+800H
   408                          ;
   409          7EB542          UNDOBUF		EQU	DTBUFF2+800H   ;to undo data back_up RAM
   410                          ;
   411                          ;.............. enemy data buffer ...................................
   412          7F0000          ENBGDTBF	EQU	7F0000H		; enmy set BG data buffer
   413                          ;;;;;		EQU	ENBGDTBF+8000H
   414                          ;
   415                          ;
   416                          ;====================================================================
   417                          ;=		M-chip RAM					    =
   418                          ;====================================================================
   419                          ;
   420          7064C0          M_ENDTBF	EQU	WOB7CHR+(66H*20H) ;normal enemy data set area
File : yst_ram.asm RICOH SFX ASSEMBLER VER. V2.11Wed Mar  1 10:14:15 1995  Page 0008

   421                          ;;;;		EQU	M_ENDTBF+(3*106)
   422                          ;
   423                          ;
   424                          ;
   425                          ;
   426                          ;
