--- title: "LKDOS Printer Exercise" id: 77444 type: "computer_media" slug: "lkdos-printer-exercise" url: "http://localhost/computer_media/lkdos-printer-exercise/" markdown_url: "http://localhost/computer_media/lkdos-printer-exercise.md" published_at: "2026-11-15T18:38:29+00:00" modified_at: "2026-11-15T18:38:29+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Prints a sample line in each Epson print style through the Larken printer driver." post_tag: - name: "LKDOS" slug: "lkdos" taxonomy: "post_tag" url: "http://localhost/tag/lkdos/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Bob Mitchell" slug: "bob-mitchell" taxonomy: "indiv" url: "http://localhost/indiv/bob-mitchell/" genre: - name: "Printer" slug: "printer" taxonomy: "genre" url: "http://localhost/type/printer/" media_type: "Program" programmers: - name: "Bob Mitchell" slug: "bob-mitchell" taxonomy: "indiv" url: "http://localhost/indiv/bob-mitchell/" mediadate: "1990" article_media: - id: 23183 title: "Bob’s Notebook: Printer Exerciser" type: "article" url: "http://localhost/article/bobs-notebook/" media_type_tags: "Printer" license: false --- # LKDOS Printer Exercise Prints a sample of each print style of an Epson-compatible printer such as the Fastext 80: pica, pica condensed, elite, elite elongated, pica elongated and pica condensed elongated, each with its left margin adjusted, and then a form feed. Two subroutines switch the Larken printer driver between sending raw codes and detokenizing. Listing only: it prints through the Larken printer channel (OPEN #3,”lp”) and sets the driver with PRINT #4: POKE 16090-16094. Published in Sinc-Link September-October 1990 ([Bob’s Notebook: Printer Exerciser](https://timexsinclair.com/article/bobs-notebook/)). ## Source Code ``` 100 REM LKDOS Printer Exercise 110 RANDOMIZE USR 100: OPEN #4,"dd": PRINT #4: OPEN #3,"lp" 120 GO SUB 330: PRINT #4: POKE 16094,8: PRINT #4: POKE 16090,63: LPRINT 130 LPRINT "LPRINT EXERCISE..."'' 140 LPRINT "DEFAULT SETTING: PICA ON;"''"CONDENSED AND ELONGATED OFF."''"LEFT MARGIN IS SET AT 8." 150 GO TO 180 160 PRINT #4: POKE 16093,32: RETURN 170 PRINT #4: POKE 16093,0: PRINT #4: POKE 16094,m: RETURN 180 REM PICA CONDENSED 190 GO SUB 160: LPRINT CHR$ 27;CHR$ 80: LPRINT CHR$ 15: LET m=14: GO SUB 170: LPRINT : LPRINT "PICA CONDENSED": GO SUB 330 200 REM ELITE 210 GO SUB 160: LPRINT CHR$ 27;CHR$ 77: LET m=10: GO SUB 170: LPRINT : LPRINT "ELITE": GO SUB 330 220 REM ELITE ELONGATED 230 GO SUB 160: LPRINT CHR$ 27;CHR$ 77: LPRINT CHR$ 27;CHR$ 87;CHR$ 1: LET m=5: GO SUB 170: LPRINT : LPRINT "ELITE ELONGATED": GO SUB 330 240 REM PICA..DEFAULT SETTINGS 250 GO SUB 160: LPRINT CHR$ 27;CHR$ 80: LPRINT CHR$ 18: LPRINT CHR$ 27;CHR$ 87;CHR$ 0: LET m=8: GO SUB 170: LPRINT : LPRINT "PICA: DEFAULT SETTINGS": GO SUB 330 260 REM PICA ELONGATED 270 GO SUB 160: LPRINT CHR$ 27;CHR$ 80: LPRINT CHR$ 27;CHR$ 87;CHR$ 1: LET m=4: GO SUB 170: LPRINT : LPRINT "PICA ELONGATED": GO SUB 330 280 REM PICA CONDENSED ELONG. 290 GO SUB 160: LPRINT CHR$ 15;CHR$ 27;CHR$ 80: LPRINT CHR$ 27;CHR$ 87;CHR$ 1: LET m=7: GO SUB 170: LPRINT : LPRINT "PICA CONDENSED ELONGATED": GO SUB 330 300 REM FORM FEED 310 GO SUB 160: LPRINT CHR$ 12: GO SUB 330: BEEP 2,40: LET m=8: GO SUB 170: STOP 320 REM RESET SUBROUTINE 330 PRINT #4: POKE 16093,32: PRINT #4: POKE 16094,8: LPRINT : LPRINT CHR$ 27;CHR$ 80: LPRINT CHR$ 18: LPRINT CHR$ 27;CHR$ 87;CHR$ 0: LET m=8: GO SUB 170: RETURN 9000 PRINT #4: SAVE "PR_EX.B1" LINE 100 ```