Zilog Z80 CPU emulator
ZX Spectrum uses Z80 CPU. Follow Z80 test suites in Software and examples to run CPU tests on the ZX Spectrum 48K.
Clock and bus timing
The bundled Spectrum configuration sets frequency_khz to 3500 (3.5 MHz). At each frame boundary the ULA requests an interrupt through the Spectrum bus, which holds /INT low for 32 T-states.
The bus adds delays for memory contention and I/O contention. It uses the full 16-bit I/O address to route accesses to Spectrum devices.