6502 by dbhqGitHub

Status

Where it stands

Every figure here is read from the latest test run, or from a dated measurement.

5 of 51

Machines implemented

0 in progress.

5

Variants of the core

Each proven against its own set of Tom Harte's tests.

7,485

Tests passing

0 failed, 0 skipped.

1,277

Harte opcode tests

Each runs the recorded cases for one opcode, cycle by cycle.

12

Dormann builds

Whole programs that check their own results.

266

NMOS interrupt runs

Each checked cycle by cycle against a model of the 6502's transistors.

Test run on commit 59a2d86, 15 October 2026.

Test suites

SuitePassedFailedSkipped
ApuTests1200
Atari2600AcceptanceTests18100
Atari2600BusTests3200
AxromTests1100
BankedBoardTests1500
BasicTests3400
BbcAcceptanceTests300
BbcBusTests4100
BbcKeyboardTests15400
BbcKeyPressesTests800
BlackRowStressTests200
BlarggTests14900
BoardContractTests15200
BootTests7700
BusEquivalenceTests700
BusTraceTests100
CartridgeTests11700
ChipAccessesOnTheBusTests1500
ChipAccessesTests1900
ChipTraceTests100
CmosInterruptTests400
CnromTests1200
CompletenessTests1000
ContentionTests9300
ControllersTests3200
ControllerTests3500
CoverageTests200
CpuTests1700
Crtc6845Tests3600
CrtcEquivalenceTests500
CycleOrderTests700
DfsCatalogueTests300
DiscImageTests2600
DiscLibraryTests2000
DiscTests900
DisplayPictureHashTests1700
DmcDmaTests3800
DmcTests7600
DormannTests1200
DrawnRowsTests800
ElectronAcceptanceTests400
ElectronBusTests2200
ElectronKeyboardTests8200
ElectronKeyPressesTests600
ElectronTimingTests1200
FaTests1700
Fdc8271Tests1800
FdcEquivalenceTests800
ForLoopAnchorTests800
FrameBufferTests2000
FrameCounterTests4000
HarteRunnerTests600
Kim1AcceptanceTests600
Kim1DisplayTests500
Kim1KeystrokesTests800
Kim1MemoryMapTests1200
Kim1TeletypeLineTests2000
Kim1TeletypeTests1800
MachineStateTests1600
MixerTests400
Mmc1Tests3900
Mmc3ScanlineCounterTests1400
Mmc3Tests3700
MonitorSanityTests100
NesAcceptanceTests15900
NesBusTests9200
NesLoaderTests3500
NestestOnTheBusTests200
NestestTests200
Nmos6502Harte25600
NoiseTests4300
NromTests1200
OamDmaTests3400
ObserverTests600
PagePathTests600
PalReferenceGroupingTests200
PartitionTests600
PlainTests500
PpuBackgroundTests6600
PpuCatchUpTests7000
PpuDotScenePreRenderTests5600
PpuDotSceneSprite0Tests6400
PpuDotSceneTests14200
PpuDotSceneTwiceTests11200
PpuDotSceneVblankTests8400
PpuMoveToTests500
PpuPaletteTests6600
PpuRegisterTests3400
PpuScanlineTests61600
PpuSpriteTests6000
PpuTimingTests1800
PulseTests4800
RegionTests3300
ResamplerTests1800
Ricoh2A03Harte25500
Riot6532Tests4400
Rockwell65C02Harte25600
RomTests900
Rriot6530Tests1200
SampleBufferTests4900
ScreenshotTests7300
ScreenTextTests3600
Sn76489Tests4600
SoundAdversarialEquivalenceTests400
SoundEquivalenceTests1700
SoundTests1900
StateReportTests6600
SuiteManifestTests800
SuiteRecordedTests7200
SuiteSelfTests11100
SuperchipTests2100
Synertek65C02Harte25600
SystemViaTests18100
TapeBlocksTests2900
TapeBlockTests400
TapeCrcTests500
TapeFaultTests500
TapeLoadTests600
TapeLongRoundTripTests100
TapeProbeTests600
TapeRoundTripTests200
TeletextAdversarialEquivalenceTests400
TeletextGlyphsTests9900
TeletextTests5300
TestRomTests13000
TiaBallTests2100
TiaCollisionTests4000
TiaInputTests4100
TiaLineTests2000
TiaMissileTests2800
TiaMotionTests15900
TiaPaletteTests2600
TiaPlayerTests4600
TiaPlayfieldTests5500
TiaPriorityTests2200
TiaSoundTests5400
TransistorModelTests26600
TriangleTests1800
UefTests5700
UlaDisplayTests2600
UlaInterruptTests3300
UlaSoundTests3300
UlaTapeTests1400
UxromTests1500
Via6522Tests4200
ViaEquivalenceTests500
VideoUlaEquivalenceTests100
VideoUlaTests8900
WaitAndStopTests1100
Wdc65C02Harte25400
WsyncHaltTests16200

Speed

