Chasing what asserts INT1 answered a different question first. The bare `rete`
at 0x81ba that @60 holds sits one word ahead of 0x81bb, and 0x81bb is not
INT1's handler at all - it is INT2's. Three routines swap @61 between the two
meanings:
823d: splk @61, #819d ; wake-only
8245: splk @61, #81bb ; every edge is a polyphase DAC slot
824d: splk @61, #819d
0x81bb reads the ASIC's phase word at @52, masks it to two bits, indexes the
table at 0x81e0 and writes port 0x6a. Same idiom in every build: 302 swaps
between 81ae and 81cc at 0x824e, 2.1.1 between 8224 and 8228 at 0x8293. So the
previous commit's "INT2's handler is a bare rete on purpose" holds for the
cold start and the wake-only mode, and not for the part in general. The
doorbell helper now carries that as an open question rather than a settled
one: an extra edge is free in one mode and is a DAC slot in the other.
INT1 itself is dead at both ends in this firmware.
The DSP never enables it. IMR bit 0 is set by nothing - the only writes
certain to reach IMR are the `samm @04` at 0x809e (0x002a) in the 403 and 302,
and in the 2.x builds an `and #ffcf ; or #0010` that touches bits 4 and 5.
@60 is never written after the init table copy at 0x812d; every apparent
`splk @60` in the images is DP-relative and lands on ordinary data.
The CPU never asserts it. board-verified-403.md already had the wiring - DSP
pin 38 from CPU pin 50 - and CPU pin 50 is P1.7/GCS7, on the same P1LTCH at
0xff56 whose bit 1 is DSP RS and bit 3 is DSP NMI. Across the whole 403
supervisor that latch is only touched by AND/OR on bits 2, 5 and 6, by
`AND AX,00ff ; OR AX,0020` for the EEPROM, by `AND AX,fffd` at 0x8e3f1 for
reset and by `OR AX,0008` at 0x8e445 for NMI. Bit 7 is never driven low, and
the latch initialises to 0xdb with it high.
Which resolves the open note in board-verified-403.md: @60's `f7fe`, read off
the board at the end of a dial, is not a handler address. With the line masked
at both ends the cell is free, and an overlay reuses it as B2 scratch - the
same reuse that puts the codec handoff's counter and word in @6b and @6c,
which are the INTR 12 and INTR 13 cells.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The third bit in IMR = 0x002a was unaccounted for, and it is the one that
matters for the transfer paths.
The mask ROM's whole vector table is `lamm @6x ; bacc`, and the resident fills
those cells from the table at 0x812d. Of the three enabled bits, XINT gets the
frame ISR at 0x8178 and TINT gets 0x81fb - and INT2 is enabled with @61
pointing at 0x819d, which is a bare `rete`. INT1 has the same shape at 0x81ba
and is masked: an armed second doorbell.
A handler that only returns is the point. The CPU-to-DSP path is polled, not
vectored: 0x80ea reads PA7 through the 0x80e8 gadget, tests bit 9, and sleeps
in the IDLE at 0x80fa when there is nothing; 0x80fc walks the ASIC's four-word
window from port 0x58, BLDPs each group into *program* memory at BMAR, acks
with 0x0300 into PA7 and raises INTR 17. That is the firmware download, and
the command path has the same shape. The pin's only job is to end that IDLE.
And the board has the pin: ASIC 109 to DSP 39, which is INT2, measured in
asic-pinout.md, which already named it "the mailbox's CPU-to-DSP direction".
Nothing in the emulator ever raised it. The ready flag in PA7 was set and the
DSP was left to notice on whatever next woke it - the codec frame or the timer
- so a transfer advanced at the frame rate rather than when the host had a
group ready.
Both sites that raise a PA7 ready bit now go through one helper that sets the
flag and asserts the pin, because on the board they are one event. Checked
against the 403 resident: parked in the host poll's IDLE, an INT2 edge ends
it, vectors to 0x0004, dispatches through @61 to 0x819d, and RETEs back into
the loop.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Every Courier-family C5x resident programs the primary port identically - 403
and 302 at 0x8090, 2.1.1 at 0x80bd, 2.3.31 at 0x109d - and the sequence says
what the model has to do. SPC goes 0x0008 then 0x40c8, so MCM = 0 and TXM = 0
and the frame edge is external; DXR is primed and the part spins on XRDY
waiting for that edge; IFR is write-1-cleared; and then IMR is written with
0x002a: INT2, TINT and XINT. RINT, bit 4, is not enabled, and `samm @04` - the
only write certain to reach IMR, since `splk @04` is DP-relative - appears
exactly once in each of the 403 and 302 residents.
A cold start confirms it. Parked at 0x813c the 403 has IMR = 002a, SPC = 40c8,
and the mask ROM's dispatch cells hold @65 = 8178 for XINT against @64 = 819d
for RINT, the same unused stub @6a holds for NMI. Only XINT has a handler.
So `serial_receive_interrupt` was raising the right IFR bit for the wrong
reason and gating it on SPC.RRST, the receiver's reset bit, which the 403
never consults. The 2.x residents then show why naming one bit is wrong at
all: they test data 0x012f and, if set, `lamm @04 ; and #ffcf ; or #0010 ;
samm @04` - same frame, service moved to RINT. One edge now latches both, each
behind its own half of the port's reset, and IMR and INTM decide recognition
where the part leaves them.
Three more things the residents reach that the core did not do:
- Recognition ran only from `interrupt()` and the INTM controls, so a flag
that became eligible without a fresh source edge waited for the next one.
The 2.x rewrite of IMR above happens with INTM already clear, and RETE
clears INTM on its way out of a handler. It is checked at every instruction
boundary now, and taking a vector is its own step.
- A repeated instruction was interruptible. RPTC and the repeat pointers are
not in the context shadow, so a vector out of the middle of a block lost the
rest of it; check_nmi has always refused for that reason.
- NMI vectored to a literal 0x0024. Its slot is offset 0x24 inside the same
IPTR-relocated table as every other vector; 0x0024 is only right because the
mask ROM runs with IPTR zero.
And the timer ignored TCR.TSS, so a stopped timer still raised TINT - which
matters here because TINT is the other thing 0x002a enables, and it is what
wakes the IDLE at 0x813b when no frame has arrived yet.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0xa4f63 is the only site that indexes the handler table at cs:0x1865, and the
code above it tests for '&' before reading the letter and subtracting 'A'. So
those twenty-six entries are the AT& commands, which the table reads as: &A
a66b9, &D a674b, &H a688e, &S a6ac9, &Z a6ce0, with &E &O &Q &V on a shared
stub and a lowercase sibling table at cs:0x21ff.
Entry 19 is &T, and entry 19 is the dispatcher at a6afe. Its al is &T's
argument, so the whole chain is AT&T1 -> a6afe -> jump table entry 1 -> a6b88
-> 87626 -> 876fb -> or [0x57c],1 -> the gate at 8b88d passes -> 8bc06 writes
6 to [0xd28] -> the overlay loader runs.
Measured with AT&T1 in place of the dial: dispatcher 1, thunk 1, table entry
1, the flag write 1, the overlay loader 2, overlay_downloads 2 and overlay_id
8 - the sync datapump, downloaded.
So nothing in this chain is broken. The port 1e handshake, the destination
mailbox, the loader timeout and the transfer all work when the path is taken,
in the firmware and in the harness alike. They are not taken by ATDT, which
confirms from the other side what this document already recorded: a plain dial
does not reach the loader, and only the leased and &T1/&L1 configurations do.
A dialed call must load its datapump another way, and that way is still to be
found.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Followed the chain up from the one instruction that enables a datapump load.
87626 is entry 1 of four-byte call/retf thunks at 87622; a6b88 is entry 1 of
six-byte lcall thunks at a6b82; both are reached from a6b69,
jmp word ptr cs:[bx+0x1d50], with bx = al*2 over a table at a6b70 in CS a4e2
whose entries are 1d62, 1d68, 1d4e, ... So command 1 vectors to a6b88 and
command 2 to the stc/ret that means "not handled".
The dispatcher at a6afe screens the code first: [0xd93] bit 0 refuses command 1
specifically, then a range check, then three busy tests on [0x57c] & 7,
[0x98a] & 0xe and [0x49e] & 1. Measured at the end of a dial, every one of
those is open - d93 is 00 on the originator and 02 on the answerer, bit 0 clear
on both, and the three busy cells are 00.
So command 1 would vector if it arrived. Counting execution of a6afe, a6b64,
a6b6e, a6b14, a6b88 and 87626 over a full call: zero on both ends for all six.
Nothing calls the dispatcher.
The chain from the command code to the download is therefore intact and
unreached from the top. a6afe is itself entry 0x1cde in a table of handler
offsets in CS a4e2 around a66ab, and nothing in the image branches to a6afe or
holds a far pointer to it, so it is reached through that table. What drives
that table is the next thing.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Disassembled the 403 board ROM from the reset net back to the decision, and
measured the branch rather than assuming it.
The reset belongs to the downloader: every edge comes from the routine entered
at 8e3da, which holds ff56 bit 1 high and pulses bit 3, so ROM_DSP_RESET_BIT =
0x0008 is correct for this image whatever other images do. 8e4ab is the
transfer body and 87567 is its only caller, loading the resident - ax 0x8000,
cx 0xdd4e, the resident's exact 56,654 bytes.
Overlays use a different loader at 8e60c, driven by an index in [0xd28]: it
indexes six-byte rows at 0xe741, strobes out 1e,4, sends the destination
through the 8f46 mailbox, then waits on port 1e bit 2 under a 200-tick timeout
at [0xd27] before aborting to 8e73a.
Measured with --trace-pc on both ends: 8bbf6 and 8bc0e run once each, 8bc13
takes the jump over every overlay request, and 8bc06, 8bc8d, 8bc99, 8e61c and
8e73a all run zero times. So the loader never runs and never times out, and
nothing is waiting on the port 1e ready bit because nothing strobes for it.
The gate is 8b88d, which returns ZF from three tests - [0x98a]&2, [0x49e]&1,
[0x57c]&1 - and all three are clear. Of the three, [0x98a] bit 1 and [0x49e]
bit 0 are never set anywhere in the image; the sole setter is 8770f,
or [0x57c],1, reached only from 87626, which is entry 1 of a table of
four-byte call/retf thunks based at 87622.
So the originating end's silence reduces to one dispatch index never firing.
The table base is not a literal anywhere, so it is computed, and finding that
computation is the next step.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Recording the interrupt wiring and what it says about two of the harness's
choices.
The mask ROM vectors dispatch through B2 scratch cells - 0002 lamm @60, 0004
lamm @61, 0006 lamm @62, 000c lamm @65 - so handlers are installed by writing
@60-@69. They are scratch RAM, not MMRs, which is why dsp_mmr_writes never
showed them. Read at the end of a dial: @61, @62, @64 and three others all
hold 819d, which disassembles to rete - the do-nothing stub. @65 holds 8178,
@68 81fb, @69 81a6, and @60 holds f7fe.
Two consequences. The firmware does not service the AC01's FS interrupt on
INT3, and the harness firing the codec frame as irq 5 lands on the XINT slot
and the real handler at 8178 - that choice is confirmed, not a guess. And INT1,
the CPU's own line into the DSP on pin 50 to pin 38, carries a handler distinct
from the stub while the harness never asserts it: core.nmi() in
_start_rom_loader is the only DSP interrupt the host side raises.
f7fe is outside anything downloaded. CourierRom.dsp_program_segments returns a
single segment, 0x8000 for 28,327 words ending at 0xeea7, and its own docstring
says the rest of the datapump region reaching the DSP is not established. The
flash overlay table - 6 at 9d00, 7 at b000, 8 at dc00 - is parsed only by
XmfImage.dsp_segments.
So a board-ROM run can only ever hold the resident. B raises its answer tone
from it. When the supervisor enters 8e43c for a second load nothing can be
served, which is what overlay_downloads: 0 has been reporting throughout. The
originating end never gets a datapump because the image layer has none to give,
not because of a reset, a cursor or the line.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Logged the CPU pc at every edge of the DSP reset net. Every one, on both ends,
is 8e43c asserting and 8e448 releasing - the ROM's DSP downloader. The reset
is the front half of a download pulsed twice per load, not a wipe applied for
its own sake, which is what board-verified-403 already recorded from the board.
Entries to that routine over one dial: the originator makes one, at 9.0 s,
before its first digit - the program it dials with. The answerer makes two, at
22.05 s and 24.03 s, and its datapump transmits from there. The originator
never asks for a second load, so it never receives a datapump. Nothing is
stopping it starting; nothing requests it.
Its DSP is not idle meanwhile: the detector bitmap it reports walks
0002 -> 0880 -> 0980 -> 0881 -> 0885 -> 08c5, setting and clearing the 0x0040
bit from the detector at cell 03be, and the supervisor takes 1,567 of those
messages without acting.
Retracted from the previous commit: "its ATD never returns" as a description
of the blocker. ATD is mid-call for the whole run and the absence of CONNECT
or NO CARRIER says nothing - the blocker is past the dial, in whatever
consumes the detector reports and decides to load a datapump.
Also noted: overlay_downloads reads 0 on both ends while this routine runs
three times between them, so it is not watching this path.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The DSP reset is a CPU pin, and the register it is driven from is the 186's
Port 1 latch: the 80C186EB manual's control block map gives 50H P1DIR, 52H
P1PIN, 54H P1CON, 56H P1LTCH, so ff56 is the latch and P1.1 to DSP RS is what
board.md, asic-pinout.md and c51-cpu-loader.md already describe.
Measured over a full dial, the firmware writes ff56 36,494 times and reads it
36,482 - read-modify-write on a shared latch - and never touches ff50 or ff54
at all. Both reset to FFH, every pin peripheral-controlled and an input, and
the manual says the latch value "appears at the pin only if it is programmed
as a port". As modelled these writes would drive nothing on real silicon.
Port 2 by contrast is used properly, ff58 direction and ff5a pins and ff5e
latch. Written down because every signal attributed to this latch rests on it.
Per-bit edge counts identify the bank: bit 2 is the EEPROM clock (29,177
edges), bit 5 chip select (1,043), and bits 1 and 3 carry 12 edges on the
originator and 16 on the answerer. machine.py resets on bit 3 while four
documents name bit 1 - but the two bits carry the same edge count within about
a thousand instructions, so the attribution does not change which resets
happen and is not why an originator stays silent.
The schedule is what matters. The answerer pulses reset at 22.05 s and 24.03 s,
going into data mode, and transmits from there. The originator's last reset is
at 9.0 s, before its first digit, and there is never another: its ATD never
returns. Its whole serial output is the OK from ATX0 - no CONNECT, no NO
CARRIER, no BUSY, 50 s after dialing.
Also: the originating end now learns its call was answered. set_call_progress
had one caller, on the SIP path, so on the socket the operation stayed
"dialing" for the rest of the call; cut-through moves it to "connected", and a
connected or trying line qualifies the DAA's detector the way an answering or
dialing one does. It does not by itself start the datapump.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Retract the previous section's reading that A and B "are running different
programs" because their originated tags barely overlap.
Every originated message on both ends leaves from the same instruction, pc
83d4, inside a generic sender at 83bf that drains a 16-word ring at ff60,
writes the queued word masked to 15 bits to port 5e as the tag, and sends one
data word when bit 15 was set. The tag is whatever the caller queued and
carries no role of its own; the enqueue at 83b0 has 118 call sites.
The two sites are the same report: 9c93 and 9f02 differ only in the constant,
8008 against 8016, and both then send @2f & 0x8fff. What differs is the
detector bank above each - a09b is a threshold compare, and the two banks test
different cells against different constants, setting different bits of @2f.
A runs the bank at 9c78, B the one at 9ee8, which is what an originating and
an answering end should do.
So @2f is a detector bitmap and the tag says which bank filled it. The
histograms read as that: A's commonest payload is 0x0080, the bit 9c87 sets,
and B's is 0x0080 plus 0x0400 and 0x0008, the bits its own bank sets. The tag
difference is a consequence of the two roles, not a fault.
Kept: after reporting, B calls a0b3 unconditionally while A calls it only when
bit 10 of @2f is clear, and bit 10 is the bit B's energy test sets. Nothing
here establishes what a0b3 does or what the banks detect; the cells and
thresholds are written down so that can be asked directly.
Also verified, since it was in doubt: neither end is replayed audio. a-tx is
byte-identical to b-rx and b-tx to a-rx, at the same offsets, so each side
receives exactly what its peer sent and nothing from the start of the run.
save_tx_pcm does still read the array from zero, so after a DSP reset that
dump holds only the last generation - a dump-file limit, not the wire.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two instrument faults on the way to the doc's "next question, singular".
_maybe_start_originate_engine returned unless daa.operation was "originate".
Its docstring says why - it was written for the leased line, where the
originating end never dials - and the socket path's new digit receiver moves
the operation to "dialing" on the first digit, so the originating end stopped
arming at all. That was a regression from the dial-tone commit. A dialing
seizure now qualifies once the called party has answered, which is when an
originating modem starts V.8 instead of putting CM under its own digits.
And the core read m_data[0x48] for @48. A direct operand resolves to
(DP << 7) | offset, so that asserted DP 0. Measured at the dispatch DP is
0x180, which puts @48 at 0xc048 and @4a/@4d at 0xc04a/0xc04d: every report of
a null handler was reading a cell the firmware does not use. v8_dispatch_dp is
now reported so the page is never assumed again.
The static question the doc asked is answered: the 403 resident segment has 57
sites storing to @48, 26 to @4a and 58 to @4d, and almost every @48 site is
splk @48, #<address two words on>, so @48 is a continuation vector resumed by
lacl @48 ; bacc - the same arrangement as 2.1/2.2. The signature match is not
a false friend for want of writers.
With both faults fixed @48 still reads zero at every dispatch on both ends,
including B, which emits a full 2.98 s answer tone through 62,759 dispatches
of that routine. A routine whose vector is null on the side that is
negotiating is not the one negotiating, so 0xba0b is not the live V.8 state
machine on 403 and none of these counters mean V.8 progress here.
What does separate the ends is the mailbox stream: A originates 0008:* and B
0016:*, overlapping only on three tags. The audio is unchanged by any of this.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
_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>