#                                    	 	#
# Saturday Night Slam Masters (World) driver    #
#                                     		#
# Driver by D.W. Raingeard            		#
# cinati@caramail.com                 		#
#                                     		#

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

GAMENAME    " Saturday Night Slam Masters (World) "
DIRECTORY   SLAMMAST
CPSTYPE     CPS1
DATE		1993

#                 #
# 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
0xf1c001  0xf1c001  INPUTPORT1
0xf1c003  0xf1c003  INPUTPORT1
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x916000  0x92ffff  EXTRARAM  2
0xf18000  0xf19fff  QSOUND1
0xf1e000  0xf1ffff  QSOUND2
0xf00000  0xf0ffff  EXTRARAM 4

[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
0xf1c001  0xf1c001  INPUTPORT1
0xf1c003  0xf1c003  INPUTPORT1
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x916000  0x92ffff  EXTRARAM  2
0xf18000  0xf19fff  QSOUND1
0xf1e000  0xf1ffff  QSOUND2
0xf00000  0xf0ffff  EXTRARAM 4


[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM 
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x916000  0x92ffff  EXTRARAM  2
0xf18000  0xf19fff  QSOUND1
0xf1e000  0xf1ffff  QSOUND2

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM 
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x916000  0x92ffff  EXTRARAM  2
0xf18000  0xf19fff  QSOUND1
0xf1e000  0xf1ffff  QSOUND2

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

# If port(PORT) is read, returns (VALUE) #
PORT    0x6e
VALUE   0x0c01

#                      #
# Graphics information #
#                      #
[graphics]

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

# Path                     Size    Where  #
LOAD8 mb_gfx02.rom 0x80000 0x000000
LOAD8 mb_gfx06.rom 0x80000 0x080000
LOAD8 mb_gfx11.rom 0x80000 0x100000
LOAD8 mb_gfx01.rom 0x80000 0x180000
LOAD8 mb_gfx05.rom 0x80000 0x200000
LOAD8 mb_gfx10.rom 0x80000 0x280000
LOAD8 mb_gfx04.rom 0x80000 0x300000
LOAD8 mb_gfx08.rom 0x80000 0x380000
LOAD8 mb_gfx13.rom 0x80000 0x400000
LOAD8 mb_gfx03.rom 0x80000 0x480000
LOAD8 mb_gfx07.rom 0x80000 0x500000
LOAD8 mb_gfx12.rom 0x80000 0x580000

#               Number of tiles Base addr   Decode info #
DECODECHARS     0x2000          0x000000    0x300000
DECODESPRITES   0xC000          0x000000    0x300000 0x180000
DECODESCROLL2   0xC000          0x000000    0x300000 0x180000
DECODESCROLL3   0x1000          0x100000    0x300000 0x180000 


#                     #
# program information #
#                     #
[program]

ROMSIZE 0x200000

# Type of load path 1                    path 2                       Size    where #
LOADROM16SWAP  mbe_23e.rom 		    0x80000 0x000000
LOADROMEVENODD mbe_24b.rom mbe_28b.rom      0x20000 0x080000
LOADROMEVENODD mbe_25b.rom mbe_29b.rom      0x20000 0x0c0000
LOADROM16SWAP  mbe_21a.rom                  0x80000 0x100000
LOADROM16SWAP  mbe_20a.rom                  0x80000 0x180000
FILLEXTRARAM   mb_qa.rom		    0x08000 4


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

LAYERCONTROL    0x56                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x2000              # scroll1 tile mask(=number of tiles)    #
SCROLL2BASECODE 0x0000              # scroll2 tile base                      #
SCROLL2CODEMASK 0xC000              # scroll2 tile mask(=number of tiles)    #
SCROLL3BASECODE 0x0000              # scroll3 tile base                      #
SCROLL3CODEMASK 0x1000              # scroll3 tile mask(=number of tiles)    #
PRIORITYMASKS   0x40 0x42 0x68 0x6a # the ports where to read the priorities #
LAYERENABLE 0x04 0x08 0x10 0x00
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 1                    # 0=no 1=yes #

[z80]
mb_qa.rom

[samples]
mb_q1.rom  0x80000
mb_q2.rom  0x80000
mb_q3.rom  0x80000
mb_q4.rom  0x80000
mb_q5.rom  0x80000
mb_q6.rom  0x80000
mb_q7.rom  0x80000
mb_q8.rom  0x80000


[End]
[verifyRoms]
mb_gfx02.rom	0x2ffbfea8
mb_gfx06.rom	0xb76c70e9
mb_gfx11.rom	0x8fb94743
mb_gfx01.rom	0x41468e06
mb_gfx05.rom	0x506b9dc9
mb_gfx10.rom	0x97976ff5
mb_gfx04.rom	0x1eb9841d
mb_gfx08.rom	0xe60c9556
mb_gfx13.rom	0xda810d5f
mb_gfx03.rom	0xf453aa9e
mb_gfx07.rom	0xaff8c2fb
mb_gfx12.rom	0xb350a840
mbe_23e.rom	0x5394057a
mbe_24b.rom	0x95d5e729
mbe_28b.rom	0xb1c7cbcb
mbe_25b.rom	0xa50d3fd4
mbe_29b.rom	0x08e32e56
mbe_21a.rom	0xd5007b05
mbe_20a.rom	0xaeb557b0
mb_qa.rom	0xe21a03c4
[End]
