summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/system16.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-18 13:32:56 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-18 13:40:29 -0400
commit0ba652e723036746aa1b1ac665411bee83771654 (patch)
treeba3cf42c70bf33ad22c07ad85b9d41f863a373e7 /src/mame/drivers/system16.cpp
parente5dc17a4881d2b9ce4573b42d825cb6456bf529c (diff)
diexec: Interrupt API changes (nw)
- PULSE_LINE is no longer a value. Existing uses have been changed to pulse_input_line with attotime::zero as the second argument. - Formerly only INPUT_LINE_NMI and INPUT_LINE_RESET were allowed with PULSE_LINE. INPUT_LINE_NMI no longer receives special handling; instead, CPU devices must specify which of their input lines are edge-triggered and thus may be used with zero-width pulses by overriding the execute_input_edge_triggered predicate. INPUT_LINE_RESET is still special-cased, however. - execute_default_irq_vector now allows a different default vector to be specified for each input line. This added flexibility may or may not prove useful.
Diffstat (limited to 'src/mame/drivers/system16.cpp')
-rw-r--r--src/mame/drivers/system16.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/system16.cpp b/src/mame/drivers/system16.cpp
index 933b76ed934..34f94c8d96c 100644
--- a/src/mame/drivers/system16.cpp
+++ b/src/mame/drivers/system16.cpp
@@ -112,7 +112,7 @@ WRITE16_MEMBER(segas1x_bootleg_state::sound_command_nmi_w)
if (ACCESSING_BITS_0_7)
{
m_soundlatch->write(space, 0, data & 0xff);
- m_soundcpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
}
@@ -373,7 +373,7 @@ WRITE_LINE_MEMBER(segas1x_bootleg_state::tturfbl_msm5205_callback)
m_sample_buffer <<= 4;
m_sample_select ^= 1;
if(m_sample_select == 0)
- m_soundcpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
READ8_MEMBER(segas1x_bootleg_state::tturfbl_soundbank_r)
@@ -1180,7 +1180,7 @@ WRITE_LINE_MEMBER(segas1x_bootleg_state::shdancbl_msm5205_callback)
m_sample_buffer >>= 4;
m_sample_select ^= 1;
if (m_sample_select == 0)
- m_soundcpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
READ8_MEMBER(segas1x_bootleg_state::shdancbl_soundbank_r)
@@ -2077,7 +2077,7 @@ MACHINE_CONFIG_END
WRITE_LINE_MEMBER(segas1x_bootleg_state::sound_cause_nmi)
{
/* upd7759 callback */
- m_soundcpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
MACHINE_CONFIG_START(segas1x_bootleg_state::z80_ym2151_upd7759)