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 (25 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
10 REM PC-BASIC test 
20 REM INPUT from console
25 ON ERROR GOTO 2000
30 INPUT "a,b", a, b$: PRINT A, B$
40 INPUT "a,b"; a, b$: PRINT A, B$
50 INPUT;"a,b", a, b$: PRINT A, B$
55 INPUT;"a,b"; a, b$: PRINT A, B$
60 A$="text": INPUT A$; A, B$
70 INPUT
1000 ' dump screen
1010 DEF SEG=&HB800
1020 OPEN "dump"+N$+".dat" FOR OUTPUT AS 2
1030 FOR Y = 0 TO 24
1040 FOR X = 0 TO 79
1050 PRINT #2, CHR$(PEEK(2*(Y*80+X)));
1060 NEXT
1065 PRINT #2, ""
1070 NEXT
1080 CLOSE 2
1999 END
2000 OPEN "ERRORS.TXT" FOR APPEND AS 1
2010 PRINT#1, ERR, ERL
2015 CLOSE 1
2020 RESUME NEXT