diff options
Diffstat (limited to 'src/mame/machine/nextmo.cpp')
-rw-r--r-- | src/mame/machine/nextmo.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mame/machine/nextmo.cpp b/src/mame/machine/nextmo.cpp index c7239dd976f..ea389a6cd8a 100644 --- a/src/mame/machine/nextmo.cpp +++ b/src/mame/machine/nextmo.cpp @@ -6,17 +6,18 @@ DEFINE_DEVICE_TYPE(NEXTMO, nextmo_device, "nextmo", "NeXT Magneto-optical drive") -ADDRESS_MAP_START(nextmo_device::map) - AM_RANGE(0x04, 0x04) AM_READWRITE(r4_r, r4_w) - AM_RANGE(0x05, 0x05) AM_READWRITE(r5_r, r5_w) - AM_RANGE(0x06, 0x06) AM_READWRITE(r6_r, r6_w) - AM_RANGE(0x07, 0x07) AM_READWRITE(r7_r, r7_w) - AM_RANGE(0x08, 0x08) AM_READWRITE(r8_r, r8_w) - AM_RANGE(0x09, 0x09) AM_READWRITE(r9_r, r9_w) - AM_RANGE(0x0a, 0x0a) AM_READWRITE(ra_r, ra_w) - AM_RANGE(0x0b, 0x0b) AM_READWRITE(rb_r, rb_w) - AM_RANGE(0x10, 0x17) AM_READWRITE(r10_r, r10_w) -ADDRESS_MAP_END +void nextmo_device::map(address_map &map) +{ + map(0x04, 0x04).rw(this, FUNC(nextmo_device::r4_r), FUNC(nextmo_device::r4_w)); + map(0x05, 0x05).rw(this, FUNC(nextmo_device::r5_r), FUNC(nextmo_device::r5_w)); + map(0x06, 0x06).rw(this, FUNC(nextmo_device::r6_r), FUNC(nextmo_device::r6_w)); + map(0x07, 0x07).rw(this, FUNC(nextmo_device::r7_r), FUNC(nextmo_device::r7_w)); + map(0x08, 0x08).rw(this, FUNC(nextmo_device::r8_r), FUNC(nextmo_device::r8_w)); + map(0x09, 0x09).rw(this, FUNC(nextmo_device::r9_r), FUNC(nextmo_device::r9_w)); + map(0x0a, 0x0a).rw(this, FUNC(nextmo_device::ra_r), FUNC(nextmo_device::ra_w)); + map(0x0b, 0x0b).rw(this, FUNC(nextmo_device::rb_r), FUNC(nextmo_device::rb_w)); + map(0x10, 0x17).rw(this, FUNC(nextmo_device::r10_r), FUNC(nextmo_device::r10_w)); +} nextmo_device::nextmo_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, NEXTMO, tag, owner, clock), |