# m6800-python's crosscheck harnesses From the emulator family's m6800-python repository: `scripts/crosscheck/sim68xx_harness.c` and `scripts/crosscheck/n6800_harness.py`, parked on 2026-11-21 at m6800-python's history rewrite (wave D) as they stood at `c84ad49` (old history). **The sim68xx harness moved on 2026-11-24** to the GPL-2.0-only repository `emu-tools-gpl2`, at `$EMU_TOOLS_GPL2/tools/sim68xx/sim68xx_harness.c` (its README there: `tools/sim68xx/`). Why: by Aubrey's rule of 2026-11-24 the sim68xx files it links (copyright lines only, beside a GPL-2.0 LICENSE) are GPL-2.0-only, and GPL-2.0-only code cannot sit in this GPL-3.0-or-later repository (`../../docs/upstreams.md`). The n6800 harness stays here. ## What it measures Instruction results of two independent 6800 implementations beside m6800-python (rung 5). OBSERVED (sim68xx d49c99a; n6800 f117162). ## Who uses it m6800-python, which finds this folder through `M6800_GPL_TOOLS`. m6800-python's rung 5 drivers (`scripts/crosscheck/sim68xx.py`, `n6800.py`, `functional_test_n6800.py`, MIT, running these as separate programs); `sim68xx.py` compiles the sim68xx harness into the git-ignored `third_party/`. ## Contents - `sim68xx_harness.c`: a relative link to `../../../emu-tools-gpl2/tools/sim68xx/sim68xx_harness.c`, so that `M6800_GPL_TOOLS` naming this folder keeps finding both harnesses while `emu-tools-gpl` and `emu-tools-gpl2` are checked out side by side. Gated on 2026-11-24: `sim68xx.py` builds a byte-identical harness through the link and prints the same report as before. The harness itself is described in `emu-tools-gpl2/tools/sim68xx/README.md`. - `n6800_harness.py`: A single-step harness that imports Robert Baruch's n6800 nMigen model, subclasses its ALU and patches core internals. Upstream: n6800 (Robert Baruch), GPL-3.0-or-later (its LICENSE is the GPL-3.0 text), `f117162`. Unchanged. ## Licence and notices Our code (alewman), first published in m6800-python (`../../notices/MIT-emulator-family.txt`); GPL tools as built. Upstream code is not committed here; each tool fetches and builds its upstream at the pin from the consuming repository. This repository is GPL-3.0-or-later (`../../LICENSE`). ## Outputs Every value these tools give is a closed-box measurement: tag it OBSERVED with the upstream and its pin, and let any document or hardware measurement overrule it (`emu-tools/docs/wall.md`). Nothing here has been refactored onto the shared contract yet (`emu-tools/docs/contract.md`). One run-to-run variation was seen on 2026-11-24 with nothing changed: `n6800.py --limit 5` reported 866 and then 865 agreeing cases (one NOP case), so its report is not a byte-for-byte gate.