Editing Primer - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

Now set up one of the function keys to perform the task of typing [ENTER]CLS:LIST[ENTER] - a
feature that speeds up program development enormously. To do this, enter:
K E Y 1 3 8 , C H R $ ( 1 3 ) + " C L S : L I S T " + C H R $ ( 1 3 )
Now press the decimal point key on the numeric keypad. Up to 32 keys can be pre-programmed in
this way and you can choose any of the keys on the keyboard to redefine in case you want to use the
keypad for its original purpose, see the description of the K E Y command in chapter 8.
If yours is a long program, then define the key as:
K E Y 1 3 8 , C H R $ ( 1 3 ) + " C L S : L I S T "
then the key will allow you to enter the line number range you require - or hitting it twice in
succession will perform a full listing.
When you are experimenting with colour, it' s possible to get lost in a combination of colours where
it' s not possible to read the display because the background and the writing have been set to the
same values, so if you set
K E Y 1 3 9 , C H R $ ( 1 3 ) + " m o d e 2 : i n k 1 , 0 : i n k 0 , 9 " + c h r $ ( 1 3 )
..you only have to press the smaller of the two [ENTER] keys (the one on the number keypad), and
you can get back to base with a combination of colours that are visible. (You will not lose the
program in memory.)
User defined key codes are reset with the rest of the machine since they have to be made available to
program instructions, so once you have worked out your favourites, write them into a program, and
save it onto tape for easy recall.

1.2.7 Editing primer

You will inevitably make mistakes when typing in the program. Welcome to this section all those of
you who skipped here from 1.2.2 !
The CPC464 has tried to make correcting these errors as simple as possible, at the same time
avoiding the problems of accidentally overwriting characters that you don' t mean to change.
The clustered keys that control the motion of the cursor (the solid block that defines where you are
going to type the text) provide the means of steering the computer' s attention to the part of the
display you wish to alter.
When entering an error in a numbered line eg:
1 0 F O R N = 3 2 T O 2 5 5
you have several options:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents