[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

See Also: getvect() disable()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson