summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/c80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/c80.cpp')
-rw-r--r--src/mame/drivers/c80.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/c80.cpp b/src/mame/drivers/c80.cpp
index 5991651f614..6a614e5c8b5 100644
--- a/src/mame/drivers/c80.cpp
+++ b/src/mame/drivers/c80.cpp
@@ -265,15 +265,15 @@ MACHINE_CONFIG_START(c80_state::c80)
config.set_default_layout(layout_c80);
/* devices */
- MCFG_DEVICE_ADD(Z80PIO1_TAG, Z80PIO, 2500000)
- MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_Z80PIO_IN_PA_CB(READ8(*this, c80_state, pio1_pa_r))
- MCFG_Z80PIO_OUT_PA_CB(WRITE8(*this, c80_state, pio1_pa_w))
- MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, c80_state, pio1_pb_w))
- MCFG_Z80PIO_OUT_BRDY_CB(WRITELINE(*this, c80_state, pio1_brdy_w))
-
- MCFG_DEVICE_ADD(Z80PIO2_TAG, Z80PIO, 2500000)
- MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
+ Z80PIO(config, m_pio1, 2500000);
+ m_pio1->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ m_pio1->in_pa_callback().set(FUNC(c80_state::pio1_pa_r));
+ m_pio1->out_pa_callback().set(FUNC(c80_state::pio1_pa_w));
+ m_pio1->out_pb_callback().set(FUNC(c80_state::pio1_pb_w));
+ m_pio1->out_brdy_callback().set(FUNC(c80_state::pio1_brdy_w));
+
+ z80pio_device& pio2(Z80PIO(config, Z80PIO2_TAG, XTAL(2500000)));
+ pio2.out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED )