Commit Graph
43 Commits
Author SHA1 Message Date
Cryan209andClaude Opus 5 87574ff591 0x9cd4 is a resident frame loop; 0x9d17 is inside overlay 6
Tag 0x17's two entries are not the same kind of address. 0x9cd4 sits below
every overlay entry and is a two-phase frame loop that never returns,
driving the resume primitive at 0x9cec. 0x9d17 is 23 words into overlay 6,
whose span is 0x9d00-0xc9f5 on 302.

Corrects the previous commit, which described 0x9d17 from the base image's
bytes. Overlay 6 shares only 52 of 11,510 words with the resident bank and
every word at 0x9d17 differs; with the overlay loaded it is V.34 setup.

Also records the xc polarity: bit 14 set selects 0x9cd4, clear leaves
0x9d17.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:39:02 +12:00
Cryan209andClaude Opus 5 e6d41999ee Tag 0x1e carries bit 12 and nothing else; 0x17 is a two-entry start
Read out of the DSP dispatch table on both images - 302 base 0x8401 gives
0x9bc5 and 0x9b9d, 403 base 0x83e9 gives 0x9ba1 and 0x9b79, and the same
read reproduces fsk-modulation.md's 9b34/9b38 for 0x10/0x11.

0x1e is six words: clear @6f bit 12, mask the data word to bit 12, or it
back. That is the bit 0x8613f computes from [0x4ed] & 4, and the supervisor
calls 0x8613f immediately before publishing the tag, so the MNP LR 0xC0
payload reaches DSP @6f unbroken.

0x17 writes @6f wholesale as (data & 0x3200) | 0x40 and selects between two
fixed entries, 0x9d17 and 0x9cd4, on bit 14 of the data word - not through
the nine-slot table. The shared 0x9b50 prologue reloads @27, the mode-flag
cell the slot selector tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:36:44 +12:00
Cryan209andClaude Opus 5 fdc405d5d4 The 0xC0 capability path is in the I-modem and the quad server too
Same LR parameter, same decode, same 0x1000 override, same dispatch idiom,
at [0xd0a3] on Ie030002.nac and [0x84fd] on the quad channel flash. The
override is byte-identical in all three images and so is the emitter.

The I-modem and quad dispatch sites also publish tags 0x17 and 0x1e
alongside 0x10/0x11, which the two 302 sites traced here do not.

Also corrects the attribution in the previous commit: main211.xmf is a
Courier 3453B v2.1.1, an analog image with no "ISDN" string anywhere, not
an iModem.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:32:41 +12:00
Cryan209andClaude Opus 5 a5785aeb68 Bit 12 of the datapump data word is MNP LR parameter 0xC0
[0x4ed] bit 2 gates the one bit of [0x0281] that is not built from local
configuration, and it is a received byte: the two-octet payload of the
proprietary parameter type 0xC0 in the far end's MNP Link Request, decoded
at 0x85932 and 0x8d370 out of the two receive rings.

The frame is identified by its own parameter set - type 3 valued 1..15,
type 4 length 2 with a dead compare against 260 beside it, type 9 rejected
at 3 or above - and by the transmitted template at 0x85bde, which is the
canonical LR header byte for byte. The modem emits its own word through
the same parameter at 0x85cd3, skipping it entirely when the local value
is zero.

403 is the same code at [0x3e5]/[0x3e6]: 30 test sites with matching masks
in matching order, the same two stores, four clears and two literal-1
writes, and no or/and/xor against the cell in either image.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:28:59 +12:00
Cryan209andClaude Opus 5 669c33bfc7 [0x281] is two different variables in two different images
courier_firmware_analysis.md files a tag-0x7e DAA register read under
[0x281] while datapump-dispatch-gate.md publishes [0x281] as the datapump
command's data word. Neither is wrong: the first section was read from
main211.xmf, not the SV25.XMD its header names.

The iModem 2.1.1 supervisor loads at file + 0x40000, and every address in
that section decodes there exactly as written - 0x5c6b6 -> file 0x1c6b6
(c70602ff0080 / cf), 0x5e40c the [0x642] prescaler, 0x5db6c the period-3
state, 0x82b64 cmp word [si], 'SI', 0x6adb5 mov [0x281], ax after an
in al, 0x5c - and is zero in SV25.XMD.

Decisive both ways: IDSDL302.ROM has no store to [0x281] anywhere, and
main211.xmf has no mov bx, [0x281]. [0x027f] collides the same way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:24:17 +12:00
Cryan209 3c802ca16a dsp work 2026-09-16 14:24:04 +12:00
Cryan209andClaude Opus 4.8 0bbbc64948 Correct the demod finding: no receive state forms, but not "located at 0xc7xx"
The previous revision mislocated the demodulator. It claimed overlay 6's
receiver lives at 0xc700-0xcbff and is never scheduled, resting on two bad
reads: an address scan that matched mpy-immediate opcodes (0xCxxx) as if they
were 0xc7xx addresses, and treating negotiation_loop's 0xc7f7/0xc81a
watchpoints as this overlay's receiver. Disassembled from the running core,
0xc7f0-0xc820 is a smooth operand sweep - a coefficient table, not code - and
the compiled 0xc700-0xca00 window fetches zero instructions because it is data.
Those watchpoints are calibrated for a different datapump.

What is actually established stands and is stronger stated behaviorally:
forcing the hybrid return off (silence on the ADC) vs the normal 240 (full
carrier) and diffing serial_state at 40M moves only sample-level registers
(codec_rx_peak 24246 vs 0, drr 62334 vs 0) and drifts frame counts; every
state cell is identical and v8_*/negotiation_loop stay 0 either way. A
demodulating receiver would diverge on carrier-detect/energy/lock; this one
does not. The transmitter is what 0x8767 schedules - @6d only ever holds
transmit vectors (0x9dcf x68, ...). So AT&T1 modulates, loops back, buffers
the return, and runs no receive-side processing - but where the demod lives
and what would arm it is left open, not asserted. No code changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-16 13:05:42 +12:00
Cryan209andClaude Opus 4.8 d9f533ea44 The demodulator is loaded but never scheduled under AT&T1
Sharpen the demod finding with the task-vector evidence. Overlay 6 is a
two-task datapump: transmitter ~0x9d00-0xa3ff, receiver/demodulator
~0xc700-0xcbff (the block negotiation_loop watches at 0xc7f7/0xc81a; 0xca/0xcb
are its own subroutines). Zero 0xc700-0xca00 PCs execute across an AT&T1 run.

