First, I'll agree with Bert. Some things just shouldn't be done.
And with that said ...
If you are using ON INTERRUPT, just add a Label to the RESUME statement.
Interrupts will still be active, so either DISABLE that section or use a new ON INTERRUPT GOTO for that section.
Once you do that, you can never RETURN to where the program was before the interrupt.
It's as if the chip started running from that point at power-up.
With ASM interrupts on 16F's it's pretty much the same because the stack is circular and it will wrap around and overwrite previous entries. Interrupts will be turned off after the jump in this case.
With ASM interrupts on 18F's, you must clear the stack first to prevent an overflow.
Bookmarks