summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/slapshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/slapshot.cpp')
-rw-r--r--src/mame/drivers/slapshot.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/slapshot.cpp b/src/mame/drivers/slapshot.cpp
index 1d784f00c58..8eb5782d864 100644
--- a/src/mame/drivers/slapshot.cpp
+++ b/src/mame/drivers/slapshot.cpp
@@ -453,12 +453,12 @@ MACHINE_CONFIG_START(slapshot_state::slapshot)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- MCFG_DEVICE_ADD("tc0640fio", TC0640FIO, 0)
- MCFG_TC0640FIO_READ_1_CB(IOPORT("COINS"))
- MCFG_TC0640FIO_READ_2_CB(IOPORT("BUTTONS"))
- MCFG_TC0640FIO_READ_3_CB(IOPORT("SYSTEM"))
- MCFG_TC0640FIO_WRITE_4_CB(WRITE8(*this, slapshot_state, coin_control_w))
- MCFG_TC0640FIO_READ_7_CB(IOPORT("JOY"))
+ TC0640FIO(config, m_tc0640fio, 0);
+ m_tc0640fio->read_1_callback().set_ioport("COINS");
+ m_tc0640fio->read_2_callback().set_ioport("BUTTONS");
+ m_tc0640fio->read_3_callback().set_ioport("SYSTEM");
+ m_tc0640fio->write_4_callback().set(FUNC(slapshot_state::coin_control_w));
+ m_tc0640fio->read_7_callback().set_ioport("JOY");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -522,12 +522,12 @@ MACHINE_CONFIG_START(slapshot_state::opwolf3)
MCFG_ADC0808_IN2_CB(IOPORT("GUN2X"))
MCFG_ADC0808_IN3_CB(IOPORT("GUN2Y"))
- MCFG_DEVICE_ADD("tc0640fio", TC0640FIO, 0)
- MCFG_TC0640FIO_READ_1_CB(IOPORT("COINS"))
- MCFG_TC0640FIO_READ_2_CB(IOPORT("BUTTONS"))
- MCFG_TC0640FIO_READ_3_CB(IOPORT("SYSTEM"))
- MCFG_TC0640FIO_WRITE_4_CB(WRITE8(*this, slapshot_state, coin_control_w))
- MCFG_TC0640FIO_READ_7_CB(IOPORT("JOY"))
+ TC0640FIO(config, m_tc0640fio, 0);
+ m_tc0640fio->read_1_callback().set_ioport("COINS");
+ m_tc0640fio->read_2_callback().set_ioport("BUTTONS");
+ m_tc0640fio->read_3_callback().set_ioport("SYSTEM");
+ m_tc0640fio->write_4_callback().set(FUNC(slapshot_state::coin_control_w));
+ m_tc0640fio->read_7_callback().set_ioport("JOY");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)