summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ieee488/softbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ieee488/softbox.cpp')
-rw-r--r--src/devices/bus/ieee488/softbox.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/devices/bus/ieee488/softbox.cpp b/src/devices/bus/ieee488/softbox.cpp
index 19d1fb7721d..eb002f372d8 100644
--- a/src/devices/bus/ieee488/softbox.cpp
+++ b/src/devices/bus/ieee488/softbox.cpp
@@ -72,25 +72,27 @@ const tiny_rom_entry *softbox_device::device_rom_region() const
// ADDRESS_MAP( softbox_mem )
//-------------------------------------------------
-ADDRESS_MAP_START(softbox_device::softbox_mem)
- AM_RANGE(0x0000, 0xefff) AM_RAM
- AM_RANGE(0xf000, 0xffff) AM_ROM AM_REGION(Z80_TAG, 0)
-ADDRESS_MAP_END
+void softbox_device::softbox_mem(address_map &map)
+{
+ map(0x0000, 0xefff).ram();
+ map(0xf000, 0xffff).rom().region(Z80_TAG, 0);
+}
//-------------------------------------------------
// ADDRESS_MAP( softbox_io )
//-------------------------------------------------
-ADDRESS_MAP_START(softbox_device::softbox_io)
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x08, 0x08) AM_DEVREADWRITE(I8251_TAG, i8251_device, data_r, data_w)
- AM_RANGE(0x09, 0x09) AM_DEVREADWRITE(I8251_TAG, i8251_device, status_r, control_w)
- AM_RANGE(0x0c, 0x0c) AM_WRITE(dbrg_w)
- AM_RANGE(0x10, 0x13) AM_DEVREADWRITE(I8255_0_TAG, i8255_device, read, write)
- AM_RANGE(0x14, 0x17) AM_DEVREADWRITE(I8255_1_TAG, i8255_device, read, write)
- AM_RANGE(0x18, 0x18) AM_DEVREADWRITE(CORVUS_HDC_TAG, corvus_hdc_device, read, write)
-ADDRESS_MAP_END
+void softbox_device::softbox_io(address_map &map)
+{
+ map.global_mask(0xff);
+ map(0x08, 0x08).rw(I8251_TAG, FUNC(i8251_device::data_r), FUNC(i8251_device::data_w));
+ map(0x09, 0x09).rw(I8251_TAG, FUNC(i8251_device::status_r), FUNC(i8251_device::control_w));
+ map(0x0c, 0x0c).w(this, FUNC(softbox_device::dbrg_w));
+ map(0x10, 0x13).rw(I8255_0_TAG, FUNC(i8255_device::read), FUNC(i8255_device::write));
+ map(0x14, 0x17).rw(I8255_1_TAG, FUNC(i8255_device::read), FUNC(i8255_device::write));
+ map(0x18, 0x18).rw(CORVUS_HDC_TAG, FUNC(corvus_hdc_device::read), FUNC(corvus_hdc_device::write));
+}