★ APPLICATIONS ★ DIVERS ★ Amstrad Toolkit ★ |
Toolkit | Applications Divers |
This Basic Toolkit loader program contains many data statements which are followed by a checksum. At the end of the listing, there is a general checksum which checks all the others. If a mistake is found in the program, it will stop with ERROR IN DATA AT LINE xxx; you must then edit that line and change the mistake. When is it POKEd into the RAM, the program may be saved and erased. To start the toolkit type CALL 40000, which produces the usual message with some special additions. This message can be deleted with a higher call to the RAM (CALL 40003). The program can be saved by typing SPEED WRITE 1 :SAVE"BASICTOOLKIT" [ENTER], To reload, type SYMBOL AFTER 32:RUN " (only characters after 32 may be redefined). The program can save at 4000 baud if TURBO is added to the previous command. To check each block of the program, type CAT and rewind the tape to the correct place, then press PLAY. The Amstrad CPC464 has a feature to add extra commands called RSXs (reserved system extensions). They are prefixed with a l,[SHIFT]&@. The ROM must know the location of the command table, and must have a four-byte buffer. The command table contains the addresses of the commands, the name table contains the names. Fig 1 is a rough example in assembly language. Where an @ appears this must be added, or the system may crash. IDPRINT must have a $; |DPRINT,"HELLO" will not do. The commands using variables not prefixed with @ can be entered with the value rather than the variables; |SCROLL,2 will do. If there are mistakes afterthe first run-through, the code should be reloaded. Any incorrect spellings will upset the machine and Basic can not be recalled. If a REM statement contains an RSX I, you must use II as a single I is deleted. The following information is important:
|