# Provenance This crate is a transcription of [arm7tdmi-python](https://github.com/alewman/arm7tdmi-python) at `f492a9a` (MIT, same author). Its core inherits the reference's verdicts (arm7tdmi-python `docs/provenance.md`: the wave-1 audit of 2026-11-13, the wave-2 rewrite of 2026-11-19 that removed and rewrote every piece first written with NanoBoyAdvance's source open, the history reset of 2026-11-22, the closed-box review of 2026-11-24). This file covers only what this repository adds. **No emulator source was opened while writing it**: the only code read was the reference's own (MIT) and this family's sibling ports (MIT, for their shape). | Part | From | Licence | Verdict | | --- | --- | --- | --- | | `src/*.rs` (the core: `access`, `modes`, `core`, `alu`, `psr`, `transfer`, `block`, `swap`, `branch`, `exception`, `cpu`, `state`, `trace`, `harness`) | arm7tdmi-python, module by module, with its comments and evidence tags | MIT (same family) | clean (inherited) | | `src/multiply.rs` `booth_multiply` and helpers | the reference's Python transcription of zaydlang's `multiplication-algorithm` (`impl.h`, `bitwise.h`, commit 29cef09), transcribed again; the zlib notice kept in the file and in `NOTICE`; SPDX `MIT AND Zlib` | Zlib | clean (cite) | | `src/tables.rs` | generated from the reference's `_tables.py` by `scripts/gen_tables.py` (rung 0 checks it) | MIT | clean | | `src/bin/arm7tdmi.rs` | the reference's `__main__.py` without the debugger | MIT | clean | | `src/bin/arm7-sst.rs` | the reference's `tests/sst_runner.py` and `scripts/sst_gate.py` transcribed, plus the lockstep mode (own) | MIT | clean | | `src/bin/arm7-multiply.rs` | the reference's `tests/multiply_judge.py` (`Judge.check`) transcribed | MIT | clean | | `tests/bus_schedule.rs` | the reference's `tests/test_bus_schedule.py` transcribed (its tables are the TRM's, converted in its docs/timing.md) | MIT | clean | | `src/bin/arm7-trace.rs`, `arm7-bench.rs`, `scripts/*`, `wasm/*` | own work; the Python scripts run the reference's own harness, bench and generators | MIT | clean | Outside data, all read in place from the reference's working checkout's git-ignored `reference/` by environment variable (`scripts/env.sh`), none committed, in the tree or in history: SingleStepTests ARM7TDMI v1 (MIT), jsmolka's gba-tests (MIT), alyosha-tas's gba-tests (MIT), and zaydlang's multiply model (Zlib) built by the reference's `scripts/build_referees.py` and called through ctypes by `scripts/multiply_cases.py` (run, not copied). The generated scenarios and the reference's cached traces live in the git-ignored `external/`. All are in emulator-lineage `docs/sources.md` (zaydlang's `multiplication-algorithm` row added 2026-11-25). Every source file carries an SPDX header (`python3 lineage.py` counts them). `provenance_check.py` was not run: there is no emulator source behind this crate to compare against, only the reference.