AMSTRAD cpc 6128 User Instruction page 67

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

For further demonstration of the colours available, type in the following program,
then
run
it.
1 0 MOD E 0 [RETURN]
20 rat e = 6 0 0:
REM set s s pe e d
0
f pro 9 r a m [RETURN]
30 FOR b=0 TO 26 [RETUF\N]
40 LOCATE 3,12 [RETURN]
50 BORDER b [RETURN]
60 PR I N T
11
b
0
r
d ere
0
L
0 U
r
11 ;
b [RETURN]
70 FOR t=1 TO rate [RETURN]
80 NE X Tt, b [RETURN]
90 C LG [RETURN]
100 FOR p=0 TO 15 [RETURN]
110 PAPER
P [RETURN]
1 20 PR I N T
11
pap e r
11 ;
P [RETURN]
130 FOR n=0 TO 15 [RETURN]
140 PEN n [RETURN]
1 50 PR I N T
11
pen
11 ;
n [RETURN]
160 NE
X
T n [RETURN]
1 70 FOR t = 1 TOr ate
*
2 [RETURN]
1 80 NE X Tt, P [RETURN]
190 MODE 1 [RETURN]
200 B 0 R D E R 1 [RETURN]
21 0 PAP E R 0 [RETURN]
220 PEN 1 [RETURN]
230 INK 0, 1 [RETURN]
240 INK 1, 24 [RETURN]
run [RETURN]
IMPORTANT
In the above program, and in later chapters and listings in this manual, BASIC
keywords will appear in upper case (CAPITAL) letters. This is how keywords
appear when a program is LIS T ed by the computer. In general it is preferable
that you type instructions or programs using lower case (small) letters, since it will
help you spot typing mistakes when Ll STing the program - (because the
mis-typed BASIC keyword will NOT be converted to upper case).
For the remainder of this Foundation course, we will list programs in both upper
and lower case, so that you get accustomed to this aspect of operation.
A variable's name, such as x or a
$,
will NOT be converted to upper case when the
program is LIS T ed although the computer will recognise the name regardless of
whether it appears in upper or lower case in the program.
Attention
From this point in the manual, you will not be instructed to press the [RETURN]
key after each line. Therefore it is assumed that you will do it automatically.
Chapter 1 Page 54
Foundation Course

Advertisement

Table of Contents
loading

Table of Contents