The scheduler at 0x8767 drives one foreground vector, @6d. Filtering the C5x
data-write trace to @6d, every value it is ever given is a transmitter address
- 0x9dcf x68, 0x9dd3/0x9dd7/0xa3ce x1, 0x0000 x4 - never a 0xc7xx. The overlay
entry 0x9d00 arms only the transmit loop (0x9d43, resume @6d=0x9d56->0x9dcf),
and the ISR vector @65 stays at the resident serial handler 0x8189. The RX
samples are buffered (0x8194 sacl *+) but nothing consumes them.

So AT&T1 modulates, loops the carrier back through the hybrid, and buffers the
return, but never arms the receiver to demodulate it. For a genuine local
analog loopback the receiver should come up - full-level carrier, no peer to
negotiate with - so the missing arm (what installs a 0xc7xx vector into @6d or
calls the receiver entry) is the gate to fix. No code changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-16 12:58:32 +12:00
Cryan209andClaude Opus 4.8 d8cd1f22a0 The datapump runs: a scheduler resumes it and the hybrid loops it back
A live co-sim trace of standalone AT&T1 overturns the "DSP dies at 0x065a"
reading. CourierMachine(with_dsp=True), dedicated-line, 40M instructions,
reading the C5x pc_trace and serial_state off machine.dsp_bridge.core before
the bridge closes.

The frame finding's missing "@6d re-entry" is the scheduler at 0x8767:
lamm @6e / bcnd / lamm @6d / bacc. Windowed on 0x8767..0x8773 the last 512
in-window instructions show 0x876f (the bacc resume) x103 - @6e is zero so
the branch always dispatches, @6d is non-zero so retc eq never fires. Tag
0x10 (0x9b58) enters slot 0 cold once - 0x9b58..0x9d00 each x1 - and the body
then runs only through the resumes, never back through 0x9d00. That is the
frame finding's hypothesis (b): cold first-time door, scheduler steady state.

No halt: the tail is live datapump math at 0x9fd6..0x9fff. And the hybrid
loops it: line_tx_nonzero 14026/23996, hybrid_frames 89967, hybrid_peak 12123
on hook, codec_rx queue empty - the analog loopback AT&T1 names, no line.

It does not demodulate, though. drr_reads 23988 at codec_rx_peak 24246, but
the read is the resident serial ISR 0x8193, negotiation_loop_entries 0, every
v8_* 0, and only two small outbound control words. Same wall the result-code
section hits from the transmit side.

Marks the 0x065a "DSP dies" subsection superseded and links the new evidence.
No code changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-16 12:51:29 +12:00
Cryan209andClaude Opus 5 0076ba810c entry_word is the entry, not the load base; the yield finding stands
Retract the misalignment claim. DspOverlay.entry_word for overlay 6 is
0x9D00 and the previous revision read that as the load address, found
every executed opcode disagreeing, and blamed the transfer. The load base
is 0x9D00 - 76 = 0x9CB4 and 0x9D00 is payload word 76. One word settles
it: payload word 76 is 0x7a80, exactly the opcode executed at 0x9d00.
Laid out that way, 37 of the 45 executed addresses inside the span match
overlay 6 and all 81 outside it match the resident image. The eight that
do not, 0xada5..0xadaa and 0xb058..0xb060, hold resident content inside
the span, which is what the multi-base transfer already documented here
produces - the payload is not one contiguous run, so a single-base span
over-claims. The ff62 re-point and the header length are not at fault.

With the correct base the code at the frame site reads cleanly: lacc @34,
retc lt, pop, lacc #9dcf, samm @6d, ret. That is a coroutine yield - it
discards its own return address and returns two levels up, leaving @6d
pointing at 0x9dcf as the resume vector. @6d is the same cell tags 0x59
and 0x5a write, so it is the scheduler's next-resume vector.

So the earlier frame finding stands, now on a correct base: the yield
needs two live frames and the path that reaches it builds one - 80c8 call
839b is the only push, and both onward transitions are bacc tail-jumps.
One level short, so the ret reaches past 0x80ca into the stale 0x065a and
halts. Either an intermediate transition should be a call, or 0x9d00 is
the wrong door and the coroutine is meant to be resumed through @6d.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:22:21 +12:00
Cryan209andClaude Opus 5 e30cd0a22f Nothing pushes it: the executing code is misaligned overlay 6
The question has no answer as asked. Comparing every address the DSP
executed against both candidate sources: of 126 distinct addresses, 91
match the base resident image, 0 match overlay 6's image at its
documented 0x9d00 base, and 35 match neither. All 35 of those match
overlay 6 at a uniform shift of +76 words, so the overlay content is
present in program memory and displaced by 152 bytes relative to the
0x9d00 the slot table jumps to.

So the DSP runs base resident code at 0x9d00 and falls into overlay code
misaligned by 76 words a couple of instructions later. The pop/ret
imbalance measured last is an artifact of executing that mixture, not a
frame convention, and 0x9e1a is not a real call-frame consumer. The halt
is the downstream symptom, not the fault.

bridge.py already documents that the transfer is not single-based - the
supervisor re-points ff62 partway through and the groups before that are
the transfer's header - and the same runs report overlay_words_unreadable
172. The displacement belongs to that machinery. overlay_match true and
overlay_downloads 2 are not evidence against it: they compare the bytes
that crossed the transfer, not where they landed.

Also flagged: _activate_call_overlay writes a signature-matched slice to
C50_CALL_OVERLAY_DESTINATION 0xC418, spanning about 0xC418..0xCE70, which
lands on the resident V.22 and V.22bis slot entries at 0xcd04, 0xcd1e,
0xcd85, 0xcd9d and across the 0xc700..0xca00 window - a harness-authored
overlay over firmware code, to be audited for the same fault.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:18:38 +12:00
Cryan209andClaude Opus 5 1e982eb1d1 The overlay expects a deeper frame than the dispatcher builds
Decoding the control flow in the traced window settles it. The chain that
reaches slot 0 pushes once - 80c8 call 839b, return address 0x80ca - and
then tail-jumps twice, bacc at 83bc into the tag handler and bacc at
9b6b into the slot, pushing nothing either time. The slot removes twice:
9e19 retc not taken, 9e1a be32 pop, 9e1e ef00 ret. An explicit pop and
then a return is two stack levels for one entry, and the sequence appears
twice in the tail, so it drains one more level each pass. Over the whole
210-instruction window it is 10 calls against 19 ret, 9 retc, 3 retd and
2 pop.

