# Undocumented behaviour, contradictions, unknowns Citations as in [start-here.md](start-here.md). "Tested by" names the lynx-tests ROM (tier 3: expected values taken on real consoles) that decides the point; "exposed by" names a commercial title an emulator author recorded as breaking on it, with the file where they wrote it down. A title named without such a file reference is marked *candidate*. ## Documented defects programs rely on (Spec §16, §12.1.4) These are the manufacturer's own bug list; build them as specified. Mikey: sleep works only while Suzy has the bus; the UART interrupt is a level; TXD powers up driving TTL high; the low nibble of the audio PWM byte is converted wrongly (a glitch at 8→9); RESET_DONE is a level; DONE must be clear for a timer to count; the boot ROM sets the external-power pin to output; REST starts as an input with data 0; IODAT is not a true read/write register. Suzy: the divide remainder is wrong in two cases; signed multiply treats `$8000` as positive and 0 as negative; auto-clear of an SCB word's upper byte does not clear the sign flag; the page-break signal does not delay the end of pen palette loading (never start the 8-byte SCB palette at `$xxFA`); the shadow attribute's polarity is inverted (XOR and background types get shadow); only the upper byte of SCBNEXT is tested for end of list; a packet header of `00000` as end-of-data "appears to have a bug"; SPRCTL1 bit 6 (the alternate sizing algorithm) is broken; unsafe-access detection is broken for math; the math overflow bit is lost on any later Suzy SCB access. ## Contradictions **C1. Which 65C02.** Spec §4: "65C02". Common description (Wikipedia): 65SC02, no Rockwell bit operations. Measured (lynx-tests `cpu` test 7; 42Bastian in AtariAge 283383): true on **Lynx I**, false on **Lynx II**, whose cell executes RMB/SMB/BBR/BBS. No evidence either way for WAI (`$CB`) and STP (`$DB`): the forum thread assumes they are absent (they are WDC additions; the cell is VTI's). *Resolution*: machine rows with a CPU variant each; WAI/STP treated as reserved NOPs until a hardware result says otherwise. Tested by: `cpu` 6 and 8 (reserved NOPs, `$x3`/`$xB` with an IRQ pending), 7. **C2. BIT #imm flags.** *Struck 2026-11-14* (the statement and its title came from an emulator's source). The immediate form leaving N and V alone is standard 65C02 behaviour and belongs to `w65c02-python`. **C3. MAPCTL readback.** Spec Appx 2: `$FFF9` is R/W. Measured (LT page-mode): Lynx I returns what was written; Lynx II returns `(written | $70) ^ $80` (`$03 → $F3`, `$83 → $73`). A read-modify-write of MAPCTL therefore toggles page mode on a Lynx II. *Resolution*: a field on the machine row. Tested by: `memio`, `page-mode`. **C4. SDONEACK order.** Spec §6 launch list writes SDONEACK after SPRGO; Spec §18 "Common errors" says it must be written before running the engine, even the first time. Measured (`sdoneack` 1-5): both orders work; what matters is that an unacknowledged completion makes CPUSLEEP return at once, the condition is sticky, and any value written acknowledges. *Resolution*: model the latch, not the order. **C5. One-shot timers at zero.** Spec §8 describes a one-shot as counting to zero and stopping. Measured (laoo, AtariAge 347170; `timers` 3-5): with DONE cleared (or RESET_DONE held), a non-reloading timer sitting at zero requests an interrupt on every source clock or every borrow from its linked predecessor. The thread says Handy and Felix did not do this when it was written. Exposed by: laoo's VGM player (homebrew). (A *Championship Rally* note from an emulator's source was struck; the title stays on the smoke list as a candidate.) **C6. Timer DONE and counting.** Spec §16.1: "the Timer Done bit requires clearing in order to count". Measured (LT timers; `timers` 5, 7): true for non-reloading timers; a reloading timer keeps counting with DONE set. **C7. Sign of a number whose low byte only is written.** Spec §12.1.1: writing the low byte clears the upper byte but **not** the sign latch. (What two emulators' sources do here was struck 2026-11-14; S.T.U.N. Runner stays on the smoke list as a candidate.) Tested by: `math` 3 ("partial operand rewrite to probe the retained CD sign latch"). *Resolution*: build to the test ROM; then run S.T.U.N. Runner. **C8. Stereo.** Spec §7.3: stereo "is not now in the hardware. It may never get into the hardware", one byte reserved. Lynx II hardware has two outputs; MSTEREO (`$FD50`), ATTEN_A-D (`$FD40-43`) and MPAN (`$FD44`): the addresses were recorded in Phase 0 from community knowledge; of the permitted sources only lynx-tests' `refresh-rate/isr.s` names MSTEREO (a comment), and no lynx-tests case checks any of them. (Which emulators implement them was read from their sources and struck.) Which Lynx II chips implement the attenuation registers, and their reset values, are stated differently: Felix's (MIT) changelog 0.6.4 "corrected default values for the attenuation and panning registers". No manufacturer document covers them. *Resolution*: machine-row fields; unknown U11 for the reset values. **C9. Collision depository and unsafe sprites.** Spec §6 says a sprite's collision number is written to the collision buffer and the highest number found is stored in the SCB's depository, except for the non-colliding types; the shadow-polarity bug changes which pens of which types collide. The LT "pen behaviour by type" table is the reading to build from (an emulator's table cited here earlier was struck). Tested by: `sprites3` (all eight types, CRC of video and collision buffers, depository at SCB+$17), `sprites4` 4-5. Collision can be disabled per sprite (SPRCOLL bit 5) or globally (SPRSYS bit 5); the tests exercise the per-sprite form only. **C10. EVERON.** Spec §12.5: bit 7 of the depository is 1 only when EVERON is enabled and the sprite never touched the screen. LT ("Collision depository and Everon") restates it and adds that no hardware measurement exists of its time cost. Whether a non-colliding sprite type still gets its depository byte written for EVERON is not stated by either (U16). Felix's known issues: "*Awesome Golf* and *Scrapyard Dog* hang" (`CHANGELOG.md:40`), cause not stated there: *candidate* titles for this area, not proof. **C11. Flip.** DISPCTL bit 1 mirrors the display for left-handed play; the software must also point DISPADR at the buffer's last byte and set SPRSYS bit 3 (LEFTHAND). Appx 2 gives the JOYSTICK (`$FCB0`) bit table in two columns, "if Lefthand=1" and "if Lefthand=0": Suzy swaps the four direction bits; the button bits do not move. So flip is three separate things (display, joystick, the game's own drawing), and an emulator that rotates or flips the picture itself double-flips. No test ROM covers it (U12). **C12. Cart write guard.** Spec §9.3: "must not access Suzy for 12 ticks after the completion of the blind write"; Spec §4.1.2 gives 6 ticks for Suzy's internal placement "except for writes to the game cart" without a number. LT notes the two texts conflict on where the interval starts. No program is known to depend on it. **C13. EEPROM byte.** cc65's header source computes EEPROM size as `2^(value+9)` bits with a "please recheck" comment; 93C46 = 1 kbit = 2^10, which the formula gives for value 1. Consistent, but unverified by its own author. Bit `$40` (8-bit organisation) and `$80` (SD-card save) come from the same community source. **C14. Zaku (Beta) and Mines 2 block size.** LNX header 2048, size rule 1024, MAME software list 1024 (Zaku beta). [cartridge.md](cartridge.md). **C15. Vertical blank position.** Whether the three non-visible lines come before or after the Timer 2 borrow is asked and not answered in AtariAge 218756; LT video-timing (from LA) says: Timer 2 borrow, then three blank lines, the third latching DISPADR. *Resolution*: LT. (A note on MAME's vertical-blank constant, from its source, was struck.) **C16. Boot ROM images.** MAME lists two 512-byte images differing in one byte (`$FFF9`) and marks both BAD_DUMP (`mame -listroms lynx`, OBSERVED); Felix's repository (MIT) carries the one MAME calls `lynx.bin`; No-Intro names `e4ed47fa...` (MAME's `lynxa.bin`). The byte is never read as ROM (MAPCTL lives at `$FFF9`: Appx 2), so they behave identically. Use `e4ed47fa...`. ## Known-hard behaviours and what exposes them | Area | Decided by | Titles | | --- | --- | --- | | Sprite engine cost, bus stealing | `sprites1-5` | *candidates*: *Hard Drivin'*, *Dirty Larry* (the earlier source citation was struck) | | Last packet at end of line | Spec §16.2 `00000` | *candidates*: *Qix*, *Blue Lightning* (citation struck) | | Alpine Games protection | `sprites2` 8 | *Alpine Games* (also AUDIN + EEPROM; the protection SCB is named by lynx-tests `sprites2`) | | Timer chaining, DONE | `timers`, `timers2` | *Championship Rally*; VGM players | | Audio taps, integrate | `audio`, `audio2` | all; no single title recorded | | UART loopback | `uart3` | *candidates*: ComLynx titles played alone (Checkered Flag, Warbirds, Xenophobe, Slime World); none recorded in a source | | LCD rate from timers 0/2 | LA captures | *Lemmings* 50 Hz, *Batman Returns* 75 Hz, *Crystal Mines II* 60 Hz, *Krazy Ace Miniature Golf* 52 Hz | | Math sign, accumulate | `math` | *S.T.U.N. Runner* (C7); *candidates*: Hard Drivin', Steel Talons, Blue Lightning | | MAPCTL, page mode | `page-mode`, `memio` | homebrew that reads MAPCTL back | | EVERON | none | *candidates*: Awesome Golf, Scrapyard Dog | | Flip | none | any game with Option 2 + Pause | | Centred sprites, quadrants | `sprites5` | *candidates*: *Fat Bobby*, *Block Out* (citation struck) | ## Unknowns - **U1.** Whether a dummy read (a cycle whose data the CPU drops) costs the same as a real read. *Answered 2026-11-14* (MEASURED, la_compare.py): a dropped read at the next stream address is a stream read (4 ticks in page mode); a dropped read elsewhere is a 5-tick data read. - **U2.** The slot order of Mikey's timer/audio dual-port RAM (which register waits how long). Only the envelopes in `timers2` 7-9 are known. - **U3.** The effect of two consecutive CPU accesses to Suzy. - **U4.** Refresh timing, with display DMA on and off. - **U5.** Spec "appendix 7" (the bus state machine) and the VTI CPU specification the text refers to: not in the HTML, the Rev P scan's table of contents, or handy-docs. Not found anywhere. - **U6.** No console photograph or video of SuzyTiming's result is published. - **U7.** What the MiSTer core was written from. Its README states no source. (It is not read or used: restart rules.) - **U8.** The EEPROM's wiring to the cart connector as a primary document. - **U9.** The licence of Björn Spruck's free boot ROM (his page returned 404 on 2026-11-11). Not used. - **U10.** Whether a Lynx II boot ROM differs from the Lynx I image. - **U11.** Reset values of ATTEN_A-D, MPAN, MSTEREO on Lynx II. - **U12.** The exact bit swaps under LEFTHAND, as a hardware result. - **U13.** **No die photograph, netlist or decap of Mikey or Suzy was found** (searched: AtariAge 279417 "Mikey/Suzy schematics", visual6502, siliconpr0n by search engine). The chips' internal schematics are not public. So there is no tier-1 die judge for this board; tier 1 is the logic-analyser captures only. - **U14.** Whether writes to `$FE00-$FFFF` with the ROM overlay on reach the RAM underneath (Appx 2 implies RAM is written; not tested by a ROM). - **U15.** Power-on RAM contents and the CPU/timer phase at reset (Spec §14.2 says the phase may be non-deterministic). - **U16.** Whether EVERON writes the depository for sprite types that do not collide (0 with SPRCOLL bit 5, 1 and 5). - **U17.** What IODAT's input lines read (external power, no-expansion, AUDIN) with nothing attached, and what its output lines read back. Built: outputs read what was written, inputs read power 0, no-expansion 1, AUDIN 1 (HYPOTHESIS; memio does not test it). - **U18.** What write-only and unallocated Mikey and Suzy addresses read. Built as 0 (HYPOTHESIS). - **U18b** (2026-11-19). `$FDC0-$FDFF`: DOC Appx 2 says "not yet allocated" (`$FDC0-$FDCF`, `$FDD0-$FDFF`), so the palette ends at `$FDBF`; built as U18 (reads 0, writes ignored, no palette mirror). Before this the board indexed past its 32-byte palette and crashed (Toki's fade writes `$FDA0-$FDDF`; Bill & Ted's and Geoduel read `$FDC0`/`$FDC5`: library sweep 2026-11-19). Whether the palette is mirrored there is not known: a probe ROM that fills the palette and reads `$FDC0-$FDFF` back on a real Lynx would settle it. No closed box was used to choose. - **U19.** SPRSYS bit 5 "last carry": no document defines it. Fitted to lynx-tests `math` 1-7 (validation.md "M2"). - **U20.** The timer/audio DPRAM wait (refines U2). lynx-tests `timers2` 7-9 measure 64 back-to-back reads or writes of each timer register at `$83-$84` µs against `$4F-$50` µs for RAM: about 13 more ticks per access on average. No constant per-access cost reproduces it (18 ticks gives `$81`, 19 gives `$85`): the wait is quantised by the DPRAM's 20-tick cycle and its slot order. A capture of Mikey register accesses would settle it. - **U21.** DRAM refresh timing (refines U4). *Answered 2026-11-14* from the captures: refresh cycles are ordinary reads with row = column = a counter; two ride on every display fetch, and a lone 4-tick one comes every 256 ticks in lines without DMA (validation.md "M2 (bus costs from the captures)"). Still unknown: the phase within the 256 ticks (fitted to the capture) and what happens with DMA disabled for a whole frame (no capture; built as "lines without DMA"). - **U20, U2** *answered 2026-11-14* the same way: one DPRAM slot per timer, 1 tick apart, every 16 ticks; the slot phase against the prescaler is still unknown (no timer edge shows on the bus). - **U22.** While Mikey's interrupt output is asserted, no page-mode read follows a page-mode read (MEASURED in the refresh_rate interrupt routine). Why, and whether it depends on the CPU's I flag, is unknown: a capture of page-mode code with an interrupt pending and masked would settle it. - **U23.** The UART's timing inside a frame (when the holding register is taken, when TXEMPTY rises, when the echo is received) and its receive depth. Fitted to the uart suites (validation.md "M6 UART"): a finished frame waits in the shift register until the next start bit; the echo arrives 37.5 µs after the middle of the stop bit, a delay in time that only a narrow window of values satisfies (uart2 4 at 9,600 baud against uart3 3 at 62,500). A capture of the REDEYE pin with SERCTL reads would settle it. - **U24.** CTLB B2 ("last clock state") for a prescaled source: built as a 50 % square wave gated by the count enable (TEST ROM audio2, timers 1 agree; the duty is a HYPOTHESIS). - **U25.** Lynx II ATTEN ($FD40-$FD43) and MPAN ($FD44): no Epyx text (the appendix calls the range "not yet allocated"); register layout from cc65's `lynx.inc`, meaning a HYPOTHESIS (validation.md "M6").