I've used this method. I used FINISHED instead of END just in case you want to add a line that begins the cycle over again with an input switch.
X VAR BYTE
CLEAR
START:
HIGH LED : PAUSEUS 50000 : LOW LED : PAUSEUS 50000 : LET X = (X + 1)
IF X < 10 THEN START
FINISHED:
'IF PORTA.0 = 1 THEN CLEAR : GOTO START
GOTO FINISHED
Bookmarks