Home /Modules/cpu/SPECIFICATION.md

SPECIFICATION.md

lib/cpu/z80/SPECIFICATION.md · 65 line(s) · markdown

Z80 Specification

Programmer-visible state

RegisterWidthPurpose
AF16accumulator/status pair
BC16general register pair
DE16general register pair
HL16general register pair
IX16index register
IY16index register
SP16stack pointer
PC16program counter
I8interrupt-vector register
R8refresh register
AF', BC', DE', HL'16 eachalternate register set

Instruction model

The Z80 extends the 8080-family programming model with indexed addressing, alternate registers, block operations, bit manipulation, and a richer interrupt system.

SLeeLa models instruction execution as a sequence of machine cycles rather than treating the CPU as a single atomic instruction executor.

Address/data model

Clock and timing

A basic operation takes multiple T cycles. Zilog documents memory/I/O operations as M cycles composed of T cycles; the first M cycle is normally instruction fetch. WAIT can insert additional wait states. See the Zilog Z80 CPU User Manual.

SLeeLa records clock period, M-cycle number, T-cycle number, operation, address, data, read/write, wait state, and interrupt state.

Cache

No conventional L1/L2/L3 CPU cache is modeled for the original Z80.

DMA

The Z80 CPU itself does not contain the separate Z80 DMA peripheral. Zilog documents the Z80 DMA as a separate device with programmable control/status registers and bus-control behavior.

SLeeLa models DMA at the system/peripheral level: SLDMAController -> SLBusArbiter -> SLIOBus.

Interrupts

The Z80 supports maskable and non-maskable interrupt behavior, with interrupt modes that determine vector handling. SLeeLa records request, recognition, acknowledge, vector handling, and entry timing.

MMU/TLB

The original Z80 has no MMU or TLB. Memory mapping beyond its native address space belongs to external hardware or a derivative.

Evidence discipline

Documented, derived, estimated, and unspecified remain separate states. The profile does not infer undocumented transistor-level implementation from behavior alone.

Sources