Recently someone asked me what was the most important add-on accessory for the QL. This really got me thinking, in other words he was asking me to pick and choose between all the things I have come to take for granted.Could I actually do without my Trump Card and dual discs? Could I go back to 64 columns on a T.V. screen? How about giving up QRAM or Super ToolkitII? What would I then be stuck with? Answer; a great little machine that’s reasonably priced, (make that downright cheap!), has it’s own storage devices, and comes with four packaged programs that I am still not taking full advantage of.
The question was on my mind long after the person who asked it left without an answer. I wouldn’t want to do without any of the luxuries that I have come to expect to be there when I boot up. But if I HAD to choose the one that I consider most valuable it would have to be Super Toolkit II. This is assuming that I already had a monitor. I can’t imagine anyone who has 80 columns built-in not to take advantage of it, especially when a green mono monitor can be had for less than $50.00. So, considering the monitor a gimme Super Toolkit II has to be the one.
Sinclair’s SuperBasic is one of the best basics I know of. In addition to the “normal” basic commands there are the extended commands that all basic’s do not have. I’m thinking back to the days when I was programming my trusty TS 1000 and agonizing over not having a RENUM command. How nice it would have been just to renum 100,10 and have a nice neat program with line numbers starting at 100 and going up by 10’s. It makes it look like you never had to add a line, even if it wasn’t that important anyway, (like 105 NEXT I). Not that I’d ever forget a NEXT I. But the real nice thing about SuperBasic is the Define Procedure and Define Function commands. These commands work more or less like a Gosub only once defined they are part of the operating system! This means you could define a procedure named print_variables in your program and if some reason the program has an error and kicks you out to basic, you could enter “print_variables” and all your variables would be printed to the screen and you could then figure out what that damned computer did to screw up your perfect program that you have been up half the night writing. Not only that, but, you can also re-define the commands that are already part of SuperBasic. Here’s a little trick, want to keep people from seeing your program? Just re-define LIST, COPY, and EDIT, to NEW:
30000 DEFine PROCedure LIST
30010 NEW
30020 END DEFine Procedure LIST
Now if someone was to try to list your program it would execute the NEW command. Just do the same for COPY and EDIT and no-one will be able to see that sloppy code! (Unless they’re very tricky and copy direct to the screen from a micro or floppy without first LOADing your program.)
As you can see, I like SuperBasic. But even so, it does have a few shortcomings. For one thing it doesn’t have a PRINT_USING command. First I didn’t have RENUM in TS 1000 Basic and now this! Well here comes Super Toolkit II to the rescue. Just enter TK2_EXT and all at once you have 108 added commands to SuperBasic to make life much more simple. You also have a much more manageable editor, (full screen no less). There are so many handy commands included I can’t possibly list them all, but I can give you an idea of how useful this software can be by explaining a few.
ALTKEY: This command allows you to “key define” commands. I normally define the ALT L combination as “load”, ALT S as “save” etc. This saves a lot of typing, it’s like having the trusty old TS 1000 single key commands again! I have several altkey define statements in my boot programs and they stay resident until I reset my QL. I hate having to print “PRINT #3,” when I want something to go to the printer or, “PRINT #4,” when I want something to go to a disc file. Now I have the number “1” on my keyboard altkeyed to “PRINT #1,”, and so on. So, now when I’m programming I can just hit ALT 3 and my screen prints “PRINT #3,”. Yes, it even works when you’re writing a program in basic. Not only that, but it also works in Quill. If you find yourself writing the same word several times in a document just altkey it and it will be there with one combination keypress!
There are several commands that work with the default directories. Default directories can be set for EXecutable program, data file, and destination directories. If you wanted to copy “MYFILE” from flp1_ to flp2_ and your destination directory is flp2_ with your data directory being flp1_ all you have to do is print “COPY MYFILE” and it’s done! This beats “COPY FLP1_MYFILE TO FLP2_MYFILE” huh? Of course, a little thought is in order here to make sure your programs are all set up the same way. Once you get used to it there’s no other way to do it. After all, aren’t we using computers to save time and effort? Another example; set your destination to be ser1 with your data directory still being flp1_and if you want to list several programs all you have to do is “COPY XXX” where XXX is the file name. This sure beats “COPY FLP1_XXX TO SER1”. A real time saver if you’re listing more than a couple programs.
Something else that I’ve found very handy is the prompt you get when you try to copy a file to a device that already has a file by the same name. In Superbasic you would get the error “already exists”. If you were trying to backup this file, you would have to delete the old one and then copy it. With Super Toolkit II you get a prompt that says, MDV1_XXX already exists, overwrite? Y/N/A/Q. These mean YES, NO, ALL, QUIT. All you would have to do is press Y and your QL will happily go about copying the file right over the top of the old file. If you’re wondering what the ALL response is for, there are also wildcard commands at your disposal, one of them being WCOPY. Now, if you were backing up a whole disc you could enter WCOPY FLP1_ to Flp2_ and the same prompt would come up (since your backup disc already has old versions of the same programs you’re trying to backup). Now you probably know what the ALL command is for! You catch on fast! This time you answer with A (for ALL) and walk away, the WCOPY will take over and copy all the files from flp1_ to flp2_ without asking if it’s alright to overwrite them. It does however print, in window #0 (the command window at the bottom of your screen), the names of the files that have been copied throughout the procedure. These commands work with any devices you happen to have, be they floppies, microdrives, or ram discs.
There is also a PRINT_USING command. This command will let you pre-define/justify your output. The most typical use for it is numerical justification when I have ng checks. If you wanted to right-justify, and fill the spaces to the left in a numeric field for instance, you would use PRINT_USING O$***,***.** Then if the numeric data was 1234.56, the resulting field would be, $**1,234.56 The PRINT_USING command will also work with strings. I haven’t used it for this purpose yet but it does make for some interesting possibilities.
For the programmers there are two commands of particular interest. HEX$ and BIN$ do pretty much what you would expect them to. They convert to hexadecimal and binary respectively. To convert from hex or binary there are two other commands, HEX and BIN. (How inventive.) Before I got a calculator that did these conversions I had to work them out by hand or write a program to do it. It was a real pain to have to stop writing a program, save it, load the program that did the conversion I needed, do a couple conversions, and then try to get back into my train of thought. A lot of time gets wasted that way!
These are just a few of the wonders that await you when you enter the command TK2_EXT. I have barely scratched the surface of all the timesavers that Toolkit II delivers. One thing I should mention here though, for those of you that get Toolkit II with the Trump Card, the manual you get with it is SO SMALL! Not in the amount of information, but actual physical size. It’s 3 3/4″ X 5 1/4″. Now that’s small! If you’ve got great eyesight you could read it, but don’t count on having that great eyesight very long. Anyone that is interested can receive a copy on disc from me (you pay postage). There is also a program included that prints the whole thing out on real sized paper. Send me a microdrive cartridge or 3.5″ disc along with a couple bucks and I’ll copy it and return them to you.
Next month we could get lucky and win the lottery! Till then, Happy computing and let’s keep these machines alive!
From the S.E.T.U.G. SWYM Newsletter SWYM