Commit Graph
3 Commits
Author SHA1 Message Date
Cryan209andClaude Opus 5 89b6fa6e79 Find how the overlays reach the DSP: a second, table-driven loader
The resident downloader could never have sent them - its source segment is
hard-coded, so it can only ever send the resident bank. A second routine pushes
words through the same eight data ports but handshakes on 1e rather than 18, one
acknowledgement per half-block, and takes its source from a table: four-bit code,
six bytes per row, start and end offsets and the C52 address to load at, with the
same code selecting the source segment.

The resident payload is a row of that table, which is what identifies it -
`dsp_overlays` returns nothing unless one row reproduces what the download call
site independently says. That leaves four images: 8000 resident, then 9d00, b000
and dc00. All three 512 KiB builds agree on those addresses, differing only in
length. Overlays 6 and 7 overlap in program space, so they are alternatives, and
every overlay lands inside the resident bank's range rather than extending it.

The codec picture does not change. The overlays hold no host sender and no DXR
write at all - algorithm code fed by the resident ISR - and the single codec
write among them is register 4 again. Every write this firmware makes after reset
targets register 4; the dividers are set once and never touched.

This also corrects driving-the-tones.md's third blocker, whose addresses do not
survive measurement: the 3.0.13 resident bank runs 8000..ec3e rather than ending
at d9ef, daaf holds instructions rather than zeros, and the payload has no zero
run longer than 32 words anywhere.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 23:24:47 +12:00
Cryan209andClaude Opus 5 a4566ab684 Rule out a second DSP payload, and map what the flash holds
The download-site scan was limited to the first code segment and to entry word
8000. Relaxed to the whole image and any entry, it finds three call sites - the
number rom.py already documents for this board - and all three send the same
payload: entry 8000, flash 29140..36e8e, 28,327 words. There is no second
download, so no downloaded program reprograms the codec dividers.

There is about 55 KB of further C5x code immediately after that payload which no
download call references. It is real code with consistent internal targets, but
it has no host sender, no DXR write and no codec initialisation - algorithm code
with no I/O, which is what datapump overlays look like.

All three 512 KiB 20.16 MHz images, including the flat IDSDL302.ROM, carry one
identical codec initialisation. main211's differs, consistent with its being the
25.8048 MHz build.

That sharpens the contradiction rather than resolving it, and adds a candidate
worth more than the others: that the AC01 is the dial and voice converter at
7200 and the datapump's samples go elsewhere. Algorithm code with no I/O has to
be fed by something.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 23:15:26 +12:00
Cryan209andClaude Opus 5 725b0176bc Map the flash addressing, which finds the tag 2c sends
There is no banking. Every capture manifest records physical_start 0x80000 and
the flash is flat across 80000..fffff, so physical is (segment << 4) + offset
and file offset is physical - 0x80000. `A000:9200` was ordinary real mode all
along. flash_dump.physical and .file_offset implement it and refuse anything
outside the window.

Near calls never needed this - a displacement is the same in file offsets as in
segment offsets - but far calls did, and scanning for the offset field alone
finds none, because the mailbox thunk at file f644 is reached as 8f46:01e4.
Resolving them takes the visible mailbox send sites from 23 to 137, and tag 2c
is in the list: three sites, each `mov ax, 0x2c` before the far call.

It does not carry the rate. All three write register 4 - two of them the
constants 0405 and 0409, the third two 2-bit fields each forced non-zero, which
looks like gain. None touches registers 1 or 2, and in the DSP image only the
six reset sites call 8138 at all. So the divider registers are written once, at
DSP reset, and never again.

That leaves three things that cannot all be true: the dial path runs at 7200,
the dividers never change, and this unit does x2 and V.90 at 8000 baud. The
document says so plainly rather than picking one. The likeliest resolution is a
second DSP program downloaded for the datapump, carrying its own initialisation
- which would reprogram the dividers on load and generate no tag 2c traffic at
all.

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