diff options
Diffstat (limited to 'src/mame/drivers/taito_o.cpp')
-rw-r--r-- | src/mame/drivers/taito_o.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/taito_o.cpp b/src/mame/drivers/taito_o.cpp index ec9ee0c7aa2..a58ed8abb80 100644 --- a/src/mame/drivers/taito_o.cpp +++ b/src/mame/drivers/taito_o.cpp @@ -65,14 +65,15 @@ READ16_MEMBER(taitoo_state::io_r) return retval; } -ADDRESS_MAP_START(taitoo_state::parentj_map) - AM_RANGE(0x000000, 0x01ffff) AM_ROM - AM_RANGE(0x100000, 0x10ffff) AM_MIRROR(0x010000) AM_RAM - AM_RANGE(0x200000, 0x20000f) AM_READWRITE(io_r, io_w) /* TC0220IOC ? */ - AM_RANGE(0x300000, 0x300003) AM_DEVREADWRITE8("ymsnd", ym2203_device, read, write, 0x00ff) - AM_RANGE(0x400000, 0x420fff) AM_DEVREADWRITE("tc0080vco", tc0080vco_device, word_r, word_w) - AM_RANGE(0x500800, 0x500fff) AM_RAM_DEVWRITE("palette", palette_device, write16) AM_SHARE("palette") -ADDRESS_MAP_END +void taitoo_state::parentj_map(address_map &map) +{ + map(0x000000, 0x01ffff).rom(); + map(0x100000, 0x10ffff).mirror(0x010000).ram(); + map(0x200000, 0x20000f).rw(this, FUNC(taitoo_state::io_r), FUNC(taitoo_state::io_w)); /* TC0220IOC ? */ + map(0x300000, 0x300003).rw("ymsnd", FUNC(ym2203_device::read), FUNC(ym2203_device::write)).umask16(0x00ff); + map(0x400000, 0x420fff).rw(m_tc0080vco, FUNC(tc0080vco_device::word_r), FUNC(tc0080vco_device::word_w)); + map(0x500800, 0x500fff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette"); +} static INPUT_PORTS_START( parentj ) PORT_START("IN0") |