From 502a131126d8906bb2e63b3215fcbfc4a91a746b Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Tue, 4 Sep 2018 19:12:23 +0200 Subject: wd11c00_17, wd2010, wd33c93, wd7600, x76f041, x76f100, ym2148, ym3802: removed MCFG macros (nw) wd_fdc: started removing MCFG macros (nw) --- src/devices/bus/msx_cart/yamaha.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/devices/bus/msx_cart') diff --git a/src/devices/bus/msx_cart/yamaha.cpp b/src/devices/bus/msx_cart/yamaha.cpp index 1ba78c75af9..25152208bc9 100644 --- a/src/devices/bus/msx_cart/yamaha.cpp +++ b/src/devices/bus/msx_cart/yamaha.cpp @@ -58,11 +58,11 @@ MACHINE_CONFIG_START(msx_cart_sfg_device::device_add_mconfig) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) - MCFG_DEVICE_ADD("ym2148", YM2148, XTAL(4'000'000)) - MCFG_YM2148_TXD_HANDLER(WRITELINE("mdout", midi_port_device, write_txd)) - MCFG_YM2148_PORT_WRITE_HANDLER(WRITE8("kbdc", msx_audio_kbdc_port_device, write)) - MCFG_YM2148_PORT_READ_HANDLER(READ8("kbdc", msx_audio_kbdc_port_device, read)) - MCFG_YM2148_IRQ_HANDLER(WRITELINE(*this, msx_cart_sfg_device, ym2148_irq_w)) + YM2148(config, m_ym2148, XTAL(4'000'000)); + m_ym2148->txd_handler().set("mdout", FUNC(midi_port_device::write_txd)); + m_ym2148->port_write_handler().set("kbdc", FUNC(msx_audio_kbdc_port_device::write)); + m_ym2148->port_read_handler().set("kbdc", FUNC(msx_audio_kbdc_port_device::read)); + m_ym2148->irq_handler().set(FUNC(msx_cart_sfg_device::ym2148_irq_w)); MCFG_MSX_AUDIO_KBDC_PORT_ADD("kbdc", msx_audio_keyboards, nullptr) -- cgit v1.2.3-70-g09d2