The stack model is not at fault. c5x_ops.ipp implements the eight-deep
circular stack the way MAME does, with POP_STACK replicating the bottom
entry as the part does. The extra removals simply walk back into the
eight copies of 0x065a the ROM pushed at startup with lacc #065a / rpt
#07 / push, and popping one is the halt.

So the overlay does expect a call frame, and a deeper one than a plain
subroutine's: the pop at 0x9e1a says its caller should have pushed a
resume word above the return address. bacc pushes neither. The ROM's
fill-the-stack dispatch only turns the underflow into a halt rather than
a wild branch.

Next: find what pushes the word the overlay pops.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:10:40 +12:00
Cryan209andClaude Opus 5 c05645c979 The slot was 0 - V.34, overlay 6 - and it returns out of the overlay
Tracing 0x9900..0xffff, high memory with the spin address excluded so it
cannot flood the ring, catches the last 210 in-range instructions: 0x9d02,
0x9d43..0x9d56, 0x9daf, 0x9e13, ending on 0x9e1e with op ef00, a bare ret.

0x9d00 is slot 0 of the table at 0x9b6c, overlay 6's entry, V.34. With
AT&T1 alone the overlay is resident - overlay_downloads 2 - so this is the
overlay's own code: 35 of the 126 distinct addresses executed carry
opcodes differing from dsp_program_segments, which is what an overlay
looks like where it overwrote the resident.

The sequence: &T1 sets flag C, the discriminator answers not-equal, the
selection block at 0x8bc41 writes [0xe3c] = 6 and the loader brings in
overlay 6, the supervisor publishes 0010:5001, the DSP's selector picks
slot 0, the bacc at 0x9b6b enters 0x9d00, and the overlay runs to 0x9e1e
and returns - into the eight stack slots the ROM preloaded with 0x065a.

Open: whether the overlay takes an early-exit branch it should not, or
expects an ordinary call frame and the ROM's fill-the-stack dispatch is
the wrong way to enter it.

Also recorded: "0x9d00 never entered" came from a range stopping at
0x9d20. Three ranges used in this document were too narrow to rule out
what they were pointed at. A negative from --dsp-trace-range only means
nothing in that window ran, and the ring keeps the last 512 records, so a
positive can be a tail. The leased-side claim is unaffected - it rests on
a whole-space snapshot topping out at 0x9893.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:07:02 +12:00
Cryan209andClaude Opus 5 5a4b635f32 &T1 does send the start command, and then the DSP falls into the halt sink
Two corrections and a finding. AT&T1 alone publishes 0010:5001; the
earlier claim that neither &N1 nor &T1 alone would do it was wrong, and
&N1 only changes the data word to 5041. The slot dispatch then really
runs - 0x9b58, 0x9b5a, 0x9b5e, 0x9b60, the selector at 0x9b7e, then
0x9b65..0x9b6b - so it passes the retc ntc and executes the bacc into a
slot. With overlay_downloads 0 that slot is a resident one, and 0x9d00 is
still never entered.

Then the DSP dies. A whole-space snapshot of the last 512 instructions of
an AT&T1 run is one address 512 times: 065a setc intm, 065b b 065b. That
is the on-chip ROM's halt sink. The six instructions above it are the
ROM's dispatch idiom - lacc #065a / rpt #07 / push fills all eight
hardware stack slots with the halt address, then lamm @7d / bacc enters
the handler - so any ret out of a dispatched handler lands on 065a, masks
interrupts and spins. The DSP took the start command, selected a slot,
entered it, and returned.

That also explains the _commit_rom_group abort seen when &T1 is used on a
linked pair: the DSP is wedged with INTM set and cannot acknowledge the
loader's strobe. A real Courier does not hang on local analog loopback,
so this is a fault in the model rather than the firmware's design - and
it means 0x10 being published is not evidence the datapump ran.

The leased case is not this. Its whole-space snapshot spreads over
0x8000..0x9900 across 346 distinct addresses with the DSP alive.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:01:44 +12:00
Cryan209andClaude Opus 5 e2f44c6240 One gate loads the datapump and suppresses its start
The image is loaded and never started, and the CF gate at 0x8b863 decides
both in opposite directions. &L1 makes it carry; at 0x8bbaa the carry
falls into mov [0xe3c], 6 and the loader runs, and at 0x8bee8 the same
carry takes jb 8bef8 and skips the mov ax, 0x10 that would have started
it. Measured on a leased pair, overlay_downloads is 2 with overlay_id 8
and 18,692 / 18,788 words verified - overlay 6, V.34, entry 0x9d00, and
its chained overlay 8 are resident - while the slot dispatch at
0x9b58/0x9b5c never runs and 0x9d00 is never entered. Only mailbox
commands 0x10 and 0x11 dispatch through the nine-slot table whose slot 0
is 0x9d00. What runs instead is tag 0x5a's handler: @44, then the
resident oscillator at 0x984c and the polynomial sine at 0x8b1a.

Forcing the other side proves the halves are exclusive: &N1 and &T1
publish 0010:5041 and the slot dispatch does run, selector and all, but
that run has overlay_downloads 0, so it falls to a resident slot and
0x9d00 is still never entered.

The gate is evaluated twice, at 0x8bbaa and again at 0x8bee8, so an input
that changes in between gives carry at the load and clear at the dispatch
- the combination a leased call needs. [0x5cd] bit 6 is such an input and
is settable, or [0x5cd], 0xc0 at 0xc9114 and 0xc9134 and or 0x60 at
0xc9154, inside far-called profile routines that also set [0x5a2],
[0x5b0], [0x5b7], [0x5cb]. None runs here and [0x5cd] measures 00.

Recorded while testing: the same leased pair under --line-audio-only
reports dsp_originated_messages 1, tag 006b:4321, where the default path
reports 0. The default path is also the one delivering the 0x5a that
installs the oscillator, so this is not by itself a harness fault.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 10:55:47 +12:00
Cryan209andClaude Opus 5 4c138c3dbf Correct three over-reads: no datapump runs, and the trace keeps the tail
The leased pair does not install V.22. Tracing the slot entries
themselves - 0xcc90..0xce20, holding V.22 cd79/ccfa and V.22bis
cd61/cce0 - gives zero executed instructions on both ends, as do the two
windows the core traces unconditionally, 0xc700..0xca00 and
0x0200..0x0300. A whole-space snapshot of the last 512 instructions puts
the DSP in 0x8000..0x9900 throughout, hottest at 0x9856/0x9860, a two-pole
resonator, and 0x8b1a, a polynomial sine with mpy #6487, pi/2 in Q14. It
is running an oscillator. No receiver, so nothing to report.

