ON/OFF status of TS2040 printer

Author(s): Banta Software
Publication: LISTing Newsletter
Date: April 1985
Pages: 20

Banta Software has provided an interesting program to us.

“As must be obvious, the REMark statement is a short machine code routine which must be the first line of the program. The other lines can be anywhere in the program and could be modified to give other messages. In the 1000/1500 version the inverse character in line 1 is “S”. Also the less than/greater than in the 2068 version and the less than/equal in the 1000/1500 version are each single keystroke entries.

2068 Version

   1 REM FLASH CLS G THEN LN
9996 LET PRT=USR (5+PEEK 23635+256*PEEK 23636)
9997 IF PRT [illegible] 16383 THEN PRINT "PRINTER OFF"
9998 IF PRT =16383 THEN PRINT "PRINTER ON"
9999 STOP

1000/1500 Version

   1 REM  = CLS ?SCS STAN
2 POKE 16516,71
9996 LET PRT=USR 16514
9997 IF PRT[illegible]16383 THEN PRINT "PRINTER OFF"
9998 IF PRT =16383 THEN PRINT "PRINTER ON"
9999 STOP

Also printed in LISTing May – June 1985.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.