name = "sn76489-python" kind = "core" role = "reference" language = "python" repo = "alewman/sn76489-python" local = "../sn76489-python" visibility = "public" branch = "main" # Extracted 2026-10-11 from two boards, each with its history, and folded together: # megadrive-python's src/megadrive_python/psg.py at 4871beb (the engine, Nuked-PSG's # rotation) and sms-python's src/sms_python/psg.py at 5008061 (the variant table). # The Mega Drive's copy had been adapted from the SMS's and had diverged: a chip that # moved, not a copy. Both boards delete their psg.py and depend on this core # (megadrive-python #4, sms-python #1); PSG changes go here. [[evidence]] what = "Nuked-PSG every input clock, 19 streams (6 synthetic, 13 cartridges from both boards; 633,262,572 clocks, 0 different); the wiki's noise pattern; 23 seeded faults" where = "docs/validation.md" # Outside references: the Nuked die models and their siblings, from the fetch script. [[reference]] declared_in = "scripts/fetch_references.py" pattern = '"url": "(?P[^"]+)",\s*"rev": "(?P[0-9a-f]{40})"'