--- title: "indxLP" id: 77426 type: "computer_media" slug: "indxlp" url: "http://localhost/computer_media/indxlp/" markdown_url: "http://localhost/computer_media/indxlp.md" published_at: "2026-11-15T18:38:26+00:00" modified_at: "2026-11-15T18:38:26+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Prints a disk-index file eight entries per line on a wide printer; Timachine-compiled, for LKDOS." 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: "1989" article_media: - id: 23444 title: "Bob’s Notebook: Disk Index, Sorting Routines" type: "article" url: "http://localhost/article/bobs-notebook-10/" media_type_tags: "Printer" license: false --- # indxLP Prints the index file made by Bob Mitchell’s disk indexer (Sinc-Link November-December 1987) on a wide printer in condensed type, eight entries to a line, with a form feed every 55 lines. Listing 1 is the loader, which loads the compiled code and the index file from disk and sets up the Larken printer channel; listing 2 is the printing routine, to be compiled with Timachine to indxLP.Cc at 63000. The addresses 37825 and 56024 in line 3001 depend on where your compilation puts the d$ data (37797 in Bob’s). It needs the Larken disk system (LKDOS printer channel and disk loads), the Timachine compiler and a wide printer on port 127, so there is no download. Published in Sinc-Link May-June 1989 ([Bob’s Notebook: Disk Index, Sorting Routines](https://timexsinclair.com/article/bobs-notebook-10/)). ## Source Code ``` Listing 1 1000 CLEAR 29000: RANDOMIZE USR 100: LOAD "indxLP.Cc"CODE 63000 1010 RANDOMIZE USR VAL "100": OPEN #VAL "4","dd" 1012 PRINT #VAL "4": OPEN #VAL "3","lp" 1015 PRINT #VAL "4": POKE VAL "16090",VAL "135": PRINT #VAL "4": POKE VAL "16094",VAL "8": LPRINT 1017 OUT 127,15 1018 GO SUB 1200 1020 RANDOMIZE USR 63000 1100 STOP 1200 INPUT "what index file? enter full name of file...'' LINE l$ 1210 RANDOMIZE USR 100: LOAD l$CODE 1220 RETURN 1900 STOP 2000 RANDOMIZE USR VAL "100": SAVE "indxLP.Bb" LINE VAL "1000" Listing 2 60 REM ! LPRINT 70 REM ! LIST 80 REM !INT +lf,a,b,c,ff 90 REM !USR 63000 1000 RANDOMIZE USR 100: OPEN #3,"lp" 1010 RANDOMIZE USR 100: POKE 16090,135 1020 RANDOMIZE USR 100: POKE 16094,8 1030 OUT 127,15: LPRINT 2000 REM ! OPEN # 3000 LET lf=NOT PI: LET ff=NOT PI: LPRINT 3001 FOR a=37825 TO 56024 STEP 13 3002 IF lf=8 THEN LPRINT : LET ff=ff+1: LET lf=NOT PI 3003 IF ff=55 THEN OUT 127,12: LET ff=0: LPRINT : GO TO 3030 3005 FOR b=1 TO 13 3007 IF b=10 THEN LPRINT " "; 3010 LPRINT CHR$ PEEK (a+b) AND PEEK (a+b)<>42; 3012 IF PEEK (a+1)=32 THEN LPRINT : STOP 3015 NEXT b 3017 LPRINT " "; 3018 LET lf=lf+1 3030 NEXT a ```