diff options
Diffstat (limited to 'src/devices/bus/msx_slot/music.cpp')
-rw-r--r-- | src/devices/bus/msx_slot/music.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/bus/msx_slot/music.cpp b/src/devices/bus/msx_slot/music.cpp index 427d1ac0f9e..0e3ae00b0f3 100644 --- a/src/devices/bus/msx_slot/music.cpp +++ b/src/devices/bus/msx_slot/music.cpp @@ -32,18 +32,17 @@ void msx_slot_music_device::device_start() } // Install IO read/write handlers - address_space &space = machine().device<cpu_device>("maincpu")->space(AS_IO); - space.install_write_handler(0x7c, 0x7d, write8_delegate(FUNC(msx_slot_music_device::write_ym2413), this)); + io_space().install_write_handler(0x7c, 0x7d, write8sm_delegate(FUNC(msx_slot_music_device::write_ym2413), this)); } -READ8_MEMBER(msx_slot_music_device::read) +uint8_t msx_slot_music_device::read(offs_t offset) { - return msx_slot_rom_device::read(space, offset); + return msx_slot_rom_device::read(offset); } -WRITE8_MEMBER(msx_slot_music_device::write_ym2413) +void msx_slot_music_device::write_ym2413(offs_t offset, uint8_t data) { m_ym2413->write(offset & 1, data); } |