How many cycles a second the core runs, as a multiple of a 2 MHz machine. The design's target is at least 25 times real speed, for the core alone. It does not say which build that means. In this collection of 5 runs, against this site's reference (the BBC Micro's 2 MHz clock), the best native run is 54.0 times: met. In the same collection, the best browser run, compiled ahead of time, is 24.4 times: not yet met. A different collection of runs gives a different best. The reference is this site's choice, not the design's, and the verdicts assume it: the KIM-1 runs at 1 MHz, so against that machine every multiple would be 2 times as large.

Measured on 30 September 2026 on a KVM virtual machine, DO-Premium-AMD, 8 cores. The browser rows of the table ran in Chrome 153.0.8010.47; the Native row ran directly on the machine. A synthetic 6502 program of our own, run on a plain 64 KB array with no logging: 100 million cycles per run after a 5 million cycle warm-up. The figures are a record of one machine on one day, not a promise.

BuildBest, MHzTimes a 2 MHz machineRange, MHz
Native108.054.0103.2 to 108.0
Browser, interpreter5.02.51.9 to 5.0
Browser, ahead of time48.924.429.1 to 48.9

Where the core knowingly differs

Where the core knowingly differs from a reference it is tested against, or where no reference we trust exists. Each entry says what, why, and how the tests treat it. It was written with the plan, after the plan’s code had been run against every reference, and is kept true as the code lands.

The 65C02’s extra decimal cycle, in immediate mode

What. On the three 65C02 variants, ADC #imm ($69) and SBC #imm ($E9) take one extra cycle when the decimal flag is set. Tom Harte’s data records that cycle as a read of a fixed address: $007F, $0059 or $0056 for ADC on WDC, Rockwell and Synertek, and $0000 for SBC on all three.

Why we differ. A fixed address that changes between chips and between two sibling instructions looks like a property of the program that generated the data, not of the chip. In every other addressing mode the same extra cycle re-reads the operand’s address, so the core does that here too: it re-reads the immediate byte.

How the tests treat it. For those two opcodes, on those three variants, with the decimal flag set, the comparison checks that the third cycle exists and is a read, and does not compare its address or value. Everything else in those cases is compared as normal.

Synertek’s bit-instruction opcodes, where two references disagree

What. On the Synertek 65C02, which has no RMB, SMB, BBR or BBS, the opcodes in columns 7 and F are no-ops. Harte’s data says the column 7 opcodes are two bytes long and read zero page, and the column F opcodes three bytes, with an extra cycle in odd rows. Klaus Dormann’s extended test, set up to check them as no-ops, expects $07 to be one byte long.

Why we differ from Dormann. Harte’s data is the per-instruction authority in this project, and the core matches all of it. Which of the two is right about real Synertek silicon is not known here.

How the tests treat it. The Synertek build of Dormann’s extended test is assembled with rkwl_wdc_op = 2, which is the test’s own setting for leaving those opcodes out. Everything else in that test still runs.

WAI and STP

What. WDC’s WAI ($CB) and STP ($DB) have no data in Harte’s WDC set, because neither can be tested one instruction at a time.

How the tests treat it. Tests of our own check what they do: WAI waits for an interrupt and then either takes it or carries on, depending on the interrupt-disable flag, and STP stops until reset. The cycle counts follow WDC’s datasheet and are not checked against the chip. How many cycles WAI takes to wake is not asserted, because no reference we trust gives it.

65C02 interrupt timing

What. The NMOS interrupt tests are checked against the Visual6502 transistor-level model, and the 65C02 uses the same timing rules in the core. There is no public transistor-level model of the 65C02 to check that against.

How the tests treat it. The 65C02’s own interrupt behaviour follows WDC’s datasheet for the decimal-flag clear, the WAI and STP cycle counts and the wake rules. It is not checked against the chip. That the 65C02 times interrupts like the NMOS chip is assumed. The tests check the decimal flag and the pushed P, and the WAI and STP cycle counts, wake outcome and stop-until-reset; they hold no bus logs of a 65C02 taking an interrupt.

An NMI that comes while an interrupt reads its vector

What. The NMOS core takes an NMI whose edge comes while BRK or an IRQ reads its vector if the line is still active in the cycle after the vector’s high byte, after the handler’s first instruction; a shorter pulse is lost. An NMI whose edge comes while an NMI reads its own vector is lost, held or not. Until 4 October 2026 the core lost every NMI whose edge came on the vector’s low byte, a rule drawn in stage 1 from transistor-model runs that all released the line two cycles after it went active. The BBC Micro’s 8271 holds its interrupt line, and with the old rule DFS lost the interrupt that announces a command’s result often enough to hang: a scratch soak of disc commands stalled within 692 commands in every seed (task 12’s review), and none in 20,000 after the fix.

Why it is listed. It is no longer a difference from the transistor-level model: the core was changed to match it (commit e977cc9). It is listed because a public claim of stage 1 changed with it (the 30 September journal entries carry dated corrections), and because the model is the reference, not a chip measured on a bench.

How the tests treat it. TransistorModelTests compares the core with 266 runs of the Visual6502 model, 116 of them added with the fix, holding NMI or pulsing it for one to four cycles around the vector reads of BRK, IRQ and NMI; 13 of them fail on the old rule. DiscTests’ *TITLE case fails on the old rule too. The 65C02 variants share the code; their own interrupt timing is the section above.

JAM

What. The NMOS JAM opcodes (for example $02) lock the chip up. Harte records one step of one: the opcode fetch plus ten reads.

How the tests treat it. The core makes those eleven bus accesses and matches Harte’s data. What happens after that is not checked against any reference: the core reads $FFFF on every Step, ignores IRQ and NMI, and is cleared by Reset.

Unstable NMOS opcodes

What. ANE, LXA, SHA, SHX, SHY and TAS give results on real chips that vary between individual parts, and for ANE and LXA with temperature.

How the tests treat it. The core matches Harte’s data, which fixes the ANE and LXA constant at $EE. That is one answer, not every chip’s. One exception, since 6 October 2026: LXA on the Ricoh 2A03 variant uses $FF, the value Blargg’s instr_test-v5 passes with, and its Harte run leaves $AB out (the community test ROMs section of the NES, below).

The KIM-1: reading the 6530 timer after it has passed zero

What. Appendix H of the KIM-1 User Manual says that once the timer has counted past zero, reading either $1706 or $170E will “disable the interrupt option”. The MCS6530 data sheet says address line A3 sets the interrupt enable on every read or write of the timer, and $170E has A3 high.

Why we differ from the manual. The data sheet describes the chip; the manual describes how the board’s users should use it, and its own table one paragraph earlier says reading $170E enables the interrupt. Which one real silicon does after zero was not checked here.

How the tests treat it. Rriot6530Tests checks that a read with A3 high enables the interrupt. Nothing on a stock KIM-1 connects the timer’s interrupt to the CPU, so the monitor never depends on it.

The KIM-1: the data sheet’s timer example, off by one

What. The data sheet’s worked example writes 52 at divide by 8. Its text says the interrupt comes at (52 x 8) + 1 = 417 clocks, and its two later readings, $E4 at 444 and $AC at 500, agree with 417. Its Figure 5 says the interrupt occurs “at pulse 416”.

How the tests treat it. The timer follows the text and the two readings: the flag rises on clock N x k + 1 after the write. TheDataSheetsWorkedExampleHolds checks 25 at clock 213, 0 at 415, $FF at 417, $E4 at 444 and $AC at 500.

The KIM-1: what is modelled rather than measured

What. Four behaviours of the board come from a reasoned model, not from a reference that could be tested against:

  • Open bus. A read where nothing answers ($0400-$13FF and $1400-$16FF) returns the last byte on the data bus. No measurement of a real board was found.
  • RAM at power on is all zeros. Real static RAM starts with arbitrary contents.
  • The display. A digit shows each segment that was on for more than half of the cycles it was selected, and goes dark 20 ms after it was last scanned. That stands in for the eye, not for the LEDs.
  • Single step. The SST logic raises NMI on the cycle the CPU fetches an opcode outside $1C00-$1FFF. The machine treats the first access of every instruction, and of every interrupt sequence, as that fetch.

How the tests treat it. The acceptance tests depend on the display model and on single step, and pass with the original monitor ROM doing what the User Manual says it does. The open-bus value and power-on RAM are pinned by tests of the memory map and the boot state, so a change to either is seen.

The KIM-1: the teletype, where the model stops

What. The teletype (Kim1Teletype) is modelled from the User Manual, the board’s schematic and a disassembly of the monitor. It is not measured against a real board and a real Teletype Model 33. Five things are simpler than on the board:

  • Levels, not currents. The two 20 mA loops are logic levels. There is no loop resistance, no slow edge and no external supply, so a 60 mA loop, a reversed connection or a terminal that cannot do full duplex cannot be shown. The speed at which the monitor stops being able to measure RUB OUT depends on the real loop circuit, which is not modelled.
  • A polite keyboard. A queued key goes only when both loops have been quiet for four bit times. A person at a real Teletype does not wait, and a key typed while the monitor prints is lost, and garbles the line. Here it waits its turn, so a whole command can be queued at once.
  • Teletype keys wait for the keypad. The page’s host holds characters typed at the teletype until every keypad tap queued so far has been played and rested (Kim1Keystrokes.TypeAtTeletype). A person does not do this deliberately, but a person types after the monitor has answered a key, and the polite keyboard cannot see an answer that has not begun: after ST, the monitor takes a few milliseconds to start printing, and a character sent into that gap is garbled. The hold stands in for the person’s pause.
  • Overprint by replacement. The paper (TeletypePaper in the tests, teletype-paper.js on the page) puts a character where the head is and drops what was there. A real printer strikes over it. The paper also keeps only the last thousand lines.
  • PA7 as an output. A program that makes PA7 an output would fight the 7400 gate that drives it on the board. Here the pin shows the 6530’s output and the echo uses the gate’s level.

Paper tape is text through the keyboard and printer. There is no reader or punch.

How the tests treat it. Kim1TeletypeTests runs the original monitor through the teletype, and Kim1TeletypeLineTests runs the terminal alone with the line driven by hand. QueuedKeysWaitForBothLinesToBeQuiet and KeysQueuedWhileTheMonitorIsPrintingAreNotLost pin the polite keyboard, and a send with no wait (quietBits: 0) shows the loss it prevents. TeletypeKeysWaitForTheKeypadTapsQueuedBeforeThem and AStopKeyAndTypingQueuedTogetherAreNotGarbled pin the hold, and WithoutTheHoldAStopKeyAndTypingQueuedTogetherAreGarbled shows the garbling it prevents. Nothing tests the electrics or the overprint, because nothing models them.

The BBC Micro: the bus and the memory map, where the sources stop

What. BbcBus is the memory map and the 1 MHz stretch of bus.md. Where the sources stop, it chooses:

  • The 1 MHz clock’s phase at power on. A slow access waits one cycle from an even count of CPU cycles and two from an odd one. Which phase a real machine starts in is not known (section 6), so the count starts at zero, which is even. A program that times itself against the stretch could see the other phase on a real machine.
  • An empty ROM slot reads the high byte of the address, the last value on the bus. That was measured for an absent fast device, on one machine, not for an empty ROM socket (section 6, item 3). The OS reads an empty slot’s header at boot to decide whether a ROM is there, and with this value the slot fails that test as an empty socket does.
  • What is not fitted answers as the bus does: FRED and JIM read $FF, an absent fast SHEILA device the high byte of its address ($FE), an absent slow one $00 (section 1d). Each was measured on one machine by one poster, and the OS’s Tube probe and the DFS’s Econet probe depend on them.
  • $FE18-$FE1F, the station ID, is taken as slow. No source lists it (section 6, item 2). It matters only with Econet, which is not modelled.
  • At power on the ROM latch selects slot 0, an empty slot, and RAM is all zeros. Neither was measured (section 6, item 4): the OS writes the latch before it reads $8000, and a real machine’s RAM holds whatever its chips power up with.
  • The serial ULA is one byte (added 13 October 2026, models plan task 6): the last value written to $FE10-$FE17, kept for its bit 7, the cassette motor’s light. It reads 0 before the first write and no reset changes it, neither of which was found in a source (section 1e). Reads of it are the absent slow device’s $00, as before, and nothing else of the chip is there.
  • The chip counters count by address block (section 1f): a read of a write-only chip counts as an access to it, though no source says whether its select is gated by R/W. They change nothing the machine does; the trace test (BusTraceTests) holds every access, value and cycle of a session to the one main gave before they were added.

How the tests treat it. BbcBusTests pins the stretch from both phases, every slow and fast range, the empty slot’s value and the absent devices’ values, so a change to any choice is seen; none is a check against a machine. Task 15’s mutation pass found one change no test can see: in Service(), the bus brings the CRTC up to date before it asks the system VIA for its next event, and with that order reversed every test still passes, because the VIA brings the CRTC up to date itself whenever it is asked anything (its SyncInputs). The bus’s order is a second guard on the same seam, so the mutant behaves the same; removing the VIA’s own guard is caught.

The BBC Micro: the 6522 VIA’s shift register, mode 010 only

What. Via6522 models one of the shift register’s eight modes: 010, shift in under the system clock, because it is the only one the BBC’s ROMs use (the DFS, via.md section 1.8). In that mode IFR2 rises ShiftMode2Cycles (19) cycles after the SR read or write that starts it. That number was measured by counting pixels on the WDC datasheet’s drawing of the CMOS part (Figure 2-7, rendered at 260 dpi), and the sheet marks it [guessing - verify]. The eight bits are all taken from CB2 when the flag rises, not one per shift pulse, and CB1 puts out no shift clock.

The other modes (000, 001, 011, 100, 101, 110 and 111) are not modelled: the register can be written and read, but it shifts nothing and IFR2 is never set. A program that uses them, which nothing on a stock Model B’s boot or disc path does, will see no flag.

How the tests treat it. ShiftMode2_SetsIfr2ShiftMode2CyclesAfterAnSrRead checks the flag at the constant’s cycle, and ShiftMode0_SetsNoFlag checks mode 000. Neither is a check against a real chip.

The BBC Micro: timer 1 after a one-shot expiry

What. After timer 1 expires in one-shot mode, the datasheets’ text says the counter keeps decrementing past $FFFF; the datasheet’s figure, and Rich Talbot-Watkins from real machines, say it reloads from the latch as in free-run (via.md section 1.4 and its disagreement table). Which one the silicon does was not settled.

Why we chose. Via6522 reloads in both modes, following the figure and the real-machine report over the text. The operating system never reads timer 1 after a one-shot expiry, so the boot does not depend on it.

How the tests treat it. OneShotTimer1ReloadsFromTheLatchAfterExpiry_AnAssumption pins the choice, so a change to it is seen. It is not a check against a chip.

The BBC Micro: 6522 behaviour taken from words, not measured

What. Some of the VIA comes from the datasheets’ prose or from inference, with no cycle count to test against, and some measured quirks are not built:

  • The coincident acknowledge. A clearing access in the cycle a flag rises does not clear it, and IRQ follows a cycle late. Stardot measured this for timer 1 on real Model Bs and Masters (via.md section 1.9). Via6522 applies it to every flag set by the clock: both timers and the shift register. It does not apply it to CA1, CA2, CB1 and CB2, whose edges arrive between cycles.
  • Not built: an ACR write in the same cycle as a timer 1 expiry (measured: ACR $00 wins), a latch write racing the timer 1 reload (measured, but the rule could not be decoded from the published numbers), a change of ACR bit 5 taking effect one cycle late (measured), and the exact timing of a T2C-H write in pulse-counting mode. All are in via.md sections 1.4, 1.5 and 1.9.
  • From words only: the CA2 and CB2 handshake and pulse outputs (low from the access; in pulse mode high again at the start of the second cycle after it), and timer 2 counting a PB6 pulse when PB6 is low at the start of a cycle having been high at the one before.
  • Power-on values nobody measured: the timer counters and latches and the shift register start at zero, the PB7 timer output starts high, the four control lines start low, and the port inputs start at $FF (inputs with nothing attached read 1 on a real Model B). Reset leaves no one-shot armed.

How the tests treat it. The coincident acknowledge for timer 1 is Example09, from the real-machine result. The rest is pinned only where a test names it, and the BBC’s own firmware uses none of it.

The BBC Micro: the VIAs’ wiring and the keyboard, where the sources stop

What. SystemVia, UserVia and BbcKeyboard follow via.md sections 2 and 3, and in five places the sources give no measurement:

  • The latch is strobed on writes to ORB and DDRB only. The real board’s flip-flop (IC31) strobes IC32 on every write to the system VIA. The two are the same while PB0 to PB3 are outputs, which the OS sets at reset and never changes (via.md section 2.2). A program that made PB0 to PB3 inputs and then wrote some other register would, on a real machine, strobe whatever the floating pins read into the latch; here nothing would change.
  • What IC32 holds at power on is not known; its /CLR is tied high, so no reset clears it. It starts at $00.
  • PA7 with the keyboard disabled (latch bit 3 high) reads 0. Nothing drives it then, and the sheet recommends 0 with no speech chip; nobody measured it.
  • Autoscan is a counter that walks columns 0 to 15, one a microsecond, and CA2 is high while the counter’s column has a key down in rows 1 to 7. That is the schematic’s design (a 74LS163 clocked at 1 MHz), so a held key gives one edge per 16 microseconds; no source measured the edge’s timing.
  • Idle levels nothing measured: the system VIA’s PB6 reads 1, and the user VIA’s CB1 and CB2 idle high like the rest of the user port. CB1 and CB2 on the system VIA (the ADC and the light pen, not fitted) never change.

How the tests treat it. SystemViaTests pins each choice that a test can see. The OS’s own sequences (the link read, the key test at $F02A, the column test of the full scan and the CA2 interrupt) are driven through the bus as the ROM does them, and those are the checks that matter for the boot.

The BBC Micro: booting before the video and the disc exist

What. From task 5 the real MOS 1.20 boots to the BASIC prompt, but three parts of the Model B are not there yet, and each shows in what the machine does:

  • The 6845 CRTC was a set of registers until task 7, with no counters and no vertical sync, so the OS’s 50 Hz vsync interrupt never came. Since task 7 it is the counter model in the next section, its VSYNC drives CA1, and the OS takes a vsync interrupt every field.
  • The video ULA was a pair of registers that took writes and drew nothing until task 8. Since then it draws modes 0 to 6 (the next section but one); mode 7’s picture waits for the teletext chip, task 9. A read is Econet’s INTON and answers as an absent fast device, $FE.
  • No 8271 was fitted until task 12, so $FE80 read $FE. The DFS reads that status before it serves any call, saw bits 0 and 1 set, and stayed silent, so the Acorn DFS line a real Model B prints was missing from the boot screen (bus.md section 4b, corrected in task 5). Since task 12 the 8271 is there, its idle status is $00, and the line is printed.

How the tests treat it. BootTests reads the screen as character codes from mode 7’s screen memory, which needs no video chip, and expects the screen the ROMs print: BBC Computer 32K on row 1 and, since task 12, Acorn DFS, BASIC and > on rows 3, 5 and 7 (rows 3 and 5 held BASIC and > before). Tasks 7 and 8 put a working CRTC and video ULA in place of the stand-ins, and task 12 fitted the 8271.

The BBC Micro: the 6845 CRTC, where the model stops

What. Crtc6845 is the HD6845S counter model of video.md section 1.4, from the Amstrad CPC CRTC Compendium’s “CRTC 0” chapters and the Hitachi datasheet, with the two quirks section 1.6 asks for: the end of the frame decided while C0 is 0 or 1, and a line of two characters (R0 = 1) never disarming the vertical adjust. Where the sources disagree or stop, it chooses:

  • The half-line VSYNC is (R0 + 1) / 2 characters late, not R0 / 2. The Compendium puts it at C0 = R0/2, which for the BBC’s odd R0 (127 and 63) is a character short of half a line, and would make the vsync interrupts 39,999 and 40,001 cycles apart (39,998 and 40,002 at 1 MHz). On a real Model B a scope showed “exactly half a line (32us)” and interrupts were timed at about 40,000 cycles in both fields (video.md s1.4, S14). The model takes the BBC measurement; a one-character difference was not resolved by either.
  • The VSYNC width is counted in whole lines from the pulse’s start, so in an even field the pulse’s fall is half a line late too. The Compendium says a shortened VSYNC “stops at the end of the HSYNC of this line”, which suggests HSYNC drives the count; counted that way, both fields’ falls would land at the same point of a line and the interrupts would alternate 39,936 and 40,064 cycles, which the S14 timing rules out.
  • Not modelled: R0 = 0 freezing C9 and C4 (Compendium 13.2.6; here every character is a line end); a VSYNC started by writing R7 to equal C4 in the middle of a row, and the Compendium’s blocking of the VSYNC when R7 is written while C0 is below 2 (here VSYNC starts only at the start of row R7); the vertical display switched by an R6 write in the middle of a row; the balancing of an odd R9 in interlace sync and video between rows of even and odd lines, and the VSYNC a line late on odd rows that comes with it (here a field’s rows have R9 / 2 + 1 lines; the datasheet asks for an even R9 and the BBC uses 18); the parity rules when R8 changes in the middle of a frame; R9 written exactly at C0 = R0 changing C4 and C9 together; the light pen.
  • Choices nobody measured: a register write takes effect from the next character after the cycle it is written in, and the CRTC’s 1 MHz character clock ticks on the same even cycles as the VIAs; R3’s HSYNC width 0 gives no HSYNC (section 6, item 9); the cursor is on when RA is between R10 and R11, so R10 above R11 gives none; the cursor blinks with a 50 per cent duty, counted from the reset; C0 running past R0 to 255 ends the line there; the field after a reset is an even one; R0 to R11 read $00.
  • What resets it. Power on and BREAK both reset the CRTC’s counters and keep its registers. Its /RES is taken to be on RST, which the hardware guide says goes to all the circuitry but the system VIA (S9 s3.14); IC2’s pin was not read on a schematic. A reset that drops a high VSYNC is an edge on CA1.

How the tests treat it. Crtc6845Tests asserts the sheet’s section 5 numbers for each mode set: 40,000 cycles between vsync falls, 39,936 with interlace off, 625 lines a frame with VSYNC at line 280, ten rasters a field row in mode 7, 40 characters and HSYNC at 49 for 4 in mode 4, and 256 or 250 displayed lines, plus the two quirks. CrtcEquivalenceTests and the bus tests compare the lazy chip with a per-character model of the same rules (Oracle/ReferenceCrtc6845.cs), so they pin the model, not the hardware where the list above says the model guessed.

The BBC Micro: the video ULA, where the model stops

What. VideoUla is the ULA of video.md section 2: the control register, the palette with its XOR 7 and flash, the shift register read at bits 7, 5, 3 and 1 and filled with 1s, DISEN as DISPTMG and not RA3, the cursor’s three segments, and the address translation with the hardware wrap. It draws a line at a time from the CRTC’s state at the line’s end, and before any write that changes what it draws it draws up to that write’s cycle. Where the sources stop or the model takes a shortcut, it chooses:

  • Screen memory is read when a line is drawn, not in each byte’s own cycle. The ULA draws a line at its last character, or up to a register write that comes first, and reads that stretch’s bytes then. A store to screen memory in the middle of a line’s scan is seen by the whole of the stretch drawn after it, where a real ULA fetching byte by byte would show the old bytes left of the store and the new ones right of it. Doing better would mean logging every store the CPU makes to RAM, which is most of its writes, so every program would pay for the few that race the beam. The equivalence tests change screen memory only where the two readings agree, which is why they can be exact.
  • Register writes are exact to the character, not the cycle. Palette, control, CRTC and latch writes are seen from the first character clocked after the write’s cycle. At 1 MHz (modes 4 to 6) a character lasts two CPU cycles, and a write in the second of them is still applied from the next character, half a character (8 of the framebuffer’s pixels) after the write: the ULA’s pipeline delay is not known (next item), so placing a write inside a character would be guesswork. APaletteChangeInTheMiddleOfALineChangesTheColourFromTheNextCharacter pins both halves.
  • Together these narrow Dan’s choice in the design of a cycle-accurate video path rather than a scanline renderer: registers to the character, screen memory to the line. The narrowing was the task 8 controller’s, for speed, and the journal entry for 3 October 2026 says exactly what is and is not cycle-exact.
  • The ULA’s pipeline is taken to have no delay. video.md s6 item 3: how many characters lie between the CRTC’s fetch and the pixel is not documented, and nor is how DISEN and CURSOR line up with it. The model has none (VideoUla.PipelineDelayCharacters is 0): a character’s pixels start in the cycle of its own character clock, and a register write in cycle t is seen from the first character clocked after t. So a palette change in the middle of a line changes the colour from the next character, where the sheet’s guess was “from the next pixel”; a real machine may change it a character or two later, or part way through a character.
  • The RA3 gate is taken to be off while the teletext select is on. Mode 7 runs RA 0 to 19 and is not blanked, so something must switch the gate off; video.md s6 item 4 says no source describes it. Task 9 kept this choice: the teletext path never looks at RA3, and a test shows a descender on the row’s last two lines. How the board does it is still not known.
  • Mode 7 is the SAA5050’s picture, with the ULA’s cursor drawn over it; the next section says where that model stops.
  • What the registers hold at power on is not known, and the model takes zero, which also starts the CRTC on the 1 MHz clock. The ULA has no reset pin (the pin list in the sheet’s S8), so BREAK leaves both registers; the OS writes them again in the mode change every BREAK makes, so nothing the OS does depends on it.
  • The shift register fills with 1s. BeebWiki says “or random values on some machines”. It shows only where a character outlasts its byte, 80 columns on the 1 MHz clock, which no OS mode uses.
  • Not modelled: the INVERT pin on link S26, so the picture is always normal video; any analogue behaviour of the RGB outputs.
  • Where the picture lands is the model’s, not a television’s. The framebuffer measures across from the CRTC’s character 0 and down from its frame start (Framebuffer’s remarks), so moving HSYNC with R2 or VSYNC with R7 does not move the picture as it would on a screen, and only the first 256 lines of a CRTC frame are kept. With the OS’s registers every mode lands in the same place.

How the tests treat it. VideoUlaTests asserts the sheet’s numbers: the eight control bytes, the palette protocol and its flash pairs, one byte per mode turned into pixels by hand, the address for MA and RA with the wrap for each mode and the ROM’s latch bits, RA3 blanking in modes 3 and 6, a scroll by R12 and R13, the cursor’s width per mode, the flash select on the screen, a palette change in the middle of a line, and mode 1 booting with its banner drawn. VideoUlaEquivalenceTests compares the whole framebuffer at the end of each frame (at most one every 4,000 cycles) with a plain model that draws every character in its own cycle (Oracle/ReferenceVideoUla.cs), so it pins the model, including the choices above that both share, not the hardware.

The BBC Micro: the SAA5050 teletext chip, where the model stops

What. Teletext is the SAA5050 of video.md section 4 and the Signetics datasheet: the English character set (Bedstead’s CC0 table, checked against all 96 glyphs of the datasheet’s Figure 11), character rounding as the datasheet describes it, the block graphics of Figures 9 and 10, the control codes of Table 1, double height, hold graphics, conceal and flash, and the chip’s own count of lines and rows. VideoUla feeds it and draws its cells. Where the sources stop, the model chooses:

  • $80 and $90 do nothing. Table 1 marks codes 0/0 and 1/0 (NUL and DLE) reserved, “normally displayed as spaces”; ETSI’s alpha and graphics black are not on this chip. Whether the BBC’s chip really ignores them is video.md s6 item 5. The box codes ($8A, $8B), SO and SI ($8E, $8F) and ESC ($9B) also do nothing but show a space: the PO and DE tie-offs that decide the boxes on the board were not read (s6 item 6).
  • Hold graphics is the die-shot description’s shift register (video.md s4.3, its S15), not ETSI’s rule. The chip loads a register with each cell’s block, a space for anything else, and under hold shows the register on a control cell in graphics mode instead of loading it. Hold takes effect from the cell after $9E, so the hold code’s own cell loads a space, which is why the SAA5050 holds only blocks drawn after the hold code. The sheet’s table in s4.2 calls $9E set-at, as ETSI does; this model follows s4.3. Release ($9F) is taken to act from the next cell; the die-shot simulation’s two characters is doubted by its own author (s6 item 11). Capitals in graphics mode ($40 to $5F, which blast through) are taken to load a space into the register, inferred from the description of the “no alternative graphics” signal; ETSI would have them leave the held block alone. A height code that changes the height stops hold on its own cell, $8D included, though $8D changes the height only from the next cell (Teletext.HeightChangeStopsHoldOnItsOwnCell).
  • Double height maps rows the model’s own way (s4.3, s6 item 5): the upper row shows the cell’s lines 0 to 4 (its blank top line and glyph rows 0 to 3) and the lower row lines 5 to 9 (glyph rows 4 to 8), each on two lines of the field, rounded against the line before on the first and the line after on the second, the same in both fields. The sheet’s guess was glyph rows 0 to 4 for the upper half and 4 to 8 for the lower, repeating row 4; the model instead splits the ten-line cell into two halves of five, so no row is shown twice. A new field starts with an upper row (the row state is reset at DEW, which no source states), and the model sees a double height code only on lines drawn with the teletext select on.
  • Separated graphics leave the left two half-dots and the last line of each block as background (Teletext.SeparatedGap): no source gives the positions (s6 item 5). Figure 10, drawn to scale, shows each block flush with the top and right of its place, with gaps left and below of about two of the cell’s twelve half-dots and two of its twenty frame lines.
  • The chip counts its own lines. It is taken to step its line count at the end of every line during which DISPTMG after the skew (LOSE) was high, and to reset it, with an upper row, at DEW, which the model sees as VSYNC having risen by the end of a line. The datasheet and the sheet say DEW resets the count and GLR and LOSE move it, not on which edge (s4.1). So a program that changes R9 in mode 7 does not move the rows, as the sheet’s MODE 7/75 note says real hardware does not.
  • The pipeline is three characters, and lined up by the R8 skews. The cell for the byte fetched in character c is shown if DISPTMG after the skew is high in character c + 1 (the chip latches the byte with LOSE a character after the fetch), and its picture leaves the chip three characters after the fetch (VideoUla.TeletextDelayCharacters), when the ULA’s cursor inverts it. No source gives either figure; three is what the datasheet’s 2.6 to 2.77 us and the OS’s two-character cursor skew plus segment 1 both give. The datasheet puts graphics out about a sixth of a microsecond (one dot) earlier than alphanumerics; the model draws both in the same cell.
  • Cells are drawn where their bytes were fetched, three characters left of when they leave the chip, so mode 7 fills the same 640 pixels as the other modes. A pixel shows the half-dot under its centre: 16 pixels for 12 half-dots at 1 MHz, 8 at 2 MHz.
  • The ULA’s display enable does not blank the teletext picture; the chip’s own LOSE does. Inferred: DISEN is a character ahead of the chip’s output, and if it gated the picture the last cells of each row would be cut.
  • Changing the teletext select in the middle of a line shows the three cells already in the chip as black, and the model does not run the chip’s decoding on the stretches drawn with the select off, so its colours and attributes start again from the row’s defaults when the select comes back on that line.
  • Flash is off for 16 fields and on for 48 of every 64, the die-shot figure (s4.3), not the datasheet’s 0.75 Hz at 3 to 1. The counter is 0 at power on.
  • At power on the chip’s counts are taken to be 0, an upper row; the chip has no reset pin, so BREAK leaves it.
  • Character rounding is the datasheet’s description: compare each row with the row before (even field) or after (odd field), and give an off dot the half next to an on dot where the two rows cross diagonally. The rows above the cell’s first line and below its last are taken as blank.
  • Screen memory is read when the line is drawn, as in the other modes.

How the tests treat it. TeletextGlyphsTests checks every glyph against the grids typed from Figure 11. TeletextTests asserts, half-dot by half-dot and worked by hand, the colour codes, flash and steady, the backgrounds, conceal, the blocks of Figures 9 and 10, blast-through capitals, rounding in both fields and in double height, the double height halves and the lower row’s background, hold and release with the SAA5050’s late start, the held block’s own form, height change and conceal against hold, the flash’s 16 and 48 fields, the chip’s line and row count, and on the machine the text, colours, descenders and cursor of mode 7 and the boot banner. VideoUlaEquivalenceTests compares the lazy ULA’s mode 7 frames with the per-character oracle, whose teletext chip (Oracle/ReferenceTeletext.cs) is written separately and works out each half-dot directly; it pins the model, including the choices above, not the hardware.

The BBC Micro: the SN76489 sound chip, where the model stops

What. Sn76489 is the chip of via.md section 4: three tone counters, a noise counter and a 15-bit shift register (seed &4000, taps 0 and 1, white or periodic), the 2 dB attenuators, and a unipolar mix of the four, 0 to 1. Where the sources stop, the model chooses:

  • A tone period of 0 counts as 1024. No source establishes it for a real chip (s4.3): SMS Power treats 0 like 1, a constant level, and jsbeeb (a cross-check only) like 1024. The sheet recommends 1024, because a 10-bit counter loaded with 0 would pass 1023 before it reached zero, and the model takes that. The same holds for the noise at rate 3 when tone 3’s period is 0. The OS never writes a period of 0: its tables give 25 at the least.
  • A write lands at once, when latch bit 0 falls, after the chip clock of that CPU cycle. The real chip takes about 32 of its clocks to load and was measured responding 3.7 to 8 microseconds after write enable fell (s4.1); the OS holds write enable low for 17 cycles and pads 21 more, so it never writes inside that window, and taking the byte at once changes nothing it does. Holding write enable low does not take the byte again every 16 microseconds as the real chip does, so sample-playing code that relies on that re-latch (and the noise reset each re-latch makes) is not modelled.
  • The chip clock is every eighth CPU cycle, from cycle 0. The chip runs on the video ULA’s 4 MHz divided by 16; its phase against the CPU’s 2 MHz is not documented, so a chip clock is taken to fall at the end of every CPU cycle that is a multiple of eight.
  • Power on is silent, with every period and the noise control 0, the tone counters at 1024, the noise counter at 16, every flip-flop low and the shift register at &4000. A real chip starts in an unknown state (s4, “Could NOT establish”); the OS silences it at reset within about a quarter of a second.
  • Rate 3 noise has its own counter, reloaded with tone 3’s period, as SMS Power describes it, rather than shifting on tone 3’s own output edges, which the datasheet’s “tone generator 3 output” might mean. The rate is the same; the noise’s phase against tone 3 may differ.
  • A write to the noise control does not reset the noise counter or its flip-flop, only the shift register; no source says either way.
  • A sample is the mean of its chip clocks (box averaging), not the output of an analogue chain. A real BBC’s filters smooth a period-1 tone’s 125 kHz into a steady half level; the box average gives a sample of five or six clocks (at 48 kHz) a level within a tenth of the channel’s amplitude of that, so period-1 sample playback carries a little noise the real machine filters away. No DC is removed and the output is not inverted (s4.6: neither is audible).

How the tests treat it. Sn76489Tests asserts the sheet’s worked examples (s4.8), the noise vectors (s4.4), the volume table (s4.5) and the noise rates, and pins the period-0 choice. SoundTests checks the write protocol through the system VIA, the cycle a write lands in, and on the real OS the reset writes, the start-up beep, the pitch table and a SOUND command’s tone in the samples. SoundEquivalenceTests compares the lazy chip with a clock-by-clock oracle (Oracle/ReferenceSn76489.cs), written separately from the same model; it pins the model, including the choices above, not the hardware.

The BBC Micro: the 8271 and its discs, where the model stops

What. Fdc8271 is the minimal controller of disc.md section 3, which the fact sheet’s probe showed DFS 1.20 cannot tell from a real drive, and DiscImage holds .ssd and .dsd files. Where the sources stop, the model chooses:

  • Time. Seeks are instant, the head never needs to load or settle and the disc never spins up. Every drive command reaches its first byte, or its result if it moves none, a fixed 2,000 cycles after it starts, the sheet’s guess at a plausible figure; DFS passed with anything from 0 to 60,000 (s1h). Bytes come every 128 cycles, a sector after another with no gap, and the result one byte time after the last byte. A real drive would wait for the sector to come round.
  • Late data. A byte not taken in its 128 cycles ends the command with $0A, INT staying high from the byte to the result, as the sheet’s design has it (s3). Corrected in task 12b: task 12 first let INT fall for a cycle between them and listed a residual hang, both because the core lost an NMI that a real 6502 takes; the core is fixed, see the 4 October journal entry.
  • Not ready is latched by a drive command that finds no disc, and the next Read Drive Status reports not ready once and clears it (D1’s footnote: issue it twice to clear it on a ready drive). Ready is “a disc, the drive selected and the motor bit set” in the drive control port; the index-pulse timer that makes it on a real BBC is not modelled.
  • Not modelled: Scan, Read ID and Format end after the start delay with result $00 and move no data; deleted-data marks (Read Data and Deleted reads as Read Data, Write Deleted Data writes ordinary data); DMA mode (the mode register is stored and ignored); bad-track registers; 128-byte and 512-byte sectors (none exist on these images, so asking for one gives $18); the index, fault and count lines (they read 0); holding the chip in reset (a 1 written to $FE82 resets it at once); an opcode not in the datasheet ends at once and does nothing. $FE82 and $FE83 read $FE, as nothing drives the bus. $FE88-$FE9F repeat $FE80-$FE87, the block decoded by address bit 2 alone, which the sheet infers from the board’s decode (s1a); nothing uses it, and BbcBusTests pins it. The drive control input port (special register $22) reads like Read Drive Status, a guess, since D1 gives no layout and DFS never reads it.
  • Power on and BREAK. At power on the chip is as after a reset, with every special register 0. BREAK leaves it alone: no source read says its reset pin is on the reset line, and the DFS resets it through $FE82 itself.
  • Images. A .dsd is read track interleaved, the layout the sheet calls the most common (s4); a sequential one reads wrongly. An image shorter than its disc is extended with zeros, as the sheet recommends, which has never been tried against a real drive because no real disc is short. 40 or 80 tracks is decided by the length, except that an image short enough to be 40 tracks whose catalogue says 800 sectors is taken as an 80-track disc trimmed to the part in use (s4’s second test).

How the tests treat it. Fdc8271Tests asserts the sheet’s chip test (s3), the status values DFS saw (s1b), not ready, write protect, sector not found, side select, late data and the head unloading, on the chip alone. DiscImageTests checks the image layout and the blank catalogue, and DiscTests the real DFS through the machine: *CAT, *SAVE, *LOAD, *RUN, *INFO, *ACCESS, *TITLE, *OPT 4, *DELETE, the error messages, the empty-drive poll and the disc swap. FdcEquivalenceTests compares the lazy chip with a cycle-by-cycle oracle (Oracle/ReferenceFdc8271.cs), written separately from the same model, on its own, on the bus and through DFS; it pins the model, including the choices above, not the hardware.

The BBC Micro: its page in the browser, where it is not the machine

The page (site/public/bbc-micro.js, on the host BbcHost in src/Dbhq.Machines.BbcMicro.Wasm/) puts a PC’s keyboard, screen and speakers in front of the model. Where that differs from sitting at a Model B:

  • Every key is held for at least 40 ms and rested 40 ms before the same key goes down again (BbcKeyPresses, 80,000 CPU cycles each). A browser can report a key down and up in the same frame, with no machine time between, and the OS, which reads the keyboard on its 100 Hz tick, would never see it. On a real keyboard a tap that short is missed; here it counts. A key held longer is held as long as it is held, so the OS’s own auto-repeat is unchanged. Keys are played in the order they came, so a key may still wait behind the hold of the one before.
  • Keys are mapped by where they are on a PC keyboard (site/public/bbc-keys.js), so some BBC keys have no PC key here: TAB (Tab moves the focus, so the page never keeps the keyboard), SHIFT LOCK, and the red function keys f0 to f9 (the browser keeps its function keys). Those, and every other key, are on the page’s on-screen keys, where a tap is a press and a release and SHIFT and CTRL latch for the next key rather than being held. CAPS LOCK is one press for each time the PC key goes down, whatever the PC does with its own light.
  • The picture is the framebuffer, shown four wide by three high, with no model of a television: no scan lines, no blur between lines, no glow, no overscan and no curve. The framebuffer starts at the CRTC’s first displayed character, not at a fixed distance from sync, so the picture does not move when a program moves the sync, as it would on a television (Framebuffer).
  • The sound has its steady level taken off by a high-pass filter in the worklet (site/public/bbc-audio.js), standing in for the coupling capacitor on the machine’s output, whose real value is not modelled. It plays through a short queue that is cut back when it grows past 0.15 s, so a long stall drops sound rather than playing it late.
  • One drive. The model has both of the 8271’s drives; the page offers drive 0 only.
  • A disc changed on the page is not seen by DFS at once, as on a real BBC: DFS keeps the catalogue it last read until the drive stops, a few seconds after the last disc command, or until *CAT. The page says so, and does not make DFS read the new disc when it goes in (DiscTests shows the old catalogue until DFS reads it again).

The BBC Micro: its two 3D models, where they stop

What. The outside model (site/src/models/bbc-micro-case.js, drawn by bbc-micro-case-scene.mjs) and the inside model (bbc-micro-board.js, drawn by bbc-micro-board-scene.mjs) on the BBC Micro’s page. They are measured by the offline tools in tools/bbc-micro-model/ from flatbed scans of a bare Issue 7 board (I1, I2), photographs of populated boards (I5, I6) and of a whole machine (O1 to O5, O8-I), an open keyboard drawing in KiCad (K1), a connector maker’s drawing (P-TE_1757819) and Acorn’s Service Manual (D1); none of them is Acorn’s drawing of the board or the case. The ids are those of tools/bbc-micro-model/data/sources.json. Every figure below is read from the data file and key named beside it, measured on the day the journal (docs/journal/2026-10-04-the-bbc-micro-models.md, tasks 0 to 9b) gives, and the tests named hold it. Each limit a visitor would notice is also said in the note under its model, under “What it does not show, or shows less well”.

The copper is traced to look at, and its connections are not verified. Both held-out checks on it failed, and both stay recorded as failed. The nets check, that the ground pins of the chips whose pinouts were read from a maker’s data sheet join in one net and their +5V pins in another: 39 of 51 ground pins in the largest ground net, 30 of 51 +5V pins in the largest +5V net, and a ground pin and a +5V pin in one net (copper.json, nets, verdicts.nets “fail”); the journal’s “Why the nets fail” finds one merge and several breaks, and does not say where the merge is. The component side against I5, 8BS’s photograph of a populated board: an intersection over union of 0.411 over about 17,127 square mm, against 0.50 (copper.json, againstI5.iou, againstI5.comparedMm2, verdicts.againstI5 “fail”). The registration of I5 that check rests on passed (againstI5.registration.heldOutMm.median), but its pins were chosen where they fitted well, so that pass is optimistic and not an independent check. The map is kept, to look at; a re-trace needs a new check, fixed before it runs (the plan’s Deferred list).

The print hides copper. Of about 8,624 square mm of print on the component side, copper was recovered under about 700, only where a track runs on in line either side of it (copper.json, print.areaMm2, print.recoveredMm2); the wide blocks of print (outlines’ corners, the large lettering, the logo) are drawn as print only.

Both checks on the parts failed, and the model keeps the scan’s places and the manual’s parts. The manual’s places: after one similarity fitted to every placed IC, five are more than 10 mm from table 8.1’s place, the worst IC94 at 97.22 mm, then IC74, IC75, IC42 and IC39, with the median 1.44 mm (parts.json, manual.check, verdicts.manual “fail”). The markings read on I5: 80 read of the 83 chips I5 shows populated outside the ROM sockets, and 11 disagree with table 8.1, IC5, IC31, IC61 to IC68 and IC77 (parts.json, identities, verdicts.identities “fail”). The causes, looked at after the run: IC5’s marking has a date code on the next line, which the rule reads as a digit after the part (a flaw in the rule, not changed after the run); IC61 to IC68 are Mostek MK4516s, a second source of the 4816 the rule has no list for; and IC31 and IC77 are below. So the model names every chip with table 8.1’s part, IC61 to IC68 included, and places it on its footprint in the scan.

Table 8.1 has what look like misprints. IC94 is given at (45, 93), where the board prints it beside IC95, the same part, which the table gives at (20, 193), so 93 is probably 193 [inferring]. IC31 is given as a 74LS34 and reads 74LS74AN on I5 and DM74LS74AN on I6, like its neighbours IC30 and IC34, so 34 may be a misprint [inferring]. IC77 is given as a 74S00 and reads 74LS00N on both boards, and the manual’s own modification B lists “1 off 74LS00 IC77” (PDF page 35), so the manual disagrees with itself. The model follows the table in each (ic-table.json, parts.json). IC74 and IC75, the two DIPs that lie across the board, are off the manual’s places by the convention, which was settled on parts lying down the board (the journal, task 5, “Why the two checks fail”).

The fitted set is the emulated machine’s, not the board in the photographs. The model fits what a Model B with the 8271 disc interface and the DFS has, and no Econet or speech, by the Service Manual’s upgrade lists (section 4, PDF pages 35 to 40; the record is the table in docs/bbc-micro/facts/models.md, “The fitted set”). I5’s board is the other way round: Econet fitted and the disc interface’s sockets empty. So I5 was a check on identities and places, not on which chips are fitted, and the model shows chips that I5 does not have and leaves out chips it has. A chip not fitted is not drawn at all, not even as an empty socket, and IC100 and IC101, the spare sideways ROM sockets, are left empty. Which physical socket answers the machine’s paged ROM slots 14 and 15 was not looked into: BASIC is drawn in IC52 by table 8.1’s role and the DFS in IC88 by modification D.

The board’s scale across it is between pass and stop. Down the board the scale passes; across it, the median error of the rows long enough to be scored, each scaled to a 40-pin row, is 0.136 mm, between the 0.10 pass and the 0.20 stop (frame.json, heldOutX.scaledErrMm.median, recorded with the check as first written, which stopped, and its revision). One connector row, PL11, 40.64 mm long by its pitch, reads 0.423 mm long end to end (frame.json, heldOutX.rows, its errMm), which the scan cannot explain [guessing - verify]. The site’s to-do test for a strict pass of that median stays a to-do.

The resistors and capacitors are inferred, not read. Every two-lead part is a pair of pads with print along the line between them (parts.json, passives, its byKind split into lying and standing by the distance between the pads), drawn as a plain cylinder or box of a typical size: no value, band or marking was read, and a part the print does not join, or a pair the rules take wrongly, is not checked. The pads of 7 DIP pins were inferred where their row puts them, not found (registration.json, padCounts.bySource.inferred), and the two 8-pin DIPs, IC16 and IC19, were placed from pads named by hand, IC19’s pin 3 inferred (marks.json, parts.eightPin). Every height in the inside model is a typical one for its package, none measured (parts.json, model.heights, each measured false), because no photograph of a populated Issue 7 board from the side was found. The track map has 8 pixels to the millimetre (copper.json, mapPxPerMm), so close up a track’s edge is soft.

The case’s size is the Service Manual’s, from its Model B+ section, and the photographs disagree with it in two directions. The model is 415 by 345 mm and 73 mm high with its feet (case.json, footprint, heightMm, D1’s section 3.11, which is in the B+ section and is taken to hold for the Model B); the Science Museum gives 410 by 345 by 75 mm (D3 in models.md). Three measures on the photographs point different ways, and none is resolved. Two rest on K1’s size: on O1’s case top registered to 415 by 345 mm the keys read 1.0387 times K1 (caseTop.scale), and the opening’s two triangulated front corners imply 1.0373 (k1ToCase.impliedScale); if K1 is true to size, both make the case narrower, about 400 mm, and the first may be partly parallax, the key tops standing above the plane registered. They share K1 and O1, so they are not independent. The third, the case’s width on O2 on the scale of the 15-way D socket’s posts, makes it wider, 425.1 mm (widthOnRear.mm). Nothing was rescaled to fit.

The outside mixes two frames. The keys, the lights and the opening are placed on a frame that takes the case as 415 mm wide; the rear’s ports keep their places on O2’s D socket scale, on which the case reads about 425 mm (case-parts.mjs, REAR’s note). SK1, at about 381 mm, would land about 9 mm differently on a 415 mm scale. On that scale the board’s left edge is 104.64 mm from the case’s left end (boardInCase.x), which, with the board 309.99 mm wide (frame.json, board.widthMm), puts its right edge about 0.4 mm inside the case’s 415 mm, leaving no room for the wall, so the board’s place across the case is good to a few millimetres, not to the wall. The rear check passed (5 of 5 ports within 2.0 mm of their sockets plus that offset, rearCheck), but it tests the D socket’s scale across the rear, not the offset itself. The video socket (SK2, on the case) and the Econet socket (SK7, not on the emulated machine) were placed from O2 alone and not checked.

The front edge could not be checked. Its width corrected for parallax needed the camera’s height above the keys measured independently of the 415 mm, and none could be had: K2, the keycap model that would have given the step between rows, could not be fetched, O1 has no Exif and looks almost straight down, O4’s and O5’s camera is another camera, and the key fit’s own camera could not fail the check (case.json, frontEdge.h.from, frontEdge.verdict “not measurable”, decided before any corrected width). The raw width on the key plane, 403.5 mm (keys.json, frontEdgeMm), stays recorded with the stop it crossed on 4 October 2026. The front edge’s depth below the key plane was measured anyway, 6.18 mm with a standard error of 2.80 (frontEdge.d).

The key tops’ height rests on two cameras that agree only where the legends are. The side profile’s check point, the key A, lands 0.45 mm from K1’s place, inside 2.0 mm (case.json, profileCheck), so the profile is the triangulated one, not the fallback. A lies among the legends the cameras were fitted on. The opening’s two front corners, outside them, come out about 5 mm apart in height though the case top is level (triangulation.topAtOpening.z), which was not explained and is most of the standard error above.

K1 is a replacement keyboard, not Acorn’s. The key centres and sizes are Dominic Beesley’s KiCad drawing of a new keyboard for the BBC Micro (K1, read from the dbhq-uk fork), checked against O1 and O3: each key held out, 0.395 mm at the median over 50 keys on O1 and 0.205 mm over 36 legends on O3 (keys.json, o1.heldOutMm, o3.heldOutMm). That says K1’s layout fits the photographs to about half a millimetre; it is not Acorn’s drawing.

What is typical or simplified on the outside. The keycaps are tapered blocks with flat tops, not sculpted row by row, because K2 could not be fetched. Each carries its on-screen key’s legend, one each (LEGENDS in site/public/bbc-keys.js): the shifted symbols the real keycaps print are not drawn, the space bar is blank, as on the machine, and every word is in the site’s own type. Each key’s colour was read by eye on O1 (case-marks.json, keyColours), after two clusterings of measured colour each disagreed with O1. The badge strip carries its words and not the BBC’s owl. The feet, the corners’ radius, the board’s height and its place front to back, the underside panel round the connectors, the wall and the ports’ sizes are typical (case.json, typical, each measured false), as are the feet’s places, the keys’ travel and the keycaps’ taper in the scene. The dark panel round the rear’s ports, the recess left of the keys, the screws and the labels underneath are not drawn.

The machine’s state, where the model reads it. The cassette motor’s light follows serial ULA control bit 7, as two sources say; the lock lights are lit by a low latch bit, an inference from the operating system’s routine and its power-on state (docs/bbc-micro/facts/bus.md, section 1e, [inferring]), so before the machine boots both lock lights read lit. The control byte reads 0 before its first write, and the counters count a read of a write-only chip as an access to it (both in “The BBC Micro: the bus and the memory map, where the sources stop”, above, and bus.md section 1f). A mark on the inside says the processor reached a chip’s addresses in the last quarter second, not that the chip did anything: the ACIA and the uPD7002 are counted though they are not emulated, and the serial ULA though only its control byte is. The sound chip is counted by the bytes the system VIA strobes into it.

How the tests treat it. site/tests/bbc-models.test.mjs holds every figure and verdict in this section to its data key, reading this file (added after task 10’s final review, which found that nothing read it). It also pins the figures themselves where they live: the copper’s two FAILs with their figures and the plan’s words, the parts’ two FAILs, the fitted set against models.md’s table, the case’s size as D1’s, the front edge as not measurable, the check point and the rear check recomputed, and the methods’ files by the hashes the journal recorded before each check ran. bbc-models-page.test.mjs holds every caption, note and limit of both models word for word against the page, and the limits by their key phrases. A re-run of the tools that moves any figure fails until the words move too. Task 10’s mutation pass (14 October 2026, tools/probes/bbc_models_mutations.py; the table is in the journal’s “Task 10” section) planted faults one at a time in the data, the modules, the tools, the credits, the page’s wiring, the browser check and the machine’s counters. Each fault no test caught then has a test that fails on it now, and the limits below are the ones that pass found. Two limits remain, by design. Four faults in the tools’ scripts and data are caught only by the hashes the site tests pin them to, which fail on any change made without the journal recording it, and not by a test of what the change does; a re-run of the changed script is then caught by the tests of its outputs. And the browser check runs only in CI, so its own judgements are held in node by their text, as the inside’s and the lights’ are: a judgement weakened in some other way is for review, and for the check’s log, which prints what it saw.

The NES: the bus, where the model stops

What. Task 3 of the NES plan, NesBus and Nes. The sources are docs/nes/facts/bus.md and timing.md.

RAM at power on is zero. A real console’s RAM holds an undefined pattern, and some games read it. The model clears it to zeros so a run is repeatable. PowerOn does it, and Reset does not touch RAM.

The PAL fourth dot falls in the fifth cycle of every five. The accumulator starts at zero at power on and gives 3, 3, 3, 3, 4. A real console may start in any of the five phases (timing.md section 3), and the pages do not say which is common. The tests check the sum, 16 dots in 5 cycles, and this phase: NesBusTests.ThePalDotsRunThreeThreeThreeThreeFour on a bus that was never powered on, PowerOnPutsThePalFourthDotInEveryFifthCycleCountedFromPowerOn through a power on, and nestest’s log on PAL. Before the mutation pass of 6 October 2026 only nestest saw the power-on phase, and nothing saw a second power on that left the accumulator where it was.

The reset button leaves the PAL phase where it was. Reset puts the PPU back at line 0 dot 0 and does not touch the accumulator, so after a reset the fourth dot can fall in any of the five cycles counted from the PPU’s new line 0 dot 0, depending on how many cycles ran before the button. The pages read do not say what a console’s reset does to the two dividers; this is the model’s choice, not a fact (timing.md open item 2). NesBusTests’ AStatusReadOnTheDotTheFlagIsSetOrTheNextReadsItAndStopsTheNmi uses it on purpose, to move the cycles’ starts against the PPU’s dots on PAL.

The order of the dots and the access inside a cycle was measured in task 4 against the ten ppu_vbl_nmi singles: two dots before the access, the rest after, and the CPU sees the interrupt lines as the chips held them when the cycle began. It is one alignment of the several a real console can power up in (timing.md section 4), the one the test ROMs are written for. On PAL the same rule is applied with no test to check it. The IRQ line follows the NMI line’s rule, and task 8 checked it with pal_apu_tests 08.irq_timing, which fails a cycle either side of it (timing.md section 3).

Open bus is the last value that crossed the bus. A read of $4015 leaves it alone (NesBusTests.AReadOf4015LeavesTheOpenBusAsItWas, added when the mutation pass of 6 October 2026 found nothing held it). Nothing else drives the bus in the model: there is no decay, and the only bus conflicts are the boards’ own AND on a register write (the section on the simple boards below).

A mapper sees only $4020 to $FFFF. The sheet says a board sees every CPU access except reads of $4015, so a board could put a register in the PPU or sound range. The interface has no such board, so the bus does not pass those addresses on.

The controllers are real (task 7): a read of a port gives the pad in bit 0, the open bus in bits 7 to 5 and zeros in bits 4 to 1. The DMC and its DMA came in task 9; where they stop is the section on them below.

OAM DMA came early, and its parity is a choice. Task 5 built OAM DMA, because the sprite test ROMs load OAM with it; task 7 owns it. A write to $4014 halts the CPU on its next read, and the copy takes 513 or 514 cycles (bus.md section 5). Which CPU cycles are get cycles is random on a console at power on; the model makes the even ones gets, so a write in an even cycle costs 513 and one in an odd cycle 514. The sprite ROMs pass with either choice (measured in task 5 by swapping it), so nothing pinned settles which.

The reset button drops a copy that was waiting. A write to $4014 starts OAM DMA on the CPU’s next read. If the reset button is pressed between the two, the model forgets the page, so no copy runs in the reset’s first read, after the PPU has been reset (NesBus.Reset). bus.md does not say what a console does here; the reset stops the CPU, and the model takes it that the copy goes with it. OamDmaTests.TheResetButtonDropsACopyThatWasWaiting holds it: the reset takes its seven cycles and the next read one.

A halt on a pad read clocks the pad once, on both chips. The halt and the alignment cycle repeat the CPU’s read in consecutive cycles, and the pad sees one clock for the run (bus.md 7). The model does this for the 2A07 too. The sheet says the 2A07 lacks the extra reads of DMC DMA and does not say whether OAM DMA differs there, so this is a guess for PAL (bus.md open item 2).

The NES: the PPU’s registers and timing, where the model stops

What. Task 4 of the NES plan, Ppu. The sources are docs/nes/facts/ppu.md sections 1 to 5 and 12 and timing.md section 2. It passes the ten ppu_vbl_nmi singles on NTSC. It draws nothing yet (task 5).

The power-on alignment is a choice. The PPU starts at line 0 dot 0 in the same instant as the CPU’s first reset cycle, which is what nestest.log needs. A real console powers up with the CPU and PPU in one of several alignments, and the ppu_vbl_nmi readme says some of them fail its tests (timing.md section 4). The model has one, the one the tests are written for. Its first VBlank is set in cycle 27395 from power on on NTSC (25683 on PAL), which NesBusTests.TheFirstVblankFlagIsSetInTheCycleThatRunsLine241Dot1 holds; the wiki says “around 27384”, and nothing pinned settles which (timing.md open item 4).

On PAL the flags clear at dot 1 of line 311. The pages give the clear at dot 1 of the pre-render line on NTSC, and on PAL only imply it, from the 70 lines of VBlank; the PPU frame timing page says the PAL clear time awaits confirmation (timing.md open item 1). The model clears VBlank, sprite 0 hit and overflow at dot 1 of line 311. PpuTimingTests.TheVblankFlagIsSetAtLine241Dot1AndClearedAtDot1OfThePreRenderLine checks that the model does so on both; no pinned ROM times it on PAL.

Power on is zeros. VBlank is often set at power on and OAM, the palette and the nametables are unspecified (ppu.md section 12). The model clears all of them so a run is repeatable.

The I/O latch decays at one fixed time. Each bit reads 0 once it has gone 600 ms without being driven, the time the fork’s ppu_open_bus/readme.txt measured on a console. The wiki says at least one bit goes after 3 to 30 ms, faster when the PPU is warm, and the readme says some decay sooner, depending on the console and the temperature. The model gives every bit the same time on every console. Which accesses drive which bits follows ppu.md section 1, and ppu_open_bus passes (task 12).

Writes are not ignored after power on or reset. The chip ignores writes to $2000, $2001, $2005 and $2006 until the end of the first VBlank (ppu.md section 1). The model takes them at once. Games wait for VBlank first, so this shows only for a program that does not.

Two small delays are not modelled. The second $2006 write copies t to v at once, where the chip takes 1 to 1.5 dots, and a $2001 write switches rendering at once, where the chip takes 3 to 4 dots (ppu.md sections 1 and 2). The odd-frame dot is sampled at dot 338, measured against ppu_vbl_nmi test 10. That is the model’s cutoff in its own alignment of CPU and PPU. Against the wiki’s dot 339, where the skip happens, it is an effective delay of one dot for the $2001 write, not the 3 to 4 the sheet gives, and why the two differ is open (timing.md section 2).

Left for the drawing PPU (task 5), and done there. A $2004 read during rendering on a visible line returns what evaluation and the sprite fetches are reading, OAMADDR is cleared on dots 257 to 320, and the pipeline moves v. The next section says where the drawing stops.

The NES: the PPU caught up lazily

What. Task 2 of the lazy chips work, 7 October 2026 (docs/journal/2026-10-06-the-nes-lazy-chips.md). The bus no longer runs the PPU’s dots inside each cycle. It gives them to the PPU, which runs them with the same per-dot code when it is caught up. Nothing that can be seen differs from running each dot in its cycle; this section says where that is held, and where the gain stops.

It is caught up at every point where something can see it: before a CPU access to $2000 to $3FFF (OAM DMA’s writes to $2004 among them), before every CPU write to $4020 to $FFFF (a board’s register can switch the pattern banks or the nametable layout), when the dots given reach the next dot that changes the NMI line or the frame’s end, before power on and the reset button, and when a test, a tool or the page reads the PPU’s state. Ppu.Line and Ppu.Dot give the position the bus has reached without a catch-up. Writes to PRG RAM catch it up too, though no board here moves anything the PPU reads there; for them the catch-up is only a cost.

A board that watches the PPU’s address bus stays on the per-dot path. MMC3 is the one such board here. Its PPU is caught up every cycle, so the board is told each address in the cycle it is put out, and MMC3 games gain nothing from the lazy PPU yet. Scheduling MMC3’s clock was out of scope.

A game that polls $2002 in a loop mid-frame gains less. Each read is a catch-up, so a sprite-0 wait runs the PPU in short batches, nearer the per-dot cost. This is reasoned, not measured: the browser bench runs one game only.

The sound unit is not lazy. It is still stepped inside every bus call.

How the tests treat it. The extended differential (bench/nes-speed/differential, its README) compares the lazy build with the build before the work at every point where a chip can be seen, over the pinned test ROMs and its own synthetic cartridges in both regions, against baseline/fae4b62.txt (format 4: it also hashes the picture as far as it is drawn at every point where the PPU can be seen, and its homebrew and synthetic runs press reset a second time on a chosen PAL dot phase; twelve of its synthetic cartridges scroll the background alone and twelve keep a few sprites on, for the fast scanline renderer). NesOptions.PerDotReference catches the PPU up every cycle; PpuCatchUpTests, CatchUpScenes and NesBusTests use it as the oracle for the lazy build, and PpuDotSceneTests holds the lazy PPU to the per-dot one with a register access on every dot of a line.

The NES: the PPU’s picture, where the model stops

What. Task 5 of the NES plan: the background pipeline, the sprites, sprite 0 hit, the overflow flag, PpuPalette and FrameBuffer. The sources are docs/nes/facts/ppu.md sections 2 and 6 to 11 and the wiki’s NTSC video page. BlarggTests runs every ROM of sprite_hit_tests_2005.10.05 and of sprite_overflow_tests on NTSC, and none is a known failure.

The colours are one decode, computed. The PPU makes a composite signal and a television decodes it. PpuPalette makes the signal from the wiki’s measured voltages and decodes each colour alone, from one whole colour cycle, with black at $1D (no 7.5 IRE setup) and white at $20 (ppu.md section 11). A real picture differs: colours bleed into their neighbours and crawl from line to line and frame to frame, the hues of the brighter rows turn by the differential phase distortion, and each television decodes and filters in its own way. None of that is modelled. The wiki’s Pally tables were not used, because their licence is not stated.

PAL uses the NTSC colours. The 2C07’s own decode is about 15 degrees of hue away (ppu.md section 10). The model swaps the 2C07’s red and green emphasis bits, and nothing else about its colour. The colours were never compared with a real PAL television, or a capture of one: PpuPaletteTests checks the decode against the rules of the NTSC video page, and OnPalTheRedAndGreenEmphasisBitsAreSwapped the one PAL rule the model has.

The 2C07’s border is not drawn. The 2C07 blacks out columns 0, 1, 254 and 255 and line 0 of the picture (ppu.md section 10). The model draws them as the 2C02 does.

The 2C07’s OAM refresh is not modelled. It refreshes OAM itself on lines 265 to 310, so OAM can be written only in the first 24 lines of its VBlank, and its sprite evaluation cannot be fully turned off (ppu.md section 4). The model lets OAM be written all through VBlank on both.

The column a dot decides is bounded, not pinned. Column X is decided on dot X + 2, which is what the wiki’s “sprite 0 hit acts as if the image starts at cycle 2” says. The sprite 0 timing ROMs pass with the hit on any dot from X + 1 to X + 4, so they do not settle it. The first pixel leaving the chip during dot 4, the analogue delay after that, is not modelled.

Greyscale follows one page of two. PPU registers says greyscale ANDs the colour with $30; NTSC video says colours $x1 to $xD become $x0, and says nothing of $xE and $xF, which the AND turns grey. The model ANDs. No pinned test reads the difference.

Evaluation starts at sprite 0. On the chip, an OAMADDR that is not 0 at dot 65 makes evaluation start elsewhere and treat another sprite as sprite 0 (ppu.md section 8). The model always starts at sprite 0. The $2004 reads during rendering show the bytes evaluation and the fetches read, one a dot, which is close to what the sheet says but not checked against a ROM: oam_read and oam_stress are task 12’s.

OAM does not decay, and the 2C02G’s OAM corruption on some OAMADDR writes is not modelled (ppu.md section 4).

The reset button in the middle of sprite evaluation. The sheet says what a reset does to the registers (ppu.md section 12) and says nothing of sprite evaluation. The model’s Ppu.Reset clears the count of sprites found and the sprites on the line, and keeps the rest of evaluation as it was: the sprite and byte being read, the place in secondary OAM, whether eight are found and whether the search is over. Evaluation starts afresh at dot 1 of each visible line, so the kept state only matters if rendering is switched on after dot 1, and then it carries on from where the reset left it, for the rest of that line. What the real chip does there is not known. The place in secondary OAM is a counter of 5 bits that wraps at 32, as the chip’s does, so the writes can never go outside the 32 bytes. Until 6 October 2026 it did not wrap, and this case threw IndexOutOfRangeException and stopped the machine (TheResetButtonInTheMiddleOfEvaluationLeavesItSafeAndTheNextLineClean). It was chosen over clearing all of evaluation in Ppu.Reset, which would have hidden this one path and left the next one: the wrap makes the write safe whatever state the counter is in, and changes nothing on any run that does not reach it.

The NES: the sound unit, where the model stops

What. Task 8 of the NES plan, Apu and its channels in ApuChannels.cs: the two pulses, the triangle, the noise and the frame counter. The source is docs/nes/facts/apu.md. Every pinned sound ROM that needs no DMC passes: apu_test singles 1 to 6 on NTSC and all ten pal_apu_tests on PAL.

Which parity takes the 3-cycle $4017 delay is a choice. The page says 3 cycles “during an APU cycle” and 4 “between”. The model gives 3 to a write on an odd cycle, which the bus counts as a put, so the reset lands on a get and the steps on the puts the sheet’s table names. The jitter ROMs on both regions fail with a fixed delay and pass with the rule either way round, so they do not say which (apu.md open item 4).

A flag set in the cycle of a $4015 read is cleared by it. The APU page says such a read returns 1 and does not clear the flag. With that rule on the third of the frame counter’s three sets, apu_test 6-irq_flag_timing and pal_apu_tests 07.irq_flag_timing fail their “last set too late” check. The model sets the flag on three cycles in a row, as the sheet’s table has it, and lets every read clear it; both ROMs pass.

A length write in the cycle before a half frame meets the clock. The halt then takes effect after the clock, and a reload is dropped if the counter was not 0. The rule is from pal_apu_tests’ readme, tests 10 and 11, which pass on PAL; the model applies it on NTSC too. The fork’s blargg_apu_2005.07.30 has the NTSC tests of the same name, and task 12 runs them: both pass with the rule, and both fail with it taken out (apu.md open item 5).

A pulse with a period under 8 is silent on PAL too. The APU Pulse page leaves PAL’s behaviour as an open question, and no pinned ROM checks it (apu.md open item 3).

The triangle’s periods 0 and 1 are not halted. They give the ultrasonic wave the sheet describes, a step every CPU cycle or every second one. Some emulators halt them to avoid the noise this makes in a sampled output. Task 9’s resampler does not need it: ResamplerTests holds an ultrasonic triangle more than 65 dB under a full one, on both regions. On 6 October 2026 (03:32 UTC, load 2.4) dotnet test tests/Dbhq.Machines.Nes.Tests -c Release --filter "FullyQualifiedName~ResamplerTests" --logger "console;verbosity=detailed" printed -72.4 dB at worst, the NTSC triangle at period 0.

The triangle starts at step 0 at power on. The sheet gives step 0 after a reset and an unknown phase at power on.

The reset keeps the IRQ inhibit bit. The fork’s apu_reset readme says the mode is written again at reset “but IRQ inhibit flag is sometimes cleared”. The model writes the last mode and keeps the inhibit bit. All six apu_reset ROMs pass (task 12); 4017_written checks the mode after each reset and not the inhibit bit, so it does not choose between “kept” and “sometimes cleared”.

A pulse gives table entry 0 from a $4003 or $4007 write until its first advance. The APU Pulse page gives the order the sequencer reads its table in, and not whether the first output is taken before or after the first advance from entry 0. The model outputs entry 0 until then (apu.md section 2). No pinned ROM is known to depend on it.

The output is the sheet’s mixer formulas with every channel, the DMC included, through tables built from them at start-up (task 9). The triangle, noise and DMC table is single precision; MixerTests holds every entry of both tables within 1e-6 of the formula.

The NES: the DMC, its DMA and the sound out, where the model stops

What. Task 9 of the NES plan: the DMC in ApuChannels.cs, its DMA in NesBus.RunDma, the mixer’s tables in ApuMixer.cs, and SampleBuffer. The sources are docs/nes/facts/apu.md sections 8 and 11 and bus.md section 6, with the DMA page itself (revision 23450). Every pinned DMC ROM passes but one: apu_test 7-dmc_basics and 8-dmc_rates, both sprdma_and_dmc_dma ROMs, and four of dmc_dma_during_read4’s five, on NTSC.

dmc_dma_during_read4/double_2007_read fails, and it is the PPU’s. It reads $2007 twice in adjacent cycles (LDA $20F7,X with X = $10, whose dummy read is $2007 and whose real one $2107), with no DMC in it. Its source lists four outputs a console gives, by the CPU and PPU alignment, all of which treat the second read oddly (“sometimes ignores extra read, and puts odd things into buffer”). The model’s PPU makes two whole reads and prints CRC D84F6815. TestRomTable.DmcDmaKnownFailures holds that output, and BlarggTests and NesAcceptanceTests run it, so a fix shows. Task 12 looked again. The model prints 33 44 55 66 77 for the double read, where the source’s four console outputs begin 22 44, 22 33, 02 44 and 32 44: in each, the second read does not return the byte the first read put in the buffer, so on the chip the buffer is filled some dots after the read and not at once. The wiki’s PPU registers page says only that the buffer is updated “after the previous contents have been returned to the CPU”, with no number of dots, and the four outputs depend on the alignment. A refill delay chosen to make one of them come out would be a guess at the chip, so it stays as it is.

The DMA bugs are not modelled. The DMA page’s aborted one-cycle DMA (a sample stopped in the APU cycle before a reload would be scheduled) and the late 2A03G and 2A03H’s extra fetch do not happen. No pinned ROM tests them.

When a reload halts after the output unit empties the buffer is a choice. The page says a reload halts on a put. The model’s output unit clocks on the puts, and a reload may halt from the next put, two cycles later. Halting at the put after that passes every ROM too: they synchronise themselves to the DMC, so they test the parity and the cost, not the delay. The mutation pass of 6 October 2026 made the halt two cycles later and no test failed, so DmcDmaTests.AReloadHaltsOnTheNextPutAfterTheOutputClockThatEmptiedTheBuffer now pins the model’s choice; it pins the choice, not the chip.

The 2A07’s DMC fetch reads its own address on its idle cycles. The page says the 2A07 has no extra reads by a mechanism “not yet understood”, and suspects the DMA’s address is on the bus. On PAL the model reads the sample address on the halt, dummy and alignment cycles of a DMC fetch, so no register is read again; OAM DMA alone still repeats the halted read there, as task 7 left it. A guess: no pinned ROM tests the 2A07’s DMA.

The 2A03’s register select during a fetch is not modelled. On the 2A03 a DMC fetch while the CPU is halted on a read of $4000-$401F can select a register by the sample address’s low five bits (bus.md open item 3). The model reads only the sample address.

The sound is resampled, and the console’s filters follow. The level is averaged over blocks of 8 CPU cycles, and each change of a block’s mean is added as a band-limited step (a Kaiser-windowed sinc, 16 samples each side, placed to 1/4096 of a sample); then high-passes at 90 Hz and 440 Hz and a low-pass at 14 kHz, first order each. The 8-cycle mean loses a fraction of a decibel at 20 kHz, which follows from its length (an 8-point mean’s gain is sin 8x / (8 sin x), with x = pi f over the CPU clock). ResamplerTests holds the worst alias under the Nyquist, measured on pulses, more than 65 dB under the note; the run of 6 October 2026 quoted for the triangle above printed -89.6 dB at worst. The order and the form of the filters are not on the page.

The sample buffer drops the oldest samples when its reader falls behind (the plan’s Review Focus 3). The machine’s holds a quarter of a second.

The NES: the simple boards and MMC1, where the model stops

What. Task 10 of the NES plan: Mmc1, Uxrom, Cnrom and Axrom in src/Dbhq.Machines.Nes/Mappers/, on a shared Board. The source is docs/nes/facts/mappers.md sections 3 to 5. Both combined MMC1 test ROMs pass: ppu_vbl_nmi/ppu_vbl_nmi.nes and apu_test/apu_test.nes.

The reset button leaves the boards alone. None of these chips has a reset line, so Reset(false) changes nothing in them, MMC1’s shift register and control register included; only a power-on (Reset(true)) puts them back. The sheet gives only MMC1’s power-on state. That the button does nothing is from the chips’ having no reset pin, not from a page that says so (the nesdev MMC1 page does not mention the console’s reset). A program that is reset in PRG mode 2 or 0 therefore starts in the wrong place, as it would on a console, and a ROM must write $80 itself, as the pinned test ROMs’ shells do.

Bus conflicts follow the NES 2.0 submapper. The sheet says to model none for UxROM and AxROM and the AND for CNROM unless submapper 1. The model also takes submapper 2 of mapper 2 and of mapper 7 as “AND-type bus conflicts” (the nesdev UxROM and AxROM pages list it so), because a file that says it has them should not be run without. An iNES file, and submappers 0 and 1, have none. CNROM keeps the sheet’s rule, which the sheet marks as a guess; nothing pinned writes a value that differs from the ROM byte. The road not taken for UxROM and AxROM is the sheet read strictly, no conflicts for any submapper. CNROM’s risk runs the other way: the AND is applied to iNES files and submapper 0, so a CNROM game made for a board without conflicts would switch to the wrong bank (mappers.md open items 2 and 5). The two CNROM test ROMs of task 12 pass with the AND or without it (tried once, with the AND taken out), so they do not settle this.

Only the plain MMC1 boards. SOROM, SUROM, SXROM and SZROM, which bank PRG RAM or more PRG through the CHR registers, are not modelled, so a 512 KB MMC1 cartridge reads only its first 256 KB, as the PRG register’s four bits reach. PRG RAM is whatever the header says, repeated through $6000 to $7FFF. Bit 4 of the PRG register switches it off (the MMC1B’s behaviour; the MMC1A has no such bit).

A file smaller than the registers can name wraps. A bank number is taken modulo the banks in the file, and a size that is not a whole bank (a NES 2.0 exponent size) is padded to one by repeating its bytes, so no register value reads outside the file. A real board’s chips would show open bus or mirrors; which is board by board and no pinned file depends on it.

The NES: MMC3, where the model stops

What. Task 11 of the NES plan: Mmc3 in src/Dbhq.Machines.Nes/Mappers/, mapper 4, from docs/nes/facts/mappers.md section 6. Of the pinned MMC3 test ROMs, mmc3_test_2’s singles 1 to 5 and mmc3_irq_tests 1 to 4 and 6 pass.

One revision of the chip. MMC3 chips differ at latch 0. The model is the Sharp (“new”) chip, which raises the IRQ whenever a clock leaves the counter at 0; the sheet chooses it because games rely on it. The other chip, Crystalis’s in the fork’s readmes, raises it only when the counter changes to 0 or is reloaded by request. So the two ROMs that test that chip fail, and are kept in TestRomTable as known failures with what they print: mmc3_test_2/rom_singles/6-MMC3_alt (status 2, “IRQ shouldn’t be set when reloading to 0 due to counter naturally reaching 0 previously”; both its sub-tests are the other chip’s rule, and it stops at the first, so its test 3 never runs) and mmc3_irq_tests/5.MMC3_rev_A (failed test 3; its test 2, which both chips share, passes). The readme of the second says at most one of its last two ROMs can pass on any emulator.

What is not modelled. The “pathological” behaviour the readmes describe (a $C001 write, a clock and another $C001 write make the next clock OR the counter with $80 or freeze it); the readme advises against it and no game it tried needs it. MMC6 (StarTropics), which shares mapper 4: it runs as an MMC3, whose $A001 means something else, so its battery RAM may read as switched off. “The pre-render line clocks twice every other frame” with the background at $1000: the model clocks once on every rendering line there.

The PPU’s address bus is told in part. The board is told of every pattern fetch, each sprite slot’s first nametable fetch, and, outside rendering only, v when a $2006 write or a $2007 access moves it (during rendering the bus carries the fetches, so those accesses are not told). The background’s nametable and attribute fetches are not told (their A12 is 0, and told they would give a second clock a line with the background at $1000, where the sheet says one). The bus’s v on the post-render line, or when rendering is switched off mid-frame, is not told until the program moves it, so a v with bit 12 set left by rendering is no rise until then. Both are open items in the sheet.

Power on. The sheet leaves R6, R7 and the bank select unspecified. The model starts R0 to R7 at 0, 2, 4, 5, 6, 7, 0, 1, so the first 32 KB of PRG and 8 KB of CHR read in order, and PRG RAM on and writable. The test ROMs need both. A real chip’s power-on state may differ; a program that relies on it would also fail on some consoles. The reset button changes nothing in the board, as for the other boards.

A file smaller than the registers can name wraps. Bank numbers are taken modulo the 8 KB PRG and 1 KB CHR banks in the file; the fixed second-last bank of a one-bank program is that bank.

The NES: the community test ROMs, where the model stops

What. Task 12 of the NES plan ran every ROM the plan lists that reports a result a test can read, on the regions each ROM’s readme or source gives. The table is in the journal entry of 5 October 2026, task 12.

LXA ($AB) on the Ricoh 2A03 variant uses $FF, and the Harte run leaves it out: resolved, 6 October 2026. LXA (the ROM’s ATX #n) sets A and X to (A OR a constant) AND the operand, and the constant differs between chips. Until 6 October the core took $EE for every NMOS variant, from Harte’s data, and instr_test-v5 03-immediate and all_instrs failed on $AB on both regions (status 1, AB ATX #n), the only instruction in the suite that did. The ROM’s checksum was made on a console: with $FF, tried once in task 12, 03-immediate passed, and with $00 it failed, so Blargg’s console had $FF. Harte’s nes6502 data has $EE. The two references disagree.

Decided by Dan, 6 October 2026: the Ricoh 2A03 variant uses $FF, the console-calibrated value, and the NMOS 6502 and the other variants keep $EE (Cpu.Nmos.cs, a constant set once in the constructor). The nes6502 Harte set leaves out $AB, and only that: Coverage.Excluded gives the reason, and CoverageTests prints each variant’s count of opcodes run and excluded, and runs the nes6502 $AB file on the NMOS variant, where it passes, so every part of the instruction but the constant is still checked against Harte’s data, and on the Ricoh 2A03 variant, where it fails, so the exclusion is still needed. The 6502 set keeps $AB at $EE. CpuTests.LxaOrsAWithTheVariantsConstantAndAndsTheOperand holds both constants. Both ROMs now pass on both regions and are in the passing table (TestRomTable.RamReportingRoms and CombinedMmc1Roms). The decision of 5 October, to keep $EE and the two known failures, is replaced by this one; it is in the journal entry of 5 October 2026, task 12.

Not run, and why. Two folders of the fork are not pinned and not run, as the journal entry of 5 October 2026, task 12, records. nmi_sync (demo_ntsc and demo_pal) draws a line with timed $2001 writes, and its readme says to look at the picture (“the left pixel of the middle line will be darker”); nothing in RAM or on the nametable says pass or fail, and no frame check was written for it later. dmc_tests has four ROMs with no readme and no source; run, they leave nothing on the screen, in $6000 or in zero page, and their result is a sound to listen to. The fork’s own status.txt marks all four “Not sure yet”.

Every known failure, in one place. TestRomTable holds each with what it prints now, and BlarggTests and NesAcceptanceTests check that it still fails as written down, so a fix shows: dmc_dma_during_read4/double_2007_read (the DMC section); and mmc3_test_2/rom_singles/6-MMC3_alt and mmc3_irq_tests/5.MMC3_rev_A (the MMC3 section). Every other pinned ROM passes.

The NES: the cartridge file and the page, where the model stops

What. Cartridge, NesLoader and the page’s panel (site/public/nes.js). The source is docs/nes/facts/cartridge.md.

The iNES TV system bit is not read. Byte 9 bit 0 of an iNES 1 header, and the unofficial byte 10, name a region, but the sheet’s source says almost no file sets them, so an iNES file names no region and runs as NTSC unless the visitor chooses PAL; the page says which it chose and why. Only NES 2.0 byte 12 is read: 0 NTSC, 1 PAL, 2 (either) NTSC. CartridgeTests.AnInesFileNamesNoRegionWhateverItsTvSystemBitsSay and NesBusTests.TheMachineTakesTheHeadersRegionUnlessTheCallerNamesOne hold it.

A trainer is skipped, not loaded. A file with flags 6 bit 2 set carries 512 bytes that a copier once loaded at $7000-$71FF. They are not on unmodified dumps of real cartridges (cartridge.md section 1), and the sheet left skipping or refusing them to the model (section 4). The model skips them, so the program starts 512 bytes later and nothing is put at $7000. A hacked dump that needs its trainer there to run will not run. CartridgeTests.ATrainerIsSkippedSoPrgStarts512BytesLater and ATrainerThatRunsPastTheEndOfTheFileIsRefused hold it.

The Dendy is refused. A NES 2.0 file whose byte 12 says Dendy (3) is refused with a sentence that names it (CartridgeTests.ANes20FileForTheDendyIsRefusedByName), and the page offers only NTSC and PAL. The Dendy runs the PAL frame at three dots a cycle with its own VBlank timing; it is left out and has its issue (#61).

The file and its RAM have caps. A file over Cartridge.MaxFileSize (4 MB) is refused before its header is read, and the page refuses it before reading it at all, with the host’s own limit (NesHost.MaxRomBytes). A header may ask for at most Cartridge.MaxRamSize (64 KB) of PRG RAM and of CHR RAM: a NES 2.0 header that asks for more is refused, and an iNES byte 8 over it is clamped. No board this machine models needs more, and a header must not make the page allocate megabytes for a small file. CartridgeTests (AFileOverTheSizeLimitIsRefusedBeforeItsHeaderIsRead, ANes20HeaderAskingForMegabytesOfRamIsRefusedWithoutAllocatingIt, AnInesByte8Of255IsClampedToTheCapAndTheFileStillLoads) and the page’s nes-panel.test.mjs hold them.

The picture is the PPU’s 256 by 240, shown in the region’s pixel shape. The page shows all 240 lines, where a television hides some at the top and bottom (overscan), and shows each pixel 8:7 on NTSC, so the 256 columns are as wide as 256 x 8/7 square pixels, and about 1.386:1 on PAL (ppu.md section 10, from the Overscan page). The bleeding and crawl of a composite picture are not modelled (the PPU section above; issue #69). nes-panel.test.mjs (“the picture is 256 by 240 pixels shown in the region’s pixel shape”) holds the shape.

The NES: its two 3D models, where they stop

What. The outside model (site/src/models/nes-famicom-case.js) and the inside model (nes-famicom-board.js) on the NES’s page, each drawn for the NTSC NES-001 and the PAL NESE-001. They are measured by the offline tools in tools/nes-model/ from photographs, a design patent and bare board scans, none of them Nintendo’s own drawings. Every figure below is read from the data file named beside it, measured on the day the journal (docs/journal/2026-10-05-the-nes-models.md) gives, and the tests named hold it. Each limit a visitor would notice is also said in the note under its model, under “What it does not show, or shows less well”.

The case’s size is not Nintendo’s. It is the published 254 by 203.2 mm and 88.9 mm high (tools/nes-model/data/case.json, footprint.widthMm, footprint.depthMm, heightMm, with heightFrom “published”), from the NES Fandom wiki, Thingiverse 243385 and dimensions.com, which disagree with each other a little. It is good to about 3 per cent (footprint.goodToPct, with its reason: the patent’s drawings’ largest disagreement with the published proportions, 3.08 per cent). The height is the published one, not read from the photographs.

The case’s checks were revised twice, after the patent’s figures were seen. As first written, depth to width and height to width were read from two corner photographs and the depth stopped, at -8.77 per cent on O2-BR (spike.json, case.depthToWidthErrPctEach.br); review found that measured the camera, not the case. The first revision judged the design patent’s drawings against 203.2 / 254 within 1.5 per cent, stop over 3, and the top view stopped at -3.46 per cent (case.patent.firstRevisionAgainst254Mm). The sources disagree with each other by more than those limits can resolve, so the second revision judges the patent’s views against the published ratios’ midpoints, 0.797 and 0.349, within 5 per cent and stop over 8. On that, depth to width reads -3.08, -2.64 and -0.68 per cent on the top, the bottom and the side over the front, and height to width +1.12 and +1.37 per cent (case.patent.depthToWidthErrPctEach, heightToWidthErrPctEach). What the checks catch now is a gross error of scale, not an error of 3 per cent; every earlier stop stays recorded in spike.json. The PAL front lies between pass and stop: its label band is -3.49 per cent against the NTSC front’s, against a 2 per cent pass and a 4 per cent stop (palFront.ratioErrPct).

The rear connectors’ check failed, and is accepted as measured. Their places worked out from the board plus the board’s place in the case missed where a photograph (O2-BR) shows them by 5.16, 3.5 and 0.85 mm, one of three within the 2 mm limit (case.json, rearCheck.within, rearCheck.worstMm, each connector’s checkMm). The model keeps the photograph’s places, which agree with the patent’s rear view within 1.3 mm (rearCheck.uncertaintyMm.placesUsed). A recheck needs the RF modulator’s face measured on its own first, with its limit fixed before it runs; it is an open item in the plan’s Deferred list.

The copper is traced to look at, and its connections are not verified. The check that would have shown them, that the ten chips’ ground pins join in one net and their +5V pins in another, failed: 1 of 10 ground pins fell in the largest ground net, 2 of 10 +5V pins in the largest +5V net, and a ground and a +5V pin came out in one net (copper.json, nets, and verdicts.nets “fail”). The track map is kept to look at. A re-trace, judged by a new check fixed before it runs, is an open item in the plan’s Deferred list, for Dan to decide.

Each console’s parts come from a photograph of another board. The NTSC parts were read off an NES-CPU-07 (I4, I5) and placed on the scanned NES-CPU-10’s footprints, each within 0.432 mm at the worst against a 2 mm limit (parts.json, sitsOn). The PAL parts were read off an NES-CPU-11 (I3) and drawn on the same CPU-10 layout. No bare PAL board was scanned, so the PAL board’s copper is the NTSC board’s. Task 0’s evidence is that the two boards’ chips sit in the same places: the ten chips’ centres on I3 against I1’s, held out one at a time, median 0.148 mm and worst 0.386 mm (spike.json, palLayout.heldOutMm); the connectors P1 to P3 could not be measured on I3 (palLayout.notMeasured), and the copper itself was not compared, so that it is the same is an inference.

What the chips do is read, not traced. Which controller port each buffer serves, U7 port 1 and U8 port 2, is by the board’s print, checked against the nesdev wiki and the KiCad redrawing’s nets in task 6, not traced on the scan (ic-table.json, port.inferred true on both). U9’s jobs, inverting the PPU’s A13 and the reset line and clocking the lockout chip, are read from the redrawing’s nets.

Heights are typical. Every part’s height is a typical one for its package, none measured (parts.json, model.heights, each measured false).

The PAL modulator and crystal. The PAL modulator’s can is drawn about 4 mm to the right of the NTSC modulator’s place (parts.json, model.others, x 193.674 against 189.656 mm), as I3 shows it; I3 was taken with a 20 mm lens, and the photograph cannot say how much of the shift is perspective. The PAL crystal is drawn as seen on I3, partly hidden by the expansion socket, so it is shorter across the board than the NTSC one (8.899 against 11.512 mm, the same entries).

The board’s place in the case and the case’s profile. The board’s place is good to about 2 mm (case.json, boardInCase.uncertaintyMm) and was measured in a PAL case (O9), so it assumes the PAL and NTSC cases share one moulding, an inference (boardInCase.from). The bottom shell’s ends lean in below a break; the four ends read on two photographs run from 12.86 to 17.71 mm at the base, so the model’s inset is an average good to about 2.4 mm, half that range (profileCheck.endsMm, profileCheck.goodToMm; until the final fix wave of 6 October 2026 a sentence gave “about 2.5 mm”); the held-out figure, 0.71 mm, shows the averaging repeats, not that it is the true inset.

The machine’s state, where the console’s is not known or not emulated. Whether POWER latches in on a real console is not known: no photograph shows it pressed (case.json, powerLatch.seen false). The model shows it in while the machine runs, as the design chose. The lockout chip is not emulated, so the power light never blinks as a real console’s does when it refuses a cartridge, and the inside model never marks U10. The buttons’ travel, 3 mm, is a typical one (buttons[0].travelMm, travelFrom “typical”).

What is simplified. The case’s corners are drawn square, where the console’s are rounded. The rear’s window is drawn flat on the rear face; on the console it is set in by about 4.4 mm (case.json, rearWindow.setBackReadMm, 4.39). The underside’s ribs and panels are drawn as lines. The cartridge door does not open. The video and audio jacks on the side and the PAL console’s rear are not checked against the board. The PAL console’s words were read from photographs taken with a 20 mm lens (sources.json, focalLengthMm on O4 and O10), and its rear words, printed on three lines, are drawn on one. The resistors, capacitors and connectors are plain shapes, and the track map has 10 pixels to the millimetre (copper.json, mapPxPerMm). The site’s shared stage lights every model with its green-white, so the case’s greys come out a little green.

How the tests treat it. site/tests/nes-models.test.mjs pins each figure above to its data file: the rear check’s failure and its three misses, the nets check’s FAIL, the case’s published size and its checks’ verdicts, the parts’ places and identities (against docs/nes/facts/models.md’s table since task 10), the profile’s spread, and every sentence of both notes against the results files that tools/nes-model/results.py writes. A re-run of the tools that moves any of them fails until the words move too.

The Acorn Electron: the ULA’s interrupts, where the sources stop

What. Ula is the Electron’s ULA so far: the interrupt enable and status at $FE00, the clears in $FE05, the display mode in $FE07 and the frame that times the clock and display-end interrupts (ula.md sections 1c, 5d and 6). Where the fact sheet is silent or open, the model chooses:

  • Transmit empty (status bit 5) is set at power on. The sheet says it is “normally set” and clear only while a byte is being sent, and leaves its power-on value open (section 12 item 4). The model starts with it set, which is the state a machine that is not sending is in.
  • The display mode is 0 at power on. The sheet does not say what $FE07 holds before the OS writes it (section 12 item 4); the OS writes it during reset. All zeros is the model’s choice, and it makes the display end fall at the 256-line time until then.
  • BREAK resets nothing in the ULA. The sheet says only that the ULA asserts reset (section 12 item 5). The model has no ULA reset: BREAK leaves the enable, the status and the mode as they were, and does not set the power-on flag, which is how the OS tells a BREAK from a power on. The OS rewrites what it needs.
  • The mode in force when an event comes due decides a display end, and a mode write moves the pending one. A write that changes the mode between the clock interrupt and the display end changes when the display end falls. If the new time is already past, the interrupt is raised at the next catch-up, that is at the next bus access. A real ULA counts lines, so it may differ for a program that changes mode in the last rows of a field; none does so in the boot or in BASIC.
  • The ULA’s IRQ line reaches the CPU between instructions. The machine copies the line into the core after each whole instruction, caught up to the cycle that instruction ended on. A real 6502 samples the line in the second-to-last cycle of an instruction (section 12 item 13), so an interrupt that rises during an instruction is taken up to one instruction later here than on the machine. The sheet’s own model polled at instruction boundaries too and still matched the real BASIC timings (section 11d).
  • A read of a register the ULA does not answer is the high byte of the address. The sheet is split on this (section 1b, section 12 item 3): one source says the ROM byte under it, another that the bus floats. The OS reads only $FE00 and $FE04.
  • Every absent device reads as the high byte of its address, and a write to one goes nowhere. FRED, $FC00 to $FCFF, reads $FC; JIM, $FD00 to $FDFF, reads $FD; a write-only ULA register reads $FE; and $8000 to $BFFF with an empty slot paged in reads $80 to $BF. The OS ROM’s own bytes under $FC00 to $FEFF are never seen. The sheet’s sources disagree (section 12 item 3: S3 says the ROM byte, S10 turns the ROM off there), and the model takes the BBC Micro sheet’s measured rule for absent devices; the boot does not depend on it. ElectronBusTests holds each of these reads.
  • At power on the ROM latch selects slot 0, which is empty, as source S10 resets it (section 12 item 4); the OS writes $F8 first, which selects the keyboard from any slot. The other registers start as the bullets above and the display, sound and cassette sections below say.
  • BREAK resets the 6502 and nothing else. RAM, the ROM latch, the interrupt enable and status, the mode, the start address, the palette, the sound’s counter and level, and the cassette’s motor, position and registers all stay as they were (section 12 item 5). What the real ULA clears on BREAK is not in the sources; the OS rewrites what it needs, and BootTests shows BREAK keeps RAM and gives the banner without the bell.

The Acorn Electron: the contention, where the sources stop

What. In modes 0 to 3 the ULA holds a RAM access while it fetches the display (ula.md section 4). The rule and its totals are from the sources and reproduce seven real timings of a BASIC loop (section 11d). Where the sources stop, the model chooses:

  • The window’s phase is a convention. The 1 MHz boundaries are the even cycles, a line starts at position 0, and the window blocks the boundaries at positions 2 to 80. No source gives the phase of the 1 MHz clock against the line, or of the window against the first pixel (section 4f, section 12 item 1). Any phase gives the same 24 free boundaries per contended line and so the same totals; it moves single instants by a cycle or two, which matters only to code that counts cycles to a pixel.
  • The ULA’s registers and FRED and JIM are 1 MHz with no contention. The keyboard is 1 MHz by a real-machine measurement; the sources disagree about the rest (section 3a, section 12 item 2), and the model follows the one that says 1 MHz. No run in this repository measures the effect of that choice on the BASIC loop.
  • The mode in force when an access starts decides its wait. A write to $FE07 changes the contention from the next access. One source says a mode change takes effect at the end of the current line (section 12 item 6); no program in the boot or in BASIC changes mode inside a line.
  • An NMI does not take the RAM from the ULA. A source says an NMI gives the 6502 priority over the display, which makes snow (section 4a). Nothing on a stock Electron raises an NMI, so the model does not have it.
  • The Plus 1’s slow-down is not modelled. Real machines with a Plus 1 run the loop about 16 per cent slower in modes 0 to 2 and 7 per cent in modes 4 to 6, for a reason nobody has found (section 4g, section 12 item 12). The Plus 1 is out of scope.

The Acorn Electron: the display, where the model stops

What. UlaDisplay is the ULA’s picture in modes 0 to 6: the start address, the mode, the palette and the address generator of ula.md section 5, drawing a line at a time into a picture of 640 by 256 pixels. Where the sheet is silent or open, or where drawing a line at a time is coarser than the chip, the model chooses:

  • A line’s bytes are read at its start, not one by one through it. Each line is drawn whole from the registers and RAM as they are at the cycle it starts. A store to screen memory in the middle of a line’s 40 microseconds is not seen by that line, even in the part of it fetched after the store; it is seen from the next field. The real ULA fetches each byte in its own slot (section 4d).
  • There is no offset from a fetch to its pixel. How many cycles pass between the ULA taking a byte and its pixels leaving is not known (section 12 item 6). The model has none: a line’s pixels are its bytes, placed from the left edge of the picture.
  • A palette write takes effect from the next line. The sheet says a palette write takes effect at once (section 12 item 6). Here it is seen by every line that starts at or after the write, so a change in the middle of a line shows from the line after it.
  • A mode write takes effect at the end of the line it lands in, which is what one source says (section 5e, section 12 item 6). A write exactly at a line’s first cycle is in time for that line. The contention follows the mode from the next access, as before.
  • The counters when the mode moves between 80 and 40 bytes a line in the middle of a row are not established (section 5e, section 12 item 7). The model keeps the row base and the line in the row as they are and goes on in the new mode; a line past the new mode’s last line in the row (after a change from mode 3 or 6) ends the row and is drawn black.
  • The address counter advances once a row through the blank lines of modes 3 and 6. Lines 8 and 9 of each row fetch nothing and are black, and the row base moves on by 8 times the bytes a line at the end of line 9 (section 12 item 8, from one source only).
  • What the display registers hold at power on is not known (section 12 item 4). The model takes zero: mode 0 from $0000, which the rule for a start below $0800 makes $3000, and a palette of zeros, which in negative logic is every colour white, until the OS writes them.
  • Both fields draw the same 256 lines into one picture. The sheet says the fields use the same lines (section 4c); the 625-line interlace is not shown, and the picture is 256 lines tall, which the page stretches to 4:3.

The Acorn Electron: the sound, where the model stops

What. UlaSound is the ULA’s one channel and one bit (ula.md section 8): selected by $FE07 bits 2 and 1 = 01, toggling every 32 x (S + 1) cycles of 2 MHz, with S of 0 and 1 a constant level. Where the sheet is open (section 12 item 9) or the form it takes in the page is a choice, the model chooses:

  • A write to $FE06 restarts the divider. The next toggle is 32 x (S + 1) cycles after the write. Whether the real counter restarts there or only reloads at its next toggle is not established. If the OS rewrote $FE06 with an unchanged value on its 100 Hz tick, each rewrite would lose the part of a half period already counted: a note would sound flat by about 5.6 per cent (1,120 of each 20,000 cycles lost) for the start-up beep’s S of 58, whose half period is 1,888 cycles against a tick of 20,000. That is a possibility and not a finding: in the model’s run of the start-up beep the OS wrote $FE06 once in sound mode, so none of that happens there, and a SOUND with an envelope was not looked at.
  • Entering sound mode keeps the output level and starts the divider. The level is whatever the output last held, and the first toggle is 32 x (S + 1) cycles after the write that entered the mode. The real divider’s phase on entry, and the level, are not established. A write to $FE07 that stays in sound mode does not touch the divider.
  • Software cannot set a level at S of 0 or 1. The sheet says those two values are usable as an on-off speaker bit (section 8, from S3), but the model changes the level only by toggling, and at S of 0 or 1 it never toggles, so the level stays as it was. How the real ULA lets a program set it is not in the sources, so the model keeps a constant level with no toggles, which is how docs/electron/facts/ula.md describes those two values.
  • Outside sound mode the output holds its last level and does not toggle, as the sheet says. Cassette output uses the same pin; that is the tape’s.
  • Power on is in sound mode with S of 0 and the level low: silent. The sheet says the ULA resets to sound mode (section 10) and leaves the rest open (section 12 item 4).
  • The amplifier is a 10 Hz high-pass, so silence is 0. The sheet leaves the filtering open. Each sample, the mean of the 1-bit level over its interval, goes through y = x - xPrev + r x yPrev with r = exp(-2 pi x 10 / sampleRate). A held level decays to exactly 0 and does not click when sound starts or stops. It also droops a low pitch’s flat tops: at 122 Hz a half wave loses about a quarter of its height. The real amplifier’s response is not known; there is no low-pass, so the page’s own resampling is what removes what lies above its rate.
  • A sample is the mean of the level over its interval, in exact integers, not the output of an analogue chain. A toggle at exactly a sample’s boundary counts for the sample after it.
  • The sound is not on the bus’s per-access path. It is brought up to date at a write to $FE06 or $FE07 and when the page reads or counts its buffer. A page that never reads it gets the newest second, and Overruns counts what fell out.
  • The sample rate is 1 to 384,000 a second, refused outside that.

How the tests treat it. UlaSoundTests holds the formula (S = 15 is a toggle every 512 cycles and 1,953.125 Hz; S = 255 is 122.07 Hz), the constant level at S of 0 and 1, silence outside sound mode, the two choices above, the mean over an interval worked by hand, the sample count and zero crossings of a second of sound, and the buffer’s overflow. SoundTests checks the registers through the bus and its mirrors, that the page’s read catches the sound up, and on the real OS that VDU 7 makes the output toggle at a pitch between 20 Hz and 20 kHz.

The Acorn Electron: the cassette, where the model stops

What. UlaTape is the cassette at the ULA’s serial register (tape.md sections 4 and 5, ula.md section 9): a tape is a list of carrier, bytes and silence, and the ULA’s tape side answers at bit-time pace with the interrupts the OS waits for. The OS runs its own tape code against it unchanged. Where a source stops or the form is a choice, the model chooses:

  • No waveform. Tone shape, phase, and a tape error that is a damaged waveform are not modelled (tape.md s5); a damaged tape is a wrong byte. A UEF whose data is a raw bit stream or another framing is refused, not played (s6).
  • 300 baud is not modelled. The ULA here is a fixed 1200 baud receiver and transmitter, and a tape at 300 baud is refused by the reader (tape.md s6, s7 item 8).
  • The high-tone detector is a count of bit times, not a circuit. High-tone-detect is set after ten bit times, 16,640 cycles, of carrier heard without a break, and again every ten bit times while the carrier lasts. The real detector is an RC circuit on the CAS RC pin whose time constants are not in the sources (ula.md s12 item 10), and whether it raises the flag again once cleared is open (tape.md s7 item 11). The model follows the test probe, with which the OS loaded every tape. The counter at $FE06, which the sheet says must be 0 for the detector to work, is not consulted.
  • A byte unread for 4,000 cycles is lost, about 2 ms (ula.md s9): receive-full is cleared and LostBytes counts it. Section 6a gives the window as two bit times, 3,328 cycles, until the next start bit; the model takes the 2 ms figure. A good load loses none.
  • Transmit-empty works in every mode, motor or not. A write to $FE04 clears it, and it is set nine bit times after the byte starts on the line, the later of the write and the end of the byte before. Whether the real ULA shifts out in input or sound mode is not established.
  • The receive-full quirk of output mode is not modelled. Entering output mode, or a pattern that looks like a start and stop bit, raises receive-full on a real ULA (ula.md s6a), and two games use it as a timer. Here receive-full comes only from a tape being played.
  • The recorder rounds and drops. Idle line is recorded as carrier to the nearest 2400 Hz cycle (832 CPU cycles), and idle line of one bit time or less is not recorded at all: the OS never leaves such a gap inside a block (tape.md s7 item 2). Playing a recording back is therefore exact to within half a carrier cycle a gap, not to the cycle.
  • The tape moves only with the motor on in input or output mode, and, while recording, only in output mode, so the position is the time spent recording. That is not quite the length of what was recorded, because the recording rounds its carriers and drops idle stretches under one bit time (above). A played tape stops at its end. A byte whose ninth bit went by before the machine started listening is missed.
  • A UEF of more than 4 MiB is refused, inflated if it is gzip and as it is if not. Half an hour of tape at 1200 baud is 216,000 bytes (tape.md s4), so this is about nineteen tape sides, and it bounds the memory a file can ask of the browser: every byte on tape is an entry in the list of events. The first limit was 16 MiB, for gzip only.
  • LostBytes counts one tape load. Putting a tape in, rewinding, taking it out and starting a recording each set it back to 0.
  • $FE04 reads as 0 until a byte arrives. The ULA’s power-on state is not known (ula.md s12 item 4).

How the tests treat it. UlaTapeTests drives the port alone, with no OS: the times of high tone, receive-full, a lost byte and transmit-empty to the cycle, the recorder’s carrier rounding and threshold, the motor and the modes, and that the result does not depend on how often the ULA is caught up. TapeRoundTripTests saves a program with the OS, writes it as a UEF, reads it back and loads it on a fresh machine, and checks the production cassette records the same tape as the tape probe (TapeProbe, which TapeProbeTests exercises). TapeFaultTests covers a bad data CRC, BREAK, ejecting, a silent tape and *CAT, each bounded in cycles.

The Atari 2600: the cartridge, the boards and the region, where the model stops

What. Task 2 of the Atari 2600 plan: Region, Cartridge and the boards in Boards/ (plain 2K and 4K, F8, F6, F4, FA, and the Superchip on F8, F6 and F4). The sources are docs/atari-2600/facts/cartridge.md and region.md. The suite’s cartridge tests cannot run until the bus exists (task 4); until then the boards are tested alone, against images the tests build. Where the sheets are silent or the sources disagree:

  • The power-on bank is the last bank: bank 1 on F8, 3 on F6, 7 on F4 and 2 on FA. On the hardware it is undefined: the latch is two cross-coupled gates and the slot has no reset line (cartridge.md section 8). Bank 0 was the alternative, the suite’s “home bank”, and passes every suite test as well; the last bank was chosen because a game that breaks Korth’s rule (a valid entry point in every bank) most likely keeps its start-up in the last bank, as the boards with a fixed segment do [guessing - verify]. So the suite’s power-on-bank diagnostic will report bank 1 ($B1). A game that starts only from bank 0 would not start here.
  • Superchip and FA RAM is clear at power on. No source states its contents (cartridge.md section 6). Zero keeps a run repeatable.
  • FA switches only when D0 is 1. CBS’s patent (US 4,485,457) describes the gate and the suite’s bank-fa asserts it, marked untested on hardware; Horton and Korth say any access to $1FF8 to $1FFA switches (cartridge.md section 7.2). The patent describes an embodiment, not necessarily the board CBS shipped. If a visitor’s CBS game (Mountain King, Omega Race, Tunnel Runner) fails to change bank, the gate is the first suspect. A read gates on the hotspot’s byte in the bank showing before the access and returns that byte, which no suite cell checks.
  • A hotspot read on F8, F6 and F4 returns its byte in the bank it selects. The suite’s bank-hotspot-window asserts it from Atari’s patents, untested on hardware, and the patent itself says the access may reach either bank; Atari put the same NOP at the hotspots of every bank, so no Atari game can tell (cartridge.md section 4).
  • A read of a RAM write port writes the byte left on the data bus into the cell, on the Superchip and on FA, and the CPU reads that byte back. The suite’s ram-superchip asserts it for the Superchip, “untested here, for want of a Superchip board”; for FA it is inferred from the same decode by address alone (cartridge.md sections 6 and 7.1). A write to a read port stores nothing, and the model keeps the CPU’s byte on the bus where the real bus would carry a clash of the CPU and the RAM.
  • Peek of a RAM write port shows the cell, on the Superchip and on FA. A real read there drives nothing, so there is no byte a read would return; the cell is what a debugger wants to see. Everywhere else Peek gives exactly what a read would, a hotspot included, without switching (IBoard.Peek).
  • The Superchip is found by its filler alone. An F8, F6 or F4 image gets the RAM when the first 256 bytes of every 4K bank hold one repeated byte (the spec’s rule). Korth names Dig Dug, a 16K Superchip game, as carrying other bytes there, so it runs as plain F6 without its RAM and fails (cartridge.md section 9.2). Detecting the board from the image is issue #126.
  • The board is chosen by size alone, so an image made for a board of the same size that is not modelled (E0, FE, 3F and the others at 8K, E7 at 16K) runs as F8, F6 or F4 and fails. Each such board is an issue under #107.
  • The PAL colour clock is four fifths of the PAL colour subcarrier, 3.546895 MHz; Korth gives 3.546894 MHz (region.md section 1). No diagram of the PAL console’s oscillator was read.
  • The picture window is a choice: Atari’s picture lines with 18 lines above and below, lines 19 to 246 after VSYNC on NTSC and 27 to 290 on PAL (region.md section 3). A television’s visible lines vary from set to set. Tasks 12 and 13 check the bundled game and the calibration picture through it.
  • The pixel shape is computed, not measured: 12:7 on NTSC and 52:25 on PAL, from the square-pixel sampling rates of 480-line and 576-line video over each colour clock (region.md section 4).
  • Only an access with A12 high reaches the board, on every modelled board. Atari’s patent enables the hotspot gates with the ROM’s chip select, so this is sourced for F8, F6 and F4; Korth warns that other makers’ bank ports are not necessarily wired to A12 and may overlap the RIOT’s mirror at $0FF8, so for FA, CBS’s board, it is a guess (cartridge.md section 3) [guessing - verify]. The bus’s decode sends a board nothing with A12 low; Atari2600BusTests.Worked_example_2_the_vectors_and_the_cartridge_mirrors holds the cartridge at its A12-high mirrors, and the suite’s trusted tests of the RIOT’s mirrors pass.
  • A region switch takes effect at once, with no restart: the palette and the clock change and nothing else. No source compares the two TIAs’ logic, only what programs and the suite see (region.md section 5) [guessing - verify]. Every trusted self-test passes in both regions, and every recorded self-test gives the same verdict in both; the screenshot counts that differ by region are the PAL palette cases and the HMOVE cases below (suite-outcomes.json). Atari2600BusTests.The_region_switch_takes_effect_at_once_and_changes_nothing_else holds it.
  • SECAM is not modelled: the machine has two regions, NTSC and PAL, and no third. A SECAM console runs PAL software with its colour switch wired to black and white and shows eight fixed colours chosen by the luminance bits alone (region.md section 6), which neither region gives, so a game that reads the colour switch or relies on SECAM’s colours looks different here. The suite’s SECAM builds are not run. The spec leaves SECAM out; it is issue #106, which the machine’s page links.

How the tests treat it. BoardContractTests holds the power-on bank and the clear RAM on every board; FaTests follows the D0 gate and names the disagreement; BankedBoardTests holds the hotspot read’s byte; SuperchipTests and FaTests hold the write port’s read; CartridgeTests holds the filler rule, including on the suite’s own files; RegionTests holds the clocks, the window and the pixel shape, each against the section it comes from, and The_two_regions_are_named the two regions; SuiteRunner runs a test’s _ntsc and _pal builds only, and SuiteSelfTests.NotRun says so.

The Atari 2600: the RIOT, where the model stops

What. Task 3 of the Atari 2600 plan: Riot6532, the 6532 alone, built from docs/atari-2600/facts/riot.md. Where the sources are silent, the model makes a choice, and these are they:

  • The power-on state past what RES sets. RES zeroes the four I/O registers, turns both interrupts off and arms the negative edge (riot.md section 9). No source gives the RAM, the timer or the flags, so the model picks fixed values that make every run repeat: the RAM clear, both flags clear, and the count at $00 at divide by 1, so the first cycle passes zero, sets the timer flag and starts the free run [guessing - verify]. The real timer is taken to have been running since the RIOT’s own reset ended, which the two reset circuits’ RC values put tens of milliseconds before the CPU’s [guessing - verify] (riot.md section 9), so a program that reads the timer before writing it sees an unknown value on the hardware and a fixed one here. The suite’s CLEAN_START clears the RAM, and no riot/ test reads the timer before writing it.
  • The divider’s phase after a read ends the free run: the first fall comes a whole divider after the read (riot.md section 12 item 1). No source or suite test says [guessing - verify].
  • A read of the count on the cycle the flag is set leaves the free run going, as it leaves the flag (riot.md section 12 item 2). Untested on hardware; for TIM1T it makes no difference [guessing - verify].
  • Only the first pass of zero protects a read. In the free run the count wraps past $00 again with the flag still set; a read on that cycle clears the flag as any other read does. No source reaches it [guessing - verify].
  • A port A output at 1 reads 0 while its switch is closed, because the chip’s output cannot hold a grounded pin high (riot.md section 5, an inference) [guessing - verify]. Task 9 kept it for the joysticks (riot.md section 12 item 4).
  • The PA7 edge is seen on the cycle the pin changes, so a read on any later cycle finds the flag. When the real flag becomes visible is not stated (riot.md section 12 item 5); the suite never reads sooner than the next instruction [guessing - verify].
  • PB2, PB4 and PB5 read 1 as inputs, through the chip’s pull-ups, since the 2600 leaves them unconnected; no source states the value read on a 2600 (riot.md section 12 item 6) [guessing - verify].

How the tests treat it. Riot6532Tests holds each choice with the section it comes from: Section_9_power_on, Worked_example_5_the_flags_clearing_rules (the phase), Section_12_item_2_an_intim_read_on_the_flags_cycle_does_not_end_the_free_run, Section_6_the_free_run_wraps_and_only_the_first_pass_of_zero_protects_a_read and Section_5_a_port_a_output_reads_low_while_its_switch_pulls_it_low.

The Atari 2600: the bus and the first TIA, where the model stops

What. Task 4 of the Atari 2600 plan: Atari2600Bus, the machine and a first Tia, built from docs/atari-2600/facts/bus.md and the parts of tia.md the bus needs. Where the sources are silent, the model makes a choice:

  • The data bus holds $00 at power on. Its real value is not documented (bus.md section 8 item 3) [guessing - verify]. A program that reads an undriven line before anything has crossed the bus sees 0 here.
  • The TIA powers on at colour clock 0, with every register 0 and no latch set. No source gives its power-on state; the real counter may start in any state, the illegal one included (tia.md section 3) [guessing - verify]. The suite’s tests that skip CLEAN_START depend on this phase (suite.md section 8), and none of them runs before task 6.
  • The WSYNC halt’s repeated reads reach the cartridge, one access a cycle at the held address, as the 6502 data sheet’s “address lines hold the current address” suggests. No 2600 source confirms it (bus.md section 8 item 2) [guessing - verify]; a board that switches on a read of the next opcode’s address would see each.
  • CXBLPF drives D7 only. Its D6 is unused, and whether it floats or is driven 0 is not stated; the model lets it float, so it reads the bus residue (tia.md section 2.2) [guessing - verify].
  • A write to $2D to $3F of the TIA does nothing (tia.md section 2.1) [guessing - verify].
  • All three colour clocks of a cycle run before its access, the split the sources state (tia.md section 4); task 5 kept it by the plan’s rule (below).
  • Until task 9 builds the inputs, INPT0 to INPT3 read D7 = 0, as ports with no paddle connected do, and INPT4 and INPT5 read D7 = 1, both fire buttons up with the latch off. (Task 9 built them; the section on the inputs below says where they stop.)

How the tests treat it. Atari2600BusTests holds the residue at power on, CXBLPF and the TIA’s power-on counter (through the CPU’s reset, which leaves it at colour clock 21); WsyncHaltTests holds the halted reads as the slot sees them.

The Atari 2600: the TIA’s line, the palette and the frame, where the model stops

What. Task 5 of the Atari 2600 plan: the TIA’s horizontal sync counter and its blank, RSYNC, VSYNC and VBLANK, the playfield, the background, the palette and the frame, built from docs/atari-2600/facts/tia.md and region.md. Where the sources are silent, the model makes a choice:

  • The palette is computed from each region’s colour signal, by the formula in tia.md sections 19.4 and 19.5, not taken from any emulator’s table. The colours a television shows depend on its tint, colour and contrast controls and on the console’s colour delay setting, so these are the model’s colours and not a measurement. The NTSC step between hues is 360/14 degrees, so hue 15 is hue 1 (24 degrees is the design figure); the PAL hue angles are fitted to the documented names and to the colours the suite’s author confirmed on one PAL console; the contrast scale makes luminance 7 white; no gamma step is applied. All are [guessing - verify].
  • The order inside a cycle is all three colour clocks before the access. Every split passed the suite’s trusted tests the line allows, and the tie went to the split the sources state. The split is seen only with the TIA’s power-on phase, which is a choice too (task 4’s section above), and not at all after CLEAN_START’s RSYNC (tia.md section 4.1).
  • RSYNC restarts the line three colour clocks after its write lands, where Towers gives a four-clock cycle of the two-phase clock from the strobe (tia.md section 6) [guessing - verify]. Three keeps a store on cycle k at colour clock 3k after CLEAN_START, as the suite’s headers place it. The choice is tied to where the WSYNC halt releases. With four clocks, and the release on colour clock 0 or up to three clocks later, tia-timing/rsync still passes but the trusted tia-render/playfield fails (task 6, tia.md section 6), so the suite’s object tests side with three.
  • The line RSYNC starts releases a pending WSYNC, as every line start does; no source says either way (tia.md section 6) [guessing - verify].
  • A playfield cell takes its bit two colour clocks before its first pixel, so a write landing exactly then shows; the suite’s picture does not cover that clock (tia.md section 8) [guessing - verify].
  • The reflect bit is read with each cell’s bit, not once a line; no source states either (tia.md section 8) [guessing - verify].
  • VBLANK’s output gate acts one colour clock after the write, as tia.md section 4 reads it from the suite’s recorded midline-vblank picture, a reference and not a trusted test [guessing - verify].
  • A frame’s row 0 is the line VSYNC ends on, the first after the VSYNC lines, so a program of 262 lines makes frames of 262 rows; the plan fixes the alignment against the suite’s pictures once, on harness/calibration, in task 7 [guessing - verify].

How the tests treat it. TiaPaletteTests holds the formula’s worked examples and properties, CycleOrderTests the split and the RSYNC choice, TiaPlayfieldTests the playfield’s read clock and the reflect bit, TiaLineTests VBLANK’s delay and RSYNC, and FrameBufferTests the frame’s rows and window.

The Atari 2600: the TIA’s objects, priority and collisions, where the model stops

What. Task 6 of the Atari 2600 plan: the two players, the two missiles and the ball, their position counters and start decodes, NUSIZ’s copies and sizes, REFP, vertical delay, RESMP, priority, score mode and the fifteen collision latches, built from docs/atari-2600/facts/tia.md sections 9 to 14. Where the sources are silent, the model makes a choice:

  • A reset strobe holds an object’s counter for two colour clocks and then two motion clocks, which wait for the horizontal blank to end, before it restarts at count 0. That split is the one that gives both arms of the sheet’s landing rule from one mechanism (tia.md section 9.1) [guessing - verify].
  • A player reset landing at colour clock 69, one clock after the blank ends, lands the player at pixel 6, where the suite measured 7 (tia.md open item 7). A store on cycle k lands at W = 3k, so only a strobe on cycle 23 meets it. Task 7’s merge-delivery-replant measured it but does not decide it (below, under the suite).
  • A start decode is held until the object’s two-phase clock completes a cycle, and a reset’s end counts as one, so a copy decoded before a reset is drawn as the reset ends. NUSIZ is read as the decode is delivered (tia.md section 9.1) [guessing - verify].
  • A reset that lands before a copy’s decode loses that copy, as it stops the counter short of the decode, and the ball’s reset holds a main-copy decode, so the ball draws on the strobe’s own line where its count restarts. Both are the model’s reading of section 9.1’s table, not a source’s statement (tia.md section 9.1) [guessing - verify]. TiaPlayerTests.Section_9_a_reset_before_the_decode_loses_the_copy and TiaBallTests hold them.
  • A reset cuts off a start being drawn, or one a player’s scan counter has not taken yet, from the suite’s header for the ball (collision/resbl-kill, task 7’s), applied to every object [guessing - verify].
  • A start that arrives while a player is drawing restarts its scan counter; Towers says only that the counter is never reset otherwise [guessing - verify].
  • The player’s scan counter is clocked on the two-phase clock’s quarters 1 and 3 at double width and quarter 1 at quad width, the quarters that give the sheet’s first pixels and widths (tia.md section 11.1) [guessing - verify].
  • GRP0 and GRP1 are drawn as they stood a colour clock earlier, from the suite’s recorded midline-grp picture; every other object register is read on the clock itself [guessing - verify].
  • RESMP resets the missile as the player’s main copy’s scan counter reaches %010, not Towers’s %100, because that is the one scan count that gives the suite’s measured offsets of 4, 6 and 10 pixels with one delay (tia.md section 11.1) [guessing - verify].
  • Which line a missile released by RESMP first shows on is not documented; the model shows it from its counter’s next start after the clear, with nothing added (tia.md section 10, open item 6) [guessing - verify]. The suite’s missile-reset-lock checks the place, not the line; TiaPlayerTests.Section_11_resmp_hides_the_missile_and_releases_it_by_the_players_width holds the place.
  • Score mode’s halves are the playfield’s own, from the CNT decode, and in score mode the playfield takes its player’s priority and the ball keeps COLUPF; the score bit counts only with CTRLPF D2 clear. Only 2k6specs states the last three (tia.md section 13) [guessing - verify].
  • An object’s output holds through the horizontal blank while its counter waits, so objects collide there; TiaCollisionTests.Section_14_the_latches_set_in_the_blank holds it. The suite’s collision/blank-gating passes from task 6 on a visible overlap, not on this (with HMOVE doing nothing its objects meet at pixel 2), so task 7 must prove the blank mechanism (tia.md section 9.1).
  • The latches are gated by VBLANK as the picture is, a colour clock after the write [guessing - verify].
  • The objects’ power-on state: every counter at count 0 and quarter 0, nothing held or drawing, every register 0. No source gives it [guessing - verify].

How the tests treat it. TiaPlayerTests holds the landing table, the cycle 69 case, the copies held through a reset, the scan counter and RESMP; TiaMissileTests and TiaBallTests the missiles’ and the ball’s landings and widths; TiaPriorityTests priority and score mode; TiaCollisionTests the latches. The power-on state is held as one: Atari2600BusTests.Power_on_again_puts_every_part_back checks that power on after a run leaves the whole machine’s state report, the objects included, as a fresh power on leaves it, and TiaLineTests.Power_on_puts_the_counter_the_frame_and_the_registers_back that the TIA’s line starts from count 0 with a background of colour 0.

The Atari 2600: HMOVE and the motion clocks, where the model stops

What. Task 7 of the Atari 2600 plan: HMOVE, the ripple counter, the more-motion latches, the comb and the extra clocks, built from docs/atari-2600/facts/tia.md sections 15 to 17 and recorded in its section 17.1. Where the sources are silent, the model makes a choice:

  • HMOVE is taken on the first grid clock at least four colour clocks after the write lands, and its comparisons read each motion register on the grid clock before the pulse they decide. These are fits to Mott’s table and the suite’s headers, not a reading of the schematic [guessing - verify].
  • The latch that makes the comb is set as HMOVE is taken and cleared as each line starts. Only the boundaries are measured (cycle 20 combs its line and 21 does not; 74 does not and 75 combs the next), not the clocks of the set and the clear (tia.md section 16, open item 2) [guessing - verify]. TiaMotionTests.Section_16_hmove_combs_its_own_line_up_to_cycle_20_and_the_next_from_cycle_75 holds the boundaries.
  • Section 16’s table at cycle 8 is measured for $70 only; its other cells are the model’s predictions (tia.md section 16) [guessing - verify]. TiaMotionTests.Section_16_late_and_early_hmove_move_by_the_pulses_that_fall_in_a_blank holds the measured $70 cell at cycle 8, and not the other three.
  • An extra clock acts on the colour clock after its slot, before that clock’s pixel, so on the drawn line it merges with the motion clock into one early step, which skips one pixel of the object’s state and shows the next twice. That gives the suite’s residues for a one-pixel dot [inferring from jigo2600's reading of the schematic; guessing - verify].
  • Every object takes a merged step the same way, players included. The suite’s trusted collision/merge-delivery, merge-delivery-replant, merge-delivery-stretch and merge-delivery-train state that a player’s scan counter takes or refuses a merged step by its own state; the model does not, and the four fail. Task 11 triaged them again and found no mechanism in any source read, and Dan agreed on 15 October 2026 to move each to recorded (below, under the suite; tia.md open item 12). The same difference shows as single pixels in the recorded pictures of hmove-stuck-player, -stretch and -straddle.
  • A missile at width 2 loses a pixel the console keeps. Under the stuck motion train, a width-2 missile dot whose second clock falls on a grid clock draws one pixel in the model and two in the suite’s hmove-stuck-widths reference, one row in four of that band, in both regions. The header says the ball alone loses that pixel; the model gives the missile and the ball one width circuit, as every source opened does, so the ball matches and the missile does not. No mechanism was found, and a missile-only rule would be fitted to one picture, so it is not modelled (tia.md open item 19; the triage is in the task 7 journal entry) [guessing - verify].
  • An HMOVE while the count runs does not start it again; it sets the latches again [inferring from jigo2600; guessing - verify].
  • A reset cuts off its object’s start at the end of the clock it lands on, from the suite’s resbl-kill (the ball) and hmove-values (a missile), applied to players too [for players guessing - verify].
  • A player reset landing at colour clock 69 still lands at pixel 6, where the suite measured 7: merge-delivery-replant states the measurement but fails first on its merge rules, so it does not decide the mechanism (tia.md open item 7). Task 11 tried landing that reset at 7 in a scratch copy: merge-delivery-replant then failed on more of its legs, not fewer, so its failure is not this alone.
  • The PAL pictures of harness/calibration and tia-render/colors mismatch by the partition rule because the suite’s PAL references draw hues 0, 1, 14 and 15 as one grey, so colour numbers the TIA keeps apart share one reference colour. That is the rule meeting the PAL palette, not the TIA: task 11 found every mismatched reference colour of the two pictures over colour numbers that the model’s own PAL palette also draws as one grey. The counts are recorded in machines/atari-2600/suite-outcomes.json.
  • The PAL palette at luminance 0 differs from the suite’s PAL references. Those references draw $10, $E0 and $F0 as 0B0B0B and $00 as black, where the model’s PAL palette draws all four black. Unlike the rest of the two pictures’ counts, this is a difference of palette, not of the comparison rule: it is the three lines of tia-render/colors that still mismatch when the pictures are compared by palette colour (the task 11 journal entry). Which a PAL console shows is not settled by any source read [guessing - verify].

How the tests treat it. TiaMotionTests holds sections 15 to 17’s worked examples and section 16’s table; TiaBallTests and TiaMissileTests the reset’s cut; SuiteRecordedTests holds the four merge-delivery tests’ failures as recorded outcomes; ScreenshotTests reports every picture’s count, and SuiteRecordedTests compares it with the recorded one.

The Atari 2600: the joysticks, the fire buttons and the console switches, where the model stops

What. Task 9 of the Atari 2600 plan: Controllers, the two joysticks on the RIOT’s port A, the fire buttons on the TIA’s INPT4 and INPT5 with the latch VBLANK D6 enables, the paddle ports INPT0 to INPT3 with nothing connected, and the console switches on port B, built from docs/atari-2600/facts/riot.md section 10 and tia.md section 20. Where the sources are silent, the model makes a choice:

  • A press, a release and a VBLANK write reach the latch at once. When either shows in a read, to the colour clock, is not documented (tia.md section 20.2) [guessing - verify]. The host changes an input only between two of the CPU’s bus accesses, so a read sees every change made before it.
  • The fire latches power on disabled and at 1, so the ports read the pins; the latch’s power-on state is not documented (tia.md open item 13) [guessing - verify].
  • INPT0 to INPT3 read 0 for ever, with joysticks in both ports. A real floating port may drift to 1 through leakage after a long time; no document gives a figure (tia.md section 20.3) [guessing - verify]. A connected paddle is issue #108.
  • A port A output at 1 reads 0 while its stick holds the pin low (the RIOT’s section above; riot.md section 12 item 4) [guessing - verify].
  • The joysticks and the switches hold through power on. They are the outside world, and the console’s Reset is a switch the program reads, not a reset line (riot.md section 2).
  • The machine takes any combination, opposite directions together included, as a keyboard can press them and a real joystick cannot; it refuses only a bit that names no input.

How the tests treat it. TiaInputTests holds section 20’s worked example, both latches, the power-on choice and the paddle ports; ControllersTests every direction, button and switch on its bit, the worked examples, any combination, the inputs through power on, the port A decision and the PA7 edge from the left stick.

The Atari 2600: the sound, where the model stops

What. Task 10 of the Atari 2600 plan: TiaSound, the TIA’s two channels, stepped by the Tia twice a line, and SampleBuffer, the samples at the host’s rate, built from docs/atari-2600/facts/tia.md section 18 (section 18.8 says how). Where the sources are silent, the model makes a choice:

  • Each channel powers on with all nine bits 1 and its divider at 0 (tia.md open item 13) [guessing - verify]. All nine bits 1 is the state a program reaches by holding AUDC at 0, so a program that sets its sound up that way does not see the difference.
  • Every bit of a divided pulse is worked out from the bits before it (tia.md open item 14) [guessing - verify]. No period changes with the order; the phase of the first output bits for AUDC $2, $6, $A and $E does.
  • The divider is compared with AUDF at each audio step. jigo2600’s reading puts a latch, sampled on the audio clock’s other phase, between the compare and the pulse; a write to AUDF between the two phases is taken at the next step here [guessing - verify].
  • The first divided pulse after an AUDF write comes on the step after the count reaches AUDF: a counter at 20 with AUDF written as 5 pulses on the 18th step. That is jigo2600’s sequence, which also makes a steady AUDF divide by AUDF + 1; no source measured the step after a write (tia.md section 18.6) [guessing - verify]. TiaSoundTests.Section_18_6_counter_at_20_then_AUDF_5_pulses_18_steps_later holds it.
  • A write to AUDV0 or AUDV1 changes the level from the colour clock it lands on, not at the next audio step: the volume gates the pad’s drivers directly, and no source says it waits for the audio clock (tia.md section 18.8) [guessing - verify].
  • The mix is linear, s / 30 with s = AUDV0 x bit 0 + AUDV1 x bit 1; the curve the pads work against was not found (tia.md section 18.7, open item 15) [guessing - verify].
  • No filter of the console’s or the television’s is modelled. The samples run from 0 to 1, silence at volume 0 is 0, and a held level is a steady offset; the sheet gives no audio filter [guessing - verify]. How the page removes the offset is task 13’s.
  • The samples are band-limited steps, 16 samples behind the level (a third of a millisecond at 48,000 a second), chosen by measurement over the box filter (the task 10 journal entry). They are made when the channels step or a volume is written, inside those cycles, and at the end of each Run and RunFrames, so after Step alone they can stop up to one audio step, 116 colour clocks, short of now.
  • SECAM’s background noise at AUDC 0 is not modelled, with SECAM (#106).

How the tests treat it. TiaSoundTests holds section 18.5’s table for every AUDC value on both channels, the divider and section 18.6’s worked example, the power-on choice, the mix’s worked examples, volume 0 silent and 15 the loudest, the steps at colour clocks 36 and 148 with RSYNC and HMOVE, and the volume write at once. SampleBufferTests holds item 11’s count in both regions and at two rates, the region switch mid-stream, the order, the bound with no reader, a steady level, a step’s place, that the samples do not depend on how a run is divided, and power on. ResamplerTests holds item 12.

The Atari 2600: the suite, where the model stops

What. Task 11 of the Atari 2600 plan ran every test of the pinned missingno-vcs-tests suite that the trust split runs, in both regions, and recorded the outcomes of the recorded tests in machines/atari-2600/suite-outcomes.json, which only the recorder writes. The split and each test’s status are in docs/atari-2600/facts/suite.md; the outcomes, triage and commands are in the task 11 journal entry.

  • A trusted result is the behaviour of one console. The suite’s README says its tests were checked on one Australian PAL console, all black, in July 2026. Consoles differ at least in their colour delay, which is set by a potentiometer and drifts as a console warms, as one owner reports (tia.md section 19.3, from AtariAge 216590), so a trusted test that passes says the model behaves as that console did, not as every console does. NTSC was never captured, and the reference pictures are missingno’s renders aligned to that console’s captures. The captures themselves, the suite’s *_pal_capture.png photographs of that console’s screen, are not compared (Dan’s decision of 14 October 2026; issue #162).
  • Four trusted self-tests fail, and are recorded with Dan’s agreement. Dan agreed on 15 October 2026, asked one test at a time with the evidence in the task 11 journal entry, to move collision/merge-delivery, merge-delivery-replant, merge-delivery-stretch and merge-delivery-train from trusted to recorded. Their failures are recorded in suite-outcomes.json, so a change still fails CI.
    • The cause they share. On the drawn line, an extra motion clock from HMOVE that falls on a player’s own clock merges with it into one stretched pulse. The model gives the player’s pattern scan (its three-bit scan counter) one early step whatever the scan’s state. The suite measures that the console sometimes lets a second advance through, by the scan’s state (on its start decode, on its first bit, counting), the phase of the four-clock step grid and, at double width, which bit is starting. Towers and jigo2600 describe the scan counter on clean clock edges only, where it steps once a pulse; no source read describes the second advance, and a rule fitted to the tests’ tables is not modelled (tia.md open item 12) [guessing - verify].
    • collision/merge-delivery: CODE $04, OBSERVED $53, EXPECTED $7B, both regions. Legs 4 and 6 read wrong: a first bit is never skipped, and a scan already counting refuses a step off its own phase.
    • collision/merge-delivery-replant: CODE $03, OBSERVED $49, EXPECTED $4D, both regions. Leg 3 reads wrong: the merge pixel survives a quad player’s RESP0 landing at colour clock 69 during its start decode. Landing that reset at pixel 7, as tia.md open item 7 says the suite measures, made it worse, so that is not the cause.
    • collision/merge-delivery-stretch: CODE $03, OBSERVED $2A, EXPECTED $3E, both regions. Legs 3 and 5 read wrong: at double width the odd bits refuse the step.
    • collision/merge-delivery-train: CODE $04, OBSERVED $47, EXPECTED $7F, both regions. Legs 4, 5 and 6 read wrong: from the fourth bit on, the step grid’s phase decides.
  • Recorded pictures that do not match (each count is the recorder’s, in suite-outcomes.json):
    • harness/calibration and tia-render/colors, PAL only: the partition rule against a PAL reference that draws several colour numbers in one grey (above, under HMOVE), and, in colors, the three luminance-0 lines ($10, $E0, $F0) of the palette difference above. Not a TIA difference.
    • tia-timing/hmove-stuck-player, hmove-stuck-straddle and hmove-stuck-stretch, both regions: single pixels of a player under the stuck motion train, the same difference as the four merge-delivery tests (above; tia.md open item 12).
    • tia-timing/hmove-stuck-widths, both regions: a width-2 missile under a merged step (above, under HMOVE; tia.md open item 19).
  • Recorded cartridge tests that pass are not proof of the hardware. bank-fa, bank-hotspot-window and ram-superchip pass, but their headers call the behaviour they check (FA’s D0 gate, the byte a hotspot read returns, a dummy read that writes the Superchip) untested on hardware; a pass says the model agrees with the suite’s reading of the patents. power-on-bank passes by design and records the bank the model powers on in, which is a choice (above, under the cartridge).
  • Not run: the tests of boards not modelled, each listed with its issue in suite.md section 5.8 and in SuiteSelfTests.NotRun, and every SECAM build (#106).

How the tests treat it. SuiteSelfTests holds every trusted self-test in both regions, and each passes; SuiteRecordedTests compares every recorded test in both regions, the four moved ones included (SuiteOutcomes.MovedFromTrusted), with suite-outcomes.json, and checks that the file is byte for byte what the recorder would write; SuiteSelfTests.The_trust_split_places_every_test_in_the_suite_exactly_once checks that every source in the pinned suite is trusted, recorded or not run, and nothing else, and that a test leaves the trusted list only through the moved list.