cpunum_set_input_line_vector()


Set the vector to be returned during a CPU's interrupt acknowledge cycle.

Syntax


Declaration

Declared in src/emu/cpuint.h as

void cpunum_set_input_line_vector(int cpunum, int irqline, int vector);

Parameters

  • cpunum – Index to the CPU
  • irqline – The IRQ to set, those are generally defined in the appropriate CPU header files
  • vector – The vector you want to set

Returns

Nothing.

Example


cpunum_set_input_line_vector(0, CP1610_RESET, 0x1000);

This will set the vector to 0x1000 for the first CPU and the IRQ line CP1610_RESET. Next time the CPU receives this interrupt, it will continue execution at the location 0x1000.

See also