intr

interrupt the CPU

Synopsis:

#include <i86.h>
void intr( int inter_no, union REGPACK *regs );

Description:

The intr() function causes the computer's central processor (CPU) to be interrupted with an interrupt whose number is given by inter_no. Before the interrupt, the CPU registers are loaded from the structure located by regs.

All of the segment registers must contain valid values. Failure to do so will cause a segment violation when running in protect mode. If you don't care about a particular segment register, then it can be set to 0, which will not cause a segment violation. Following the interrupt, the structure located by regs is filled with the contents of the CPU registers.

This function is similar to the int86x() function, except that:

You should consult the technical documentation for your computer to determine the expected register contents before and after the interrupt in question.

See also:

int386(), int386x(), int86(), int86x(), segread()

Classification:

Intel

Systems:

DOS, Windows, Win386, QNX, DOS/PM, Netware