# Provenance Audited 2026-11-13 (provenance audit, wave 1) against the family's licence rules (emulator-lineage `docs/charter.md`, "Licences and provenance"). Method: every comment and docstring, `docs/claims.md`, `docs/validation.md`, `scripts/fetch_references.py`, the git history (3 commits), the licence headers of the git-ignored `reference/` files, and megadrive-python's pin list for the other SVP emulators. `provenance_check.py` (pcengine-python) was run against `reference/` (MAME's BSD-3-Clause files and notaz's document), which this repository says openly it was written from: python3 -I pcengine-python/scripts/provenance_check.py --repo ssp1601-python \ --repo ssp1601-rust --reference ssp1601-python/reference It found only the disassembler's mnemonic lists (`disasm.py` against `ssp1601d.cpp`, prose). No GPL or non-free source (Genesis Plus GX `ssp16.c`, jgenesis `ssp1601.rs`, BlastEm `svp.cpu`, Picodrive) was opened for this audit. ## Where the core came from The repository says it plainly (`docs/claims.md`): the core is **a transcription of MAME 0.285's `src/devices/cpu/ssp1601/ssp1601.cpp`**, over the opcode map in notaz's `svpdoc.txt`. MAME's files carry `license:BSD-3-Clause`, copyright holders Pierpaolo Prazzoli and Grazvydas Ignotas, and the file's own header says "Copyright 2008, Grazvydas Ignotas" (notaz, who also wrote Picodrive's SVP code; as the author he could license this core BSD-3 in MAME, and nothing in the file says it came from anyone else's code). BSD-3-Clause is permissive: the transcription is allowed, with the copyright notice, the conditions and the disclaimer kept. ## The code | Piece | Source | Licence | Verdict | | --- | --- | --- | --- | | `cpu.py`: registers, pointer modifiers and RPL, ALU and flags, `mld`/`mpya`/`mpys`, conditions, control flow, cycle counts, what is unhandled | MAME 0.285 `ssp1601.cpp`, transcribed (quoted MAME comments: "VR depends on it", "loop repeat mode ... is ignored") | BSD-3-Clause | **cite**: the BSD-3 notice is now kept at the top of `cpu.py` (added 2026-11-13) | | `disasm.py`: register names, `CONDITIONS`, `ACCUMULATOR_OPS`, mnemonic forms | MAME `ssp1601d.cpp` (provenance_check prose hits on the condition and `mod` lists), notation per `svpdoc.txt` | BSD-3-Clause | **cite**: a pointer to the notice added at the top of `disasm.py` (2026-11-13) | | Opcode map and instruction notation | notaz, `svpdoc.txt` (reverse engineering of Virtua Racing; credits Tasco Deluxe) | no licence; "If you use this, please credit me ... Tasco Deluxe should also be credited" | **cite**: facts, used with credit. README credits notaz; `docs/claims.md` names Tasco Deluxe. Add Tasco Deluxe to the README too | | Pins, clock, RAM sizes, stack depth | Samsung SSP1601 data sheet (1996), fetched to `reference/`, not committed | data sheet (facts) | clean | | `tests/test_cpu.py` | own tests of the behaviour above | own | clean | | `scripts/fetch_references.py` | own; fetches, commits nothing third-party | own | clean | ## The other SVP emulators `docs/claims.md` ("Where the emulators differ", the RPL-on-write note) and `docs/validation.md` describe **jgenesis**'s `ssp1601.rs` (GPL-3.0) in detail and rank MAME against Genesis Plus GX's `ssp16.c` (non-commercial licence) and BlastEm's `svp.cpu` (GPL-3.0), all pinned in megadrive-python's `reference/src`. So those sources were opened during the Phase 0 that wrote this core (2026-10-30). The code follows MAME on every point where the documents say jgenesis differs (ST stores all 16 bits; RPL is not applied to writes), so nothing in the code points to those sources. The statements about them are facts about other emulators, not code; they should say how they were learned ("read in jgenesis's source during Phase 0, 2026-10-30"). **Verdict: cite** (record the reading); no rewrite. ## History Three commits; nothing removed. The `reference/` directory (MAME source, notaz's document, the data sheet) is git-ignored and was never committed. ## Owed - SPDX headers (family-wide pass). The modules hold MIT code beside BSD-3-Clause-derived code; whether the header reads `MIT AND BSD-3-Clause` or MIT with the BSD notice beside it is a policy choice for Aubrey (the notice itself is in place either way). - BSD-3 clause 2: a binary or wheel distribution must reproduce the notice in its documentation; a `NOTICE` file or a README "Credits and notices" section would do it. - README credits: add Tasco Deluxe beside notaz (his document asks for both). - The memory controller in megadrive-python (`svp.py`, transcribed from MAME's `bus/megadrive/svp.cpp`) is outside this repository and was not audited here. ## Re-audit of 2026-11-25 (the pass families.md names as owed) **Method.** The audit above, repeated on `main` at 4a94f8c by the method of emulator-lineage `docs/provenance-audit-2026-11.md`: every outside source the code and docs cite or fetch, checked against emulator-lineage `docs/sources.md`; the history (4 commits, one branch, no remote); the LICENSE file, SPDX headers and notices. No GPL or non-commercial source was opened; of `reference/` only the `license:` and `copyright-holders:` lines of MAME's four files were read. Judged from this repository's own code, docs and history. **Sources against sources.md.** | Source | Use here | sources.md | Verdict | | --- | --- | --- | --- | | MAME 0.285 `cpu/ssp1601/ssp1601.cpp`, `.h` | `cpu.py`, transcribed | the MAME row says check each file: both read `license:BSD-3-Clause` (re-read 2026-11-25); no row for them | **cite**: notice at the top of `cpu.py`; SPDX line now `MIT AND BSD-3-Clause` with the source named on the second line (decision 11); NOTICE.md (new); row added to sources.md | | MAME 0.285 `cpu/ssp1601/ssp1601d.cpp`, `.h` | `disasm.py`'s mnemonic tables | `license:BSD-3-Clause` (re-read 2026-11-25) | **cite**: as above, the notice pointed to from `disasm.py` and kept in NOTICE.md | | notaz's `svpdoc.txt` (and Tasco Deluxe's research) | the opcode map and notation | facts only, credit notaz and Tasco Deluxe (row present) | **cite**: both now credited in the README and NOTICE.md (owed by the audit above, done) | | Samsung SSP1601 data sheet (1996, via notaz.gp2x.de) | pins, clock, RAM sizes, stack depth | not listed | **clean**; row added (manufacturer document, facts only) | | Genesis Plus GX `ssp16.c`, Picodrive | named in claims.md and validation.md | non-commercial, closed box only (row present) | **cite (fixed 2026-11-25)**: named only as closed-box emulators now | | jgenesis `ssp1601.rs`, BlastEm `svp.cpu` | claims.md described two of jgenesis's internals (RPL applied to writes; which ST bits it keeps), read in its source during Phase 0 (2026-10-30) | GPL-3.0, closed box only (rows present) | **cite (fixed 2026-11-25)**: both sentences taken out; the account stays here | | MAME 0.285 as a whole program | rung 1's judge (*Virtua Racing* frames through megadrive-python) | a closed-box run of a program | **clean** | **Code verdicts now:** cite 3 (`cpu.py`, `disasm.py`, the opcode map; notices and credits in place), clean 3 (the data sheet facts, the tests, the fetch script), rewrite 0, unclear 0. **History.** Four commits (27b1343 .. 4a94f8c, 2026-10-30 to 2026-11-13); no third-party file or licence text ever committed (`reference/` is git-ignored); nothing deleted. The history keeps the two claims.md sentences about jgenesis's internals (from 27b1343) and the list of other emulators' file names: prose about another emulator, no code. The repository has no remote yet, so this is the cheapest moment to decide whether such prose matters (findings). **Licence files and headers.** LICENSE (MIT) present. SPDX headers added 2026-11-25 to all six code, test, script and CI files (0 missing): `MIT` on four, `MIT AND BSD-3-Clause` on `cpu.py` and `disasm.py`. NOTICE.md added: BSD-3 clause 2 (the notice in the documentation of a binary or wheel) is met by shipping it. **Findings for Aubrey (no code changed):** 1. Phase 0 (2026-10-30) wrote this core in a session that had jgenesis's (GPL-3.0) and BlastEm's (GPL-3.0) SSP1601 sources open as well as MAME's (BSD-3-Clause). The code is a declared transcription of MAME's and follows it where the documents said jgenesis differs, so the verdict stays **cite**, as on 2026-11-13; under the charter's stricter rule it is the same pattern the audit calls "behaviour learned by reading GPL code", with no sign that any of it came from the GPL side. Recorded; no rewrite proposed. 2. No remote: megadrive-python's `svp` extra pins this repository at `c863a2c` on GitHub, and megadrive-rust and megadrive-rust-fast take ssp1601-rust by a sibling path, so their GitHub copies cannot build the SVP until these two repositories have remotes. Before the first push: whether to keep the history (above) as it is. Its surname check is clean (0 hits).