diff options
Diffstat (limited to 'src/mame/drivers/astrcorp.cpp')
-rw-r--r-- | src/mame/drivers/astrcorp.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/astrcorp.cpp b/src/mame/drivers/astrcorp.cpp index 76146864009..c02cbf4b09c 100644 --- a/src/mame/drivers/astrcorp.cpp +++ b/src/mame/drivers/astrcorp.cpp @@ -97,6 +97,10 @@ public: void showhand(machine_config &config); void speeddrp(machine_config &config); void showhanc(machine_config &config); + void showhanc_map(address_map &map); + void showhand_map(address_map &map); + void skilldrp_map(address_map &map); + void speeddrp_map(address_map &map); }; /*************************************************************************** @@ -307,7 +311,7 @@ READ16_MEMBER(astrocorp_state::astrocorp_unk_r) } -static ADDRESS_MAP_START( showhand_map, AS_PROGRAM, 16, astrocorp_state ) +ADDRESS_MAP_START(astrocorp_state::showhand_map) AM_RANGE( 0x000000, 0x01ffff ) AM_ROM AM_RANGE( 0x050000, 0x050fff ) AM_RAM AM_SHARE("spriteram") AM_RANGE( 0x052000, 0x052001 ) AM_WRITE(astrocorp_draw_sprites_w) @@ -322,7 +326,7 @@ static ADDRESS_MAP_START( showhand_map, AS_PROGRAM, 16, astrocorp_state ) AM_RANGE( 0x0d0000, 0x0d0001 ) AM_READ(astrocorp_unk_r) AM_DEVWRITE8("oki", okim6295_device, write, 0xff00) ADDRESS_MAP_END -static ADDRESS_MAP_START( showhanc_map, AS_PROGRAM, 16, astrocorp_state ) +ADDRESS_MAP_START(astrocorp_state::showhanc_map) AM_RANGE( 0x000000, 0x01ffff ) AM_ROM AM_RANGE( 0x060000, 0x0601ff ) AM_RAM_DEVWRITE("palette", palette_device, write16) AM_SHARE("palette") AM_RANGE( 0x070000, 0x070001 ) AM_WRITE(astrocorp_sound_bank_w) @@ -337,7 +341,7 @@ static ADDRESS_MAP_START( showhanc_map, AS_PROGRAM, 16, astrocorp_state ) AM_RANGE( 0x0e0000, 0x0e0001 ) AM_READ(astrocorp_unk_r) AM_DEVWRITE8("oki", okim6295_device, write, 0xff00) ADDRESS_MAP_END -static ADDRESS_MAP_START( skilldrp_map, AS_PROGRAM, 16, astrocorp_state ) +ADDRESS_MAP_START(astrocorp_state::skilldrp_map) AM_RANGE( 0x000000, 0x03ffff ) AM_ROM AM_RANGE( 0x200000, 0x200fff ) AM_RAM AM_SHARE("spriteram") AM_RANGE( 0x202000, 0x202001 ) AM_WRITE(astrocorp_draw_sprites_w) @@ -352,7 +356,7 @@ static ADDRESS_MAP_START( skilldrp_map, AS_PROGRAM, 16, astrocorp_state ) AM_RANGE( 0x600000, 0x600001 ) AM_DEVREADWRITE8("oki", okim6295_device, read, write, 0x00ff) ADDRESS_MAP_END -static ADDRESS_MAP_START( speeddrp_map, AS_PROGRAM, 16, astrocorp_state ) +ADDRESS_MAP_START(astrocorp_state::speeddrp_map) AM_RANGE( 0x000000, 0x01ffff ) AM_ROM AM_RANGE( 0x280000, 0x283fff ) AM_RAM AM_SHARE("nvram") // battery AM_RANGE( 0x380000, 0x380fff ) AM_RAM AM_SHARE("spriteram") |