The dispatch says the same thing on a second reading: mov ax, 0x5a is the
value already in AX before the gate, and the carry only skips the mov ax,
0x10 that would have replaced it. 0x5a is the fallback sent when the
datapump is not started, not a leased counterpart of 0x10.

--dsp-trace-range keeps the last 512 records and drops the oldest
(c5x_core.cpp:1027), so "returns at 0x83d9 every time" described 128
visits at the end of the run rather than all of them. The claim still
holds, but on the totals: ports 0x5e/0x5f show 34 reads and 0 writes. A
zero-entry trace is still reliable, since nothing is evicted.

The rate conversion stands. The resampler was unit-tested on synthetic
1200, 1800 and 2400 Hz tones at 9600 and reproduces each within a bin with
artifacts 40x down, and the answer end's 1500 -> 1800 is exactly 5/6
undone. The reading of the other peaks as V.22 sidebands was over-read
from short windows on a changing signal, and is withdrawn.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 10:47:52 +12:00
Cryan209andClaude Opus 5 3979e9ad7c Neither end reports a result code because the DSP never sends
The return leg on 302 is an enqueue into the ring at 0x0bd0 indexed by
@78/@79, a drainer at 0x83d6 that the service loop calls from 0x80ca, and
out @7d, 005e / 005f. Traced over a leased pair, the drainer is entered
128 times per end and returns at 0x83d9 - retc eq, read pointer equals
write pointer - every time. Ports 0x5e/0x5f show 34 reads and 0 writes:
the reads are the DSP taking the inbound tag and word from 0xff5e/0xff5f
through the 0x23f0 helper folded onto the same register, so the host-to-
DSP direction works and the other direction has never carried a word.

The enqueue never executes. Its entry is 0x83bd, not 3.1.2's 0x83bf - the
caller passes the word in the accumulator and 83bd opens ldp #000 / sacl
@7d before the space check, which is why nothing in the image holds the
literal 0x83bf. Traced, 0x83bd..0x83d5 is never reached on either end.

Its only two callers are reporters: 0xd59d loads #8048 and 0xeb4b loads
#801c, tags 0x48 and 0x1c with bit 15 as the ring's more-follows marker.
0x1c is the tag the supervisor's own inbound handler collects at 0x8f499,
where the 0x1c arm gathers words into [0x14c] and 0x1d sets [0x24d] bit 1
and arms the [0x24f] countdown. That is the report it waits on. Tracing
0xd4a0..0xd5a0, the driver above the 0x48 reporter, gives zero entries on
both ends.

So the datapump is installed, both ends transmit the right carrier and
hear each other, and the whole reporting path is asleep. What wakes
0xd4a0 and 0xeb00 is a receiver condition and is not traced here.

Also recorded: runtime_inbound_delivered's three ffff:ffff words are
phantom. _dsp_completion_status returns status ^ 0x0006 under the ROM
profile, so a DSP that has sent nothing reads back as having completed a
send. Whether the inversion or the polarity is wrong is not established.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 10:24:20 +12:00
Cryan209andClaude Opus 5 b003bee9cd 0x5a needs no ASIC model; the transmit side needed a rate conversion
The DSP dispatcher rejects a tag above 0x7f and otherwise vectors through
its table - base 0x8401 on 302, not the 0x83e9 of 403 - and 0x59 and 0x5a
both have real handlers there where 0x5b and 0x5c are the shared no-op.
Each sets @6f, @6d, @6e, calls the installer, and writes @44: #2000 for
0x5a and #4000 for 0x59, which fsk-modulation.md reads at 9600 Hz as the
1200 and 2400 Hz V.22 originate and answer carriers. Traced with
--dsp-trace-range, both handlers run end to end on a leased pair, and
host_messages_delivered matches the count assembled. The register filter
never sees these words, but delivery to the DSP is a separate path and
already worked.

What was wrong was downstream. _queue_line_audio converts line rate to
codec rate on the way in; _service_line took core.line_tx_samples raw and
put 9600 Hz samples on an 8000 Hz line, so every tone reached the wire at
5/6 of its frequency and neither end could train on the other. Measured
on the recorded audio: the answer end's dominant tone moves 1500 -> 1800,
the V.22 guard tone landing where it belongs, and the originate end
resolves into sidebands at 930 and 1470 - a 600 baud carrier at 1200.

_service_line now draws from _take_line_audio, the conversion the
audio-only path already used, which also buffers because six codec
samples are five line ones. test_bridge_audio_rates and test_cli_link
pass. This does not by itself produce CONNECT.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 10:07:08 +12:00
Cryan209andClaude Opus 5 a84daf65ea &N1 disarms the leased branch; carrying the gate is the point
The previous two commits framed clearing the CF gate as progress. It is
not. Traced against a plain &L1 pair over the overlay route, &L1 alone
reaches mov [0xe3c], 6 on both ends, the originating end enters the
loader, and both report overlay_downloads 2 and overlay_id 8. Adding &N1
reaches neither site and downloads the overlay zero times.

So &L1 on its own is the complete leased arming - the carry reaches the
overlay id, the loader chains 6 to 8, and the dispatch publishes 0x5a or
0x59 - and it is the only configuration tried here in which the datapump
overlay loads at all. A fixed &N rate takes a leased line off that branch
and onto the dial's, where it does not.

&T1 is local analog loopback, so setting flag C through it forces the
dialed dispatch out of a diagnostic. The leased branch never consults the
discriminator; the CF gate answers first. That section now says so, and
says what it is for: flag C is the only one of the three that can be set
at all, and it establishes that 0x10 is reachable. It is not a step
toward a leased CONNECT.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 09:47:51 +12:00
Cryan209andClaude Opus 5 8c1615617f 0x876c5 is AT&T1, and with &N1 it publishes 0x10
Flag C's setter has exactly one route and every step of it is now named.
0x876b1 takes the je to 0x876c5 because [0x33e] bit 2 is clear. 0x876b1
is stub 1 of the eight call/retf stubs at 0x875d8, whose only far
references are eight lcall blocks at 0xa6af0. The indexed jump at 0xa6ad7
selects them through a nine-entry table at 0xa6ade: AL=1 is stub 1, AL=2
is a stc/ret reject, AL 0 and 3..8 are the other seven stubs. The router
at 0xa6a6c parses AL as a decimal argument and, for AL outside {0,4,5},
requires the discriminator's own three cells to be clear before the jump.

