summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/byvid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/byvid.cpp')
-rw-r--r--src/mame/drivers/byvid.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/mame/drivers/byvid.cpp b/src/mame/drivers/byvid.cpp
index 0043cfa403b..ed59a208312 100644
--- a/src/mame/drivers/byvid.cpp
+++ b/src/mame/drivers/byvid.cpp
@@ -767,36 +767,36 @@ MACHINE_CONFIG_START(by133_state::babypac)
MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_DEVICE_ADD("pia_u7", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(*this, by133_state, u7_a_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, by133_state, u7_a_w))
- MCFG_PIA_READPB_HANDLER(READ8(*this, by133_state, u7_b_r))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, by133_state, u7_b_w))
- MCFG_PIA_CA2_HANDLER(WRITELINE(*this, by133_state, u7_ca2_w))
- MCFG_PIA_CB2_HANDLER(WRITELINE(*this, by133_state, u7_cb2_w))
- MCFG_PIA_IRQA_HANDLER(INPUTLINE("videocpu", M6809_FIRQ_LINE))
- MCFG_PIA_IRQB_HANDLER(INPUTLINE("videocpu", M6809_FIRQ_LINE))
-
- MCFG_DEVICE_ADD("pia_u10", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(*this, by133_state, u10_a_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, by133_state, u10_a_w))
- MCFG_PIA_READPB_HANDLER(READ8(*this, by133_state, u10_b_r))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, by133_state, u10_b_w))
- MCFG_PIA_CA2_HANDLER(WRITELINE(*this, by133_state, u10_ca2_w))
- MCFG_PIA_CB2_HANDLER(WRITELINE(*this, by133_state, u10_cb2_w))
- MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
- MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
+ PIA6821(config, m_pia_u7, 0);
+ m_pia_u7->readpa_handler().set(FUNC(by133_state::u7_a_r));
+ m_pia_u7->writepa_handler().set(FUNC(by133_state::u7_a_w));
+ m_pia_u7->readpb_handler().set(FUNC(by133_state::u7_b_r));
+ m_pia_u7->writepb_handler().set(FUNC(by133_state::u7_b_w));
+ m_pia_u7->ca2_handler().set(FUNC(by133_state::u7_ca2_w));
+ m_pia_u7->cb2_handler().set(FUNC(by133_state::u7_cb2_w));
+ m_pia_u7->irqa_handler().set_inputline("videocpu", M6809_FIRQ_LINE);
+ m_pia_u7->irqa_handler().set_inputline("videocpu", M6809_FIRQ_LINE);
+
+ PIA6821(config, m_pia_u10, 0);
+ m_pia_u10->readpa_handler().set(FUNC(by133_state::u10_a_r));
+ m_pia_u10->writepa_handler().set(FUNC(by133_state::u10_a_w));
+ m_pia_u10->readpb_handler().set(FUNC(by133_state::u10_b_r));
+ m_pia_u10->writepb_handler().set(FUNC(by133_state::u10_b_w));
+ m_pia_u10->ca2_handler().set(FUNC(by133_state::u10_ca2_w));
+ m_pia_u10->cb2_handler().set(FUNC(by133_state::u10_cb2_w));
+ m_pia_u10->irqa_handler().set_inputline("maincpu", M6800_IRQ_LINE);
+ m_pia_u10->irqb_handler().set_inputline("maincpu", M6800_IRQ_LINE);
MCFG_TIMER_DRIVER_ADD_PERIODIC("babypac1", by133_state, u10_timer, attotime::from_hz(120)) // mains freq*2
- MCFG_DEVICE_ADD("pia_u11", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(*this, by133_state, u11_a_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, by133_state, u11_a_w))
- MCFG_PIA_READPB_HANDLER(READ8(*this, by133_state, u11_b_r))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, by133_state, u11_b_w))
- MCFG_PIA_CA2_HANDLER(WRITELINE(*this, by133_state, u11_ca2_w))
- MCFG_PIA_CB2_HANDLER(WRITELINE(*this, by133_state, u11_cb2_w))
- MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
- MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
+ PIA6821(config, m_pia_u11, 0);
+ m_pia_u11->readpa_handler().set(FUNC(by133_state::u11_a_r));
+ m_pia_u11->writepa_handler().set(FUNC(by133_state::u11_a_w));
+ m_pia_u11->readpb_handler().set(FUNC(by133_state::u11_b_r));
+ m_pia_u11->writepb_handler().set(FUNC(by133_state::u11_b_w));
+ m_pia_u11->ca2_handler().set(FUNC(by133_state::u11_ca2_w));
+ m_pia_u11->cb2_handler().set(FUNC(by133_state::u11_cb2_w));
+ m_pia_u11->irqa_handler().set_inputline("maincpu", M6800_IRQ_LINE);
+ m_pia_u11->irqb_handler().set_inputline("maincpu", M6800_IRQ_LINE);
MCFG_TIMER_DRIVER_ADD_PERIODIC("babypac2", by133_state, u11_timer, attotime::from_hz(634)) // 555 timer*2
/* video hardware */