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/ccs2810.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/ccs2810.cpp')
-rw-r--r-- | src/mame/drivers/ccs2810.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/ccs2810.cpp b/src/mame/drivers/ccs2810.cpp index 633345e53e2..c5964fad409 100644 --- a/src/mame/drivers/ccs2810.cpp +++ b/src/mame/drivers/ccs2810.cpp @@ -105,6 +105,9 @@ public: void ccs2810(machine_config &config); void ccs2422(machine_config &config); + void ccs2422_io(address_map &map); + void ccs2810_io(address_map &map); + void ccs2810_mem(address_map &map); private: required_device<cpu_device> m_maincpu; required_device<ram_device> m_ram; @@ -175,15 +178,15 @@ WRITE8_MEMBER(ccs_state::io_write) m_ins8250->ins8250_w(space, offset & 7, data); } -static ADDRESS_MAP_START(ccs2810_mem, AS_PROGRAM, 8, ccs_state) +ADDRESS_MAP_START(ccs_state::ccs2810_mem) AM_RANGE(0x0000, 0xffff) AM_READWRITE(memory_read, memory_write) ADDRESS_MAP_END -static ADDRESS_MAP_START(ccs2810_io, AS_IO, 8, ccs_state) +ADDRESS_MAP_START(ccs_state::ccs2810_io) AM_RANGE(0x0000, 0xffff) AM_READWRITE(io_read, io_write) ADDRESS_MAP_END -static ADDRESS_MAP_START(ccs2422_io, AS_IO, 8, ccs_state) +ADDRESS_MAP_START(ccs_state::ccs2422_io) AM_RANGE(0x0000, 0xffff) AM_READWRITE(io_read, io_write) AM_RANGE(0x04, 0x04) AM_MIRROR(0xff00) AM_READWRITE(port04_r,port04_w) AM_RANGE(0x30, 0x33) AM_MIRROR(0xff00) AM_DEVREADWRITE("fdc", mb8877_device, read, write) |