EasyManuals Logo

Sinclair QL Beginner's Guide

Sinclair QL
135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #49 background imageLoading...
Page #49 background image
are different and the LET helps to emphasise this. However if there are two or a few LET statements
doing some simple job such as setting initial values, an exception may be made.
For example:
100 LET first = 0
110 LET second = 0
120 LET third = 0
may be re-written as
100 LET first = 0 : second = 0 : third = 0
without loss of clarity or style. It is also consistent with the general concept of allowing short forms of
other constructions where they are used in simple ways.
The colon : is a valid statement terminator and may be used with other statements besides LET.
THE BASIC SCREEN
In a later chapter we will explain how other graphics facilities, such as drawing circles, can be handled
but here we outline the pixel-oriented features. There are two modes which may be activated by any
of the following:
Low resolution
MODE 256
MODE 8
8 Colour Mode
256 pixels across, 256 down
High resolution
MODE 512
MODE 4
4 Colour Mode
512 pixels across, 256 down
In both modes pixels are addressed by the range of numbers:
0 - 511 across
and 0 - 255 down
Since mode 8 has only half the number of pixels across the screen as mode 4, mode 8 pixels are
twice as wide as mode 4 pixels and so in mode 8 each pixel can be specified by two coordinates. For
example:
0 or 1 2 or 3 510 or 511
It also means that you use the same range of numbers for addressing pixels irrespective of the mode.
Always think 0-511 across and 0-255 down.
If you are using a television then not all the pixels may be visible.
The colours available are:
MODE 256
Code
MODE 512
Black
0
Black
Blue
1
Red
2
Red
Magenta
3
Green
4
Green
Cyan
5

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals