summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/mephisto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mephisto.cpp')
-rw-r--r--src/mame/drivers/mephisto.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/mephisto.cpp b/src/mame/drivers/mephisto.cpp
index 3fb219146d6..75768a46e89 100644
--- a/src/mame/drivers/mephisto.cpp
+++ b/src/mame/drivers/mephisto.cpp
@@ -120,6 +120,9 @@ public:
void mm4tk(machine_config &config);
void mm2(machine_config &config);
void mephisto(machine_config &config);
+ void mephisto_mem(address_map &map);
+ void mm2_mem(address_map &map);
+ void rebel5_mem(address_map &map);
protected:
required_ioport m_key1_0;
required_ioport m_key1_1;
@@ -219,7 +222,7 @@ WRITE8_MEMBER( mephisto_state::write_led_mm2 )
m_led7= BIT(data, 7) ? 0xff :0x00; //MM2
}
-static ADDRESS_MAP_START( rebel5_mem, AS_PROGRAM, 8, mephisto_state )
+ADDRESS_MAP_START(mephisto_state::rebel5_mem)
AM_RANGE( 0x0000, 0x1fff) AM_RAM // AM_BASE(m_p_ram)
AM_RANGE( 0x2000, 0x2007) AM_WRITE(write_led) // Status LEDs+ buzzer
AM_RANGE( 0x3000, 0x4000) AM_DEVREAD("board", mephisto_board_device, input_r)
@@ -231,7 +234,7 @@ static ADDRESS_MAP_START( rebel5_mem, AS_PROGRAM, 8, mephisto_state )
ADDRESS_MAP_END
-static ADDRESS_MAP_START( mephisto_mem, AS_PROGRAM, 8, mephisto_state )
+ADDRESS_MAP_START(mephisto_state::mephisto_mem)
AM_RANGE( 0x0000, 0x1fff) AM_RAM //AM_BASE(m_p_ram)
AM_RANGE( 0x2000, 0x2000) AM_WRITE(write_lcd)
AM_RANGE( 0x2400, 0x2407) AM_DEVWRITE("board", mephisto_board_device, led_w)
@@ -244,7 +247,7 @@ static ADDRESS_MAP_START( mephisto_mem, AS_PROGRAM, 8, mephisto_state )
AM_RANGE( 0x8000, 0xffff) AM_ROM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( mm2_mem, AS_PROGRAM, 8, mephisto_state )
+ADDRESS_MAP_START(mephisto_state::mm2_mem)
AM_RANGE( 0x0000, 0x0fff) AM_RAM //AM_BASE(m_p_ram)
AM_RANGE( 0x1000, 0x1007) AM_WRITE(write_led_mm2) //Status LEDs
AM_RANGE( 0x1800, 0x1807) AM_READ(read_keys)