summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mod8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mod8.cpp')
-rw-r--r--src/mame/drivers/mod8.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mame/drivers/mod8.cpp b/src/mame/drivers/mod8.cpp
index e71c55be4a8..f67c6649b71 100644
--- a/src/mame/drivers/mod8.cpp
+++ b/src/mame/drivers/mod8.cpp
@@ -110,19 +110,21 @@ READ8_MEMBER( mod8_state::tty_r )
return d;
}
-ADDRESS_MAP_START(mod8_state::mod8_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x000,0x6ff) AM_ROM
- AM_RANGE(0x700,0xfff) AM_RAM
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(mod8_state::mod8_io)
- ADDRESS_MAP_UNMAP_HIGH
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00,0x00) AM_READ(tty_r)
- AM_RANGE(0x0a,0x0a) AM_WRITE(out_w)
- AM_RANGE(0x0b,0x0b) AM_WRITE(tty_w)
-ADDRESS_MAP_END
+void mod8_state::mod8_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x000, 0x6ff).rom();
+ map(0x700, 0xfff).ram();
+}
+
+void mod8_state::mod8_io(address_map &map)
+{
+ map.unmap_value_high();
+ map.global_mask(0xff);
+ map(0x00, 0x00).r(this, FUNC(mod8_state::tty_r));
+ map(0x0a, 0x0a).w(this, FUNC(mod8_state::out_w));
+ map(0x0b, 0x0b).w(this, FUNC(mod8_state::tty_w));
+}
/* Input ports */
static INPUT_PORTS_START( mod8 )