Files
courier-emu/native
Cryan209andClaude Opus 5 dd6c5bc086 Record the DSP's mailbox writes where they happen
`dsp_originated_tags` polls `io_port_stats` once a batch and then reads
whatever `io_output` holds, which samples an asynchronous stream: it
counts polls that saw a change, not messages, and can pair one
message's tag with another's word. The general I/O event log cannot
stand in for it either - it is unfiltered and capped at 8192, and the
datapump's transmit writes to port 0x50 run to half a million per call,
so it holds nothing but PCM by the time anyone reads it.

Keep a separate log of the writes to 0x5e..0x60 in the core, and decode
it in the bridge on the resident sender's own boundary: the tag goes to
0x5e and the words follow on 0x5f (0x83eb, 0x83ee, 0x83f6), so a write
to 0x5e opens a message. `status().dsp_mailbox_log` is the ordered
result, with the pc and instruction count of each send.

On a leased pair it confirms what the poll had reported, so the poll was
not in fact tearing here: the answerer sends exactly two messages in
150M instructions and the originator one.

  a  92,860,533  tag 006b  words 0000 4321
  a 112,636,450  tag 0034  words 0000 0005
  b  99,940,384  tag 006b  words 0000 4321

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 12:51:39 +12:00
..
2026-08-04 13:01:29 +12:00