summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/stargame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/stargame.cpp')
-rw-r--r--src/mame/drivers/stargame.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mame/drivers/stargame.cpp b/src/mame/drivers/stargame.cpp
index 2a8c005e115..e7cd7a4ab6a 100644
--- a/src/mame/drivers/stargame.cpp
+++ b/src/mame/drivers/stargame.cpp
@@ -132,18 +132,17 @@ MACHINE_CONFIG_START(stargame_state::stargame)
MCFG_DEVICE_ADD("ay", AY8910, 15000000 / 8) // clock line marked as CK2 and derived from 15MHz crystal
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "aysnd", 0.25)
- MCFG_DEVICE_ADD("mainlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(NOOP) // DADIS
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(NOOP) // DAPRI
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(NOOP) // RJUEGO
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(NOOP) // RFLIPPER
- MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) // to AUXILLIAR socket
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(NOOP) // RFDIS
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(INPUTLINE("audiocpu", INPUT_LINE_RESET)) MCFG_DEVCB_INVERT // SRESET
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(NOOP) // MAKRES
-
- MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI))
+ ls259_device &mainlatch(LS259(config, "mainlatch"));
+ mainlatch.q_out_cb<0>().set_nop(); // DADIS
+ mainlatch.q_out_cb<1>().set_nop(); // DAPRI
+ mainlatch.q_out_cb<2>().set_nop(); // RJUEGO
+ mainlatch.q_out_cb<3>().set_nop(); // RFLIPPER
+ mainlatch.q_out_cb<4>().set_nop(); // to AUXILLIAR socket
+ mainlatch.q_out_cb<5>().set_nop(); // RFDIS
+ mainlatch.q_out_cb<6>().set_inputline(m_audiocpu, INPUT_LINE_RESET).invert(); // SRESET
+ mainlatch.q_out_cb<7>().set_nop(); // MAKRES
+
+ GENERIC_LATCH_8(config, "soundlatch").data_pending_callback().set_inputline(m_audiocpu, INPUT_LINE_NMI);
MCFG_WATCHDOG_ADD("watchdog")
MACHINE_CONFIG_END