Probed a command at a time, AT&T1 hits the router, the jump, stub 1 and
0x876c5, and leaves [0x685] = 01; AT&I1, AT&I4 and AT&I8 hit none of
them. So it is the &T1 the 403 note already pairs with &L1.

&N1 then &T1 on one modem publishes 0010:5041 - the datapump dispatch,
reached for the first time here. &N1 clears the CF gate so the path falls
through to the discriminator; &T1 sets flag C so the discriminator answers
not-equal. Neither alone is enough.

On a linked pair the same commands abort the harness first, in
_commit_rom_group: the C51 ROM loader does not acknowledge strobe 1. That
is a bridge limit on the reload &T1 provokes, not a firmware branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 09:28:34 +12:00
Cryan209andClaude Opus 5 b166b23404 [0x0600] is &N, and it has exactly one writer
Scanning the image for every direct write to the cell - mov, inc/dec,
and/or/xor/add/sub, xchg, immediate or register, byte or word - gives one
site, 0xa69df, inside a handler that parses a decimal argument off the
command line and range-checks it against a ceiling taken from the [0x89d]
capability bits. Probed a command at a time, AT&N1 puts 01 there and
&A/&B/&G/&U/&Y leave it at 00, so the cell is &N, the fixed link rate.

The CF gate clears for &N1..&N3 only, and the factory default is &N0 -
ATI4 prints it - which is why a leased seizure carries and publishes
0x5a/0x59.

With --at AT&N1 --at AT&L1 on both ends the gate clears and those two
words are gone: the pair now publishes 0014:5141 and 0017:5041, the
discriminator-equal words, with send-10 and send-11 still never reached.
The blocker moves from the CF gate to the discriminator, where a dial
already sat.

The same scan over the other four cells: [0x5cd] has five writers and bit
6 is settable from the 0xc9xxx block, which is a second independent way to
clear the CF gate. [0xa96] has seven writers and none sets bit 1.
[0x5a5] has two, both clears, and no setter anywhere. [0x685] has
eighteen, one of which sets bit 0 - the site the dial section already
traces. So flags A and B cannot be set by this image at all.

The scan finds direct disp16 writes only; an indexed or based write would
not appear in it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 09:10:46 +12:00
Cryan209andClaude Opus 5 2ef031c0bf 302's leased-line answer to main211's 0x82 is 0x5a / 0x59
The dial was already traced: the discriminator at 0x8b84f is equal, so
0x8bee8 publishes nothing and 0x8bf0f emits 0017:704d. &L1 takes the
other branch of the same instruction and nobody had followed it.

Both dispatch sites are three-way, both publishing [0x0281] as data. At
0x8bee8: CF gate carry -> 0x5a, gate clear and flags clear -> nothing,
gate clear and a flag set -> 0x10. At 0x884cb: carry -> 0x59, else 0x14,
else 0x11. So 0x10/0x11 are the dialed datapump commands and 0x5a/0x59
are their leased counterparts; a dial never reaches either because the
discriminator answers first, a leased line never reaches them because the
CF gate does.

[0x05fa] is &L, measured: of the eight cells peeked across idle, ATDT,
leased answer and leased originate, it is the only one a leased seizure
moves, and it is what makes 0x8b863 return carry. It is the 302
counterpart of the 403 note's [0x04f2]. [0x0600] is the cell that would
have to reach 1..3 to clear the gate; nothing writes it.

Traced over a full leased pair: site 8bee8 hit once on originate and
send-10 never, site 884cb hit once on answer and send-11/send-14 never,
[0xe3c] <- 6 reached at 8bbba on both ends, and the originating end
enters the loader at 8b5d1 - which a dial never does.

The harness drops both words: _observe_asic_command takes 0x13..0x1f and
0x7d..0x84 only, so 0059:715d and 005a:704d fall through it with the rest
of the leased block. 302 writes no header above 0x77 on any path, and its
own inbound dispatcher rejects one - 0x8f492 does cmp al, 0x76 / jb. The
0x7d..0x84 window is main211's and is empty here in both directions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 08:52:01 +12:00
Cryan209andClaude Opus 5 43cacf96be Merge the two datapump-gate docs into one answer and one 302 reading
datapump-gate-403-addresses had the resolution - an answered call arms the
datapump from the DSP with 0047:0007, and &L1/&T1 arm it by command - buried
under 1449 lines of the chase that got there, including two withdrawn
'the gate is on a dead path' findings. datapump-dispatch-gate still presented
the three-flag discriminator as the open root cause and asked a question the
other file answers.

The arming doc now leads with the answer; the 302 doc keeps the static
reading, the tone-gain EEPROM offset and the delivery fix, and points at it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:09:55 +12:00
Cryan209andClaude Opus 5 b5527d78db Rewrite the two 403 status docs to what is currently true
Both were research narratives that kept every wrong turn inline and appended
corrections at the tail, so the sections a reader reaches first were stale -
board-verified-403 still said the speaker was unidentified after asic-pinout
and the 2806 trace had moved it to the DSP side, and the datapump gate doc
still carried the 'ATI7 parameter sector' gap and the 403-vs-302 framing the
EEPROM offset finding retired.

Wrong turns that stop a mistake being repeated are kept, condensed, under
'Ruled out'. The rest is in git.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:07:16 +12:00
Cryan209andClaude Opus 5 8967d11fda Recover the Quad's settings EEPROM, and correct the 403 decode
ATI7 on the Quad reported V32bis,Terbo,V.FC,V34+ with no HST, x2 or V90.
That list was never read from anything: the options line is built from
[0x8838] at 0xdf363, which the boot decode at 0xc0940 assembles from
setting 2 of the six obfuscated settings records at RAM 0x86ee. With no
EEPROM present every record reads back zero, the 3-of-3 majority vote at
0xceba7 fails, and the decoder returns its own XOR constant 0x1d as if it
were data. 0x1d happens to carry bits 2 and 3, which is the whole of the
reported feature list.

