summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/funkybee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/funkybee.cpp')
-rw-r--r--src/mame/drivers/funkybee.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/funkybee.cpp b/src/mame/drivers/funkybee.cpp
index 450737c3f42..085ca67dc09 100644
--- a/src/mame/drivers/funkybee.cpp
+++ b/src/mame/drivers/funkybee.cpp
@@ -293,11 +293,11 @@ MACHINE_CONFIG_START(funkybee_state::funkybee)
MCFG_DEVICE_IO_MAP(io_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", funkybee_state, irq0_line_hold)
- MCFG_DEVICE_ADD("mainlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, funkybee_state, flipscreen_w))
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, funkybee_state, coin_counter_1_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, funkybee_state, coin_counter_2_w))
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, funkybee_state, gfx_bank_w))
+ ls259_device &mainlatch(LS259(config, "mainlatch"));
+ mainlatch.q_out_cb<0>().set(FUNC(funkybee_state::flipscreen_w));
+ mainlatch.q_out_cb<2>().set(FUNC(funkybee_state::coin_counter_1_w));
+ mainlatch.q_out_cb<3>().set(FUNC(funkybee_state::coin_counter_2_w));
+ mainlatch.q_out_cb<5>().set(FUNC(funkybee_state::gfx_bank_w));
MCFG_WATCHDOG_ADD("watchdog")