Software and examples

Choose a bundled assembly example to test the emulator, or boot Sinclair BASIC and load external software from tape. Prepare a ROM and the files each route needs.

ZX Spectrum software in TAP and TZX format can be found at various online archives:

Requirements

To use BASIC or programs that call ROM routines, load the 48K ROM image into memory at address 0x0000. The ROM contains the Sinclair BASIC interpreter and essential system routines (including the BEEP routine at 0x03B5 used by many programs).

See the Automation page for details on configuring the ROM image.

Bundled examples

emuStudio includes four programs in examples/zx-spectrum/. Assemble them with as-z80; they start at 0x8000. In the editor, Save & Compile source file loads the program and resets the CPU to its entry point. Open the ULA display, then click Run. Stop execution before compiling another example. Click Stop when you finish a program that keeps running.

border_stripes.asm

A visual first example: fills the bitmap with alternating vertical stripes, sets bright yellow ink on blue paper, and selects a blue border. It writes directly to display memory and does not call ROM routines.

ay_ode_to_joy.asm

Plays a three-voice arrangement of the opening of “Ode to Joy”. It requires the audio-ay3_8910-chip device and a working host audio output. Use the supplied config/ZxSpectrum48K.toml (ZX Spectrum 48K + AY). It uses ports 0xFFFD and 0xBFFD and does not call ROM routines.

twinkle_beeper.asm

A simple beeper example that plays the first phrase of “Twinkle Twinkle Little Star” (C C G G A A G). The program is assembled to start at address 0x8000 and produces tones by toggling the EAR/MIC bits on port 0xFE.

org 8000H

BEEPER_PORT equ 0FEH
BEEPER_ON   equ 10H
BEEPER_OFF  equ 08H

start:
    ld hl, melody
next_note:
    ld e, (hl)
    inc hl
    ld d, (hl)
    inc hl
    ...
    call play_note
    ...
    jr next_note
finish:
    halt

zx_audio.asm

A more complex beeper demo that plays the Imperial March and other melodies using the ROM BEEP routine at address 0x03B5. This example requires the 48K ROM to be loaded, as it calls the standard BEEP subroutine.

Loading software from tape

Many original ZX Spectrum games and programs are available as TAP or TZX files. To load them:

  1. Ensure the 48K ROM is loaded in memory
  2. Start the emulation
  3. Open the Audio Tape Player
  4. Browse to the directory containing your tape files
  5. Select and load the tape file
  6. In the ZX Spectrum display, type LOAD "" and press ENTER
  7. Click Play in the tape player
  8. Wait for the program to load (you will see the characteristic loading stripes on screen)

Czech and Slovak scene

The Czech and Slovak Spectrum scene includes text adventures, arcade and puzzle games, demos, music, utilities, and electronic magazines for the ZX Spectrum and compatible Didaktik computers. František Fuka (Fuxoft) created games such as Podraz 3 and Tetris 2; the archives also preserve releases distributed by Proxima Software and the Slovak publisher Ultrasoft.

Games to try

These downloads from the Czech and Slovak archive are ZIP archives containing both TAP and TZX files. Extract the archive, then select a .tap or .tzx file in the Audio Tape Player.

Game Author / publisher Description Download
Belegost Cybexlab Czech fantasy text adventure TAP + TZX (ZIP)
Podraz 3 Fuxoft Czech text adventure TAP + TZX (ZIP)
Tetris 2 Fuxoft / Ultrasoft Falling-block puzzle game TAP + TZX (ZIP)
Quadrax David Durčák, Marián Ferko / Ultrasoft Puzzle game with two cooperating characters TAP + TZX (ZIP)
Towdie DSA Computer Graphics / Ultrasoft Slovak arcade adventure TAP + TZX (ZIP)

More software and scene resources

Check each release’s hardware requirements: these archives also contain software for 128K machines, AY sound, and disk interfaces. For the virtual computer documented here, choose a 48K-compatible tape release and follow the loading steps above.

Online resources

