diff options
Diffstat (limited to 'src/mame/drivers/odyssey2.cpp')
-rw-r--r-- | src/mame/drivers/odyssey2.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/odyssey2.cpp b/src/mame/drivers/odyssey2.cpp index 455424bb47f..b63eafdcd3d 100644 --- a/src/mame/drivers/odyssey2.cpp +++ b/src/mame/drivers/odyssey2.cpp @@ -64,6 +64,8 @@ public: void odyssey2_cartslot(machine_config &config); void videopac(machine_config &config); void odyssey2(machine_config &config); + void odyssey2_io(address_map &map); + void odyssey2_mem(address_map &map); protected: /* constants */ static const uint8_t P1_BANK_LO_BIT = 0x01; @@ -102,25 +104,26 @@ public: void g7400(machine_config &config); void odyssey3(machine_config &config); + void g7400_io(address_map &map); protected: uint8_t m_ic674_decode[8]; uint8_t m_ic678_decode[8]; }; -static ADDRESS_MAP_START( odyssey2_mem , AS_PROGRAM, 8, odyssey2_state ) +ADDRESS_MAP_START(odyssey2_state::odyssey2_mem) AM_RANGE(0x0000, 0x03ff) AM_ROM AM_RANGE(0x0400, 0x0bff) AM_DEVREAD("cartslot", o2_cart_slot_device, read_rom04) AM_RANGE(0x0c00, 0x0fff) AM_DEVREAD("cartslot", o2_cart_slot_device, read_rom0c) ADDRESS_MAP_END -static ADDRESS_MAP_START( odyssey2_io , AS_IO, 8, odyssey2_state ) +ADDRESS_MAP_START(odyssey2_state::odyssey2_io) AM_RANGE(0x00, 0xff) AM_READWRITE(io_read, io_write) ADDRESS_MAP_END -static ADDRESS_MAP_START( g7400_io , AS_IO, 8, g7400_state ) +ADDRESS_MAP_START(g7400_state::g7400_io) AM_RANGE(0x00, 0xff) AM_READWRITE(io_read, io_write) ADDRESS_MAP_END |