Continuation from the April UP-DATE issue
This BIG software began in the April issue. Some repetition is included for convenience of reading. There are several ways of attacking this group of programs. You can key in the listings, which will give you a operating BUDGET and SPREADSHEET program “in basic”. Then you can use the TIMACHINE compiler program to convert the two Basic programs into fast running Machine Code. This will require you to have or to buy the Timachine software from Novelsoft or a distributor. You could use a different Basic to MC Compiler, but if you do you’ll be on your own! Of course, the easy way and likely the most practical is to order the April Issue disk to get the fully operational software (and a bunch of other programs and utilities).
The listings are given for those who want to go the educational way of compiling the basic programs with Timachine, which will be the equilivant of a college semester on programming, except there are no tests (but no Girls either!). At my age the latter poses no problem of social signficance. If going this route, use the Check Sum tables given in the April and this issues for the two programs that are to be compiled. There are two things to watch for. One is the similarity of the characters “i” (eye), “l” (el), and “1” (one). Take a look on page 9-18 of the April issue, Line number 40. Notice the difference in the number 1 (one) and lower case “L”. There is a difference but it is small. Also notice in line 320, that “i” can be mistaken for lower case “L”.
There is one more key-in error to watch for. Several LET and PRINT statements must be entered in the INVERSE mode (HOLD CAPS SHIFT and touch 4) after the first quote, then (CAPS SHIFT and touch 3) before the last QUOTE. These highlight the menus. Line numbers that require this INVERSE print are the LET and PRINT lines of the BUDGET.BJ program: lines 470, 480, 490, 2250, 2620, 2930, 3080, and 3240. Each failure to use INVERSE in these lines will result in the check sum table being off 4 bytes for each omission. The check sum table is given in ten line groups. Type CLEAR ENTER, then PRINT FREE. The check sum will not be accurate unless you started the key in project with a cleared computer (OFF and then ON) and 38652 FREE bytes. Loaded Code programs, such as a printer driver code, will throw off the check sum figures. Solve this by OFF, then RE-LOAD.
The “SPREAD.BJ” program (given in this issue) is the second BASIC program listing which already includes the Timachine commands needed for COMPILING the Basic program into Machine Code. The Compiler commands begin with (REM!) and can be entered directly in each line as given. Once finished with the program Key-in, SAVE it to Disk or Cassette. Then LOAD the TIMACHINE program and pick up the instructions given in Bob Mitchell‘s Documentation in this issue “Part II”. I would advise that you NOT make any program changes for your first attempt at keying in and compiling the SPREAD.BJ program. Later, after the whole integrated program group is checked out, you can then feel confident to go back and make custom changes to the two Basic programs “BUDGET.BJ and SPREAD.BJ”, and re-compile these custom programs which includes your changes.
Now to discuss the additions made by UP-DATE for the three Disk Operating Systems. This involves the two ancillary LOADER and DISK MENUS. For identification, Bob calls “budget.Bx” a “loader / manager”. UP-DATE’s listings names this “BUDGET.B1” and gives three different DOS versions. It was found that some conflicts existed when a previously loaded CODE program had not been eliminated before loading the budget and spread code programs from disk. Therefore, the “Cclear” CODE program was added to clear memory when the budget program is first loaded. See “Cclear explanation in this issue. Also, the re-set of RAM TOP was not included. The large budget and smaller spread codes are loaded without change of RAM TOP. This eliminated a chancy stoppage report of “out of memory” with one of the DOS versions.
The DISK MENUS: Bob made mention of adding a disk menu, and UP-DATE added one for each of the three DOS versions. These disk menus can easily be adapted to other uses for coordinating a different set of programs. In this instance, each of the Disk Menus give more options and allows you to place the Budget software on stand-by to do other computer functions. Beware of the fact that there isn’t much FREE memory to add other programming lines. However, the menus are designed so that if you should happen to overwrite the Budget Code, it can be brought back in to resume. You would just lose the data “in the program that was in memory”. Start up can be by loading either BUDGET.B1, or Menu.B1 first. The Issue Disk uses a jazzy kaleidoscope auto boot utility, which also can be re-used for other effects.
The Budget Program ensemble takes up a lot of space in UP-DATE, is NOT a simple “week end key-in project”, but does provide an extensive and complete software system to explore over a long period of time. Please feel free to call or write if you get stuck on something. For those of you who really want to delve into the programming, sufficient documentation is given to use your imagination and make this BUDGET software into a variety of different Spreadsheet applications. Be Bob Mitchell’s guest! By the way, I changed to a new print wheel that gives a better Character “i” (eye), but alas, the ones (1) and lower case “L” look the same. So, I will circle lower case “L” in the listings when not obvious. If used alone and not circled, its a “1” (one).
The Aerco prcode is used for the LARKEN DOS and the AERCO FD-68 DOS versions. For Larken DOS, this is the early cassette code as supplied with the Aerco printer interface (starting address 64000 and 800 bytes). For the FD-68 DOS, the code is that supplied with the Aerco FD-68 and Jack Dohany‘s “RALOADER” program, which is re-locatable (Starting address is 64500 and is 867 bytes). For both see the utility program listing “INIT” given in this issue.
Bob Mitchell’s documentation which follows contains a notation at the top left corner of pages. This is the TASWORD file program which contained the text sent to UP-DATE by Bob. The print outs of the documentation were done with the utility “MS-TAS” (Listing is given in this issue). Next will be given the “SPREAD.CJ” basic listing to be compiled by use of TIMACHINE, and following that will be Bob Mitchell’s “Part II” documentation, and finally the Basic loader “BUDGET.B1” and the Disk Menu “Menu.B1” will be given. The utilities “MS-TAS” and “INIT” are included in the April Issue Disk”, along with the complete BUDGET ensemble and several more programs. See the April Issue Catalog given elswhere.
DOCUMENTATION FOR BUDGET PART II
By Bob Mitchell, Willowdale, Ontario, Provided to TS Update Newsletter (Revision dated 880414)
Code pgm, “bujJ3.CT”33280,11200
WHAT UTILTIES YOU WILL NEED
1. A copy of the BASIC compiler “Timachine” (the amended version that handles the *D and *E routines properly) to compile “budget” and “spread”.
2. A Centronics printer interface code; “budget.Bx” as shown uses the “aerco” prcode or, alternatively, the Larken extended BASIC printer code contained in its EPROM cartridge.
3. Copies of the Tasman utility “taswide” and the “tasword” word processor program are optional. With these you can type up some help pages and recall them when needed to refresh your memory while using “budget”. More on that later.
THE MAIN PROGRAMS
4. There are three programs:
a) budget.Bx expanded "loader/manager" or input/output
program; this will NOT be compiled.
b) budget.BJ for compilation; change the category names
in line 590 to suit your needs, before you
do the compilation. Pad out each name in
this line with spaces to a total length of
ten.
c) spread.BJ also for compilation; change line 8250 to
match the names in line 590 in your
version of budget.BJ. No extra spaces will
be needed in line 8250. This program will
run slowly in BASIC providing you are
using the Larken cartridge or Aerco
"prcode.C1".
THE LOADER/MANAGER
5. TYPE IN THE LOADER, “budget.Bx”. Check your typing carefully and SAVE it to disk (GO TO 310); then SAVE it to tape. You may want to make the loader into your autostart program. This option is not on the menu but is located at line 400 (for Larken).
BUDGET COMPILATION
6. Now restart your 2068 (turn power off, then on — disk drive gate OPEN!) and LOAD TIMACHINE. Remember! You must have the corrected version of Timachine. Then LOAD the TAPE version of “budget” that you saved earlier (the one with no budget values). Make the change to line 590 explained above (para 4b). Compile the program; you will have to SAVE IT TO TAPE in the two parts (*D and *E) mentioned earlier . Make sure your 2040 printer is turned on so that you get a printout of the runtimes and variables generated by Timachine during the compilation process.
7. Save this Timachine printout (with variable m/c addresses) for future use. Restart the 2068 and LOAD the TWO parts to the CORRECT ADDRESSES as instructed by the Timachine prompts. RUN the program by entering RANDOMIZE USR 32000. If you do not initialize via 32000 you will get strange results later as some variables will not be set up. If all is well, you should have a pull down menu on the screen. Enter the Date and budget Year to complete this menu.
8. LOAD “budget.Bx” from disk and check the USR addresses and the SAVE code length in it to ensure they are what you got from your Timachine print-out. You will have two entry point addresses, one of which is 32000 and the other which is generated by the second REM ! OPEN # which should be 37166. If it is a different address, then you have altered the length of the program and you will have to change <37166> in loader lines 190 & 260 to your new second entry point address. Ensure that the code length in loader line 40 for the SAVE represents the total of the code lengths from the *D and *E parts plus the length set aside for machine code variables. The latter is the area that will hold the budget amounts. Now ReSAVE “budget.Bx” to disk and just to be safe, to tape,too.
9. Now you are ready to enter your budget amounts for the entire year. It is best to work these out on paper first! Next, enter the actuals for the year so far. Check out the various displays at this point and if you are satisfied, SAVE the compiled program with your budget amounts to disk using option 3 in the loader. A SAVE to TAPE would also be wise. Test it all out by powering down and LOADing “budget.Bx” and then LOAD “budget.CJ” using option 2.
10. When you QUIT “budget” you return to the loader; you can get back to the budget program by using the restart option 4. Nothing will happen when you do this unless budget is loaded. Next time you LOAD budget from the disk, use option 2 to dump all the data for viewing or further entries. You can start afresh (with no data) using Option 1. If you don’t want to use help routines take out lines 185 and 186; and change “6” to “5” in line 150. If you are using Larken DOS then delete line 330; remove the token <REM> from lines 65 and 333 and change line 196 to read <IF k$=”5″ AND PEEK 32000=205 THEN CLS: RANDOMIZE USR 58400: GO TO 60>.
SPREADSHEET
11. Key in the spreadsheet program “spread.BJ”. Change the DATA in line 8250 to match your budget program category names. No extra spaces are needed here.
12. If you have changed the length of “budget” at all, some changes will be needed. Examine your Timachine printout for “budget” and locate the arrays indicated in lines 8340 to 8370. Change variable <first> to the address of each array in turn. Change variable <last> to the address of the next variable on the printout minus 1. Next, locate the arrays shown in lines 8590 and 8600. Change the variable <i> in each case to the address for that array minus 60. Now, SAVE “spread” to tape and to disk (GO TO 9000 for the latter).
13. Spreadsheet is now ready for use. If you intend to compile it with Timachine, jump to para 14 below and disregard the rest of this para. You may merge “spread.BJ” with the loader “budget.Bx” and use it as a BASIC program entirely. You will have to change <RANDOMIZE USR 58400> TO <GO SUB 8000> in line 195 of the loader. Change line 8620 of “spread.BJ” to read <GO TO 60> in lieu of <STOP>. There will be some other minor changes to do after the MERGE: DELETE line 335; CLEAR 29000 in line 400 will not be high enough if you want to SAVE this as an AUTOSTART version (Larken); try 30000 or higher. Delete line 9000. The spreadsheet will print out quite slowly so be patient.
SPREADSHEET COMPILATION
14. Of course, compilation is the way to go! LOAD Timachine and then “spread” from your tape. Do the compilation and SAVE it according to Timachine instructions. Restart the computer and LOAD “spread.CJ”CODE 58400. SAVE it immediately to your disk as “spread.CJ”CODE 58400,length; where the latter is the length shown in the Timachine SAVE instruction at the end of your printout: <SAVE “m/c” CODE address,length>.
15. Now restart the computer and try what you have done. LOAD the loader “budget.Bx” and use option 2 to LOAD your budget code “budget.CJ”; make sure your printer is ready and then use option 5 to print out the spreadsheets. Each of the four sheets should print out in about two minutes.




