# rockman (japan) driver #

[general]

GAMENAME    " Rockman (japan) "
DIRECTORY   ROCKMANJ
PARENT      MEGAMAN
CPSTYPE     CPS1
DATE		1995

#                 #
# The memory map  #
#                 #
[programRegions]

0x000000  0x1FFFFF  MAINROM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

0x000000  0x1FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x915800  0x930000  EXTRARAM  2

[dataReadWordRegions]

0x000000  0x1FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x915800  0x930000  EXTRARAM  2

[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x915800  0x930000  EXTRARAM 2

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x915800  0x930000  EXTRARAM 2

#            #
# Protection #
#            #
[protection]

# If port(PORT) is read, returns (VALUE) #
PORT    0xff
VALUE   0xffff

#                      #
# Graphics information #
#                      #
[graphics]

# the total size of the graphics roms #
TOTAL 0x800000

# Path                     Size    Where  #
LOAD8 rcm_03.rom 0x80000 0x000000
LOAD8 rcm_07.rom 0x80000 0x080000
LOAD8 rcm_12.rom 0x80000 0x100000
LOAD8 rcm_16.rom 0x80000 0x180000
LOAD8 rcm_01.rom 0x80000 0x200000
LOAD8 rcm_05.rom 0x80000 0x280000
LOAD8 rcm_10.rom 0x80000 0x300000
LOAD8 rcm_14.rom 0x80000 0x380000
LOAD8 rcm_04.rom 0x80000 0x400000
LOAD8 rcm_08.rom 0x80000 0x480000
LOAD8 rcm_13.rom 0x80000 0x500000
LOAD8 rcm_17.rom 0x80000 0x580000
LOAD8 rcm_02.rom 0x80000 0x600000
LOAD8 rcm_06.rom 0x80000 0x680000
LOAD8 rcm_11.rom 0x80000 0x700000
LOAD8 rcm_15.rom 0x80000 0x780000


#               Number of tiles Base addr   Decode info #
DECODECHARS     0x4000          0x000000    0x400000
DECODESPRITES   0xb000          0x000000    0x400000 0x200000
DECODESCROLL2   0x8000          0x100000    0x400000 0x200000
DECODESCROLL3   0x1000          0x180000    0x400000 0x200000 

#                     #
# program information #
#                     #
[program]

ROMSIZE 0x180000

# Type of load path 1                    path 2                       Size    where #
LOADROM16SWAP  rcm23a.bin     0x80000 0x000000
LOADROM16SWAP  rcm22a.bin     0x80000 0x080000
LOADROM16SWAP  rcm21a.bin     0x80000 0x100000


#                        #
# The game configuration #
#                        #
[configuration]

LAYERCONTROL    0x66                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x4000              # scroll1 tile mask(=number of tiles)    #
SCROLL2BASECODE 0x0000              # scroll2 tile base                      #
SCROLL2CODEMASK 0x8000              # scroll2 tile mask(=number of tiles)    #
SCROLL3BASECODE 0x0000              # scroll3 tile base                      #
SCROLL3CODEMASK 0x1000              # scroll3 tile mask(=number of tiles)    #
PRIORITYMASKS   0x68 0x6a 0x6c 0x6e # the ports where to read the priorities #
LAYERENABLE 0x02 0x04 0x08 0x30

[z80]
TOTAL 0x20000
LOAD8 rcm_09.rom 0x20000 0x000000 # main rom and banks #

[samples]
TOTAL 0x40000
LOAD8 rcm_18.rom  0x20000 0x00000
LOAD8 rcm_19.rom  0x20000 0x20000


[End]
 
[verifyRoms]
rcm_03.rom	0x00000000
rcm_07.rom	0x00000000
rcm_12.rom	0x00000000
rcm_16.rom	0x00000000
rcm_01.rom	0x00000000
rcm_05.rom	0x00000000
rcm_10.rom	0x00000000
rcm_14.rom	0x00000000
rcm_04.rom	0x00000000
rcm_08.rom	0x00000000
rcm_13.rom	0x00000000
rcm_17.rom	0x00000000
rcm_02.rom	0x00000000
rcm_06.rom	0x00000000
rcm_11.rom	0x00000000
rcm_15.rom	0x00000000
rcm23a.bin	0x00000000
[End]
