#                                     #
# Dai Makai-Mura 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... #

#                      #
# The name of the game #
#                      #
[general]

GAMENAME    " Dai Makai-Mura "
DIRECTORY   GHOULSJ
PARENT      GHOULS
CPSTYPE     CPS1
DATE		1988

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

0x000000  0x0FFFFF  MAINROM
0x900000  0x92ffff  VIDEORAM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

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

[dataReadWordRegions]

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

[dataWriteByteRegions]

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

[dataWriteWordRegions]

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

#                                         #
# Protection (No multiply protection yet) #
#                                         #
[protection]

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

#                      #
# Graphics information #
#                      #
[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 0x1000 0x080000 0x200000 0x100000 


#                     #
# program information #
#                     #
[program]

ROMSIZE 0x100000
# Type of load path 1                    path 2                       Size    where #
LOADROMEVENODD ghlj29.bin ghlj30.bin    0x20000 0x00000
LOADROMEVENODD ghlj27.bin ghlj28.bin    0x20000 0x40000
LOADROM16RSWAP ghl17.bin                0x80000 0x80000


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

LAYERCONTROL    0x66                # Layer control port                     #
SCROLL1BASECODE 0x0000
SCROLL1CODEMASK 0x1000
SCROLL2BASECODE 0x0000
SCROLL2CODEMASK 0x8000
SCROLL3BASECODE 0x0000
SCROLL3CODEMASK 0x1000
PRIORITYMASKS   0x68 0x6a 0x6c 0x6e # the ports where to read the priorities #
LAYERENABLE     0x02 0x04 0x08 0x30



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

[samples]
TOTAL 0x20000

[End]


[verifyRoms]
ghl6.bin	0x4ba90b59
ghl11.bin	0x37c9b6c6
ghl20.bin	0x2f1345b4
ghl12.bin	0xda088d61
ghl21.bin	0x17e11df0
ghl5.bin	0x0ba9c0b0
ghl09.bin	0xae24bb19
ghl18.bin	0xd34e271a
ghl10.bin	0xbcc0f28c
ghl19.bin	0x2a40166a
ghl8.bin	0x4bdee9de
ghl15.bin	0x3c2a212a
ghl24.bin	0x889aac05
ghl16.bin	0xf187ba1c
ghl25.bin	0x29f79c78
ghl7.bin	0x5d760ab9
ghl13.bin	0x3f70dd37
ghl22.bin	0x7e69e2e6
ghl14.bin	0x20f85c03
ghl23.bin	0x8426144b
ghlj29.bin	0x82fd1798
ghlj30.bin	0x35366ccc
ghlj27.bin	0xa17c170a
ghlj28.bin	0x6af0b391
ghl17.bin	0x3ea1b0f2
[End]
