summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/targeth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/targeth.cpp')
-rw-r--r--src/mame/drivers/targeth.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/targeth.cpp b/src/mame/drivers/targeth.cpp
index 8988f0adeea..a729d863f2a 100644
--- a/src/mame/drivers/targeth.cpp
+++ b/src/mame/drivers/targeth.cpp
@@ -281,9 +281,9 @@ MACHINE_CONFIG_START(targeth_state::targeth)
MCFG_DEVICE_ADD("gaelco_ds5002fp", GAELCO_DS5002FP, XTAL(24'000'000) / 2)
MCFG_DEVICE_ADDRESS_MAP(0, mcu_hostmem_map)
- MCFG_DEVICE_ADD("outlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, targeth_state, coin1_counter_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, targeth_state, coin2_counter_w))
+ LS259(config, m_outlatch);
+ m_outlatch->q_out_cb<2>().set(FUNC(targeth_state::coin1_counter_w));
+ m_outlatch->q_out_cb<3>().set(FUNC(targeth_state::coin2_counter_w));
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)