Hi,
Not knowing anything about your project I would think a hardware re-set could be irritating. If waiting for a LCD to start for example. If you can live with a hardware re-set then you most likely could nest GOSUBs until the problem point is past, then RETURN to a common point.
From the manual:
GOSUB Label
Jump to the subroutine at Label saving its return address on the stack.
Unlike GOTO, when a RETURN statement is reached, execution resumes
with the statement following the last executed GOSUB statement.
An unlimited number of subroutines may be used in a program.
Subroutines may also be nested. In other words, it is possible for a
subroutine to call another subroutine. Such subroutine nesting must be
restricted to no more than four levels deep (12 levels for 17Cxxx and 27
levels for 18Xxxx).
Just a thought.
Dave
Bookmarks