A single-drive copier for the original Larken DD disk system. It loads LDOS28, reads the directory on track 0, and for each file it finds asks whether to copy it, then runs the Larken COPY and tells you when to swap disks. Files longer than 16 tracks are skipped with a message. The instructions in lines 9920-9980 are shown once and then deleted to make room under LDOS28 at 28000.
Needs the Larken disk system (LDOS28 and the Larken ROM calls at 63488 and 28000); it does nothing on a TS2068 without it, so there is no download.
In line 40 the typewriter left a gap where the <> (not equal) sign should be, between (n+PI/PI) and VAL “254”: type <> there, as the article explains.
Published in Sinc-Link August-September 1986 (Larken Disk Copier Utility).
Source Code
1 REM DISK COPIER UTILITY
2 REM
3 REM by George Chambers
4 REM May 1986
6 REM
7 REM
10 CLEAR VAL "27999": OUT VAL "84",VAL "64": RANDOMIZE USR VAL "63488": REM load "LDOS28.C5"
15 PRINT AT VAL "8",NOT PI;"Insert disk to be copied and",,"press any key": PAUSE 0: CLS
20 PRINT USR VAL "63488": REM dire
25 CLS : POKE VAL "30700",NOT PI
30 FOR n=VAL "61608" TO VAL "63440"
40 IF PEEK n=VAL "255" AND PEEK (n+PI/PI) VAL "254" THEN GO SUB VAL "100"
45 IF PEEK n=VAL "250" THEN PRINT '"End of Disk Directory": STOP
50 NEXT n
100 LET a$=" "
105 LET z=NOT PI
110 FOR y=PI/PI TO (VAL "9")
113 IF PEEK (n+PI/PI)=VAL "46" THEN LET z=PI/PI
115 IF PEEK (n+PI/PI)=VAL "32" AND z=PI/PI THEN LET a$(y)="""": LET y=VAL "9": GO TO VAL "130"
120 LET a$(y)=CHR$ PEEK (n+PI/PI): PRINT INK PI/PI;CHR$ PEEK (n+PI/PI); INK NOT PI;
125 LET n=n+PI/PI
130 NEXT y
132 LET z=NOT PI: FOR q=(n+PI/PI) TO (n+VAL "16"): IF PEEK q=VAL "249" THEN LET z=PI/PI: LET q=(n+VAL "16")
133 NEXT q
135 IF z=NOT PI THEN PRINT " This program too long to copy": RETURN
137 PRINT " Copy? (y/n)": PAUSE NOT PI: IF INKEY$="n" THEN RETURN
140 RANDOMIZE USR VAL "28000": REM copy a$
145 POKE VAL "23692",VAL "255"
150 PRINT "Insert original"'"Ready ?": PAUSE NOT PI: RETURN
9900 RANDOMIZE USR VAL "63488": REM save "copy.B1"
9910 CLS : LIST VAL "9920": PAUSE NOT PI: DELETE VAL "9920",VAL "9980": RUN
9920 REM DISK COPIER
9930 REM Use this copier to copy programs using one drive.
9940 REM When a DOS prompt appears after Directory, enter the command "exit"
9950 REM Switch disks on prompt
9960 REM When a program is found that is larger than 14 blocks it will not be copied. You will be notified; the copier will move to the next program.
9970 REM There will be a delay as the copier searches for the end-of-directory marker.
9980 REM Press any key to startNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.