summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tvboy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tvboy.cpp')
-rw-r--r--src/mame/drivers/tvboy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/tvboy.cpp b/src/mame/drivers/tvboy.cpp
index 5a9f0bae655..1a37960360e 100644
--- a/src/mame/drivers/tvboy.cpp
+++ b/src/mame/drivers/tvboy.cpp
@@ -107,12 +107,12 @@ MACHINE_CONFIG_START(tvboy_state::tvboyii)
MCFG_MOS6530n_OUT_PB_CB(WRITE8(*this, tvboy_state, switch_B_w))
MCFG_MOS6530n_IRQ_CB(WRITELINE(*this, tvboy_state, irq_callback))
#else
- MCFG_DEVICE_ADD("riot", RIOT6532, MASTER_CLOCK_PAL / 3)
- MCFG_RIOT6532_IN_PA_CB(READ8(*this, tvboy_state, switch_A_r))
- MCFG_RIOT6532_OUT_PA_CB(WRITE8(*this, tvboy_state, switch_A_w))
- MCFG_RIOT6532_IN_PB_CB(READ8(*this, tvboy_state, riot_input_port_8_r))
- MCFG_RIOT6532_OUT_PB_CB(WRITE8(*this, tvboy_state, switch_B_w))
- MCFG_RIOT6532_IRQ_CB(WRITELINE(*this, tvboy_state, irq_callback))
+ RIOT6532(config, m_riot, MASTER_CLOCK_PAL / 3);
+ m_riot->in_pa_callback().set(FUNC(tvboy_state::switch_A_r));
+ m_riot->out_pa_callback().set(FUNC(tvboy_state::switch_A_w));
+ m_riot->in_pb_callback().set(FUNC(tvboy_state::riot_input_port_8_r));
+ m_riot->out_pb_callback().set(FUNC(tvboy_state::switch_B_w));
+ m_riot->irq_callback().set(FUNC(tvboy_state::irq_callback));
#endif
MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, "joy")