
Type in:
run
[ENTER]
On
the screen you will see:
Syntax error in 10
10 printt “abc”
This message tells you in which line the error has occurred, and displays the program line together
with the editing cursor so that you can correct the mistake.
Press the cursor right key [+] until the cursor is over the t in printt . Now press the
[CLR]
key to
remove the unwanted t
,
then press the
[ENTER]
key to enter the corrected line into the computer.
Type in: run
[ENTER]
. ..and you will see that the computer has accepted the instruction, and has
printed
abc
An introduction to
AMSTRAD BASIC keywords
In Chapter 8 you will find an illustrated description of all the
BASIC keywords found in the AMSTRAD BASIC. We will
introduce some of the more commonly used BASIC keywords in
this section.
CLS
Type in: cls (clear screen). You can use either upper case (capital) or lower case (small) letters. Then
press
[ENTER].
You will notice that the screen clears and the word Ready with the cursor
?
will
appear at the top left of the screen.
PRINT
This is used whenever you want characters, words or figures in a program to be printed on the
screen. Type in the following instruction line:
print "hello"
[ENTER]
On the screen you will see:
hello
The quotation marks “”
are used to tell the computer what should be printed. Hello appeared on the
screen as soon as the
[ENTER]
key was pressed. Type in
Cls [ENTER]
to clear the screen.
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...