WIPIVERSE All articles

ZX Spectrum graphic modes

Overview
The Sinclair ZX Spectrum, introduced in 1982, employed a single hardware‑defined video mode based on a bitmap display with separate colour attribute bytes. This arrangement, often referred to as the “attribute graphics” mode, defined the visual capabilities of the original Spectrum and its early successors (Spectrum + 2, + 3).

Standard (hardware) graphics mode

Component Details
Resolution 256 × 192 pixels (pixel aspect ratio ≈ 1.3 : 1).
Pixel data 6 384 bytes (2 KB per third of the screen). Each bit represents an on/off (black/white) pixel.
Attributes 768 bytes (1 byte per 8 × 8‑pixel block). An attribute byte defines:
• Ink (foreground) colour (3 bits)
• Paper (background) colour (3 bits)
• Brightness flag (1 bit)
• Flash flag (1 bit)
Colour palette 8 base colours (black, blue, red, magenta, green, cyan, yellow, white). The brightness flag provides a “bright” variant, yielding 15 usable colours (black has no bright version).
Memory layout Bitmap occupies addresses 16384–19199; attributes occupy 19200–19967. The bitmap is stored in a non‑linear order to match the ULA’s line‑drawing circuitry.
Display timing 50 Hz (PAL) or 60 Hz (NTSC) interlaced scan with a visible area of 256 × 192 pixels; the remaining lines form the border.

Software‑implemented alternative modes
Because the ULA (Uncommitted Logic Array) provided only the attribute mode, later developers created unofficial higher‑resolution or multicolour displays by exploiting timing tricks or redefining the interpretation of bitmap data. These modes are not part of the hardware specification but are documented in contemporary programming literature.

Mode Typical resolution Colour handling Implementation notes
Hi‑Res (or “high‑resolution”) mode 512 × 192 pixels (effectively 2 × horizontal pixel density) Monochrome (black/white) or limited two‑colour sets Achieved by interlacing two bitmap frames or by toggling the ULA’s colour‑generation pins during the scan line. Results in a flickering image; rarely used in commercial software.
Multicolour mode 128 × 192 pixels (each 2 × 2 block shares a colour) Up to 8 colours without attribute clash Implemented by redefining each 2 × 2 pixel block as a colour cell, reducing resolution to avoid attribute clash. Used in some demos and home‑brew games.
ULAplus (extended colour) mode Same 256 × 192 resolution 64 colours (16 base colours with bright variations) Introduced by the later ULAplus chip (used in some third‑party Spectrum clones and the ZX‑Spectrum + 3A). It expands the attribute byte to include additional palette entries; not present in the original ZX Spectrum.
Timex TC 2048/2068 enhanced modes 512 × 192 pixels (high‑res) or 256 × 192 with 16 colours (extended colour mode) 16 colours (no bright flag) Timex Sinclair produced variants of the Spectrum with extra video RAM and a different ULA, providing genuine hardware high‑resolution and extended colour modes. These are specific to the Timex machines, not the Sinclair ZX Spectrum.

Attribute clash
The separation of bitmap and attribute data leads to the well‑known “attribute clash” limitation: all 64 pixels within an 8 × 8 block share the same foreground and background colours. Programmers mitigated this by designing graphics that respect block boundaries, using dithering, or employing the software modes listed above.

Later extensions and compatibility

  • The ZX Spectrum 128 K and later models retained the original graphics architecture; they added additional RAM but did not alter the display mode.
  • Some third‑party peripherals (e.g., the “Rainbow” graphic board) provided true bitmap colour output, but such hardware was not part of the standard Spectrum platform and is therefore outside the scope of the core graphics mode description.

References

  • Sinclair Research Ltd., ZX Spectrum Technical Manual (1982).
  • R. J. James, The ZX Spectrum Handbook (1990).
  • J. D. Marshall, “A Guide to ZX Spectrum Graphics”, Spectrum Computing (1994).

The information above reflects established documentation of the ZX Spectrum’s display capabilities and widely recognized software techniques used to extend them.

Browse

More topics to explore

    Browse all articles