STEP-TEST-Z80(1) User Commands STEP-TEST-Z80(1)

step-test-Z80 - run single-step tests on the Z80 emulator

step-test-Z80 [options] JSON-file...

step-test-Z80 reads single-step test files in JSON format and runs each test on the Z80 emulator, comparing the resulting CPU state, memory, bus activity and I/O traffic against the values recorded in the file. It is the reference consumer of the test corpus produced by z80-single-step-tests(1) and by the SingleStepTests/z80 project.

Each JSON file contains an array of tests, one per instruction. A file name of - reads the tests from standard input instead.

Print version and copyright information and exit.
Print a help message and exit.
Select the CPU model to emulate. See CPU MODELS.
Additionally compare the state of the address bus, data bus and control pins recorded in the cycles field.
Use z80_run instead of z80_execute to run the emulator. This option is available only when the Z80 library has been built with the z80_execute function.
Select the test format specification. The valid values are v1 and v2 (the default).
Check that each JSON file is well-formed and follows the expected format, then exit without running the tests.
Set the verbosity level, from 0 (quiet) to 2 (most verbose; default: 2).

Zilog Z80 NMOS (the default).
Zilog Z80 CMOS.
NEC NMOS.

0 if all tests passed, 1 if any test failed or an error occurred.

Manuel Sainz de Baranda y Goñi <manuel@zxe.io>.

test-Z80(1), z80-single-step-tests(1).

Z80 0.2 2026-11-27 STEP-TEST-Z80(1)