summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/taito_h.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taito_h.cpp')
-rw-r--r--src/mame/drivers/taito_h.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/mame/drivers/taito_h.cpp b/src/mame/drivers/taito_h.cpp
index 9902e60a6a8..d85e7cd93fa 100644
--- a/src/mame/drivers/taito_h.cpp
+++ b/src/mame/drivers/taito_h.cpp
@@ -657,13 +657,13 @@ MACHINE_CONFIG_START(taitoh_state::syvalion)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0040ioc", TC0040IOC, 0)
- MCFG_TC0040IOC_READ_0_CB(IOPORT("DSWA"))
- MCFG_TC0040IOC_READ_1_CB(IOPORT("DSWB"))
- MCFG_TC0040IOC_READ_2_CB(IOPORT("IN0"))
- MCFG_TC0040IOC_READ_3_CB(IOPORT("IN1"))
- MCFG_TC0040IOC_WRITE_4_CB(WRITE8(*this, taitoh_state, coin_control_w))
- MCFG_TC0040IOC_READ_7_CB(IOPORT("IN2"))
+ TC0040IOC(config, m_tc0040ioc, 0);
+ m_tc0040ioc->read_0_callback().set_ioport("DSWA");
+ m_tc0040ioc->read_1_callback().set_ioport("DSWB");
+ m_tc0040ioc->read_2_callback().set_ioport("IN0");
+ m_tc0040ioc->read_3_callback().set_ioport("IN1");
+ m_tc0040ioc->write_4_callback().set(FUNC(taitoh_state::coin_control_w));
+ m_tc0040ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -713,13 +713,13 @@ MACHINE_CONFIG_START(taitoh_state::recordbr)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0040ioc", TC0040IOC, 0)
- MCFG_TC0040IOC_READ_0_CB(IOPORT("DSWA"))
- MCFG_TC0040IOC_READ_1_CB(IOPORT("DSWB"))
- MCFG_TC0040IOC_READ_2_CB(IOPORT("IN0"))
- MCFG_TC0040IOC_READ_3_CB(IOPORT("IN1"))
- MCFG_TC0040IOC_WRITE_4_CB(WRITE8(*this, taitoh_state, coin_control_w))
- MCFG_TC0040IOC_READ_7_CB(IOPORT("IN2"))
+ TC0040IOC(config, m_tc0040ioc, 0);
+ m_tc0040ioc->read_0_callback().set_ioport("DSWA");
+ m_tc0040ioc->read_1_callback().set_ioport("DSWB");
+ m_tc0040ioc->read_2_callback().set_ioport("IN0");
+ m_tc0040ioc->read_3_callback().set_ioport("IN1");
+ m_tc0040ioc->write_4_callback().set(FUNC(taitoh_state::coin_control_w));
+ m_tc0040ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -778,13 +778,13 @@ MACHINE_CONFIG_START(taitoh_state::dleague)
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, taitoh_state, coin_control_w))
- MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2"))
+ tc0220ioc_device &tc0220ioc(TC0220IOC(config, "tc0220ioc", 0));
+ tc0220ioc.read_0_callback().set_ioport("DSWA");
+ tc0220ioc.read_1_callback().set_ioport("DSWB");
+ tc0220ioc.read_2_callback().set_ioport("IN0");
+ tc0220ioc.read_3_callback().set_ioport("IN1");
+ tc0220ioc.write_4_callback().set(FUNC(taitoh_state::coin_control_w));
+ tc0220ioc.read_7_callback().set_ioport("IN2");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)