In our TS2068 Larken library, buried in Disks #02 “OMNIBUS” and Disk #33 “PULL-DOWN (Menus) OMNIBUS” is a utility called “index.B1“. It is designed to maintain an index of the contents of any collection of Larken disks. One simply feeds the disks into the program, one by one, and it reads and stores the contents of the disks. One can then search, sort, and print out the contents to screen, TS2040 printer, or to a large printer. The program was written by Bob Mitchell some time ago.
A later refined version (V1.11) is found on Disk #47 “UNIQUE PROFRAMS”, and the refinements described in this article are applicable to this version. Ask for this disk.
When Bob Mitchell wrote this program he incorporated within it the ability to detect whether the selected printer, TS2040 or large printer, was ON or OFF; and to display the condition on the screen.
The problem with this feature was that not all printers supplied the same signal info as the Fastext 80 used by Bob. And if the signal for the ON condition was not the one Bob had incorporated in his program, one could not continue with the PRINT feature of the program.
There is another feature of the program which may be customised to your particular needs. Many disks contain an AUTOSTART file and/or a “menu” file. An option was provided which allowed these two filenames to be NOT printed out. Later, I expanded the feature to include two more filenames to be similarly excluded from the printout; filenames “taswi”, and “help”. The program listing below does not provide for changing the AUTOSTART filename, since it is so univerdally used.
The method used to make these changes is to POKE them into the appropriate addresses in the “index.Cc” code. The following listing will do this task. All you need to do is determine your printers’ ON/OFF codes and enter these values in the variables.
And to enter any changes in the filenames.
To determine the printer ON/OFF signal codes, run this short program:
10 PRINT AT 10,10;" "; AT 10,10; IN 127
20 PAUSE 10: GOTO 10
Switch your large printer into it’s OFF and ON (ready to print) modes. Write down the values, and then enter these values into the variables LPOFF and LPON in Line 150 of the listing.
Change the IN 127 in the above listing to IN 251. This will check the 2040 printer. Probably this will not need changing, but if it does, then do the same thing. Record the values and place them in variable TSOFF and TSON in Line 160.
150 LET LPOFF=127: LET LPON=108
160 LET TSOFF=126: LET TSON=56
170 LET a$="menu": LET b$="help": LET c$="help": LET d$="taswi": REM
Words you may replace
200 POKE 35484,LPOFF: POKE 35570,LPOFF
210 POKE 35516,LPON: POKE 35602,LPON
220 POKE 33426,LPON: POKE 33526,LPON
230 POKE 33394,TSON: POKE 33494,TSOFF
300 LET x=34207: FOR n=1 TO 4: POKE (n+x), CODE a$(n): NEXT n: REM To
replace "menu" with your word.
400 LET x=34256: FOR n=1 TO 4: POKE (n+x), CODE b$(n): NEXT n: REM To
replace "help" with your word
500 LET x=34299: FOR n=1 TO 5: POKE (n+x), CODE c$(n): NEXT n: REM To
replace "taswi" with your word. Note: this word is 5 characters in
length.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.