Metadata-Version: 2.5 Name: sn76489-python Version: 0.1.0.dev0 Summary: The SN76489 sound generator and its Sega relatives, written from documents License-Expression: MIT License-File: LICENSE Requires-Python: >=3.11 Provides-Extra: dev Requires-Dist: pytest; extra == 'dev' Requires-Dist: ruff==0.16.8; extra == 'dev' Description-Content-Type: text/markdown # sn76489-python The SN76489 programmable sound generator and its Sega relatives, as a readable pure-Python core for the family's boards (sms-python, megadrive-python). **Status (2026-11-12): a restart, not yet a core. Phase 0 (sources and groundwork) is done; no chip model has been written.** Read [docs/restart.md](docs/restart.md) first: it says why this repository starts over and the rules it starts under. [docs/api.md](docs/api.md) is what the boards need from it. Phase 0 left these: - [docs/phase0.md](docs/phase0.md): every source found, its licence and tier, what was read and what was not, and which behaviours have no source. - [docs/spec.md](docs/spec.md): a first behaviour specification, each statement marked documented, measured or unsettled, with the contradictions and unknowns numbered and the seed compared against it. - [docs/validation.md](docs/validation.md): the proposed ladder of checks. - [docs/handoff-brief.md](docs/handoff-brief.md): for the session that builds the core, ending with the decisions that wait on the owner. - `scripts/fetch_references.py`: fetches the pinned references into the git-ignored `reference/`; `--verify` checks them without the network. What the sources support today: the manufacturers' manuals for the register protocol, tone frequencies, attenuation, noise rates and the Game Gear's stereo port; one capture of a TI chip's noise from a BBC Micro; and community research for what is particular to Sega's parts. No recording of any Sega console's PSG is in hand, and the documents say so wherever it matters. `seed/` holds the starting point: the PSG that sms-python carried before it adopted a core (sms-python `db518bd`, 2026-09-18), written from Maxim's SN76489 page on the SMS Power wiki and TI's data manual, with its tests. It is the model to grow from. It is not yet shaped as a package. MIT.