# The Motorola 6800-family reference core: MC6800/6802/6808 and the MC6801/6803 # superset, one core with a part switch. Public since 2026-10-04. # # It is the origin of two things the rest of the family now has, so those edges # are recorded on the projects that took them, not here: the bus as four # callables (this core, 2026-09-18 14:34; z80-python adopted it at 21:10, # 764ddd8) and DebugSession's access tracking with watchpoints (18:11; # z80-python at 22:19, 1344ecc). i8080-python has both by way of z80-python. name = "m6800-python" kind = "core" role = "reference" language = "python" repo = "alewman/m6800-python" local = "../m6800-python" visibility = "public" # private until 2026-10-04 branch = "main" released = "v0.1.0" # tagged 2026-10-05; not published to PyPI [[evidence]] what = "the Motorola manuals as the judge (datasheet tier: all 197 MC6800 and 220 MC6803 opcodes against a generated table, the printed Boolean flag formulae, all 1,024 DAA inputs); a generated MAME 0.285 corpus, 256,000 cases per part, 254,507 and 254,467 exact with the rest one explained TAP/RTI difference (emulator-derived detector); 17.6 M instructions of arcade and pinball code replayed against MAME traces; a Williams sound board reproducing MAME's DAC output byte for byte; n6800 (RTL) and sim68xx/EXORsim as independent emulators; and the only two published hardware measurements, Wheeler 1977 and Doc TB 2019, which cover HCF and a handful of opcodes. Nothing beyond HCF is hardware-captured, and the undocumented corners are carried as [unverified]" where = "docs/validation.md" # Design edges: what this core took from z80-python, which it names in the files # themselves. [[copied]] from = "z80-python" path = "tests/test_readability.py" from_path = "tests/test_readability.py" how = "design" diverged = "requires each handler's docstring to cite the manual page its rule comes from, and enforces it; z80-python added the same requirement later, in 730cd4b" [[copied]] from = "z80-python" path = "docs/trace-schema.md" from_path = "docs/trace-schema.md" how = "adapted" # Chip difference: the record's count is `cycles`. Each core names it in its own # chip's word (z80 `t_states`, i8080 `states`), a family convention, not drift. [[copied]] from = "z80-python" path = "src/m6800_python/trace.py" from_path = "src/z80_python/trace.py" how = "adapted" [[copied]] from = "z80-python" path = "src/m6800_python/state.py" from_path = "src/z80_python/state.py" how = "design" # Chip difference: the state carries the 6800's lifecycle inputs (irq, nmi, # irq2, waiting, halted, irq_inhibit) and the two-opcode history the MC6800's # CLI rule needs. # Outside references, read from the files that pin them. [[reference]] url = "https://github.com/mamedev/mame" declared_in = "scripts/fetch_mame_source.py" pattern = '(?m)^TAG = "(mame0\d+)"'