File: TEST.BAS

package info (click to toggle)
pcbasic 2.0.7-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 35,416 kB
  • sloc: python: 28,411; sh: 103; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
10 REM PC-BASIC test 
20 REM RUN test
100 GOSUB 225: PRINT#1, 100: CLOSE
110 GOSUB 225: PRINT#1, 110: CLOSE
120 GOSUB 225: PRINT#1, 120: CLOSE
130 GOSUB 225: PRINT#1, 130
140 RUN "nosuch"
150 RUN 200
160 RUN ""
199 END
225 ON ERROR GOTO 1000
230 OPEN "OUTPUT.TXT" FOR APPEND AS 1
240 RETURN
1000 PRINT#1, "Error:", ERR, ERL
1010 RESUME NEXT