Sure. If you want to re-start from location 0, then;
This isn't exactly the same as a hardware reset, but it's close.Code:X VAR BYTE TOGGLE 0 Main: FOR X = 0 TO 50 IF X = 20 THEN PCLATH = 0 @ GOTO 0 ' start over from 0 if X = 20 ENDIF NEXT X GOTO Main END
Thanks Bruce.
Since you say that it is not a hard reset but close, will this clear any return addresses in the stack if there is any?
Thanks.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks