17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For further demonstration of the colours available, type in the following program,<br />

th<strong>en</strong> run it.<br />

1 0 MOD E 0 [RETURN]<br />

20 rat e = 6 0 0: REM set s s pe e d 0 f pro 9 r a m [RETURN]<br />

30 FOR b=0 TO 26 [RETUF\N]<br />

40 LOCATE 3,12 [RETURN]<br />

50 BORDER b [RETURN]<br />

60 PR I N T 11 b 0 r d ere 0 L 0 U r 11 ; b [RETURN]<br />

70 FOR t=1 TO rate [RETURN]<br />

80 NE X Tt, b [RETURN]<br />

90 C LG [RETURN]<br />

100 FOR p=0 TO 15 [RETURN]<br />

110 PAPER P [RETURN]<br />

1 20 PR I N T 11 pap e r 11 ; P [RETURN]<br />

130 FOR n=0 TO 15 [RETURN]<br />

140 PEN n [RETURN]<br />

1 50 PR I N T 11 p<strong>en</strong> 11 ; n [RETURN]<br />

160 NE X T n [RETURN]<br />

1 70 FOR t = 1 TOr ate * 2 [RETURN]<br />

1 80 NE X Tt, P [RETURN]<br />

190 MODE 1 [RETURN]<br />

200 B 0 R D E R 1 [RETURN]<br />

21 0 PAP E R 0 [RETURN]<br />

220 PEN 1 [RETURN]<br />

230 INK 0, 1 [RETURN]<br />

240 INK 1, 24 [RETURN]<br />

run [RETURN]<br />

IMPORTANT<br />

In the above program, and in later chapters and listings in this manual, BASIC<br />

keywords will appear in upper case (CAPITAL) letters. This is how keywords<br />

appear wh<strong>en</strong> a program is LIS T ed by the computer. In g<strong>en</strong>eral it is preferable<br />

that you type instructions or programs using lower case (small) letters, since it will<br />

help you spot typing mistakes wh<strong>en</strong> Ll STing the program - (because the<br />

mis-typed BASIC keyword will NOT be converted to upper case).<br />

For the remainder of this Foundation course, we will list programs in both upper<br />

and lower case, so that you get accustomed to this aspect of operation.<br />

A variable's name, such as x or a $, will NOT be converted to upper case wh<strong>en</strong> the<br />

program is LIS T ed although the computer will recognise the name regardless of<br />

whether it appears in upper or lower case in the program.<br />

Att<strong>en</strong>tion<br />

From this point in the manual, you will not be instructed to press the [RETURN]<br />

key after each line. Therefore it is assumed that you will do it automatically.<br />

Chapter 1 Page 54 Foundation Course

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!