Functions HI-TECH C SET VECTOR
#include <intrpt.h> typedef interrupt void (*isr)(); isr set_vector(isr * vector, isr func);
This routine allows an interrupt vector to be initialized. The first argument should be the address of the interrupt vector (not the vector number but the actual address) cast to a pointer to isr, which is a typedef'd pointer to an interrupt function. The second argument should be the function which you want the interrupt vector to point to. This must be declared using the interrupt type qualifier. The return value of set_vector() is the previous contents of the vector.