#													#
# Space Harrier driver								#
#													#

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

GAMENAME    " Space Harrier "
DIRECTORY   SHARRIER
CPSTYPE     SYSTEM16
DATE		1985

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

0x00000000 0x0003FFFF CODE
0x00040000 0x0004FFFF EXTRARAM
0x00FF0000 0x00FFFFFF ONBOARDRAM
	
[dataReadRegions]

0x00000000 0x0003FFFF CODE
0x00040000 0x0004FFFF EXTRARAM
0x00100000 0x00107FFF TILERAM
0x00108000 0x00108FFF TEXTRAM
0x00110000 0x00110FFF PALETTERAM
0x00124000 0x00127fff SHAREDRAM 2
0x00130000 0x00130FFF SPRITERAM
0x00140002 0x00140003 COINCONTROL
0x00140024 0x00140027 MOTORSTATUS
0x00140000 0x0014FFFF IORAM
0x00c68000 0x00c68fff SHAREDRAM 1
0x00FF0000 0x00FFFFFF ONBOARDRAM



[dataWriteRegions]

0x00040000 0x0004FFFF EXTRARAM
0x00100000 0x00107FFF TILERAM
0x00108000 0x00108FFF TEXTRAM
0x00110000 0x00110FFF PALETTERAM
0x00124000 0x00127fff SHAREDRAM 2
0x00130000 0x00130FFF SPRITERAM
0x00140002 0x00140003 COINCONTROL
0x00140000 0x0014FFFF IORAM
0x00c68000 0x00c68fff SHAREDRAM 1
0x00FF0000 0x00FFFFFF ONBOARDRAM

[cpu2]
[programRegions]

0x00000000 0x0003FFFF CODE
0x00c68000 0x00c68FFF SHAREDRAM 1	
0x00c7c000 0x00c7FFFF SHAREDRAM 2

[dataReadRegions]

0x00000000 0x0003FFFF CODE
0x00c68000 0x00c68FFF SHAREDRAM 1	
0x00c7c000 0x00c7FFFF SHAREDRAM 2


[dataWriteRegions]

0x00c68000 0x00c68FFF SHAREDRAM 1	
0x00c7c000 0x00c7FFFF SHAREDRAM 2

#                                         #
# Protection                              #
#                                         #
[protection]


#                      #
# Graphics information #
#                      #
[graphics]

[chars]
ROMSIZE 0x18000
MERGE  sic60.bin sic46.bin sic31.bin 0x08000 0x00000

[sprites]
BANKS		8
BANKSIZE	0x20000	
ROMSIZE		0x100000
BANKTABLE	0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LOAD8 ic36.bin 0x8000 0x00000
LOAD8 ic35.bin 0x8000 0x08000
LOAD8 ic34.bin 0x8000 0x10000
LOAD8 ic33.bin 0x8000 0x18000
LOAD8 ic32.bin 0x8000 0x20000
LOAD8 ic31.bin 0x8000 0x28000
LOAD8 ic30.bin 0x8000 0x30000
LOAD8 ic29.bin 0x8000 0x38000
LOAD8 ic28.bin 0x8000 0x40000
LOAD8 ic27.bin 0x8000 0x48000
LOAD8 ic26.bin 0x8000 0x50000
LOAD8 ic25.bin 0x8000 0x58000
LOAD8 ic24.bin 0x8000 0x60000
LOAD8 ic23.bin 0x8000 0x68000
LOAD8 ic22.bin 0x8000 0x70000
LOAD8 ic21.bin 0x8000 0x78000
LOAD8 ic118.bin 0x8000 0x80000
LOAD8 ic17.bin 0x8000 0x88000
LOAD8 ic16.bin 0x8000 0x90000
LOAD8 ic15.bin 0x8000 0x98000
LOAD8 ic14.bin 0x8000 0xa0000
LOAD8 ic13.bin 0x8000 0xa8000
LOAD8 ic12.bin 0x8000 0xb0000
LOAD8 ic11.bin 0x8000 0xb8000
LOAD8 ic8.bin  0x8000 0xc0000
LOAD8 ic7.bin  0x8000 0xc8000
LOAD8 ic6.bin  0x8000 0xd0000
LOAD8 ic5.bin  0x8000 0xd8000
LOAD8 ic4.bin  0x8000 0xe0000
LOAD8 ic3.bin  0x8000 0xe8000
LOAD8 ic2.bin  0x8000 0xf0000
LOAD8 ic1.bin  0x8000 0xf8000



#                     #
# program information #
#                     #
[program]
MERGE ic97.bin  ic84.bin		0x08000 0x00000
MERGE ic98.bin  ic85.bin		0x08000 0x10000
MERGE ic99.bin  ic86.bin		0x08000 0x20000
MERGE ic100.bin ic87.bin		0x08000 0x30000

[patch]

[patchend]

[CPU2program]
MERGE ic54.bin	ic67.bin		0x08000 0x00000

[CPU2patch]

[patchend]

[road]
ROMSIZE 0x40000
pic2.bin 0x8000

#                        #
# The game configuration #
#                        #
[configuration]
reg_p1ctrl					0x1000
reg_p2ctrl					0x0004
reg_sw1						0x0014
reg_sw2						0x0016
reg_gamecf					0x0010
spritelistEndWidthMarker	0xFFFF
reg_fg_scrollx				0x0ff8
reg_bg_scrollx				0x0ffa
reg_fg_scrolly				0x0f25
reg_bg_scrolly				0x0f27
reg_fg_pages				0x8e9f
reg_bg_pages				0x0E82
reg_scroll_x_shift			0x140
reg_scroll_y_shift			0x100
sprxoffset					0xbc


[z80]
TOTAL 0x8000
LOAD8 epr12127.a10 0x8000 0x000000


[End]
[verifyRoms]
[End]
