summaryrefslogtreecommitdiffstats
path: root/src/devices/bus/ieee488/hardbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ieee488/hardbox.cpp')
-rw-r--r--src/devices/bus/ieee488/hardbox.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/devices/bus/ieee488/hardbox.cpp b/src/devices/bus/ieee488/hardbox.cpp
index af14b14a8b8..a5da9825cc9 100644
--- a/src/devices/bus/ieee488/hardbox.cpp
+++ b/src/devices/bus/ieee488/hardbox.cpp
@@ -105,22 +105,24 @@ const tiny_rom_entry *hardbox_device::device_rom_region() const
// ADDRESS_MAP( hardbox_mem )
//-------------------------------------------------
-ADDRESS_MAP_START(hardbox_device::hardbox_mem)
- AM_RANGE(0x0000, 0x3fff) AM_RAM
- AM_RANGE(0xe000, 0xffff) AM_ROM AM_REGION(Z80_TAG, 0)
-ADDRESS_MAP_END
+void hardbox_device::hardbox_mem(address_map &map)
+{
+ map(0x0000, 0x3fff).ram();
+ map(0xe000, 0xffff).rom().region(Z80_TAG, 0);
+}
//-------------------------------------------------
// ADDRESS_MAP( hardbox_io )
//-------------------------------------------------
-ADDRESS_MAP_START(hardbox_device::hardbox_io)
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- 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 hardbox_device::hardbox_io(address_map &map)
+{
+ map.global_mask(0xff);
+ 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));
+}
//-------------------------------------------------