EasyManua.ls Logo

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 #34 background imageLoading...
Page #34 background image
Chapter 4
32
Full cell
In basic colours mode using single byte colour, each attribute cell is formatted in the
standard Spectrum manner as follows:
7
6
5
4
3
2
1
0
Ink, ordered as GRB
Paper, ordered as GRB
1=Bright
1=Flash
The ink bits define the colour used for those pixels that are set in the display file, and
the paper bits define the colour used for those pixels that are reset. Both values are
composed of 3 bits, yielding a range of 8 colours for each. When coupled with the
bright bit a total of 16 different colour values are produced, although only 15 of these
are unique since black and bright black display the same. When the flash bit is set, the
paper and ink colours swap over at a fixed frequency of 1.565 Hz.
In basic colours mode using double byte colour, the first attribute byte defines the ink
colour and the second attribute byte defines the paper colour. Both bytes are
formatted as follows:
7
6
5
4
3
2
1
0
Colour, ordered as GRB
Unused (available for program use)
1=Bright
1=Flash
The format encodes the ink and paper using 3 bits each, yielding both a range of 8
colours. The bright bit in each byte extends these totals to 16 different colour values,
although only 15 of these are unique since black and bright black display the same.
With the flash bit in both attribute bytes set, the ink and paper colours swap over at a
fixed frequency of 1.565 Hz and replicate the flash mode of the standard Spectrum
display. However, if only the ink attribute byte’s flash bit is set then just the ink coloured
pixels swap between the ink colour and the paper colour, and if only the paper
attribute byte’s flash bit is set then just the paper colour pixels swap between the
paper colour and the ink colour.
Note that the unused bits of each colour byte are available for use as storage by a
program. They could, for example, be used in a maze game to hold flags that indicate

Table of Contents

Other manuals for Sinclair ZX Spectrum

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
ProcessorZilog Z80A
Clock Speed3.5 MHz
RAM16KB or 48KB
ROM16KB
Graphics256 x 192 resolution
Sound1-channel beeper
StorageCassette tape
InputKeyboard
Power9V DC
Release Year1982
DisplayTV via RF modulator
PortsExpansion, RF
Colors15 (8 colours with two levels of brightness each, plus black)

Summary

Introduction to the SPECTRA Interface

SPECTRA Interface Features Overview

Details the core features including SCART, sound, display modes, joystick, RS232, ROM, reset, and expansion bus.

Setting Up the SPECTRA Interface

Connection Procedure

Step-by-step guide to connect the interface to the Spectrum and TV for initial use.

Connection Order

Explains how to connect multiple peripherals to avoid ROM conflicts and ensure proper operation.

SCART Connection Guide

Advanced Display Modes

Attribute Mode Overview

Introduces display formats, colour resolutions, and attribute modes for enhanced graphics.

Display Mode Register Control

Explains the 8-bit register used to select and control new display modes.

Joystick Socket Functionality

Kempston Joystick Compatibility

Explains the Kempston socket, its input port, and how to read joystick input.

RS232 Serial Port

RS232 Socket and Cable Wiring

Details the RS232 port, pinout, and custom cable requirements for serial communication.

ROM Support and Extensions

Reset Button and Expansion Bus

Appendix C: Troubleshooting Guide

Common Display and Connectivity Issues

Lists problems like no picture, signal indicator issues, and SCART connection problems.

Peripheral and Mode Conflicts

Addresses issues with display modes, other peripherals, and RS232/joystick conflicts.

Related product manuals