Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>setvect() set interrupt vector entry</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson