summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/firefox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/firefox.cpp')
-rw-r--r--src/mame/drivers/firefox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/firefox.cpp b/src/mame/drivers/firefox.cpp
index bbd1994f3f9..8aaf78ffc7b 100644
--- a/src/mame/drivers/firefox.cpp
+++ b/src/mame/drivers/firefox.cpp
@@ -701,12 +701,12 @@ MACHINE_CONFIG_START(firefox_state::firefox)
X2212(config, "nvram_1c").set_auto_save(true);
X2212(config, "nvram_1d").set_auto_save(true);
- MCFG_DEVICE_ADD("riot", RIOT6532, MASTER_XTAL/8)
- MCFG_RIOT6532_IN_PA_CB(READ8(*this, firefox_state, riot_porta_r))
- MCFG_RIOT6532_OUT_PA_CB(WRITE8(*this, firefox_state, riot_porta_w))
- MCFG_RIOT6532_IN_PB_CB(READ8("tms", tms5220_device, status_r))
- MCFG_RIOT6532_OUT_PB_CB(WRITE8("tms", tms5220_device, data_w))
- MCFG_RIOT6532_IRQ_CB(INPUTLINE("audiocpu", M6502_IRQ_LINE))
+ riot6532_device &riot(RIOT6532(config, "riot", MASTER_XTAL/8));
+ riot.in_pa_callback().set(FUNC(firefox_state::riot_porta_r));
+ riot.out_pa_callback().set(FUNC(firefox_state::riot_porta_w));
+ riot.in_pb_callback().set("tms", FUNC(tms5220_device::status_r));
+ riot.out_pb_callback().set("tms", FUNC(tms5220_device::data_w));
+ riot.irq_callback().set_inputline("audiocpu", M6502_IRQ_LINE);
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();