# Documents Read in this order. To pick the work up, start with the newest handoff. | Document | What it holds | | --- | --- | | [start-here.md](start-here.md) | The SG-1000, Mark III/SMS1/SMS2 and Game Gear as a board author needs them: clocks, memory maps, mappers, I/O ports, BIOS, interrupts, the VDP programming model and modes, the SN76489 | | [timing.md](timing.md) | Frame and line layout, V/H counter values, when interrupts and flags fire within a line (FluBBa's hardware measurements), and the sub-instruction timing requirement on z80-python | | [undocumented-behavior.md](undocumented-behavior.md) | VDP and PSG revision differences, the Mega Drive in Mode 4, the SC-3000 and SF-7000, the FM unit, CPU differences between consoles, mapper details, known-wrong sources, open items | | [validation.md](validation.md) | Every oracle found, ranked by tier (hardware-captured, hardware-corrected, specification, emulator-derived), with pins and licences; the certification record; the compatibility sweep and the triage of every difference | | [mame-oracle.md](mame-oracle.md) | The verified MAME 0.285 trace and I/O-log recipe, its measured output, and twelve traps | | [handoff-brief.md](handoff-brief.md) | The original brief, written before the board existed (2026-09-18): requirements, nine milestones with acceptance tests, constraints. Kept as the record of what was asked; all nine milestones are done | | [handoff-2026-11-12.md](handoff-2026-11-12.md) | Where the work stands: what is built, how each part was checked, what is open and why, the tools and their traps | ## Findings made while gathering (2026-09-18) These came out of checking the sources against each other and against MAME, not out of any single document: 1. **The wiki's "Sega VDP white noise" bit pattern is the 15-bit $0003 sequence**, not the 16-bit $0009 one the same page describes (period 57,337 cannot fit in its 32,767 samples). Neither download is a raw recording. See undocumented-behavior.md, open item 6. 2. **The undocumented flags after `SCF`/`CCF` differ between the Z80s in Sega consoles** (at least four patterns, some unstable), per ZEXALL-SMS v0.20's hardware pre-test. From v0.20 its CRCs ignore them. 3. **The Game Gear's Z80 behaves as CMOS** (`OUT (C),0` → $FF); z80-python 0.4.0 models NMOS only, and its main branch has since gained the option. 4. **The SG-1000 has 1 KB of RAM**, not the 8 KB of SMS Power's 1999 draft. 5. **Sega's SG-1000 M2 Check Program is a self-checking factory diagnostic** that runs on MAME (via the software list, not `-cart`), and it is in the local romset. 6. **MAME's export `sms` BIOS will not boot a cartridge without the "TMR SEGA" header**, so Sega's Color & Switch Test needs `smsj`. 7. **MAME I/O watchpoints on the SMS drivers only fire reliably while an instruction trace runs**; a `logerror` action stops logging past 14 values; the SG-1000's CPU tag is `:z80`, the SMS's `:maincpu`.