cpunum_set_input_line_and_vector()


Set the logical state of an input line on a CPU and its associated vector. This function is a combined version of cpunum_set_input_line() and cpunum_set_input_line_vector().

Syntax


Declaration

Declared in src/emu/cpuint.h as

void cpunum_set_input_line_and_vector(running_machine *machine, int cpunum, int line, int state, int vector);

Parameters

  • machine – Pointer to the machine where this CPU is running
  • cpunum – Index to the CPU
  • line – The IRQ to set, those are generally defined in the appropriate CPU header files
  • state – The logical state to set. Possible values are ASSERT_LINE, HOLD_LINE, CLEAR_LINE and PULSE_LINE
  • vector – The vector you want to set

Returns

Nothing.

Example


cpunum_set_input_line_and_vector(machine, 0, 0, HOLD_LINE, 0xcf);

This will set the vector to 0xcf for the first CPU and the IRQ line 0. It will continue execution at the location 0xcf now if interrupts are enabled.

See also