10 REM PC-BASIC test 
20 REM RESUME syntax
25 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
30 ON ERROR GOTO 50
40 A=-1:COLOR A:PRINT#1, A:GOTO 60
50 A=A+1:PRINT#1, "err: "; A:RESUME
60 ON ERROR GOTO 80
70 COLOR -1: GOTO 90
80 PRINT #1, "ERR!": RESUME NEXT
90 ON ERROR GOTO 200
100 PRINT#1, 100: X
110 PRINT#1, 110
120 PRINT#1, 120
130 END
200 PRINT#1, "err": RESUME 120


