diff options
Diffstat (limited to 'src/mame/drivers/osbexec.cpp')
-rw-r--r-- | src/mame/drivers/osbexec.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/osbexec.cpp b/src/mame/drivers/osbexec.cpp index 6acb93a6a06..158e5f1c51c 100644 --- a/src/mame/drivers/osbexec.cpp +++ b/src/mame/drivers/osbexec.cpp @@ -547,19 +547,19 @@ MACHINE_CONFIG_START(osbexec_state::osbexec) MCFG_DEVICE_ADD(m_speaker, SPEAKER_SOUND) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) - MCFG_DEVICE_ADD(m_pia[0], PIA6821, 0) - MCFG_PIA_READPA_HANDLER(READ8(*this, osbexec_state, osbexec_pia0_a_r)) - MCFG_PIA_READPB_HANDLER(READ8(*this, osbexec_state, osbexec_pia0_b_r)) - MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, osbexec_state, osbexec_pia0_a_w)) - MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, osbexec_state, osbexec_pia0_b_w)) - MCFG_PIA_CA2_HANDLER(WRITELINE(*this, osbexec_state, osbexec_pia0_ca2_w)) - MCFG_PIA_CB2_HANDLER(WRITELINE(*this, osbexec_state, osbexec_pia0_cb2_w)) - MCFG_PIA_IRQA_HANDLER(WRITELINE("mainirq", input_merger_device, in_w<0>)) - MCFG_PIA_IRQB_HANDLER(WRITELINE("mainirq", input_merger_device, in_w<1>)) + PIA6821(config, m_pia[0], 0); + m_pia[0]->readpa_handler().set(FUNC(osbexec_state::osbexec_pia0_a_r)); + m_pia[0]->readpb_handler().set(FUNC(osbexec_state::osbexec_pia0_b_r)); + m_pia[0]->writepa_handler().set(FUNC(osbexec_state::osbexec_pia0_a_w)); + m_pia[0]->writepb_handler().set(FUNC(osbexec_state::osbexec_pia0_b_w)); + m_pia[0]->ca2_handler().set(FUNC(osbexec_state::osbexec_pia0_ca2_w)); + m_pia[0]->cb2_handler().set(FUNC(osbexec_state::osbexec_pia0_cb2_w)); + m_pia[0]->irqa_handler().set("mainirq", FUNC(input_merger_device::in_w<0>)); + m_pia[0]->irqb_handler().set("mainirq", FUNC(input_merger_device::in_w<1>)); MCFG_DEVICE_ADD(m_pia[1], PIA6821, 0) - MCFG_PIA_IRQA_HANDLER(WRITELINE("mainirq", input_merger_device, in_w<2>)) - MCFG_PIA_IRQB_HANDLER(WRITELINE("mainirq", input_merger_device, in_w<3>)) + m_pia[1]->irqa_handler().set("mainirq", FUNC(input_merger_device::in_w<2>)); + m_pia[1]->irqb_handler().set("mainirq", FUNC(input_merger_device::in_w<3>)); INPUT_MERGER_ANY_HIGH(config, "mainirq").output_handler().set_inputline(m_maincpu, 0); |