# Provenance (licence audit 2026-11-13) This crate is a transcription of famicom-python (tag `famicom-rust-pin-1`, `fe89099`, now gated against `c52a6d3`) and **inherits famicom-python's verdicts** (its `docs/provenance.md`): the same facts, the same citations, the same open items, carried into the Rust docstrings. Transcribing our own MIT Python into Rust is fine; whatever famicom-python must cite, re-source or rewrite, this crate must too, in the same places. **The rewording of 2026-11-14 to 2026-11-19 carried (2026-11-23).** famicom-python's provenance wave 2 (`81f8a9d`, `4320ef4`, `c23aa6c`) re-established the facts its docstrings had cited from Mesen2's source, as DOC, OBSERVED closed-box (Mesen2 2.1.1 run as an instrument by its `scripts/provenance_probes.py`), or MAME's BSD-3 drivers, and dropped the MMC3 A12 filter's furrtek-hosted schematic for the test ROMs. The Rust docstrings that carried the old wording now carry the new: `bandai.rs` (the FCG counter's test-then-decrement order), `fds.rs` (`spin_up_bytes`), `kaiser.rs` (mapper 43's file layout, now the wiki's), `mmc3.rs` (`A12_LOW_FALLS`, TEST ROM), `mmc3_clones.rs` (mapper 45's power-on, 165's latch ranges, 208's table, measured closed-box and checked against the game's own jumps by `tests/mappers_since_pin_1.rs`) and `namco.rs` (the 163's IRQ counting only while enabled). `discrete.rs` (185's power-on) and `mmc5.rs` (ExRAM writes outside rendering) never carried the old citation. No source line names Mesen2's source files now; `vrc5.rs` and the wiki-from-emulator mappers keep the reference's wording, unchanged there. The audit read this repository's code comments, docs, `Cargo.toml`/`Cargo.lock` and git history. No GPL or LGPL source was opened. ## What differs from the reference | Part | Source | Licence | Verdict | | --- | --- | --- | --- | | Crates (`Cargo.lock`): zip, crc32fast, sha1, serde, serde_json, serde-big-array, bincode, flate2 and their dependencies | crates.io | MIT, Apache-2.0, Zlib, Unlicense, 0BSD, Unicode-3.0 (each permissive; checked with `cargo metadata`) | clean | | `sixfiveohtwo` (6502-rust `71747eb`) | our core, transcribed from 6502-python | MIT | clean (audited with the cores) | | `ym2413-rust` (the VRC7's sound) | the restarted ym2413-rust, pinned by git at `94df223` | the restarted core says it is written from documents | clean (board side) | | `ay8910-rust` (the Sunsoft 5B's sound, 2026-11-23) | pinned by git at `9b670a7`, a transcription of ay8910-python `a3bb485`, whose four GPL-read behaviours were re-derived closed-box before its history reset | MIT | clean (audited with the cores) | | `video.rs` | pally's palettes read at run time from the reference's fetched images, never committed | MIT-0 | clean | | `scripts/`, `probes/`, `scripts/inputs/` | our harness, our probe source (`eval_turn_off.s`), input scripts | | clean | | `scripts/cases-5b.tsv` | rainwarrior's nes-audio-tests, run from the reference's fetched `reference/`, never committed (licence: "may be freely redistributed and modified for any purpose") | permissive | clean | | `vs.rs`, `dual.rs`, `machine.rs`'s Vs. rows, `namco.rs`'s protection chips, `video.rs`'s `RGB_DAC`, `cartridge/vs.rs` (2026-11-23) | transcribed from the reference's `vs.py`, `dual.py`, `machine.py`, `namco.py`, `video.py`, `cartridge/vs.py` at `b3dbf1b`: the NESdev wiki, and MAME's BSD-3 `vsnes.cpp` and `ppu2c0x.cpp` (the protection chips' bytes, the RC2C05-01's identifier, coin timing) | our MIT; tables and a value from BSD-3 files | **cited** (2026-11-23): MAME's BSD-3 notice with the holders' names is in `NOTICE.md`, carried from the reference's (famicom-python `c52a6d3`); `namco.rs` and `machine.rs` say `MIT AND BSD-3-Clause` with the source on their second line, as do `peripherals.rs` (`SUBOR_MATRIX`) and `waixing.rs` (the GAL table) | | `playchoice.rs`, `supervisor.rs`, `machine.rs`'s PlayChoice-10 row, `board.rs`'s `idle_cycle`, `state.rs`'s cabinet states (2026-11-23) | transcribed from the reference's `playchoice.py`, `supervisor.py`, `machine.py`, `board.py`, `state.py` at `c52a6d3`: Nintendo's PCH1-CPU schematic, the NESdev wiki, and MAME's BSD-3 `playch10.cpp` and `rp5h01.cpp` (the BIOS SHA-1s, the screen's weights, the RP5H01) | our MIT; tables from BSD-3 files | **cited**: `supervisor.rs` says `MIT AND BSD-3-Clause`, notice in `NOTICE.md` | | `z80-rust` (the PlayChoice-10's supervisor, 2026-11-23) | our core, pinned by git at `7c61e5a`, a transcription of z80-python `b59c80b`, which the reference pins | MIT | clean (audited with the cores) | | Nintendo's PlayChoice-10 BIOS | MAME's `playch10` set, read at run time from `$MAME_ROMPATH` (or `FAMICOM_PC10_BIOS`), checked by SHA-1, never committed | Nintendo's | clean (never shipped) | | `scripts/cases-pc10.tsv`, `scripts/inputs/pc10/`, `scripts/make_pc10_cases.py` | case names and input scripts; the images are assembled at run time from MAME's sets by the reference's `scripts/pc10_images.py`, outside the repository (`$PC10_IMAGES_DIR`), never committed | | clean | | `scripts/cases-vs.tsv`, `scripts/inputs/vs/`, `scripts/make_vs_cases.py` | case names and input scripts; the images are assembled at run time from MAME's ROM sets (`$MAME_ROMPATH`) by the reference's `scripts/vs_images.py`, outside the repository (`$VS_IMAGES_DIR`), never committed | | clean | Counts: clean 12, cited 2 (plus the inherited verdicts). ## The VRC7 and its history (the repository is public) - `3cf7a74` put the VRC7's sound on ym2413-rust and `2ffa4e8` pinned it by git at `bdf6365`: the old ym2413-rust, a transcription of the old ym2413-python, both withdrawn on 2026-11-12 as translations of GPL code and made private. Only the dependency line was in this tree; before that the board held `OpllPlaceholder`, a silent stand-in with no FM code. - `e73d73a` switched the sound off (the `vrc7-sound-off` branch, also on GitHub, and merged into `origin/main` at `82eb7de`). `6b8536c` switched it back on from the restarted core (local `main`, unpushed). - No commit holds Nuked-derived code. ## Headers Every code, test, script and CI file carries `SPDX-License-Identifier: MIT` (`2bc494a`; the files added since carry it too).