The records are the same 93C66 part the 302 and 403 carry, at the same
EEPROM word 94, reached over the same 186EB PIO lines machine.py already
translates: DI ff5e bit 7, DO ff5a bit 7, CS ff56 0x20, CLK ff56 0x04.
The frame builders are at 0xc16f7 (read, ah=6) and 0xc15e4 (write, ah=5),
addressing words as (di - 0x8632) >> 1, which puts the record block at
word 94 exactly. So the probe only ever needed a device handed to it, and
now seeds one by default; pass --no-nvram for the old unprovisioned run.

Seeded with IDSDL403_NVRAM the firmware reads the block over the wire and
ATI7 reports HST,V32bis,Terbo,V.FC,V34+ plus the Fax options line.

This also corrects docs/datapump-dispatch-gate.md, which held that the 403
part is not 7.3.14's shape because the six records show no majority. That
decode was taken at 7.3.14's RAM address. 7.3.14 caches only words 94..102
at 0x0752; 7.4.16 copies the whole part to 0x058e..0x078d, putting the same
words at 0x064a. At 0x0752 the 403 part gives no majority on any record,
reproducing the original result; at 0x064a all six are unanimous, and differ
from 302 in one bit of setting 2. The five-word shift is real for the
extended +S block and does not extend to the settings records.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 09:55:31 +12:00
Cryan209andClaude Opus 5 bce58dbd5c Give 403 its own +S block: the offset was five words, and it dials
The 403 capture put pure silence on the line because mailbox tags 001a and
001b carried zero where 302 carries 32c8 and 0c08. datapump-dispatch-gate.md
concluded that 7.4.16 computes zero for the transmit levels where 7.3.14
computes them. Read off the running board, that is wrong: RAM 0cd9 is 32c8
and 0cdb is 0c08, the same values 302 sends. 7.4.16 does not compute the
gain at all - it reads provisioned storage, and the emulator was handing it
an EEPROM that did not carry it.

The writer is not the a0907 copy the document chased. It is the scatter at
c9a91, which stores bytes from RAM 071b upward through a CS-relative offset
table - and 071b is the +S extended block nvram.py already models. So the
chain is EEPROM -> 071b -> c9aa6 -> 0cd9/0cdb -> tags 1a/1b.

The gap was where the block sits in the EEPROM. 7.3.14 stores it from the
high byte of word 0xc1; 7.4.16 stores it five words later, from 0xc6. With
the 302 fixture, 403 landed block offset 10 at 071b where the board lands
offset 0 - ten bytes, exactly five words. The block's own trailer confirms
the alignment: 302 ends it with the ASCII "3.02" and the board ends it with
0x0193, which is 403.

IDSDL403_EXTENDED is the board's own provisioning, taken from the read-only
RAM capture added here and identical across both of its passes. With
--nvram-fixture idsdl403 the emulated 071b block matches the board byte for
byte, and the 403 image dials:

  transmit peak    0 -> 22,764        digits decoded  "" -> 6245
  nonzero samples  0 -> 3,669         DTMF blocks      0 -> 137
  001a  0000 x4 -> 32c8 x4            001b  0000 x4 -> 0c08 x4
  0019  c802 x6 -> 020d x7            001f  0032 x6 -> 0000 x6

All four register lanes now carry what 302 carries. The earlier "same bytes
read at a one-byte offset" reading was groping at this; the offset was real
and it was five words in the EEPROM, not one byte in a table.

Only the extended block is seeded. 7.4.16's boot settings are not the six
obfuscated records 7.3.14 keeps at words 94..102 - decoding the board's
cached window with the e237 routine gives no majority on any of the six - so
nothing is written there rather than writing a 302 shape and calling it 403.

The capture is read-only throughout: AT, ATI7 and ATGLK2= page reads, 510
pages, no failed attempts, firmware anchors rechecked identical afterwards.

test_nvram passes 11/11. test_cli's 16 failures are unchanged by this and
predate it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 18:11:48 +12:00
Cryan209andClaude Opus 5 8a4c789aae Localise 403's zero gain to two unwritten RAM cells
The gain is not computed. a0ab1 reads [0x0cd9] for tag 1a and a0ac4
reads [0x0cdb] for tag 1b; traced across a dial each fires once with
bx = 0000, and both cells read zero.

Nothing in the image writes either by absolute address - those two reads
are the only references. Neighbours in the same block are populated by
the byte copy at a0907, which walks a table selected by [0x0c9e] into
0ca7, and [0xca7] and [0xcf9] hold 55 and 32 accordingly. But watching
every write into 0cd8..0cdc shows the copy never reaches them: only a
boot write, a clear at 804c6, and the 5555/aaaa RAM test appear.

Whether the hardware also has zero there, or a real boot fills them, is
one ATGLK2 read away on the board that runs this image.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 01:11:00 +12:00
Cryan209andClaude Opus 5 03f9cc7f0f Watch the ring: the 403 supervisor enqueues the zero itself
--mem-watch FIRST:LAST records 80186 memory writes in a range with the
program address that made each.

403's drain reads its ring pointer from [0x194] and wraps at 0x1c8, not
302's [0x29a] and 0x2ce, so watching 29e on a 403 run watches unrelated
memory - which is what made its ring look scribbled over. Watching the
real ring shows the enqueue at 8f668 writing ff00, 001a, 0000 and then
ff00, 001b, 0000.

So the supervisor enqueues zero. Ring, drain, delivery, dispatcher,
handler and oscillator are all correct, and 7.4.16 simply computes zero
for the tone's gain and second amplitude where 7.3.14 computes 32c8 and
0c08. Nothing in the emulator corrupts these values.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:46:11 +12:00
Cryan209andClaude Opus 5 8a5a8731f8 Deliver the completed mailbox message, not the latch
The 0x5E write latches the finished pair and the 0x1C bit 0 commit
delivers and clears it, so a repeated acknowledgement cannot re-send the
last message and a commit landing between the tag writes and the data
writes cannot send a half-updated latch. Assembled and delivered counts
now agree - 68/68 on 403, 66/66 on 302, both previously two apart - and
302 is unchanged in behaviour: dialed 6245, tone peak 22764, ringback.

It does not fix the 403 silence, and the reason is that the premise was
wrong. 403's supervisor genuinely sends 001a:0000 and 001b:0000 where
302 sends 001a:32c8 and 001b:0c08; the 32c8 attributed to 403 earlier
was read off a 302 run. The DSP receives what it was sent and 822b
stores what it receives, so the gain is zero because 7.4.16 sent zero.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:39:33 +12:00
Cryan209andClaude Opus 5 929b50670a Diff the delivery paths: delivery is triggered mid-message
The two paths do not compete. _mirror_port is unreachable for the
mailbox ports because the runtime-port branch in io_write returns first,
so MIRROR's 0x5C/0x5E entries never fire and only
_deliver_host_message reaches the DSP's host cells.

