Type in the following program, which sets all the function keys:

10*KEY0 M0DE135 |M LIST |M

20*KEY1 RUN |M

30*KEY2 MODE

40*KEY3 PRINT

50*KEY4 INPUT

60*KEY5 COLOUR

70*KEY6 MOVE

80*KEY7 DRAW

90*KEY8 PLOT

100*KEY9 GCOL

Later you may want to use key definitions of your own, but you will find the

above program useful in the next few chapters. The next section shows how you

can save the program you have just written so that it is available whenever you

need it.

Saving and loading programs

Most of the programs you have just typed in have been fairly short and do not

really do anything worthwhile. It is therefore not really worth keeping a

permanent copy on disc but, as you learn more about BASIC programming, you

will probably want to keep versions bf your masterpieces so that you can run

them without having to retype all the instructions.

Making a permanent copy of a program is referred to as saving a program and

the BASIC language provides a special command for this purpose. Its format is:

SAVE "name'' RETURN

where name (which must be enclosed in double quotation marks) is something

you choose to identify the program from all others.

Note: You will need a formatted disc (not the Welcome disc) if you wish to carry

out the commands given below. If you do not have such a disc, read the

examples now and try them out once you have read the section on Filing

Systems later in this guide.

So, to SAVE the function key definition program you have just entered, you

could type:

SAVE "KEYS" RETURN

or possibly:

SAVE "KEYDEFS" RETURN

or a SAVE command including any name you wish.

C 11