diff options
Diffstat (limited to 'src/mame/drivers/xtheball.cpp')
-rw-r--r-- | src/mame/drivers/xtheball.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/xtheball.cpp b/src/mame/drivers/xtheball.cpp index e6106a1c766..d9294cf1062 100644 --- a/src/mame/drivers/xtheball.cpp +++ b/src/mame/drivers/xtheball.cpp @@ -306,16 +306,16 @@ MACHINE_CONFIG_START(xtheball_state::xtheball) MCFG_NVRAM_ADD_1FILL("nvram") - MCFG_DEVICE_ADD("latch1", HC259, 0) - MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE("ticket", ticket_dispenser_device, motor_w)) + hc259_device &latch1(HC259(config, "latch1")); + latch1.q_out_cb<7>().set("ticket", FUNC(ticket_dispenser_device::motor_w)); // Q4 = meter, Q6 = tickets, Q7 = tickets? - MCFG_DEVICE_ADD("latch2", HC259, 0) - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(OUTPUT("led0")) // start lamp + hc259_device &latch2(HC259(config, "latch2")); + latch2.q_out_cb<0>().set_output("led0"); // start lamp // Q1-Q7 = more lamps? - MCFG_DEVICE_ADD("latch3", HC259, 0) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, xtheball_state, foreground_mode_w)) + hc259_device &latch3(HC259(config, "latch3")); + latch3.q_out_cb<3>().set(FUNC(xtheball_state::foreground_mode_w)); // Q3 = video foreground control? MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH) |