Set the logical state of an input line on a CPU.
Declared in src/emu/cpuint.h
as
void cpunum_set_input_line(running_machine *machine, int cpunum, int line, int state);
machine
– Pointer to the machine where this CPU is runningcpunum
– Index to the CPUline
– The IRQ to set, those are generally defined in the appropriate CPU header filesstate
– The logical state to set. Possible values are ASSERT_LINE
, HOLD_LINE
, CLEAR_LINE
and PULSE_LINE
Nothing.
cpunum_set_input_line(machine, 1, M6809_FIRQ_LINE, ASSERT_LINE);This call will change the state of the
M6809_FIRQ_LINE
of the second CPU to ASSERT_LINE
, meaning that the CPU will now take this interrupt if interrupts are enabled.