diff options
author | mooglyguy <therealmogminer@gmail.com> | 2018-08-10 18:08:03 +0200 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-08-10 18:08:03 +0200 |
commit | 358ee652df3d7f2ff7e9f3e2b9e3bfc71832942b (patch) | |
tree | 5d98cfd52e6bf275090837831f4efe87c4703694 /src/mame/drivers/datum.cpp | |
parent | 0d4a4e5e95a58ca1cb821df1cf9afd8b559ccac2 (diff) |
-pia6821: Removed MCFG and old devcb. [Ryan Holtz]
Diffstat (limited to 'src/mame/drivers/datum.cpp')
-rw-r--r-- | src/mame/drivers/datum.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/datum.cpp b/src/mame/drivers/datum.cpp index 7463e718f56..d774b737b66 100644 --- a/src/mame/drivers/datum.cpp +++ b/src/mame/drivers/datum.cpp @@ -191,16 +191,16 @@ MACHINE_CONFIG_START(datum_state::datum) config.set_default_layout(layout_datum); /* Devices */ - MCFG_DEVICE_ADD("pia1", PIA6821, 0) // keyboard & display - MCFG_PIA_READPA_HANDLER(READ8(*this, datum_state, pa_r)) - MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, datum_state, pa_w)) - MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, datum_state, pb_w)) - MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE)) - MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE)) - - MCFG_DEVICE_ADD("pia2", PIA6821, 0) // expansion - MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE)) - MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE)) + PIA6821(config, m_pia1, 0); // keyboard & display + m_pia1->readpa_handler().set(FUNC(datum_state::pa_r)); + m_pia1->writepa_handler().set(FUNC(datum_state::pa_w)); + m_pia1->writepb_handler().set(FUNC(datum_state::pb_w)); + m_pia1->irqa_handler().set_inputline("maincpu", M6802_IRQ_LINE); + m_pia1->irqb_handler().set_inputline("maincpu", M6802_IRQ_LINE); + + pia6821_device &pia2(PIA6821(config, "pia2", 0)); // expansion + pia2.irqa_handler().set_inputline("maincpu", M6802_IRQ_LINE); + pia2.irqb_handler().set_inputline("maincpu", M6802_IRQ_LINE); MCFG_DEVICE_ADD("acia", ACIA6850, 0) // rs232 MACHINE_CONFIG_END |