diff options
Diffstat (limited to 'src/mame/drivers/eacc.cpp')
-rw-r--r-- | src/mame/drivers/eacc.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/eacc.cpp b/src/mame/drivers/eacc.cpp index 89bb4534c4a..0877ee7ab54 100644 --- a/src/mame/drivers/eacc.cpp +++ b/src/mame/drivers/eacc.cpp @@ -252,16 +252,16 @@ MACHINE_CONFIG_START(eacc_state::eacc) config.set_default_layout(layout_eacc); - MCFG_DEVICE_ADD("pia", PIA6821, 0) - MCFG_PIA_READPB_HANDLER(READ8(*this, eacc_state, eacc_keyboard_r)) - MCFG_PIA_READCA1_HANDLER(READLINE(*this, eacc_state, eacc_distance_r)) - MCFG_PIA_READCB1_HANDLER(READLINE(*this, eacc_state, eacc_cb1_r)) - MCFG_PIA_READCA2_HANDLER(READLINE(*this, eacc_state, eacc_fuel_sensor_r)) - MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, eacc_state, eacc_segment_w)) - MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, eacc_state, eacc_digit_w)) - MCFG_PIA_CB2_HANDLER(WRITELINE(*this, eacc_state, eacc_cb2_w)) - MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE)) - MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE)) + PIA6821(config, m_pia, 0); + m_pia->readpb_handler().set(FUNC(eacc_state::eacc_keyboard_r)); + m_pia->readca1_handler().set(FUNC(eacc_state::eacc_distance_r)); + m_pia->readcb1_handler().set(FUNC(eacc_state::eacc_cb1_r)); + m_pia->readca2_handler().set(FUNC(eacc_state::eacc_fuel_sensor_r)); + m_pia->writepa_handler().set(FUNC(eacc_state::eacc_segment_w)); + m_pia->writepb_handler().set(FUNC(eacc_state::eacc_digit_w)); + m_pia->cb2_handler().set(FUNC(eacc_state::eacc_cb2_w)); + m_pia->irqa_handler().set_inputline("maincpu", M6802_IRQ_LINE); + m_pia->irqb_handler().set_inputline("maincpu", M6802_IRQ_LINE); MCFG_NVRAM_ADD_0FILL("nvram") MCFG_TIMER_DRIVER_ADD_PERIODIC("eacc_nmi", eacc_state, eacc_nmi, attotime::from_hz(600)) |