Files
courier-emu/artifacts/ram-sampler-01
Cryan209andClaude Opus 5 da62407943 Run a port sampler on the modem, and find what AT&T8 destroys
The sampler works. Same hook as the counter - only the tick vector's segment
word is written, so the routine sits at 03a77 and the board never holds a
half-updated pointer - but each tick it now reads four ports and appends them
to a ring buffer at 04000. An idle capture took 834 ticks in 4.17 s, which is
200 Hz, and read 18=FF 1A=FF 1C=FD 1E=FF with one distinct value per port,
identical to what the serial sweep reports on hook. That cross-check is the
point of an idle run: it proves the instrument reads what it claims to.

The intended run was across an AT&T8 transition, to watch the mailbox handshake
at 5 ms resolution instead of the serial monitor's 165 ms. It returned an empty
buffer, and the reason is worth more than the run would have been.

AT&T8 clears essentially all free RAM. The control was unarmed - 51 marker
bytes placed across every free region from 0e77 to 0fc77, no routine hooked and
no code executing - and after a single AT&T8 / AT&T0 cycle 0 of 51 survived. So
this is the firmware's own behaviour rather than a crash of ours, and it
destroyed the routine, the cursor and the buffer in the armed attempt.

That retroactively justifies the warning recorded when page 09400 turned out to
fill under load: RAM that reads zero at idle is not free, and here the whole of
it is reinitialised by a command that looked like a harmless local self-test.
The one no-line stimulus available is therefore unusable with a RAM-resident
routine, which leaves a call as the way to see the ASIC move at tick
resolution.

Everything held on the safety side. The routine restores every register and
chains to 8000:0a77; disarm ran in a finally and succeeded; vector 0f reads
77 0A 00 80. The IN allowlist refuses 0x10, 0x12 and 0x14, so the hook relay
and NVRAM strobe were never reachable, and no flash command was issued. RAM was
returned to zero afterwards - using the AT&T8 wipe this run characterised - and
the modem answers AT and reports 7.4.16.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 20:55:00 +12:00
..