In the December issue of the newsletter, John Battey, my CO-EDITOR, came up with an exceptional program called OVERLOADER. When you download an ASCII file that is longer that the 15500 bytes that will comfortably fit in an MSCRIPT file, you must divide that file. John came up with an appropriate program to allow the computer to do the ‘thinking’ for you. He intimated that I might be able to come up with an AERCO disk version of the same program. I must confess, I never figured that I would need such a program, so I put it out of my mind saying that. I will get to it, sometime in the near future. Boy was that a mistake. When I finally found out how to send the .DOC and .TXT files for CP/M programs and utilities to E-MAIL on StarText, I found out that many of them were longer than could possibly fit in the MSCRIPT file. Well, I can live with documentation that is not ‘skipping’ the perferations on the paper.
Nice try, but no cigar! I found myself downloading the Master Drive (all the file names and such) from the FWKUG MBBS & PSDE. I had not reached the end, but I decided to stop. The file was over 26000 bytes-now I needed John’s program very badly. But, as usual, all of my material was on disk and not tape. (Now, I do make tape back-ups of most of my material, just-in-case, but I still prefer to use the drives for the speed and size of storage.) Now I had to go to work and make his program work for disk, but there was some difficulty. I already use a program called BOOT.BAS by Chia-Chi Chao. This program allows you to read the directory of the disk and select the program via the cursor keys and RUN it. I decided that I should keep that program, for the most part, and ‘overlay’ most of the original OVERLOADER program of John’s onto it. Nice an simple work, until you get to the actual ‘SAVEing’ of the code.
AERCO saves the code with a .BIN extension on the end of the filename. This took some real figuring out to make it come out properly, but with the help of a friend-Chuck Dawson, the AERCO version is now a reality.
10 REM OVERLOADER VER. 1.2 AERCO DISK VERSION
By John L. Battey 11/20/87 Modified By David
Baulch 1/28/88
15 CLS : PRINT " OVERLOADER VERSION 1.2 (AERCO) ": PRINT
20 PRINT " This program should be on the"''"disk in DRIVE A, and the disk"''"with the file to be ""split"""''"should be in DRIVE B. If you do"''"NOT know the number of bytes of"''"the saved file, either reload it"''"into MTERM II or check it with"''"the CATALOG facility of the"''"Customized version of MSCRIPT by"''"Jack Dohany."
25 INPUT "How many bytes was ""BUFUSD"" or How many bytes are in the file?",len
30 BORDER 7: INK 0: PAPER 7: CLS : OVER 1: LET x=0: LET y=5: LET z=0: LET a=x: LET b=y: LET c=z
35 OUT 244,1: CAT "b:",: PRINT #1; OVER 0; PAPER 6;"5-8 Select File 9-0 Command"
40 PRINT AT y,x; INVERSE 1;" "; INVERSE 0;AT 21,0; OVER 0;"Run Load Catalog Basic": PRINT AT 21,z; INVERSE 1;" "
45 PRINT AT 4,0; FLASH 1;"OVERLOADER VERSION 1.2 (AERCO)"; FLASH 0
50 LET a$=INKEY$: IF INKEY$="" THEN GO TO 50
55 IF a$="8" AND x=0 THEN LET x=16
60 IF a$="5" AND x=16 THEN LET x=0
65 IF a$="6" AND y<20 THEN LET y=y+1
70 IF a$="7" AND y>5 THEN LET y=y-1
75 IF a<>x OR b<>y THEN PRINT AT y,x; INVERSE 1;" ";AT b,a;" ": LET a=x: LET b=y: GO TO 50
80 IF a$="0" AND z<24 THEN LET z=z+8
85 IF a$="9" AND z>0 THEN LET z=z-8
90 IF z<>c THEN PRINT AT 21,z; INVERSE 1;" ";AT 21,c;" ": LET c=z: GO TO 50
95 IF CODE a$<>13 THEN GO TO 50
100 IF z=16 THEN RUN
105 IF z=24 THEN OVER 0: STOP
110 LET a$=""
115 FOR l=x+14 TO x+5 STEP -1: IF SCREEN$ (y,l)<>" " THEN GO TO 125
120 NEXT l: BEEP .3,24: GO TO 50
125 OVER 0: FOR m=x+1 TO l: LET a$=a$+SCREEN$ (y,m): NEXT m
130 IF a$(LEN a$-2 TO )="BIN" AND z=8 THEN LET a$=a$+",31000"
135 IF z<=8 THEN CAT "a$",
140 CLS : PRINT " OVERLOADER VERSION 1.2 (AERCO) "
145 PRINT : PRINT "The size of the file is:"''len
150 INPUT "What is the size of the first half of the file?",first
155 PRINT : PRINT "The size of the first half of the file is:"''first;" Bytes."
160 INPUT "What is the filename for the first half?",f$
165 PRINT : PRINT "The filename for the first half is: "''f$
170 INPUT "What is the filename for the second half?",s$
175 PRINT : PRINT "The filename for the second halfis: "''s$
180 LET f$=f$+".BIN"","+STR$ 31000+","+STR$ first: MOVE "f$",
185 LET q=31000+first: LET qq=len-first
190 LET s$=s$+".BIN"","+STR$ q+","+STR$ qq: MOVE "s$",
195 STOP
200 MOVE "OVERLOADER.BAS",10
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.