summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/vastar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/vastar.cpp')
-rw-r--r--src/mame/drivers/vastar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/vastar.cpp b/src/mame/drivers/vastar.cpp
index 79bd42bef2b..e1c30f5a8a0 100644
--- a/src/mame/drivers/vastar.cpp
+++ b/src/mame/drivers/vastar.cpp
@@ -432,10 +432,10 @@ MACHINE_CONFIG_START(vastar_state::vastar)
MCFG_QUANTUM_TIME(attotime::from_hz(600)) /* 10 CPU slices per frame - seems enough to ensure proper synchronization of the CPUs */
- MCFG_DEVICE_ADD("mainlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, vastar_state, nmi_mask_w))
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, vastar_state, flip_screen_w))
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(INPUTLINE("sub", INPUT_LINE_RESET)) MCFG_DEVCB_INVERT
+ ls259_device &mainlatch(LS259(config, "mainlatch"));
+ mainlatch.q_out_cb<0>().set(FUNC(vastar_state::nmi_mask_w));
+ mainlatch.q_out_cb<1>().set(FUNC(vastar_state::flip_screen_w));
+ mainlatch.q_out_cb<2>().set_inputline(m_subcpu, INPUT_LINE_RESET).invert();
MCFG_WATCHDOG_ADD("watchdog")