diff options
Diffstat (limited to 'src/devices/sound/bsmt2000.cpp')
-rw-r--r-- | src/devices/sound/bsmt2000.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/devices/sound/bsmt2000.cpp b/src/devices/sound/bsmt2000.cpp index 1c300816099..b8c6dad0042 100644 --- a/src/devices/sound/bsmt2000.cpp +++ b/src/devices/sound/bsmt2000.cpp @@ -26,20 +26,22 @@ DEFINE_DEVICE_TYPE(BSMT2000, bsmt2000_device, "bsmt2000", "BSMT2000") //************************************************************************** // program map for the DSP (points to internal ROM) -ADDRESS_MAP_START(bsmt2000_device::tms_program_map) - ADDRESS_MAP_UNMAP_HIGH - AM_RANGE(0x000, 0xfff) AM_ROM -ADDRESS_MAP_END +void bsmt2000_device::tms_program_map(address_map &map) +{ + map.unmap_value_high(); + map(0x000, 0xfff).rom(); +} // I/O map for the DSP -ADDRESS_MAP_START(bsmt2000_device::tms_io_map) - AM_RANGE(0, 0) AM_READWRITE(tms_register_r, tms_rom_addr_w) - AM_RANGE(1, 1) AM_READWRITE(tms_data_r, tms_rom_bank_w) - AM_RANGE(2, 2) AM_READ(tms_rom_r) - AM_RANGE(3, 3) AM_WRITE(tms_left_w) - AM_RANGE(7, 7) AM_WRITE(tms_right_w) -ADDRESS_MAP_END +void bsmt2000_device::tms_io_map(address_map &map) +{ + map(0, 0).rw(this, FUNC(bsmt2000_device::tms_register_r), FUNC(bsmt2000_device::tms_rom_addr_w)); + map(1, 1).rw(this, FUNC(bsmt2000_device::tms_data_r), FUNC(bsmt2000_device::tms_rom_bank_w)); + map(2, 2).r(this, FUNC(bsmt2000_device::tms_rom_r)); + map(3, 3).w(this, FUNC(bsmt2000_device::tms_left_w)); + map(7, 7).w(this, FUNC(bsmt2000_device::tms_right_w)); +} // ROM definition for the BSMT2000 program ROM |