diff options
author | 2018-03-13 07:36:43 +0100 | |
---|---|---|
committer | 2018-03-14 14:07:14 +0100 | |
commit | 115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch) | |
tree | f0230f547f6c750f9974c61479eef28cbe4ad571 /src/mame/drivers/compucolor.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/compucolor.cpp')
-rw-r--r-- | src/mame/drivers/compucolor.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mame/drivers/compucolor.cpp b/src/mame/drivers/compucolor.cpp index 7d4db38ebee..4ddc2f1cac2 100644 --- a/src/mame/drivers/compucolor.cpp +++ b/src/mame/drivers/compucolor.cpp @@ -83,17 +83,19 @@ public: void compucolor2_mem(address_map &map); }; -ADDRESS_MAP_START(compucolor2_state::compucolor2_mem) - AM_RANGE(0x0000, 0x3fff) AM_ROM AM_REGION(I8080_TAG, 0) - AM_RANGE(0x6000, 0x6fff) AM_MIRROR(0x1000) AM_RAM AM_SHARE("videoram") - AM_RANGE(0x8000, 0xffff) AM_RAM -ADDRESS_MAP_END - -ADDRESS_MAP_START(compucolor2_state::compucolor2_io) - AM_RANGE(0x00, 0x0f) AM_MIRROR(0x10) AM_DEVICE(TMS5501_TAG, tms5501_device, io_map) - AM_RANGE(0x60, 0x6f) AM_MIRROR(0x10) AM_DEVREADWRITE(CRT5027_TAG, crt5027_device, read, write) - AM_RANGE(0x80, 0x9f) AM_MIRROR(0x60) AM_ROM AM_REGION("ua1", 0) -ADDRESS_MAP_END +void compucolor2_state::compucolor2_mem(address_map &map) +{ + map(0x0000, 0x3fff).rom().region(I8080_TAG, 0); + map(0x6000, 0x6fff).mirror(0x1000).ram().share("videoram"); + map(0x8000, 0xffff).ram(); +} + +void compucolor2_state::compucolor2_io(address_map &map) +{ + map(0x00, 0x0f).mirror(0x10).m(m_mioc, FUNC(tms5501_device::io_map)); + map(0x60, 0x6f).mirror(0x10).rw(m_vtac, FUNC(crt5027_device::read), FUNC(crt5027_device::write)); + map(0x80, 0x9f).mirror(0x60).rom().region("ua1", 0); +} static INPUT_PORTS_START( compucolor2 ) PORT_START("Y0") |