summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/balsente.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/balsente.cpp')
-rw-r--r--src/mame/drivers/balsente.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/balsente.cpp b/src/mame/drivers/balsente.cpp
index eac9c000dc2..c48967b4989 100644
--- a/src/mame/drivers/balsente.cpp
+++ b/src/mame/drivers/balsente.cpp
@@ -1344,17 +1344,17 @@ MACHINE_CONFIG_START(balsente_state::balsente)
MCFG_PIT8253_CLK1(8_MHz_XTAL / 4)
MCFG_PIT8253_CLK2(8_MHz_XTAL / 4)
- MCFG_DEVICE_ADD("outlatch", LS259, 0) // U9H
+ LS259(config, m_outlatch); // U9H
// these outputs are generally used to control the various lamps
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, balsente_state, out0_w))
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, balsente_state, out1_w))
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, balsente_state, out2_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, balsente_state, out3_w))
- MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, balsente_state, out4_w))
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, balsente_state, out5_w))
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(*this, balsente_state, out6_w))
+ m_outlatch->q_out_cb<0>().set(FUNC(balsente_state::out0_w));
+ m_outlatch->q_out_cb<1>().set(FUNC(balsente_state::out1_w));
+ m_outlatch->q_out_cb<2>().set(FUNC(balsente_state::out2_w));
+ m_outlatch->q_out_cb<3>().set(FUNC(balsente_state::out3_w));
+ m_outlatch->q_out_cb<4>().set(FUNC(balsente_state::out4_w));
+ m_outlatch->q_out_cb<5>().set(FUNC(balsente_state::out5_w));
+ m_outlatch->q_out_cb<6>().set(FUNC(balsente_state::out6_w));
// special case is output 7, which recalls the NVRAM data
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, balsente_state, nvrecall_w))
+ m_outlatch->q_out_cb<7>().set(FUNC(balsente_state::nvrecall_w));
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)