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 (16 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
10 REM PC-BASIC test 
20 REM RENUM test
30 A=20: GOSUB 100: GOTO 40
40 ON ERROR GOTO 50
45 ON ERROR GOTO 0: GOTO 60
50 RESUME 10
61 LIST 10-35: LLIST 5-20: DELETE 45-49
70 AUTO 10,10,10: RENUM 10,10,10
80 RESTORE 100
90 IF A THEN 10 ELSE 20
100 RUN 40
110 RUN "A", 40
120 ON A GOTO 10, 20, 30
130 PRINT GOTO 20
140 GOTO 10, 20, "A", 30
100 PRINT ERR+10: PRINT ERL+10+20+30: PRINT ERL=10: RETURN 40