Skip to content

Single Step

Instruction-based tests from the Single Step Tests project, v1.0-beta.1.

Details

The suite contains tests for every instruction, documented and undocumented. Each test contains 1000 steps that test the instruction with various inputs. As well as the registers, flags and interrupt properties memory, I/O and cycles can all be tested. The opcode has been included in the name for the test.

Notes

  • The tests do not move onto the next opcode after a HALT, so PC will differ if your emulator does this.
  • A few tests, namely ED B2 (CPIR), ED B3 (OTIR), ED B9 (CPDR), ED BA (INDR) and ED BB (OTDR), disagree with the Fuse test suite for some flags and WZ.

Original Tests

The original tests can be found at github.com/SingleStepTests/z80. Licensed under MIT licence. Copyright © 2024 SingleStepTests.