diff options
Diffstat (limited to 'src/mame/drivers/beehive.cpp')
-rw-r--r-- | src/mame/drivers/beehive.cpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/mame/drivers/beehive.cpp b/src/mame/drivers/beehive.cpp index 67a47ffffbe..1ca364f58bd 100644 --- a/src/mame/drivers/beehive.cpp +++ b/src/mame/drivers/beehive.cpp @@ -67,20 +67,22 @@ WRITE8_MEMBER(beehive_state::beehive_62_w) m_keyline = data; } -ADDRESS_MAP_START(beehive_state::beehive_mem) - ADDRESS_MAP_UNMAP_HIGH - AM_RANGE( 0x0000, 0x17ff ) AM_ROM - AM_RANGE( 0x8000, 0x8fff ) AM_RAM AM_SHARE("videoram") -ADDRESS_MAP_END - -ADDRESS_MAP_START(beehive_state::beehive_io) - ADDRESS_MAP_GLOBAL_MASK(0xff) - ADDRESS_MAP_UNMAP_HIGH - AM_RANGE(0x11, 0x11) AM_READ_PORT("DIPS") - AM_RANGE(0x60, 0x60) AM_READ(beehive_60_r) - AM_RANGE(0x61, 0x61) AM_READ_PORT("MODIFIERS") - AM_RANGE(0x62, 0x62) AM_WRITE(beehive_62_w) -ADDRESS_MAP_END +void beehive_state::beehive_mem(address_map &map) +{ + map.unmap_value_high(); + map(0x0000, 0x17ff).rom(); + map(0x8000, 0x8fff).ram().share("videoram"); +} + +void beehive_state::beehive_io(address_map &map) +{ + map.global_mask(0xff); + map.unmap_value_high(); + map(0x11, 0x11).portr("DIPS"); + map(0x60, 0x60).r(this, FUNC(beehive_state::beehive_60_r)); + map(0x61, 0x61).portr("MODIFIERS"); + map(0x62, 0x62).w(this, FUNC(beehive_state::beehive_62_w)); +} /* Input ports */ static INPUT_PORTS_START( beehive ) |