Writing programs to create labels is a time honoured pastime among the computer crowd. But I think this program offers just a bit more.
It is designed to produce labels of the contents of your Larken system disks. It offers the option of printing to the 2040 printer or a large printer. It provides the option of sorting the files alphabetically. It also provides the option of printing the program names in one, two or three columns.
Although the program makes use of the Hacksel printer software “lprint.C1”, another driver software could be used by modifying lines 160 and 350.
The program operates on the basis of reading the directory (Track 0), placing the names in a (d$) array, then manipulating them as required.
100 REM File Label Maker v1.1 for the LARKEN system
110 REM By G. Chambers 14 Richome Court Scarborough, Ont. CANADA M1K 2Y1
120 REM Use to make a printout of disk files
130 REM Data statements contain Drive Control Code.
140 REM For use with the DSK400 system of 5090 bytes/track using a DD drive i.e.80 tracks
150 RANDOMIZE USR 100: OPEN #4,"dd"
160 PRINT #4: LOAD "lprint.C1"CODE
170 LET c$=" "
180 RESTORE VAL "210"
190 FOR n=VAL "63000" TO VAL "63047"
200 READ a: POKE n,a
210 NEXT n
220 DATA 195,43,246,0,0,0,0,0,0,243,205,98,0,201,58
230 DATA 100,0,251,201,205,33,246,58,176,92,50,29,32,205,126
240 DATA 0,205,123,0,33,112,32,17,156,224,1,0,20,237,176
250 DATA 195,38,246
260 DIM d$(90,11)
270 LET trac=VAL "23728": LET loadbuf=VAL "63000"
280 LET name=VAL "57688"
290 BORDER PI/PI: PAPER PI/PI: CLS
300 PRINT AT VAL "2",VAL "6"; INK VAL "2"; PAPER VAL "6";" LARKEN DISK UTILITY "; PAPER PI/PI;,,TAB VAL "10"; PAPER VAL "6";" Label-Maker "; PAPER VAL "1",,TAB VAL "6"; PAPER VAL "6";" By George Chambers "
310 INK VAL "3": PLOT NOT PI,VAL "108": DRAW NOT PI,VAL "62": DRAW VAL "255",NOT PI: DRAW NOT PI,VAL "-62": DRAW VAL "-255",NOT PI
320 INK VAL "6": PLOT VAL "8",VAL "114": DRAW NOT PI,VAL "50": DRAW VAL "238",NOT PI: DRAW NOT PI,VAL "-50": DRAW VAL "-238",NOT PI: INK VAL "7"
330 PRINT '''''"Install disk needing a label"'" ... then Press a key"': PAUSE NOT PI
340 POKE 23658,0: PRINT AT 12,0; OVER 0;c$;c$;AT 14,0; INK 7;"Large or small printer? (L/S) ";: PAUSE 0
350 LET n$=INKEY$: POKE 26703,0: POKE 26704,5: IF n$="l" THEN POKE 26704,254
360 PRINT AT 14,0; OVER 0;c$: PAUSE 50: PRINT AT 16,0;"Print Number of columns (1-3) ";: PAUSE 0: LET p=CODE INKEY$-48
370 PRINT AT 16,0; OVER 0;c$: PAUSE 50
380 INPUT "Sort (Y/N)? ";s$
390 INPUT "Enter Disk Title";n$
400 LPRINT
410 REM Picking pgm names from buffer(Track 0)
420 POKE trac,NOT PI: RANDOMIZE USR loadbuf
430 LPRINT "Disk Name: ";n$: LPRINT
440 FOR n= PI/PI TO VAL "90"
450 IF PEEK (name+3)=NOT PI THEN LET e=n-1: LET n=VAL "90": GO TO VAL "520"
460 IF PEEK (name+PI/PI)=VAL "254" THEN LET name=name+VAL "34": GO TO VAL "490"
470 FOR m=PI/PI TO VAL "9"
480 LET d$(n,m)=CHR$ PEEK (name+m)
490 NEXT m
500 LET name=name+VAL "34"
510 PRINT AT 11,11;d$(n);" "
520 NEXT N
530 IF s$<>"y" THEN GO TO 590
540 PRINT AT 11,11; FLASH 1;" Sorting "; FLASH 0
550 FOR i=1 TO (e-1): FOR j=i TO e
560 IF d$(i)>d$(j) THEN GO SUB 580
570 NEXT j: NEXT i: GO TO 590
580 LET q$=d$(j): LET d$(j)=d$(i): LET d$(i)=q$: RETURN
590 PRINT AT 11,11;" "
600 FOR n=1 TO e
610 IF INT (n/p)=(n/p) THEN LPRINT d$(n, TO 10): GO TO 630
620 LPRINT d$(n);
630 NEXT n
640 LPRINT : LPRINT : LPRINT
650 DIM f$(VAL "9")
660 PRINT AT VAL "20",VAL "6";"Label finished"'"Press a key for another start"
670 PAUSE NOT PI: GO TO VAL "280"
680 STOP
8000 INK 0: PAPER 7: BORDER 7: CLS : LIST : STOP
9900 REM ** Save to Disk **
9910 CLEAR : PRINT USR 100: SAVE "label2.B1" LINE 100
9930 STOP
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.