summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/imolagp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/imolagp.cpp')
-rw-r--r--src/mame/drivers/imolagp.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/imolagp.cpp b/src/mame/drivers/imolagp.cpp
index c7c9a629b80..00782c004ad 100644
--- a/src/mame/drivers/imolagp.cpp
+++ b/src/mame/drivers/imolagp.cpp
@@ -94,8 +94,8 @@ www.andys-arcade.com
class imolagp_state : public driver_device
{
public:
- imolagp_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ imolagp_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_slavecpu(*this, "slave"),
m_steer_pot_timer(*this, "pot"),
@@ -524,12 +524,12 @@ MACHINE_CONFIG_START(imolagp_state::imolagp)
MCFG_QUANTUM_PERFECT_CPU("maincpu")
- MCFG_DEVICE_ADD("ppi8255", I8255A, 0)
+ i8255_device &ppi(I8255A(config, "ppi8255", 0));
// mode $91 - ports A & C-lower as input, ports B & C-upper as output
- MCFG_I8255_IN_PORTA_CB(IOPORT("IN0"))
- MCFG_I8255_IN_PORTB_CB(LOGGER("PPI8255 - unmapped read port B"))
- MCFG_I8255_OUT_PORTB_CB(LOGGER("PPI8255 - unmapped write port B"))
- MCFG_I8255_IN_PORTC_CB(IOPORT("IN1"))
+ ppi.in_pa_callback().set_ioport("IN0");
+ ppi.in_pb_callback().set_log("PPI8255 - unmapped read port B");
+ ppi.out_pb_callback().set_log("PPI8255 - unmapped write port B");
+ ppi.in_pc_callback().set_ioport("IN1");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)