summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/timetrv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/timetrv.cpp')
-rw-r--r--src/mame/drivers/timetrv.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/timetrv.cpp b/src/mame/drivers/timetrv.cpp
index 34f5efea15b..fcba7d7649e 100644
--- a/src/mame/drivers/timetrv.cpp
+++ b/src/mame/drivers/timetrv.cpp
@@ -151,14 +151,14 @@ MACHINE_CONFIG_START(timetrv_state::timetrv)
EEPROM_2816(config, "eeprom");
- MCFG_DEVICE_ADD("ppi1", I8255, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(*this, timetrv_state, test1_r)) //inputs
- MCFG_I8255_IN_PORTB_CB(READ8(*this, timetrv_state, test2_r)) //eeprom read bit + inputs
-
- MCFG_DEVICE_ADD("ppi2", I8255, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(*this, timetrv_state, in_r)) //dsw
- MCFG_I8255_IN_PORTB_CB(READ8(*this, timetrv_state, in_r)) //dsw
- MCFG_I8255_IN_PORTC_CB(READ8(*this, timetrv_state, in_r)) //dsw
+ i8255_device &ppi1(I8255(config, "ppi1"));
+ ppi1.in_pa_callback().set(FUNC(timetrv_state::test1_r)); //inputs
+ ppi1.in_pb_callback().set(FUNC(timetrv_state::test2_r)); //eeprom read bit + inputs
+
+ i8255_device &ppi2(I8255(config, "ppi2"));
+ ppi2.in_pa_callback().set(FUNC(timetrv_state::in_r)); //dsw
+ ppi2.in_pb_callback().set(FUNC(timetrv_state::in_r)); //dsw
+ ppi2.in_pc_callback().set(FUNC(timetrv_state::in_r)); //dsw
MCFG_DEVICE_ADD("uart", NS16450, 1843200) // P82050 (serial interface for laserdisc)