They differ in when they act. Assembly updates one latch pair per port
write and records the message on the 0x5E write; delivery, on the
boot_rom_enabled path, fires on the supervisor's 0x1C bit 0 and sends
whatever the latch holds then. The counts show the decoupling directly -
403 assembles 68 messages and delivers 70, 302 assembles 66 and delivers
68 - so an acknowledgement with no new message re-delivers the latch.

That also explains the zero. Between the 0x58/0x5A writes and the
0x5C/0x5E writes the latch holds a new tag with the previous message's
data, and the previous message is the dial block's own 0016:0000 start
marker. A 0x1C in that gap delivers tag 1a with data 0000, which is what
839b read and 822b stored into the gain.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:25:06 +12:00
Cryan209andClaude Opus 5 14061ca5b5 Watch 7a: the word delivered with tag 1a is zero
The dispatcher is faithful - 8387 reads status 57, tag 5e and data 5f
through the lamm helper at 80e8, and its table arithmetic resolves to
the same 83e9 read earlier. Those three cells are exactly the bridge's
HOST_STATUS_CELL, HOST_TAG_CELL and HOST_WORD_CELL.

Watching 7a around the first digit shows 839b storing 0000 ten
instructions before 822b writes that zero into 0392, and 0006 arriving
intact just before ee20 arms the oscillator. So the word delivered with
tag 1a is zero and the handler stores what it was given, while the
supervisor's stream records 001a:32c8.

Also corrects an over-read in the previous revision: the 0032/c802/0400
words it pointed at are at DSP 40.6M, before the tag 1a handler runs at
51.28M, so they belong to other tags and are not evidence.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:22:30 +12:00
Cryan209andClaude Opus 5 7694f30fa2 3.1.2 puts 1a and 1b where they belong; the delivered value is wrong
The mailbox table at program 83e9 validates on its own - entry 0x13 is
ee20, the handler already watched running - and the two in question are
822a smmr @7a,#0392 and 8232 smmr @7a,#03f1. Those are exactly the
destinations driving-the-tones.md records, so 3.1.2 does not move them
and the previous revision's guess that it might was wrong.

The handlers also run: 822b fires once per digit, each a few tens of
thousands of instructions before that digit's ee20 arms the oscillator.
Each time it stores 0000, and the supervisor sent 001a:32c8. Its later
001a:32d6 arrives as 2fd6.

So the handler, the destination and the ordering are all right and the
value is wrong, which puts the fault in this emulator's host-message
delivery rather than in the firmware. Tag 0x13's data survives, so it is
selective rather than a dead path.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:18:28 +12:00
Cryan209andClaude Opus 5 0e5ae4c4c4 Find the 403 silence: the mixer's gain cell is zero
The buffer and work pointer are sound. 390 circulates 0bc0..0bde step
two, written only by the ISR at 8190; even slots are receive, odd are
transmit, and the mixer's store at 80e7 lands on the right slot. It
simply writes zero.

80db is mpy @12, the accumulator times 392, and inside the tone 403 has
392 = 0000 where a 302 run inside its own first digit has 32c8. 3f1 is
0000 against 0c08, and 3f5 follows it because ee2c copies one into the
other. Those are exactly the two values the supervisor sends as 001a
and 001b, whose destinations driving-the-tones.md gives as 0392 and
03f1.

So the tone is generated and then multiplied by nothing. It is the same
class of fault as tag 0x13 moving from d82f to ee20 between the two DSP
builds: these values land in 3.0.13 and not in 3.1.2.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:16:11 +12:00
Cryan209andClaude Opus 5 a0d141151a Follow the tone to the mixer accumulator, where it stops
Ending the run inside the first digit rather than at full length catches
the tone in the last-64 write trace. In that window 874e and 875b write
a live waveform into 3c7 - the pair generator accumulating column then
row, exactly as the disassembly says - while the ISR at 818f writes 0000
to DXR over the same instruction counts.

So every stage from mailbox to accumulator is correct and the signal is
lost after it. What is left is the ten instructions from 80da to 80e7,
where the accumulator is multiplied by the gain at 392 and stored
through ar7, and the ISR's use of the same work pointer at 8181/818f/8190.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 00:00:06 +12:00
Cryan209andClaude Opus 5 9f97d97e4c Watch 39a during a digit: the generator runs, the silence is after it
--dsp-write-watch ADDR records every write to one C52 data cell with the
program address that made it. The write trace was unfiltered and its
4096-event buffer covers milliseconds; the read side also traces a fixed
set of cells and floods the buffer on its own. Both honour the filter now.

Watching 39a across a 403 dial gives four arm/restore pairs, one per
digit: ee2b writes 8743, and about 2.3M instructions later - roughly the
tone's duration - 86dc restores 8128. That is a one-shot callback
lifetime, not a clobber, so the end-of-run 8128 was just the idle state.

Watching 3c0 inside one of those windows shows the phase advancing by
0x2f81 per sample, exactly the increment tblr loaded into 3f2. The
oscillator runs at the right rate from the right table entry.

So the mailbox-to-oscillator path is sound and the tone is generated but
never reaches the line. What is left is the mixer's output path: the
work pointer at 390 reads 0bd8 in the full-board run where audio312,
which does produce output from this ROM, supplies 0bc0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 23:44:01 +12:00
Cryan209andClaude Opus 5 6a78c03bbe Widen the C52 trace window: ee20 runs and arms the tone correctly
The core's PC trace was two hardcoded ranges. set_pc_trace_range adds a
third, settable one, exposed as --dsp-trace-range FIRST:LAST. Pointed at
ee00:ef00 it catches 3.1.2's tag 0x13 handler four times in a dial, once
per digit, and the handler is correct: it indexes the frequency table at
ee34, loads both increments, installs 8743 - the DTMF pair generator -
in the mixer's callback slot at 39a, sets the amplitude and clears both
phases. Every cell is one answer-tone.md already named.

