# Phase 0: the sources and what each can settle
Written 2026-11-12 under [restart.md](restart.md), before any code. This document
lists every source found, how it was read,
and what it can and cannot settle. The behaviour itself is in [spec.md](spec.md).
## How to read the table
**Tier**
1. Captured from hardware, or a photograph or measurement of the die.
2. The manufacturer's documents (Texas Instruments, Sega).
3. Community documents and tests whose authors checked them on real hardware.
4. Hardware-description reimplementations.
5. Emulators.
**Read**: *direct* means the file was opened and read here. *summary* means it was
read through a fetch tool that returns a summary, so nothing from it is quoted as
exact wording, and the spec marks each use.
*not read* means not opened, and says why.
Paths under `reference/` are fetched by `scripts/fetch_references.py` and pinned by
SHA-256 (and by commit where the host has commits). Paths beginning `sms-python/`
and `megadrive-python/` are files in those repositories (mostly in their own
git-ignored `reference/` directories); they are cited in place, not copied, and
`fetch_references.py --local` checks that they are still the bytes read.
## Sources read
| ID | What | Where | Licence | Tier | Read |
|----|------|-------|---------|------|------|
| S1 | TI data sheet "SN 76489 AN", 9 pages | `sms-python/reference/manuals/TI_SN76489_datasheet_console5.pdf` (text layer, poor) and `TI_SN76489AN_application_manual.pdf` (image only). **These are two scans of the same nine pages**: the second is not a separate application manual. A third copy, byte-identical to the second, is `reference/segachips/VDP/PSG/Docs/SN76489_Application_Manual.pdf` | © Texas Instruments, no licence; cited | 2 | direct, every page viewed as an image |
| S2 | TI data sheet "SN76494, SN76494A, SN76496, SN76496A Programmable Tone/Noise Generator", D2801, June 1984, revised January 1989, 8 pages | `reference/segachips/VDP/PSG/Docs/SN76494_SN76494A_SN76496_SN76496A_Application_Manual.pdf` | © 1984 Texas Instruments; cited | 2 | direct, by OCR of all pages (image-only PDF); figures not studied |
| S3 | "Sega Mk3 Hardware Reference Manual (Rev1)", PSG section (pages 34 to 36), a text transcription | `mk3man.txt` in `sms-python/reference/smspower-attach/sms-officialdocs-txt-bmp.zip` | © Sega; cited | 2 | direct |
| S4 | Sega's Game Gear manual: "PSG Manual" (8 pages) and "System control port" pages | `psg-1.png` to `psg-8.png`, `main-2.png`, `main-4.png`, `sup-1.png` in `sms-python/reference/smspower-attach/gg-officialdocs-png.zip` | © Sega. The pages are stamped "CONFIDENTIAL" and "PROPERTY OF SEGA" (decision D10 in [provenance.md](provenance.md)) | 2 | direct, PSG pages and `main-4` viewed as images; `sup-1` by OCR |
| S5 | "Sega Technical Overview 1.00" (Genesis), PSG pages 119 to 120 | `megadrive-python/reference/manuals/GenesisTechnicalOverview.pdf` | © Sega; cited | 2 | direct (text layer). The PSG text is the same as S3's |
| S6 | Maxim, "SN76489" page of the SMS Power development wiki, snapshot with history to 12 November 2005 and a later link to forum thread 17121 | `sms-python/reference/smspower-wiki/SN76489.pmwiki`, `GameGearStereo.pmwiki` | SMS Power site content, no licence in the file; cited and quoted briefly | 3 | direct, whole file |
| S7 | Maxim, "SN76489 notes", text edition of 21 April 2003 | `sms-python/reference/smspower/SN76489-20030421.txt` | as S6 | 3 | direct, registers, writes, sound generation and noise sections |
| S8 | The two noise bit patterns S6 offers for download: "SN76489 white noise.dat", "Sega VDP white noise.dat", 32,767 bits each | `sms-python/reference/smspower-attach/SN76489WhiteNoise.zip`, `SegaVDPWhiteNoise.zip` | as S6 | 1 by origin, see the finding below | direct, analysed |
| S9 | John Kortink, "SN76489 sound chip details", first published 15 March 2002, with his captured white-noise sequence | `reference/kortink/index.html`, `reference/kortink/white_noise.bin` () | "Feel free to use this information to enhance your own SN76489 emulation code, if you give me a suitable credit." | 1 | direct |
| S10 | Charles MacDonald, SC-3000H hardware notes, 29 July 2004 | `sms-python/reference/smspower/sc3000h-20040729.txt` | no licence; cited | 3 | direct, the PSG passages |
| S11 | Charles MacDonald, "Sega Master System VDP documentation", 12 November 2002 | `sms-python/reference/smspower/msvdp-20021112.txt` | no licence; cited | 3 | direct, the PSG passages |
| S12 | SMS Power forum thread 17121, "Help: Sound difference in Master System VDP revisions?", June 2018 (TomyS, Maxim, ValleyBell, a reposted note by TmEE) | `sms-python/reference/smspower-forum/17121-…txt` | forum posts; cited | 3 | direct. The oscilloscope pictures and the recordings it links are **not in hand** |
| S13 | JoppyFurr, "SN76489 TestRom" (2024): interactive test ROMs for SMS, Game Gear and SG-1000/SC-3000 | ROMs: `sms-python/tests/test_roms/smspower/SN76489TestRom-{SMS,GG,SG}-1.00.zip`. Thread: `sms-python/reference/smspower-forum/topic-20066.txt`. Source: `reference/sn76489-testrom/` ( at `7d2068d`) | MIT, © 2024 Joppy Furr (`LICENSE.txt` read) | 3 (a tool) | direct: README, `register.c`; thread |
| S14 | Chris Evans (scarybeasts), "Sampled sound 1980s style: from SN76489 square waves to samples", 2 June 2020: oscilloscope work on a BBC Micro's chip | (not fetched into `reference/`) | no licence stated | 1 | summary |
| S15 | Plutiedev, "VDP debug register" | (not fetched). Its PSG sentences are quoted word for word in `reference/segachips/VDP/PSG/PSG_WikiRus/test.md`, which was read direct | no licence stated | 3; the page does not say what hardware it was tested on | summary, plus the direct quotation |
| S16 | emu-russia, "SEGAChips", the `VDP/PSG` study: the PSG region of a decapped Mega Drive VDP, photographed and traced | `reference/segachips/` ( at `1b378b4`) | CC0-1.0 (`LICENSE` read) | 1 | **prose pages only**, direct: the two Readmes, `topo.md`, `dac.md`, `pads.md`, `clk.md`, `test.md`. The netlist, Verilog, Logisim and cell files were not opened: see "Sources not read" |
| S17 | gchiasso, "76489A-analysis": one annotated photograph of an SN76489A die | `reference/die-76489a/76489_r1_big.jpg` ( at `c552112`), fetched only with `--large` | no licence file; the image carries the line "(CC BY-NC) 2015, 2017 gac", "photo: digshadow", "mask: (c) 1979 Texas Instruments" | 1 | one 1,400-pixel reduction viewed, to find the licence. Not studied further: decision D2 |
| S19 | MAME, `sn76496.cpp` and `sn76496.h` (tree at `f379cd0`, 30 January 2026) | `sms-python/reference/src/mame/src/devices/sound/sn76496.cpp`, `.h` | header line: `// license:BSD-3-Clause`, `// copyright-holders:Nicola Salmoria` | 5; its change log reports hardware tests by named people, without data | direct, whole `.cpp` |
| S20 | Mitsutaka Okazaki, emu76489 | `reference/emu76489/` ( at `c0fa097`) | MIT, © 2014 Mitsutaka Okazaki (`LICENSE` read) | 5 | direct. Its header names its references: the data sheet, MAME's `sn76489.c` and SMS Power's text. It models the Sega part only and is not independent of S6 |
| S21 | Renaldas Zioma, tt05-psg-sn76489, a Verilog SN76489 for Tiny Tapeout | at `8b85ee9` (not fetched) | Apache-2.0 | 4 | README by summary; the Verilog was not opened. Useful as an index: it is where S14, S16, S17 and S18 were found |
| S22 | Wikipedia, "Texas Instruments SN76489" | | CC BY-SA | 3, secondary | summary |
| S24 | SMS Power forum thread 17116, "SMS Test Suite", June 2018: one remark by Maxim on rewriting the noise register | `sms-python/reference/smspower-forum/topic-17116.txt` | forum posts; cited | 3 | direct, the PSG passages only |
| S23 | "SMS Sound Test" (Heliophobe and Maxim, per sms-python's validation.md) and the "SG-1000 Sound Test" pinned beside it (author not checked) | `sms-python/tests/test_roms/smspower/SMSSoundTest-SMS-1.2.zip`, `SG1000SoundTestCV-SG-1.0.zip` | homebrew, no licence seen | 3 (a tool) | not run here; listed because the boards pin them |
Nothing was ported from any of these. S19 and S20 are the only source code read, and
both are permissive.
## Sources found and not read
| ID | What | Why not |
|----|------|---------|
| S16n | The netlist of S16: `VDP/PSG/PSG.v` (36 KB Verilog), `Logisim/*.circ`, `CellsPy/`, `PSG_WikiEng/cells.md`, the traced images | CC0, so rule 4 allows it. Not opened because `topo.md` credits the cell map to the author of the Nuked models, whose wishes about AI use are unknown here (rule 7), and because a netlist of the Mega Drive's PSG is the nearest thing to a blueprint of the withdrawn core's subject. Decision D1 |
| S17 | The die annotation, beyond the one reduced view | Its own licence line is non-commercial. Decision D2 |
| S18 | siliconpr0n's photograph of an SN76489AN die, | Listed by S21's README as a high-resolution die photograph. A photograph settles nothing without tracing it. Not opened |
| — | Nuked-PSG, Nuked-MD, wherever they sit (copies exist under `megadrive-python/reference/` and `sms-python/reference/src/`) | restart.md rule 1 |
| — | Genesis Plus GX, Gearsystem, openMSX, BlastEm, jt89 (a GPL Verilog SN76489) | restart.md rule 1 |
| — | The withdrawn core and anything derived from it (not published) | restart.md rule 2 |
| — | megadrive-python `src` audio and PSG code; any description of chip internals in megadrive-python's or sms-python's documents | they may describe the chip in the withdrawn core's terms (restart.md rule 2) |
| — | The live SMS Power page, to see whether it has changed since the snapshot | tried twice in this phase: a time-out and an HTTP 503. Checked later: byte-identical to the snapshot (spec section 15, decision D13) |
## What was measured here
Scratch analysis only (`reference/scratch/noise_check.py`, not committed): the three
captured noise files were compared with each other and with a plain shift register.
1. **S9's capture is a 15-stage sequence.** `white_noise.bin` holds 32,767 values of 0
or 1. It equals, bit for bit, Kortink's own rule (15 bits, feedback bit 0 XOR bit
1, reset to only the top bit, output inverted) rotated by 11,904 places. His page
gives the skew as 20,862, which is 32,767 − 11,905: the same alignment counted from
the other end, within one place.
2. **Both of S6's files are that same capture.** `SN76489 white noise.dat` is S9's file
rotated by 11,920 places. `Sega VDP white noise.dat` is S9's file inverted and
rotated; taken as it stands it is the 15-bit, taps 0 and 1 sequence from reset, and
its linear complexity (Berlekamp-Massey over the first 400 bits) is 15.
3. **Neither file can be the 16-bit register S6 describes for Sega's part.** A 16-bit
register with taps 0 and 3 repeats after 57,337 shifts, not 32,767, and no stretch
of 2,000 bits from either file occurs anywhere in that sequence, either way up.
So the file labelled "Sega VDP" is BBC Micro data. sms-python recorded this as its open
item 6; this confirms it by a second route and names where the data came from.
## What each source can and cannot settle
- **S1, S2 (TI)** settle the write format, the register map, the 2 dB attenuator
weights and their tolerance, the divide-by-16 tone clock, the three fixed noise
rates, that noise rate 3 is clocked by tone generator 3's output, that a write to
the noise register clears the shift register, and the 32-clock READY time. They do
**not** give the shift register's length or taps, what a tone value of 0 does, the
state at power-on, or the output polarity. S1's Table 3 is misprinted (NF 0,0
appears twice); S2 prints it correctly.
- **S3, S4, S5 (Sega)** settle the same register map for Sega's part, the 0 to 28 dB
table, that the Game Gear's "synchronous" (periodic) noise divides by 16 with a
6.25 % duty, that n = 1 gives the highest tone, the stereo port's bit map and its
power-on value, and that the Game Gear's sound is off after a power-on reset. They
do **not** give white-noise taps, tone value 0, the latched register at power-on, or
anything about the Mega Drive beyond repeating the Mark III text.
- **S9 (Kortink)** settles, by capture, the white-noise sequence of the TI chip in a
BBC Micro, its reset point, and that it is 15 stages. It cannot speak for Sega's
part, and it is one chip in one machine. The page says "SN76489"; whether that chip
was an SN76489 or an SN76489A is not stated.
- **S6, S7 (Maxim)** are the only source for most of what is specific to Sega's part:
16 stages, taps 0 and 3, a data byte reaching the volume and noise registers, tone
values 0 and 1. They rest on captures by Maxim (a PAL Master System II) and Charles
MacDonald (SMS1, Game Gear, Genesis, SC-3000H) that are **not published**; see the
finding above.
- **S10** settles that the discrete chip in an SC-3000H is not reset at power-on.
- **S12** reports, without numbers, that a Master System II flattens the loudest
volume steps because of a resistor on the board. No curve can be built from it.
- **S13, S23** are tools for comparing an emulator with a console by ear or by
recording. They display no verdict, and no recording of them from hardware is in
hand, so today they settle nothing.
- **S14** settles, for a BBC Micro's chip, that tone value 1 gives a clean square wave
near 125 kHz and that a low tone holds its level without decay at the chip's pin.
- **S15** is the only source for the Mega Drive's PSG test bits.
- **S16** (prose) settles nothing about behaviour; its netlist could settle nearly
everything about the Mega Drive's part, and was not read.
- **S19** is the only source for several claims: tone value 0 acting as 1,024 on TI
chips, the latched register at power-on, the TI chips' loud power-on state, the
differences between SN76489 and SN76489A. Its notes name the people who tested on
hardware; the tests themselves are not published there.
## Behaviours with no source above tier 5
Only S19 (MAME) speaks to these:
- Tone value 0 on the discrete TI chip acting as a period of 1,024.
- The volume registers of a discrete chip standing at 0 (loudest) at power-on.
- Sega's part starting with register 3 (the second tone channel's attenuation) latched.
- The discrete chip's noise taking two shifts longer to appear after a reset than a
plain 15-stage register would (its model of the SN76489A).
- Which parts invert their output (S9 and S14 each show it for one BBC Micro).
- A data byte reaching the volume or noise register on the discrete TI chip.
## Behaviours with no source at all
- The Sega white-noise sequence as a capture. Every statement of "16 bits, taps 0 and
3" traces back to S6, whose published data is not Sega's.
- The volume curve of any Sega part as numbers.
- The state of the tone counters, the output flip-flops, the clock divider and the
shift register at power-on, on any variant.
- When a write takes effect within the divide-by-16 cycle, on any variant.
- Which edge of tone generator 3 clocks the noise at rate 3.
- Anything measured on a Mega Drive's PSG, apart from S6's one line that its noise
matched the Master System's and S12's remark that its volume steps are clean.
- What the Mega Drive's test bits do to the waveform (S15 gives one sentence).
## Things to know
- Material seen during this phase and not used (a line of C in a search result, one
reduced view of S17) is listed in [provenance.md](provenance.md).
- S14, S15, S21 and S22 were read through a summarising fetch tool. The spec marks
each use.