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/mod8.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/mod8.cpp')
-rw-r--r-- | src/mame/drivers/mod8.cpp | 28 |
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 ) |