# The Intel 8080A reference core, built 2026-09-18 from a handoff brief that # told it to take z80-python's shape. It pins nothing: there is no dependency # edge, only design edges, because what it inherited is a way of working. name = "i8080-python" kind = "core" role = "reference" language = "python" repo = "alewman/i8080-python" local = "../i8080-python" visibility = "public" # private until 2026-10-04 branch = "main" # No release yet; the version is 0.2.0.dev0. [[evidence]] what = "8080EXM's 25 CRCs captured on 13 real 8080A chips (hardware-captured, the judge); 8080PRE, TST8080, CPUTEST and superzazu/8080's state totals (specification-derived and emulator-derived detectors); MAME 0.285 invaders lockstep, 230,313 instructions (emulator-derived detector)" where = "docs/validation.md" # Design edges. Everything here was taken from z80-python 0.4.0, which is what # this core was read against. Two of those shapes began in m6800-python and # reached z80-python first (the callable bus, and the debugger's access # tracking and watchpoints); those edges are recorded on z80-python. [[copied]] from = "z80-python" path = "src/i8080_python/cpu.py" from_path = "src/z80_python/cpu.py" how = "design" # Chip differences, not candidates to flow back: read_port/write_port take the # 8-bit port number rather than a 16-bit address, and the halt idle (7) and # RESET (3) state counts are documented modeling choices. [[copied]] from = "z80-python" path = "src/i8080_python/state.py" from_path = "src/z80_python/state.py" how = "design" # Chip difference: f validates the 8080's three fixed bits (S Z 0 AC 0 P 1 CY), # so no CPUState can hold a flag byte the chip cannot produce. The Z80's F has # no fixed bits, so there is nothing to carry back. [[copied]] from = "z80-python" path = "src/i8080_python/disasm.py" from_path = "src/z80_python/disasm.py" how = "design" # Chip difference: Intel syntax (MVI A,2AH), and a '*' prefix marking the # twelve undocumented bytes. [[copied]] from = "z80-python" path = "src/i8080_python/debug.py" from_path = "src/z80_python/debug.py" how = "adapted" # Chip differences: counts states rather than T-states (StopReason.STATE_LIMIT), # and has four boundary kinds, the 8080 having no NMI. [[copied]] from = "z80-python" path = "src/i8080_python/console.py" from_path = "src/z80_python/console.py" how = "adapted" # Chip differences: 8080 registers, PSW and the pairs in `set`; one interrupt # input, so `int BYTE` takes the byte a device puts on the bus, and no `nmi`. [[copied]] from = "z80-python" path = "src/i8080_python/__main__.py" from_path = "src/z80_python/__main__.py" how = "adapted" [[copied]] from = "z80-python" path = "src/i8080_python/trace.py" from_path = "src/z80_python/trace.py" how = "adapted" diverged = "trace_steps takes a `between` hook, so a host's traps (the CP/M BDOS) run between records and produce none; z80-python's ZEX runner traps the same way and could trace through it" [[copied]] from = "z80-python" path = "docs/trace-schema.md" from_path = "docs/trace-schema.md" how = "adapted" # Chip difference: the record's count is `states`. Each core names it in its own # chip's word (z80 `t_states`, m6800 `cycles`), so a cross-core reader must know # which; that is a documented family convention, not drift. [[copied]] from = "z80-python" path = "docs/debug-session.md" from_path = "docs/debug-session.md" how = "adapted" [[copied]] from = "z80-python" path = "tests/test_readability.py" from_path = "tests/test_readability.py" how = "adapted" # Chip difference: Intel's 78 mnemonics, owned by the five groups of Intel's # instruction-set chapter, and no index-prefix exception to the ownership rule. # z80-python has since added enforced per-handler rule citations (730cd4b), # which this core has not adopted. [[copied]] from = "z80-python" path = "validation/cpm.py" from_path = "validation/zex.py" how = "adapted" diverged = "checks each CRC the exerciser prints against the hardware table instead of trusting its own PASS!, and converts state totals into the reference emulator's trap accounting so published figures compare exactly; both ideas apply to z80-python's ZEXALL runner" # Outside references, read from the files that pin them. [[reference]] url = "https://github.com/superzazu/8080" declared_in = "scripts/fetch_exercisers.py" pattern = '(?m)^GITHUB_REVISION = "([0-9a-f]{40})"' [[reference]] url = "https://github.com/mamedev/mame" declared_in = "docs/validation.md" pattern = 'mamedev/mame/tree/(mame0\d+)'