# Claims: what the board asserts, on what evidence Tiers: 1 hardware, 2 manufacturer, 3 hardware-checked community or schematic tracing, 4 FPGA, 5 emulator. **Provisional** means nothing above tier 3 settles it; each provisional behaviour is a field of `BoardOptions` (or a controller/cartridge parameter), so a measurement changes a value, not the code. U and C numbers are the handoff brief's. The chips' own claims are the cores': z80-python `docs/`, tms9918-python `docs/claims.md`. ## Settled at tier 2 or 3 | Behaviour | Evidence | Where | | --- | --- | --- | | Memory decode in 8K blocks; BIOS `$0000`, RAM `$6000-$7FFF` (1K mirrored 8 times), cartridge `$8000-$FFFF` | TM (2); SCH, DB tracings agree (3); M1 lockstep (5) | `Board._build_readers` | | I/O decode on A7-A5 (+A0 for the VDP, A1 for the controllers), write strobes on `$80`/`$C0`, VDP `$A0-$BF`, sound and controllers `$E0-$FF` | SCH, DB (3); OS-7 listing's equates (2) | `Board.read_port`, `write_port` | | One wait clock on every opcode fetch (each prefix its own M1) and each HALT cycle | SCH, DB (3); MAME agrees (5); M1 lockstep 945,993 instructions | `Board._read_m1` | | The SN76489A's READY holds the CPU after each write | DB sheet 4, TM, ADAM manual 2.2.5 (2-3) | `write_port` (length: C9 below) | | `/NMI` is the VDP's `/INT`, taken on its edge; setting IE while F is up makes an edge | TM; TI 2.1.6, Young 2.4 | `Board._check_nmi` | | Controller strobe flip-flop, one segment at a time; bits 0-3, 6 from the device | TM (2); SCH, DB (3) | `Board._read_controller` | ## Decided in the video core, recorded here (brief C1, C2) | # | Side taken | Judge | Where | | --- | --- | --- | --- | | C1 | a status read clears F, 5S and C; the number stays | TI 2.3.1-2.3.3 (2) over Young (3) | tms9918-python C1 | | C2 | off-screen sprite pixels collide; a line dropped as a fifth sprite does not; provisional. Under `mame_options()` the core's `offscreen_collisions=False` (MAME tests visible columns only) | TI 2.3.2 (2) for off-screen; Young 4.3 (3) for dropped lines | tms9918-python C7 | ## Provisional (switches, with their defaults) | # | Default | MAME's choice (lockstep) | Evidence that would settle it | | --- | --- | --- | --- | | C11 | M1 wait on the NMI response and the interrupt acknowledge too (`m1_wait_on_acknowledge=True`): two tracings, tier 3 | off | a logic-analyser capture of `/WAIT` during an NMI response on a console | | U3 | an interrupt acknowledge with PC's low byte in `$A0-$BF` reads the VDP (`acknowledge_reads_vdp=True`): two tracings, tier 3 | off | a console running a spinner interrupt with PC parked at `$xxBF` and reading status after | | C9 | READY wait 28 CPU clocks (`ready_wait`): MAME's measured value; TI says "approximately 32", Clock Signal 31 | 28 | a cycle count of `OUT ($FF),A` on a console (e.g. a loop timed against the frame interrupt) | | U6 | VDP phase at the CPU's first clock: MAME's, core line 203 dot 315 (`vdp_phase`); power-on RAM zeros; Z80 registers the core's zeros | MAME's registers AF = `$0040`, IX = IY = `$FFFF` | a capture of `/INT` against `/RESET` release; RAM/VRAM power-on dumps | | U4 | reads of `$80-$9F`, `$C0-$DF`, `$00-$7F` give `$FF` (`open_bus_port`) | `$FF` | a console reading those ports | | U5 | unmapped memory and absent cartridge selects read `$FF` (`open_bus_memory`) | `$FF` | a console reading `$2000` with nothing on the expansion port | | U14 | controller bit 7 reads 0 with nothing on pin 9 | 0 | a console read of `$FC` with a plain controller | | U15 | spinner `/INT` pulse 39 CPU clocks (11 us), one-shot 1,790 (500 us), per port (`Board.spinner_int_clocks`, `one_shot_clocks`) | 11 us, 500 us | a scope on U7 pin 8 and the one-shot node with a spinner turning | | - | where inside an instruction a port access falls: z80-python's access table (SingleStepTests, tier 5) plus one clock per M1 already made plus READY waits already served | (MAME logs instruction starts only) | a bus capture of `OUT` against the VDP's slot clock | | - | odd-sized plain images (12K, 20K) are taken as they are, bytes past the end reading open bus | same | a dump of the chips of such a cartridge | | C12 | controller bit 7 = the shaping NAND's output, high while the one-shot runs after a falling edge of pin 9; bit 4 low for the same time; bit 5 = pin 7 (two tracings, tier 3; the NAND reading is ours) | bit 7 a 500 us flag, bits 4/5 XORed | a console read of `$FC` while a spinner turns | | - | the controller strobe flip-flop powers on selecting the keypad segment (the BIOS writes `$C0` at clock 341, after its `55 AA` test, so a `55 AA` cartridge is entered before any strobe write) | MAME's `m_joy_mode` starts 0 (keypad) | a console read of `$FC` by a `55 AA` cartridge before any strobe write | | - | the spinner's shaper fires on pin 9's falling edge; the spinner devices model quadrature with pin 7 a quarter cycle off | MAME: a pulse train by rate | a scope on pins 7 and 9 of a Super Action Controller | | - | the MegaCart switches banks on any access in `$FFC0-$FFFF`, writes included (`switch_on_write=True`): the slot has no /WR; a hotspot read returns the new bank's byte; bank 0 at power-on (clean-room rewrite 2026-11-26, docs/cartridge.md) | CVBasic reads only | a write to `$FFC0`, and a read of a hotspot, on a real MegaCart | | - | the Activision board decodes accesses, reads included (`decode_reads=True`), in 16-byte rows; all of `$FF80-$FFFF` reads bank 2 or 3 by SDA (kevtris's guess); bank 0 at power-on | the documented addresses only | a read of `$FF90` and of `$FFF0` on a real Activision cartridge | | - | the 24C02/24C256 two-wire protocol from Microchip's data sheets (DS21709J, DS20001203W); write cycles instantaneous; a 24C256's select pins tied low | the data sheets | real images (open decision 9) | | - | no X-in-1 multicart: no permitted document describes it (removed 2026-11-26) | - | a document or a dump of such a board's logic | ## Sound path (M4) | # | Default | Evidence that would settle it | | --- | --- | --- | | C8/U13 | the chip is sn76489-python's `SN76489AN` row: tone value 0 = period 1,024 (the core's provisional D4, MAME's note), 15-bit noise (the core checked it against a BBC Micro capture) | a console recording of Dragon's Lair, Memory Manor or the Final Test noise step (results M4) | | U6 | the chip is not silenced at power-on (the core's provisional D5): all four channels sound until the BIOS's first writes at clock 100 | a scope on the audio output at power-on | | U12 | mix: the chip's level / 4, box-filtered to 44,100 Hz, expansion audio at equal weight, a 20 Hz first-order DC blocker: all choices | a recording of the console's RF/AV audio with a known tone | | C9 | READY: the board's 28 CPU clocks (MAME's measured stall), not the core's `ready_clocks = 32` (TI's "approximately 32") | as C9 above | ## Detector compatibility (not hardware; for lockstep only) `mame_options()` also sets `mame_video_rounding`: MAME 0.285 runs the screen on a 5,369,317 Hz pixel clock (5,369,317.5 truncated), so its frame is 59,736.0056 CPU clocks (measured with its frame notifier: 59,736.005562511) and its frame interrupt drifts against the CPU by one master clock every 10,738,635. The board reproduces that drift and a fitted bias of 3 master clocks (MAME's interrupt reaches its Z80 about one CPU clock before the exact time of the pixel its timer names) only under that switch. The real console runs the VDP at exactly three master clocks per CPU clock [TM p. III-5]. ## Watch-points - **4K mode at boot** ([core issue 0002](core-issues/0002-4k-rollover-leaves-bios-clear-incomplete.md)): the BIOS clears VRAM in 4K mode; with tms9918-python's C11 defaults the clear reaches 4K of cells only. Invisible with power-on VRAM zeros (the core's default, kept here). - **VDP power-on phase** ([core issue 0001](core-issues/0001-vdp-power-on-phase.md)): a board-side stopgap.