diff options
Diffstat (limited to 'src/mame/drivers/gaelco.cpp')
-rw-r--r-- | src/mame/drivers/gaelco.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mame/drivers/gaelco.cpp b/src/mame/drivers/gaelco.cpp index 705e8170f73..e84e7e250a5 100644 --- a/src/mame/drivers/gaelco.cpp +++ b/src/mame/drivers/gaelco.cpp @@ -637,11 +637,11 @@ MACHINE_CONFIG_START(gaelco_state::bigkarnk) MCFG_QUANTUM_TIME(attotime::from_hz(600)) - MCFG_DEVICE_ADD("outlatch", LS259, 0) - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, gaelco_state, coin1_lockout_w)) MCFG_DEVCB_INVERT - MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, gaelco_state, coin2_lockout_w)) MCFG_DEVCB_INVERT - MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, gaelco_state, coin1_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, gaelco_state, coin2_counter_w)) + LS259(config, m_outlatch); + m_outlatch->q_out_cb<0>().set(FUNC(gaelco_state::coin1_lockout_w)).invert(); + m_outlatch->q_out_cb<1>().set(FUNC(gaelco_state::coin2_lockout_w)).invert(); + m_outlatch->q_out_cb<2>().set(FUNC(gaelco_state::coin1_counter_w)); + m_outlatch->q_out_cb<3>().set(FUNC(gaelco_state::coin2_counter_w)); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -710,12 +710,12 @@ MACHINE_CONFIG_START(gaelco_state::squash) MCFG_QUANTUM_TIME(attotime::from_hz(600)) - MCFG_DEVICE_ADD("outlatch", LS259, 0) // B8 - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, gaelco_state, coin1_lockout_w)) MCFG_DEVCB_INVERT - MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, gaelco_state, coin2_lockout_w)) MCFG_DEVCB_INVERT - MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, gaelco_state, coin1_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, gaelco_state, coin2_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) // used + LS259(config, m_outlatch); // B8 + m_outlatch->q_out_cb<0>().set(FUNC(gaelco_state::coin1_lockout_w)).invert(); + m_outlatch->q_out_cb<1>().set(FUNC(gaelco_state::coin2_lockout_w)).invert(); + m_outlatch->q_out_cb<2>().set(FUNC(gaelco_state::coin1_counter_w)); + m_outlatch->q_out_cb<3>().set(FUNC(gaelco_state::coin2_counter_w)); + m_outlatch->q_out_cb<4>().set_nop(); // used /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -749,12 +749,12 @@ MACHINE_CONFIG_START(gaelco_state::thoop) MCFG_QUANTUM_TIME(attotime::from_hz(600)) - MCFG_DEVICE_ADD("outlatch", LS259, 0) // B8 - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, gaelco_state, coin1_lockout_w)) // not inverted - MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, gaelco_state, coin2_lockout_w)) // not inverted - MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, gaelco_state, coin1_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, gaelco_state, coin2_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) // used + LS259(config, m_outlatch); // B8 + m_outlatch->q_out_cb<0>().set(FUNC(gaelco_state::coin1_lockout_w)); // not inverted + m_outlatch->q_out_cb<1>().set(FUNC(gaelco_state::coin2_lockout_w)); // not inverted + m_outlatch->q_out_cb<2>().set(FUNC(gaelco_state::coin1_counter_w)); + m_outlatch->q_out_cb<3>().set(FUNC(gaelco_state::coin2_counter_w)); + m_outlatch->q_out_cb<4>().set_nop(); // used /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |