summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/victory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/victory.cpp')
-rw-r--r--src/mame/drivers/victory.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/victory.cpp b/src/mame/drivers/victory.cpp
index 91ff2451263..b71305b08a8 100644
--- a/src/mame/drivers/victory.cpp
+++ b/src/mame/drivers/victory.cpp
@@ -221,13 +221,13 @@ MACHINE_CONFIG_START(victory_state::victory)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
// PIO interrupts are disconnected
- MCFG_DEVICE_ADD("pio1", Z80PIO, VICTORY_MAIN_CPU_CLOCK) // at K8
- MCFG_Z80PIO_IN_PA_CB(IOPORT("DIAL"))
- MCFG_Z80PIO_IN_PB_CB(IOPORT("COIN"))
+ z80pio_device& pio1(Z80PIO(config, "pio1", VICTORY_MAIN_CPU_CLOCK)); // at K8
+ pio1.in_pa_callback().set_ioport("DIAL");
+ pio1.in_pb_callback().set_ioport("COIN");
- MCFG_DEVICE_ADD("pio2", Z80PIO, VICTORY_MAIN_CPU_CLOCK) // at L8
- MCFG_Z80PIO_IN_PA_CB(IOPORT("BUTTONS"))
- MCFG_Z80PIO_IN_PB_CB(IOPORT("UNUSED"))
+ z80pio_device& pio2(Z80PIO(config, "pio2", VICTORY_MAIN_CPU_CLOCK)); // at L8
+ pio2.in_pa_callback().set_ioport("BUTTONS");
+ pio2.in_pb_callback().set_ioport("UNUSED");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)