_final_line_tx_scan reads the core's whole m_line_tx at the end of a run and
agrees with the core's own counters exactly: A has 5,176 nonzero samples,
peak 22,748, starting at index 27,412 (3.81 s). The bridge consumed indices
0..216,002 of that same array - which includes 27,412 - and saw a peak of
zero.
The same disagreement is on the audible end: B's array peaks at 28,040 while
the bridge only ever saw 17,188, which is also b-tx.wav's peak. The bridge's
view matches the wire in both cases; the array carries values it never read.
Ruled out by measurement: no core rebuild (core_rebuilt_at 0, bootstraps 1),
no trimming (one clear(), no erase/resize/pop_front), not the resampler (the
peak is zero before the conversion), not an out-of-range read, and neither of
the two causes settled earlier.
A vector does not change an index it has already written, so one of the two
measurements is not measuring what it appears to. Not a datasheet question.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
--line-frames N on run and link stops each side once it has exchanged N line
frames. Bridge.line_frame_budget trips Machine.request_stop from
_service_line_frame, so both ends leave at the same point in call time and
--instructions is only a ceiling.
300 frames on a 403 pair: both ends reach exactly 30.00 s of codec time
against 22.82 s and 15.89 s before, both still connected at exit, two
samples left in each buffer. The divergence and the dead-socket drop are
gone.
It changed nothing about the audio. Over 30 s with the peer alive
throughout, a-tx is 240,000 zeros and line_tx_nonzero is 5,176 - the same
count as the truncated run. So the previous commit's conclusion, that A's
silence followed from producing its audio after B had exited, is refuted.
The truncation was real and worth fixing and was not the cause.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Instrumented every branch of _service_line. originate_return is 0 on both
ends, so the guard proposed in the previous commit is exonerated - that
inference was wrong.
What the counters show instead: A calls _service_line_frame 228 times and
only 158 reach the peer, with line.connected False and "the far end closed
the line". The missing 70 frames are exactly 7.00 s, the shortfall measured
before and misexplained as an unshipped tail. A's buffer ends with 126
samples in it, so nothing was stuck.
Both ends stop at 85M x86 instructions, which is 22.82 s of codec time on A
and 15.89 s on B - a 44% divergence in instruction-to-sample ratio. B exits
first and A talks to a closed socket. The answer tone lands at 12.03-15.01 s,
so every nonzero sample A produces is generated after B has gone, which is
why a-tx is silent end to end rather than merely late.
Harness fault, not firmware. A linked pair budgeted on instructions gives the
two ends different clocks on a shared wire.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The core no longer hard-codes 2.1/2.2's c418: Bridge._v8_dispatch_addresses
finds every copy of the dispatcher by signature over the resident bank and
each declared overlay, and set_v8_dispatch_pcs hands them to the core, which
now also reports which one fired as v8_dispatch_pc.
_find_call_overlay requires the candidate to be pre-linked for the
destination - first branch target == 0xc418 + 0x0d. 2.1/2.2's stored copy
satisfies it; the self-linked resident copies on 302/403 do not, so nothing
is published there any more.
Measured on a 403 linked pair against the old behaviour as a control: every
V.8 number identical, only call_overlay_available moves, so the gate changed
nothing observable. The dispatcher does run, at 0xba0b, 22,471 times - but
@48, @4a and @4d are all zero, so every entry branches to program 0, and
v8_rx_peak and the audio rms are zero on both sides in the baseline too.
Artifacts in artifacts/v8-dispatcher-403-01/.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
_find_call_overlay accepts the resident dispatcher at 0xba2f (302) /
0xba0b (403) and copies 2,537 words of it to 0xc418. That block is not a
stored overlay: its branches are linked for its own address, so the copy
lands with every internal target pointing back into the original, and it
overwrites 0xc418-0xce00 of the resident bank.
The 2.1/2.2 layout it is modelled on is real - main211 does store the
overlay at b9c0 pre-linked for c418 - but 302 and 403 are flash ROMs with
the overlay table at 9d00/b000/dc00 and a different transfer protocol, as
the profile's own comment says.
Consequence for instrumentation: 0xc418 only becomes lacl @4a because the
misplacement put it there, so m_v8_dispatches counts the injected copy.
0xc7f7/0xc81a/0xc853 are 2.1/2.2 divide loops and are ordinary resident
routines here. The real dispatcher is at 0xba2f and 0xca41 on 302, 0xba0b
and 0xca1d on 403, plus a guarded copy in overlays 6 and 7.
This does not establish a cause for the V.8 stall - the counters are
write-only and never feed back - only that the instrument was aimed at the
wrong firmware.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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>
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>
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>
[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>
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>
The supervisor's event consumer, traced on the 403 board image.
[0x192] is reached by a near call at 0x8f4c9, so its segment is the caller's
CS 0x8f46, not a4e2. Both values the board capture recorded then decode as the
same four-instruction state stub - 0110 -> 8f570 idle, 5742 -> 94ba2 off-hook
- which retires the "read the linear column as a hypothesis per row" hedge and
makes that capture usable as a state trace.
Each state is a tag table plus a handler table dispatched by a shared scanner
at 0x8f77a; unmatched tags are dropped silently. The off-hook state takes 36
tags. Tag 0x2f lands on 0x94d83, the overlay-request consumer already
identified from the other side, which checks the mapping.
The two events the DSP actually emits are both discarded: tag 0x34's handler
is three instructions that drain the word and keep nothing, and 0x6b's keeps
one byte. Neither moves the state.
What the call is blocked on is tag 0x2c, whose handler installs the data-mode
interrupt vectors at 0x30 and 0x3c, stores a rate index as AL * 24, sets the
connected flag in [0x225] and advances [0x192]. Its DSP producers at 0xda19
and 0xda97 queue the tag-then-word pair the handler reads, and both sit in
resident cf00-dbff, which executes nothing but tag 0x50's parameter loader in
a whole call. The gate is the two bails at 0xda11/0xda13 on @70 and @44.
Also recorded: all 76 enqueue sites with the tags they emit; overlay 6's
enqueue cluster measured at zero executions while its four FIR filters run
every pass; and that tag numbers are per-direction, not a shared namespace -
0x2c means different things each way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two corrections and one finding, all measured on the 403 board image over a
leased-line pair.
The mailbox poll is not blocking. The DSP reads the status latch 342,624 times
in a 400M-instruction run, takes every message handed to it and acknowledges
each one; ar7 and arcr both read 0x0bc8, so the ARCR compare matches and the
gated block runs. The "messages overwrite each other while the DSP is not
looking" reading came from reading the DSP->CPU count as if it were the
CPU->DSP one. The NDX measurement stays; the conclusion built on it goes.
What is starved is the other direction. The sender at 0x83bf exits at 0x83c2
on every pass - ring read and write pointers equal - and the DSP emits one
message per call. Nothing queues into the ring at 0x0bd0.
Overlay 8 downloads, verifies and never executes: zero PCs in dc00:ffff for a
whole run, while overlay 6 runs a ~130-address block every pass. Its one
resident entry is b dc0c at 0x9097, gated by bit 8 of data 0x039f, set only by
mailbox tag 0x4f, sent only when [0x04e9] is 1 or above 5. [0x04e9] is &M and
reads 4 - the factory default, &M4 - so the gate wants the synchronous modes.
Tags 0x4d/0x4e/0x4f are the sync transmit clock source, selected by &X in
[0x04ed]. Overlay 8 is the synchronous datapump and an async call is correct
not to load it.
That correction was needed because the ampersand handler table was indexed
from 0xa669b, which is entry 11, not entry 0. The base is 0xa6685. Four
anchors fix it, including the four reject stubs landing on E, O, Q and V -
the set this file already recorded.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pin 43 is copper-common with pin 13 on both boards, and Q8 (SOT-23, A12)
sits between that net and pin 21 with 560R and 10k around it - an LED
driver stage, which is the first support for 21 being a lamp node driven
through a transistor rather than from the gate array's own pin.
Everything else that session measured 0.6-1.4 V and conducted both ways,
which is two ESD clamps in series on an unpowered part. The control
reading settles it: ASIC 2 against ASIC 29, a DIP switch against a CPU
address input, reads 1.3/1.4. Those cannot be connected.
So four readings and the hypotheses on them are retired: a board-ID strap
link at 43, an internal bond making 13/21/43 one node, a ring-detect
signal on the bottom edge, and a four-pin DAA in which the ASIC held both
ends of each optocoupler. The DAA is pins 19 and 22 as before.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Records the reading and withdraws the claim that it would be decisive.
Both candidate readings predict an unconnected pin 48 on a board with no
EIA receiver, so the result discriminates neither.
Leaves two sound arguments pointing opposite ways - fixed silicon says
DTR-sense is on 18 because the 2805 puts it there, elimination on the
1489's four receivers says 4Y into 48 must be DTR - and concludes their
shared premise is the wrong one. They are probably two pins on one net,
1489 4Y feeding 48, 18 and the TR lamp, recorded as separate facts
because they were probed from different ends. Same shape as AA on pins 13
and 21, already open in this file.
Correct probe named, and it is on the 2806: meter 18 against 48.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
panel.py has 0x12 bit 0x40 in the INPUT map as dte-dtr, sampled at
0x5e375 and re-polled twice, a low reading posting supervisor events 6
and 7. The supervisor reads DTR and never drives it, so an ASIC pin
carrying DTR is an input on any board - which is what the 2805 shows and
what the panel table already said in other words ("follows the DTE's DTR,
read at 0x12 bit 0x40"), describing a sense input as a lamp.
So the TR lamp sits on the DTR net rather than being driven, the same
shape as CS turning out to be CTS. Weakens ASIC 48's "most likely DTR"
further: the 2805 has no EIA receiver, so nothing stopped USR routing the
550's DTR to 48, and they routed it to 18.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ASIC 11 to UART 61 and ASIC 12 to UART 62 name the last two of the 2806's
six driver-fed signals: RI and DSR. Both were already recorded as 75188
inputs, so neither needs correcting - all six now have signal names.
Retracts the shared-EEPROM inference from 53cd878. The 2805 carries TWO
93C66s, one for the PnP controller and one for the supervisor, so the
arbitration pin the datasheet provides buys nothing here and nvram.py
still describes a part the supervisor owns alone. Notes how to tell the
two parts apart before anyone dumps the wrong one.
ASIC 18 does not fit and the file says so rather than smoothing it. UART
pin 50 is DTR, an output, so ASIC 18 is an input on the 2805; on the 2806
it drives the TR lamp, an output. Three readings are possible and the one
that fits the ASIC 9/10 pattern - TR lamp hanging on the DTR net, ASIC 18
the DTR input on both boards - collides with ASIC 48, recorded as "most
likely DTR" from DS1489 4Y and never confirmed. Both cannot be the input.
Probe named: meter ASIC 48 on the 2805.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Datasheet added as docs/TL16PNP550A-SLLS190B.pdf (SLLS190B, 1995/96), so
the 2805's UART pins are identified rather than positional. The JEDEC
68-PLCC decode was right on all four: 6 SIN, 49 RTS, 51 SOUT, 59 DCD,
60 CTS, with 50 DTR, 61 RI and 62 DSR still to meter.
Every net lands on the signal the 2806 says it should - RD to SIN, the CD
driver's source to DCD, the host's RTS to CTS0, SOUT to RXD0. The DTE
architecture transfers whole and EbSerial on channel 0 describes this
board as it stands.
Corrects yesterday's reading of ASIC 10. It is not a bottom-edge pin
repurposed on a board with no panel: UART 60 is CTS and CS is the Clear
to Send lamp, so it is one signal with two consumers. The correction runs
back into the 2806's table, where two entries named a destination where
they could name a signal - ASIC 9 is DCD, ASIC 10 is CTS. Same method
rule the file already carries for the 75188s, applied to a lamp.
Also flags that the 93C66 is probably shared: the 550 wants an ST93C56/66
for its resource data and carries an arbitration pin for a controller
sharing it, and the 2806's 93C66 is the CPU's NVRAM in the same x16
configuration. Unverified; the probe is named.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A third unit, and the first internal one: same 1-016-905 ASIC (9726) and
same PA28F400, no ISA slot, so continuity only.
Memory side transfers pin for pin. All four upper address inputs (63, 62,
59, 58 to CPU 29-32) and all three flash address outputs (73, 74, 76) are
now measured on two boards independently, so four-in/three-out is not one
board's transcription. Pin 75 to flash 13 is the exception, and it is the
2806 that was wrong.
Panel side does not transfer, and that is the new information. There are
no 75188s and no DS1489; a TL16PNP550AFN faces the host instead, so the
DTE is the ISA bus and everything inboard of it looks unchanged. ASIC 46
and 9 keep their 2806 roles into the UART, but ASIC 10 - the CS lamp on
the external - drives a UART line here. The bottom edge is re-used rather
than idle, so the 2805 is the only source for what those 30 pins do on a
board without a panel.
UART pin numbers are recorded as positions under JEDEC 68-PLCC numbering
and explicitly not as identified signals: no TL16PNP550A pinout has been
obtained, and the nearest family parts are not the PnP variant.
Three oscillators: the ASIC's 40.320, the UART's 22.1184 (12 x 1.8432, so
it makes its own baud rate and is a real host-driven UART), and the CPU's,
which must be 50 MHz for the 25 MHz CLKOUT the 186EB halves it to. That is
arithmetic - X1 carries a house number, not a frequency.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
UCS decodes 0x80000-0xfffff, 512 KiB, and the PA28F400 is 512 KiB. Paging
means reaching a large device through a smaller window - the retracted
text said so in those words - and the window is not smaller. The CPU
addresses the whole part directly, so there is nothing for a paging
register to do. Stronger than fb8574f's "the reason for believing in it
is gone".
Leaves one loose end, now stated as one: A19 reaches the ASIC on both
boards and, with UCS holding CE#, is not needed to gate anything.
Tri-stating the ASIC's address outputs outside the flash region is the
ordinary answer and needs no register, but that is a guess.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ASIC pin 75 goes to flash pin 13, GND - not to flash pin 12, CE#. The
flash's chip select is on CPU pin 61, UCS.
Three lines agree:
* A 2805 ISA board, same 1-016-905 ASIC and same PA28F400, meters 75 to
flash 13, flash 13 to ground, and flash 12 to CPU 61. The rest of that
edge transfers exactly - 70 to flash 11 and RAM 10, 73 to flash 3, 74
to flash 34, 76 to flash 35. Four agreeing and one not is a slip.
* The reset stub programs UCS_START (0xffa4) to 0x8000, a window of
0x80000-0xffc00: 512 KiB, the flash exactly. Both images do it. That is
pointless unless UCS selects the flash.
* asic-pinout.md contradicted itself, recording both LCS and UCS on the
SRAM pair's common CE# net. UCS on the flash closes that open probe and
leaves LCS on the SRAM, where its 0x0-0x20000 window says it belongs.
Second off-by-one in this region; the "74 is pin 3 or pin 34" conflict
was the first.
The paging inference goes with it. Four address lines in and three out is
what a flat map needs: UCS decodes A19, so inside the window A19 is
constant and the flash never needs it, while the ASIC emits system
A16-A18 as the part's A15-A17. That is a pass-through with A19 consumed
by the decode, not a fold. Paging is not disproven - the reason for
believing in it is gone, and the harness's flat 512 KiB image already
matched both boards.
What survives: the ASIC is the board's address latch, low byte for both
memories and the flash's top three lines. The select is not its.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
I claimed a bit the firmware drives as an output cannot be the ring
input. That is wrong on a latch with independent read and write paths,
and port 0x00 in this very firmware is the worked example - 0x33 reads
as strapped inputs while 0xc4 are outputs. machine.py already models
0x14's read side from the panel and strap inputs rather than from the
written latch.
So the cadence machine's `in al, 0x14 / test al, 2` at 0x1501d and the
receive path's `or al, 0x02 / out 0x14, al` are not in conflict: bit 1
out is CS/CTS, bit 1 in is ring sense.
That restores the optocouplers, which is where this should have landed.
board-parts.md reached for U14/U16 as ring detect plus loop-current
sense and then hedged, on the grounds that "ring sense already has a
port" - it does, on the read side, and the opto is what drives it. Both
have the ASIC on their transistor side, so the ASIC receives them, which
is the right direction for an input the CPU reads back out of a latch.
Corrected in all three places rather than left as a contradiction.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Answering what the handler does after it kicks. The two halves sit next
to each other in the ROM: the serial receive interrupt at 0xfc38b fills
a ring, and the periodic handler drains its flow control.
38b ax = [0xff68] ; the 186's serial receive register
395 di = cs:[0x100] ; head
39a stosb es:[di]
39b cmp di, 0x5975 / mov di, 0x1975 ; wrap
3a9 di -= cs:[0x102] ; occupancy
3b4 cmp di, 0x3e00 ; 15,872 of 16,384 - 97% full
3ba al = cs:[0x11c] / or al, 0x02 / out 0x14, al
16 KB ring at 0x1975-0x5975, head cs:[0x100], tail cs:[0x102], and
cs:[0x11c] shadows port 0x14. High water at 0x3e00 sets port 0x14 bit
0x02; low water at 0x2000, in the periodic handler right after the
watchdog kick, clears it. CTS flow control with hysteresis.
That identifies the bit. panel.py already has Led("CS", 0x14, 0x02,
"measured: drops when the port is released"), and 0x14 is active low, so
setting it drops CS and stops the DTE. Lamp and line are one bit, which
is what a CS lamp is for.
It also contradicts "port 0x14 bit 1 is ring sense", carried by
asic-pinout.md, board-parts.md and board.md. That claim was hedged where
it was made - no capture shows the bit moving while a line rings - and a
bit the firmware drives as an output cannot be the ring input. Noted at
both ends. Ring detect needs another bit; the optocouplers on ASIC 19
and 22 remain the better candidate.
The handler's remaining work is three 16-bit countdowns at cs:[0xf8],
[0xfa] and [0xfc], then the 186 EOI and iret.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
I wrote the cadence up without chasing the call path, on the strength of
one caller search that came back empty. It came back empty because I
searched for near calls into one address range; the routine is not
called, it is an interrupt handler, and there are three copies of it.
The ROM holds the twelve-byte sequence e4 00 24 33 0c 40 e6 00 24 33
e6 00 at 0x816d3, 0xa7955 and 0xfc314. The last two are the same handler
assembled for two placements - one cs:-relative, one absolute - and it is
copied into low RAM, where it runs at 0x0314:
30c sti
30d pushaw / push es
30f mov ax, 0 / mov es, ax
314 in al,0 / and 33 / or 40 / out 0 / and 33 / out 0
320 mov di, cs:[0x100] ; ring head
325 sub di, cs:[0x102] ; minus tail
32a jae .+4 / add di, 0x4000 ; 16K ring, wrap
330 cmp di, 0x2000 ; half full?
It saves registers and kicks before it looks at its own work, which is
what you do with a watchdog and nothing else.
The two sites hand over cleanly and cover the run with no gap: the
handler kicks 224 times from instruction 22,527 to 5,046,271, and the
foreground routine at 0x816d1 takes over for 85 kicks from 5,342,208 to
149,887,999. 224 + 85 = the 309 pulses the cadence table counts.
Also worth knowing: the copy lands at 0x0300 because the firmware uses
only vectors 0x00-0x15, leaving the rest of the vector table as free
space to store code in. So a run's `interrupt_vectors` dump is junk
above 0x15 - those entries are this routine read as pointers.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A section in board-verified-403.md, next to the measurement that ruled
this bit out as the speaker, and a pointer from board-parts.md's ADM707
row - which is where the ~1.5 s bound was left without a trigger.
States what is known and the one command that settles it. Flagged as
inference from cadence and wiring, not a board measurement.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
docs/asic-pinout.md asked whether &T1 is a hardware mode or arithmetic
in the DSP, and named the test: look for a register-5 write with
DS01-DS00 = 00. It is a hardware mode.
The resident writes register 5 with 0508 at 90c3 and 90e1 - both real
code, under the cell 0x6f state word, through the register writer at
8770. DS01-DS00 = 00 is analog loopback, and per docs/ac01.txt 2.15.2
"In loopback, OUT+ and OUT- are internally connected to IN+ and IN-".
So the loop is inside the AC01. Nothing external switches it, the ASIC
is not involved, and the DSP throws it over DIN. The bring-up's 0505 at
80bd is the normal setting, as the entry said.
The question stayed open because it guessed the wrong encoding: it
looked for 0504, with DS02 set, and the firmware writes 0508, with DS03
set. Same field. A literal grep for 0504 finds only a coincidence in a
byte-pair table at c269 - enumerate every `bf80 05xx` and mask
DS01-DS00 instead.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The receive path was never unreachable - that was a static-scan artifact, and
this corrects it. Delivery comes through a function pointer: the periodic
handler far-calls [0x8b4a] = ed4d0, which requires [0xb4b0] bits 4 and 2,
copies [0xb6de..] to 0x8d3d for [0xb6e2]+6 bytes, and raises [0x9575] bit 1.
That window is the same card RAM the controller stamps the slot identity into.
f3b2f gives the header: bits 3-4 of byte 0 clear, length at +4, type at +6 with
bit 14 the sequence bit, body at +8. The sequence bit must match [0x9c50] bit 1
and acceptance flips it, which is exactly why twelve stamped frames dispatched
once - the first matched and flipped the expectation, the other eleven were
dropped at f3b7f. Reading the bit before each stamp takes it to twelve of
twelve: stamp, copy, sequence check, decode, dispatch, all measured in one run.
It still does not arm. The arm is id 0xE6 in the table at f73d6, read only by
f4895, which has no caller of any kind in this image; type 0 resolves ids
through a different table where 0xE6 is filler. So the id space is selected by
something outside the decoded path.
Also corrects 213c6df: calling f7c93 a chassis-message parser was too strong.
The AT '&' parser at ef1d1 indexes the same handler block by letter, and the
handlers parse binary TLV from a cursor both front-ends share.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The Quad's indirect ROM vectors invited a reading of 23b72eb's band cells as
installed handlers. Checked against main2205.XMF: after cold start @60-@6a do
hold resident code addresses, @64/@65 at 81a3 beside the 81a6 handler - so the
dispatch block is real and is the same mechanism fsk-modulation.md already
records for INTR 17 through @69. But @6b is 0001 and @72/@73 are 0000, and
that document already names @72/@73 as the mark and space increments. So the
suggestion holds for @69 alone and fails for the rest; 23b72eb stands as
written.
Cross-references the two parts rather than restating the mechanism, since the
302 side was documented first.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
&T1 reaches the Quad's datapump the same way 4772fbe found on the 302: 2,547
overlay bursts and a 39-command programming sequence against ATA's zero. What
runs is a delay-line loopback over circular buffer 1 - CBSR1 0bd0, CBER1 0bdf,
CBCR 00ef on AR7, read from the ARAU rather than assumed from the pointer -
which for analogue loopback is correct. Two handlers share it because the ROM
dispatches XINT indirectly through @65 and the firmware rewrites that cell, so
83e6 and 8406 are phases of one chain, not rival framings. Which phase runs
tracks the mode, which is the multi-path reading, not a cadence fault.
The answer path is gated on four RAM cells, and a895's variable writer takes
its byte from the chassis request stream at [0x9c2c]. That gives the frame
format - length at +4, type at +6, body at +8 - the delivery routine, the
0x9bab doorbell and the dispatcher. A well-formed frame still does nothing:
[0x9d1e] is 00, so the interpreter service returns at once on all 64 of the
far calls the periodic block makes. It is a session watchdog, and the arm site
never runs. The config block at 0xbdea is erased, so the card is unprovisioned.
Records the eliminations too, since each one cost a run: the DRR zero is not
destructive reads, not the AC01 secondary frame, not the boot download, not
bsar and not a mid-handler entry. And that run() is not resumable, so windows
must be taken from inside a single run - three earlier timings were restarts.
Corrects a guess made in the same session: no chassis-presence strap gates the
interpreter.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Re-running the documented ATA probe: 2 DSP downloads instead of 23, one
reboot instead of 22, [82fe] bit 7 never set, 7 CPU/DSP commands acked, and
the resident parked at 0x82eb in program space rather than escaped low -
which is the signature of the delay-slot interrupt bug fixed in 20133c6.
So the "measured immediate call blocker" section described a state that is
gone, and the lede's OK/NO CARRIER reproduction with it.
Not a connection. runtime_bursts is still 0, and the transmitted timeslot is
49,166 of 49,194 bytes at codeword 0x00 - full-scale negative in mu-law, a DC
rail, not silence and not modulation. Recorded as the next question rather
than dressed up as progress.
Attribution left open: four quad-side commits landed after the baseline and
the old report has no commands_sent field, so part of this is new code.
Also corrects the prose identifying the DSP as a TMS320C50/LC50, superseded
by the measured 'C51 in board-parts.md. Class names left alone.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The table committed an hour ago put bell103-originate at 22 symbol errors
in 169 and called the band unsettled. Re-measured through one analysis path
for all four, it is 1 in 169 - the earlier figure came from a per-band
script whose offset search locked onto the wrong alignment.
Which is the result to expect. The four bands run the same DSP code and
differ only in @72/@73, @6b, @69 and @0b, so a wide spread would have been
evidence of something band-dependent in the model rather than in the signal.
Getting one to two errors in ~167 symbols across all four is the check that
the emulation is modelling the part rather than being fitted to one path.
The bands do split in two by alignment and polarity - {bell103-answer,
v21-originate} at offset 323 direct, {v21-answer, bell103-originate} at 130
inverted - and that pairing does not follow mark-above-centre versus
mark-below. Recorded, not explained.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
docs/fsk-modulation.md carried a table of zero bit errors for all four
bands from `courier_emu.fsk --loopback`. Every mode of it now raises
`loopback did not reach 80c3`, and does so at 32faa8e as well, so the table
was already unreproducible - exactly the cost a stale doc is supposed to
save.
Replaced with what fsk_loopback measures, and with the three things the old
harness had wrong, since answer_tone, audio312 and v34 all enter the mixer
the same way: no mask ROM so no vector table, the frame ISR entered by
forcing the PC, and the consumer side of the output buffer pinned.
bell103-originate is left explicitly unsettled at 22 errors in 169 symbols.
It is the weak band on both harnesses and has the lowest separation
measured, d' = 1.95, but whether the residual is the band or the alignment
is not established.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>