AMSTRAD cpc 6128 User Instruction page 69

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

Advertisement

Just to prove that this is on the top line, type in:
border 0
The B 0 R D E R will now be black and you will see the man at the middle of the top line
of the screen.
In mode 0, there are only 20 columns, but the same 25 lines. If you now type in:
mode 0
run
.... you will see that the man now appears at the top right corner of the screen. This
happens because the x co-ordinate 20, is the last column in mode O.
In mode 2, there are 80 columns and 25 lines. Using the same program, you will
probably be able to guess where the man will appear. Type in:
mode 2
run
Return to mode 1 by typing in:
mode 1
Now experiment for yourself, modifying the L
0
cat
e and
ch
r $ ( ) numbers to
position various characters anywhere on the screen. Just for example, type in:
Locate 20,12:print chr$(240)
You will see an arrow in the centre of the screen. Note that in this instruction:
20
was the horizontal (x) co-ordinate (in the range 1 to 40)
1
2 was the vertical (y) co-ordinate (in the range 1 to 25)
240
was the character symbol number (in the range 32 to 255)
To get the character symbol 250 to be repeated across the screen, type in the following
program:
10
CLS
20 FOR x=1 TO
39
30 LOCATE
x,20
50 PRINT CHR$(250)
60 NEXT x
70 GOTO 10
run
Press [ESe] key twice to break.
Chapter 1 Page 56
Foundation
Course

Advertisement

Table of Contents
loading

Table of Contents