Foot Notes: This Disk Menu and the Aerco Budget Loader have a relocatable Aerco printer code as given in Jack Dohany’s RALOADER program. The code is located at 64500,867. The top 67 bytes are reserved for VARS that need to be preserved from one Basic program to another. POKE the vars starting at 65300 before a new program is loaded or before a new VAL program is loaded. Then PEEK the vars back after the LOAD.
Both this Menu and the BUDGET Loader have a Stand By printer code initialization routine to use when you need to put the Budget program on stand-by to do some direct printing.

Foot notes
Upon finishing with the BUDGET program, a selection of <3> will boot in the DOSDEX MGR program for selection of another Basic program to load (assuming that the either this same disk has the DOSDEX MGR program. If not then you can install a disk that does.
Foot Note: There are two code budget programs. One is budget.CJ and has no data. budget.CY is created (line 40) when you save your first data program.
Selecting <4> will clear out the data of an existing program and start over.
<GO TO 310> will SAVE a back up of this basic loader.
BUDGET.B3: An Interesting Productivity Program for MAX DOS

Are you ready for this? Well, some day you will be. This is a Budget Loader program to be used with “MAX DOS”, Larken and Oliger DOS “stacked”. It works like a charm at UPDATE. Now this will repeat some of the information contained in the article “MAX DOS”, but will serve as an example of a useful program. The senario is: Larken LK cartridge in the Dock port and the full Oliger DOS in place. RGB is via the Oliger hardware. Printer support is via the Oliger SAFE DOS. LET/p=t enables the TS-2040 printer, or LET/p=o enables the Centronics printer. Maximum line width is controlled via POKE 23323,width.
Note line 330, which is the Auto Run Line. Both Oliger and Larken DOS are initialized in this line. <LET/d=1> assigns disk #1 to the Oliger DOS. <PRINT #4: GO TO 0> assigns disk zero to the Larken DOS. From then on, the disk syntax used results in automatic switching of the disk drives as needed. This allows 1.6 mgbts of disk space under direct program control (two 80 track drives). Other combos of drives are acceptable. As programmed, disk “PROGRAM” SAVE and LOADs are to the LARKEN disk in disk zero, and Disk “DATA” saves and LOADS are to the Oliger Disk in drive #1. But this can easily be changed as desired. The convertable line numbers are: 40, 185, 196, 200, 220, 250, 310, and 335. All you need do is change the LOAD SAVE syntax and the right drive will be auto selected.
Note lines 40 and 250, which uses the Oliger SAVE and LOAD of the BUDGET DATA. When these lines execute, the drive is switched to drive #1. All other LOADS and SAVES use LARKEN DOS syntax, which switches to drive #0. A good operating practice with MAX DOS is to use one DOS format for PROGRAMS and the other for DATA. The drives are switched automatically. MAX DOS allows the user to FORMAT Oliger disks directly or to load the Larken tool kit disk to FORMAT Larken Disks. Disks may be prepared for other users who operate with either of the two single DOS, Larken or Oliger.
There are two separate operating protocols. Normally one would think of the “stacked DOS” as mostly having to do with operations to and from the disk drive. Actually the most significant advantages of MAX DOS are the “cumulative” Extra Basic functions which can be used without regard to which disk format is being used. During operation one does not pay any attention to “which disk is being used”, as this does not matter. One just uses the programming syntax to do the function needed. In this program, menu option <7> HELP, results in the exercise of a Larken function which brings up a “disk file to screen” for viewing. It is the “taswi.Cx”CODE file, which happens to be a TASWIDE 64 Column “Help File”, which is printed to screen.
Other Extra Basic functions of either DOS are “at home” in the MAX DOS environment. Programs that contain “mixed” DOS syntax are acceptable for whichever disk format will be used for SAVE or LOAD. The Oliger “Fast FOR counter” is at home in a Larken Disk program, and the Oliger Printer Driver works as well in a Larken format as it does in a Oliger Format. A single drive can be used as easily as one normally does with either DOS. Program prompting to “install Larken Disk or Oliger Disk” before a disk command would be appropriate for single drive systems, but not necessary with a two drive system.
Since the two EPROMS of Oliger and LARKEN DOS operate in different expansion banks, the extra basic functions that they contain can be expanded. These groups of new functions are additions to the TS-2068 ROM, but are different in concept, ie, they are “whole routines of productive functions”, rather than “loops to support the TS-2068 Basic”. The extra basic functions add substantial computing power to the TS-2068.
