Files
courier-emu/artifacts/dsp-mailbox-command-02/transcript.json
T
Cryan209andClaude Opus 5 781993e134 Characterise the CPU/DSP mailbox and the 60/62 window on hardware
A first host-to-DSP write attempt wrote the four data registers and observed
nothing. The supervisor's own mailbox interrupt at 0fda9 explains why, and the
DSP's dispatcher at 839b explains it better still.

The wire format was never the problem. What was missing is the commit: bit 0
of port 1c is the board's standing request, and the interrupt answers it by
writing the status back with that bit still set, clearing it first only on the
path that had nothing to send. An idle unit reads 1c as fd forever because the
supervisor in command mode never has traffic.

With the commit supplied, a tag is repeatable and predictable. Tag 07's
handler is three instructions and reports 8031; tag 62 reports 8069; the tags
that reach the bare ret at 8222 are a null control. Every prediction was fixed
from the disassembly before the runs and held in both directions, and tag 62
even returned its own saturation constant.

That also refutes the shape the emulator models. A mailbox tag is a command
index into a 121-entry jump table bounded at 7f, not a destination address, so
writing an arbitrary DSP data cell through it was never possible. Only 27
handlers store the host's word at all, each at one fixed address, and none of
them is an index either program reader uses. host_write() is kept as a way to
seed modelled state, with a comment saying it is not the board's protocol.

The 60/62 window's producer is now identified as the DSP: 84b7 is out *, 0060
followed by a status bit 2 that the supervisor's interrupt answers by calling
its chain vector. Acknowledging that bit is what pumps it, and pumping tag 46's
streamer returned sixteen words whose first four are DSP program memory,
matching the flash image at addresses predicted beforehand and reproducing
across two runs. So a readback channel exists and works end to end.

What is missing is a reader whose address the host can choose. Both known ones
are shut: 032a's readers compute an unmasked program address but both writers
clamp it below the six-entry jump table it indexes, and 03db's only writer
stores ae12's return, which is a six-way priority encoder and so cannot exceed
five whatever feeds it - tested on hardware by unmasking its one host-writable
AND term, ffb1, which left the index at zero.

The hardware also corrected a reading: tblr *+ post-increments the auxiliary
register, not the accumulator, so tag 46's paired table reads fetch one address
twice rather than consecutive words.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 22:08:16 +12:00

303 lines
6.1 KiB
JSON

[
{
"cmd": "AT",
"raw": "AT\r\r\nOK\r\n"
},
{
"cmd": "ATI7",
"raw": "ATI7\r\r\nUSRobotics Courier V.Everything Configuration Profile...\r\n\r\nProduct type US/Canada External\r\nOptions HST,V32bis,Terbo,VFC,V34+,x2,V90\r\nFax Options Class 1,Class 2.0\r\nClock Freq 20.16Mhz\r\nFlash ROM 512k\r\nRam 64k\r\n\r\nSupervisor date 03/13/98\r\nDSP date 03/13/98\r\n\r\nSupervisor rev 7.3.14\r\nDSP rev 3.0.13\r\n\r\nSerial Number 0009540034268322\r\n\r\nOK\r\n"
},
{
"cmd": "ATGLK2I001C",
"raw": "ATGLK2I001C\r\r\nFD\r\nOK\r\n"
},
{
"cmd": "ATGLK2I001E",
"raw": "ATGLK2I001E\r\r\nFF\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n31\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2O0058,0B",
"raw": "ATGLK2O0058,0B\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005A,00",
"raw": "ATGLK2O005A,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005C,00",
"raw": "ATGLK2O005C,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005E,00",
"raw": "ATGLK2O005E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001E,00",
"raw": "ATGLK2O001E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001C,01",
"raw": "ATGLK2O001C,01\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n31\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2O0058,62",
"raw": "ATGLK2O0058,62\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005A,00",
"raw": "ATGLK2O005A,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005C,00",
"raw": "ATGLK2O005C,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005E,00",
"raw": "ATGLK2O005E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001E,00",
"raw": "ATGLK2O001E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001C,01",
"raw": "ATGLK2O001C,01\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n69\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n15\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2O0058,07",
"raw": "ATGLK2O0058,07\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005A,00",
"raw": "ATGLK2O005A,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005C,00",
"raw": "ATGLK2O005C,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005E,00",
"raw": "ATGLK2O005E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001E,00",
"raw": "ATGLK2O001E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001C,01",
"raw": "ATGLK2O001C,01\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n31\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2O0058,62",
"raw": "ATGLK2O0058,62\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005A,00",
"raw": "ATGLK2O005A,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005C,00",
"raw": "ATGLK2O005C,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005E,00",
"raw": "ATGLK2O005E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001E,00",
"raw": "ATGLK2O001E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001C,01",
"raw": "ATGLK2O001C,01\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n69\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n15\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2O0058,07",
"raw": "ATGLK2O0058,07\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005A,00",
"raw": "ATGLK2O005A,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005C,00",
"raw": "ATGLK2O005C,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005E,00",
"raw": "ATGLK2O005E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001E,00",
"raw": "ATGLK2O001E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001C,01",
"raw": "ATGLK2O001C,01\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n31\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2O0058,0B",
"raw": "ATGLK2O0058,0B\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005A,00",
"raw": "ATGLK2O005A,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005C,00",
"raw": "ATGLK2O005C,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O005E,00",
"raw": "ATGLK2O005E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001E,00",
"raw": "ATGLK2O001E,00\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2O001C,01",
"raw": "ATGLK2O001C,01\r\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n31\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I001C",
"raw": "ATGLK2I001C\r\r\nFD\r\nOK\r\n"
},
{
"cmd": "ATGLK2I001E",
"raw": "ATGLK2I001E\r\r\nFF\r\nOK\r\n"
},
{
"cmd": "ATGLK2I0058",
"raw": "ATGLK2I0058\r\r\n31\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005A",
"raw": "ATGLK2I005A\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005C",
"raw": "ATGLK2I005C\r\r\n00\r\nOK\r\n"
},
{
"cmd": "ATGLK2I005E",
"raw": "ATGLK2I005E\r\r\n00\r\nOK\r\n"
},
{
"cmd": "AT",
"raw": "AT\r\r\nOK\r\n"
}
]