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/cortex.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/cortex.cpp')
-rw-r--r-- | src/mame/drivers/cortex.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/cortex.cpp b/src/mame/drivers/cortex.cpp index d6088091800..d9482ff4414 100644 --- a/src/mame/drivers/cortex.cpp +++ b/src/mame/drivers/cortex.cpp @@ -73,6 +73,8 @@ public: DECLARE_DRIVER_INIT(init); void cortex(machine_config &config); + void io_map(address_map &map); + void mem_map(address_map &map); private: bool m_kbd_ack; bool m_vdp_int; @@ -83,7 +85,7 @@ private: required_ioport m_io_dsw; }; -static ADDRESS_MAP_START( mem_map, AS_PROGRAM, 8, cortex_state ) +ADDRESS_MAP_START(cortex_state::mem_map) AM_RANGE(0x0000, 0x7fff) AM_READ_BANK("bankr0") AM_WRITE_BANK("bankw0") AM_RANGE(0x8000, 0xefff) AM_RAM AM_RANGE(0xf100, 0xf11f) AM_RAM // memory mapping unit @@ -92,7 +94,7 @@ static ADDRESS_MAP_START( mem_map, AS_PROGRAM, 8, cortex_state ) //AM_RANGE(0xf140, 0xf147) // fdc tms9909 ADDRESS_MAP_END -static ADDRESS_MAP_START( io_map, AS_IO, 8, cortex_state ) +ADDRESS_MAP_START(cortex_state::io_map) ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0x0000, 0x0007) AM_MIRROR(0x18) AM_DEVWRITE("control", ls259_device, write_d0) AM_RANGE(0x0000, 0x0000) AM_READ(pio_r) |