ZX Spectrum software can be found at:

  • Speccy.cz — Czech and Slovak ZX Spectrum archive with games and demos
  • World of Spectrum — comprehensive archive with thousands of titles
  • Planet Emu — ZX Spectrum tape images collection
  • Z80 Stealth — Z80 development tools and resources

Z80 test suites

Use these tape images to test the Z80 and its interaction with the Spectrum bus, memory, and ULA.

Run a test

  1. Download a 48K-compatible test tape using the links below. Extract the .tap or .tzx file if the download is an archive.
  2. Provide the 48K ROM as 48.rom in the installation directory, or set imageName0 to its path in config/ZxSpectrum48K.toml. Open ZX Spectrum 48K + AY.
  3. In Emulator → Peripheral devices, select zxspectrum-ula and click Show device. Click Run to boot Sinclair BASIC.
  4. Open audiotape-player from the same menu, select the test tape, and click Load.
  5. In Sinclair BASIC, enter LOAD "" and press Enter. In the tape player, click Play.
  6. Follow the test’s on-screen prompts and compare its output with the expected results below or the linked upstream reference screens. Reset the Spectrum to BASIC before loading another test.

Reference results

The results below were measured on 2026-10-11 after the test-suite fixes. The setup used the 48K ROM, a 3.5 MHz Z80, a 69,888 T-state frame, and AY sound. The harness had no Kempston joystick.

Tests ran in a headless harness with the CPU, Spectrum bus, ULA, and AY plugins. ROM tape loading was accelerated by copying tape blocks; these results check execution after loading, not TAP/TZX playback. Explicit test results and published reference screens determine PASS / FAIL; loading a program alone is insufficient. For continuously running diagnostics, the notes identify the sampled output. SKIP means required hardware is absent.

Patrik Rak’s z80test

See the upstream test descriptions. Download the v1.2a ZIP and extract the TAP files. The NEC/ST-specific SCF/CCF cases are expected skips for the Zilog CPU model.

To build the tapes from source, install Make, Sjasm, and mktap, then run make in the upstream src directory. The Makefile lists the generated TAP files.

Test file Description PASS / FAIL Observed result
z80full.tap Registers and all flags, including undocumented flags PASS All tests passed; v1.2a also saved locally as z80full-1.2a.tap
z80flags.tap All flags; registers ignored PASS All tests passed
z80doc.tap Registers and documented flags PASS All tests passed
z80docflags.tap Documented flags; registers ignored PASS All tests passed
z80ccf.tap Flags after CCF following each tested instruction PASS All tests passed
z80ccfscr.tap Visual CCF flag pattern PASS Matches the upstream Zilog reference pattern
z80memptr.tap Flags after BIT n,(HL), probing MEMPTR behavior PASS All tests passed

CPD-Test

CPD-Test by Michael Sapach checks how instructions change the hidden MEMPTR register. Extract the TAP ZIP or TZX ZIP before loading.

Test file Description PASS / FAIL Observed result
cpd-test1250429.tap / .tzx CPD-Test v0.7b (2025-04-29) PASS Failed 00 from 97 tests; two 128K-only cases skipped; TAP payload tested

FUSE emulator tests

Test file Description / download PASS / FAIL Observed result
fusetest.tap FUSE compatibility tests (ZIP) PASS Seven checks passed; three model-specific checks skipped; contention offset 0x08

Timing and ULA tests

The 48K timing suite has a menu: leave the test number blank and press ENTER to run all. Use the Sane Loader TAP below for the tested revision. For visual tests, compare the output with the reference images in the Spectrum test catalog.

