diff options
Diffstat (limited to 'src/mame/drivers/spectra.cpp')
-rw-r--r-- | src/mame/drivers/spectra.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/spectra.cpp b/src/mame/drivers/spectra.cpp index f150554d0f6..ea512f79daf 100644 --- a/src/mame/drivers/spectra.cpp +++ b/src/mame/drivers/spectra.cpp @@ -234,12 +234,12 @@ MACHINE_CONFIG_START(spectra_state::spectra) MCFG_DEVICE_ADD("maincpu", M6502, XTAL(3'579'545)/4) // actually a M6503 MCFG_DEVICE_PROGRAM_MAP(spectra_map) - MCFG_DEVICE_ADD("riot", RIOT6532, XTAL(3'579'545)/4) - MCFG_RIOT6532_IN_PA_CB(READ8(*this, spectra_state, porta_r)) - MCFG_RIOT6532_OUT_PA_CB(WRITE8(*this, spectra_state, porta_w)) - MCFG_RIOT6532_IN_PB_CB(READ8(*this, spectra_state, portb_r)) - MCFG_RIOT6532_OUT_PB_CB(WRITE8(*this, spectra_state, portb_w)) - MCFG_RIOT6532_IRQ_CB(INPUTLINE("maincpu", M6502_IRQ_LINE)) + riot6532_device &riot(RIOT6532(config, "riot", XTAL(3'579'545)/4)); + riot.in_pa_callback().set(FUNC(spectra_state::porta_r)); + riot.out_pa_callback().set(FUNC(spectra_state::porta_w)); + riot.in_pb_callback().set(FUNC(spectra_state::portb_r)); + riot.out_pb_callback().set(FUNC(spectra_state::portb_w)); + riot.irq_callback().set_inputline("maincpu", M6502_IRQ_LINE); MCFG_NVRAM_ADD_1FILL("nvram") |