[Techtoolslist] Ivan 'Ironman' Stewart's Super Off Road trac pac fluke 9010a script

David Ryskalczyk d235j.1 at gmail.com
Mon Feb 1 22:49:22 EST 2016


I'm not sure how it got messed up so badly! It can be found in MAME here:

https://github.com/mamedev/mame/blob/master/src/mame/drivers/leland.cpp#L59

David

> On Feb 1, 2016, at 7:19 PM, John Robertson <jrr at flippers.com> wrote:
> 
> On 11/05/2013 9:41 AM, John Doe wrote:
>> 59/*************************************  60 *  61 * Master CPU memory handlers  62 *  63 *************************************/ 64 65static ADDRESS_MAP_START( master_map_program, AS_PROGRAM, 8, leland_state )  66 AM_RANGE(0x0000, 0x1fff) AM_ROM  67 AM_RANGE(0x2000, 0x9fff) AM_ROMBANK("bank1")  68 AM_RANGE(0xa000, 0xdfff) AM_ROMBANK("bank2") AM_WRITE(leland_battery_ram_w) AM_SHARE("battery")  69 AM_RANGE(0xe000, 0xefff) AM_RAM  70 AM_RANGE(0xf000, 0xf3ff) AM_READWRITE(leland_gated_paletteram_r, leland_gated_paletteram_w) AM_SHARE("paletteram")  71 AM_RANGE(0xf800, 0xf801) AM_WRITE(leland_master_video_addr_w)  72 ADDRESS_MAP_END  73 74 75static ADDRESS_MAP_START( master_map_io, AS_IO, 8, leland_state )  76 ADDRESS_MAP_GLOBAL_MASK(0xff)  77 AM_RANGE(0xf0, 0xf0) AM_WRITE(leland_master_alt_bankswitch_w)  78 AM_RANGE(0xf2, 0xf2) AM_DEVREADWRITE_LEGACY("custom", leland_80186_response_r, leland_80186_command_lo_w)  79 AM_RANGE(0xf4, 0xf4) AM
>>  _DEVWRITE_LEGACY("custom", leland_80186_command_hi_w)  80 AM_RANGE(0xfd, 0xff) AM_READWRITE(leland_master_analog_key_r, leland_master_analog_key_w)  81 ADDRESS_MAP_END  82 83 84 85/*************************************  86 *  87 * Slave CPU memory handlers  88 *  89 *************************************/ 90 91static ADDRESS_MAP_START( slave_small_map_program, AS_PROGRAM, 8, leland_state )  92 AM_RANGE(0x0000, 0x1fff) AM_ROM  93 AM_RANGE(0x2000, 0xdfff) AM_ROMBANK("bank3")  94 AM_RANGE(0xe000, 0xefff) AM_RAM  95 AM_RANGE(0xf800, 0xf801) AM_WRITE(leland_slave_video_addr_w)  96 AM_RANGE(0xf802, 0xf802) AM_READ(leland_raster_r)  97 AM_RANGE(0xf803, 0xf803) AM_WRITE(leland_slave_small_banksw_w)  98 ADDRESS_MAP_END  99 100 101static ADDRESS_MAP_START( slave_large_map_program, AS_PROGRAM, 8, leland_state )  102 AM_RANGE(0x0000, 0x1fff) AM_ROM  103 AM_RANGE(0x4000, 0xbfff) AM_ROMBANK("bank3")  104 AM_RANGE(0xc000, 0xc000) AM_WRITE(leland_slave_large_banksw_w)  105 AM_RANGE(0xe000, 0
>>  xefff) AM_RAM  106 AM_RANGE(0xf800, 0xf801) AM_WRITE(leland_slave_video_addr_w)  107 AM_RANGE(0xf802, 0xf802) AM_READ(leland_raster_r)  108 ADDRESS_MAP_END  109 110 111static ADDRESS_MAP_START( slave_map_io, AS_IO, 8, leland_state )  112 ADDRESS_MAP_GLOBAL_MASK(0xff)  113 AM_RANGE(0x00, 0x1f) AM_READWRITE(leland_svram_port_r, leland_svram_port_w)  114 AM_RANGE(0x40, 0x5f) AM_READWRITE(leland_svram_port_r, leland_svram_port_w)  115 ADDRESS_MAP_END  116look at it and you'll find the memory map...
> 
> I'm working on the Super Off Road w/Track Pack and wanted a tidier map so I took the above (thanks John Doe!) and edited it to produce:
> 
> /*************************************
> *
> * Master CPU memory handlers
> *
> *************************************/
> 
> static ADDRESS_MAP_START( master_map_program, AS_PROGRAM, 8, leland_state )
> AM_RANGE(0x0000, 0x1fff) AM_ROM
> AM_RANGE(0x2000, 0x9fff) AM_ROMBANK("bank1")
> AM_RANGE(0xa000, 0xdfff) AM_ROMBANK("bank2") AM_WRITE(leland_battery_ram_w) AM_SHARE("battery")
> AM_RANGE(0xe000, 0xefff) AM_RAM
> AM_RANGE(0xf000, 0xf3ff) AM_READWRITE(leland_gated_paletteram_r, leland_gated_paletteram_w) AM_SHARE("paletteram")
> AM_RANGE(0xf800, 0xf801) AM_WRITE(leland_master_video_addr_w)
> ADDRESS_MAP_END
> 
> 
> static ADDRESS_MAP_START( master_map_io, AS_IO, 8, leland_state )
> ADDRESS_MAP_GLOBAL_MASK(0xff)
> AM_RANGE(0xf0, 0xf0) AM_WRITE(leland_master_alt_bankswitch_w)
> AM_RANGE(0xf2, 0xf2) AM_DEVREADWRITE_LEGACY("custom", leland_80186_response_r, leland_80186_command_lo_w)
> AM_RANGE(0xf4, 0xf4) AM_DEVWRITE_LEGACY("custom", leland_80186_command_hi_w)
> AM_RANGE(0xfd, 0xff) AM_READWRITE(leland_master_analog_key_r, leland_master_analog_key_w)
> ADDRESS_MAP_END
> 
> 
> 
> /*************************************
> *
> * Slave CPU memory handlers
> *
> *************************************/
> 
> static ADDRESS_MAP_START( slave_small_map_program, AS_PROGRAM, 8, leland_state )
> AM_RANGE(0x0000, 0x1fff) AM_ROM
> AM_RANGE(0x2000, 0xdfff) AM_ROMBANK("bank3")
> AM_RANGE(0xe000, 0xefff) AM_RAM
> AM_RANGE(0xf800, 0xf801) AM_WRITE(leland_slave_video_addr_w)
> AM_RANGE(0xf802, 0xf802) AM_READ(leland_raster_r)
> AM_RANGE(0xf803, 0xf803) AM_WRITE(leland_slave_small_banksw_w)
> ADDRESS_MAP_END
> 
> 
> static ADDRESS_MAP_START( slave_large_map_program, AS_PROGRAM, 8, leland_state )
> AM_RANGE(0x0000, 0x1fff) AM_ROM
> AM_RANGE(0x4000, 0xbfff) AM_ROMBANK("bank3")
> AM_RANGE(0xc000, 0xc000) AM_WRITE(leland_slave_large_banksw_w)
> AM_RANGE(0xe000, 0xefff) AM_RAM
> AM_RANGE(0xf800, 0xf801) AM_WRITE(leland_slave_video_addr_w)
> AM_RANGE(0xf802, 0xf802) AM_READ(leland_raster_r)
> ADDRESS_MAP_END
> 
> 
> static ADDRESS_MAP_START( slave_map_io, AS_IO, 8, leland_state )
> ADDRESS_MAP_GLOBAL_MASK(0xff)
> AM_RANGE(0x00, 0x1f) AM_READWRITE(leland_svram_port_r, leland_svram_port_w)
> AM_RANGE(0x40, 0x5f) AM_READWRITE(leland_svram_port_r, leland_svram_port_w)
> ADDRESS_MAP_END
> 
> Perhaps that will help someone!
> 
> John :-#)#
> -- 
> How to subscribe or unsubscribe from TTL http://seven.pairlist.net/mailman/listinfo/techtoolslist
> 
> _______________________________________________
> Techtoolslist mailing list
> Techtoolslist at flippers.com
> https://pairlist7.pair.net/mailman/listinfo/techtoolslist
> FTP site is: ftp://ttl.arcadetech.org/TTL/Test_Equipment
> Archive site: http://seven.pairlist.net/pipermail/techtoolslist/



More information about the Techtoolslist mailing list