You are continuing a licence clean-up in Aubrey's Game Boy emulator family (all repos public on GitHub under alewman). Work in /data/emu/gameboy-rust (Rust board, main), which is a line-by-line transcription of /data/emu/gameboy-python (the Python reference board) at tag gameboy-rust-pin-1 (efdde44). ## Why A 2026-11-12 audit found two pieces of gameboy-python that came from Gambatte's GPL-2 source. Both were replaced in gameboy-python (see its docs/validation.md "Copyleft clean-up (2026-11-12)" and the commit that adds it). gameboy-rust still carries the old versions: 1. `src/board.rs` (the CGB OAM-DMA conflict rules: `DmaKind`, the `0xFCFF/0x0300/0xF000` table near line 221, the read/write rules near line 1097 citing `memptrs.cpp` / `nontrivial_read`). 2. `src/bin/gameboy-suite.rs` (the Gambatte digit glyphs and the `lut` RGB555 colour formula near line 176, both from Gambatte's `testrunner.cpp`; the `testrunner.cpp` comment at line 23). 3. `src/ppu.rs:110`: a comment citing Gambatte's `StartWindowDraw` (reworded in Python). ## Rule: do not open Gambatte's source Do not read anything under `gameboy-python/reference/src/gambatte-core/libgambatte/` or `test/testrunner.cpp`. The Gambatte *test ROMs and their hardware verdicts* (file names, `.asm` test programs under `test/hwtests/`, expected PNGs) are fine to use: they are the judge. SameBoy (Expat/MIT) is fine to read and cite. Also respect the family rule on authors who object to AI use: never use furrtek's work (DMG-CPU-Inside, SiliconRE, his HDL). ## Task 1. **Port the Python replacements, transcribing the new Python code only:** - `board.rs`: transcribe gameboy-python's new `_cgb_bus`, `_cgb_dma_conflict`, `_dma_wram_index`, `_cgb_dma_read`, `_cgb_dma_write` and the `_dma_source` comment (read the current `src/gameboy_python/board.py`). Delete `DmaKind` and the table if nothing else needs them. Keep the comments' citations (SameBoy functions, the oamdma test names). - `gameboy-suite.rs`: read the glyphs and colours from gameboy-python's `tests/gambatte_glyphs.txt` and `tests/gambatte_cgb_colours.txt` (learned by `scripts/gambatte_learn.py`). Either read them at run time from the reference checkout (`GAMEBOY_REFERENCE_ROOT`) or commit copies with a header naming their source; an RGB555 word not in the table matches no colour (do not mask an unknown into white). Drop the `testrunner.cpp` comment wording the same way the Python script did. - `ppu.rs`: reword the window-undo comment as the Python one now reads. 2. **Gate:** the new reference pin is gameboy-python tag `gameboy-rust-pin-2` = 47a97e6 (already pushed; it holds the clean-up). Repoint gameboy-rust's reference checkout (`external/gameboy-python`, see docs/status.md) to pin-2, rebuild the reference cache if the gate uses one, and run: - `python3 scripts/lockstep.py` on `cases.tsv`, `cases-rung3.tsv`, `cases-rung5.tsv`, `cases-rung6.tsv`, `cases-rung7.tsv --extra=--audio` and `--save-at-half` (all must be identical; record counts); - `gameboy-suite gambatte --skip-boot` and `--cgb --machine cgb-c` (note: pin-2 also brings the `cgb-c` machine row and the CGB line-153 change from pin-1..pin-2; transcribe everything that changed between the two pins, `git diff gameboy-rust-pin-1 gameboy-rust-pin-2 -- src`), and check they reproduce gameboy-python's pass lists exactly (DMG 1,695, CGB-04c on cgb-c 2,892); - Mealybug DMG 24/24, CGB-D 20/21, the new CPU CGB C pictures 24/27; - `scripts/seeded_faults.py` still catches what it caught (17 of 18 or better). 3. **Audit sweep:** `git grep -n -iE "gambatte.*\.(cpp|h)|memptrs|testrunner|nontrivial|libgambatte|giibii|mooneye-gb|furrtek|DMG-CPU-Inside"` in gameboy-rust, sm83-rust and gb-apu-rust; anything left that came from GPL source or furrtek's work gets the same treatment, or is reported if unclear. 4. **Docs:** update README/docs/status.md numbers and the reference pin; add a short "Copyleft clean-up" note to docs/status.md pointing at gameboy-python's entry. 5. Commit locally with messages ending in `Co-Authored-By: `; push gameboy-rust main when the gate is identical (the repo is public; pushing is approved for this family); check CI is green. House rules: never use `rm -rf`, `sed -i` or `ln -sfn` one-liners; edit with the editor tool. Use `PYPY_GC_NURSERY=1M` and `nice` for parallel PyPy runs (the machine is shared and loaded). Report: commits, every gate count, anything you could not make identical, and anything else you found that came from GPL or from furrtek.