Files
courier-emu/tools
Cryan209andClaude Opus 5 9e6b055f40 @10 is AR7's save slot at data 0x0390, and it reads zero at idle
Resolving it mattered more than reading it. Direct addressing is DP-relative,
and ldp #007 sits immediately before the lar ar0, @10 at 0x8105 and 0x810d, so
@10 is data 0x0390 - not the memory-mapped AR0 at 0x0010 that a DP-0 reading
gives. And 0x0390 is where AR7 is saved and restored (sar/lar ar7, @10 at
0x808f/0x81a1 and 0x80c5/0x8192).

So the gate is not waiting for an uninitialised ARCR to be filled by something
unfound. With the NDX side effect active, lar ar0, @10 reloads ARCR from AR7's
own save slot every pass, and cmpr eq asks whether the live ring pointer has
moved off its saved value. The mechanism needs nothing external.

On the board 0x0390 reads 0x0000, sixteen samples. Control: the same kernel on
data 0xffff returned 0x0083 x16, matching dsp-boot-word-01, so the zero is a
reading and not a broken path. Taken idle and on hook and after the DSP reset,
so it is what the resident left behind - sampling it during a call needs a
probe that runs alongside the firmware, and that is the next step.

Also: placement was three quarters zeros. emit_ram_writes.py gains
--assume-zero (2144 writes -> 606, 350s -> 96s measured) and --against, with
verify as the guard that catches a wrong claim before anything executes. The
monitor turns out to zero its own image when it finishes - measured across the
whole 4240-byte region - which is what makes --assume-zero correct for repeat
runs and --against wrong.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 17:18:22 +12:00
..
2026-09-01 10:48:05 +12:00