indxLP

Developer(s): Bob Mitchell
Date: 1989
Type: Program
Platform(s): TS 2068
Tags: Printer

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).

Related Articles

Disk index utility; MSCRIPT sort.

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

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