summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/sigmab98.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sigmab98.cpp')
-rw-r--r--src/mame/drivers/sigmab98.cpp54
1 files changed, 36 insertions, 18 deletions
diff --git a/src/mame/drivers/sigmab98.cpp b/src/mame/drivers/sigmab98.cpp
index 65a6430fe18..a4b1faad03f 100644
--- a/src/mame/drivers/sigmab98.cpp
+++ b/src/mame/drivers/sigmab98.cpp
@@ -302,6 +302,22 @@ public:
void animalc(machine_config &config);
void sammymdl(machine_config &config);
void itazuram(machine_config &config);
+ void animalc_io(address_map &map);
+ void animalc_map(address_map &map);
+ void dashhero_io_map(address_map &map);
+ void dodghero_io_map(address_map &map);
+ void dodghero_mem_map(address_map &map);
+ void gegege_io_map(address_map &map);
+ void gegege_mem_map(address_map &map);
+ void gocowboy_io(address_map &map);
+ void gocowboy_map(address_map &map);
+ void haekaka_io(address_map &map);
+ void haekaka_map(address_map &map);
+ void itazuram_io(address_map &map);
+ void itazuram_map(address_map &map);
+ void pyenaget_io(address_map &map);
+ void tdoboon_io(address_map &map);
+ void tdoboon_map(address_map &map);
};
@@ -337,6 +353,8 @@ public:
TIMER_DEVICE_CALLBACK_MEMBER(lufykzku_irq);
void lufykzku(machine_config &config);
+ void lufykzku_io_map(address_map &map);
+ void lufykzku_mem_map(address_map &map);
};
@@ -782,7 +800,7 @@ READ8_MEMBER(sigmab98_state::dodghero_regs2_r)
}
}
-static ADDRESS_MAP_START( dodghero_mem_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::dodghero_mem_map)
AM_RANGE( 0x0000, 0x7fff ) AM_ROM
AM_RANGE( 0x8000, 0xa7ff ) AM_ROMBANK("rombank")
@@ -803,7 +821,7 @@ static ADDRESS_MAP_START( dodghero_mem_map, AS_PROGRAM, 8, sigmab98_state )
AM_RANGE( 0xf000, 0xffff ) AM_RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( dodghero_io_map, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::dodghero_io_map)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x00, 0x01 ) AM_DEVREADWRITE("ymz", ymz280b_device, read, write )
@@ -978,7 +996,7 @@ WRITE8_MEMBER(sigmab98_state::c8_w)
show_outputs();
}
-static ADDRESS_MAP_START( gegege_mem_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::gegege_mem_map)
AM_RANGE( 0x0000, 0x7fff ) AM_ROM
AM_RANGE( 0x8000, 0x9fff ) AM_ROMBANK("rombank")
@@ -999,7 +1017,7 @@ static ADDRESS_MAP_START( gegege_mem_map, AS_PROGRAM, 8, sigmab98_state )
AM_RANGE( 0xf000, 0xffff ) AM_RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( gegege_io_map, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::gegege_io_map)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x00, 0x01 ) AM_DEVREADWRITE("ymz", ymz280b_device, read, write )
@@ -1077,7 +1095,7 @@ READ8_MEMBER(sigmab98_state::dashhero_regs2_r)
}
}
-static ADDRESS_MAP_START( dashhero_io_map, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::dashhero_io_map)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x00, 0x01 ) AM_DEVREADWRITE("ymz", ymz280b_device, read, write )
@@ -1209,7 +1227,7 @@ WRITE8_MEMBER(lufykzku_state::lufykzku_c8_w)
show_outputs();
}
-static ADDRESS_MAP_START( lufykzku_mem_map, AS_PROGRAM, 8, lufykzku_state )
+ADDRESS_MAP_START(lufykzku_state::lufykzku_mem_map)
AM_RANGE( 0x0000, 0x7fff ) AM_ROM
AM_RANGE( 0x8000, 0xbfff ) AM_RAMBANK("romrambank") AM_SHARE("nvram") // ROM | NVRAM
@@ -1226,7 +1244,7 @@ static ADDRESS_MAP_START( lufykzku_mem_map, AS_PROGRAM, 8, lufykzku_state )
AM_RANGE( 0xfc00, 0xffff ) AM_RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( lufykzku_io_map, AS_IO, 8, lufykzku_state )
+ADDRESS_MAP_START(lufykzku_state::lufykzku_io_map)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x00, 0x00 ) AM_DEVWRITE("oki", okim9810_device, write )
AM_RANGE( 0x01, 0x01 ) AM_DEVWRITE("oki", okim9810_device, write_tmp_register )
@@ -1448,7 +1466,7 @@ READ8_MEMBER(sigmab98_state::sammymdl_coin_hopper_r)
return ret;
}
-static ADDRESS_MAP_START( animalc_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::animalc_map)
AM_RANGE( 0x0000, 0x3fff ) AM_ROM
AM_RANGE( 0x4000, 0x7fff ) AM_ROMBANK( "rombank" )
AM_RANGE( 0x8000, 0x8fff ) AM_RAMBANK( "rambank" ) AM_SHARE( "nvram" )
@@ -1467,7 +1485,7 @@ static ADDRESS_MAP_START( animalc_map, AS_PROGRAM, 8, sigmab98_state )
AM_RANGE( 0xfe00, 0xffff ) AM_RAM // High speed internal RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( animalc_io, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::animalc_io)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x02, 0x03 ) AM_READWRITE(animalc_rombank_r, animalc_rombank_w )
AM_RANGE( 0x04, 0x05 ) AM_READWRITE(animalc_rambank_r, animalc_rambank_w )
@@ -1737,7 +1755,7 @@ WRITE8_MEMBER(sigmab98_state::gocowboy_dc00_w)
logerror("%s: unknown write to %02x = %02x with rambank = %02x\n", machine().describe_context(), offset + 0xdc00, data, m_rambank);
}
-static ADDRESS_MAP_START( gocowboy_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::gocowboy_map)
AM_RANGE(0x0000, 0x43ff) AM_ROM
AM_RANGE( 0x4400, 0xdbff ) AM_READWRITE(gocowboy_4400_r, gocowboy_4400_w ) // SPRITERAM + PALETTERAM + VTABLE + VREGS | NVRAM
@@ -1764,7 +1782,7 @@ WRITE8_MEMBER(sigmab98_state::gocowboy_leds_w)
show_3_outputs();
}
-static ADDRESS_MAP_START( gocowboy_io, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::gocowboy_io)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x02, 0x03 ) AM_READWRITE(gocowboy_rombank_r, gocowboy_rombank_w )
AM_RANGE( 0x04, 0x05 ) AM_READWRITE(gocowboy_rambank_r, gocowboy_rambank_w )
@@ -2001,14 +2019,14 @@ WRITE8_MEMBER(sigmab98_state::haekaka_coin_counter_w)
show_3_outputs();
}
-static ADDRESS_MAP_START( haekaka_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::haekaka_map)
AM_RANGE( 0x0000, 0x7fff ) AM_ROM
AM_RANGE( 0xb000, 0xcfff ) AM_READWRITE(haekaka_b000_r, haekaka_b000_w )
AM_RANGE( 0xd000, 0xefff ) AM_RAM AM_SHARE( "nvram" )
AM_RANGE( 0xfe00, 0xffff ) AM_RAM // High speed internal RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( haekaka_io, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::haekaka_io)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x02, 0x03 ) AM_READWRITE(haekaka_rombank_r, haekaka_rombank_w )
AM_RANGE( 0x04, 0x05 ) AM_READWRITE(haekaka_rambank_r, haekaka_rambank_w )
@@ -2239,7 +2257,7 @@ READ8_MEMBER(sigmab98_state::itazuram_palette_r)
return m_paletteram[offset];
}
-static ADDRESS_MAP_START( itazuram_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::itazuram_map)
AM_RANGE( 0x0000, 0x37ff ) AM_ROM
AM_RANGE( 0x3800, 0x47ff ) AM_READ_BANK( "rombank0" ) AM_WRITE_BANK( "sprbank0" )
AM_RANGE( 0x4800, 0x57ff ) AM_READ_BANK( "rombank1" ) AM_WRITE_BANK( "sprbank1" )
@@ -2255,7 +2273,7 @@ static ADDRESS_MAP_START( itazuram_map, AS_PROGRAM, 8, sigmab98_state )
AM_RANGE( 0xfe00, 0xffff ) AM_RAM // High speed internal RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( itazuram_io, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::itazuram_io)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x02, 0x03 ) AM_READWRITE(itazuram_rombank_r, itazuram_rombank_w )
AM_RANGE( 0x04, 0x05 ) AM_READWRITE(itazuram_rambank_r, itazuram_rambank_w )
@@ -2276,7 +2294,7 @@ ADDRESS_MAP_END
Pye-nage Taikai
***************************************************************************/
-static ADDRESS_MAP_START( pyenaget_io, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::pyenaget_io)
AM_IMPORT_FROM( haekaka_io )
AM_RANGE( 0x31, 0x31 ) AM_READWRITE(sammymdl_coin_counter_r, sammymdl_coin_counter_w )
ADDRESS_MAP_END
@@ -2477,14 +2495,14 @@ WRITE8_MEMBER(sigmab98_state::tdoboon_c000_w)
logerror("%s: unknown write to %02x = %02x with rombank = %02x\n", machine().describe_context(), offset+0xc000, data, m_rombank);
}
-static ADDRESS_MAP_START( tdoboon_map, AS_PROGRAM, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::tdoboon_map)
AM_RANGE( 0x0000, 0xbfff ) AM_ROM
AM_RANGE( 0xc000, 0xcfff ) AM_READWRITE(tdoboon_c000_r, tdoboon_c000_w )
AM_RANGE( 0xd000, 0xefff ) AM_RAM AM_SHARE( "nvram" )
AM_RANGE( 0xfe00, 0xffff ) AM_RAM // High speed internal RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( tdoboon_io, AS_IO, 8, sigmab98_state )
+ADDRESS_MAP_START(sigmab98_state::tdoboon_io)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE( 0x02, 0x03 ) AM_READWRITE(tdoboon_rombank_r, tdoboon_rombank_w )
AM_RANGE( 0x04, 0x05 ) AM_READWRITE(tdoboon_rambank_r, tdoboon_rambank_w )