Test file Description / download PASS / FAIL Observed result
minfo.tap Machine timing information (2011) PASS Frame 69888; EI acts as a prefix; INT pulse 32 T-states
timing48k-sane.tap ZX Spectrum Timing Tests 48K v1.0, Sane Loader (2025) PASS Early timings detected; All Tests Complete 100% Pass
timing.tap Patrik Rak’s Timing Test v0.3 (ZIP) PASS Tests 0–7 match the 48K early-timing references, including I/R contention; test 8 is 128K-only
ulatest3.tap ULA Test 3 (2011) PASS Default FFFF / FFFE scan: rows 14329–14473 match the 48K reference data
ula48-simple.tap ULA 48 Simple Test (2012) PASS Captured display and border match the Zilog NMOS reference
nec48-contention.tap 48K NEC Contention Test Suite (2008) PASS All six menu tests match their published result screens
float48k.tap Float48K (2008) PASS Sampled first display-line fetch window: first driven byte at T-state 14338; alternating bitmap/attribute bytes and undriven 255
halt-contention.tap HALT Contention Test (2021) PASS 7FFE:60, 7FFF:60, 8000:61, 8001:61 match reference
ldir-lddr.tap LDIR-LDDR contention (2021) PASS Captured display and border transition match reference
otir-otdr.tap OTIR-OTDR contention (2009) PASS Captured display and border transition match reference
io-contend.tap I/O contention (2021) PASS Result screen and border match reference
ir-contention.tap I/R refresh contention (2023) PASS Captured display and border bands match the 48K reference (snow disabled)

ZXSpectrumNextTests

These block flag, CCF/SCF stability, and interrupt prefix tests come from Tests/ZX48_ZX128 and run on the 48K model. Download the TAP files in the table. To build the block flag test, run sjasmplus z80_block_flags_test.asm with sjasmplus from its source directory, then load the generated z80bltst.tap.

Test file Description PASS / FAIL Observed result
z80bltst.tap Z80BlockInstructionFlags v5.0 PASS Executed flag checks and HF-vs-B log pass; first INIR/INDR cases skip because Kempston port 0x1F is unavailable
ccffrm.tap Z80CcfScfOutcomeStability v1.1 PASS SCF and CCF runs show No error in both sampled address ranges
int_skip.tap Z80IntSkip v4.1 PASS Two ISR entries per INT; DD/FD/EI/DI inhibit interrupts; SCF+CCF allows them; IFF2 checks correct

int_skip.tap intentionally stays in its final loop with the result displayed. This is normal completion. The block flag suite’s unexpected IN 1F,FE,FF messages identify skipped Kempston-dependent cases.

Additional CPU, interrupt, and memory tests

Load the Spectrum TAP editions of ZEXALL or ZEXDOC using the steps above. Wait for the instruction groups to finish and report their results on screen. These exercisers can take a long time.

Test file Description / download PASS / FAIL Observed result
zexall.tap ZEXALL for Spectrum (2018) PASS All 67 instruction groups report OK; verified in independent groups
zexdoc.tap ZEXDOC for Spectrum (2018) PASS All 67 instruction groups report OK with documented flag masks; verified in independent groups
z80tests.tap Mark Woodmass’s Z80 Test Suite (2008) PASS All flags-menu CRCs and MEMPTR-menu checks pass
z80-xcf-flavor.tap Z80 XCF Flavor v1.5 (archive) PASS Detects Zilog SCF/CCF flavor; six patterns match that column
z80type.tap Z80 processor type detector (2024) PASS Detects Zilog Z80 / Z08400 or similar NMOS CPU
interrupt-retrigger.tap Interrupt Retriggering Test (2021) PASS Your emulator is good
ei48k.tap EI48K (2021) PASS EI at INT: 110E; EI/HALT at INT: 00; matches reference
prefixes.tap Prefixes (2022) PASS Captured display and yellow border stripe match reference
Rom_Boundary_Test.TAP ROM Boundary Test (2025, ZIP) PASS Both 3fff-4000 and ffff-0000 pass using the installed byte-memory plugin with protected ROM
ini-hc.tap INI H and C Flags Clearing Test (2024) SKIP Requires Kempston joystick; without it the program reports uncleared H/C flags

The Spectrum test catalog and Z80 test catalog contain more diagnostics and historical revisions. Choose releases marked for 48K; 128K paging and hardware-specific tests need their corresponding devices. Downloaded local filenames may be shorter than archive filenames.


This site uses Just the Docs, a documentation theme for Jekyll.