Supervisory help by John Riley
(The following material should not be considered the last word on this subject. My experience is limited to conversions to the AERCO disk system. Other systems, including Oliger, Larken, Ramex, Timex Portugal, ad infinitum present similar challenges. If you have experience with one of these systems, please write it up!)
If you have tried to use a disk drive with the 2068, you have run into a little problem, known as what to do to make a tape to disk transfer. The operating system of the 2068 was designed around cassette tape mass storage. Naturally, most programs that were developed for it also used the keywords and syntax the tape SAVEing routines demanded. Unfortunately, the designers of disk operating systems had to fit them around the existing Timex command structure. This led them into design choices that I hope they would not have taken otherwise. Briefly, AERCO uses four existing, but un-implemented keywords for user control of the disks: CAT = Displays a disk directory or LOADs a file from the disk MOVE = SAVEs a file to the disk ERASE= clears a file from the disk FORMAT Prepares a disk for use The short course says that all you have to do is LIST your tape loaded program, and replace each SAVE with MOVE, and each LOAD with CAT. Unfortunately, that won’t work. AERCO’s syntax is a little different from Timex’s. The Sequence First, you merely LIST your taped program. At times, that may be difficult. There are two problems that may come up. 1) How do I list it? Some programs autorun after LOADing, and immediately lock themselves from stoppage. Since there must be at least a minimal BASIC program for each application, it should be possible to derail the autorun by using MERGE “”. instead of LOAD. At times the BASIC header program will be partly or completely invisible, due to embedded INK commands. Try entering the direct command INK 0 and then try listing again. If that doesn’t work then LLISTing them or pulling them up to the editing area will let you inspect such programs. 2) Machine code. The operative questions that you must be able to answer are how long is it, and where is it stored. By inspecting the BASIC portion of the program, you can often find the line used to save the machine code. If that SAVE was made from a direct command, a record will not exist. Then you will have to use a “Header Program” to find these answers. A very good header-reader program can be found in the CATS 2068 Public Domain Library, or the “CAT” option from MSCRIPT. Machine code can be loaded into your computer independently of the BASIC portion with the command LOAD “” CODE. After LISTing you program, you’ll have to start changing the lines in which the program addresses the storage device, switching it from cassette to disk. If you are lucky this acces will always be through the BASIC component. Access to machine cod that SAVEd the program – ideally you will be converting the program to operate through the disk system. Thus, you will change all lines that infer a tape system to AERCO compatible commands. If you find: Replace it with: SAVE “quizzle” MOVE “quizzle.bas”, SAVE “quizzle” LINE 20 MOVE “quizzle.bas”,20 SAVE “quizzle” SCREEN$ MOVE “quizzle.scr”, SAVE “quizzle” CODE 40000,30 MOVE “quizzle.bin”,40000,30 LOAD “quizzle” CAT “quizzle.bin”, LOAD “quizzle” LINE 20 CAT “quizzle.bas”,20 More complex changes LOAD “” CAT “quizzle.bas” All AERCO commands must contain a specific name. LET q$=”quizzle”: SAVE q$ LET q$=”qizzle.bas”””,”: MOVE “q$”, Note the exact sequence of commas and quote image characters – this is important. SAVE “quizzle” DATA (q) )I don’t know: MOVE “quizzle.var”, SAVE “quizzle” DATA (q$) ) saves all variables VERIFY “quizzle” )Not supported by AERCO MERGE “quizzle” )Not supported by AERCO , but needed! Thirdly, MOVEing the program to disk. If you’ve changed all SAVEs in the program, you have probably found the line that saves the program. If not, you’ll have to add one, or you can use direct commands from the keyboard to make the transfer. Thus, if you have a program “Sample” that autoruns from line 5 and has a M/C component that starts at 33000 and is 4000 bytes long, y 9999 OUT 244,1: MOVE “Sample.bas”,5: MOVE “Sample.bin”,33000,4000 The direct command GOTO 9999 will then save the program to disk. Alternatively, you can simply enter those same commands directly from the keyboard. Either way, you should end up with “Sample.bas” and Sample.bin” listed on your disk directory (accessed Many machine code programs fiddle with the configuration of the machine, leaving AERCO dos switched off. Adding an OUT 244,1 command switches the AERCO dos on. Such a line at the start of your AERCO MOVE or CAT lines is useful insurance. Because of the variety of approaches and attempts to provide copy protection for programs, you may have difficulty getting the disk version to run correctly. Solving these problems requires that you learn the strategy used in each case, and come up with a way to defeat it. Sounds like another article!