--- title: "ON/OFF status of TS2040 printer" type: "article" slug: "on-off-status-of-ts2040-printer" url: "http://localhost/article/on-off-status-of-ts2040-printer/" markdown_url: "http://localhost/article/on-off-status-of-ts2040-printer.md" published_at: "2026-11-21T22:03:40+00:00" modified_at: "2026-11-21T22:56:18+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "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…" post_tag: - name: "Banta Software" slug: "banta-software" taxonomy: "post_tag" url: "http://localhost/tag/banta-software/" - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Machine language programming" slug: "machine-language" taxonomy: "post_tag" url: "http://localhost/tag/machine-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" genre: - name: "Printer" slug: "printer" taxonomy: "genre" url: "http://localhost/type/printer/" publication_r: id: 38992 title: "LISTing Newsletter" type: "periodical" url: "http://localhost/periodical/listing-newsletter/" authors: "Banta Software" issues_articles: - id: 40115 title: "LISTing Newsletter April 1985" type: "issue" url: "http://localhost/issue/listing-newsletter-april-1985/" pages: "20" pubdate: "April 1985" archive_link: false --- # ON/OFF status of TS2040 printer [Banta Software](http://localhost/company/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](http://localhost/article/printout/).*