AMSTRAD CPC464 User Manual page 64

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

Advertisement

1.2.5 Back to the program !
The result of the first program you have typed looks rather untidy. There' s still the remains of the
' wake up' message at the top of the screen. It looks tidier if we wipe the screen clean before we
started the program running. We' ll add one line to the program to fix this.
Type the following in on the line where the cursor rests (the cursor is the solid block immediately
underneath and to the left of the Ready prompt message, and if you didn' t know that, what are you
doing reading this before the foundation section??):
5 CLS
RUN
See how the screen clears completely this time before writing the character set starting at the top
left.
This also demonstrates one of the most understanding aspects of the BASIC programming language,
namely that it does not matter in which order you enter the program line numbers - and you don' t
actually need to have the program displayed, to add to it once it' s been entered into the memory.
The computer always sorts the line numbers into strict numerical sequence before it starts to
execute the program. Check by using the LIST instruction.
1.2.6
ISTing
L
You can easily check to see what the computer has stored in its program memory by asking it to list.
Type:
LIST
and the result on the screen is:S
5 CLS
1 0 F O R N = 3 2 T O 2 5 5
2 0 P R I N T C H R $ ( N ) ;
3 0 NEXT N
Ready
This program will stay in CPC464' s memory until you either:
Switch off
-
RESET - by pressing
-
been pressed until the reset occurs.
LOAD or RUN a program from the cassette unit
-
TYPE N E W
[ENTER]
-
resetting things like the display mode and the colours.
[CTRL][SHIFT][ESCAPE]
which resets all variables and clears the program memory without
in sequence and holding each down after it has

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents