diff options
Diffstat (limited to 'src/mame/machine/maple-dc.cpp')
-rw-r--r-- | src/mame/machine/maple-dc.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/machine/maple-dc.cpp b/src/mame/machine/maple-dc.cpp index 6583d1d0353..f607b2ca10c 100644 --- a/src/mame/machine/maple-dc.cpp +++ b/src/mame/machine/maple-dc.cpp @@ -7,14 +7,15 @@ DEFINE_DEVICE_TYPE(MAPLE_DC, maple_dc_device, "maple_dc", "Dreamcast Maple Bus") -ADDRESS_MAP_START(maple_dc_device::amap) - AM_RANGE(0x04, 0x07) AM_READWRITE(sb_mdstar_r, sb_mdstar_w) - AM_RANGE(0x10, 0x13) AM_READWRITE(sb_mdtsel_r, sb_mdtsel_w) - AM_RANGE(0x14, 0x17) AM_READWRITE(sb_mden_r, sb_mden_w) - AM_RANGE(0x18, 0x1b) AM_READWRITE(sb_mdst_r, sb_mdst_w) - AM_RANGE(0x80, 0x83) AM_READWRITE(sb_msys_r, sb_msys_w) - AM_RANGE(0x8c, 0x8f) AM_WRITE(sb_mdapro_w) -ADDRESS_MAP_END +void maple_dc_device::amap(address_map &map) +{ + map(0x04, 0x07).rw(this, FUNC(maple_dc_device::sb_mdstar_r), FUNC(maple_dc_device::sb_mdstar_w)); + map(0x10, 0x13).rw(this, FUNC(maple_dc_device::sb_mdtsel_r), FUNC(maple_dc_device::sb_mdtsel_w)); + map(0x14, 0x17).rw(this, FUNC(maple_dc_device::sb_mden_r), FUNC(maple_dc_device::sb_mden_w)); + map(0x18, 0x1b).rw(this, FUNC(maple_dc_device::sb_mdst_r), FUNC(maple_dc_device::sb_mdst_w)); + map(0x80, 0x83).rw(this, FUNC(maple_dc_device::sb_msys_r), FUNC(maple_dc_device::sb_msys_w)); + map(0x8c, 0x8f).w(this, FUNC(maple_dc_device::sb_mdapro_w)); +} maple_dc_device::maple_dc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, MAPLE_DC, tag, owner, clock) |