10 REM PC-BASIC test 
20 REM PEN syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 ON PEN GOSUB 500
60 PEN ON
70 PEN STOP
80 PEN OFF
90 PEN PRINT
100 PEN YADA
110 PEN(1) ON
120 END
500 RETURN
1000 PRINT#1, ERR, ERL
1010 RESUME NEXT
