diff options
Diffstat (limited to 'src/mame/drivers/softbox.cpp')
-rw-r--r-- | src/mame/drivers/softbox.cpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mame/drivers/softbox.cpp b/src/mame/drivers/softbox.cpp index 4ec2dc79c40..6b5b7970931 100644 --- a/src/mame/drivers/softbox.cpp +++ b/src/mame/drivers/softbox.cpp @@ -123,25 +123,27 @@ WRITE8_MEMBER( softbox_state::dbrg_w ) // ADDRESS_MAP( softbox_mem ) //------------------------------------------------- -ADDRESS_MAP_START(softbox_state::softbox_mem) - AM_RANGE(0x0000, 0xefff) AM_RAM - AM_RANGE(0xf000, 0xffff) AM_ROM AM_REGION(Z80_TAG, 0) -ADDRESS_MAP_END +void softbox_state::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_state::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_state::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_state::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(m_hdc, FUNC(corvus_hdc_device::read), FUNC(corvus_hdc_device::write)); +} |