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.

Part 6: Let's Compute ....<br />

So far, we know what we must and mustn't do with the computer, and how to set it up<br />

and connect peripherals. We know what some of the keys on the computer do, and how<br />

to load software. Now we'll look at some of the instructions that you can type in to<br />

make things happ<strong>en</strong> ....<br />

Like you or I, the computer can only understand instructions in a language that it<br />

knows, and that language is called BASIC, (short for Beginners' All-purpose<br />

Symbolic Instruction Code). The words in BASIC's vocabulary are called 'keywords'<br />

and each ofthem tell the computer to perform a specific function. All languages must<br />

conform to the rules of grammar, and BASIC is no exception. Here, grammar is<br />

referred to as 'Syntax', and the computer will always be kind <strong>en</strong>ough to tell you if<br />

you've made a S y n t a x err 0 r !<br />

An introduction to AMSTRAD BASIC keywords<br />

In the chapter <strong>en</strong>titled 'Complete list of AMSTRAD CPC6128 BASIC keywords', you<br />

will find a description of all the keywords found in AMSTRAD BASIC. We will<br />

introduce some of the more commonly used BASIC keywords in this section.<br />

CLS<br />

To clear the scre<strong>en</strong>, type in:<br />

c L s [RETURN]<br />

You will notice that the scre<strong>en</strong> clears and the word Rea d y with the cursor. will<br />

appear at the top left of the scre<strong>en</strong>.<br />

Note that you can use upper case (CAPITAL) or lower case (small) letters to <strong>en</strong>ter any<br />

BASIC keyword into the computer.<br />

PRINT<br />

This is used wh<strong>en</strong>ever you want characters, words or figures in a program to be<br />

printed. Type in the following instruction line:<br />

p r i n t "h eLL 0 " [RETURN]<br />

Chapter 1 Page 22 Foundation Course

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

Saved successfully!

Ooh no, something went wrong!