# Provenance ## Licence provenance (audit 2026-11-13) Method: the repository's comments, docs, build and deploy scripts, `Cargo.lock` licences (`cargo metadata`) and git history; the SPDX line of every MAME file the docs and code name; `provenance_check.py` (pcengine-python) against a scratch copy of the BSD-3-Clause MAME files (galaga.cpp, galaga_a.cpp, starfield_05xx.cpp, namco06/50/51/53/54.cpp, namcoio.cpp, sound/namco.cpp, the galaxian files): three weak hits, all in `docs/` (resistor values, memory-map bounds, screen parameters: facts). No GPL source was opened. **Every MAME file this board was written from is BSD-3-Clause.** Checked by SPDX line: `galaga.cpp`, `galaga.h`, `galaga_v.cpp` (at its last revision before it merged into galaga.cpp), `galaga_a.cpp`, `starfield_05xx.cpp`, `namco06.cpp`, `namco51.cpp`, `namco54.cpp`, `sound/namco.cpp/.h`, `disc_flt.hxx`, `disc_mth.hxx`, `discrete.h/.cpp`, `disc_cls.h`, `mb88xx.cpp/.h`, `emu/schedule.cpp`, `emu/screen.cpp`, `emu/disound.h`, `emu/diexec.cpp`, `emu/romload.cpp`, `emu/emumem_aspace.cpp`, `emu/drawgfx.cpp`, `emu/video/resnet.cpp`, `machine/74259.cpp`, `cpu/z80/z80.cpp/.h`, `watchdog.cpp`. Code taken from them is allowed with the BSD-3 notice kept beside it. | Code | Came from | Licence | Verdict | | --- | --- | --- | --- | | `galaga/sched.rs`, `galaga/machine.rs` | MAME's scheduler reproduced (`schedule.cpp`, `screen.cpp`, `namco06.cpp`, `galaga.cpp`, "read 2026-10-02 at 0.281"): attosecond arithmetic, quantum, `divu_64x32` cycles-in-delta; 51xx sync points measured with MAME's debugger | BSD-3-Clause; closed-box measurement | cite | | `galaga/n06xx.rs` | the NMI cadence of MAME's `namco06.cpp` | BSD-3-Clause | cite | | `galaga/n51xx.rs` | the command protocol of MAME's pre-2020 51xx model; reply pipeline and fire debounce fitted to MAME runs | BSD-3-Clause; closed-box measurement | cite | | `galaga/n54xx.rs` | measured from MAME's instruction-level 54xx (port-write traces) | closed-box measurement | clean | | `galaga/video.rs` | tilemap, sprites, PROM decode and draw order from `galaga.cpp`/`galaga_v.cpp`; resistor levels (`resnet`); 05xx starfield from `starfield_05xx.cpp` | BSD-3-Clause | cite | | `galaga/wsg.rs` | the Namco WSG as `sound/namco.cpp` models it (`MIX_RES`, the speaker route from galaga.cpp) | BSD-3-Clause | cite | | `galaga/sound.rs` | the analog network of `galaga_a.cpp` (component values); band gains fitted to MAME recordings; RBJ biquad (Audio EQ Cookbook) | BSD-3-Clause; closed box; cookbook freely usable | cite | | `galaga/bus.rs` | address decode from `galaga_map` in galaga.cpp | BSD-3-Clause | cite | | `galaga/roms.rs`, `docs/rom-manifest.md` | sizes and hashes against MAME's `ROM_LOAD` lines and `-listxml` | facts | clean | | `galaga/snapshot.rs`, `galaga/trace.rs`, `src/bin/*`, `wasm/`, `web/*` | own work; no third-party JS | MIT | clean | | `oracle/mame_dump.lua`, `oracle/make_references.sh` | own scripts that drive the MAME 0.285 binary | MIT; MAME closed box | clean | | `oracle/reference/*/trace.jsonl` | MAME runs: RAM contents and device writes (README: no ROM bytes) | facts / measurement | clean | | `oracle/reference/*/frame*.png` | MAME screenshots of the running game: Namco's graphics | Namco copyright | unclear (policy) | | Rust crates (`Cargo.lock`) | flate2, png, serde, sha1, wasm-bindgen, zlib-rs and deps | MIT / Apache-2.0 / Zlib / 0BSD / Unlicense | clean | | CPU | `z80-rust-fast` by commit | MIT | clean (audited there) | Owed for the cite items: SPDX headers on every file; in each cite file a line naming the MAME file(s), "Copyright , BSD-3-Clause", with the BSD-3 text kept in the repository (one `LICENSES/BSD-3-Clause-MAME.txt` listing the holders: Nicola Salmoria, Aaron Giles, Mike Harris, Robert Hildinger, Derrick Renaud, K.Wilkins, Couriersud, Olivier Galibert). **Unclear (policy, for Aubrey):** - `oracle/reference/*/frame*.png` (12 files) are screenshots of Namco's game. Fine as private test fixtures; they should not go into a public repository as they are. - `README.md` "A link for phones" names the archive.org item `galaga_1981` and gives a ready-made `https://emu.supertux.com/?rom=https://archive.org/download/galaga_1981/galaga.zip` link. The site serves no ROM, but this points readers at an unlicensed copy of Namco's ROMs; the charter's "a player's own copy" wording suggests removing the item name. Verdicts: clean 7, cite 7, rewrite 0, unclear 1 (plus the README link above, not code). ### Site emu.supertux.com serves `dist/` only (`scripts/build-dist.sh`: the page, `unzip.js`, the service worker, the manifest, an own SVG icon and the wasm build). No ROM, MCU program, artwork or sound sample is served; the visitor's set is verified and kept on their device. ### History 15 commits, private. No ROM or GPL material was ever committed; no removed code from elsewhere (`git log --all -p` over `src/` and `wasm/`). Commit `c877381` records the decision not to write an MB88xx core, so the 51xx/54xx MCU programs are never executed by this board. ### Sources | Source | Licence or terms | Family use | | --- | --- | --- | | MAME files listed above | BSD-3-Clause (per-file SPDX) | code OK (with notice) | | MAME 0.285 binary | GPL-2.0-or-later as a whole | closed box only | | RBJ Audio EQ Cookbook | freely published formulas | code OK | | Namco Galaga ROMs, 51xx/54xx MCU dumps | Namco copyright | never shipped; player supplies |