diff options
author | 2018-02-01 10:04:01 +0100 | |
---|---|---|
committer | 2018-02-12 10:04:52 +0100 | |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/compc.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/compc.cpp')
-rw-r--r-- | src/mame/drivers/compc.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/compc.cpp b/src/mame/drivers/compc.cpp index 0426c4a653d..645a7984b9b 100644 --- a/src/mame/drivers/compc.cpp +++ b/src/mame/drivers/compc.cpp @@ -34,6 +34,9 @@ public: void compc(machine_config &config); void pc10iii(machine_config &config); + void compc_io(address_map &map); + void compc_map(address_map &map); + void compciii_io(address_map &map); private: u8 m_portb, m_dips; }; @@ -169,18 +172,18 @@ static INPUT_PORTS_START(compc) PORT_INCLUDE(pc_keyboard) INPUT_PORTS_END -static ADDRESS_MAP_START(compc_map, AS_PROGRAM, 8, compc_state) +ADDRESS_MAP_START(compc_state::compc_map) ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0xf0000, 0xfffff) AM_ROM AM_REGION("bios", 0) ADDRESS_MAP_END -static ADDRESS_MAP_START(compc_io, AS_IO, 8, compc_state) +ADDRESS_MAP_START(compc_state::compc_io) ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0x0000, 0x00ff) AM_DEVICE("mb", pc_noppi_mb_device, map) AM_RANGE(0x0060, 0x0063) AM_READWRITE(pio_r, pio_w) ADDRESS_MAP_END -static ADDRESS_MAP_START(compciii_io, AS_IO, 8, compc_state) +ADDRESS_MAP_START(compc_state::compciii_io) ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0x0000, 0x00ff) AM_DEVICE("mb", pc_noppi_mb_device, map) AM_RANGE(0x0060, 0x0063) AM_READWRITE(pioiii_r, pioiii_w) |