120 applies to *FX statements – only one is allowed per line. However, it is acceptable to use colons to separate statements within the key definition. For example: *KEY 6 MOVE 0,0 : DRAW X,Y |M If you want to you can set up the user defined keys in a program in exactly the same way that they are set up in command mode. Thus 10 *KEY 7 "|B LIST|M |C" would let key 7 turn the printer on, list the program and then turn the printer off. If you wish to include an ASCII code greater than 128 (&80) then you can do this by using the sequence |! to add 128 to the value produced. For example:
*KEY 8 "|!|V" would put a single ‘character’ in key 8 and the ASCII value of the character would be made up from the two parts. The |! is worth 128 and the ASCII value of CTRL V is 22, giving a total value of 150. The BREAK key Pressing the BREAK key causes a ‘soft reset’ which does not reset the clock or clear the definitions of the user defined keys. However, pressing BREAK while the CTRL key is pressed will cause a ‘hard reset’ which resets everything. Pressing SHIFT and BREAK together is used on disc and runs a program without any further instructions. As you know, when you press the BREAK key the computer is reset and nothing can change that.
Your program will stop and all variables will be lost; even your program will appear to be lost. However, there are a number of things that can be done to alter the course of events. First, a program can be recovered by typing OLD RETURN and then RUN RETURN . Alternatively, the BREAK key can be ‘redefined’ by using the expression *KEY 10 "OLD |M RUN |M " which treats the BREAK key as another user definable key. Other keys and COPY keys can also be redefined – they can be considered to be user defined keys 11 to 15 (see also chapter 43). The