diff options
author | 2018-05-18 13:32:56 -0400 | |
---|---|---|
committer | 2018-05-18 13:40:29 -0400 | |
commit | 0ba652e723036746aa1b1ac665411bee83771654 (patch) | |
tree | ba3cf42c70bf33ad22c07ad85b9d41f863a373e7 /src/emu/driver.cpp | |
parent | e5dc17a4881d2b9ce4573b42d825cb6456bf529c (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/emu/driver.cpp')
-rw-r--r-- | src/emu/driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/driver.cpp b/src/emu/driver.cpp index 415872d4989..53a4280b493 100644 --- a/src/emu/driver.cpp +++ b/src/emu/driver.cpp @@ -288,7 +288,7 @@ void driver_device::device_reset_after_children() // NMI callbacks //------------------------------------------------- -INTERRUPT_GEN_MEMBER( driver_device::nmi_line_pulse ) { device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE); } +INTERRUPT_GEN_MEMBER( driver_device::nmi_line_pulse ) { device.execute().pulse_input_line(INPUT_LINE_NMI, attotime::zero); } INTERRUPT_GEN_MEMBER( driver_device::nmi_line_assert ) { device.execute().set_input_line(INPUT_LINE_NMI, ASSERT_LINE); } |