// Enter a vector in the vector table in SRAM, returning old value//static unsigned char *fnSetIntHandler(int iVectNumber, unsigned char *new_handler){ extern unsigned long __VECTOR_RAM[]; unsigned char *old_handler; old_handler = (unsigned char *)__VECTOR_RAM[iVectNumber]; __VECTOR_RAM[iVectNumber] = (unsigned long)new_handler; return old_handler; }