Part Number: MSP430FR5969
I wants to write a code in ISR. But Large code in ISR is not preferable. So i am going to use the inline assembly function to read the address of next instruction that stores before the interrupt occur. and store this address into local variable . and replace the address of next instruction in the stack memory with my call back function where i am going to execute all required task as done in ISR before . In call back function, after the execution of all task i simply jump to the next instruction address store in local variable. In simple, after the execution of ISR the control should return back to the next instruction address in normal way, but in my case i redirect the flow control from ISR to my call back function and from call back function return to the next instruction address.
So Question is this way of programming is preferable or not?