diff options
Diffstat (limited to 'src/devices/bus/x68k/x68k_midi.cpp')
-rw-r--r-- | src/devices/bus/x68k/x68k_midi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/bus/x68k/x68k_midi.cpp b/src/devices/bus/x68k/x68k_midi.cpp index 011fe5f734f..2f55ce3781f 100644 --- a/src/devices/bus/x68k/x68k_midi.cpp +++ b/src/devices/bus/x68k/x68k_midi.cpp @@ -40,21 +40,21 @@ x68k_midi_device::x68k_midi_device(const machine_config &mconfig, const char *ta void x68k_midi_device::device_start() { m_slot = dynamic_cast<x68k_expansion_slot_device *>(owner()); - m_slot->space().install_readwrite_handler(0xeafa00,0xeafa0f,read8_delegate(FUNC(x68k_midi_device::x68k_midi_reg_r),this),write8_delegate(FUNC(x68k_midi_device::x68k_midi_reg_w),this),0x00ff00ff); + m_slot->space().install_readwrite_handler(0xeafa00,0xeafa0f, read8sm_delegate(*this, FUNC(x68k_midi_device::x68k_midi_reg_r)), write8sm_delegate(*this, FUNC(x68k_midi_device::x68k_midi_reg_w)), 0x00ff00ff); } void x68k_midi_device::device_reset() { } -READ8_MEMBER(x68k_midi_device::x68k_midi_reg_r) +uint8_t x68k_midi_device::x68k_midi_reg_r(offs_t offset) { - return m_midi->read(space, offset); + return m_midi->read(offset); } -WRITE8_MEMBER(x68k_midi_device::x68k_midi_reg_w) +void x68k_midi_device::x68k_midi_reg_w(offs_t offset, uint8_t data) { - m_midi->write(space, offset, data); + m_midi->write(offset, data); } void x68k_midi_device::irq_w(int state) |