summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/thief.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/thief.cpp')
-rw-r--r--src/mame/drivers/thief.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/thief.cpp b/src/mame/drivers/thief.cpp
index 4b27c7b583e..c6a6970ffb1 100644
--- a/src/mame/drivers/thief.cpp
+++ b/src/mame/drivers/thief.cpp
@@ -399,10 +399,10 @@ MACHINE_CONFIG_START(thief_state::thief)
MCFG_DEVICE_IO_MAP(io_map)
MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(thief_state, iack)
- MCFG_DEVICE_ADD("ppi", I8255A, 0)
- MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, thief_state, thief_input_select_w))
- MCFG_I8255_IN_PORTB_CB(READ8(*this, thief_state, thief_io_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, thief_state, tape_control_w))
+ i8255_device &ppi(I8255A(config, "ppi"));
+ ppi.out_pa_callback().set(FUNC(thief_state::thief_input_select_w));
+ ppi.in_pb_callback().set(FUNC(thief_state::thief_io_r));
+ ppi.out_pc_callback().set(FUNC(thief_state::tape_control_w));
// video hardware
MCFG_SCREEN_ADD("screen", RASTER)