The program in this month's Toolbox is Toolkit, a collection of utilities to make debugging programs easier and to aid pottering about in machine code.
The utilities are monu driven, and can be accessed easily from BASIC by typing |T or |TOOLKIT. Once the BASIC program has been run. it'll erase itself from memory, leaving the machine code. The options are as follows:
- Disassembler - converts machine code in the computer's memory into Z80 mnemonics. Enter the start and end addresses of the memory you'd like to inspect. The ASCII, machine code value and instruction mnemonic will be displayed for each location.
- Memory Editor - allows you to edit the contents of memory directly, in both hex and ASCII. The cursor can bo moved around with the cursor keys - hold shift to move greater distances. Use TAB to toggle between hex and ASCII. Modify the memory by simply typing over the existing information
- Memory Lister - displays the block of memory between the start and end addresses.
- Compare - matches two blocks of memory. Enter the start and end addresses of the first block and the start address of the second.
- Fill Memory - fils an area of memory between the start and end addresses with the byte of your choice.
- Move Memory - copies the memory between your start and end addresses, to another location.
- Search Memory - scans through the computer's memory for a sequence of characters or lies codes. You specify the start and end addresses, and what to search for.
- Memory Map - displays a graphical representation of the entire useable RAM, between &0000 and &C000
- Quit - returns to BASIC.
♦ Some of the options will allow you to choose between sending output to either screen or printer. Pressing ESC once will pause the correct process. Twice aborts prematurely.