summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rgum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rgum.cpp')
-rw-r--r--src/mame/drivers/rgum.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/rgum.cpp b/src/mame/drivers/rgum.cpp
index 8a9ff68067a..00850ea070a 100644
--- a/src/mame/drivers/rgum.cpp
+++ b/src/mame/drivers/rgum.cpp
@@ -264,10 +264,10 @@ MACHINE_CONFIG_START(rgum_state::rgum)
MCFG_MC6845_CHAR_WIDTH(8)
MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
- MCFG_DEVICE_ADD("ppi8255", I8255A, 0)
- MCFG_I8255_IN_PORTA_CB(IOPORT("IN0"))
- MCFG_I8255_IN_PORTB_CB(IOPORT("IN1"))
- MCFG_I8255_IN_PORTC_CB(IOPORT("IN2"))
+ i8255_device &ppi(I8255A(config, "ppi8255"));
+ ppi.in_pa_callback().set_ioport("IN0");
+ ppi.in_pb_callback().set_ioport("IN1");
+ ppi.in_pc_callback().set_ioport("IN2");
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_rgum)
MCFG_PALETTE_ADD("palette", 0x100)