diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-02-01 10:04:01 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-02-12 10:04:52 +0100 |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/peyper.cpp | |
parent | 09b6ce46873b38de9030a3c0378ff327f17af881 (diff) |
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible
soon.
Diffstat (limited to 'src/mame/drivers/peyper.cpp')
-rw-r--r-- | src/mame/drivers/peyper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/peyper.cpp b/src/mame/drivers/peyper.cpp index 20db75890e5..a5bba7a211d 100644 --- a/src/mame/drivers/peyper.cpp +++ b/src/mame/drivers/peyper.cpp @@ -67,6 +67,8 @@ public: DECLARE_DRIVER_INIT(odin); DECLARE_DRIVER_INIT(wolfman); void peyper(machine_config &config); + void peyper_io(address_map &map); + void peyper_map(address_map &map); private: uint8_t m_digit; uint8_t m_disp_layout[36]; @@ -195,13 +197,13 @@ CUSTOM_INPUT_MEMBER(peyper_state::wolfman_replay_hs_r) } -static ADDRESS_MAP_START( peyper_map, AS_PROGRAM, 8, peyper_state ) +ADDRESS_MAP_START(peyper_state::peyper_map) ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0x0000, 0x5FFF) AM_ROM AM_RANGE(0x6000, 0x67FF) AM_RAM AM_SHARE("nvram") ADDRESS_MAP_END -static ADDRESS_MAP_START( peyper_io, AS_IO, 8, peyper_state ) +ADDRESS_MAP_START(peyper_state::peyper_io) ADDRESS_MAP_UNMAP_HIGH ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00, 0x01) AM_DEVREADWRITE("i8279", i8279_device, read, write) |