diff options
Diffstat (limited to 'src/mame/drivers/e100.cpp')
-rw-r--r-- | src/mame/drivers/e100.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/e100.cpp b/src/mame/drivers/e100.cpp index 67264bd920e..9b6fe1887c7 100644 --- a/src/mame/drivers/e100.cpp +++ b/src/mame/drivers/e100.cpp @@ -560,19 +560,19 @@ MACHINE_CONFIG_START(e100_state::e100) /* 0xF894 0xC818 (PIA2 Control A) = 0x34 - CA2 is low and lock DDRA */ /* 0xF896 0xC818 (PIA1 Control B) = 0x34 - CB2 is low and lock DDRB */ /* 0xF896 0xC818 (PIA2 Control B) = 0x34 - CB2 is low and lock DDRB */ - MCFG_DEVICE_ADD(PIA1_TAG, PIA6821, 0) - MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, e100_state, pia1_kbA_w)) - MCFG_PIA_READPA_HANDLER(READ8(*this, e100_state, pia1_kbA_r)) - MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, e100_state, pia1_kbB_w)) - MCFG_PIA_READPB_HANDLER(READ8(*this, e100_state, pia1_kbB_r)) - MCFG_PIA_READCA1_HANDLER(READLINE(*this, e100_state, pia1_ca1_r)) - MCFG_PIA_READCB1_HANDLER(READLINE(*this, e100_state, pia1_cb1_r)) - MCFG_PIA_CA2_HANDLER(WRITELINE(*this, e100_state, pia1_ca2_w)) - MCFG_PIA_CB2_HANDLER(WRITELINE(*this, e100_state, pia1_cb2_w)) + PIA6821(config, m_pia1, 0); + m_pia1->writepa_handler().set(FUNC(e100_state::pia1_kbA_w)); + m_pia1->readpa_handler().set(FUNC(e100_state::pia1_kbA_r)); + m_pia1->writepb_handler().set(FUNC(e100_state::pia1_kbB_w)); + m_pia1->readpb_handler().set(FUNC(e100_state::pia1_kbB_r)); + m_pia1->readca1_handler().set(FUNC(e100_state::pia1_ca1_r)); + m_pia1->readcb1_handler().set(FUNC(e100_state::pia1_cb1_r)); + m_pia1->ca2_handler().set(FUNC(e100_state::pia1_ca2_w)); + m_pia1->cb2_handler().set(FUNC(e100_state::pia1_cb2_w)); /* The optional second PIA enables the expansion port on CA1 and a software RTC with 50Hz resolution */ - MCFG_DEVICE_ADD(PIA2_TAG, PIA6821, 0) - MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE)) + PIA6821(config, m_pia2, 0); + m_pia2->irqa_handler().set_inputline("maincpu", M6800_IRQ_LINE); /* Serial port support */ MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, nullptr) |