diff options
Diffstat (limited to 'src/mame/drivers/retofinv.cpp')
-rw-r--r-- | src/mame/drivers/retofinv.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/mame/drivers/retofinv.cpp b/src/mame/drivers/retofinv.cpp index 3ff3ca9652b..49d87797cb6 100644 --- a/src/mame/drivers/retofinv.cpp +++ b/src/mame/drivers/retofinv.cpp @@ -107,7 +107,6 @@ Notes: #include "includes/retofinv.h" #include "cpu/z80/z80.h" -#include "machine/74259.h" #include "machine/watchdog.h" #include "sound/sn76496.h" #include "screen.h" @@ -432,13 +431,13 @@ MACHINE_CONFIG_START(retofinv_state::retofinv) MCFG_QUANTUM_TIME(attotime::from_hz(6000)) /* 100 CPU slices per frame - enough for the sound CPU to read all commands */ - ls259_device &mainlatch(LS259(config, "mainlatch")); // IC72 - probably shared between CPUs - mainlatch.q_out_cb<0>().set(FUNC(retofinv_state::irq0_ack_w)); - mainlatch.q_out_cb<1>().set(FUNC(retofinv_state::coinlockout_w)); - mainlatch.q_out_cb<2>().set_inputline(m_audiocpu, INPUT_LINE_RESET).invert(); - mainlatch.q_out_cb<3>().set(m_68705, FUNC(taito68705_mcu_device::reset_w)).invert(); - mainlatch.q_out_cb<4>().set(FUNC(retofinv_state::irq1_ack_w)); - mainlatch.q_out_cb<5>().set_inputline(m_subcpu, INPUT_LINE_RESET).invert(); + LS259(config, m_mainlatch); // IC72 - probably shared between CPUs + m_mainlatch->q_out_cb<0>().set(FUNC(retofinv_state::irq0_ack_w)); + m_mainlatch->q_out_cb<1>().set(FUNC(retofinv_state::coinlockout_w)); + m_mainlatch->q_out_cb<2>().set_inputline(m_audiocpu, INPUT_LINE_RESET).invert(); + m_mainlatch->q_out_cb<3>().set(m_68705, FUNC(taito68705_mcu_device::reset_w)).invert(); + m_mainlatch->q_out_cb<4>().set(FUNC(retofinv_state::irq1_ack_w)); + m_mainlatch->q_out_cb<5>().set_inputline(m_subcpu, INPUT_LINE_RESET).invert(); MCFG_WATCHDOG_ADD("watchdog") @@ -481,8 +480,7 @@ MACHINE_CONFIG_START(retofinv_state::retofinvb_nomcu) MCFG_DEVICE_MODIFY("maincpu") MCFG_DEVICE_PROGRAM_MAP(bootleg_map) - MCFG_DEVICE_MODIFY("mainlatch") - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(NOOP) + m_mainlatch->q_out_cb<3>().set_nop(); MCFG_DEVICE_REMOVE("68705") MACHINE_CONFIG_END @@ -493,8 +491,7 @@ MACHINE_CONFIG_START(retofinv_state::retofinvb1_nomcu) MCFG_DEVICE_MODIFY("maincpu") MCFG_DEVICE_PROGRAM_MAP(bootleg_map) - MCFG_DEVICE_MODIFY("mainlatch") - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(NOOP) + m_mainlatch->q_out_cb<3>().set_nop(); MCFG_DEVICE_REMOVE("68705") MACHINE_CONFIG_END |