#                                     #
# Ghouls'n'ghosts driver              #
#                                     #
# Note: normalement, on a pas besoin  #
# de byteswapper les roms de code     #
# mais ici, il faut le faire pour     #
# ghl17.bin, sinon ca ne marche pas... #

[general]

GAMENAME    " Ghouls'n Ghosts (World) "
DIRECTORY   GHOULS
CPSTYPE     CPS1
DATE		1988

[programRegions]

0x000000  0x0FFFFF  MAINROM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

0x000000  0x0FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800100  0x8001ff  VIDEOPORTS
0x900000  0x92ffff  VIDEORAM 
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1

[dataReadWordRegions]

0x000000  0x0FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800100  0x8001ff  VIDEOPORTS
0x900000  0x92ffff  VIDEORAM 
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1

[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x900000  0x92ffff  VIDEORAM 
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x900000  0x92ffff  VIDEORAM 
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1

[protection]

PORT    0xff
VALUE   0xff


[graphics]

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

# Path                     		Size    Where  #
LOAD8 	   ghl6.bin	   		0x80000 0x000000
LOADROMEVENODD ghl11.bin ghl20.bin 	0x10000 0x080000
LOADROMEVENODD ghl12.bin ghl21.bin 	0x10000 0x0a0000
LOAD8 	   ghl5.bin    		0x80000 0x100000
LOADROMEVENODD ghl09.bin ghl18.bin 	0x10000 0x180000
LOADROMEVENODD ghl10.bin ghl19.bin 	0x10000 0x1a0000
LOAD8 	   ghl8.bin    		0x80000 0x200000
LOADROMEVENODD ghl15.bin ghl24.bin 	0x10000 0x280000
LOADROMEVENODD ghl16.bin ghl25.bin 	0x10000 0x2a0000
LOAD8 	   ghl7.bin    		0x80000 0x300000
LOADROMEVENODD ghl13.bin ghl22.bin 	0x10000 0x380000
LOADROMEVENODD ghl14.bin ghl23.bin 	0x10000 0x3a0000


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

[program]
ROMSIZE 0x100000

LOADROMEVENODD ghl29.bin ghl30.bin    0x20000 0x00000
LOADROMEVENODD ghl27.bin ghl28.bin    0x20000 0x40000
LOADROM16RSWAP ghl17.bin              0x80000 0x80000

[verifyRoms]
[configuration]

LAYERCONTROL    0x66
SCROLL1BASECODE 0x0000
SCROLL1CODEMASK 0x1000
SCROLL2BASECODE 0x0000
SCROLL2CODEMASK 0x4000
SCROLL3BASECODE 0x0000
SCROLL3CODEMASK 0x2000
PRIORITYMASKS   0x68 0x6a 0x6c 0x6e
LAYERENABLE     0x02 0x04 0x08 0x30

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

[samples]
TOTAL 0x20000

[End]
