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/tmc2000e.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/tmc2000e.cpp')
-rw-r--r-- | src/mame/drivers/tmc2000e.cpp | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/mame/drivers/tmc2000e.cpp b/src/mame/drivers/tmc2000e.cpp index 3cc6a35eafd..95916d9070c 100644 --- a/src/mame/drivers/tmc2000e.cpp +++ b/src/mame/drivers/tmc2000e.cpp @@ -82,21 +82,23 @@ WRITE8_MEMBER( tmc2000e_state::keyboard_latch_w ) /* Memory Maps */ -ADDRESS_MAP_START(tmc2000e_state::tmc2000e_map) - AM_RANGE(0x0000, 0x1fff) AM_RAM - AM_RANGE(0xc000, 0xdfff) AM_ROM - AM_RANGE(0xfc00, 0xffff) AM_WRITEONLY AM_SHARE("colorram") -ADDRESS_MAP_END - -ADDRESS_MAP_START(tmc2000e_state::tmc2000e_io_map) - AM_RANGE(0x01, 0x01) AM_DEVWRITE(CDP1864_TAG, cdp1864_device, tone_latch_w) - AM_RANGE(0x02, 0x02) AM_DEVWRITE(CDP1864_TAG, cdp1864_device, step_bgcolor_w) - AM_RANGE(0x03, 0x03) AM_READWRITE(ascii_keyboard_r, keyboard_latch_w) - AM_RANGE(0x04, 0x04) AM_READWRITE(io_r, io_w) - AM_RANGE(0x05, 0x05) AM_READWRITE(vismac_r, vismac_w) - AM_RANGE(0x06, 0x06) AM_READWRITE(floppy_r, floppy_w) - AM_RANGE(0x07, 0x07) AM_READ_PORT("DSW0") AM_WRITE(io_select_w) -ADDRESS_MAP_END +void tmc2000e_state::tmc2000e_map(address_map &map) +{ + map(0x0000, 0x1fff).ram(); + map(0xc000, 0xdfff).rom(); + map(0xfc00, 0xffff).writeonly().share("colorram"); +} + +void tmc2000e_state::tmc2000e_io_map(address_map &map) +{ + map(0x01, 0x01).w(m_cti, FUNC(cdp1864_device::tone_latch_w)); + map(0x02, 0x02).w(m_cti, FUNC(cdp1864_device::step_bgcolor_w)); + map(0x03, 0x03).rw(this, FUNC(tmc2000e_state::ascii_keyboard_r), FUNC(tmc2000e_state::keyboard_latch_w)); + map(0x04, 0x04).rw(this, FUNC(tmc2000e_state::io_r), FUNC(tmc2000e_state::io_w)); + map(0x05, 0x05).rw(this, FUNC(tmc2000e_state::vismac_r), FUNC(tmc2000e_state::vismac_w)); + map(0x06, 0x06).rw(this, FUNC(tmc2000e_state::floppy_r), FUNC(tmc2000e_state::floppy_w)); + map(0x07, 0x07).portr("DSW0").w(this, FUNC(tmc2000e_state::io_select_w)); +} /* Input Ports */ |