File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0001

     1                          ;************************************************************************
     2                          ;*									*
     3                          ;*	title name	: "yossy map tool"				*
     4                          ;*	proccess	: ram name  					*
     5                          ;*	file name	: ysm_ram					*
     6                          ;*									*
     7                          ;************************************************************************	
     8                          ;
     9                          ;
    10                          ;
    11                          ;--------------	character address define --------------------------------
    12          0C8000          CHR50		EQU	0C8000H		;[ player character ]
    13          0D8000          CHR28		EQU	0D8000H		;[ chip character ]
    14          0E8000          CHR5B		EQU	0E8000H		;[ map chip chracter ]
    15          0EC000          CHR34		EQU	0EC000H		;[ 4bit transfer character ]
    16          0E8000          CHR3F		EQU	0E8000H		;[ 2		"	   ]
    17                          ;
    18          0D8000          CIPCHD		EQU	CHR28
    19                          ;
    20                          ;
    21                          ;
    22                          ;========================================================================
    23                          ;=		0 page RAM						=
    24                          ;========================================================================
    25                          ;
    26                          ;-------------<	work RAM >-----------------------------------------------
    27          000000          WORK		EQU	000000H
    28          000000          WORK0		EQU	WORK
    29          000001          WORK1		EQU	WORK0+1
    30          000002          WORK2		EQU	WORK1+1
    31          000003          WORK3		EQU	WORK2+1
    32          000004          WORK4		EQU	WORK3+1
    33          000005          WORK5		EQU	WORK4+1
    34          000006          WORK6		EQU	WORK5+1
    35          000007          WORK7		EQU	WORK6+1
    36          000008          WORK8		EQU	WORK7+1
    37          000009          WORK9		EQU	WORK8+1
    38          00000A          WORKA		EQU	WORK9+1
    39          00000B          WORKB		EQU	WORKA+1
    40          00000C          WORKC		EQU	WORKB+1
    41          00000D          WORKD		EQU	WORKC+1
    42          00000E          WORKE		EQU	WORKD+1
    43          00000F          WORKF		EQU	WORKE+1
    44          000010          WORK10		EQU	WORKF+1
    45          000011          WORK11		EQU	WORK10+1
    46          000012          WORK12		EQU	WORK11+1
    47          000013          WORK13		EQU	WORK12+1
    48          000014          WORK14		EQU	WORK13+1
    49          000015          WORK15		EQU	WORK14+1
    50          000016          WORK16		EQU	WORK15+1
    51          000017          WORK17		EQU	WORK16+1
    52          000018          WORK18		EQU	WORK17+1
    53          000019          WORK19		EQU	WORK18+1
    54          00001A          WORK1A		EQU	WORK19+1
    55          00001B          WORK1B		EQU	WORK1A+1
    56          00001C          WORK1C		EQU	WORK1B+1
    57          00001D          WORK1D		EQU	WORK1C+1
    58          00001E          WORK1E		EQU	WORK1D+1
    59          00001F          WORK1F		EQU	WORK1E+1
    60          000020          WORK20		EQU	WORK1F+1
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0002

    61          000021          WORK21		EQU	WORK20+1
    62          000022          WORK22		EQU	WORK21+1
    63          000023          WORK23		EQU	WORK22+1
    64          000024          WORK24		EQU	WORK23+1
    65          000025          WORK25		EQU	WORK24+1
    66          000026          WORK26		EQU	WORK25+1
    67          000027          WORK27		EQU	WORK26+1
    68          000028          WORK28		EQU	WORK27+1
    69          000029          WORK29		EQU	WORK28+1
    70          00002A          WORK2A		EQU	WORK29+1
    71          00002B          WORK2B		EQU	WORK2A+1
    72          00002C          WORK2C		EQU	WORK2B+1
    73          00002D          WORK2D		EQU	WORK2C+1
    74          00002E          WORK2E		EQU	WORK2D+1
    75          00002F          WORK2F		EQU	WORK2E+1
    76                          ;
    77                          ;
    78                          ;........................................................................
    79                          ;.		extern RAM						.
    80                          ;........................................................................
    81                          ;
    82          000030          FRCNT		EQU	WORK2F+1	;frame counter
    83                          ;
    84                          ;
    85                          ;------------------------------------------------------------------------
    86                          ;-		clear RAM.0						-
    87                          ;------------------------------------------------------------------------
    88          000031          CLRRM0_S	EQU	FRCNT+1
    89                          ;
    90                          ;
    91                          ;-------------<	joy-controller >-----------------------------------------
    92          000031          KEYC1L		EQU	CLRRM0_S	;move controller(L)
    93          000032          KEYC1		EQU	KEYC1L+1	;	"       (H)
    94          000033          KEYC2L		EQU	KEYC1+1		;	"       (L) [ triger ]
    95          000034          KEYC2		EQU	KEYC2L+1	;	"       (H)
    96                          ;
    97                          ;-------------<	scroll counter >-----------------------------------------
    98          000035          SCCH1		EQU	KEYC2+1		;BG1_H
    99          000037          SCCV1		EQU	SCCH1+2		;   _V
   100          000039          SCCH2		EQU	SCCV1+2		;BG2_H
   101          00003B          SCCV2		EQU	SCCH2+2		;   _V
   102          00003D          SCCH3		EQU	SCCV2+2		;BG3_H
   103          00003F          SCCV3		EQU	SCCH3+2		;   _V
   104          000041          SCCH4		EQU	SCCV3+2		;BG4_H
   105          000043          SCCV4		EQU	SCCH4+2		;   _V
   106                          ;
   107                          ;
   108                          ;........................................................................
   109                          ;.		static RAM ( map data edit )				.
   110                          ;........................................................................
   111          000045          STATIC0		EQU	SCCV4+2
   112                          ;
   113                          ;
   114                          ;--------------	mouse data ----------------------------------------------
   115          000045          MOUSEAS		EQU	STATIC0		;MOUSE A KEY
   116          000046          MOUSEAX		EQU	MOUSEAS+1	;MOUSE A X
   117          000047          MOUSEAY		EQU	MOUSEAX+1	;MOUSE A Y
   118          000048          MOUSEBS		EQU	MOUSEAY+1	;MOUSE B KEY
   119          000049          MOUSEBX		EQU	MOUSEBS+1	;MOUSE B X
   120          00004A          MOUSEBY		EQU	MOUSEBX+1	;MOUSE B Y
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0003

   121          00004B          MOUSESPA	EQU	MOUSEBY+1	;MOUSE A SPEED
   122          00004C          MOUSESPB	EQU	MOUSESPA+1	;MOUSE A SPEED
   123          00004D          MOUSEAT		EQU	MOUSESPB+1	;MOUSE A KEY(TRIGER)
   124          00004E          MOUSEAB		EQU	MOUSEAT+1	;MOUSE A KEY(TRIGER WORK)
   125          00004F          MOUSEBT		EQU	MOUSEAB+1	;MOUSE B KEY(TRIGER)
   126          000050          MOUSEBB		EQU	MOUSEBT+1	;MOUSE B KEY(TRIGER WORK)
   127          000051          MUSECTX		EQU	MOUSEBB+1	; mouse move check count
   128          000052          MUSECTY		EQU	MUSECTX+1	; mouse move check count
   129                          ;
   130                          ;--------------	key input RAM -------------------------------------------
   131          000053          INKEY		EQU	MUSECTY+1	; key data
   132          000054          INKEY2		EQU	INKEY+1		;
   133          000055          INKEY3		EQU	INKEY2+1	;
   134                          ;
   135                          ;
   136                          ;--------------	map data edit RAM ---------------------------------------
   137                          ;******** AADA USED RAM ********
   138          000056          EDTBFFG		EQU	INKEY3+1
   139                          ;;;;K;;;;UNITNO		EQU	EDTBFFG+1
   140                          ;
   141                          ;
   142          000100          CLRRM0_E	EQU	100H
   143          0000CF          CLR0SE		EQU	CLRRM0_E-CLRRM0_S
   144                          ;
   145                          ;
   146                          ;------------------------------------------------------------------------
   147                          ;-		clear RAM.0 end 					-
   148                          ;------------------------------------------------------------------------
   149                          ;
   150                          ;
   151                          ;
   152                          ;========================================================================
   153                          ;=		!=0 page RAM						=
   154                          ;========================================================================
   155                          ;
   156                          ;........................................................................
   157                          ;.		extern RAM						.
   158                          ;........................................................................
   159                          ;
   160                          ;-------------<	RAM vector >---------------------------------------------
   161          000100          RAMVCT		EQU	100H
   162          000100          RTISUB0		EQU	100H		;RTISUB
   163          000104          COPSUB0		EQU	104H		;COP
   164          000108          INTSUB0		EQU	108H		;NMI
   165          00010C          IRQSUB0		EQU	10CH		;IRQ
   166                          ;
   167                          ;
   168                          ;-------------< system RAM >---------------------------------------------
   169          000110          SYSRAM		EQU	110H
   170                          ;
   171                          ;-------------<	mode flag >----------------------------------------------
   172          000110          MODENO		EQU	SYSRAM		;main mode no.
   173          000111          NMIFLG		EQU	MODENO+1	;NMI flag
   174          000112          NMITYP		EQU	NMIFLG+1	; "  type no.
   175          000113          NMIJMP		EQU	NMITYP+1	; "  program jump address buffer
   176          000115          IRQFLG		EQU	NMIJMP+2	;IRQ flag
   177          000116          IRQTYP		EQU	IRQFLG+1	; "  type no.
   178          000117          IRQJMP		EQU	IRQTYP+1	; "  program jump address buffer
   179          000119          CHIPFG		EQU	IRQJMP+2	;mario chip flag
   180          00011A          VRFLG		EQU	CHIPFG+1	;BG write flag ( VRAMD )
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0004

   181          00011C          VRFLG2		EQU	VRFLG+2		;	"      ( VRAMDX )
   182                          ;
   183                          ;-------------<	chip controll ram >--------------------------------------
   184          00011E          CIPSCB		EQU	VRFLG2+2	;[3038] chip screen base
   185          00011F          CIPSCR		EQU	CIPSCB+1	;[303A]       "     size mode
   186                          ;
   187                          ;-------------<	pause flag >---------------------------------------------
   188          000120          PAUSE		EQU	CIPSCR+1	;pause flag
   189          000121          PASTM		EQU	PAUSE+1		;   "  timer
   190                          ;
   191          000122          NMICONT		EQU	PASTM+1
   192                          ;
   193                          ;-------------<	stack RAM >----------------------------------------------
   194          000122          STACK		EQU	PASTM+1		;stack area
   195                          ;			  |		;
   196                          ;			  V		;
   197                          ;			1FFH		;
   198                          ;
   199                          ;
   200                          ;-------------<	static RAM >---------------------------------------------
   201          000200          FADNO		EQU	200H		;[2100] fade no. & blanking flag
   202          000201          FADMK		EQU	FADNO+1		; 	  "  muki
   203          000202          FADTM		EQU	FADMK+1		; 	  "  timer
   204          000203          MOZNO		EQU	FADTM+1		;[2106] mozaiku no.
   205          000204          MOZMK		EQU	MOZNO+1		;	   "    muki
   206                          ;
   207                          ;-------------<	mode 7 parameter RAM >-----------------------------------
   208          000205          CENTX		EQU	MOZMK+1		;mode 7 center X pos
   209          000207          CENTY		EQU	CENTX+2		;	"      Y  "
   210                          ;
   211          000209          MATA		EQU	CENTY+2		;matrix A
   212          00020B          MATB		EQU	MATA+2		;   "   B
   213          00020D          MATC		EQU	MATB+2		;   "   C
   214          00020F          MATD		EQU	MATC+2		;   "   D
   215                          ;
   216                          ;------------------------------------------------------------------------
   217                          ;-		clear RAM.1						-
   218                          ;------------------------------------------------------------------------
   219          000211          CLRRM1_S	EQU	MATD+2
   220                          ;
   221                          ;
   222                          ;-------------<	joy-controller >-----------------------------------------
   223          000211          KEYA1L		EQU	CLRRM1_S	;controller_1(L)
   224          000212          KEYA1		EQU	KEYA1L+1	;    "       (H)
   225          000213          KEYA2L		EQU	KEYA1+1		;    "       (L) [ triger ]
   226          000214          KEYA2		EQU	KEYA2L+1	;    "       (H)
   227          000215          KEYB1L		EQU	KEYA2+1		;    "     _2(L)
   228          000216          KEYB1		EQU	KEYB1L+1	;    "       (H)
   229          000217          KEYB2L		EQU	KEYB1+1		;    "       (L) [ triger ]
   230          000218          KEYB2		EQU	KEYB2L+1	;    "       (H)
   231          000219          KEYABFL		EQU	KEYB2+1		;to triger check work_1(L)
   232          00021A          KEYABF		EQU	KEYABFL+1	;	   "           (H)
   233          00021B          KEYBBFL		EQU	KEYABF+1	;	   "         _2(L)
   234          00021C          KEYBBF		EQU	KEYBBFL+1	;	   "           (H)
   235                          ;
   236                          ;-------------<	PPU register set RAM >-----------------------------------
   237          00021D          NUKCOL		EQU	KEYBBF+1	;[2132] nuki color
   238          00021F          HD420C		EQU	NUKCOL+2	;[420C] H-DMA "ON/OFF" flag
   239                          ;
   240                          ;.............<	game mode RAM >..........................................
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0005

   241          000220          GMMDRM		EQU	HD420C+1
   242                          ;
   243          000220          BGMODE		EQU	HD420C+1	;[2105] BG mode
   244          000221          BG1SCF		EQU	BGMODE+1	;[2107] BG1 screen status
   245          000222          BG2SCF		EQU	BG1SCF+1	;[2108] BG2	   "
   246          000223          BG3SCF		EQU	BG2SCF+1	;[2109] BG3	   "
   247          000224          BG12CH		EQU	BG3SCF+1	;[210B] BG1,2 chara address
   248          000225          BG34CH		EQU	BG12CH+1	;[210C] BG3,4	   "
   249          000226          WIND23		EQU	BG34CH+1	;[2123] window "ON/OFF" flag ( BG1,2 )
   250          000227          WIND24		EQU	WIND23+1	;[2124] 	   "         ( BG3,4 )
   251          000228          WIND25		EQU	WIND24+1	;[2125] 	   "         ( OBJ,COLOR )
   252          000229          MANSEL		EQU	WIND25+1	;[212C] main select flag
   253          00022A          SUBSEL		EQU	MANSEL+1	;[212D] sub	   "
   254          00022B          WMANSL		EQU	SUBSEL+1	;[212E]	window main select flag
   255          00022C          WSUBSL		EQU	WMANSL+1	;[212F]	   "   sub	 "
   256          00022D          WIND30		EQU	WSUBSL+1	;[2130] color window "ON/OFF" flag
   257          00022E          SUBADF		EQU	WIND30+1	;[2131] main & sub add select flag
   258                          ;
   259          00022F          GMMDRME		EQU	SUBADF+1
   260          00000F          GMMDNO		EQU	GMMDRME-GMMDRM
   261                          ;
   262                          ;
   263                          ;........................................................................
   264                          ;.		static RAM ( map )					.
   265                          ;........................................................................
   266          00022F          STATIC1		EQU	GMMDRME
   267                          ;
   268          00022F          MPPLANG		EQU	STATIC1
   269          000230          MPPLRSZ		EQU	MPPLANG+1
   270          000231          MPPLGPW		EQU	MPPLRSZ+1
   271          000232          MPDMAFG		EQU	MPPLGPW+1
   272          000234          MPWDMAFG	EQU	MPDMAFG+2
   273          000236          MPBANK		EQU	MPWDMAFG+2
   274          000238          MPGOTYPE	EQU	MPBANK+2
   275          00023A          MPM7SCRF	EQU	MPGOTYPE+2
   276          00023C          MPFADFG		EQU	MPM7SCRF+2
   277          00023E          MPFADR		EQU	MPFADFG+2
   278          000240          MPFADG		EQU	MPFADR+2
   279          000242          MPFADB		EQU	MPFADG+2
   280          000244          MPFADRTM	EQU	MPFADB+2
   281          000246          MPFADGTM	EQU	MPFADRTM+2
   282          000248          MPFADBTM	EQU	MPFADGTM+2
   283                          ;
   284          00024A          MPBG3SP		EQU	MPFADBTM+2
   285          00024C          MPBG4SP		EQU	MPBG3SP+2
   286          00024E          MPBG3AD		EQU	MPBG4SP+2
   287          000250          MPWBG3AD	EQU	MPBG3AD+2
   288          000252          MPBG4AD		EQU	MPWBG3AD+2
   289          000254          MPWBG4AD	EQU	MPBG4AD+2
   290                          ;
   291          000256          MPSCH40		EQU	MPWBG4AD+2
   292          000258          MPSCH41		EQU	MPSCH40+2
   293          00025A          MPSCH42		EQU	MPSCH41+2
   294          00025C          MPSCH43		EQU	MPSCH42+2
   295          00025E          MPSCH44		EQU	MPSCH43+2
   296          000260          MPSCH45		EQU	MPSCH44+2
   297          000262          MPSCH46		EQU	MPSCH45+2
   298          000264          MPSCH47		EQU	MPSCH46+2
   299                          ;
   300                          ;--------------	map data edit RAM ---------------------------------------
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0006

   301          000266          EDITMOD		EQU	MPSCH47+2
   302          000268          EDDMAFG		EQU	EDITMOD+2
   303                          ;
   304          00026A          CLRRM1_E	EQU	EDDMAFG+2
   305          000059          CLR1SE		EQU	CLRRM1_E-CLRRM1_S
   306                          ;
   307                          ;------------------------------------------------------------------------
   308                          ;-		clear RAM.1 end 					-
   309                          ;------------------------------------------------------------------------
   310                          ;
   311                          ;
   312                          ;--------------	map clear RAM -------------------------------------------
   313          00026A          MPCLRRM_S	EQU	CLRRM1_E
   314                          ;
   315          000010          MPMVOBN		EQU	16
   316          00026A          MPMVOBJNO	EQU	MPCLRRM_S
   317          00026B          MPMVOBWK0	EQU	MPMVOBJNO+1
   318          00026C          MPMVOBWK1	EQU	MPMVOBWK0+1
   319          00026D          MPMVOBTM0	EQU	MPMVOBWK1+1
   320                          ;
   321          0002AD          MPCLRRM_E	EQU	MPMVOBTM0+(MPMVOBN*4)
   322          000043          MPCLRSE		EQU	MPCLRRM_E-MPCLRRM_S
   323                          ;
   324                          ;--------------	map course name RAM -------------------------------------
   325                          ; **** aada used ram ****
   326          0002AD          KWORK0		EQU	MPCLRRM_E
   327          0002AE          KWORK1		EQU	KWORK0+1
   328          0002AF          KWORK2		EQU	KWORK1+1
   329          0002B0          KWORK3		EQU	KWORK2+1
   330          0002B1          KWORK4		EQU	KWORK3+1
   331                          ;
   332          0002B2          MKMNBF		EQU	KWORK4+1	; map course name buffer
   333          000342          ERSRCT		EQU	MKMNBF+090H	; map course name set count
   334          000343          MKMNFG		EQU	ERSRCT+1	; map course name set flag
   335          000344          NMDTNO		EQU	MKMNFG+1	; map course name data read NO.
   336                          ;
   337                          ;
   338                          ;--------------- edit buffer ram ----------------------------------------
   339                          ;******** AADA USED RAM ********
   340          001000          EDITBF		EQU	01000H		; edit buffer
   341          001140          SLCTMD		EQU	EDITBF+0A0H*2	; select mode
   342          001141          SLTMDS		EQU	SLCTMD+1	; 	"     set
   343          001142          UTONFG		EQU	SLTMDS+1	; unit obj move ON(1) , OFF(0) flag
   344          001143          UTPSAD		EQU	UTONFG+1
   345          001145          SFTFLG		EQU	UTPSAD+2	; sift on flag
   346          001146          FILFLG		EQU	SFTFLG+1	; file flag
   347          001148          FILFGS		EQU	FILFLG+2	; file flag2
   348          00114A          MOJBF0		EQU	FILFGS+2	; mo-ji buffer 0
   349          001152          MOJBF1		EQU	MOJBF0+08H	; mo-ji buffer 1
   350          00115A          MOJBF2		EQU	MOJBF1+08H	; mo-ji buffer 2
   351          001162          MOJBF3		EQU	MOJBF2+08H	; mo-ji buffer 3
   352          00116A          ZRXPOS		EQU	MOJBF3+08H	; X point zu-re
   353          00116B          ZRYPOS		EQU	ZRXPOS+1	; Y point zu-re
   354          00116C          ZRZPOS		EQU	ZRYPOS+1	; Z point zu-re
   355          00116D          MJIDX0		EQU	ZRZPOS+1	; mo-ji index 0
   356          00116E          MJIDX1		EQU	MJIDX0+1	; mo-ji index 1
   357          00116F          MJIDX2		EQU	MJIDX1+1	; mo-ji index 2
   358          001170          MJIDX3		EQU	MJIDX2+1	; mo-ji index 3
   359          001171          MDSTFG		EQU	MJIDX3+1	; mode set flag
   360          001172          FLBFIDX		EQU	MDSTFG+1	; file name buffer index
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0007

   361          001173          SRCFLG		EQU	FLBFIDX+1	; surch ON , OFF flag
   362          001174          SCRLBF		EQU	SRCFLG+1	; file name scroll
   363          001176          UNITNO		EQU	SCRLBF+2	; unit NO.
   364                          ;;;;;		EQU	UNITNO+1
   365                          ;
   366          001A00          FILBF0		EQU	01A00H		; 0 file name buffer
   367          001A0C          FILBF1		EQU	FILBF0+12	; 1
   368          001A18          FILBF2		EQU	FILBF1+12	; 2
   369          001A24          FILBF3		EQU	FILBF2+12	; 3
   370          001A30          FILBF4		EQU	FILBF3+12	; 4
   371          001A3C          FILBF5		EQU	FILBF4+12	; 5
   372          001A48          FILBF6		EQU	FILBF5+12	; 6
   373          001A54          FILBF7		EQU	FILBF6+12	; 7
   374          001A60          FILBF8		EQU	FILBF7+12	; 8
   375          001A6C          FILBF9		EQU	FILBF8+12	; 9
   376          001A78          FILBFA		EQU	FILBF9+12	; A
   377          001A84          FILBFB		EQU	FILBFA+12	; B
   378          001A90          FILBFC		EQU	FILBFB+12	; C
   379          001A9C          FILBFD		EQU	FILBFC+12	; D
   380          001AA8          FILBFE		EQU	FILBFD+12	; E
   381          001AB4          FILBFF		EQU	FILBFE+12	; F
   382                          ;
   383                          ;
   384                          ;========================================================================
   385                          ;=		!=0 bank RAM						=
   386                          ;========================================================================
   387                          ;
   388                          ;-------------<	VRAM write buffer ( normal ) >---------------------------
   389          7E4000          VRAMD		EQU	7E4000H
   390                          ;
   391                          ;-------------<	VRAM write buffer ( DMA type ) >-------------------------
   392          7E4800          VRAMDX		EQU	VRAMD+0800H
   393                          ;
   394                          ;-------------<	map H-DMA buffer >---------------------------------------
   395          7E5000          MPHDMABF0	EQU	VRAMDX+0800H
   396          7E50E0          MPHDMABF1	EQU	MPHDMABF0+070H*2
   397          7E51C0          MPHDMABF2	EQU	MPHDMABF1+070H*2
   398          7E52A0          MPHDMABF3	EQU	MPHDMABF2+070H*2
   399                          ;
   400                          ;
   401          7E5460          HDMADB0 	EQU	MPHDMABF3+1C0H
   402          7E54E0          HDMADB1 	EQU	HDMADB0+080H
   403          7E5560          HDMADB2 	EQU	HDMADB1+080H
   404                          ;
   405          7E55E0          HDMAPR0 	EQU	HDMADB2+80H
   406          7E5660          HDMAPR1 	EQU	HDMAPR0+80H
   407          7E56E0          HDMAPR2 	EQU	HDMAPR1+80H
   408          7E5760          HDMAPR3 	EQU	HDMAPR2+80H
   409          7E57E0          HDMAPR4 	EQU	HDMAPR3+80H
   410                          ;
   411                          ;-------------< big work buffer >----------------------------------------
   412          7E7000          WORKBF		EQU	7E7000H		;pless data convert buffer
   413                          ;
   414                          ;
   415                          ;-------------<	RAM program >--------------------------------------------
   416          7EC000          RPRO_RAM	EQU	7EC000H
   417                          ;			   |
   418                          ;			   V
   419                          ;			7EDFFFH
   420                          ;
File : ysm_ram.asm RICOH SFX ASSEMBLER VER. V2.11Mon Sep  6 15:41:30 1993  Page 0008

   421                          ;************ AADA USED RAM *****************************
   422          7F0000          CGXBUF		EQU	7F0000H
   423          7F4000          COLBUF		EQU	CGXBUF+4000H
   424          7F4200          SCRBUF		EQU	COLBUF+0200H
   425                          ;;;;;		EQU	SCRBUF+0800H
   426                          ;
   427                          ;........................................................................
   428                          ;.		static RAM ( map )					.
   429                          ;........................................................................
   430          7F8000          STATIC2		EQU	7F8000H
   431                          ;
   432          7F8000          MPDMABF		EQU	STATIC2			;[convert bitmap data buffer]
   433                          ;
   434          7FB800          MPRTRSB		EQU	MPDMABF+3800H		;[RAM transfer program]
   435                          ;;;;		EQU	(7*700H)+1
   436                          ;
   437                          ;
   438                          ;
   439                          ;
   440                          ;************************************************************************
   441                          ;									*
   442                          ;		mario chip register					*
   443                          ;									*
   444                          ;************************************************************************
   445          003000          R0		EQU	3000H		; default
   446          003002          R1		EQU	3002H		; PLOT X position
   447          003004          R2		EQU	3004H		;  "   Y    "
   448          003006          R3		EQU	3006H
   449          003008          R4		EQU	3008H		; LMULT no kekka no low word
   450          00300A          R5		EQU	300AH
   451          00300C          R6		EQU	300CH		; FMULT,LMULT no Hi-jyousuu
   452          00300E          R7		EQU	300EH		; MERGE source-1
   453          003010          R8		EQU	3010H		;   "      "   2
   454          003012          R9		EQU	3012H
   455          003014          R10		EQU	3014H
   456          003016          R11		EQU	3016H		; LINK no kekka-address
   457          003018          R12		EQU	3018H		; LOOP no loop kai suu
   458          00301A          R13		EQU	301AH		;  "   "  bunki saki address
   459          00301C          R14		EQU	301CH		; ROM pointer
   460          00301E          R15		EQU	301EH		; program counter
   461                          ;
   462                          ;
   463                          ;
   464                          ;
   465                          ;
