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

