# Quirks (U) and open items (C) Every item names its evidence with the tags of [start-here.md](start-here.md): a document (anomie, fullsnes, the SNESdev wiki), a spc_dsp6 test name (checked on consoles by its author), OBSERVED (agrees with the snes_spc 0.9.0 referee run as a closed box) or HYPOTHESIS. No die-level model of the S-DSP exists in any source found, so nothing here is die-derived. No item rests on an implementation's source: the earlier version of this file cited a GPL/LGPL implementation by line, and those citations were struck at the restart (2026-11-19); what only that code established became an open item, settled where possible by measuring the referee as a closed box. The rule for the module: follow the documents; where they are silent or ambiguous, take the reading that agrees with the referee and tag it OBSERVED; where a document and the referee disagree, follow the document and record the difference (D*n* in [validation.md](validation.md)). ## Quirks (U) **U1. The Gaussian table's origin is undocumented.** anomie prints it "from libopenspc"; fullsnes prints the same values and notes the tap sums 7FFh..801h. ares's formula (ISC) reproduces all 512 (`scripts/dsp_gauss_formula.py`); the module generates it with that formula and asserts the hash. How the values were first obtained is not recorded anywhere pinned. **U2. BRR shifts 13-15** give 0 or -`$800` by the nibble's sign (anomie; fullsnes). **U3. BRR keeps 15 bits**: "the BRR decoder seems to lose the low bit" (anomie). **U4. BRR clamp, then clip.** Clamped to 16 bits, then clipped to 15: a result in `+$4000..+$7FFF` becomes negative, one below -`$8000` becomes 0 (anomie; fullsnes lists each case). fullsnes's parenthesis "+7FFFh (but, clipped to +3FFFh below)" disagrees with its own next line ("+4000h..+7FFFh then new=(-4000h..-1)"); the module follows the line and anomie (OBSERVED: the `brr` case is value-exact). **U5. End without loop silences at once**: the voice goes to Release with E = 0 as the header is loaded; the block is never heard (anomie; spc_dsp6 `Order/brr end uses curr header`, `KON/kon then set sample's end flg`). **U6. KON does not clear the ring**: a first block with filter 1-3 reads the ring's physical end (anomie; spc_dsp6 `KON/kon decoding when another kon`). **U7. Decoding never stops** for released, keyed-off and noise voices; only KON restarts it (anomie; fullsnes "NON"; spc_dsp6 `Misc/brr not always decoding`). **U8. The position clamps at `$7FFF`** (anomie; spc_dsp6 `Misc/interp pos clamped at $7FFF`, `Order/brr interp pos clamp time`). **U9. Sustain level in GAIN mode** comes from GAIN's top 3 bits (anomie: "If 'e' is clear, the top 3 bits of VxGAIN are used instead"; fullsnes: "accidently reading a garbage boundary value from VxGAIN.Bit7-5"; spc_dsp6 `Envelope/decay->sustain during gain`). **U10. The saved envelope for bent increase** is kept every sample whether or not the counter fired (anomie step 4; fullsnes "Misc Notes"), and zeroed by KON (OBSERVED; spc_dsp6 `Envelope/hidden env 0 at kon`). Its form is C15. **U11. Mode changes run in every mode** (anomie "CRITICAL NOTE: These updates happen even when ADSR mode is not selected"; fullsnes "Gain Notes"; spc_dsp6 `Envelope/attack->decay during gain`). **U12. Release is E -= 8 every sample**, whatever the rate registers say (anomie). **U13. KON and KOFF are polled at 16 kHz** (anomie; fullsnes; spc_dsp6 `KON/kon every other sample`, `KON/kon then another kon`). **U14. KON with KOFF set** keys on and releases two samples later; clearing KOFF within 63 cycles saves it (anomie; spc_dsp6 `KON/kon then koff`). **U15. The override window**: a write to ENDX, OUTX or ENVX up to 2 cycles before the DSP's update replaces it (anomie; spc_dsp6 `Timing/Voice/V7 endx *`, `V8 outx`, `V9 envx`). **U16. Writing ENDX clears every bit** (anomie; fullsnes; spc_dsp6 `Misc/endx write clears immediately`). **U17. Saturation points**: voice sums clamp after each voice; the FIR's first seven terms wrap at 16 bits and only the eighth add clamps; the EFB, MVOL and EVOL products are cast to 16 bits before their clamped adds (anomie "$xf", "$0c", "$2c", "$0d"; fullsnes "Echo Registers"; spc_dsp6 `Misc/voice sums clamped each time`, `Random/echo fir`, `Echo/echo calc`). See D1 for the one point where the referee differs. **U18. EDL applies late; EDL 0 is 4 bytes** (anomie; fullsnes; wiki errata; spc_dsp6 `Echo/edl_changes`, `Echo/edl 0 quirk`, `Echo/zero_length`, `Order/edl before inc offset`). **U19. Echo writes are ARAM writes**, wrapping past `$FFFF` into the zero page (wiki errata; spc_dsp6 `Echo/wrap_around`). **U20. ESA is loaded a sample early** (anomie "$6d ESA"; fullsnes "Echo Buffer Notes"; spc_dsp6 `Timing/Echo/29 esa`, `Order/esa applied after echo write`). **U21. Noise replaces only the sample** (anomie "$3d NON"; fullsnes; spc_dsp6 `Order/voice 0 noise`). **U22. The KON poll's phase against the S-SMP timers**: "30 & 94 or 62 & 126 cycles after the SPC700 timer T0 and T1 tick. On power on, 62 & 126 seems to be chosen more frequently ... On reset, either can be chosen" (anomie). A board-level alignment; the module exposes the flag. **U23. `$80-$FF` are read-only mirrors** (anomie; fullsnes; spc_dsp6 `Misc/dsp addr above $7F`). **U24. FLG acts as `$E0` after power-on or reset** whatever reads back (anomie; fullsnes; wiki). ## Open items (C) **C1. Interpolation product precision.** fullsnes: each product `SAR 10` on 15-bit samples, the sum `SAR 1` at the end; anomie: each product `>> 11` in a 15-bit sum. They differ in the low bits. *Choice:* fullsnes (ares's formula has the same precision). OBSERVED: every synthetic case is value-exact under it. **C2. MAME's `s_dsp` (LGPL, closed box)** is a separate lineage (OpenSPC), per sample; run as a closed box it fails spc_dsp6 at `Echo/edl_changes` (validation.md). A detector for gross behaviour only. **C3. When the sample reaches the DAC.** anomie: left at step 26, right at 27. The module computes each channel at its step, each checking FLG.6 then, and emits the pair at 27. Observable only through a mute write between 26 and 27. *Resolution:* spc_dsp6 through the board. **C4. When the counter ticks.** anomie: step 29. Every consumer runs after it either way: unobservable. **C5. Pitch modulation on a noise voice.** anomie's pseudocode excludes NON voices; anomie's NON section and fullsnes's pitch counter say PMON still drives BRR decoding. *Choice:* applied (fullsnes, anomie "$3d NON"). The `noise-pmod` case is value-exact (OBSERVED); no spc_dsp6 test names the combination. **C6. ARAM under the IPL ROM.** The IPL ROM is an overlay on S-SMP reads (fullsnes "Memory Map": "writes do always go to RAM"); the DSP is given plain ARAM. *Resolution:* a hardware test with echo or BRR data at `$FFC0` (none known). **C7. The mask/xor counter.** anomie prints a mask/xor counter attributed to Mednafen (GPL-2.0) and jwdonal's FPGA work as equivalent to the modulo form. It is a code fragment from a GPL program in a document, so it is not used; the module uses anomie's modulo statement. **C8. "Might be keyed on with decreasing probability"** (anomie: KOFF cleared 64-127 cycles after a KON). In the module it is deterministic given the write's step relative to the poll; the "probability" is the phase the writer does not control. **C9. One register array or two.** fullsnes: "the DSP registers are a RAM-like 128-byte buffer ... At least some registers (KON and FLG) seem to have changed-flags ... ENDX seems to be a real register". The module keeps one array plus an internal FLG (so FLG can act as `$E0` while reading back otherwise) and an internal KON. **C10. Mute is analogue too**: FLG.6 mutes the amplifier (fullsnes block diagram, `/MUTE`); any pulse on the analogue side is outside the module. **C11. Power-on register values** are chip-dependent garbage (anomie; fullsnes gives examples). *Choice:* a constructor argument (owner's decision), default all zeros (HYPOTHESIS). **C12. Where step 0 and the poll flag are at power-on** relative to the S-SMP's first instruction and its timers: not documented. The module starts at step 0; the board may set `phase` and `every_other` (U22). **C13. The clock rate**: 24.576 MHz nominal, 24.5928-24.6456 MHz observed (anomie). A machine property; the module counts steps. **C14. The S-SMP's access versus the DSP step in one clock** (timing.md): DSP step first, then the access. OBSERVED; to be judged by spc_dsp6 through the board. **C15. The saved envelope's form.** anomie: "pre-clamp"; fullsnes: "clipped to 11 bits", with the negative case spelled out. *Choice:* fullsnes. OBSERVED: the `env-quirks` case (linear decrease below zero, then bent increase) agrees with the referee only under fullsnes's reading. **C16. One ENVX latch and one OUTX latch.** anomie's "a write ... to this register up to 2 cycles earlier will overwrite the DSP's updated value" does not say whether the pending value is per voice. *Choice:* one latch each, shared by all voices. OBSERVED: the `endx-override` case writes ENVX/OUTX of one voice inside another voice's window; only a shared latch agrees with the referee. **C17. ENDX after reset.** anomie: 0; fullsnes: `FFh` "a few cycles after reset". *Choice:* anomie (0), HYPOTHESIS; bits set again as voices decode end blocks, so the two converge quickly. **C18. `.spc` loading has no hardware meaning.** A rip holds no internal DSP state. The board's loader keys on the voices named in the file's KON byte at the first poll (OBSERVED: the referee's convention) and starts the timers at a fixed prescaler phase; both are player conventions, not hardware facts (validation.md).