The rest of the Quad work that was sitting in the tree, and that the
modules and probes already committed depend on.
quad_usart reworks the DUART model; timers gains the EbInterruptController
that machine.py selects for a Quad profile instead of the Courier's
periodic-interrupt assumptions. The documentation updates cover the NMC
SDL protocol including the recovered card side of the handshake, the DSP
PCM path, and the x2 modem NAC.
I did not write these; the message says what they touch, not why.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The attention sequence is '2' '2' STX, walked out of the state vector at
[0x45c]: 0x19f6 and 0x1a01 each expect 0x32, 0x1a19 expects 0x02 and then
initialises the frame -- buffer at 0x44e, count at 0x448, CRC at 0x1533 set
to 0xffff -- and 0x1a44 collects. Any wrong byte resets to the start.
The collector folds each byte with a table lookup at cs:0x1cae, which is the
same CRC-16/X.25 table that seals the flash image at 0xfbfee and that the
NMC uses for msg_head. One CRC across the card image, the chassis framing
and this link.
Verification is partial: [0x45c] reads 0x19f6 at runtime, confirming the
initial state, but holding RxRdy and a data byte on the ports gives a run
identical to the unseeded one, so the receive entry is interrupt-driven and
this harness does not model the USART as an interrupt source. The idle loop
at 0x81976 is a transmit scheduler over four slots, not the receive poll.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
NM040103.NAC carries its own header dumper, wire-header dumper, and
function-name table, so the SDL container fields, the msg_head framing,
and the download command codes come from the image rather than guesswork.
All three images share one CRC-16/X.25 table. With init ffff and final
XOR ffff over 0x80000..0xfbfee it reproduces the stored word at 0xfbfee
exactly for both Quad releases, so that word is the image CRC, not an
inference. Chassis framing and card image verification use one CRC.
The NMC gives the message layer but not the Quad's local 0x0226 register
protocol; the document says so explicitly and records what is known about
that device from the card side.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>