summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nemesis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/nemesis.cpp')
-rw-r--r--src/mame/drivers/nemesis.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/nemesis.cpp b/src/mame/drivers/nemesis.cpp
index c3d9c9a7de5..2ce71783485 100644
--- a/src/mame/drivers/nemesis.cpp
+++ b/src/mame/drivers/nemesis.cpp
@@ -1468,17 +1468,17 @@ MACHINE_CONFIG_START(nemesis_state::nemesis)
MCFG_DEVICE_ADD("audiocpu", Z80,14318180/4) /* From schematics, should be accurate */
MCFG_DEVICE_PROGRAM_MAP(sound_map) /* fixed */
- MCFG_DEVICE_ADD("outlatch", LS259, 0) // 13J
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, nemesis_state, coin1_lockout_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(*this, nemesis_state, coin2_lockout_w))
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, nemesis_state, sound_irq_w))
+ ls259_device &outlatch(LS259(config, "outlatch")); // 13J
+ outlatch.q_out_cb<0>().set(FUNC(nemesis_state::coin1_lockout_w));
+ outlatch.q_out_cb<0>().append(FUNC(nemesis_state::coin2_lockout_w));
+ outlatch.q_out_cb<2>().set(FUNC(nemesis_state::sound_irq_w));
- MCFG_DEVICE_ADD("intlatch", LS259, 0) // 11K
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, nemesis_state, irq_enable_w))
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, nemesis_state, gfx_flipx_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, nemesis_state, gfx_flipy_w))
+ ls259_device &intlatch(LS259(config, "intlatch")); // 11K
+ intlatch.q_out_cb<0>().set(FUNC(nemesis_state::irq_enable_w));
+ intlatch.q_out_cb<2>().set(FUNC(nemesis_state::gfx_flipx_w));
+ intlatch.q_out_cb<3>().set(FUNC(nemesis_state::gfx_flipy_w));
- MCFG_WATCHDOG_ADD("watchdog")
+ WATCHDOG_TIMER(config, "watchdog", 0);
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)