#                                     #
# Pnickies (Japan) driver             #
#                                     #
#                                     #
 
#                      #
# The name of the game #
#                      #
[general]

GAMENAME    " Pnickies (Japan) "
DIRECTORY   PNICKJ
CPSTYPE     CPS1
DATE		1994

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

0x000000  0x0FFFFF  MAINROM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

0x000000  0x0FFFFF  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  0x0FFFFF  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    0x60
VALUE   0x04

#                      #
# Graphics information #
#                      #
[graphics]

# the total size of the graphics roms #
TOTAL 0x200000
USEALTERNATEPIXELFORMAT
# Path                     Size    Where  #
LOADROMEVENODD pnij26.bin  pnij18.bin 0x20000 0x000000
LOADROMEVENODD pnij27.bin  pnij19.bin 0x20000 0x040000
LOADROMEVENODD pnij09.bin  pnij01.bin 0x20000 0x080000
LOADROMEVENODD pnij10.bin  pnij02.bin 0x20000 0x0c0000
LOADROMEVENODD pnij38.bin  pnij32.bin 0x20000 0x100000
LOADROMEVENODD pnij39.bin  pnij33.bin 0x20000 0x140000
LOADROMEVENODD pnij13.bin  pnij05.bin 0x20000 0x180000
LOADROMEVENODD pnij14.bin  pnij06.bin 0x20000 0x1c0000


#               Number of tiles Base addr   Decode info #
DECODECHARS     0x1000          0x000000    0x100000
DECODESPRITES   0x2000          0x000000    0x100000 0x080000
DECODESCROLL2   0x4000          0x000000    0x100000 0x080000
DECODESCROLL3   0x1000          0x000000    0x100000 0x080000 


#                     #
# program information #
#                     #
[program]
ROMSIZE 0x100000

# Type of load path 1                    path 2                       Size    where #
LOADROMEVENODD pnij36.bin                pnij42.bin                   0x20000 0x00000


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

LAYERCONTROL    0x66                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x1000              # scroll1 tile mask(=number of tiles)    #
SCROLL2BASECODE 0x0000              # scroll2 tile base                      #
SCROLL2CODEMASK 0x4000              # 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
FORCESCROLLPRIORITY 0xff            # Hack to fix some priority problems btw #
                                    # scroll2 and 3. The folowing values are #
                                    # valid:                                 #
                                    # 0xff: no hack                          #
                                    # 0x01: scroll3 first. Scroll2 after.    #
                                    # 0x00: scroll2 first  Scroll3 after.    #
FORCESCROLL2ON 0                    # 0=no 1=yes #

[z80]
TOTAL 0x10000
LOAD8 pnij17.bin 0x10000 0x000000 # main rom and banks #

[samples]
TOTAL 0x40000
LOAD8 pnij24.bin  0x20000 0x00000
LOAD8 pnij25.bin  0x20000 0x20000


[End]
[verifyRoms]
pnij26.bin	0xe2af981e
pnij18.bin	0xf17a0e56
pnij27.bin	0x83d5cb0e
pnij19.bin	0xaf08b230
pnij09.bin	0x48177b0a
pnij01.bin	0x01a0f311
pnij10.bin	0xc2acc171
pnij02.bin	0x0e21fc33
pnij38.bin	0xeb75bd8c
pnij32.bin	0x84560bef
pnij39.bin	0x70fbe579
pnij33.bin	0x3ed2c680
pnij13.bin	0x406451b0
pnij05.bin	0x8c515dc0
pnij14.bin	0x7fe59b19
pnij06.bin	0x79f4bfe3
pnij36.bin	0x2d4ffb2b
pnij42.bin	0xc085dfaf
[End]
