diff options
Diffstat (limited to 'src/mame/drivers/dblcrown.cpp')
-rw-r--r-- | src/mame/drivers/dblcrown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/dblcrown.cpp b/src/mame/drivers/dblcrown.cpp index d3441120833..b931af1c121 100644 --- a/src/mame/drivers/dblcrown.cpp +++ b/src/mame/drivers/dblcrown.cpp @@ -626,10 +626,10 @@ MACHINE_CONFIG_START(dblcrown_state::dblcrown) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - MCFG_DEVICE_ADD("ppi", I8255, 0) - MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, dblcrown_state, lamps_w)) - MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, dblcrown_state, bank_w)) - MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, dblcrown_state, mux_w)) + i8255_device &ppi(I8255(config, "ppi")); + ppi.out_pa_callback().set(FUNC(dblcrown_state::lamps_w)); + ppi.out_pb_callback().set(FUNC(dblcrown_state::bank_w)); + ppi.out_pc_callback().set(FUNC(dblcrown_state::mux_w)); /* sound hardware */ SPEAKER(config, "mono").front_center(); |