Is there a spare entry in your jumptable? Or can you add a -1th entry?
If so, point that spare entry to bigloop, and jump to it at the end of every function. You could then override it in your interrupt / other task, and restore it at the end of your special handling functions?
|