diff options
Diffstat (limited to 'src/mame/machine/cedar_magnet_plane.cpp')
-rw-r--r-- | src/mame/machine/cedar_magnet_plane.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/machine/cedar_magnet_plane.cpp b/src/mame/machine/cedar_magnet_plane.cpp index 0c74542281a..0fd0301d2c9 100644 --- a/src/mame/machine/cedar_magnet_plane.cpp +++ b/src/mame/machine/cedar_magnet_plane.cpp @@ -76,19 +76,19 @@ MACHINE_CONFIG_START(cedar_magnet_plane_device::device_add_mconfig) MCFG_DEVICE_PROGRAM_MAP(cedar_magnet_plane_map) MCFG_DEVICE_IO_MAP(cedar_magnet_plane_io) - MCFG_DEVICE_ADD("z80pio0", Z80PIO, 4000000/2) -// MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) - MCFG_Z80PIO_IN_PA_CB(READ8(*this, cedar_magnet_plane_device, pio0_pa_r)) - MCFG_Z80PIO_OUT_PA_CB(WRITE8(*this, cedar_magnet_plane_device, pio0_pa_w)) -// MCFG_Z80PIO_IN_PB_CB(READ8(*this, cedar_magnet_plane_device, pio0_pb_r)) - MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, cedar_magnet_plane_device, pio0_pb_w)) - - MCFG_DEVICE_ADD("z80pio1", Z80PIO, 4000000/2) -// MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) -// MCFG_Z80PIO_IN_PA_CB(READ8(*this, cedar_magnet_plane_device, pio1_pa_r)) - MCFG_Z80PIO_OUT_PA_CB(WRITE8(*this, cedar_magnet_plane_device, pio1_pa_w)) -// MCFG_Z80PIO_IN_PB_CB(READ8(*this, cedar_magnet_plane_device, pio1_pb_r)) - MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, cedar_magnet_plane_device, pio1_pb_w)) + z80pio_device& pio0(Z80PIO(config, "z80pio0", 4000000/2)); +// pio0.out_int_callback().set_inputline("maincpu", INPUT_LINE_IRQ0); + pio0.in_pa_callback().set(FUNC(cedar_magnet_plane_device::pio0_pa_r)); + pio0.out_pa_callback().set(FUNC(cedar_magnet_plane_device::pio0_pa_w)); +// pio0.in_pb_callback().set(FUNC(cedar_magnet_plane_device::pio0_pb_r)); + pio0.out_pb_callback().set(FUNC(cedar_magnet_plane_device::pio0_pb_w)); + + z80pio_device& pio1(Z80PIO(config, "z80pio1", 4000000/2)); +// pio1.out_int_callback().set_inputline("maincpu", INPUT_LINE_IRQ0); +// pio1.in_pa_callback().set(FUNC(cedar_magnet_plane_device::pio1_pa_r)); + pio1.out_pa_callback().set(FUNC(cedar_magnet_plane_device::pio1_pa_w)); +// pio1.in_pb_callback().set(FUNC(cedar_magnet_plane_device::pio1_pb_r)); + pio1.out_pb_callback().set(FUNC(cedar_magnet_plane_device::pio1_pb_w)); MACHINE_CONFIG_END |