This is the fourth and final part of the Toolkit tutorial; the remaining options will be described and then there will be some closing comments. Any serious programmer should have this suite of utilities, some of which are indispensible while others have only occasional applications. One or two are of doubtful worth. There are some missing utilities that can be obtained from the club library to fill in the gaps, eg, one that will break a very long program line into its component statements.
Toolkit has one excellent feature that applies to nearly all options: every parameter is prompted for on screen and most errors that can occur are trapped. There are error messages to guide the novice. The prompts call for input; strings and numbers are printed on screen; letters and messages from a table also are displayed. Input is placed in buffers and when complete are tested for validity. A final execute? prompt gives the user a chance to back out. At any time an empty string will abort the option. Some routines have extra tests and error traps built in. The original author D. Spagnol produced a masterpiece and it has never been equaled, let alone surpassed.
PROGRAMMING OPTIONS…
The first two options <Y> and <Z> are for use with renumbering routines. If memory is short, <Y> will work with <R> and <M> but <C> may have corrupted the variables. If lines become mixed up try using <Z>. It’s all theoretical; it hasn’t happened to me.
[Y] UNCORRUPT
Occasionally a program will not load very well from tape and any attempt to edit lines results in a large number of lines disappearing, or a resounding crash; this because Invisible Length bytes have been corrupted. Use this option and editing is possible. REM lines containing machine code with CHR$13 could be ruined, so beware.
[Z] LINE SORT
If line numbers are very badly corrupted, they may not be listed and will be rejected as program lines. Breaking back into BASIC and doing a RANDOMIZE USR 65240 will do a simple renumber of the Program area from line 1 in steps of one. No GO TOs are corrected. This choice can really mess up a listing and so it has been made hard to access. Make sure you have a SAVE before trying this one.
Best of luck using these two.
The remaining options are much better ones.
[E] REM CREATE
This option can create a REM with up to 35000 characters in the blink of an eye. If you store machine code this way, this utility is for you. Prompts are for Line Number, Length and Symbol.
[F] REM DELETE
Prompts for start and finish lines, then deletes REM lines in that range only, including :REM further down the line. It will not deal with such weird stuff as IF a THEN REM.
[G] UDG DESIGNER
This prompts for a character as a starting point which can be amended by entering the coordinates of an eight by eight grid, number first, followed by <i> to fill in or <o> to delete. Mirror images, inversions and rotations are possible. The character being worked on can finally be assigned to a specific letter. The UDG set can be set back to start up values by using 9Z.
[U] UDGs TO DATA
Here is where you store your work done via option G or any other collection of UDGs, for that matter. It prompts for the number of UDGs starting from A (eg, 4 will give graphic A, B, C and D), the number for the first DATA line. It will put eight bytes in each line.
[B] BYTES TO DATA
Similar to <U>. It prompts for start and finish addresses, a destination and number of bytes per line (Max 64 bytes per line). Lines will increment by one. You have the option of Hex or Decimal input with only Hex giving a checksum. There is a memory check before each line is started to ensure that the program is not corrupted by incomplete lines. There is also a check to ensure enough unused lines are available at destination. If your code conflicts with the Toolkit memory map, move it somewhere else, load Toolkit and later move the code back where it is designed to operate.
LAST MINUTE THOUGHTS…
IM2 SET UP…
The revised code starts at 59696 and creates a 257-byte block of E9s (233 decimal) from 59392 to 59648.
Start up procedure: CLEAR 59391 then load the code tstk.C1 which is 5672 bytes long.
Use RANDOMIZE USR 59696 then RANDOMIZE USR 60000 to activate the full program or just RANDOMIZE USR 60000 if you do not want to use the IM2 options.
LIST VARIABLES CORRUPTION…
If you get a corruption at the end of the variables listing, try this: locate E-line (PEEK 23641 + 256 * 23642), then POKE E-line minus one, 128. Then re-save toolkit (on a different disk).
UDG DESIGNER…
UDG E (start)..
You can now change this udg to anything you want.

Once you have designed the new UDG enter it, using 9E or any location A-U.
Use option U to save your new UDG set to DATA statements.
This sample shows the UDG E changed to a different e.

Note that the small UDG near the top changes as you input the pixels. This UDG has also been inverted using 9U.
This ends the four-part series on Toolkit. I trust you will find it as useful as I have. If you have any comments, ideas or or suggestions, please contact me.