summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/glass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/glass.cpp')
-rw-r--r--src/mame/drivers/glass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/glass.cpp b/src/mame/drivers/glass.cpp
index a7416bb83fd..a0d2865508f 100644
--- a/src/mame/drivers/glass.cpp
+++ b/src/mame/drivers/glass.cpp
@@ -238,12 +238,12 @@ MACHINE_CONFIG_START(glass_state::glass)
MCFG_DEVICE_PROGRAM_MAP(glass_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", glass_state, interrupt)
- MCFG_DEVICE_ADD("outlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, glass_state, coin1_lockout_w))
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, glass_state, coin2_lockout_w))
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, glass_state, coin1_counter_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, glass_state, coin2_counter_w))
- MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) // Sound Muting (if bit 0 == 1, sound output stream = 0)
+ LS259(config, m_outlatch);
+ m_outlatch->q_out_cb<0>().set(FUNC(glass_state::coin1_lockout_w));
+ m_outlatch->q_out_cb<1>().set(FUNC(glass_state::coin2_lockout_w));
+ m_outlatch->q_out_cb<2>().set(FUNC(glass_state::coin1_counter_w));
+ m_outlatch->q_out_cb<3>().set(FUNC(glass_state::coin2_counter_w));
+ m_outlatch->q_out_cb<4>().set_nop(); // Sound Muting (if bit 0 == 1, sound output stream = 0)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)