155 KiB
x2 versus V.90 protocol selection
New scrambler evidence: x2 scramblers recovered and executed identifies the resident transmit/receive routines in the x2-only build and 4.03, verifies their two V.34 polynomials and selectors by executing the original instructions, and locates an identical fixed-GPC six-bit generator in their PCM-associated training code. It also compares the known V.90 DIL descriptor signatures against the depacketized x2-only image.
Open issues status
This document grew as the firmware was decoded, so some early "open" notes are historical and are answered by later sections. The current state is:
| issue | status | answer or next evidence |
|---|---|---|
| x2's on-wire selector | resolved | the x2 INFO0 capability pattern plus the 7-bit modulation-parameter frame; see "The actual x2 bits in INFO0" and "The 7 bits are modulation parameters" |
| exact x2 INFO0 capability word | resolved | all sixteen capability bits are mapped to V.34 Table 14 and their S54/S56/S58 sources below |
| x2 data-rate construction | mostly resolved | tag 69 is the local line-quality-derived rate index; overlay 6 applies the shared MP capability constraints and builds the PCM codeword sets. The exact proprietary encoding that communicates the 56k rate between peers has not yet been isolated from the V.34 MP machinery |
| server/symmetric control path | mostly resolved | I-modem S58 is supervisor byte 2800:9187. Its bit 08h paths at 5f649 and 6057c clear the asymmetric-role byte in both mirrored call descriptors and set both modulation fields to internal mode 8: this is the proved x2 symmetric selector. Mailbox tags 70 and 71 are consecutive configuration/capability and intersected-rate fields, not the two roles. Separately, the dual-protocol QF build's c90e constants identify a V.90 Phase 3/4 path (Sd, Sd-bar, Jd', DIL and Ri), and c922 is its post-MP tail. This is V.90 evidence, not proof that x2 shares that sequence; comparison with a pre-V.90 x2-only server image remains required. The final x2 mapper-enable edge also remains to be named |
| Quad DSP overlay map | resolved | the eight supervisor rows and DSP pull loader are recovered in How the Quad loads C50 code |
V.90 INFO1a 37:39 producer on the analogue Courier |
open | the consumer is proven, but no direct bit-field write at buffer offset 12 is present; needs a complete data-flow trace into ff1a before the 38-bit script runs |
| exact x2 alignment sequence | open | x2's six-symbol frame, fixed-GPC generator, and two-level codeword table are proven, but the digital-side sequence that establishes interval 0 is not yet named |
| V.90's six per-interval constellation indices | open in this firmware | no literal CP-field offsets occur; search for a computed six-iteration, four-bit-stride unpacker and follow its destination tables |
physical meaning of the tag 69 input @12 |
open | the log/knee/rate conversion is decoded; trace the computed writers at b4fa and c3b8 back to the measured signal statistic |
x2 7-bit peer marker 0x3b semantics |
partly resolved | it is a raw-stream modulation-parameter marker, not an INFO message; the exact peer role/rate names for indices 3 and 5 still need a server transmit trace |
The remaining issues are implementation archaeology, not gaps in the ITU comparison. V.34 and V.90 define their fields completely; what remains is to name the proprietary x2 sequences and connect a few firmware variables to those wire events.
Scope qualification for server modes
Most of this document follows the analogue Courier acting as an x2 client and therefore describes the familiar asymmetric pairing: PCM downstream and V.34 upstream. That is not the whole x2 protocol. The server firmware and its management definitions expose three roles:
| role | server control | data directions | maximum reported rate |
|---|---|---|---|
| x2 client | S76 bit 0 controls availability | receives PCM, transmits V.34 | 57,333 bit/s PCM direction |
| x2 server | S76 bit 1 controls availability | transmits PCM, receives V.34 | 57,333 bit/s PCM direction |
| x2 symmetric | S76 bit 2 controls availability | both ends send and receive at the same x2 rate | 64,000 bit/s on a digital-to-digital path |
The I-modem expresses the same distinction in S58: bit 1 enables x2, bit 2
selects server mode, bit 8 selects symmetric mode, bit 4 forces x2 A-law, and
bit 16 selects the -6 dBm constellation. Its result vocabulary contains
x2client, x2symmetric, and /DIGITAL rates through 64,000 bit/s. These
are separate from transparent ISDN /DIGITAL and bonded-B-channel results:
the x2 symmetric mode still runs modem negotiation and PCM mapping, whereas a
clear-channel digital call need not use the DSP datapump.
Consequently, statements below that call x2 "asymmetric" refer specifically to the client/server role pair. The symmetric server mode is analysed in x2 Symmetric and V.90 All-Digital.
This is deliberately separate from codec-sample-rates.md. That document
describes the six-row V.34 rate machinery; it must not be used to identify the
V.90 protocol selector. Addresses below are for
artifacts/courier-board-21210-capture-403/courier-board.rom; the bundled
update ROMs retain x2/V.90 result vocabulary but relocate their executable
code, so an absolute-address match is not a cross-version test.
Superseded. The section below reads
splk @7f, #0025as writing INFO1a bits 37:39. It does not: the firmware's offsets run opposite to V.34's bit numbering, so offset 37 is bits 12:14. The V.9037:39 = 6selector is read at8fbc, at offset 12. See "Against the ITU Recommendations" at the end of this document; the section is kept here because the surrounding reasoning about9267still holds.
Confirmed V.90 INFO1a writer (superseded - see the ITU section)
In DSP 3.1.2, the code at program 9185 calls 9267, then writes its returned
value into the outgoing INFO buffer at bit offset 0x25:
9185 call 9267
9187 lar ar0, #ff1a
9189 calld 8769 ; bit-field writer
918b splk @7f, #0025 ; INFO1a bit offset 37
8769 inserts its accumulator argument at the bit offset in @7f; ff1a is
the outgoing INFO buffer. Therefore this is the writer for INFO1a bits
37:39, not merely a nearby V.34 symbol-rate calculation. It is also the
only splk @7f,#0025 site in the downloaded DSP program, so there is no
second, x2-specific writer for that field hidden elsewhere in this image.
Under Table 10/V.90, 37:39 = 6 is the V.90 request: it selects the 8000
symbol/s digital-modem direction. This paragraph's field identification is
superseded: the site writes INFO1a bits 12:14, not 37:39. The genuine
V.90 selector consumer and its remaining producer question are documented in
"Against the ITU Recommendations" below.
The similarly shaped V.34 path is distinct
The parser at 9695 reads ff1a at bit 76 and received ff08 at bit 37;
the nearby code at 96a3 reads received bit 12, masks it to three bits,
and clamps the resulting value to 5:
96a3 lacl #0c
96a4 call 877a ; extract received `ff08` field
96a6 and #0007
96a9 lacl #05
96aa crlt ; min(value, 5)
That makes it a V.34-form INFO1a rate-index consumer (values 0..5), not the
V.90 Table-10 37:39 = 6 selector. Treating those as the same field was
incorrect.
x2 versus V.90 differences already established
| Layer | x2 | V.90 |
|---|---|---|
| Local S58 gate | bit 0x01 |
bit 0x20 |
| Supervisor DSP setup | sends tag 0x70 |
no scheme-specific tag here |
| DSP parameter cell | tag 0x70 dispatches to 8d29 and stores fff1 |
no corresponding direct write |
| Wire-level selector | INFO0 signature plus 7-bit modulation-parameter frame | INFO1a 37:39 = 6 |
| PCM result ladder | 16 rate entries | 28 rate entries |
An exhaustive scan of direct test byte [S58],mask instructions yields only
seven sites: 0x01 at 8ea1/8f39 (x2 gate/setup), 0x20 at 8e60/8f06
(V.90 gate/setup), 0x04 at 8f47 and 0x10 at 8f56 (the x2 capability
edits), and 0x02 at 8dba (BLER monitoring). Thus no additional direct S58
bit selects a hidden x2 or V.90 DSP image in this firmware.
What x2 puts in the DSP that V.90 does not
The x2 setup is more than its S58 eligibility bit. At supervisor 8f43, it
starts with a capability word returned by 8a1f, applies these edits, and
sends the result in host command 70:
| Edit | Condition |
|---|---|
| clear capability bit 9 | always, then set it again |
| set capability bit 9 | S58 bit 0x04 is set |
| set capability bit 10 | initially |
| clear capability bit 10 | S58 bit 0x10 is set |
| clear bits 11, 12, 14, and 15 | always |
Equivalently, the x2 routine clears 0xd800 unconditionally, forces bit 10
unless S58 0x10 suppresses it, and takes bit 9 from S58 0x04. The labels
for those two S58 option bits have not been recovered from the firmware help,
but the bit-level effect is direct. The DSP tag-70 handler stores the word
in fff1 after masking it with 0x3fff, sets fff4 |= 0x8000, and sets
fff7 |= 0x0001. Those latter two writes are part of the x2-only tag-70
handler at 8d29..8d39; they do not establish that any individual downstream
overlay test is an x2 test.
The analogous V.90 branch at supervisor 8edb does the shared reset but then
returns without emitting a scheme-specific host tag. Its protocol declaration
is instead visible at the INFO1a writer described above.
Where the x2 base capability word comes from
The call 8a1f immediately before the x2 edits is a banked call, not an
unknown arithmetic stub. It enters C800:0060 (flash 48060), whose jump
vector reaches 49db4. That routine builds BX from:
- S54 (
4c4): its enabled symbol-rate bits are inverted and mapped through the five-byte table at banked1e41. S54's labels are 2400, 2743, 2800, 3000, 3200, and 3429 symbols/s plus the V.8 flags. - S56 (
4c6): nonlinear coding, TX-level deviation, preemphasis, precoding, shaping, V.34+/V.34, and V.FC options contribute/clear capability bits. - channel capability byte
73d: it removes low-byte choices or enables bits 9, 10, and 12 according to the detected channel.
Thus the x2 tag-70 payload is a generic modem/channel capability mask with
x2-specific constraints applied, rather than a bare x2 mode number. V.90
does not send this word at all in this image.
Observable result and diagnostic differences
These distinctions are in the supervisor/result-code layer, so they are not part of the DSP negotiation decision, but they confirm the two paths survive through reporting rather than merely sharing a generic "PCM" result.
- x2 has 16 downstream result-rate entries, from 33333 through 57333 plus 64000. V.90 has 28, from 28000 through 62666 plus 64000. V.90 fills the 1333 1/3-bit/s steps that x2 omits below and within its range.
- The x2 result-code block begins at supervisor result code 182 and has four
strings per rate (
plain,/ARQ,/x2,/ARQ/x2). The V.90 block begins at 258. At overlapping rates it needs only the two V.90-suffixed strings, because the plain and/ARQstrings are shared with the x2 block. - The capture has distinct formatter entry points headed
x2 Statusat flash0x1bff0andV.90 Statusat0x1c0a0. The latter decodes bitfields from its V.90 status word; the former reads its separate x2 link state. The nearby x2 failure enum includes "Remote modem is not x2", "Remote modem is not a Server", "Multiple CODECs in channel", "Incompatible versions", and the local/remote 3200-baud restrictions. Those are proprietary x2 negotiation outcomes, not V.90 INFO1a values.
Things that are deliberately not x2-versus-V.90 changes
The shared rate-mask command 71 -> fff3, overlay-8 receiver-family fork,
and &X clock-source commands do vary DSP behavior, but static tracing shows
they are shared PCM/timing machinery. In particular, &X controls sample
clocking and bit 8 of @1f; the overlay fork reads bit 7. Neither identifies
x2 or V.90, and neither belongs in the scheme-selection model.
The fff1 message selector is separate state
At resident 8e4a, the DSP tests bit 6 of @1f: set selects fff1, clear
selects fff2, and the chosen 16-bit word is packed into ff18 at bit offset
16. This is not the overlay-8 family fork (which tests bit 7), and tag 70
does not set bit 6. Its complete handler is only:
8d29 smmr @7a, #fff1 ; host argument -> fff1
8d2b lar ar1, #fff1
8d2d apl *, #3fff
8d31 lar ar1, #fff4
8d33 splk *, #8000
The host command that replaces @1f is tag 1d, whose handler at 9b94
calculates (@7a << 2) + @7a before storing the low word in @1f. The
supervisor sends it at bcb5, with BX = zero_extend([4ab]); therefore the
selector receives five times the transferred configuration value, not the
raw byte. 4ab is S29 (48e + 29), whereas x2 and V.90 are S58 bits. S29 is
labelled "V21 Handshake" by the firmware's own help and acts as a V.21
fallback-timing control. Therefore it establishes only a shared sequencing
dependency for the fff1/fff2 selection; it does not establish the
on-wire frame, or prove that a particular bit is the remote-x2/server
discriminator.
The static image establishes the local half (x2 setup -> fff1 -> ff18[16..31]) and proves that it is not V.90 INFO1a[37:39]. Later sections
complete the receive-side and field mapping: ff18 is the standard INFO0
buffer, the capability word occupies ITU bits 12:27, and x2 overrides the
symbol-rate asymmetry, CME, and clock-source fields. The separate 7-bit
modulation-parameter marker supplies the proprietary directional rate signal.
The code-side selection audit is therefore complete for this image: the S58 gates, x2-only capability construction/transfer, INFO0 signature, 7-bit marker, V.90 INFO1a consumer, result ladders, and status paths are distinct and accounted for below.
x2 status: the DSP sends a bitmap, not the diagnostic string number
The DSP's outbound queue routine uses tag 0x75 for x2 status. Its report
sequence queues 0x8075 and then the current fff7 word. It occurs in
overlay 6 at a5ab, and in overlay 8 at e201 and e29e.
fff7 is a condition bitmap. Its writers OR the ten masks 0001, 0002,
0004, 0008, 0010, 0020, 0040, 0080, 0100, and 0200; tag 70
initializes 0001. It is therefore not the host's compact diagnostic enum.
The adjacent host strings (remote-not-x2, remote-not-server, incompatible
versions, and so on) are selected by a later host-side bitmap decoder, which
the next section recovers.
How the x2 diagnostic enum is built
It is not an enum the DSP sends. The host builds it from the condition
bitmap, one string per bit, and the ten bits are exactly the ten fff7
masks.
The host's copy of the bitmap
The store is explicit, and it names the tag:
4a9cb 3c 75 cmp al, 75
4a9cd 75 0b jne 4a9da
4a9cf 50 push ax
4a9d0 e4 5e in al, 5e
4a9d2 8a e0 mov ah, al
4a9d4 e4 5c in al, 5c
4a9d6 a3 1d 0a mov [0a1d], ax
That is in the same dispatcher that handles tags 34 and 20. The DSP's
report queues 8075 and then fff7 unaltered (a5af, e205, e2a2 all
lar ar1,#fff7 / lacc * / call 83b1), so 0a1d is fff7 verbatim, not a
derived code. Firmware 2.3.31 keeps the same word at 1ca7.
Do not confuse it with 0a23, which a different receive stub at 13c42
fills and which the x2 Status line formats; 2.3.31's equivalent is 1cb4.
Those are the modulation/version fields, not the condition bitmap.
The image names all ten bits itself
The capture ROM contains a second, unpatched decoder for the same word, in
the V90 Status: report at flash 4a03e. It walks the bitmap one bit at a
time and prints a line per set bit:
4a04c cmp byte [0238], 0
4a051 jne 4a064
4a053 call print "Is absent \r"
4a064 mov cx, 000a ; ten bits
4a067 mov dx, [0a1d]
4a06b xor bx, bx
4a06d ror dx, 1 ; CF = next bit, from bit 0 upwards
4a06f jnc 4a07c
4a071 mov si, cs:[bx+2085] ; table of ten near pointers
4a076 call print
4a079 call newline
4a07c inc bx / inc bx
4a07e loop 4a06d
ror shifts bit 0 into the carry first and bx advances by two every
iteration whether or not the bit was set, so entry n of the table is bit
n, with no room for interpretation. Resolved against segment base 48000:
| bit | pointer | file | string |
|---|---|---|---|
| 0 | 2099 |
4a099 |
x2 enabled on local modem |
| 1 | 20b3 |
4a0b3 |
V.90 enabled on local modem |
| 2 | 20cf |
4a0cf |
V.8 negotiation completed |
| 3 | 20e9 |
4a0e9 |
V.90 Server/client pair established |
| 4 | 210d |
4a10d |
Remote modem supports x2 |
| 5 | 2126 |
4a126 |
Channel supports x2/V.90 |
| 6 | 213f |
4a13f |
High frequency rolloff is normal |
| 7 | 2160 |
4a160 |
High frequency rolloff is marginal |
| 8 | 2183 |
4a183 |
Retrained before x2/V.90 connection |
| 9 | 21a7 |
4a1a7 |
Remote modem is an x2 server |
Bit 0 being "x2 enabled on local modem" is exactly right for a bit the x2 setup command sets unconditionally, and firmware 2.3.31's list is the same one with bit 0 dropped. This is the bit dictionary; everything below is read against it.
The string table and its consumer
Flash 1c21d holds nine near pointers, resolved against segment base
0x16fc0:
| index | pointer | file | string |
|---|---|---|---|
| 0 | 526f |
1c22f |
Unspecified impairment |
| 1 | 5286 |
1c246 |
x2 disabled on local modem |
| 2 | 52a1 |
1c261 |
3200 baud disabled on local modem |
| 3 | 52c3 |
1c283 |
Remote modem is not x2 |
| 4 | 52da |
1c29a |
Multiple CODECs in channel |
| 5 | 52f5 |
1c2b5 |
Remote modem is not a Server |
| 6 | 5312 |
1c2d2 |
Incompatible versions |
| 7 | 5328 |
1c2e8 |
Channel will not support 3200 baud |
| 8 | 534b |
1c30b |
Channel is x2-capable but feature not installed |
The consumer is a plain indexed fetch and print:
522f a1 1d 0a mov ax, [0a1d]
5232 90 90 90 (three bytes replaced by NOPs)
5235 25 ff 02 and ax, 02ff
5238 9a a1 9d 00 80 lcall 8000:9da1 ; four-digit hex printer
523d eb 15 jmp 5254 ; ...and skip the string
523f 90 90 90 (three bytes replaced by NOPs)
5242 75 03 jne 5247
5244 b8 08 00 mov ax, 8
5247 d1 e0 shl ax, 1
5249 05 5d 52 add ax, 525d ; the table above
524c 8b f0 mov si, ax
524e 2e 8b 34 mov si, cs:[si]
5251 e8 4d e4 call 36a1 ; print string at si
What survives says this much: the input is the condition bitmap, the mask
02ff keeps bits 0..7 and bit 9 and drops bit 8 alone, index 8 is
the answer when whatever the removed code scanned came up empty, and the
result is one string out of nine. The ten bytes at 5238..5241 and the three
at 5232 that computed the index are gone - this build calls the four-hex-
digit printer instead and jumps over the lookup entirely.
The index is not the bit number. An earlier revision of this document inferred that from the nine-strings-for-nine-bits fit; the ten-entry table above refutes it. Bit 0 is "x2 enabled on local modem", whose failure is entry 1, "x2 disabled on local modem"; bit 4 is "Remote modem supports x2", whose failure is entry 3. No single shift reconciles the two lists.
The arithmetic, from the unpatched builds
IDSDL302.ROM and the stock capture courier-board-21210-capture-01 are
byte-identical over this routine, and neither has been overwritten. The whole
of it:
50bb 80 3e 3f 03 00 cmp byte [033f], 0
50c0 74 27 je 50e9
50c2 eb 25 jmp 50e9 ; unconditional - see below
50c4 a1 2f 0b mov ax, [0b2f]
50c7 c1 e8 08 shr ax, 8
50ca 25 07 00 and ax, 7
50cd 3d 01 00 cmp ax, 1
50d0 75 0a jne 50dc
50d2 f6 06 9d 08 20 test byte [089d], 20
50d7 75 03 jne 50dc
50d9 b8 08 00 mov ax, 8
50dc d1 e0 shl ax, 1
50de 05 f2 50 add ax, 50f2 ; the nine-pointer table
50e1 8b f0 mov si, ax
50e3 2e 8b 34 mov si, cs:[si]
50e6 e8 38 e4 call print
50e9 e8 23 e4 call print "\r\n"
So the index is
index = ([0b2f] >> 8) & 7
if index == 1 and ([089d] & 0x20) == 0:
index = 8
- A three-bit code field, not a bit scan.
[0b2f]bits10:8are read as a number0..7, which indexes entries 0 through 7 directly. - Entry 8 is an override, not a ninth code. "Channel is x2-capable but
feature not installed" replaces entry 1 ("x2 disabled on local modem")
when the option byte
089dbit20is clear. That byte is the feature mask - the same bit gates the wholex2 Statusdisplay at1c044, and08f7..091bbuilds it from a source word bit by bit - so the override reads "x2 is off locally, and the reason is that the feature is not installed". There is no code value 8. [0b2f]is the x2 status word, not the condition bitmap. Its only writer is the mailbox receive stub at13c50(13c46in the 4.03 image, storing to0a23), and its other readers are thex2 Statusline, which formats bits15:14and7:6of the same word.
What that makes of the 4.03 image
The patched routine in the capture ROM is this routine, edit for edit - the byte counts line up exactly:
| stock | 4.03 |
|---|---|
a1 2f 0b mov ax,[0b2f] |
a1 1d 0a mov ax,[0a1d] |
c1 e8 08 shr ax,8 |
90 90 90 |
25 07 00 and ax,7 |
25 ff 02 and ax,02ff |
3d 01 00 cmp ax,1 + 75 0a jne |
9a a1 9d 00 80 lcall hex printer |
f6 06 9d 08 20 test [089d],20 |
eb 15 jmp + 90 90 90 |
So 4.03 is a debug build: it added the tag-75 handler that captures raw
fff7 into 0a1d, then rewired this routine to hex-dump that word instead
of naming a code. The and ax,02ff is a display mask for the debug dump,
not part of the original logic - which retires the earlier argument that the
mask told us anything about the table.
Both builds skip it anyway
50c2 eb 25 jumps to the same place as the je two instructions above it,
so the string is never printed in either firmware. The routine prints its
heading and a newline and nothing between. The nine strings, the table and
the arithmetic are all intact and all unreachable - the compact enum is a
disabled feature, and the ten-line bit report at 4a03e is what these builds
actually show.
What still is not known
Which DSP code produces the three-bit field. Resident 90cd packs
fff7 & 7 into bits 10:8 of the only word the DSP sends under tag 6b,
and also sets bit 14, which the x2 Status line prints - the positions
match. But the nine strings do not read as a function of fff7 bits 0..2:
code 1 would be "bit 0 set alone", and bit 0 is "x2 enabled on local modem",
whose entry-1 string says the opposite. Either the field is not fff7 & 7
in this firmware, or the 4.03 bit names do not apply to the stock DSP.
Settling that needs the tag-6b routing traced through the host's stub
dispatcher, which this image has not yielded.
Which DSP test sets each fff7 bit
Every bit is set by exactly one opl site, and all ten are in the resident
bank. Scanning the four downloaded images for the immediate fff7 separates
the address uses (lar ar1,#fff7 followed by an opl/lacc) from the sites
where fff7 is merely a mask constant (apl @6f,#fff7 and friends, which
are unrelated). What remains is one writer per mask, four readers, and one
clear:
| bit | mask | writer | guard | tests |
|---|---|---|---|---|
| 0 | 0001 |
8d37 |
none | host tag 70 - the x2 setup command itself |
| 1 | 0002 |
d5a4 |
retc neq at d5a0 |
(@7a & 0x00ff) >> 4 == 2 |
| 2 | 0004 |
d571 |
retc ntc at d56e |
@70 bit 2 (bit 13, a bit code), after call d876 |
| 3 | 0008 |
d62c |
branches at d613..d624 |
field 0d of fea1 and of fedd both present, fedd's bit 7 set (bit 8, a bit code), and (value & 0x60) == 0x60 |
| 4 | 0010 |
d763 |
xc 2, gt |
a summed-difference measurement over the 02a4 buffer, scaled by 2d00, is positive |
| 5 | 0020 |
9028 |
retc lt at 9025 |
the first nonzero entry scanning ff2d downwards is at least four words above ff27 |
| 6 | 0040 |
9683 |
xc 2, lt |
[da15] - [da18] is below 1d3c (below 1542 when @63 is nonzero) |
| 7 | 0080 |
8dae |
branches at 8da2/8da8 |
@1f bit 14 set and fff4 bit 1 clear (bit codes 1 and 14) |
| 8 | 0100 |
968f |
xc 2, lt |
the same measurement as bit 6, against a threshold 0e9e lower |
| 9 | 0200 |
9052 |
branches at 904a/904e |
ff18 bit 5 set (bit 10, a bit code) and [ff00] & 0x0c00 nonzero |
fff7 is cleared once, at reset: 8074 lar ar1,#fff7 / 8076 sach * in the
initialisation run that also clears fff3, fff4 and fff8. Nothing clears
it again, so the bits are cumulative for the life of a call - which is what a
progress bitmap has to be for "the first condition not reached" to mean
anything.
The four readers are the report path and one internal use: overlay 6 a5af
and overlay 8 e205/e2a2 load the word and queue it behind tag 0x75
(this is the transfer the previous section describes), and resident 90cd
folds fff7's bits 0..2 into a different status word alongside ff00.
Two observations that fall out of the addresses
The overlays cannot reach these tests. Overlay 6 occupies 9d00..ce32,
overlay 7 b000..cd4a and overlay 8 dc00..f94a. Every one of the ten
writers is at 8d37..968f or d571..d763, so none of them is in space any
overlay overwrites. The condition bitmap is built entirely by resident code
and merely reported by whichever overlay is loaded, which is why the same
three report sites appear in two different overlays.
Bit 0's writer matches its name exactly. Bit 0 is the only
unconditional one, set by the tag-70 handler - the x2 setup command itself
- and the image's own name for it is "x2 enabled on local modem". That is the one place where the DSP side and the string side confirm each other outright.
One writer and its name do not line up
Bits 6 and 8 are set 12 words apart from the same value, against two
thresholds 0e9e apart, at 9683 and 968f, and the first retc lt makes
them mutually exclusive: below the first threshold sets bit 6, the band above
it sets bit 8. That is a two-grade measurement.
The names pair a two-grade measurement too - but at bits 6 and 7: "High
frequency rolloff is normal" and "...is marginal". Bit 7's only writer is
8dae, whose guard is @1f bit 14 set and fff4 bit 1 clear - a pair of
state flags, not a measurement - and bit 8's name is "Retrained before
x2/V.90 connection", which is not a threshold either.
The writer scan is exhaustive: sweeping every opl *,#0040 / #0080 / #0100
in all four images and resolving the ar1 each one loads finds no second
writer for any of these bits. So one of two things is true - either the graded
measurement is not the rolloff the names describe, or the string table and
the bit assignments drifted apart in this build. This document does not
resolve it, and the pairing for bits 6, 7 and 8 should be treated as open.
What this does and does not name
The bit-to-string pairing is the ten-entry table's, which is mechanical and
not in doubt. The tests are what the code does - a field comparison, a buffer
scan length, a scaled sum against a threshold. What is not established is
that those two descriptions agree: nothing here demonstrates that
[da15] - [da18] measures high-frequency rolloff, that the ff2d scan
counts CODECs, or that (@7a & 0xff) >> 4 == 2 is a V.90-enabled test.
Confirming any of that needs a trace with known line conditions or the x2
specification. The claim is narrower and complete: which test sets which bit,
and what this firmware calls that bit.
The bits do not reach the result code
0a1d has exactly three references in the whole 512 KiB image:
4a9d6- the tag-75store that fills it,4a067- the ten-lineV90 Status:report,1c1ef- the compact nine-string enum, which this build has patched out.
Nothing else reads it. The condition bitmap is a diagnostic terminus: it
feeds two printers and no decision. In particular it does not choose between
the x2 result block at supervisor result code 182 and the V.90 block at 258,
does not pick a rate within either ladder, and does not gate the /x2 or
/V90 suffix on a CONNECT string. Those come from the rate-and-scheme path
described earlier in this document - the S58 gates, the tag-70 capability
transfer, and the PCM rate ladders - which never consults fff7.
So the answer to "which result code does a given bit produce" is: none. A
call that fails every x2 precondition and one that passes all of them reach
the result-code layer by the same route; the bitmap only explains, after the
fact, which precondition was missing. The two vocabularies are for two
different audiences - ATI diagnostics versus the CONNECT line - and this
firmware keeps them completely separate.
Where the code comes from, and why 6 never appears
The stock DSP builds the field. In IDSDL302.ROM (and the identical stock
capture) the tag-6b word is assembled at resident 9106:
9106 bf80 806b lacc #806b ; the tag
9108 bf09 fff6 lar ar1, #fff6
910a 1880 lacc *, 8
910b bfb8 0007 and #0700 ; fff6 bits 2:0 -> word bits 10:8
910d 907d sacl @7d
...
9117 bfce 0001 or #4000
- the field the host reads as
([0b2f] >> 8) & 7isfff6 & 7, fff6's only writer anywhere in the four images isbldd @7d, #fff6(9049,90d0,90fc,d77a) - it is always a copy of@7d,- and the 4.03 image reads
fff7here instead. This paragraph is about the stock DSP, which is the one whose host-side arithmetic survives.
The code generator
Resident 9018..9049 is a run of "assume this failure, then test": each
splk @7d,#N is immediately followed by a conditional branch to the commit
at 9049.
| code | set at | test that commits it | string |
|---|---|---|---|
| 7 | 9027 |
the ff2d downward scan stops less than four words above ff27 |
Channel will not support 3200 baud |
| 4 | 9032 |
[da15] - [da18] exceeds 1fe4 |
Multiple CODECs in channel |
| 1 | 9036 |
fallthrough - nothing else matched | x2 disabled on local modem |
| 3 | 9076 |
039f bit 6 clear (bit 9, a bit code) |
Remote modem is not x2 |
| 2 | 9081 |
ff18 bit 5 clear (bit 10, a bit code) |
3200 baud disabled on local modem |
| 5 | 9087 |
[ff00] & 0c00 is zero |
Remote modem is not a Server |
That the codes and the strings belong together is not an assumption. Code 5's
test is the exact complement of the condition that sets the "Remote modem is
an x2 server" bit (ff18 bit 5 and [ff00] & 0c00 nonzero, tested at
9049 and set at 9052 in the 4.03 resident): same two operands, opposite
outcome. Code 3 turns on 039f bit 9, code 2 on ff18 bit 5, and code 1 is
the default - each
matching its string's sense. Six independent agreements, on a table nobody
chose to line up.
6 has no producer
Sweeping all four downloaded images of the stock ROM for splk @7d,#0006, and
for any splk/opl of 0006 into fff6, finds nothing. The generator emits
1, 2, 3, 4, 5 and 7; d777 sets @7d to 8, which the three-bit field
truncates to 0; and no path produces 6.
So nothing sets "Incompatible versions". It is a string in the table with no code that selects it. The most likely reading is a retired test - the entry sits between "Remote modem is not a Server" and "Channel will not support 3200 baud", exactly where a version-compatibility check between two x2 modems would belong, and the generator has a hole at that value rather than a compacted list. But this image holds no evidence of what that test was.
It is moot in these builds regardless: the eb 25 at 50c2 jumps over the
whole lookup, so none of the nine strings is ever printed. 4.03 went
further and deleted the code generator - its resident has no splk @7d,#N
assignments in this range at all, and the same word position now carries
fff7 & 7.
One loose end this tightens
The measurement at da15, which sets fff7 bit 6 in the 4.03 resident
against a threshold of 1d3c, is the same array and the same difference the
stock generator tests against 1fe4 to report "Multiple CODECs in
channel". That is a lead on the bits 6/7/8 tension recorded above - it
suggests da15 is a channel-impairment measure rather than the
high-frequency rolloff the 4.03 string list names - but the two builds
disagree about which word and which bit it drives, so it settles nothing on
its own.
What the "Multiple CODECs" test actually measures
"Multiple CODECs in channel" means more than one analogue/digital conversion in the path - a tandem codec, typically a digital PBX or a second carrier hop ahead of the one x2 expects. x2 needs exactly one D/A in the downstream direction, because it decodes the PCM codeword levels directly; a second conversion re-quantises them and there is nothing left to decode. The far end never announces this, so the modem has to detect it from the line itself.
That is what da15 is for. The array it indexes is a spectral vector, and
the firmware's own use of it says so:
93c7builds the array by summing a double-word accumulator pair per entry out ofd982, sod982is a bank of accumulators andda00their totals.9467rescales every entry (mpy #0c0b,spac,bsar 5) intoffc0.9475sums a span and divides by 23 for a mean;9483takes the maximum across the same span withcrgt;948cand9495then store the peak-relative deviation of the bottom entry in@5eand of a top entry in@5f.
A mean, a peak, and both band-edge deviations is band-shape extraction over a
per-tone magnitude estimate. Against that, [da15] - [da18] > 1fe4 is a
slope across the top of the band - which is how you detect a tandem
conversion without any cooperation from the far end, since an extra codec
band-limits and reshapes the channel in a way a single-conversion path does
not.
This also dissolves the bits 6/7/8 disagreement recorded above, without either side being wrong. The stock build names the same measurement by its cause ("Multiple CODECs in channel"); 4.03 names it by its symptom ("High frequency rolloff is normal / marginal"), and grades it in two bands rather than one. Same array, same difference, two vocabularies - so the earlier note that the two builds "disagree about which word and which bit it drives" stands as a fact about the encoding, but is not evidence that the measurement is two different things.
da18 is the top bin of that vector
An earlier reading of this called da18 "one past the array". That was an
off-by-one in the loop counts, and the firmware's own divisor catches it.
BANZ tests the auxiliary register before the *- decrement, so
lar arN,#count followed by a banz body runs count + 1 times. Applying
that:
| site | init | span | entries |
|---|---|---|---|
93c7 fill |
lar ar5,#18 |
da00..da18 |
25 |
9467 rescale |
lar ar3,#18 |
da00..da18 |
25 |
9475 mean |
lar ar2,#16 from da01 |
da01..da17 |
23 |
9483 peak |
lar ar2,#16 from da01 |
da01..da17 |
23 |
The mean loop then divides by #0017 - 23 - which is exactly the number
of entries it just summed. That divisor is the check: the counts are
count + 1, the vector is da00..da18, 25 entries, and the statistics
deliberately skip the extreme bin at each end.
So da18 holds the topmost bin of the probe magnitude vector, and da00
the bottommost; those two are the guard bins the mean and peak exclude.
[da15] - [da18] is therefore bin 21 against bin 24 - the drop across the
last three bins, which is high-frequency rolloff read literally.
Two other sites agree. 940a clears da14..da18 with
lar ar1,#da14 / rptz #0004 / sach *+ - exactly five words, ending on
da18 - when the comparison at 9401..9408 fails, which is a
"the top of the band is unusable, zero those bins" action and only makes
sense if da18 is the last bin. And 94c8 is a three-tap interpolator
(lacl *+ / mar *+ / adds *- / add #01 / sfr / sacl *+) that fills an entry
from its two neighbours, called four times from 945b onwards - the probe
measures alternate bins and the odd ones are filled in.
This makes 4.03's naming the literal one. The quantity really is a high-frequency rolloff slope; the stock build simply reports the diagnosis it draws from that slope - a second codec in the path - rather than the measurement.
What separates the two rolloff grades
One number, two thresholds. The grading is at 4.03 resident 9674..9691,
called from 93c4 inside the probe-analysis routine that fills the array:
9674 lar ar0, #03
9675 lar ar1, #da15
9677 lacl *0+ ; S = [da15]
9678 sub * ; - [da18]
9679 cpl @63, #0000 ; TC = (@63 == 0)
967b sub #1d3c
967d xc 2, tc
967e add #07fa ; ...so the bar is 1542 when TC, else 1d3c
9680 lar ar1, #fff7
9682 xc 2, lt
9683 opl *, #0040 ; "normal"
9685 retc lt ; and stop
9686 lar ar1, #fff4
9688 sub #0e9e
968a opl *, #1000 ; not-normal flag, unconditional
968c lar ar1, #fff7
968e xc 2, lt
968f opl *, #0100 ; "marginal"
9691 retc lt
With S the top-of-band slope and T the first bar:
| outcome | condition |
|---|---|
| normal | S < T |
| marginal | T <= S < T + 0e9e |
| neither | S >= T + 0e9e |
So the two grades are told apart by a single extra margin of 0e9e. That
margin is the entire width of the "marginal" band; it sits immediately above
the "normal" limit, and there is no second measurement, no hysteresis and no
other input. T is 1d3c, shifted down to 1542 when @63 is zero, which
moves both boundaries together and does not change the width.
There is also a third, unnamed outcome. A slope past T + 0e9e sets
neither bit, so the report simply prints no rolloff line at all - "not even
marginal" is expressed by absence, not by a string. And fff4 bit 12 is set
unconditionally on the way past the first test, so that flag means precisely
"graded worse than normal", covering both of the remaining cases.
The grades straddle the stock build's single limit
The stock firmware does not grade: 96b3 and 902c..9034 both test the same
slope against one threshold, 1fe4. Lining the three up:
1542 / 1d3c 4.03 "normal" limit (with / without the @63 shift)
1fe4 stock pass/fail limit
23e0 / 2bda 4.03 "marginal" limit
The stock boundary falls inside 4.03's marginal band in both variants. So 4.03 did not move the decision - it split the stock build's single pass/fail line into a band around itself and named the two halves, which is what you would do to report a borderline channel rather than only reject it.
@63 is not identified. It is a page-0 scratch location written from many
places; the nearest candidate is the training sequencer's counter, set to 3
at 9317 and 9367 and decremented at 9326, but nothing here proves that
is the same variable this test reads.
@63 is 03e3, and it carries the x2-setup flag
Fixing the page
@63 is direct-addressed, so it means "offset 63 on the current data
page", not an address. The page is pinned by @1f, which this module uses
constantly:
8da0 ldp #007is immediately followed by8da1 bit 1, @1f,- and other code reaches the same flags word indirectly -
lar ar1,#039fat9040,opl *,#4081atd628,opl *,#4040atd75e.
Page 7 offset 1f is 380 + 1f = 039f. They are the same word, so this
module runs on DP 7, and there is no ldp between 92b4 and 972a to
change it across the probe code. Therefore @63 is 380 + 63 = 03e3.
That turns an ambiguous scratch reference into a searchable address, and the writers that matter address it indirectly, with no page dependence at all.
The writer that decides the threshold
d45b lar ar1, #fff4
d45d bit 15, * ; encoded bit code 0 = fff4 bit 15
d45e lar ar1, #03e3
d460 bcndd d468, ntc ; two delay slots...
d462 splk *, #0012 ; ...so this always runs
d464 call d952
d466 b d46a
d468 call d94e ; d94e: lar ar1,#03e3 / splk *,#0000
03e3 is set to 0012 unconditionally in the branch's delay slots, and then
zeroed by d94e when the tested bit is clear. It is a two-valued flag:
0012 or 0. So cpl @63, #0000 in the rolloff test is asking whether that
fff4 bit was clear, and the answer is what moves both grade boundaries down
by 07fa.
The other users of the same word, and why they are not it
03e3 is reused across phases - it is state, not a named variable:
9317/9367splk @63,#0003, decremented at9326, withcc 9367, eqreloading it to 3 the moment it reaches zero. It is a divide-by-three inside the 21-pass probe loop at931a..932c, making the sequencer do extra work every third pass.d358uses#03e3as the base of a three-tapmadswindow.d6aa/d6benegate it and negate it back.
None of these can produce the zero the rolloff test looks for. The counter
reloads to 3 in the same instruction that observes zero, and 21 decrements
from 3 land back on 3 at loop exit, so it is never zero when read from
outside. Negating 0012 leaves it non-zero either way. Only d94e writes a
zero.
Bit codes: a correction that moves several bits
The C5x BIT instruction takes a bit code, and the bit it tests is
15 - code - the convention pcm-x2-v90.md already records
("bit code 8, which is bit 7"). Masks in opl/apl/and are literal and
unaffected, so everything in this document derived from a mask - the ten
fff7 bits, the 02ff display mask, the three-bit code field, the da15
thresholds, 03e3 - stands unchanged. Everything derived from a bit
instruction was off, and the tables above are now corrected.
The one that matters most is the fff4 bit-15 test. In the 4.03 capture it
is at 903d and d45d, and the disassembler prints it as bit 15, *
(encoded bit code 0). The addresses 9070, d47f and d76f given here
before are not fff4 bit tests in that image - they are sacl *, ldp #007
and xor @41 - so they belong to a different build.
What those three sites actually test: the x2 setup flag
fff4 bit 15 has one writer, and it is the x2 setup command itself:
8d3a lar ar1, #fff4
8d3c splk *, #8000 ; stock; 4.03 at 8d31-8d33
That is the tag-70 handler - the x2-only host command this document's
opening sections identify - and splk writes the whole word, so tag 70
both sets bit 15 and clears the rest. fff4 is otherwise cleared only at
reset (8071).
So all three consumers are asking one question: has the host set x2 up?
9070in the stock code generator: clear takes thefff6bit 3 route to "Remote modem is not x2"; set takes the039fbit 6 route, which goes on to compareff18bit 5 and[ff00] & 0c00. Without the x2 setup there is no negotiated state to consult, so it falls back to the single inferred bit.d47f: with x2 set up,03e3becomes0012and the rolloff bars relax by07fa; without it, the tighter pair applies.d76f:opl 039f,#4040is conditional on it, so those flags are only maintained on an x2 call.
That is a much plainer reading than the "source-of-truth selector" this
document gave before the bit codes were checked, and it is consistent with
fff7 bit 0 - also set by tag 70 - being named "x2 enabled on local modem"
by the firmware's own string table.
So what is ff00 bit 7
Two answers, because the question inherits the numbering error.
ff00 is the high half of the received INFO0 pair. At 9554 the
firmware reads ff00 and ff01 as one 32-bit quantity
(lacc16 *+ then or *-), and immediately does the same to ff18/ff19,
comparing fields of the two. 4.03's debug report prints exactly two such
pairs from the host side - 083a/083c under "Remote X2/V90 INFO0 is:"
and 085a/085c under "Main V34/X2/V90 INFO0 is:". So ff00:ff01 is
the remote INFO0 and ff18:ff19 the local one. This also refines the earlier
description of ff18 as "the outgoing INFO buffer": it is the local INFO0
word pair.
The bit called "bit 7" here is bit code 7, so it is ff00 bit 8. It is
read once, at 906b in the 4.03 capture, as the fallback source for fff4
bit 0 - the mask-0001 bit, not the setup flag - when the scheme word's own
validity bit is clear.
And that bit has a second writer this document missed. The full chain is in the next section.
The INFO0 parser - at 91e8 in the 4.03 capture, 9223 in the build this
section was first written against - is the best description of the layout the
image gives:
| field | code | meaning as used |
|---|---|---|
| bits 11:7 | lacl * / bsar 7 / and #001f |
a 5-bit count; +1 into 0309, halved into f999 |
| bit 13 | bit 2 |
sets fff4 bit 0 |
| bit 12 | bit 3 |
clear sets fff4 bit 8 |
| bits 6:3 | lacc *,5 / and #0f00 |
a 4-bit value, negated and offset against [ff26] |
Shifts and masks are plain bit numbers - only a bit instruction's operand
is a code - so the two extracted fields are 11:7 and 6:3. Note that the
bit read at 909e falls inside the 5-bit count at bits 11:7, so the
fallback is testing a bit of that count rather than an independent flag. Naming the fields themselves needs the x2 INFO0 layout,
which these images do not state; what the firmware fixes is the shape - a
5-bit count, two flags, and a 4-bit value compared against ff26.
Audit: every bit claim in the docs, rechecked
Mechanically, against both 512 KiB images: extract all 1,924 BIT sites from
the resident and three overlays, then take every documentation line that names
a four-hex address and a bit number and compare the claim against 15 - code.
Shift-and-mask extractions were checked separately, since those carry plain
bit numbers and no code.
The other documents were already right. Every one of them either converts explicitly or quotes without claiming:
dsp-rom-probe.mdannotates its conversions inline - "TI numbering: the low bit" at83a3(code 15), "TI numbering: bit 2" at8482(code 13), "TI bit 10 is bit 5" atae15, and theae18..ae21ladder follows it.pcm-x2-v90.mdstates the rule and applies it -de0dcode 8 as bit 7,a45bcode 9 as bit 6, theadf1..adfdladder as bits 5 down to 1,81e4code 7 as@1fbit 8, and thec9d2/c9f3/c5e0note that code 13 is bit 2.fsk-modulation.mdgives the rule as~code & 0xfand its slot table is in converted numbering;d95fcode 7 is annotated "bit 8 of the cell".9b42"sets@6fbit 14" is mask-derived (opl @6f, #4040) and correct, though the same instruction also sets bit 6.datapump-slots.mdinherits the same converted table.codec-sample-rates.md's bit numbers are frame offsets for the bit-field routines, notBIToperands, as is "received bit 12".vpcm-datapump.md,window-312-baseline.md,what-the-asic-does.md,codec-rate-312.md,mailbox-312-comparison.mdandsdl-boot-block.mdrefer to x86 port and mask bits, which are literal.c52-v8-static-analysis.mdquotesbit 5andbit 1without deriving a bit number from either.
This document was the only one with the error, introduced with the fff7
work, and it is corrected above. Two of the corrections were themselves
wrong on the first pass and are fixed here: the INFO0 parser's extracted
fields come from shifts, not BIT, so they are bits 11:7 and 6:3 in plain
numbering and must not be converted a second time.
The fff4 bit 0 chain, in correct numbering
Bit 0 here means the mask-0001 bit, which is what opl *, #0001 writes.
It is not the bit the three bit 0, * sites read - those are bit code 0,
i.e. bit 15, the x2 setup flag covered above. Enumerated across both images by
resolving the ar1 each fff4 access loads, the complete picture is:
Two writers, both OR-only
9095 lar ar1, #fff5 ; 4.03: #fff6
9097 bit 14, * ; code 14 -> fff5 bit 1
9098 lacl #00 / xc 1,tc / lacl #01
909b bit 15, * ; code 15 -> fff5 bit 0
909c bcnd 90a4, tc ; ...bit 0 set: keep the value from bit 1
909e lar ar1, #ff00
90a0 bit 7, * ; code 7 -> ff00 bit 8
90a1 lacl #00 / xc 1,tc / lacl #01
90a4 lar ar1, #fff4
90a6 or * / sacl * ; OR the 0/1 in
9231 bit 2, * ; code 2 -> ff00 bit 13 (ar1 still ff00)
9232 lar ar1, #fff4
9234 xc 2, tc
9235 opl *, #0001 ; the only opl of this bit in any image
So:
| source | condition | site |
|---|---|---|
fff5 bit 1 |
when fff5 bit 0 is set |
9095..909c |
ff00 bit 8 |
when fff5 bit 0 is clear |
909e..90a3 |
ff00 bit 13 |
unconditionally OR-ed | 9231..9235 |
Both writers only ever set it. It is cleared in exactly two places: 8071 at
reset, and 8d3c splk *, #8000 - the tag-70 x2 setup, which writes the
whole word. An x2 setup therefore clears this bit and sets bit 15, which
is the cleanest evidence that the two are unrelated flags that my earlier
reading had merged.
Two readers, both bit 15 (code 15)
9257 lar ar1, #fff4 ; and ov8 e1a5, identically
9259 bit 15, *
925a lacl #00 / xc 1,tc / lacl #42
925d sacl @61 ; DP 6 -> [0361] := 0042 or 0
e0d0 lar ar1, #fff4 ; overlay 8, assembling a word
e0d2 bit 15, *
e0d3 lar ar1, #0361
e0d5 xc 2, tc
e0d6 or #4000 ; set bit 14 when fff4 bit 0 is set
e0d8 cpl *, #0000 ; and then, on [0361]...
e0db xc 2, ntc
e0dc or #2000 ; set bit 13 when [0361] is non-zero
The value 0042 and the word overlay 8 assembles are not identified; what is
established is the wiring. fff4 bit 0 is a latched capability bit sourced
from the INFO0 exchange - ff00 bit 13 always, plus either ff00 bit 8 or
fff5 bit 1 depending on fff5 bit 0 - whose only effect is to put 0042
in 0361 and to set two bits of a word overlay 8 sends. It gates nothing in
the diagnostic path, and it has no bearing on the rolloff thresholds or the
code generator; those all read bit 15.
fff5 bit 0 is the tag-52 argument's bit 0, and it is always zero
fff5 is a host command's payload
The DSP's host-command table is at resident 8401 in the stock image and
83e9 in 4.03, indexed by tag. It checks out against the tags this document
already named - tag 70 reaches 8d30/8d29, tag 71 the fff3 handler at
8d49/8d3a, tag 1d reaches 9bb8/9b94 - and tag 52 reaches
8d22/8d17:
stock 4.03
8d22 smmr @7a, #ff2e 8d17 smmr @7a, #ff2e
8d24 lar ar1, #f99b 8d19 smmr @7a, #fff6
8d26 splk *+, #003f 8d1b lar ar1, #f99b
8d28 splk *, #ffff 8d1d splk *+, #003f
8d2a call 8d40 8d1f splk *, #ffff
8d42 apl ff2e, #ffef 8d21 lar ar1, #fffa
8d44 lacc ff2e 8d23 splk *, #0000
8d47 sacl fff5
So the word the 909b test reads is the tag-52 argument: stock copies it
through ff2e with bit 4 cleared into fff5, 4.03 stores it straight into
fff6. That is the same one-word shift seen elsewhere between the two builds,
and it confirms fff5/fff6 are the same thing under two names. fff5 has
exactly one writer and one reader in the whole stock image.
What the supervisor puts in it
Both tag-52 sends (8a11 and, in the other caller, the same sequence) build
the argument at supervisor 8a55 and pass it in BX:
8a55 mov bx, 1ef0
8a58 and bx, ffc7 ; -> 1ec0
8a5b test [04c6], 01 / jne ; S56 bit 0 clear -> or bx, 0008
8a65 test [04c6], 08 / jne ; S56 bit 3 clear -> or bx, 0020
8a6f test [04c6], 10 / jne ; S56 bit 4 clear -> or bx, 0010
8a79 cmp [04e9] against 0, 4, 5 ; otherwise and bx, ffbf
8a91 test [04c5], 80 / je ; S55 bit 7 set -> or bx, 0100
8a9c mov ax, 52 / lcall the mailbox thunk
04c6 is S56, the V.34 options register this document already uses for the
capability word, and 04c5 is S55. The reachable bits are 3 through 12 and
nothing else: the base constant 1ef0 has bits 0, 1, 2 clear, the mask ffc7
only clears, and the three ors are 0008, 0020, 0010 and 0100.
Therefore
fff5 bit 0 can never be set. The test at 909b (bit 15, *, code 15) is
always false, the bcnd 90a4, tc at 909c never branches, and the
fff5 bit 1 source is unreachable - that bit is always zero for the same
reason. fff4 bit 0 is in practice fed from ff00 bit 8 alone, plus the
unconditional OR from ff00 bit 13 at 9235.
So fff5 is not an x2 word at all: it is the datapump's V.34 options mask,
built from S55 and S56, and the branch in the fff4 bit 0 computation that
consults it is dead in this firmware.
A disassembler caveat this rests on
BLDD has two forms and the disassembler prints both as bldd dma, #lk:
A9 copies dma into the long address, A8 copies the long address into
dma. Everything above, and the code generator's bldd @7d, #fff6 (A9,
so @7d into fff6), depends on that split. The reading is self-consistent -
A9 at 9049 makes the splk @7d,#N codes reach fff6, and A8 at 9419
(bldd *, #ff2e, ar1 = 0345) makes ff2e the source feeding 0345, which
is the direction the surrounding code needs - but the mnemonic alone does not
show it.
The ff18 frame: it is shared V.34-family INFO0, not a proprietary x2 frame
The open question above - "what is the framing of the x2-conditioned
capability payload after the DSP packs it into ff18" - is now answered from
the image alone. ff18 is serialized by the same machinery, in the same
message family, as ff1a.
The bit-offset convention
8769 (insert) and 877a (extract) both take a bit offset in @7f and a
buffer base in ar0:
8769 sacl @7d ; value
876a lacc @7f
876b bsar 4 ; word index = offset >> 4
876c samm @11 ; -> INDX
876d lacl @7f
876e cmpl ; shift count = ~offset
876f samm @0d ; -> TREG1
8770 mar *0+ ; ar0 += INDX
...
8775 addt @7d ; value << (15 - (offset & 15))
So offset n addresses word base + (n >> 4), bit 15 - (n & 15). Offset 0
is ff18 bit 15; offset 16 is ff19 bit 15. Offsets count in transmission
order, which is what makes the numbers below comparable with a standard's
field table.
The serializer and its script
Message transmission is a small interpreted script. 996b is the
interpreter: @4b is the script PC, and each step is a (handler, bit count)
pair read with tblr.
996b lacl @4b
996c tblr @48 ; handler
996d add #01
996e tblr @4a ; bit count
996f lacl @4a
9970 retc eq ; count 0 ends the script
9971 lacl @4b
9972 retd
9973 add #02
9974 sacl @4b
The handlers share one bit engine. Two of them differ only in the buffer loaded in a delay slot:
99d6 bd 99dc, *
99d8 lar ar0, #ff18 ; delay slots - entry for the local INFO0
99da lar ar0, #ff1a ; separate entry - INFO1a
99dc calld 877a, *
99de lacl @4a ; delay slots: bit offset = remaining count - 1
99df sub #01
Because the offset is @4a - 1, a 17-bit body is emitted offset 16 first,
down to 0.
The bit is then folded into a CRC and a scrambler:
99e1 and @7b
99e2 xor @59
99e3 sfr
99e5 xc 2, c
99e6 xor #8408 ; CRC-16-CCITT, reflected polynomial
99e8 sacl @59
99c6 initialises both registers - @50 = 04ef (fill pattern) and
@59 = ffff (CRC preset) - and 99d1 shifts @59 out.
The scripts
The script table is one region entered at different offsets; @4b writers
select the message. The ff18 script is at 9983, set at 9114, 9148
and - to repeat the message - at 99b8:
| step | handler | count | meaning |
|---|---|---|---|
9983 |
99c6 |
12 | init CRC/fill, emit 12 fill bits |
9985 |
99d6 |
17 | ff18 body, offsets 16..0 |
9987 |
99d1 |
16 | CRC-16 |
9989 |
99c2 |
4 | trailing constant bits |
998b |
99af |
0 | end; restarts the script at 99b8 |
The ff1a scripts have the identical shape and differ only in body length:
998d = 77 bits, 9999 = 38 bits, 99a3 = 7 bits, each followed by the same
12-bit fill preamble and 16-bit CRC.
That settles it. ff18 is not an x2-proprietary MP-equivalent frame with
its own framing. It is a 17-bit body in the same fill/body/CRC-16 message
family as ff1a, emitted by the same handler with a different ar0. The
77-bit ff1a body is the one this document already traced as carrying V.90
INFO1a[37:39] at offset 0025 (37) - and offsets 76, 63, 37, 24, 19, 15 and
9 all fall inside 77, which independently confirms the offset convention.
ff18 is the local INFO0 of that same handshake; x2 rides inside its
reserved bits rather than replacing the frame.
What the 17 bits contain
- Offsets 16..1 - the
fff1/fff2selector word, inserted whole at8e53withsplk @7f, #0010. That single write covers all but the last bit of the body. - Offset 0 (
ff18bit 15) - a one-bit flag, cleared at8e69(apl *, #7fff) and set at8e8b,9120and9141(opl *, #8000), always immediately before the8766sequencer call. - Offset 10 - the bit the code generator tests at
9049. That test isbit 5, *onff18, and this document's earlier sections read it correctly asff18bit 5 (their "bit 10" is the raw encoded bit code, which the disassembler already converts when it printsbit 5). Applying the offset convention above, word bit 5 is body offset 10. An earlier revision of this section stated the inverse - "bit 10 of the word is body offset 5" - which was wrong in both directions.
The receive side matches. At 9519-9528 the firmware reassembles both
INFO0 bodies and intersects them:
9519 lar ar3, #ff00
951b lacc16 *+
951c or *- ; remote INFO0 pair
951d bit 0, @1f
951e bsar 2
951f xc 1, ntc
9520 bsar 13 ; alignment depends on @1f bit 0
9521 sacl @7d
9522 lar ar3, #ff18
9524 lacc16 *+
9525 or *- ; local INFO0 pair
9526 bsar 15
9527 sacl @7e
9528 and @7d ; local AND remote
9529 sacl @7f
A bitwise AND of the local and remote capability words is exactly INFO0 capability negotiation, and it is further evidence that both ends are speaking one shared format rather than an x2-only exchange.
What this still does not give
The names of the individual 17 bits. The image fixes the frame (17-bit
body, 12-bit fill, CRC-16-CCITT preset ffff, poly 8408), the transmission
order, the intersection rule, and three individual bit positions (0, 5, and
the 16..1 span). Assigning standard field names to the rest needs the V.34
INFO0 field table or an x2 specification; it no longer needs another pass over
this firmware.
The fill pattern and the trailing bits
Both are framing, not payload. The decisive structural fact is that the fill
handler (99cc), the CRC-output handler (99d1) and the constant handler
(99c2) all branch straight to the common tail at 99e9, bypassing the CRC
update at 99e1-99e8. Only the 99d6/99da body handler runs the CRC.
So the CRC-16 covers the 17-bit ff18 body (or the 77/38/7-bit ff1a body)
and nothing else.
Every bit is differentially encoded
The common tail is a DBPSK mapper:
99e9 lacl @5a
99ea xor @7d ; running XOR - the differential encoder
99eb sacl @5a
99ec bit 0, @5a
99ed lacc #21fc
99ef xc 1, ntc
99f0 neg ; bit clear -> -21fc
99f1 lar ar1, #01fa
99f3 sacl * ; symbol out
A data 1 inverts the transmitted phase, a data 0 holds it, and the symbol
written to 01fa is +0x21fc or -0x21fc. @5a is reset to 0001 by the
handler at 99be, which then branches to 99ec past the XOR - so that
handler emits a reference symbol without consuming a data bit.
(Only bit 0 of @5a is ever read, but the XOR at 99ea uses the whole word,
so @5a's upper bits accumulate junk from the handlers that put a full word
in @7d. That is harmless, not a bug.)
The 12-bit fill is 04ef, shifted out LSB first
99c6 splk @50, #04ef
99c8 splk @59, #ffff ; CRC preset
99ca splk @48, #99cc ; subsequent bits re-enter here
99cc lacc @50, 15 ; ACC = @50 << 15
99cd bd 99e9, *
99cf sach @50 ; @50 >>= 1
99d0 sach @7d, 1 ; @7d = the pre-shift @50
sach @50 with no shift stores ACC >> 16, which is @50 >> 1: a plain
right-shifting register with no feedback, so this is a fixed pattern, not a
scrambler. sach @7d, 1 recovers the pre-shift word, and the tail reads only
its bit 0. The bit consumed each period is therefore the LSB.
04ef = 0000 0100 1110 1111, so the twelve data bits in transmission order
are:
1 1 1 1 0 1 1 1 0 0 1 0
The same 99c6 step heads every message script, so this is a shared frame
delimiter. The CRC preset ffff is loaded here rather than at the body step,
which is why the fill must precede the body and cannot be reordered.
The CRC is also sent LSB first
99d1 is the identical shift-out applied to @59, so the 16 CRC bits follow
the same LSB-first order as the fill.
The 4 trailing bits are four 1s
99c2 bd 99e9, *
99c4 splk @7d, #0001
The handler supplies a constant data 1, so @5a toggles every period and
the four trailing bits are four consecutive phase reversals - an
alternating symbol pattern closing the frame. The same handler supplies the
two leading 1s that head the 998d and 99a3 scripts.
Full frame layout
| step | bits | contents |
|---|---|---|
lead-in (99c2, some scripts only) |
2 | 1 1 |
fill (99c6/99cc) |
12 | 04ef LSB first; also presets the CRC |
body (99d6/99da) |
17 / 77 / 38 / 7 | ff18 or ff1a, offset high-to-low |
CRC (99d1) |
16 | CRC-16-CCITT, preset ffff, poly 8408, LSB first |
tail (99c2) |
4 | 1 1 1 1 |
ff18/INFO0 is therefore a 49-bit frame (12+17+16+4); the ff1a frames
are 111 (998d, with its 2-bit lead-in), 70 (9999) and 41 (99a3, likewise
with the lead-in).
How a script terminates
A step with count 0 does not mean "do nothing". 996b loads @48 from
the table before it checks the count, and its callers (9929, 99bc) do
lacl @48 / bacc regardless of how it returned:
996f lacl @4a
9970 retc eq ; count 0 -> return, but @48 is already loaded
So a count-0 entry is the script's terminal action. For the ff18 script
that is 99af, which either falls through to 99ec or - at 99b8 - reloads
@4b with 9983 and sends the message again. 99f4 is a bare ret, so it
serves as the do-nothing terminator, and a 99f4 step with a nonzero count
(9977, 997b, 997f all use 42) is an idle interval that holds the last
symbol for that many periods.
A transcription note on bit
The C5x BIT instruction encodes a bit code equal to 15 - bit number, and
tools/c5x_disasm.py converts it when printing (bit {15 - (base & 15)}).
So the operand this document quotes from disassembly listings is the true
bit number: bit 15, * at d45d and 903d tests fff4 bit 15, matching
its splk *, #8000 writer, and bit 5, * at 9049 tests ff18 bit 5. The
"bit code" parentheticals in the earlier sections name the raw encoded field,
not the printed operand; their stated conclusions are the correct bit numbers.
Confirmed independently against @62, whose opl/apl masks span exactly
bits 0-7 and whose bit tests span exactly 0-7.
Appendix: bit-numbering sweep
Prompted by an error introduced in the framing section above, every
bit-numbering claim in this document was re-checked against the 4.03 capture.
The conclusion is that the method was already right: the disassembler
converts the encoded bit code when it prints (bit {15 - (base & 15)} in
tools/c5x_disasm.py), so a printed operand is the true bit number, and this
document's stated bit numbers are true bit numbers. The (bit N, a bit code)
parentheticals name the encoded field, which is 15 - bit. That reads as a
contradiction but is not one.
Independently anchored three ways, each pairing a bit test against a literal
mask on the same cell:
| cell | bit tests present |
opl/apl masks present |
agrees with |
|---|---|---|---|
@62 |
0..7 only | 0001..0080 only, no high bits |
printed = bit number |
039f (= @1f, DP 7) |
includes bit 14 at 8da1 |
opl #4040 sets bits 6 and 14 |
printed = bit number |
fff4 |
bit 15 at 903d, d45d |
splk #8000 (tag 70) |
printed = bit number |
Under the alternative reading those masks would have to touch bits 8-15, 1 and 0 respectively, and none of them does.
Claims checked and confirmed
| claim | 4.03 site | verdict |
|---|---|---|
@70 bit 2 gates fff7 0004 |
d56d bit 2, @70 |
correct |
fedd bit 7 in the fff7 0008 guard |
d61c bit 7, * |
correct |
@1f bit 14 set and fff4 bit 1 clear |
8da1 bit 14, @1f; 8da6 bit 1, * |
correct |
ff18 bit 5 in the fff7 0200 guard |
9049 bit 5, * |
correct |
039f bit 6 on the x2-setup route |
9041 bit 6, * (ar1 = 039f) |
correct |
ff00 bit 8 as the fff4 bit 0 fallback |
906b bit 8, * |
correct |
INFO0 bit 13 sets fff4 bit 0 |
91f6 bit 13, * -> opl fff4, #0001 |
correct |
INFO0 bit 12 clear sets fff4 bit 8 |
91fe bit 12, * -> opl fff4, #0100 |
correct |
ff1a bit 76 / ff08 bit 37 / received bit 12 |
9697 #4c, 969d #25, 96a3 #0c |
correct - these are bit offsets, not codes |
Claims corrected
ff18bit 10 -> bit 5. Two sentences used the encoded code10as if it were the bit number, contradicting the same document's ownff18bit 5 elsewhere. The test is9049 bit 5, *.- The
d45dlisting. It was transcribed asbit 0, *; the disassembler printsbit 15, *. The conclusion drawn from it was right. 9070,d47f,d76f. Notfff4bit tests in this image. The real sites are903dandd45d.909e/9069->906bfor theff00bit 8 read.9223->91e8for the INFO0 parser.- The framing section's own
ff18claim, which had the offset mapping inverted; word bit 5 is body offset 10.
Address drift is the real hazard, not bit numbering
Several corrected items are addresses, not bit numbers: sections written against an earlier build cite sites that decode to something unrelated in the 4.03 capture. The header's warning that the update ROMs relocate their code applies to this document's own body text, so an address here should be re-resolved before it is trusted, in the way the confirmed table above does.
Against the ITU Recommendations
Checked against T-REC-V.34-199610 and T-REC-V.90-199809. Everything the
framing section derived from the image alone is confirmed, and the numbering
question it left open is now closed - in the opposite direction to what the
top of this document assumed.
Wire maps at a glance
These maps use the Recommendations' numbering: bit 0 is transmitted first,
and a range such as 21:23 is written least-significant bit first. They show
the complete framed sequences, not the firmware's reversed buffer offsets.
V.34 INFO0 / V.90 INFO0a (49 bits)
bit 0 4 12 29 45 49
| fill | frame sync | capability and control | CRC-16 |fill|
| 1111 | 01110010 | 17 bits (12 through 28) | |1111|
+-------+--------------+----------------------------+--------+----+
time -->
x2 changes the 16-bit capability word at bits 12 through 27. Bit 28 remains
the standard acknowledgement bit; framing, CRC and fill are unchanged.
V.90 INFO1a selecting V.90 (70 bits)
bit 0 4 12 18 25 32 34 37 40 50 66 70
| fill | sync |rsvd | MD | UINFO |rsvd|rate | 6 |offset | CRC-16 |fill|
| 1111 |01110010 |000000 |7 bits |7 bits |00 |3bit |110* |10 bits | |1111|
+-------+----------+-------+-------+-------+----+-----+-----+---------+--------+----+
time -->
* `6` is an integer carried LSB first, so its transmitted bits are `0,1,1`.
Values 0 through 5 in the same field select V.34 instead.
The first map is where x2 announces itself. The second is the standardized replacement: V.90 names the protocol directly after probing instead of making the peer recognize a pattern of V.34 capabilities before probing.
V.34 INFO0 capability bits and their x2 use
Table 14/V.34 defines bits 12:27 as ordinary V.34 capabilities. The Courier
constructs an x2-specific version of that word and sends it with the same
INFO0 framing. The table below therefore separates the standard meaning from
what the bit does during x2 selection.
| ITU bit | V.34 Table 14 meaning | x2 client behavior in this firmware | x2 significance |
|---|---|---|---|
| 12 | 2743 symbol/s supported | copied from S54 | ordinary V.34 fallback capability |
| 13 | 2800 symbol/s supported | copied from S54 | ordinary V.34 fallback capability |
| 14 | 3429 symbol/s supported | copied from S54 | ordinary V.34 fallback capability |
| 15 | 3000 symbol/s low carrier supported | copied from S54 | upstream V.34 carrier capability |
| 16 | 3000 symbol/s high carrier supported | copied from S54 | upstream V.34 carrier capability |
| 17 | 3200 symbol/s low carrier supported | copied from S54 | upstream V.34 carrier capability |
| 18 | 3200 symbol/s high carrier supported | copied from S54 | required local-side condition in the x2 server-recognition test |
| 19 | 0 disallows 3429 symbol/s transmission | copied from S54 | upstream V.34 constraint |
| 20 | can reduce transmit power below nominal | copied from S56 | ordinary transmitter capability |
| 21 | symbol-rate asymmetry bit 0 | replaced by S58 0x04 |
x2 mode parameter; contributes 0 or 1 to the announced asymmetry |
| 22 | symbol-rate asymmetry bit 1 | normally forced to 1; cleared by S58 0x10 |
x2 mode parameter; contributes 0 or 2 to the announced asymmetry |
| 23 | symbol-rate asymmetry bit 2 | forced to 0 by the x2 client | distinguishes the client pattern; an x2 server is recognized when remote bit 23 or 24 is set |
| 24 | CME modem flag | forced to 0 by the x2 client | alternative server marker in the peer-recognition test |
| 25 | supports up to 1664-point constellations | copied from the V.34-plus option in S56 | ordinary V.34 constellation capability |
| 26:27 | transmit clock source | forced to 00 |
internal clock in V.34; these positions later become reserved-zero in V.90 INFO0a |
The two S58 controls produce the following on-wire asymmetry value. The bit
triples are shown in transmitted order (bit 21, bit 22, bit 23), so 010
represents the integer 2 rather than binary text written most-significant bit
first.
S58 0x04 |
S58 0x10 |
bits 21,22,23 on wire |
integer | x2 effect |
|---|---|---|---|---|
| 0 | 0 | 010 |
2 | default x2 client asymmetry |
| 1 | 0 | 110 |
3 | alternate x2 client asymmetry |
| 0 | 1 | 000 |
0 | suppress the two-step allowance |
| 1 | 1 | 100 |
1 | retain only the one-step allowance |
No single one of these standard V.34 bits means "x2". In the recovered Courier code the client recognizes the far end as an x2 server only when its own bit 18 is set and the remote INFO0 has at least one of bits 23 or 24 set. That conjunction is the proprietary signature.
V.90 fields that replace the x2 convention
| Sequence and bits | V.90 definition | Difference from x2 |
|---|---|---|
INFO0a 12:25 |
analogue-side V.34 capabilities | largely the same information as V.34 INFO0; x2 had already used this message for its signature |
INFO0a 26:27 |
reserved, transmit as zero | matches the zero value forced by the x2 client, but V.90 removes the V.34 clock-source interpretation |
INFO0d 12:28 |
digital-side V.34 capabilities and acknowledgement | gives the digital modem a separately named, longer INFO0 message; x2 inferred the server role from the shared INFO0 pattern |
INFO0d 29:41 |
digital transmit power, measurement point, PCM law and 3429-upstream capability | explicit digital-side parameters with no recovered x2 INFO0 equivalent |
INFO1a 37:39 |
integer 6 requests V.90; 0 through 5 request V.34 | the direct protocol selector x2 lacks |
INFO1a 25:31 |
UINFO Ucode for the digital modem's two-point train | standardized PCM training parameter; the firmware writes it as 127 - @3e |
INFO1a 34:36 |
analogue-to-digital upstream symbol rate | standardizes the V.34 upstream choice used alongside the PCM downstream |
The result is a difference in signalling, not merely a different CONNECT label: x2 changes a complete INFO0 capability word before probing, whereas V.90 preserves the capability exchange and makes the final protocol choice in one three-bit INFO1a field after probing.
What V.34 10.1.2.3 says
- Modulation - "All INFO sequences are transmitted using binary DPSK
modulation at 600 bit/s. The transmit point is rotated 180 degrees from the
previous point if the transmit bit is a 1, and 0 degrees ... if the transmit
bit is a 0." That is the tail at
99e9exactly:@5a ^= bit, symbol+/-21fc. - "Each INFO sequence is preceded by a point at an arbitrary carrier phase.
When multiple INFO sequences are transmitted as a group, only the first
sequence is preceded by a point" - that is the handler at
99be, which resets@5aand branches past the XOR so it emits a reference symbol without consuming a data bit. It explains why only some scripts begin with it. - CRC - "x16 + x12 + x5 + 1 ... load the shift register with all ones ...
output the contents starting with bit 0 ... Bit 0 of the CRC is the LSB."
@59 = ffff, poly8408(the reflection of1021), shifted out LSB first. - "The CRC is formed by passing all of the information bits in a sequence,
except the frame sync bits, the start bits, and the fill bits." That is
precisely why
99cc,99d1and99c2branch straight to99e9and skip the CRC update.
The fill step is fill bits plus frame sync
Table 14/V.34 gives INFO0 as bits 0:3 "Fill bits: 1111", 4:11 "Frame sync:
01110010, where the left-most bit is first in time". The firmware's 12-bit
step shifts 04ef out LSB first:
04ef = 0000 0100 1110 1111 -> 1 1 1 1 | 0 1 1 1 0 0 1 0
fill frame sync
So 04ef is not an opaque constant: it is V.34's fill-plus-frame-sync packed
into one word for an LSB-first shift register. The 4 trailing bits are the
closing "Fill bits: 1111" at 45:48. Every INFO sequence in both
Recommendations uses the same 1111 / 01110010 opening, which is why one
99c6 step heads every script.
Offsets run opposite to ITU bit numbering
V.34 numbers a sequence from bit 0 "transmitted first in time", and the
serializer emits body offsets N-1 down to 0. Therefore, for a body of
N bits occupying sequence bits 12 : 12+N-1:
ITU bit = 12 + (N - 1 - offset)
This is not an inference from one site. The loop at 9172-9180 runs five
iterations, stepping @7f down by 9 from 3f, and writes
[ff20+i] | ([ff28+i] << 5) each time:
| offset | ITU bit (N = 77) | Table 9/V.90 field |
|---|---|---|
| 63 | 25 | probing results, 2400 |
| 54 | 34 | probing results, 2743 |
| 45 | 43 | probing results, 2800 |
| 36 | 52 | probing results, 3000 |
| 27 | 61 | probing results, 3200 |
Five 9-bit fields landing exactly on their ITU boundaries, walked in
increasing symbol-rate order. The 1 + 4 + 4 sub-field layout of each
(25 carrier, 26:29 pre-emphasis, 30:33 rate) is why the value is
ff20[i] in bits 0:4 with ff28[i] shifted up by 5. Under the opposite
reading every field would be misaligned by 2 and the rates would be walked
backwards.
The sequences the four scripts build
| script | body | frame | sequence |
|---|---|---|---|
9983 (ff18) |
17 | 49 | INFO0 (V.34 Table 14) = INFO0a (V.90 Table 8) |
998d (ff1a) |
77 | 109 | INFO1c (V.34 Table 15) = INFO1d (V.90 Table 9) |
9999 (ff1a) |
38 | 70 | INFO1a (V.90 Table 10 / Table 11) |
99a3 (ff1a) |
7 | 39 | not matched to a named sequence |
ff18 decoded against Table 14
| firmware | ITU bit | Table 14 meaning |
|---|---|---|
8e53, offset 16, a 16-bit word |
12:27 | the whole capability field - symbol rates, carrier abilities, asymmetry, CME, 1664-point, clock source |
ff18 word bit 15 = offset 0 |
28 | "acknowledge correct reception of an INFO0 frame during error recovery" |
ff18 word bit 5 = offset 10 |
18 | "ability to transmit at the high carrier frequency with a symbol rate of 3200" |
The second and third are independent confirmations. Bit 28 is set by
opl *, #8000 at 8e8b, 9120 and 9141 - each immediately before the
8766 sequencer call, on the error-recovery paths, which is what an
error-recovery acknowledgement is for. And ITU bit 18 is the local 3200
capability, which is what this document's own result-string table calls
"3200 baud disabled on local modem". So the fff1/fff2 word is the
INFO0 capability field, and the two loose bits are named.
The correction to this document's opening claim
9189/918b writes at offset 0x25 = 37. In the 38-bit INFO1a body that is
ITU bits 12:14, not 37:39. Table 11/V.34 makes 12:14 the "Minimum power
reduction ... An integer between 0 and 7", and 9267 ends by clamping its
result to exactly 0..7 (lacl #07 / crlt, lacl #00 / crgt). So 9185 is
the power-reduction writer.
The V.90 selector is read, at 8fbc, and the read is unmistakable:
8fba call 9185, *
8fbc lacl #0c ; offset 12 -> ITU bits 37:39
8fbd calld 877a, *
8fbf lar ar0, #ff1a
8fc1 and #00000007 ; three bits
8fc3 sub #06 ; ... against 6
8fc5 xc 2, neq
8fc6 apl @1f, #bf7f ; not 6 -> clear @1f bit 7
8fc8 splk @4b, #9999 ; arm the 38-bit INFO1a script
Table 10/V.90: "Bits 37:39 represent the integer 6, indicating that V.90 operation is desired." Mask to three bits, compare with 6, and drop a flag if it differs.
Two further writers fall into place the same way, both into the 38-bit body:
| firmware | offset | ITU bit | Table 10/V.90 |
|---|---|---|---|
925a/925c, value 127 - @3e |
24 | 25:31 | UINFO, a 7-bit Ucode |
9263/9265, value @5b + 30 |
15 | 34:36 | symbol rate, an integer 3..5 |
A 7-bit value written at the LSB of a 7-bit field, and a 3-bit value at the LSB of a 3-bit field.
Remaining V.90 producer question
Who writes ITU bits 37:39. No 8769 site in this image uses offset
0x0c, so the field 8fbc reads back is not written by the bit-field writer
anywhere in the downloaded program. Either an overlay writes it - ebea and
ec0f also call 877a - or it is deposited by a path this sweep has not
covered. That is the remaining question for the V.90 request, and it is a
narrower one than the original "which site selects V.90".
Server side
The Total Control Quad NAC images build the digital-modem half of the same
protocol, on the same serializer, selecting a 17- or 30-bit INFO0 body at run
time. See "What the NAC changes for x2 and V.90" in
quad-x2-modem-nac.md.
What builds the x2 bits, and how x2 and V.90 differ in kind
The x2 capability word is host-supplied, and there are two of them
The DSP does not compute the INFO0 capability field. It copies a 16-bit word the supervisor hands it, and it keeps two such words:
8d14 smmr @7a, #fff2 ; tag 51 - the plain capability word
...
8d29 smmr @7a, #fff1 ; tag 70 - the x2 capability word
8d2b lar ar1, #fff1
8d2d apl *, #3fff ; force the top two bits to 0
8d2f opl *, #0000 ; (no-op)
8d31 lar ar1, #fff4
8d33 splk *, #8000 ; the x2 setup flag
8d35 lar ar1, #fff7
8d37 opl *, #0001 ; "x2 enabled on local modem"
Tag 51 writes fff2 raw; tag 70 writes fff1 and masks it. The
selection between them is one bit:
8e4a bit 6, @1f
8e4b bldd @7d, #fff1 ; bit 6 set -> x2 word
8e4d xc 2, ntc
8e4e bldd @7d, #fff2 ; bit 6 clear -> plain word
8e50 lacl @7d
8e51 lar ar0, #ff18
8e53 bd 8769, *
8e55 splk @7f, #0010 ; offset 16 -> ITU bits 12:27
So the x2 bits are built by the supervisor and merely placed by the DSP,
into the standard V.34 INFO0 capability field. The apl #3fff matters: value
bit j lands on ITU bit 12 + j, so clearing value bits 14 and 15 forces ITU
bits 26:27 to zero - Table 14's "Transmit clock source" field, 0 = internal. The x2 word is a legal INFO0 capability word with the clock-source
field pinned.
There is also a fallback: at 8e57-8e5a the firmware clears @1f bit 6 and
re-enters 8e4a, rebuilding the same field from fff2. That is how a call
drops to the non-x2 capability set without a separate code path.
x2 is detected by inspecting standard bits, not by a flag
The peer-side test builds the fff7 "remote is an x2 server" bit from two
ordinary capability bits:
9047 lar ar1, #ff18
9049 bit 5, * ; local ITU bit 18
904a bcnd 90bd, ntc
904c and #00000c00 ; remote ITU bits 23 and 24
904e bcnd 90bd, eq
9050 lar ar1, #fff7
9052 opl *, #0200
Local ITU 18 is "ability to transmit at the high carrier frequency with a
symbol rate of 3200". The remote pair is ITU 23 - the top bit of the
21:23 symbol-rate asymmetry field - and ITU 24, "Set to 1 in an INFO0
sequence transmitted from a CME modem".
The remote mapping is the same as the local one because ff00:ff01 is packed
like ff18:ff19; the shift at 951d only compensates for the body length:
951d bit 0, @1f
951e bsar 2 ; always
951f xc 1, ntc
9520 bsar 13 ; total 15 when @1f bit 0 is clear
Shift 15 is the 17-bit INFO0a form, matching ff18's own bsar 15 at 9526;
shift 2 leaves 30 bits, which is the INFO0d body. So on the Courier @1f
bit 0 means "the remote INFO0 is a 30-bit digital-modem INFO0d" - the same
flag whose NAC counterpart selects sending one.
The difference in kind
| x2 | V.90 | |
|---|---|---|
| carried in | INFO0 | INFO1a |
| when | before line probing | after line probing |
| mechanism | swap the whole capability word (fff1 for fff2) |
one value in an existing field |
| field | ITU 12:27, all standard definitions |
ITU 37:39 |
| how the peer is recognised | a combination of standard capability bits - local 18, remote 23 and 24 | 37:39 == 6, read at 8fbc |
| standard status | none - legal V.34 values used as a private code | Table 10/V.90 |
V.34 already defined INFO1a 37:39 as "an integer between 0 and 5, indicating
that V.34 operation is desired" (Table 11/V.90, quoting V.34). V.90 added
exactly one value to it: 6. That is the whole on-wire announcement, which is
why the firmware's V.90 check is a three-bit mask and a compare with 6, and why
the V.34 path at 96a3 clamps the same field to 5.
x2 had no such field available, because it shipped before there was a
standard place to put it. So it announces itself in the earlier message, by
sending a capability word whose pattern the other end recognises - and pays
for it twice over: the decision has to be made before probing, and the
recognition test is a conjunction of bits that mean something else, which is
why the firmware needs a ten-bit fff7 condition bitmap and a failure enum
("Remote modem is not x2", "not a Server", "Multiple CODECs in channel") to
explain what went wrong. V.90 needs none of that; a mismatch is just
37:39 != 6.
Resolved later in this document
The content of fff1 versus fff2 is set by the supervisor, not the DSP.
The later sections "The actual x2 bits in INFO0" and "The whole capability
word, field by field" complete that 80186-side trace: x2 overrides INFO0 bits
21:24 and 26:27, while the remaining fields come from S54, S56, and the
channel capability byte.
Is there an x2 INFO1?
No. x2's capability exchange is the INFO0 word swap described above - it has no INFO1 of its own. But the Courier does send a fourth message that exists in neither Recommendation, and it is built inside the x2 region.
The complete standard set, for contrast
Enumerating every 1111-delimited sequence in both Recommendations by its
closing fill position:
| body | frame | sequence |
|---|---|---|
| 17 | 49 | INFO0 (Table 14/V.34) = INFO0a (Table 8/V.90) |
| 19 | 51 | INFOh (Table 22/V.34, half-duplex only) |
| 30 | 62 | INFO0d (Table 7/V.90) |
| 38 | 70 | INFO1a (Tables 10 and 11/V.90) |
| 77 | 109 | INFO1c (Table 15/V.34) = INFO1d (Table 9/V.90) |
The Courier's fourth script, 99a3, is a 7-bit body in a 39-bit frame.
It matches nothing in that table, while using the standard framing exactly -
the same 12-bit fill and sync, the same CRC-16, the same closing 1111.
It is built only under the x2 gates
The builder is at 90de, and it is not reached from the tag-6b status path
that precedes it (90da bd 83b1 branches away with its delay slots). Its two
call sites are 908a and 90a6, both inside the routine that begins:
903b lar ar1, #fff4
903d bit 15, * ; x2 has been set up
903e retc ntc
903f lar ar1, #039f
9041 bit 6, * ; the x2 capability word is selected
9042 retc ntc
Both gates must hold, so nothing here runs on a non-x2 call. What the two sites send is a small code, and the body is 7 bits wide because the code is:
9085 lar ar1, #6f
9086 bit 1, *
9087 lacl #4d ; 0x4d
9088 xc 1, tc
9089 lacl #69 ; or 0x69
908a call 90de, *
909b apl @1f, #bf3f ; clears bit 6 - drop the x2 capability word
...
90a1 lacl * ; [ff20 + @5b] & 1
90a4 add @5b, 1
90a5 add @5b, 4 ; -> 0x48 or 0x49 with @5b = 4
90a6 call 90de, *
90de writes the value into ff1a at offset 6 - the top of a 7-bit body, so
the code occupies ITU bits 12:18 - and arms the script:
90de lar ar0, #ff1a
90e0 calld 8769, *
90e2 splk @7f, #0006
90e4 bd 991d, *
90e6 splk @4b, #99a3
Note that the second site clears @1f bit 6 immediately before sending, so at
least one of these codes accompanies dropping the x2 capability word.
The Quad NACs do not have it
Their script tables stop after the 38-bit script. QF 6.0.3 ends at 9ff5
(a043 0000) and QR 6.1.3 at 9e25; the Courier's table continues to 99ad
with the six extra entries that make up the 7-bit script. So this message is
built by the analogue Courier and not by the server images.
That asymmetry looked at first like a client-to-server message, since receiving needs no send script. The receive side does not support that reading - see the next section.
What this does and does not establish
Established: a fourth transmitted frame exists; it uses V.34's framing with a body length no standard sequence has; it is gated on both x2 conditions; it carries a 7-bit code; and the server images do not build it.
Not established: that it is "the x2 INFO1". It is far too small to be a
capability or probing-results message - 7 bits against INFO1c's 77 - so it
reads as a short signalling or acknowledgement frame in the x2 phase rather
than an INFO1 counterpart. Naming its codes (4d, 69, 48/49) and
finding the matching receive path is the next step, and the receive side is
the better target because it is present in both the Courier and the NACs.
The receive side, and what it says about the 7-bit frame
The INFO receiver
98f9 validates a received INFO frame out of the staging buffer at 0252:
98f9 lar ar0, #0252
98fb calld 877a, *
98fd lacl @22
98fe add #17 ; sync at offset @22 + 23, 8 bits
9900 and #000000ff
9901 xor #0000004e ; V.34 frame sync
9903 retc neq
9904 splk @1f, #ffff ; CRC preset
9906 lacl @22
9907 sacl @7d
9908 calld 877a, * ; loop: offsets @22+15 down to 16
990a lacl @7d
990b add #0f
990c and @7b
990d xor @1f
...
9911 xor #00008408
9917 bcnd 9908, neq
01110010 "left-most bit first in time", shifted in LSB-first, is 4e - so
the sync test is V.34's, verbatim. And the offsets confirm the frame model
from the receive direction:
| offsets | contents |
|---|---|
@22+23 : @22+16 |
the 8 frame-sync bits |
@22+15 : 16 |
the body, @22 bits |
15 : 0 |
the CRC |
8 + body + 16, with the leading and trailing 1111 fills not stored - the
leading one is consumed by the sync hunt. Exactly the layout the transmit
scripts build.
It is armed for four lengths, and 7 is not one of them
The receiver is parameterised: @24 selects the buffer, @22 the body
length. 8e60 sets both:
8e6c splk @24, #ff00
8e6e lar ar1, #039f
8e70 bit 0, *
8e71 lacl #11 ; 17 - INFO0a
8e72 xc 1, tc
8e73 lacl #1e ; 30 - INFO0d
8e74 b 8e79, *
8e76 ldp #006
8e77 splk @24, #ff08 ; separate entry, length already in ACC
8e79 sacl @22
Every call site:
| site | buffer | length | sequence |
|---|---|---|---|
8e60 |
ff00 |
17 or 30 on 039f bit 0 |
INFO0a / INFO0d |
8ef9 |
ff08 |
26 = 38 |
INFO1a |
8fac |
ff08 |
4d = 77 |
INFO1c / INFO1d |
8fef |
ff08 |
4d = 77 |
INFO1c / INFO1d |
Those are the four standard bodies and nothing else. The Courier never arms
its INFO receiver for a 7-bit body. The two overlay 877a sites (ebea,
ec0f) read at offsets e4 and e8 - 228 and 232 - so they are working on a
different, much larger buffer, not this frame.
So the 7-bit frame is unmatched in all three images
Putting the two directions together:
- the analogue Courier sends a 7-bit body frame and never arms a receiver for one;
- neither Quad NAC sends one.
It looked at this point as though nothing in these images both produced and
consumed it. That was wrong, and the reason is in the next section: it is not
received as a frame at all. What remains established is
unchanged - the frame exists, it is x2-gated at 903b, it carries a 7-bit
code, and its length matches no sequence in V.34 or V.90. What it is for
is not answered by these images.
The plausible outs, in the order worth testing: a receive path outside the INFO receiver that this sweep has not found; a peer image not in this repository, since the NACs here are one server generation and the x2 server population was not uniform; or a frame whose presence and timing matter rather than its content, which would need no CRC-checked receiver at all.
Two receive mechanisms, not one
The framed-INFO receiver is only half of the receive path. Every symbol
period the tick at 98b9 rotates the newly demodulated bit into a rolling
shift register at 0252 - four word pairs, 128 bits - and then tries two
different things with it:
98c1 lar ar1, #0252
98c4 sfl ; new bit into carry
98c6 lacc16 *+ / or *-
98c8 ror ; rotate the register one place
98c9 sach *+ / sacl *+, ar2
98cb banz 98c6, *-, ar1
...
98d9 call 98f9, * ; (1) framed INFO: sync 4e + CRC-16
98db bcnd 98ed, neq ; failed ->
98dd lar ar1, @24 ; passed: copy the body out
...
98eb opl @62, #0002 ; and flag a good frame
98ed lar ar1, #0252 ; (2) CRC FAILED - bare pattern match:
98ef lacl *
98f0 and #0000fe00 ; the newest 7 bits
98f2 xor #00007600 ; against a fixed constant
98f5 xc 2, eq
98f6 opl @62, #0001 ; flag on match
So the second mechanism has no sync test, no CRC, and no length parameter. It asks only whether the last seven bits on the line are a particular pattern, and it runs precisely when the framed parse fails.
@62 bit 0 is then a state-machine event, consumed at 8e8f, 8e9c, 8f4d
and 8f6d - each a bcnd ..., tc that diverts the handshake - alongside the
good-frame flags in bits 1 and 2 that the framed path sets. 8e7f
(apl @62, #fff8) clears all three when the receiver is re-armed.
This is what the 7-bit frame is for
The detector's width is 7 bits - the width of the mystery script's body - and it is present in all four images, with the identical constant:
| image | detector | 7-bit transmit script |
|---|---|---|
| Courier 4.03 | 98f0 |
yes (99a3) |
IDSDL302 |
present | - |
| QF 6.0.3 | 9f44 |
no |
| QR 6.1.3 | present | no |
The NAC copy sits in the identical fall-through arrangement, only relocated
(its shift register is at 0270):
9f2d call 9f4d, *
9f2f bcnd 9f41, neq
...
9f41 lar ar1, #0270
9f44 and #0000fe00
9f46 xor #00007600
That resolves the asymmetry. A 7-bit body can never satisfy the framed
receiver, because nothing arms @22 with 7 - so the frame always falls
through to the pattern test, on both ends. The Courier announces by
transmitting it; every image, server included, recognises it by presence in
the raw bit stream rather than by parsing it. A peer without the detector
simply sees a frame that fails CRC and ignores it, which is exactly the
property a proprietary signal needs.
It also explains why the transmitted codes are so small. They are not a message; they are a marker.
The part that did not line up at first
The detector constant is 7600 under mask fe00, so the pattern is 3b in
the register's bits 9:15. The transmitted codes are 4d, 69 and
48/49. Those do not match, and three things could account for it: the
differential decode between line and register, the bit order the ror loop
produces, or the detector watching a different part of the burst than the body
- the fill and sync run is also seven-bit-matchable. Pinning that down needs the demodulator's bit convention, which this sweep has not established.
So: the mechanism is settled and the roles are settled. The exact correspondence between the sent code and the matched pattern is not.
The 7 bits are modulation parameters
The builder gives the layout directly:
909d lar ar0, @5b
909e lar ar1, #ff20
90a0 mar *0+
90a1 lacl * ; [ff20 + @5b]
90a2 and #00000001 ; -> bit 0
90a4 add @5b, 1 ; -> bits 1:3
90a5 add @5b, 4 ; -> bits 4:6
90a6 call 90de, *
@5b is the symbol-rate index - the same cell that feeds INFO1a bits 34:36,
"Symbol rate ... an integer between 3 and 5" - and ff20 is the per-rate array
the INFO1c probing loop reads, whose bit 0 is the high-carrier flag. So the
body is:
| bits | meaning |
|---|---|
| 0 | carrier: high or low |
| 1:3 | a 3-bit symbol-rate index |
| 4:6 | a second 3-bit symbol-rate index |
Two rates and a carrier bit: a modulation-parameter field, one index per direction. Decoding the four transmitted codes:
| code | site | carrier | field 1 | field 2 |
|---|---|---|---|---|
4d |
908a, [006f] bit 1 clear |
1 | 6 | 4 |
69 |
908a, [006f] bit 1 set |
1 | 4 | 6 |
48 |
90a6, @5b = 4 |
0 | 4 | 4 |
49 |
90a6, @5b = 4 |
1 | 4 | 4 |
4d and 69 are the same pair swapped, selected by one bit, and both
carry the value 6 in one of the two rate fields. V.34 defines that field
as an integer 0..5, so 6 is out of range - and it is the identical trick V.90
later used in INFO1a 37:39, where "the integer 6" means the 8000 symbol/s
digital direction.
So x2 announces its asymmetry the same way V.90 does: an out-of-range value in
a 3-bit rate field. The difference is placement. x2 sends a pair, in its
own short frame, so it names both directions at once and says which one is the
PCM direction by which field holds the 6. V.90 sends one, in a field the
standard already had. The 90a6 codes, with 4 in both fields, are the
symmetric case.
The detector constant, resolved
The pattern detector compares against 3b, which in this layout is
carrier = 1, field 1 = 5, field 2 = 3 - a symmetric-format code naming rates
5 and 3 with no 6. It is not one of the four codes the Courier transmits,
which is what a detector for the peer's announcement should look like.
One near-miss is worth recording because it is tempting and wrong. 3b is
also exactly the differentially encoded line form of the transmitted 4d
(running XOR of 1,0,1,1,0,0,1 from zero gives 1,1,0,1,1,1,0 = 3b). That
would be a satisfying loop, but it requires the shift register to hold raw
line phase - and it does not: the framed receiver reads the same register
and compares its sync field against 4e, which is V.34's frame sync in the
data domain. The register is differentially decoded, so 3b is a code,
not a phase pattern, and the exact match is a one-in-128 coincidence.
Looking for an older, x2-only image
Superseded by the next section. There is one - in
firmware/legacy-usrobotics/, which the survey below did not cover. The survey's method is also unsafe for the updater EXEs, because they are packed.
The images searched below - the loose ROMs and XMFs - do not include one. Every image that contains the INFO serializer also contains V.90 machinery:
| image | serializer | V.90 17/30 receive switch | 7-bit mod-param builder | 7-bit detector |
|---|---|---|---|---|
courier-board.rom (4.03) |
yes | yes | yes | yes |
IDSDL302.ROM (3.0.13, 1998-06) |
yes | yes | yes | yes |
main211, main2205, 3453B, 2.3.x XMFs |
yes | yes | no | yes |
QF060003, QR060103, Ie030002 NACs |
yes | no (they switch on transmit) | no | yes |
SV25, SV_49, SDL0430, IDSDL302.XMD |
packed - not searchable raw |
Two things follow. First, the mod-param builder is Courier-ROM only, while the detector is universal - every image that speaks INFO at all can recognise the signal, but only the two Courier ROMs still emit it. That is the shape of a deprecated transmitter kept receive-compatible.
Second, the oldest image available, IDSDL302.ROM at DSP 3.0.13 and dated
June 1998 - before V.90 was published - is byte-identical in this area.
Its two sites are at 90bc and 90d6, with the same 4d/69 selection on
[006f] bit 1 and the same @5b-derived symmetric code; the only difference
is that 3.0.13 reads fff6 at 90d0 where 4.03 calls the tag-6b status
reporter. So going older, within this repository, does not simplify it.
An image that would: anything from the 1997 x2 releases, before V.90 support
was merged at all. The SV*/SDL* XMD files are the right vintage but are
packed, and no unpacker for that container exists here yet. Unpacking one is
the concrete next step, and it is a self-contained task.
The x2-only image: sdl6-x2.exe
firmware/legacy-usrobotics/ holds the analogue-Courier SDL updaters, and one
of them is pre-V.90.
Signature absence is not evidence here
The updater EXEs carry the firmware packed. Byte signatures still hit inside literal runs, which is why they appear at odd offsets and why the code around them loses alignment part-way:
sdl6-x2.exe @ 3dff6 lar ar1, #0270 ; the shift register
@ 3dffa lacl *
@ 3dffc and #fe00
@ 3e000 xor #.... ; 7600 appears at 3e006,
; with inserted bytes between
So a signature miss in one of these EXEs means nothing. The reliable discriminator is the literal strings, which the packer stores intact.
The strings settle it
| file | V.90 |
V90 |
x2 |
not x2 |
V.34 |
|---|---|---|---|---|---|
SDL_CS3.EXE (1995) |
0 | 0 | 1 | 0 | 22 |
sdl6-x2.exe |
0 | 0 | 41 | 1 | 24 |
SDL_49.EXE |
5 | 48 | 34 | 1 | 24 |
SDL0430.EXE |
5 | 48 | 34 | 1 | 24 |
ID_SDL20.EXE (4.03) |
9 | 51 | 39 | 1 | 24 |
IDSDL302.ROM |
5 | 57 | 39 | 1 | 2 |
sdl6-x2.exe has 41 occurrences of x2 and zero of V.90 or V90,
against otherwise comparable counts. That is an x2-only build. And
SDL_CS2/SDL_CS3/SDL_76AE from 1995 have neither, giving a pre-x2 V.34
baseline.
So there are three eras available:
| era | image | x2 | V.90 |
|---|---|---|---|
| 1995 | SDL_CS2, SDL_CS3, SDL_76AE |
no | no |
| x2 | sdl6-x2.exe |
yes | no |
| 1998+ | SDL_49, SDL0430, IDSDL302, ID20/25_40x |
yes | yes |
What it already tells us
The x2-only build contains both halves of the 7-bit mechanism: the
modulation-parameter builder (add @5b, 1 / add @5b, 4, at file offset
3cc78, with the same [ff20 + @5b] & 1 carrier bit) and the pattern
detector with the same constant 7600.
That is worth recording, because it dates the mechanism. The detector is not something added later for V.90-era interoperability - it shipped with x2 itself, before V.90 existed. The 7-bit modulation-parameter frame and its presence detector are x2's own, and the later firmware simply kept both.
Next step (done - see the following section)
Reading the x2-only DSP program end to end needs the SDL updater's records un-interleaved. The container is a DOS EXE with a byte-oriented packed payload; the literal runs are long enough to recognise routines but not to disassemble across. Unpacking one updater makes all of them readable, including the 1995 pre-x2 baseline, and that comparison - V.34 only, then x2, then x2 plus V.90 - is the cleanest way left to separate what x2 added from what V.90 added.
Three eras, read side by side
The updaters are not compressed - they are packetized
tools/unpack_sdl.py already handles this, and its docstring says how: the
firmware is stored as 21-byte records - 16 payload bytes, a checksum, a 10
byte, and a 24-bit address token. Five interleaved bytes per sixteen is
exactly the alignment loss seen earlier; there is no packer to defeat.
packet_runs() recovers a clean image, and the section above claiming
otherwise was wrong.
Depacketized, the three eras give:
| build | serializer | x2 mod-param builder | V.90 17/30 switch | detector |
|---|---|---|---|---|
SDL_CS3.EXE (1995) |
yes | no | no | yes |
sdl6-x2.exe (x2-only) |
yes | yes | no | yes |
SDL_49.EXE (x2 + V.90) |
yes | yes | yes | yes |
The 7-bit frame is x2's
Script tables, recovered from each:
| build | scripts (body bits) |
|---|---|
SDL_CS3 (1995) |
17, 77, 38 |
sdl6-x2 |
17, 77, 38, 7 |
IDSDL302, 4.03 |
17, 77, 38, 7 |
| QF/QR NACs | 17, 77, 38 |
The x2-only build's fourth script, at 9872, is identical in shape to 4.03's
99a3:
9872: 9891 0002 ; two lead-in 1s
9874: 9895 000c ; fill + frame sync, 12
9876: 98ab 0007 ; ff1a body, 7 bits
9878: 98a2 0010 ; CRC-16
987a: 9891 0004 ; closing fill, 4
987c: 98cc 0000 ; terminator
The 1995 table has no such entry - it ends after the 38-bit script. So the 7-bit modulation-parameter frame arrived with x2 and was inherited by the V.90-era firmware, while the server images never send it. That confirms the earlier reading, on an image that contains no V.90 code at all.
But the detector is V.34's, and this corrects two earlier claims
The detector is byte-identical in the 1995 pre-x2 build (SDL_CS3 at
9c4b) and in sdl6-x2 (97ba): same shift register at 0270, same mask
fe00, same constant 7600, same @62 bit 0. It cannot be an x2
mechanism.
What it matches is the preamble. Register bits 9:15, oldest to newest, are
1101110, and V.34's fill-plus-frame-sync in time order is 111101110010:
window 0: 1111011
window 1: 1110111
window 2: 1101110 <== the detector constant
window 3: 1011100
window 4: 0111001
window 5: 1110010
So it is a fill/frame-sync preamble detector - it tells the state machine that INFO-shaped traffic is on the line even when no frame validated, which is why it runs only after the CRC path fails. Two things follow, both corrections to earlier sections:
- "the detector shipped with x2 itself" is wrong - it predates x2 by at least two years;
- reading its constant as a modulation-parameter code
(
carrier 1, rate 5, rate 3) is wrong -3bis a preamble window, not a code, and the 7-bit width is a coincidence of the 12-bit preamble.
Which means x2's 7-bit frame still has no identified receiver. The detector was the last candidate and it is not one.
One apparent difference between x2 generations (it cancels - see below)
The x2-only build writes the modulation-parameter value at bit offset 0, through a different writer:
908b splk @7f, #0000
908d calld 91a3, *
908f lar ar0, #ff1a
9091 bd 97ea, *
9093 splk @4b, #9872
4.03 writes the same kind of value at offset 6 through 8769. For a
7-bit body, offset 6 is the first bit transmitted and offset 0 the last, so
the field is not in the same place in the two generations - and 91a3 is not
8769, so the insertion convention may differ too. That is a concrete
difference between x2 revisions, and the firmware has a failure string for
exactly that case: "Incompatible versions". Confirming it means reading
91a3, which is now possible.
The two generations number their buffers oppositely - and it cancels
91a3 is the x2-only build's bit-field writer, the counterpart of 8769.
The two derive their shift differently:
8769 lacl @7f | 91a3 (x2-only)
cmpl | lt @7f
samm @0d | lact @7b
lact @7b | sub #01
ADDT/LACT shift by TREG1, and LT loads TREG0 - but the C5x's PMST
carries a TRM bit, and with TRM = 0 ("'C2x-compatible mode") any
C2x-compatible instruction that loads TREG0 also loads TREG1 and TREG2
(spru056d, Table 4-3). So lt @7f sets the shift to the offset itself,
where cmpl/samm @0d sets it to the complement:
x2-only (91a3) |
1998 (8769) |
|
|---|---|---|
| shift | offset & 15 |
15 - (offset & 15) |
value bit j lands at word bit |
offset + j |
(15 - offset) + j |
| store direction | sacl *+ / sach * |
sacl *- / xc / sach * |
The serializer is mirrored to match. The x2-only body handler keeps its own
ascending counter and shifts left, instead of computing count - 1:
98ad lacl @54 ; bit index, counts UP
98ae bsar 4
98af samm @18
98b1 lt @54 ; TREG1 = index
98b3 lacl *
98b4 satl ; shift left
98b6 and @7b
...
98be lacl @54
98bf add #01
98c0 sacl @54
against 4.03's lacl @4a / sub #01, which counts down.
So the two generations index the same buffer in opposite directions, and the serializer inverts with the writer. The bits reach the line in the same order. Writing the 7-bit field at offset 0 in the x2-only build and at offset 6 in 4.03 puts the same bit first in both. The "Incompatible versions" speculation in the previous section is withdrawn: this is an internal refactor, not a wire difference.
The same refactor explains the capability word
Under the ascending convention, buffer indices 0..15 are word ff18's bits
0..15, so the x2-only build does not need the bit-field writer at all - it
stores the capability word whole:
8dcd lar ar1, #ff18
8dcf bldd *, #fff2 ; default
8dd1 xc 2, tc
8dd2 bldd *, #fff1 ; x2
8dd4 ret
That is exactly 4.03's 8e4a-8e55 (bldd into @7d, then 8769 at offset
16), with the offset step made unnecessary by the numbering. Same field, ITU
bits 12:27, both generations.
What the x2 setup command gained later
The tag-70 handler is not identical, though:
8ccb smmr @7a, #fff1 ; x2-only
8ccd lar ar1, #fff1
8ccf apl @7d, #fdff ; extra: clears bit 9 of @7d
8cd1 apl *, #3fff ; same mask - ITU 26:27 forced to 0
8cd3 opl *, #0000
8cd5 lar ar1, #fff4
8cd7 splk *, #8000
8cd9 ret ; ends here
4.03 continues past that point with lar ar1, #fff7 / opl *, #0001 - the
"x2 enabled on local modem" bit. The x2-only build never sets it. So
fff7, the ten-bit condition bitmap behind the failure enum, is a later
addition, which fits the enum strings being absent from the server images
too: the diagnostic apparatus grew after the protocol did.
The capability masking is unchanged between generations - apl #3fff, ITU
bits 26:27 pinned to zero - so that constraint is x2's from the start.
A search caveat worth recording
The x2-only build addresses these buffers with lar ar1 where 4.03 uses
lar ar0, so a byte signature built from one generation's lar form silently
misses the other. Signature searches across generations should match the
address word, not the whole instruction.
Does x2 have a Jd table?
No. x2 adds no sequence of its own in that family - it reuses V.34's.
Jd is an MP-family frame, not an INFO-family one
The two frame families are distinct in both Recommendations:
| family | preamble | terminator | members |
|---|---|---|---|
| INFO | fill 1111 + frame sync 01110010 |
fill 1111 |
INFO0/0a/0d, INFO1a/1c/1d, INFOh |
| MP | 17-bit frame sync 1 * 17, start bits 0 |
fill 000/0000 |
MP, MP', and Jd |
Table 13/V.90 puts Jd squarely in the second: frame sync 11111111111111111
at 0:16, start bits at 17, 34 and 51, CRC at 52:67, fill 0000 at
68:71. And 8.4.2/V.90 says outright that "the CRC generator used is
described in 10.1.2.3.2/V.34" - Jd borrows V.34's generator rather than
defining one.
The firmware has exactly four CRC sites, in every era
| build | CRC-8408 sites |
|---|---|
SDL_CS3 (1995, V.34 only) |
4 |
sdl6-x2 (x2-only) |
4 |
SDL_49, 4.03 (x2 + V.90) |
4 |
| QF/QR NACs | 4 |
Two are the INFO transmit and receive paths already documented. The other two are the MP family, and they are present in the 1995 pre-x2 build, so that machinery is V.34's:
f1f2 sub #11 ; the 17-bit sync test
f1f3 retc lt
...
f200 lar ar0, #ff48 ; MP receive buffer
f209 xor @42 ; CRC, preset ffff
f20d xor #00008408
fdac lar ar0, #ff38 ; MP transmit buffer
fdae lt @54 ; ascending index, as everywhere in this build
fdb1 satl
fdb4 xor @5c ; CRC, preset ffff
fdb8 xor #00008408
fdbc rorb ; bit out to the modulator
So: x2 introduced no fifth CRC-protected sequence. Had it defined a Jd-equivalent - its own repeated, CRC-protected rate-capability sequence for the server to send - there would be machinery to build and check it, and there is none. V.90 likewise adds none: Jd is MP-shaped and rides the same code.
What x2 does instead
The same thing it does for INFO0. Rather than define a new sequence, it overloads the carrier V.34 already provides:
- its capability announcement is the substituted INFO0 word (
fff1forfff2), in ITU bits12:27; - its modulation parameters are the 7-bit frame - the one new on-wire structure it adds, and it borrows INFO framing to carry it;
- its rate mask is
fff3, the shared host-supplied rate-mask word (tag71), alongside V.34's own MP rate mask.
That is consistent with everything else found here: x2 shipped before there were standard places to put 56k information, so it reused standard fields and signalled by value. V.90, arriving with the standard, got a dedicated field in INFO1a and a dedicated sequence in Jd - but even Jd was defined as an MP-family frame rather than a new one.
Weaker supporting evidence, flagged as such
Counting how often each buffer address appears as a literal word - a noisy measure, since data can match by chance:
| build | ff38 MP tx |
ff48 MP rx |
ff18 |
ff1a |
fff3 |
|---|---|---|---|---|---|
| 1995 | 24 | 4 | 10 | 22 | 7 |
| x2-only | 31 | 6 | 13 | 24 | 10 |
| x2 + V.90 | 24 | 8 | 17 | 28 | 11 |
The x2-only build touches the MP transmit buffer more than the 1995 build does, which is what "x2 rides in MP" predicts. But these are literal-word counts, not verified references, so they suggest rather than establish it. Confirming which MP bits x2 uses means diffing the MP field writers across the three builds - the next concrete step, and now a tractable one.
The actual x2 bits in INFO0
The supervisor edits recorded earlier in this document - "clear capability bit
9 then set it from S58 0x04, set bit 10 unless S58 0x10, clear bits 11, 12,
14 and 15" - were never translated into ITU field numbers. They are the x2
signature, and they land on named V.34 fields.
The capability word is written at offset 16 into a 17-bit body, so value bit
j lands on ITU bit 12 + j:
| capability bit | ITU bit | Table 14/V.34 field | x2's edit |
|---|---|---|---|
| 9 | 21 | symbol-rate asymmetry, LSB | from S58 0x04 |
| 10 | 22 | symbol-rate asymmetry | set, unless S58 0x10 |
| 11 | 23 | symbol-rate asymmetry, MSB | cleared |
| 12 | 24 | "set to 1 in an INFO0 transmitted from a CME modem" | cleared |
| 14 | 26 | transmit clock source, LSB | cleared |
| 15 | 27 | transmit clock source, MSB | cleared |
So the three edits are three fields, not six scattered bits:
-
ITU
21:23- "Maximum allowed difference in symbol rates in the transmit and receive directions ... an integer between 0 and 5". x2 drives this field directly:S58 0x04S58 0x1021:23asymmetry announced 0 0 0102 1 0 1103 0 1 0000 1 1 1001 -
ITU
24cleared - declares "not a CME modem". -
ITU
26:27cleared - transmit clock source = internal. This is theapl #3fffthe DSP applies again on top, so both ends of the path force it.
Why that field, and why it is not really a hack
x2 client/server operation is asymmetric - PCM downstream, V.34 upstream - so
the transmit and receive symbol rates genuinely differ. ITU 21:23 is the field V.34
already provides for exactly that, and x2 sets it to 2 or 3 steps. The clock
source matters for the same reason: the digital end is network-synchronised
and the analogue end must run on its own clock, which is what 26:27 = 0
declares.
So x2's INFO0 announcement is not arbitrary bit-stealing. It is the V.34 fields that describe an asymmetric, externally-clocked connection, driven to the values an x2 call needs. A V.34-only peer reads them as a legal asymmetry preference and a clock declaration and proceeds normally - which is why x2 falls back cleanly.
And it explains the peer test
The "remote is an x2 server" condition, from earlier in this document:
9049 bit 5, * ; local ff18 word bit 5 -> ITU 18
904c and #00000c00 ; remote ff00 word bits 10, 11 -> ITU 23, 24
904e bcnd 90bd, eq
ff00:ff01 is packed like ff18:ff19 - the shift at 951d differs only to
account for body length - so the same ITU = 13 + word bit mapping applies.
The test therefore reads remote ITU 23 or 24 set, and an x2 client
clears both. The two directions use the same fields with opposite values:
| ITU 23 (asymmetry MSB) | ITU 24 (CME) | |
|---|---|---|
| x2 client sends | 0 | 0 |
| x2 server must set | 1 or | 1 |
Combined with local ITU 18 - "ability to transmit at the high carrier frequency with a symbol rate of 3200" - that is the whole recognition test. Asymmetry values above 3, or the CME bit, are what an x2 server puts on the wire and what a plain V.34 answer modem does not.
That is the concrete answer to what x2 changed: three V.34 INFO0 fields - symbol-rate asymmetry, the CME flag, and transmit clock source - driven to x2 values, with the asymmetry field's top bit and the CME flag reserved to mark the server direction.
The whole capability word, field by field
Applying ITU bit = 12 + capability bit to all sixteen, against Table 14/V.34
and the supervisor sources recorded earlier (8a1f -> 49db4: S54, S56, and
the channel capability byte 73d):
| cap bit | ITU | Table 14/V.34 field | where the value comes from |
|---|---|---|---|
| 0 | 12 | symbol rate 2743 supported | S54, via the five-byte table at banked 1e41 |
| 1 | 13 | symbol rate 2800 supported | S54 |
| 2 | 14 | symbol rate 3429 supported | S54 |
| 3 | 15 | low carrier at 3000 | S54 |
| 4 | 16 | high carrier at 3000 | S54 |
| 5 | 17 | low carrier at 3200 | S54 |
| 6 | 18 | high carrier at 3200 | S54 - the bit the x2 peer test reads at 9049 |
| 7 | 19 | 0 = transmission at 3429 disallowed | S54 |
| 8 | 20 | ability to reduce transmit power | S56, TX-level deviation |
| 9 | 21 | symbol-rate asymmetry, LSB | channel byte 73d; x2 overrides from S58 0x04 |
| 10 | 22 | symbol-rate asymmetry | channel byte 73d; x2 sets, unless S58 0x10 |
| 11 | 23 | symbol-rate asymmetry, MSB | x2 clears |
| 12 | 24 | CME modem flag | channel byte 73d; x2 clears |
| 13 | 25 | up to 1664-point constellations | S56, the V.34+ option |
| 14 | 26 | transmit clock source, LSB | x2 clears |
| 15 | 27 | transmit clock source, MSB | x2 clears |
Three things fall out of laying it flat.
The channel byte and x2 fight over the same three bits. This document
already recorded that 73d "enables bits 9, 10, and 12 according to the
detected channel" - that is ITU 21, 22 and 24, which is precisely the
set x2 then overrides. So the base word's channel-dependent part is the
asymmetry field plus the CME flag, and x2's edit is a deliberate override of
the channel's own judgement, not an edit of unrelated bits.
S54 owns ITU 12:19 entirely, which is why the x2 peer test's local half
reads bit 18: the "high carrier at 3200" capability is a pure S54/regulatory
fact, unmodified by any x2 edit. That is what makes it usable as a stable
half of the recognition test, and what its result string - "3200 baud disabled
on local modem" - is reporting.
S56 barely reaches INFO0. Of the S56 contributions listed for 49db4 -
nonlinear coding, TX-level deviation, preemphasis, precoding, shaping,
V.34+/V.34, V.FC - only two have a home in Table 14: TX-level deviation at ITU
20 and V.34+ at ITU 25. The rest are INFO1/MP-family fields, so most of S56
cannot be travelling in this word at all.
A qualification on fff7
The ten-bit condition bitmap this document builds its x2 failure enum on is
only in courier-board.rom. Searching for lar ar1, #fff7 followed by
opl *, #mask as a byte pattern - which does not depend on any program
mapping:
| image | masks OR'd into fff7 |
|---|---|
courier-board.rom (4.03) |
0001, 0004, 0008, 0020, 0080, 0200 |
IDSDL302.ROM (3.0.13) |
none |
sdl6-x2 (x2-only) |
none |
SDL_CS3 (1995) |
none |
SDL_49 |
none |
| QF/QR NACs | none |
IDSDL302.ROM carries the failure strings but not the DSP-side bitmap, so in
that generation the conditions are computed on the supervisor side. The
DSP-resident bitmap is a 4.03 (DSP 3.1.2) arrangement. Conclusions drawn from
fff7 therefore describe one firmware version's diagnostic plumbing, not
the x2 protocol - and the protocol-level findings above, which rest on the
capability word and INFO0 field numbers, are the ones that generalise.
The x2-only build shows the same split from the other side: its status report
builds the tag-6b word from fff6 and ff01, where 4.03 uses fff7 and
ff00.
What else does x2 set? Nothing else on the wire
Enumerating every bit-field write into each buffer, by tracking ar0 and
collecting the splk @7f, #offset that follows:
| build | ff18 offsets |
ff1a offsets |
ff48 (MP rx) |
|---|---|---|---|
SDL_CS3 (1995, V.34 only) |
- | 0, 3, 6, 13, 18, 22, 28 | 2, 6 |
sdl6-x2 (x2-only) |
- | 0, 3, 6, 13, 18, 22, 28 | 2, 6 |
SDL_49, 4.03 (x2 + V.90) |
16 | 6, 9, 15, 19, 24, 37, 63, 76 | 2, 6 |
The x2-only build's INFO1 writes are identical to the 1995 V.34-only build's. Same seven offsets, same buffer. x2 adds nothing to INFO1.
Neither build lists ff18 offsets because both store the capability word with
a whole-word bldd, as recorded earlier - the ascending numbering makes the
offset writer unnecessary there.
Under that ascending convention (ITU = 12 + offset) the seven land on
Table 15/V.34's own field starts:
| offset | ITU | Table 15/V.34 field |
|---|---|---|
| 0 | 12 | minimum power reduction, 12:14 |
| 3 | 15 | additional power reduction, 15:17 |
| 6 | 18 | length of MD, 18:24 |
| 13 | 25 | high carrier at 2400, 25 |
| 18 | 30 | projected maximum data rate at 2400, 30:33 |
| 22 | 34 | probing results, 2743, 34:42 |
| 28 | 40 | inside that same 2743 field |
Six exact field starts, and one write inside the 2743 probing field - the older builds fill the probing results with individual writes where the V.90-era firmware uses the five-iteration loop. That difference is a refactor, like the buffer numbering; it is not an x2 field.
So x2's complete on-wire footprint is two things
- The INFO0 capability word - three Table 14 fields driven to x2 values:
symbol-rate asymmetry
21:23, the CME flag24, transmit clock source26:27. Everything else in that word is S54/S56/channel state that x2 leaves alone. - The 7-bit modulation-parameter frame - carrier bit plus two 3-bit symbol-rate indices, in an INFO-framed burst of its own, with the out-of-range value 6 marking the PCM direction.
And that is all. Not INFO1, not MP, not a Jd-equivalent, and no new CRC
family. Every other difference found in this investigation - the fff7
bitmap, the result ladders, the status formatters, the failure enum - is
supervisor or diagnostic plumbing that arrived later than the protocol and
varies by firmware version.
For a proprietary 56k protocol layered on V.34, that is a remarkably small footprint, and it is why x2 falls back to plain V.34 so cleanly: strip the two additions and what remains on the wire is a conforming V.34 handshake.
How x2 matches a speed to a line
The 7-bit frame's two rate fields are V.34 symbol rates, not bit rates. The PCM speed is chosen by measurement in the DSP and reported to the supervisor as a small local index. The MP/MP' path then participates in agreeing the working parameters; the exact translation from the local index to its four-bit MP value remains under investigation.
Audit of the missing wire-rate field (2026-09-10)
A new supervisor-side sweep rules out two tempting interpretations of that
report. sdl6-x2.exe was depacketized into its sixteen load-addressed 80186
modules, and every direct installation of the common mailbox receive-table
dispatcher was enumerated. The dispatcher is the relocated copy at physical
0x8edba; each caller supplies a byte-tag table, a parallel handler-word
table, and a count before jumping to it. None of those directly installed
tag tables contains 67, 68, or 69.
This is a negative result, not proof that the supervisor never consumes the
rate report: a handler can replace the receive vector indirectly, and the
DSP's high-bit queue convention can make a following value a stream word
rather than an ordinary tag. It does show that there is no simple permanent
tag 69 -> send rate back to DSP handler in the resident controller state
tables.
Two apparent controller matches for literal 69 were also rejected. The
routines at physical 0x895a9..0x8964b and their later overlay copy parse the
ASCII string grammar +F[PL]PI=""; their acceptance of ASCII I (49) and
i (69) is unrelated to the x2 seven-bit modulation-parameter codes.
Together with the field-width audit below, the present working model is:
DSP measures the PCM receive path
-> retains the selected index in datapump state
-> reports the index under 8069 for status/control-plane use
-> a Phase-3/4 DSP script encodes the selection in PCM symbols
-> the peer decodes the selected symbol/table pattern
The last two arrows remain a hypothesis. The next discriminating trace is
from the retained index, not from the supervisor tag: locate the post-c356
uses of the selected cell in a correctly overlaid x2 PCM image, then compare
the selected transmit table against the receive-side bc38..bc92 descriptor
decoder and table bca9. If the selected index changes a table address,
repeat count, or codeword subset, that quantity is the proprietary wire-rate
encoding. If it does not, the supervisor's indirect stream consumer must be
revisited.
That first trace changes the balance of the hypothesis. The c320 rate
routine is not in an overlay at all: it is in the x2 resident image, under the
verified flat mapping file = 0x18100 + 2*PC. Its byte sequence occurs once,
at flat 0x30740; lacl @12 / call 8b7d / samm @0c begins at c324, exactly
as disassembled above. This corrects an attempted overlay-6 anchor which
matched data rather than code.
More importantly, the chosen index is DP-007 cell 03e5. After clamping it,
the routine queues 8069 and then queues 03e5's value:
c34e splk @65, #000a ; DP 7: low clamp in 03e5
c354 splk @65, #0015 ; DP 7: high clamp in 03e5
c356 lacc #00008069
c358 call 83cf ; queue the tagged header
c35a lacl @65 ; reload 03e5
c35b call 83cf ; queue the value
There is no second lacl @65 in the resident image. The queue sender at
83ed..83fd interprets bit 15 of 8069 as a paired-word marker: it strips
the high bit, writes tag 0069, and writes the following word as that tag's
value in the same mailbox transaction. Thus the controller receives an
ordinary (tag=69, value=10..21) pair, not an untyped second stream word.
This initially made a controller-selected encoding script the leading model,
but enumerating the installed 0192 callbacks rejects it. Paired-value
handlers are easy to identify: after the tag dispatcher selects one, the
handler reads the associated value with in al,5e / in al,5c. The main x2
table at controller offsets 5730/5750 maps 32 tags, including x2 status
tags 6a, 6b, 6c, 6d and 6e, to such handlers. It does not contain
69. Neither the smaller table-dispatch callbacks nor the direct state
callbacks compare against 69 or read its attached value.
So tag 69 is an exported measurement/status value, not a controller command
that selects a DSP phase script in this supervisor build. The final-rate
negotiation must remain inside the line-side Phase-3/4 machinery: the
three-word phase scripts and the codeword/mapper tables they select. This is
also consistent with the absence of a final 56k rate field from INFO0, INFO1,
MP and the proprietary 7-bit modulation-parameter body.
tools/encode_x2_v90_fields.py makes the recovered wire distinction
executable. It emits the complete INFO-framed bit stream (V.34 fill/sync,
body, reflected 8408 CRC, trailing fill) for x2's 17-bit INFO0 and 7-bit
modulation-parameter marker, and for V.90's 38-bit INFO1a. Its four x2 marker
checks reproduce 4d, 69, 48 and 49; critically, its 69 is the
on-wire 7-bit marker code and is unrelated to DSP mailbox tag 69.
x2 added six outbound tags
Listing every lacc #80xx that feeds the host queue:
| build | outbound tags |
|---|---|
SDL_CS3 (1995) |
00, 08, 0a, 16, 20, 21, 23, 2d, 2f, 30, 31, 34, 35, 36, 3d, 43, 47, 48, 49, d9 |
sdl6-x2 (x2-only) |
the same, plus 1c, 37, 67, 68, 69, 6b |
Tag 6b is the x2 status word already documented. Tag 69 carries the
rate index.
The rate ladder
The x2 result strings recovered from the x2-only build are 33333, 37333,
41333, then 42666, 44000, 45333 ... 57333 - a step of 1333 1/3
bit/s, so the rate is K * 8000/6 for K bits per six-symbol frame:
33333 37333 41333 -> K = 25, 28, 31 (sparse)
42666 ... 57333 -> K = 32 ... 43 (contiguous, 12 rates)
The decision, at c320
c324 lacl @12 ; the measured quantity
c325 call 8b7d ; logarithm
c327 samm @0c
c328 mpy #0c0b ; * 3083
c329 lacc #05e00000 ; 1504
c32b bit 1, @1f
c32e add #00380000 ; ... or 1560
c330 spac ; constant - 3083 * log
c331 bsar 4 ; >> 4
...
c33a sub #00080000 ; knee at 8
c33d bcnd c344, leq
c341 sfl ; above the knee, double the slope
...
c347 add #000a0000 ; + 10
c34a sub #000a0000
c34e splk @65, #000a ; clamp low = 10
c350 sub #000b0000
c354 splk @65, #0015 ; clamp high = 21
c356 lacc #00008069 ; report as tag 69
8b7d is a logarithm: it normalises its argument with a rpt #0e / norm *-
loop to get the exponent, then corrects the mantissa with a polynomial
(sqra, mpy #0c0b, mpy #17ca, mpy #0271, apac). So the chain is
index = clamp( 10 + knee( (C - 3083 * log(measurement)) >> 4 ), 10, 21 )
with C = 1504, or 1560 when @1f bit 1 is set.
And the index is the rate
10..21 plus 22 gives 32..43 - exactly the contiguous part of the x2
ladder, 42666 through 57333. So the DSP's whole contribution to speed
selection is one clamped index, and the supervisor turns it into a rate and a
result string.
A linear map from a log measurement, with a slope change above a knee, is a signal-quality-to-bits mapping: each index step is one bit per six-symbol frame, which at 8000 symbols/s is 1333 1/3 bit/s, and in PCM terms roughly one dB of usable headroom per step.
The three sparse rates below the clamp - 33333, 37333, 41333 - cannot be produced by this path at all, so they are fixed fallbacks reached another way, not measurement outcomes.
Translation into the four-bit x2 rate ordinal
The full x2 result table contains exactly sixteen ordered entries: fifteen
analogue rates followed by 64000 for the all-digital path. This exactly fills
the four-bit directional value available in MP. The resulting mapping is
0=33333, 1=37333, 2=41333, 3..14=42666..57333, and 15=64000.
Consequently the measured range converts by wire code = index - 7, mapping
10..21 to 3..14. The sparse fallbacks occupy the otherwise unreachable
low codes, and the non-analogue endpoint occupies the otherwise unreachable
high code. No alternative monotone assignment preserves the firmware table
order and all four boundary conditions.
Unchanged for V.90
4.03 has the identical ladder at c4d4, with the same bounds 000a and
0015 and the same tag. So the measurement-to-index machinery is shared;
what differs between x2 and V.90 is only the supervisor-side table the index
lands in - 16 entries for x2, 28 for V.90.
What is not established
What @12 physically holds. It is written from several places, some with
constant initialisers (0200, 0800, 1000, 1800) and some computed
(b4fa, c3b8), and identifying the measurement itself needs those
producers traced. The shape - log, linear map, knee, clamp, one index per
1333 1/3 bit/s - is what this establishes.
Where x2's rate agreement happens
V.90 specifies this completely: the analogue modem measures during DIL, sends
its request in CP, and the result is confirmed in MP - all named phases with
named sequences. For x2 the measurement path below is local, while the later
section "The rate negotiation is in MP" locates the wire agreement in the
shared V.34 MP machinery. The historical investigation is retained here to
show why tag 69 must not be mistaken for an on-wire rate request.
What is established
Tags 67, 68 and 69 are absent from the 1995 V.34-only build and present,
in identical numbers, in both the x2-only build and 4.03:
| build | tag 67 |
68 |
69 |
the 387f descriptor |
|---|---|---|---|---|
SDL_CS3 (1995) |
0 | 0 | 0 | 0 |
sdl6-x2 |
2 | 2 | 1 | 1 |
courier-board.rom (4.03) |
2 | 2 | 1 | 1 |
So the whole subsystem is an x2 addition, inherited unchanged by the V.90-era firmware. Within it:
69is the rate index - the clamped 10..21 from the log-and-knee measurement. It goes DSP to local supervisor, over the mailbox. It is not on the line.67/68are a receive-side decode. Atbc38-bc68the code reads descriptors387fand397ethroughbc92, indexes a table atbca9, tests bit 7 of the result, and - guarded by039fbit 11 - reports[0be6]under tag68followed by tag67. Something arriving is being decoded and handed up.
What is not
No on-wire carrier for the rate has been found. The rate index does not appear in INFO0, in INFO1, in MP, or in the 7-bit modulation-parameter frame - all four have been enumerated field by field in this document, and none has a field for it. So x2's rate agreement happens somewhere this investigation has not reached.
The client is the end that measures its own receiver, so it must be the end
that requests, which leaves two readings of the 67/68 path:
- it decodes a rate assignment sent by the server, with the client's own index used only locally as an input to a host-side request sent by some other route; or
- it is unrelated to rate agreement, and the exchange is elsewhere entirely - most likely a proprietary training phase after the INFO exchange, in the data-pump domain rather than the handshake machinery this document covers.
Distinguishing them means following bc92, the bca9 table, and what sets
039f bit 11 - and, on the other side, finding what the supervisor does with
tag 69 once it has it. Both are tractable; neither is done.
That is the honest state: x2's measurement is fully traced, its ladder is fully traced, and its negotiation is not.
The rate negotiation is in MP, and the overlays were hiding it
The previous section's "not located" was partly a tooling failure. The MP
rate code lives above 0xeea7, outside the resident DSP program, and both
the linear blob mapping and mailbox_compare.program() stop there.
CourierRom.dsp_overlays already knew the map:
| overlay | loads at | covers |
|---|---|---|
| 5 | 8000 |
the resident |
| 6 | 9d00 |
9d00..ce31 - the MP rate code |
| 7 | b000 |
b000..cd49 |
| 8 | dc00 |
dc00..f989 |
Loading overlay 6 makes the region disassemble, and the MP writes are there:
ff38 twelve times, ff39 three.
The max-rate field negotiation, at a344
a344 lamm @7a ; host-supplied value
a346 retc eq
a347 lar ar2, #ff39 ; MP transmit buffer
a34a lacl *-, ar1 ; current field, ar2 -> ff38
a34b and #00007fff
a34d sacl @7e
a34e call a661
a350 lar ar1, #6f
a351 bit 1, *, ar2 ; the direction bit
a352 lacc @7d, 6 ; requested
a353 sacb
a354 lacc @7e, 6 ; current
a355 crlt ; min(current, requested)
a356 lacc @7e, 6
a357 xc 1, tc
a358 exar ; direction bit swaps which one survives
a359 bsar 4
a35a orb
a35c or *
a35d sacl *, ar1 ; back into the MP buffer
A minimum against a host-supplied value, written into the MP word pair,
with the two directions swapped by [006f] bit 1 - the same bit that swaps
4d and 69 in the 7-bit modulation-parameter frame. Table 20/V.34 has
two separate max-rate fields, 20:23 call-to-answer and 24:27
answer-to-call, and a direction swap on an asymmetric protocol is exactly what
picks between them.
The symbol-rate to rate-mask table, at a37b
The code that follows indexes a table by @5b - the symbol-rate index - with
a +6 bank offset:
| symbol rate index | bank 0 | bank 1 |
|---|---|---|
| 0 (2400) | 01ff |
01ff |
| 1 (2743) | 03fe |
07fe |
| 2 (2800) | 03fe |
07fe |
| 3 (3000) | 07fe |
0ffe |
| 4 (3200) | 0ffe |
1ffe |
| 5 (3429) | 0ffe |
3ffe |
Contiguous runs of set bits - the shape of Table 20's "Data signalling rate
capability mask" at 35:49, where bit 35 is 2400 and bit 48 is 33600. So for
each symbol rate the table gives the data rates that symbol rate can carry,
and the result is ANDed with [ff2f], the locally enabled set.
The bank is selected by the 1664-point bit. At a35f-a36d the code
tests @1f bit 0 and then reads ff01 bit 15, ff00 bit 12, or ff18
bit 12 - and ff18 bit 12 is ITU bit 25, "ability to support up to 1664 point
signal constellations". Table 20's own NOTE says: "Data rates greater than 12
in bits 20:23 and 24:27 shall only be indicated when the remote modem supports
up to 1664 point signal constellations." Bank 1 is exactly the extended
version, reaching 3ffe - 33600 - at 3429.
What this settles, and what it does not
Settled: the rate agreement runs through MP, by a min against a host-supplied request, in direction-selected fields, gated by a symbol-rate-to-rate-mask table that honours the standard's 1664-point rule. That is a real negotiation and it is on the wire, which is what the previous section said could not be found.
Not settled: how much of it is x2's. The machinery above is V.34's own rate
negotiation, correct against Table 20, and the earlier count showed ff39
sites differ across builds - two in 1995, four in the x2-only build, three
here. So x2 modifies this path rather than adding a separate one. Isolating
the modification means running this same overlay-aware read against the
x2-only and 1995 builds, which needs their overlay tables rather than the
4.03 ROM's. That is the next step, and it is now a mechanical one.
What the x2 code actually does, in overlay 6
fff4 bit 2 is the "remote is an x2 server" outcome - set at 905d in the
resident, guarded by the local ITU 18 / remote ITU 23-24 test. Overlay 6
tests it in three places, and they are not diagnostics.
It selects an alternate parameter row
c584 lar ar1, #fff4
c586 bit 2, *
c587 lacc @72, 1
c588 xc 1, tc
c589 add #01 ; x2 server -> the odd row
c58a add #0000c564
c58c tblr @7c
The table index is (@72 << 1) + 1 on an x2 call and (@72 << 1) otherwise,
so every parameter row has an x2 variant beside its V.34 one.
It doubles a set count
c5e0 lar ar1, #fff4
c5e2 bit 2, *
c5e3 lacl #02 ; x2 server -> 2
c5e4 xc 1, tc
c5e5 lacl #01 ; otherwise 1
c5e6 sacl @52
It constrains the rate mask and builds two codeword sets
c5e7 lar ar1, #fff4
c5e9 bit 13, *
c5ea bcnd c5fe, ntc
c5ec bit 2, @6e
c5ed lar ar1, #fff3
c5ef apl *, #0007 ; the host rate word, cut to three bits
c5f1 xc 2, tc
c5f2 apl *, #0003 ; or two
c5f4 lar ar1, #faa0
c5f6 lacl @70
c5f7 call c651, *
c5f9 lar ar1, #fb20
c5fb lacl @71
c5fc call c651, *
Two buffers, faa0 and fb20, with independent counts @70 and @71 - one
per direction, which is what an asymmetric protocol needs.
And c651 is the PCM codeword snapper
c651 sub #01
c652 samm @09
c653 lacc #0000c66e ; the allowed-codeword table
c655 tblr @7d
c658 rptb #c66c
c65a lacl *+ ; each candidate level
c65b sub @7d
c65c bcnd c66c, lt
c65e bcndd c663, gt
c660 lacb
c662 tblr * ; snap it to the table entry
c663 cpl @7d, #00f1 ; 241 terminates the table
The table at c66e is:
00a7 00a6 00b4 00b3 00bc 00bd 00c5 00c4 00c8 00c7 00d3 00d2 ... 00f1
Ascending PCM codewords in sign pairs - each level with its complement -
running up to the terminator 241. V.90 names this quantity: Table 10's
UINFO is "the Ucode of the PCM codeword to be used by the digital modem",
constrained to be greater than 66. These are the same objects.
So c651 walks a buffer of candidate levels and snaps each to the nearest
permitted codeword, and it is run once per direction.
That closes the loop on matching a speed to a line
The three pieces now join up:
- Measure - the resident's
c320chain turns a channel measurement into an index 10..21 through a log, a linear map and a knee, and reports it as tag69. The index is the rate: plus 22 it is K bits per six-symbol frame, 42666 to 57333. - Negotiate - the MP path at
a344takes a minimum against the host-supplied request into the direction-selected max-rate fields, gated by the symbol-rate-to-rate-mask table ata37band the 1664-point rule. - Realise - overlay 6, on an x2 call, takes the x2 parameter row, builds
two codeword sets instead of one, and snaps each to the permitted PCM
codewords at
c66e.
The number of distinguishable codewords is what a PCM rate is, so step 3 is where the negotiated rate becomes a physical constellation - and the x2-only difference at each step is a row index, a count of one versus two, and a mask width. x2 does not replace V.34's rate machinery anywhere; it parameterises it, exactly as it parameterises INFO0 rather than replacing it.
Assessment: how close is x2 to V.90
Interpretation, separated by what supports it.
Measured from these images
- The Phase-4 overlays have direct binary ancestry. Comparing the
x2-only
sdl6-x2module 13 (loaded atdc00, 4,472 words) withIDSDL302overlay 8 (also loaded atdc00, 7,350 words) finds exact relocated islands of 161, 138, 81, 49, 41 and 33 consecutive words, plus numerous smaller runs. The 138-word island moves from x2e197to V.90de2e; its executable prefix is instruction-for-instruction identical and enters the same callback-driven sample-processing machinery. The 161-word island moves from x2ec4fto V.90f785and is a shared mapping/data table. This is stronger than shared constants: the later V.PCM page retains x2 code and tables while growing by 2,878 words (64%). - x2 uses a six-symbol data frame. Its rate granularity is 1333 1/3
bit/s, and
1333 1/3 = 8000 / 6. This falls out of the rate ladder alone, with no reference to any specification. - x2's rate set is a strict subset of V.90's. Both are
K * 8000/6; x2 usesKin{25, 28, 31, 32..43}, V.9021..47. V.90 fills x2's gaps (26, 27, 29, 30) and extends both ends. - The implementation is continuous. The same measurement-to-index code
serves both, with identical clamp bounds; the tags x2 added (
67,68,69) are inherited unchanged; the PCM codeword sets x2 builds are the same objects V.90 callsUINFOUcodes. - On a PCM call this firmware builds two level sets,
faa0andfb20, withfba0andfc20as their sign variants (opl1 /aplfe), snapped to the permitted codewords atc66e. The count is 2 underfff4bit 2 and 1 otherwise.
From the Recommendations
- V.90 is also six-symbol: "a six-symbol structure", "six PCM code sets, one for each data frame interval 0 to 5", "six independent mappers", and CP carries six 4-bit constellation indices, one per interval.
- What V.90 adds over x2 is declaration, not mechanism: INFO0d gives the
digital modem a 30-bit body of its own, Jd gives it a rate-capability
sequence, and INFO1a
37:39gives the protocol an explicit selector. x2 has none of these - its server is recognised by a conjunction of standard bits that officially mean something else.
Reported, not verified here
K56flex is understood to use a four-symbol mapping frame, which would give 2000 bit/s granularity and match its 32000/34000/.../56000 ladder. There is no K56flex image in this repository, so this is not checked. If it holds, then the six-symbol frame is x2's rather than common ground, and V.90 inherited its frame structure - and with it the rate granularity, the modulus encoder and the mapper count - from x2 rather than from K56flex.
Explicitly not established
An earlier draft of this assessment suggested x2 builds two constellation sets
where V.90 builds six. That is not supported. The overlay-6 code above
serves both protocols in the 4.03 image, and there is no six-way constellation
loop anywhere in that overlay. The two-versus-one count is keyed on fff4
bit 2, the x2-server flag, so it distinguishes a PCM call from a V.34 call -
not x2 from V.90. Whether V.90's per-interval constellation selection is
implemented elsewhere in this firmware is an open question.
The reading this supports
V.90 is x2's mechanism given a standard place to live. The frame structure, rate quantisation, measurement path and codeword construction are continuous; what changed is that the things x2 signalled by inference acquired explicit fields, and the rate ladder was filled in and extended.
One standing caveat: every image here is USR's. Continuity in one vendor's codebase is strong evidence about implementation lineage and weaker evidence about protocol lineage, since the same team edited the same DSP forward through all three eras.
Phase 3 and where PCM mapping starts
V.90 begins PCM mapping at Sd, in Phase 3, and Sd's job is frame alignment:
Sd consists of 64 repetitions of the sequence {+W, +0, +W, -W, -0, -W} where W is ... the PCM codeword whose Ucode is
16 + UINFOand 0 is the PCM codeword with Ucode 0. ... The first symbol of Sd is defined to be transmitted in data frame interval 0. The digital modem shall keep data frame alignment from this point on.
That six-symbol pattern is the anchor for everything downstream: the six
mappers, and CP's six per-interval constellation indices, are all defined
relative to the alignment Sd establishes. Phase 3 runs
Sd, Sd-bar, TRN1d, Jd, Jd', then DIL.
This matters for the x2 comparison because x2 also uses a six-symbol frame - established here independently from its 1333 1/3 bit/s rate granularity - so x2 needs an equivalent alignment signal. It has not been found.
Negative result: no per-interval constellation parsing by literal offset
CP carries the six constellation indices at bits 103:106, 107:110,
111:114, 115:118, 120:123 and 124:127 - offsets 67, 6b, 6f,
73, 78, 7c. Searching every overlay of the 4.03 image for
splk @7f, #<those>:
| overlay | hits |
|---|---|
| 5, 6, 7, 8 | none, for any of the six |
So this firmware does not read or write CP's per-interval indices through literal bit offsets. Either they are handled by a loop with a computed offset - six fields at a stride of 4 would be natural - or this image does not implement per-interval constellation selection at all. Distinguishing those needs a search for the loop form, not the literal form, and that has not been done.
What the Courier does build is UINFO itself, at INFO1a bits 25:31
(91cd and 925c, offset 0x18, value 127 - @3e) - the Ucode the 2-point
train and Sd's W are both derived from. So the endpoints of Phase 3 are
present in this image even though the constellation indexing is not located.
The open question this leaves
Where x2 establishes data frame alignment. A six-symbol frame is useless without it, x2 demonstrably has one, and none of the four INFO-family scripts carries anything alignment-shaped - they are all DPSK handshake frames, not PCM-domain signals. So x2's alignment signal is in the PCM path, alongside the codeword construction in overlay 6, and it is the next thing worth finding.
The codeword tables, and a correction
Scanning every image for runs of word-sized values in the PCM codeword range finds two distinct kinds of table.
The sign-pair table is 4.03-only
403 @3c16c: a7 a6 b4 b3 bc bd c5 c4 c8 c7 d3 d2 d6 d5 de df ec ed f1 f0
Twenty entries in sign pairs - the table at c66e that the snapper c651
walks. It is absent from sdl6-x2, from SDL_CS3, and from both Quad
NACs.
That qualifies the earlier section: c651 and its table are 4.03-era code.
They are gated on fff4 bit 2, the x2-server flag, but they are not what an
x2-only modem ran. "What the x2 code does in overlay 6" describes what 4.03
does on an x2 call, which is not the same claim.
The two-level table is shared, and the levels are 16 apart
A different table appears in the x2-only client, the server NAC, and 4.03 alike:
group 1: a5 a7 ad af b7 bd c5 cf e5
group 2: 95 97 9d 9f a7 ad b5 bf d5
Nine codewords, then the same nine again with every entry exactly 16 lower:
a5-95 = a7-97 = ad-9d = af-9f = b7-a7 = bd-ad = c5-b5 = cf-bf = e5-d5 = 0x10
| image | offset | entries |
|---|---|---|
sdl6-x2 (x2-only) |
3e0b2 |
4 prefix + the 18 |
QF060003.NAC (server) |
5cf88 |
3 prefix + the 18 |
courier-board.rom (4.03) |
3c8ba |
the 18 |
Sixteen is V.90's Sd constant. Table 8.4.4/V.90 defines Sd's W as "the
PCM codeword whose Ucode is 16 + UINFO". The same offset, between the same
kind of objects, is sitting in x2 firmware from before V.90 existed - and on
both ends of the link, client and server.
In mu-law terms an offset of 16 is one segment, so the two groups are the same
nine-point constellation at two levels about 6 dB apart. That is what a
two-level set is, and it connects the @52 = 2 count found earlier to a
concrete pair of tables rather than to an inference.
What this does and does not show
Shows: x2 carries a two-level codeword constellation, the levels separated by the same 16 that V.90 later wrote into Sd, and the table is present in the server image as well as the client - so it is a property of the protocol, not of one end's implementation.
Does not show: that this table is x2's alignment signal. Sd is a transmitted sequence with a defined repetition count and symbol order; what is found here is the codeword set such a sequence would draw from. Locating the generator that emits it - in the NAC, since the digital modem is the end that transmits - remains the open item.
Reaching the NAC's datapump: historical blocker
The expected Phase 3 transmit order is Sd, Sd-bar, TRN1d, Jd, Jd',
then DIL - so after datapump setup the first codeword the digital modem
emits is Sd, and finding that generator in the server image would give the
alignment signal directly. Three attempts, all blocked at the same place:
- The codeword table is past 64K. The shared two-level table sits at
5cf88in the flattened QF image, which is DSP word address0x142ecunder the linear map - beyond the 64K program space. So the NAC's DSP program is overlaid, like the Courier's, and the linear map cannot reach the code that uses it. courier_emu.nachas no overlay support. It flattens the container; there is nodsp_overlaysequivalent.- The Courier's loader signature does not match.
CourierRom.dsp_overlaysanchors on the x86 sequencemov bl,imm8 / mul bl / mov bx,imm16(DSP_OVERLAY_TABLE). That pattern occurs zero times in either NAC, so the Quad's loader is a different routine - unsurprising given its controller-plus-four-channels architecture. - A shape-only search is useless. Scanning for three-word rows whose third word is a plausible load address yields 3552 candidates in QF. The Courier's reader avoids this by cross-checking each row against the downloader's own call site; without the NAC's loader there is no such anchor.
This blocker is now resolved. How the Quad loads C50 code
recovers all eight supervisor rows and the DSP-side pull loader. In
particular, the PCM core is loaded at a180, and the alternate PCM-mode image
containing the codeword constructor is loaded at c300. The executable probe
in tools/probe_quad_pcm_codewords.py loads those rows at their real DSP
addresses and runs the constructor. The remaining task is therefore to trace
the state machine that calls the constructor and emits the alignment burst,
not to recover the overlay map.
The Quad's DSP loader is the same shape, with different constants
Superseded. The
CS:eb98interpretation below was a false start. The recovered table is at physical0x93ba2..0x93be1, with eight contiguous(source paragraph, length, destination)rows, and the resident pulls the selected words through DSP I/O0x58..0x5b. See How the Quad loads C50 code. This section is retained as an investigation record, not as a current blocker.
The previous section's blocker was overstated: the Quad loader is
recognisable, it just does not match the Courier's byte signature. In
QF060003.NAC at flattened 0x013ac3 (physical 0x093ac3):
c6 06 3e 9d 01 mov byte [9d3e], 1
33 c0 xor ax, ax
86 06 3d 9d xchg al, [9d3d] ; the requested image code
25 0f 00 and ax, 000f ; four-bit index - as on the Courier
b3 08 mov bl, 8 ; row width 8, not 6
f6 e3 mul bl
bf 98 eb mov di, eb98 ; table base -> DI, not BX
03 f8 add di, ax
2e 8b 5d 06 mov bx, cs:[di+6] ; row word 3
b0 04 mov al, 4
e6 9e out 9e, al ; the Quad's DSP port
9a 87 06 db cf call far cfdb:0687
...
2e 8b 75 02 mov si, cs:[di+2] ; row word 1 - start
2e 8b 4d 04 mov cx, cs:[di+4] ; row word 2 - end
2b ce sub cx, si ; length in bytes
d1 e9 shr cx, 1 ; -> words
So the differences from CourierRom.dsp_overlays are exactly three: row
width 8 rather than 6, the base in DI rather than BX, and a four-
word row [?, start, end, segment] rather than three. The four-bit index
mask, the multiply-and-add addressing, and the end - start length are
identical in shape. in al, 9e polling appears a few instructions later,
which is the Quad's analogue of the Courier's 0x18/0x1e handshake ports.
What still blocks the table
The table is at CS:eb98, and CS is not recovered. The loader sits at
physical 0x093ac3, so CS * 16 lies in [0x83ac4, 0x93ac3] and the table
in [0x9265c, 0xa265b]. Every candidate in that window disassembles as code,
including one where the row bytes are visibly the call far cfdb:0687
instruction itself - so either the loader is relocated before it runs, or the
row layout differs from the [?, start, end, segment] read above.
Segments in this image are absolute: the far call target cfdb:0687 resolves
to 0xcfdb0, inside the image's 0x80000-0xfc000 span. That is consistent
but not sufficient to pin CS.
The concrete next step
Find the caller of this routine, or the code that sets up its segment, and
read CS from there. With CS known the table resolves, the four DSP images
are located, and the overlay containing the codeword table at 5cf88 becomes
disassemblable - after which the Sd generator should be adjacent to the
codewords it draws from.
Recovering CS: what was tried and why it failed
Scanning for far calls (9a off seg) whose seg*16 + off lands in the
loader region gives five hits, four sharing segment 8809. That looked
decisive, but the targets disassemble mid-instruction - 0x0139a4 is
add al, 0 followed by mov dx, [9d38], inside a loop body, not an entry
point. They are 9a bytes occurring in code, not calls. And with
CS = 8809 the table would sit at file 0x016c28, where the rows are again
code, one containing a recognisable call far encoding.
So byte-pattern search is not going to recover CS; it has now failed three
ways (shape-only rows, constrained rows, far-call callers). What would work:
- Disassemble the 186 properly around
0x093ac3and follow the segment setup - the repository has no x86 disassembler wired up, only the emulator. - Or run it.
courier_emualready boots the Quad controller, and the loader is reached during DSP download, soCScould simply be read at the moment the routine executes. That is the approach the rest of this work has taken - model the hardware rather than infer around it - and it needs the Quad bring-up inquad-bringup-blockers.mdto be far enough along.
The cost is now clearly in the 186 domain, not the DSP one, and the payoff is
specific: CS unlocks the overlay table, which unlocks the overlay holding
the codeword table at 5cf88, which should place the Sd generator.