#                                     #
# Lost worlds driver                  #
#                                     #

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

GAMENAME    " Lost Worlds "  
DIRECTORY   LOSTWRLD
PARENT      FORGOTTN
CPSTYPE     CPS1
DATE		1988

#                 #
# 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
0x90c000  0x90ffff  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
0x90c000  0x90ffff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x915800  0x930000  EXTRARAM  2

[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x90c000  0x90ffff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x915800  0x930000  EXTRARAM 2

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x90c000  0x90ffff  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   0x0005

#                      #
# Graphics information #
#                      #
[graphics]

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

# Path                     Size    Where  #
LOAD8 lw-06 0x80000 0x000000
LOAD8 lw-05 0x80000 0x080000
LOAD8 lw-02 0x80000 0x100000
LOAD8 lw-01 0x80000 0x180000
LOAD8 lw-13 0x80000 0x200000
LOAD8 lw-12 0x80000 0x280000
LOAD8 lw-09 0x80000 0x300000
LOAD8 lw-08 0x80000 0x380000

#               Number of tiles Base addr   Decode info #
DECODECHARS     0x2000          0x0e0000    0x200000
DECODESPRITES   0x4000          0x080000    0x200000 0x100000
DECODESCROLL2   0x2000          0x000000    0x200000 0x100000
DECODESCROLL3   0x0800          0x040000    0x200000 0x100000 


#                     #
# program information #
#                     #
[program]

ROMSIZE 0x100000

# Type of load path 1                    path 2                       Size    where #
LOADROMEVENODD lw-11c.14f lw-15c.14g   0x20000 0x00000
LOADROMEVENODD lw-10c.13f lw-14c.13g   0x20000 0x40000
LOADROM16SWAP  lw-07                0x80000 0x80000



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

LAYERCONTROL    0x66                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x2000              # scroll1 tile mask(=number of tiles)    #
SCROLL2BASECODE 0x0000              # scroll2 tile base                      #
SCROLL2CODEMASK 0x2000              # scroll2 tile mask(=number of tiles)    #
SCROLL3BASECODE 0x0000              # scroll3 tile base                      #
SCROLL3CODEMASK 0x0800              # 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 1                    # 0=no 1=yes #

[z80]
TOTAL 0x10000
LOAD8 lwu00 0x10000 0x000000 # main rom and banks #

[samples]
TOTAL 0x40000
LOAD8 lw-03.14c  0x20000 0x00000
LOAD8 lw-04.13c  0x20000 0x20000


[End]
[verifyRoms]
lw-06	0x5b9edffc
lw-05	0xe4552fd7
lw-02	0x43e6c5c8
lw-01	0x0318f298
lw-13	0x8e058ef5
lw-12	0x8e6a832b
lw-09	0x899cb4ad
lw-08	0x25a8e43c
lw-11c.14f	0x67e42546
lw-15c.14g	0x402e2a46
lw-10c.13f	0xc46479d7
lw-14c.13g	0x97670f4a
lw-07	0xfd252a26
[End]
