summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/asuka.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/asuka.cpp')
-rw-r--r--src/mame/drivers/asuka.cpp96
1 files changed, 48 insertions, 48 deletions
diff --git a/src/mame/drivers/asuka.cpp b/src/mame/drivers/asuka.cpp
index 1da7f2756e5..5cc1f8158c2 100644
--- a/src/mame/drivers/asuka.cpp
+++ b/src/mame/drivers/asuka.cpp
@@ -913,13 +913,13 @@ MACHINE_CONFIG_START(asuka_state::asuka)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0220ioc", TC0220IOC, 0)
- MCFG_TC0220IOC_READ_0_CB(IOPORT("DSWA"))
- MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB"))
- MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0"))
- MCFG_TC0220IOC_READ_3_CB(IOPORT("IN1"))
- MCFG_TC0220IOC_WRITE_4_CB(WRITE8(*this, asuka_state, coin_control_w))
- MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2"))
+ TC0220IOC(config, m_tc0220ioc, 0);
+ m_tc0220ioc->read_0_callback().set_ioport("DSWA");
+ m_tc0220ioc->read_1_callback().set_ioport("DSWB");
+ m_tc0220ioc->read_2_callback().set_ioport("IN0");
+ m_tc0220ioc->read_3_callback().set_ioport("IN1");
+ m_tc0220ioc->write_4_callback().set(FUNC(asuka_state::coin_control_w));
+ m_tc0220ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -951,11 +951,11 @@ MACHINE_CONFIG_START(asuka_state::asuka)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000)/4) /* verified on pcb */
- MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
- MCFG_YM2151_PORT_WRITE_HANDLER(MEMBANK("audiobank")) MCFG_DEVCB_MASK(0x03)
- MCFG_SOUND_ROUTE(0, "mono", 0.50)
- MCFG_SOUND_ROUTE(1, "mono", 0.50)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", 16_MHz_XTAL/4)); // verified on PCB
+ ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
+ ymsnd.port_write_handler().set_membank(m_audiobank).mask(0x03);
+ ymsnd.add_route(0, "mono", 0.50);
+ ymsnd.add_route(1, "mono", 0.50);
MCFG_DEVICE_ADD("msm", MSM5205, XTAL(384'000)) /* verified on pcb */
MCFG_MSM5205_VCLK_CB(WRITELINE(*this, asuka_state, asuka_msm5205_vck)) /* VCK function */
@@ -987,13 +987,13 @@ MACHINE_CONFIG_START(asuka_state::cadash)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0220ioc", TC0220IOC, 0)
- MCFG_TC0220IOC_READ_0_CB(IOPORT("DSWA"))
- MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB"))
- MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0"))
- MCFG_TC0220IOC_READ_3_CB(IOPORT("IN1"))
- MCFG_TC0220IOC_WRITE_4_CB(WRITE8(*this, asuka_state, coin_control_w))
- MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2"))
+ TC0220IOC(config, m_tc0220ioc, 0);
+ m_tc0220ioc->read_0_callback().set_ioport("DSWA");
+ m_tc0220ioc->read_1_callback().set_ioport("DSWB");
+ m_tc0220ioc->read_2_callback().set_ioport("IN0");
+ m_tc0220ioc->read_3_callback().set_ioport("IN1");
+ m_tc0220ioc->write_4_callback().set(FUNC(asuka_state::coin_control_w));
+ m_tc0220ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1026,11 +1026,11 @@ MACHINE_CONFIG_START(asuka_state::cadash)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(8'000'000)/2) /* verified on pcb */
- MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
- MCFG_YM2151_PORT_WRITE_HANDLER(MEMBANK("audiobank")) MCFG_DEVCB_MASK(0x03)
- MCFG_SOUND_ROUTE(0, "mono", 0.50)
- MCFG_SOUND_ROUTE(1, "mono", 0.50)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", 8_MHz_XTAL/2)); // verified on PCB
+ ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
+ ymsnd.port_write_handler().set_membank(m_audiobank).mask(0x03);
+ ymsnd.add_route(0, "mono", 0.50);
+ ymsnd.add_route(1, "mono", 0.50);
MCFG_DEVICE_ADD("ciu", PC060HA, 0)
MCFG_PC060HA_MASTER_CPU("maincpu")
@@ -1050,13 +1050,13 @@ MACHINE_CONFIG_START(asuka_state::mofflott)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0220ioc", TC0220IOC, 0)
- MCFG_TC0220IOC_READ_0_CB(IOPORT("DSWA"))
- MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB"))
- MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0"))
- MCFG_TC0220IOC_READ_3_CB(IOPORT("IN1"))
- MCFG_TC0220IOC_WRITE_4_CB(WRITE8(*this, asuka_state, coin_control_w))
- MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2"))
+ TC0220IOC(config, m_tc0220ioc, 0);
+ m_tc0220ioc->read_0_callback().set_ioport("DSWA");
+ m_tc0220ioc->read_1_callback().set_ioport("DSWB");
+ m_tc0220ioc->read_2_callback().set_ioport("IN0");
+ m_tc0220ioc->read_3_callback().set_ioport("IN1");
+ m_tc0220ioc->write_4_callback().set(FUNC(asuka_state::coin_control_w));
+ m_tc0220ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1088,11 +1088,11 @@ MACHINE_CONFIG_START(asuka_state::mofflott)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000)
- MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
- MCFG_YM2151_PORT_WRITE_HANDLER(MEMBANK("audiobank")) MCFG_DEVCB_MASK(0x03)
- MCFG_SOUND_ROUTE(0, "mono", 0.50)
- MCFG_SOUND_ROUTE(1, "mono", 0.50)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", 4000000));
+ ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
+ ymsnd.port_write_handler().set_membank(m_audiobank).mask(0x03);
+ ymsnd.add_route(0, "mono", 0.50);
+ ymsnd.add_route(1, "mono", 0.50);
MCFG_DEVICE_ADD("msm", MSM5205, 384000)
MCFG_MSM5205_VCLK_CB(WRITELINE(*this, asuka_state, asuka_msm5205_vck)) /* VCK function */
@@ -1120,13 +1120,13 @@ MACHINE_CONFIG_START(asuka_state::eto)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0220ioc", TC0220IOC, 0)
- MCFG_TC0220IOC_READ_0_CB(IOPORT("DSWA"))
- MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB"))
- MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0"))
- MCFG_TC0220IOC_READ_3_CB(IOPORT("IN1"))
- MCFG_TC0220IOC_WRITE_4_CB(WRITE8(*this, asuka_state, coin_control_w))
- MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2"))
+ TC0220IOC(config, m_tc0220ioc, 0);
+ m_tc0220ioc->read_0_callback().set_ioport("DSWA");
+ m_tc0220ioc->read_1_callback().set_ioport("DSWB");
+ m_tc0220ioc->read_2_callback().set_ioport("IN0");
+ m_tc0220ioc->read_3_callback().set_ioport("IN1");
+ m_tc0220ioc->write_4_callback().set(FUNC(asuka_state::coin_control_w));
+ m_tc0220ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1158,11 +1158,11 @@ MACHINE_CONFIG_START(asuka_state::eto)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000)
- MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
- MCFG_YM2151_PORT_WRITE_HANDLER(MEMBANK("audiobank")) MCFG_DEVCB_MASK(0x03)
- MCFG_SOUND_ROUTE(0, "mono", 0.50)
- MCFG_SOUND_ROUTE(1, "mono", 0.50)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", 4000000));
+ ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
+ ymsnd.port_write_handler().set_membank(m_audiobank).mask(0x03);
+ ymsnd.add_route(0, "mono", 0.50);
+ ymsnd.add_route(1, "mono", 0.50);
MCFG_DEVICE_ADD("ciu", PC060HA, 0)
MCFG_PC060HA_MASTER_CPU("maincpu")