summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/kyugo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/kyugo.cpp')
-rw-r--r--src/mame/drivers/kyugo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/kyugo.cpp b/src/mame/drivers/kyugo.cpp
index c4174157658..49f42ac102e 100644
--- a/src/mame/drivers/kyugo.cpp
+++ b/src/mame/drivers/kyugo.cpp
@@ -534,10 +534,10 @@ MACHINE_CONFIG_START(kyugo_state::kyugo_base)
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
- MCFG_DEVICE_ADD("mainlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, kyugo_state, nmi_mask_w))
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, kyugo_state, flipscreen_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(kyugo_state::nmi_mask_w));
+ mainlatch.q_out_cb<1>().set(FUNC(kyugo_state::flipscreen_w));
+ mainlatch.q_out_cb<2>().set_inputline(m_subcpu, INPUT_LINE_RESET).invert();
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)