AnsweredAssumed Answered

56F807, interrupt vector table, jmp vs. jsr

Question asked by j... on Sep 26, 2018
Latest reply on Sep 26, 2018 by xiangjun.rong

I am working on some new code & some legacy code for an old product that uses the 56F807.

 

The new code generated from stationary (non-PE) using  CW8.3 uses the "jmp" instruction in the vector table. This what I expect. However, the legacy code, has "jsr" instructions in the vector table.

 

Which is expect or required in the vector table, "jmp" or "jsr"?

 

Is it OK to use either "jmp" or "jsr" in the vector table as long as the called function is marked with "#pragma interrupt"?

Outcomes