diff options
author | 2018-03-13 07:36:43 +0100 | |
---|---|---|
committer | 2018-03-14 14:07:14 +0100 | |
commit | 115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch) | |
tree | f0230f547f6c750f9974c61479eef28cbe4ad571 /src/mame/drivers/dolphunk.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/dolphunk.cpp')
-rw-r--r-- | src/mame/drivers/dolphunk.cpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mame/drivers/dolphunk.cpp b/src/mame/drivers/dolphunk.cpp index d9fd3bda93d..7af993dad48 100644 --- a/src/mame/drivers/dolphunk.cpp +++ b/src/mame/drivers/dolphunk.cpp @@ -184,19 +184,21 @@ TIMER_DEVICE_CALLBACK_MEMBER(dauphin_state::dauphin_c) m_cass->output(BIT(m_cass_data, 0) ? -1.0 : +1.0); // 2000Hz } -ADDRESS_MAP_START(dauphin_state::dauphin_mem) - ADDRESS_MAP_UNMAP_HIGH - AM_RANGE( 0x0000, 0x01ff) AM_ROM - AM_RANGE( 0x0200, 0x02ff) AM_RAM - AM_RANGE( 0x0c00, 0x0fff) AM_ROM -ADDRESS_MAP_END - -ADDRESS_MAP_START(dauphin_state::dauphin_io) - ADDRESS_MAP_UNMAP_HIGH - AM_RANGE(0x00, 0x03) AM_WRITE(port00_w) // 4-led display - AM_RANGE(0x06, 0x06) AM_WRITE(port06_w) // speaker (NOT a keyclick) - AM_RANGE(0x07, 0x07) AM_READ(port07_r) // pushbuttons -ADDRESS_MAP_END +void dauphin_state::dauphin_mem(address_map &map) +{ + map.unmap_value_high(); + map(0x0000, 0x01ff).rom(); + map(0x0200, 0x02ff).ram(); + map(0x0c00, 0x0fff).rom(); +} + +void dauphin_state::dauphin_io(address_map &map) +{ + map.unmap_value_high(); + map(0x00, 0x03).w(this, FUNC(dauphin_state::port00_w)); // 4-led display + map(0x06, 0x06).w(this, FUNC(dauphin_state::port06_w)); // speaker (NOT a keyclick) + map(0x07, 0x07).r(this, FUNC(dauphin_state::port07_r)); // pushbuttons +} /* Input ports */ static INPUT_PORTS_START( dauphin ) |