So the silence is downstream of the handler. --dsp-peek reads C52 data
cells at the end of a run, and after a 403 dial the increments are still
loaded while 39a holds 8128 rather than 8743. Whether that is the
firmware restoring a silence generator after the tone or something
writing one cell low is not separable from an end-of-run value; it needs
39a sampled while a tone plays.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 23:29:06 +12:00
Cryan209andClaude Opus 5 929d4bb642 Find why the 403 capture does not dial: its DSP emits silence
Side by side with 302 the supervisor halves are indistinguishable - same
bootstrap, off hook, dial tone qualified, the same four keypad-index
messages and the same eight 0016:0000. The difference is the datapump:
302 puts DTMF on the line at peak ~22,700 and the exchange decodes 6245,
while 403 writes 66,251 samples of which every one is zero.

The DSP is not at fault. audio312 on that same ROM renders a clean digit
through the firmware's own selector, oscillator, mixer and serial ISR -
peak 21,516, row 770, column 1477 - so 3.1.2's tone path works when
driven directly. What is missing is whatever arms it when the mailbox
carries tag 0x13, and 0x13's handler is the documented divergence
between the two builds: d82f in 3.0.13, ee20 in 3.1.2.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 23:16:35 +12:00
Cryan209andClaude Opus 5 4668cd9c69 Sample the gate cells on hardware, and correct two claims
Sampled [0x685], [0x5cd], [0x33e] and the rest on the board as found,
after ATZ, and while an inbound call is offered with S0=0 so the modem
stays in command mode. All three samples are identical, so these are not
call-progress state and a reset does not touch them.

Two corrections. The emulator's RAM is 0xff-filled, not zeroed: the 403
capture reads ff where the 302 run reads 00, and watching all seven
mov byte [0x685],0 sites plus both and [0x5a5],0xfe sites across a full
302 dial gives zero hits on every one. So the zeros are the 302 image's
own data initialisation, not cells the emulator fails to initialise.

And the addresses came from disassembling 302 while the board runs 403,
so the hardware-versus-emulator table only holds if the data layout is
unchanged between 7.3.14 and 7.4.16, which is not established. The 403
capture cannot settle it because it does not dial in the emulator yet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 23:09:23 +12:00
Cryan209andClaude Opus 5 7e9ca021d5 Read the gate cells off the board and compare them to a run
The NVRAM driver is at the same address on 302 and 403, and ID_SDL's
ATGLK2 - already used by flash_dump.py to capture the flash - reads
memory read-only, so the gate cells can be read off the running board
directly. --peek ADDR[=NAME] reports the same cells from a run.

Three differ, one of them the flag itself: [0x685] is ff on hardware and
00 in the emulator, [0x5cd] e0 against 00, [0x33e] 11 against 02. On the
board bit 0 of [0x685] is set, which is the condition that lets both the
overlay selection and the 0x10 dispatch through.

So the gap is cells the emulator never initialises - not a missing
message, and not a profile setting, since AT&F and a parameter sector
both leave them zero.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 22:58:03 +12:00
Cryan209andClaude Opus 5 74f6daf014 Test the profile hypothesis against the hardware, and drop it
Diffed the board's ATI5 against the fixture: the fixture is a blank
EEPROM, every S register 255. The diff is real but it is not the cause.
Making the firmware load a real profile through its own path - AT&F,
which loads the ROM defaults into the profile the call uses - leaves
call-loader at zero hits, as does supplying a parameter sector. The
three flags are not profile-derived.

Records a separate gap the ATI7 diff exposed: no dial run passes a
parameter sector, so the emulator prints no Serial Number line at all
while the hardware prints one. The Options line matches, so V.34
entitlement is not what refuses the overlay.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 22:45:43 +12:00
Cryan209andClaude Opus 5 43c21c4bf6 Find the real stop: the datapump overlay is never requested
Tracing up from the 0x10 dispatch reaches the actual end of the chain.
The C52 gets a datapump by the supervisor downloading one through the
loader at 8e5da - the same 0x40-0x4e window and 0x1e handshake the
bridge already models for the resident bootstrap. The post-dial
sequencer calls it at 8b5d1 only when [0xe3c] is non-zero, and the trace
shows that gate running once and taking the skip: [0xe3c] is zero, so
bootstraps stays at 1.

Both symptoms have one cause. The code that sets [0xe3c] to 6 or 7 is
guarded by the same 8b84f discriminator as the 0x10 dispatch, so it is
skipped for the same reason - [0xa96]&2, [0x5a5]&1 and [0x685]&1 all
zero.

Also records the supervisor's real event dispatcher, the indirect call
through [0x298] at 8f564, which runs three times in a whole dial; 0x82
there is an internal state selector, not the ASIC register write the
bridge waits for.

The trace hook now captures the caller's return address and the string
at DS:SI, which is how the dispatcher was found.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 22:28:22 +12:00
Cryan209andClaude Opus 5 f9d603df85 Add --trace-pc, and correct what gates the datapump dispatch
hot_addresses is a top-20 profile and cannot say whether a branch ran at
all - the queue drain at 8f521 demonstrably runs and never appears in
it. --trace-pc ADDR[=NAME] records the 80186's registers at named
addresses instead, counting every hit and keeping the registers for the
first few.

Pointed at the dispatch chain it settles it. The 0x10 dispatch site runs
once, takes the ZF branch and sends nothing; 8bf05 then sends the
0017:704d the run shows. mov ax,10 never executes, and the router that
would set the enabling flag is never entered.

It also overturns the previous reading. AL comes from 89cbc, which is a
decimal ASCII string parser, so it is a number out of a command string
rather than a call-progress event code. The flag is set on a command
path, not by the board reporting progress, which moves the open question
from "which event is missing" to "which command arms the datapump".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 22:06:56 +12:00
Cryan209andClaude Opus 5 6ab0ccad12 Trace the 302 datapump dispatch to the event code that gates it
The line going quiet after the digits is not the datapump stopping, it is
the datapump never starting. 302 configures it - a queued mailbox batch
drained at 8f521 right after the last digit - and then never sends the
10/11 dispatch that datapump-slots.md names.

The gate reduces to one event code. 8bee8 sends tag 10 only when 8b84f
comes back not-equal, which needs one of [0xa96]&2, [0x5a5]&1 or
[0x685]&1; [0x685] bit 0 is set at exactly one site, reachable only
through entry 1 of the thunk table at 875d8, reachable only from the
indexed jump at a6ad7 with AL = 1.

Also records that the bridge's own arming gate came from a 211 run and
cannot fire on 302, which writes no 0x82 at all, and marks the stale
datapump-silence blocker as superseded.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 21:51:30 +12:00