EasyManuals Logo
Home>Sinclair>Desktop>ZX Spectrum

Sinclair ZX Spectrum User Manual

Sinclair ZX Spectrum
82 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 #31 background imageLoading...
Page #31 background image
Chapter 4
29
using basic colours, it selects between the ink bytes (when D is 0) and the paper bytes
(when D is 1). In half cell mode using extra colours, it selects between the ink bytes for
the right half of each cell (when D is 0) and the ink bytes for the left half of each cell
(when D is 1). In single byte colour mode, D is always 0.
Single line mode using double byte colour produces a composite screen consisting of
two areas of different line resolutions 128 single pixel height lines followed by 32
double pixel height lines. Both areas support the same colour palette, as specified by
the basic / extra colours bit of the display mode register.
The size of the attributes file is dictated only by the line height and single / double
byte colour bits of the display mode register. The memory usage for each attribute
mode is shown in the following table.
Line mode
Single byte colour
Double byte colour
Row
$5800-$5AFF
[$0300]
$5800-$5AFF
$5C00-$5EFF
[$0600]
Quad
$6000-$65FF
[$0600]
$6000-$65FF
$6800-$6DFF
[$0C00]
Dual
$6000-$6BFF
[$0C00]
$6000-$6BFF
$7000-$7BFF
[$1800]
Single
$6000-$77FF
[$1800]
$5800-$7FFF
[$2800]
Summary of attribute mode memory usage
In double byte colour mode, the attributes file consists of two distinct areas. The first
generally holds the ink bytes for each cell and the second holds the paper bytes for
each cell (the exception to this is half cell mode with extra colours and using double
byte colour, and the format it uses is described later in this chapter). This partitioning
comes about because of the addressing schemes used, but has the advantage that it
becomes easy to find the corresponding paper byte for an ink byte, and vice versa. It
also makes it easy for a program to operate only on the ink or paper bytes instead of
having to manipulate both, and this could be exploited to achieve improved
performance.
As previously stated, single line mode using double byte colour produces a display
that consists of two different line heights. The attributes file spans locations $5800 to
$7FFF, of which the single line data occupies $6000 to $7FFF and the dual line data
occupies $5800 to $5FFF. Both areas are divided in two, with the first half defining the
ink colours and the second half defining the paper colours.
The total number of bytes used by each attribute mode is shown by the number in
square brackets, and excludes any unused region in between the two attribute areas.
This region, if it exists, is available for use by a program.

Table of Contents

Other manuals for Sinclair ZX Spectrum

Questions and Answers:

Question and Answer IconNeed help?

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

Sinclair ZX Spectrum Specifications

General IconGeneral
BrandSinclair
ModelZX Spectrum
CategoryDesktop
LanguageEnglish

Related product manuals