Re: IVT in BootLoader and Application dspic33EPMU806
Your interrupt code will have some prologue, possibly saves something on the stack, this needs to be removed before you jump to the interrupt. Also, if need to make sure none of the registers is used while checking the flag. I don't know if you can ensure this in C.
Then you code jump to the location in the application IVT as if your app's IVT contained code, while your app's IVT contains addresses.
First you need to re-organize your IVT so that it contains jump instructions, not the addresses.
Then, you need to re-write your ISRs in assembler to make sure that there's no prologue and that you preserve all the registers before it jumps to the desired address in the IVT. It might be possible to do this in C, but I'm not sure.
You need to do the same for the bootloader interrupts.