summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/odyssey2/chess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/odyssey2/chess.cpp')
-rw-r--r--src/devices/bus/odyssey2/chess.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/devices/bus/odyssey2/chess.cpp b/src/devices/bus/odyssey2/chess.cpp
index e8ac19018c8..8de9c816310 100644
--- a/src/devices/bus/odyssey2/chess.cpp
+++ b/src/devices/bus/odyssey2/chess.cpp
@@ -29,14 +29,16 @@ o2_chess_device::o2_chess_device(const machine_config &mconfig, const char *tag,
}
-ADDRESS_MAP_START(o2_chess_device::chess_mem)
- AM_RANGE(0x0000, 0x07ff) AM_READ(read_rom04)
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(o2_chess_device::chess_io)
- ADDRESS_MAP_UNMAP_HIGH
- ADDRESS_MAP_GLOBAL_MASK(0xff)
-ADDRESS_MAP_END
+void o2_chess_device::chess_mem(address_map &map)
+{
+ map(0x0000, 0x07ff).r(this, FUNC(o2_chess_device::read_rom04));
+}
+
+void o2_chess_device::chess_io(address_map &map)
+{
+ map.unmap_value_high();
+ map.global_mask(0xff);
+}
//-------------------------------------------------