setvect() Set Interrupt Vector Entry
#include <dos.h>
void setvect(intr_num,isr);
int intr_num; Interrupt number
void interrupt (*isr)(); New interrupt function
setvect() sets an interrupt vector entry. MS-DOS includes a set of
hard-wired interrupt vectors. They are numbered 0 - 255. The 4-byte
value in each vector is actually an address, which is the location of
an interrupt function. setvect() sets the value of the vector
'intr_num' to a new value, 'vector'. 'vector' is a far pointer
containing the address of a new interrupt function. The address of a
C routine may only be passed to 'vector' if that routine is declared
to be an 'interrupt' routine.
Returns: There is no return value.
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster