Commit Graph
145 Commits
Author SHA1 Message Date
Cryan209andClaude Opus 5 48fd048f69 Make XRDY follow the frame clock, and record why the boot table shares the port
XRDY says DXR can accept another word, which becomes true when a frame sync
moves the last one into the transmit shift register. It was reported set
whenever XRST was set, so the firmware's reset handshake at 0x8097 - write DXR,
spin on XRDY, write again - fell straight through instead of waiting a frame.
It now clears on a DXR write, sets on a frame sync, and is released by a 0 -> 1
edge on XRST.

Scoped to the AC01 path: the legacy TDM path models no framing on this port, so
nothing there would set XRDY again after a write and a spin would never end.
That is a limit of this model rather than hardware behaviour, and it is
commented as such.

Also records what the boot table sharing the port actually rests on. TI's
application guide puts the AC01 on the primary serial port and leaves the TDM
port pulled to COM, which the firmware agrees with; the ROM loader is on that
same port and is receive-only. The datasheet holds DOUT in high impedance until
the eighth primary frame sync, and the firmware issues exactly eight primary
frames first - two priming writes plus six register writes - so the ASIC can
drive DR with the boot table unopposed until the codec is fully programmed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 11:12:01 +12:00
Cryan209andClaude Opus 5 6f75c0ac3a Clock the codec's audio per the datasheet instead of on demand
DRR was filled lazily, when the firmware happened to read it, so a run whose
receive queue was empty returned the same stale word every frame - 28,212 reads
of one value in the survey run.

codec_frame now runs at every frame sync:

- one ADC word per primary frame (section 2.4, "one word for each primary
  communication interval"), delivering a zero for a quiet line rather than
  repeating the last word;
- no sample on a secondary frame, which carries the addressed register when a
  read was requested and zeros otherwise, so a readback arrives with the frame
  rather than with the host's read;
- the secondary frame sync half a frame period after the primary that asked for
  it, which is Figure 2-1's (B/2) FCLK periods given fs = FCLK/B;
- RRDY following a word having been clocked in.

The ROM boot table shares the port but is not the sample stream: a frame sync
consuming those words breaks the download. queue_codec_boot keeps them in their
own queue, drained only by the loader's polls.

302 boot measures 1911 frame syncs and 1911 samples consumed, one each, with
DRR carrying live audio.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 11:00:09 +12:00
Cryan209andClaude Opus 5 ae6e9eaf82 Model the AC01 codec and derive the sample rate from its B register
The rate was hardcoded: 3472 cycles in the core and 9600 Hz in every generator
that filled the receive queue. The firmware retunes register 2 at runtime for
each V.34 symbol rate, so a constant is wrong by construction - and the two
figures disagreed with each other, making the DSP hear every frequency scaled
by 4/3.

C5xCore now decodes DXR the way the part does. Which kind of frame a word
belongs to is decided by the previous frame's control bits, which replaces a
test against two hardcoded ISR addresses that recognised the samples of two
known builds and nothing else. Secondary words are parsed into a nine-register
file; writing register 1 or 2 recomputes fs = MCLK/(2 x A x B) and the frame
period with it. Register reads, the no-op register, forced secondary and
software reset are handled.

bridge.LineToCodec resamples line audio to whatever rate the codec currently
reports, so the harness can keep carrying the line at a fixed rate without that
rate reaching the DSP. A 2100 Hz tone now measures 2100 Hz after conversion
instead of 1575.

Booting 302 through the ROM recovers the six reset registers, 7200 Hz, and a
frame period of 3472 - the constant it replaces, now derived.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 10:48:03 +12:00
Cryan209andClaude Opus 5 a5aab8dde1 Correct the AC01 sample rate: MCLK is 2.880 MHz, not 3.840
The 9600 Hz figure was the harness's DAA_SAMPLE_RATE, not a measurement.
codec-sample-rates.md already derives 7200/7578.95/8000 Hz from the DTMF phase
increments and the V.34-indexed divider table; solving those against A = 10
gives MCLK = 2.880 MHz from all three, exactly 40.320/14, with FCLK = 144.000
kHz - the datasheet's own characterization point. A is never reprogrammed
because the 3.6 kHz anti-alias corner depends on it alone.

Records the consequence: the frame interrupt already runs at 7200 Hz while
every generator filling the receive queue assumes 9600, so the firmware sees
every frequency scaled by 4/3.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 10:33:00 +12:00
Cryan209andClaude Opus 5 bf6da96eca Decode the AC01 codec protocol from the datasheet and the DSP firmware
The TLC320AC01's secondary-frame mechanism is driven entirely from the C5x
XINT handler, which ORs a request code into the two LSBs of every DAC word and
revectors its own B2 dispatch cell for exactly one frame to send the control
word. Six registers are programmed at reset; they select free-run conversion,
+6 dB input gain, the high-pass filter, and fs = MCLK/400.

Records the disassembly, the runtime trace confirming it, the decoded register
values, and what the emulator currently discards.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 10:25:56 +12:00
Cryan209 9f490fde0e Integrate recovered DSP boot ROM and correct C5x interrupt handling 2026-09-07 02:14:34 +12:00
Cryan209andClaude Opus 5 3dada88cc5 Boot the emulated DSP from the recovered ROM
load_rom with the image read off the board, MP/MC = 0 and a start at 0x0000
boots it as the disassembly reads: 0x0670, PMST and wait-state setup, then a
read of data 0xffff to choose a boot mode.

That word is the mode selector. Its low two bits must be 0 to reach the serial
paths, and bit 2 then chooses between the 8-bit variant at 0x06f7, which
assembles words from byte pairs, and the 16-bit one at 0x06e2. Reading 0 gets
the 8-bit path, which is why the first attempt parsed the header as nonsense.

The boot table is destination, length, block, read over the serial port and
written with TBLW. One detail matters when feeding it: the terminating CMPR EQ
runs at the top of the loop, so one further word has to clock through after the
last block word. Without it the loader has written the whole block correctly and
still sits waiting, which reads as a failure until the iteration count is
counted - it was exactly four writes for a four-word block.

With the 27710-word 302 resident the loader completes and branches to 0x8000,
and the firmware runs its prologue once and parks in the idle at 0x814d - the
place the hand-forced set_pc reaches, now arrived at through the part's own
boot path.

Two consequences: the ASIC is converting the supervisor's parallel window at
ports 0x40-0x5e into serial words, a role for it not previously identified; and
interrupts now dispatch through the ROM's lamm/bacc table, so the timer runaway
at 0x0088 is the absence of ROM rather than a fault in the firmware.

Recorded as run standalone: bridge.py still forces the PC and runs MP/MC = 1,
and RRDY in this core is fed from the codec queue, which is harness plumbing
rather than a claim about the pin.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 01:58:37 +12:00
Cryan209andClaude Opus 5 c425997709 Read the DSP's on-chip ROM off the board
artifacts/dsp-onchip-rom-01/c5x-onchip-rom.bin is 2048 words taken from the DSP
of the live 20.16 MHz Courier, sha256 3e30fb31...e93f67.

Delivery was already proven: 2096 ATGLK2W writes place the monitor image and a
read-back matches byte for byte. What was missing was the trigger, and the PCB
dump found it - timer 0 runs with T0CMPA at the 25200 tick but with its INT bit
clear, so the tick is polled, not vectored. Writing T0CON = 0xa021 starts the
monitor.

Two things had to be got right. The read does not need SARAM: the 56-word
sample probe read program 0x0000-0x001f from a kernel at 0x8000 and got the
vector table back, so the protection option is not programmed and the bldp
staging only added a way to fail. And the board's watchdog resets a halted
monitor after about a second and a half, which the addressed print format does
not fit - the first full attempt printed 491 words and was cut off, losing the
collected buffer because the firmware clears RAM on reboot. The dump now prints
four hex digits a word and is taken in two halves.

What came back is the boot loader. Program 0x0000 is a vector table whose reset
slot branches to 0x0670 and whose interrupt slots are `lamm @6x / bacc`,
dispatching indirectly through DARAM B2 - which is what the 302 prologue's
clear of 0x60-0x7f prepares. 0x0670 sets PMST.RAM, programs wait states, then
reads data 0xffff for a boot source word, dispatches on its low two bits and
takes a destination address into BMAR.

That settles the memory map by measurement. MP/MC = 0: program 0x0000-0x07ff is
on-chip ROM, not the external RAM an unwired A15 would alias there. The boot
loader is what starts the downloaded program, so dsp_download's entry_word is a
boot-table destination rather than an assumption the scan enforces. And the
firmware's IPTR = 1 vectors at 0x0080 land inside this ROM, which is why no
build ever writes a vector table and why the emulator's timer runs away at
0x0088 with nothing under it.

Corroborated twice: a truncated earlier run agrees on all 491 words it returned,
and the sample probe returned 0x0000-0x001f independently.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 01:51:21 +12:00
Cryan209andClaude Opus 5 65069e94bd Read the PCB off the board; timer 0 runs but never interrupts
ATGLK2=FF00, decoded against the 80C186EB manual in docs/. The EB's PCB map is
not the plain 80186's, and three readings elsewhere in this repository were
against the wrong registers.

0xff56 is P1LTCH, the Port 1 output latch - so the pulse the supervisor performs
before the DSP download, bit 3 low then high, is a PIO pin, and P1.3 is the
DSP's reset line. It reads high, reset released. That turns the "reset-shaped"
argument in dsp-map-302.md into a named pin.

0xff46 is T2CON and 0xff40/0xff42 are T2CNT/T2CMPA, so the download routine's
mov [0xff46],0xc000 and test [0xff46],0x20 start timer 2 and poll its max-count
bit. They are a timeout, not an ASIC handshake.

T0CON = 0x8021: EN set, counter moving, T0CMPA exactly the 25200 the timebase
note derived - but bit 13, INT, is clear. Timer 0's tick is polled, not
vectored, which is why interrupt vector 8 pointed at a routine did nothing while
the modem stayed alive. TCUCON already has the timer unit unmasked, so
T0CON = 0xa021 is the whole fix.

Also recorded: serial channel 0 is interrupt types 20 and 21, so vector 0x0c is
INT0, an external pin and almost certainly the ASIC - an earlier guess that it
was the UART was wrong about the peripheral. And the monitor's own output path
is correct: f70666ff0800 assembles to test word ptr [0xff66], 8, which is what
the firmware's transmit loop at 0x27f04 does.

Placement is proven on hardware: 2104 writes, zero failures, read back byte for
byte against diagnostic-ram.bin with zero mismatches.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 00:51:21 +12:00
Cryan209andClaude Opus 5 71769fe46e Emit the placement commands, and move the image into free RAM
tools/emit_ram_writes.py turns a built RAM image into ATGLK2 commands: word
writes for the image, page dumps to verify it, and the IVT hook that starts it,
in three separate files because they carry very different risk. It reads its
own output back and compares it against the image before writing anything - a
transcription or endianness slip there would be silent and would then run as
code.

Generating them exposed that the default layout is not usable on the board.
ram-probe-delivery.md surveyed live RAM for pages reading as zero, and
0x2000-0x20ff and 0x2c00-0x2dff are not among them, so the image spanning
0x2000-0x306f would be written over RAM the firmware is using and could crash
it before the hook is armed. The --rom-dump build now loads at 0x3000 with
routines at 0x3400, kernel at 0x4000 and result buffer at 0x8000: the image
occupies 0x3000-0x406f, entirely inside the surveyed 20 KiB block, and the
buffer sits in the 12 KiB block.

Moving it needed the layout to stop being module constants. Code takes an
origin, build_diagnostic derives the load addresses, and Diagnostic carries
them so the machine and the manifest stop assuming the defaults. The sample
probe keeps the old layout and is unchanged.

One constraint surfaced by the move: the relocated download routine addresses
the kernel through a segment immediate patched into it, so the kernel must be
paragraph-aligned and that constant has to move with it. It now derives from
the layout; before, moving the kernel silently transferred the wrong bytes and
the run failed with "downloaded bytes do not match the probe".

Both builds complete offline: 2048 packets with rom_matches_fixture true, and
the 56-word probe unchanged at 56.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 00:15:03 +12:00
Cryan209andClaude Opus 5 1aaecb7e4d Carry the whole-ROM reader through the existing delivery path
probe_transport already builds everything needed to get a kernel onto the DSP:
a RAM monitor, the reference's own launch and download routines relocated out
of flash, the boot handshake, and a mailbox collection loop. It was carrying
the 56-word sample probe. --rom-dump swaps in the 2048-word reader that stages
its TBLR loop into SARAM, and moves every count and buffer baked into the
monitor with it.

The kernel now lives in dsp_probe.build_rom_dump_probe so the transport and
tools/rom_dump_gadget.py share one definition rather than two copies. The
Diagnostic carries its own count, result buffer, sum and status addresses, so
neither the monitor nor the machine assumes the module constants; the result
buffer moves to 0x8000 because 2048 words need 4096 bytes rather than 112; and
the DSP step budget, a flat 10000 sized for 56 words, becomes 10000 + 40 per
word. Without that last change the run stalls at 587 words with ERR MAILBOX.

The serial frame declares its own length - CDRP1 DATA 0800 - so one parser
serves both sizes, and a capture that parses as a ROM dump is written out
beside it as serial.rom.bin.

Offline the chain completes: download_matches_kernel and
download_checksum_matches true, dsp_launched true, 2048 packets and 2048
acknowledgements, and rom_matches_fixture true - every word back equals the
fixture the harness mapped as on-chip ROM. That exercises the delivery,
staging, block read, sender, collection and framing. It establishes nothing
about the silicon: the fixture is synthetic and this core models neither the
protection option nor a real boot loader.

A ROM dump also carries no controls or completion marker, so the capture check
is frame integrity and checksum only. Recorded in the doc, with the warning
that uniform or bus-like data is not proof of a readable ROM.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 00:09:01 +12:00
Cryan209andClaude Opus 5 1f8a0f93d7 Settle how the DSP starts from the supervisor's own download order
This argument rests on no reading of PMST, on nothing measured off the board,
and on nothing the emulator models - only on the 80186 download path,
disassembled out of IDSDL302.ROM.

The call site passes the destination 0x8000 to a launch routine at 0xe3aa and
only then calls the block transfer at 0xe47b. The launch routine writes that
destination into the ASIC window at ports 0x40/0x42, pulses bit 3 of PCB
register 0xff56 low and back high across a delay - reset-shaped - and waits for
the far side to answer before returning. All of that happens before a single
byte of the program is sent.

The transfer routine then ends without starting anything: it writes the
accumulated checksum to 0x40/0x42, submits it with out 0x18,4, waits for the
acknowledgement and returns. No entry address is written after the block and no
go command is issued.

So the part is released from reset first and the program arrives afterwards; it
is executing something while the block is fed to it, and something must
transfer control when the block ends because the supervisor never does. At that
moment external program memory is the RAM the download is about to fill, and
with A15 unwired program 0x0000 is that same empty RAM. The DSP cannot be
executing external memory at reset. It is executing on-chip ROM, so MP/MC = 0.

The C5x boot loader is what that ROM holds: it transfers a program to anywhere
in program memory and releases control to it, which is the missing go.

Records the resulting program and data maps, and notes that bridge.py's
MP/MC = 1 plus set_pc(entry_word) is a stand-in for that loader - and the
reason the timer runs away at 0x0088, with no ROM under the vector table.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:57:57 +12:00
Cryan209andClaude Opus 5 5abba10bde Fix the mailbox delivery: wrong bit, and wrong storage
`BIT dma, code` on the C5x tests bit 15 - code, not bit `code`; the core
evaluates (~op >> 8) & 0xf. So the dispatcher's `4f7d`, which disassembles as
`bit 15, @7d`, tests bit 0, the sender's `4e7d` tests bit 1, and the resume
poll's `4d7d` tests bit 2. bridge.py raised 0x8000 for pending and 0x2000 for
resume, so the DSP's poll never saw either.

Driving the dispatcher directly measures it. Run the resident as far as the
bldp so the helper is installed at 0x23f0, stage a tag, word and status, and
enter through the service loop's own call site at 0x80c8 - which is what sets
ARP to 1; jumping straight to 0x839b leaves `*` reading whichever AR the
prologue left selected, and the helper reads the wrong address. With the flag
on bit 15 the dispatcher returns and nothing is consumed. With it on bit 0 the
word arrives in @7a and @57 comes back as exactly 0x0001 - the dispatcher's own
`lacl #01 / samm @57` overwriting the 0x0100 marker staged with it, so an
acknowledgement rather than the value handed in.

That run also exposed a second fault on the same path. The tag and word were
staged in the I/O ports, not in data cells: `lamm` masks to 0x7f and reads a
memory-mapped register, and this core resolves 0x50-0x5f through the I/O ports,
so _write_host_cell's set_data wrote a cell nothing reads. The `lacc *` half
loads the data cell and `lamm *` immediately overwrites the accumulator with
the register. _write_host_cell now writes the I/O view alongside both data
views and _read_host_cell folds it in.

Together these are the cause of the symptom this repository recorded as "the
tag and word arriving and bit 15 never being consumed".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:50:24 +12:00
Cryan209andClaude Opus 5 f9701e0c5f Build a ROM-dump gadget that reads from SARAM, not from the bank
TI's program-memory protection option blocks instructions fetched from off-chip
memory, DARAM B0, external DMA and the emulator from reading on-chip program
memory. On-chip SARAM is not on that list, and this part has 9K of it mapped
into program space by PMST.RAM.

The firmware already demonstrates how to put code there: its prologue block
moves the mailbox helper into SARAM with bldp through BMAR. tools/rom_dump_gadget.py
stages a read loop the same way and calls it, so the RPT/TBLR that walks the
2K ROM executes on-chip rather than from the downloaded bank at 0x8000.

Run with no arguments it executes the kernel against a synthetic ROM in the
native core and checks all 2048 words come back; --disasm prints it through
this repository's own disassembler instead of trusting hand-assembled opcodes.
Both pass.

That establishes the instruction sequence and nothing about protection: the
core does not model the protection option, so a passing offline run cannot
distinguish a part that would have refused. The point is that this variant has
a reason to work where the 0x8000-resident probe has a reason to fail.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:38:03 +12:00
Cryan209andClaude Opus 5 56b0baacb4 A15 is not wired; find the timer vectoring into nothing at 0x0088
Read off the board: the DSP's A15 goes nowhere. It cannot be an address input
to a 32Kx8 part and it is not in the chip-select decode either, so nothing
distinguishes external 0x0000-0x7fff from 0x8000-0xffff and the 32K-word RAM
answers both as one memory. The alias is a board fact, not a hypothesis.

It does not settle MP/MC, because it turns out to be invisible nearly
everywhere: across a 20M bridge run of 302 plus the V.34, FSK and VPCM runs
there are no data accesses at all in 0x2c00-0x7fff, so the shared window at
0x8000-0xfeff already covers every data access there is.

Where it is not invisible is the vectors. The same instrumentation finds 2,524
contiguous external program fetches below 0x8000, starting at 0x0088 - which
with IPTR=1 is TINT, the timer, two words per slot from the 0x0080 base. The
timer is hardware-vectored there, finds nothing, and runs up through empty
program memory until it reaches 0x8000 and re-enters the reset prologue. That
explains why the bldp at 0x80a7 executes 40 times in a bridge run and once
standalone: the DSP is restarting forty times.

XINT at 0x008c is the slot _configure_frame_interrupt arms by hand at 0x800c,
which is why only the timer runs away.

This withdraws the caution that no hardware-vectored interrupt had been
observed. It also sharpens the vector question now that A15 is known: under the
alias 0x0088 is image 0x8088, `dmov @18`, live prologue code. So 0x0080-0x00bf
is not the aliased RAM either way, and on-chip ROM in microcomputer mode is the
only thing the part can put there - which is where the boot loader lives, and
is consistent with MP/MC being unwired.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:33:08 +12:00
Cryan209andClaude Opus 5 9eb8064ca4 Rule out the installed-vector rescue, and record the boot loader
Logging every PM_WRITE16 across a 20M-instruction bridge run of 302 gives three
writes in total, all the bldp at 0x80a7 into 0x23f0-0x23f2. The firmware never
writes a vector table, so the alias cannot be rescued by having it install one
over the prologue at 0x8080-0x80bf after that code has run.

The C5x's optional on-chip boot loader supplies what the microcomputer-mode
reading was missing: it transfers a program from data memory or the serial port
to anywhere in program memory and then releases control to it. That accounts
for the entry at 0x8000 being straight-line code with no branch, for
dsp_download's entry_word being a boot table destination rather than the scan's
own assumption, for nothing ever being downloaded below 0x8000, and for the
vector base at 0x0080 sitting in ROM the firmware neither owns nor writes.

Recorded with what still keeps it open: the boot loader is optional and mask
programmed, and no hardware-vectored interrupt has ever been observed here -
_configure_frame_interrupt installs an explicit vector that the core takes
before consulting IPTR, so 0x0080 is read off PMST, not watched.

Also correct the board question. A15 cannot be an address input to a 32Kx8
part; A0-A14 go to both RAMs with the data split, and A15 can only appear in
the chip-select decode. What matters is what drives /CE.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:28:26 +12:00
Cryan209andClaude Opus 5 675fe2db39 Withdraw the a3f0 argument; the vector base is what the alias fails
The claim that A15 aliasing was disproved by program 0x23f0 colliding with the
live code at 0xa3f0 was wrong. program_region tests SARAM before external and
PMST.RAM is set, so 0x23f0 is on-chip whichever way A15 decodes and an aliased
external RAM is never consulted there.

The sizing objection does not land either: two 32Kx8 SRAMs are 32K words and
the part addresses 64K words, so the RAM covers half the space however it is
decoded, and a 2K on-chip ROM shadows none of it.

What the alias does fail is the vector base. The core's PMST layout is
confirmed behaviourally - RAM must be bit 4 and OVLY bit 5 or opl #00b0 leaves
SARAM unmapped and the 302 boot breaks - and that same layout makes bit 7
IPTR's LSB, so IPTR is 1 and the base is 0x0080. IRQ 5 then vectors to 0x008c,
which under the alias is image 0x808c: `samm @32`, live prologue code, with
interrupts enabled thirty words later at 0x809f.

So 0x0080-0x00bf must be memory that is not the aliased RAM, which is what
microcomputer mode puts there. Both readings are recorded; they disagree only
about what answers program 0x0000-0x07ff, and a continuity check on the board
would settle it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:21:52 +12:00
Cryan209andClaude Opus 5 bd1b0f293a Gate the shared window on the image, and fix what it broke
The previous commit claimed the resident performs no data read in
0x8000-0xfeff but the bldp's. That count was taken on the boot path alone, and
taking it for the whole firmware was wrong: the V.34 arming path reads data
0xfea1 six times from 0xd668, walking the capability descriptor list.

That read is not evidence against the shared model - 0xfea1 is above the
resident's 0xec3d and above the highest overlay's 0xf8b5, so it is free RAM in
use as data, which is what one memory answering both spaces predicts. What it
exposed was a harness split: set_data and data() reached m_data while the
running program reached m_program, two arrays for one RAM, so a staged
descriptor was invisible to the code that read it. Both accessors follow the
window now.

main211.xmf is a different matter. It offers a first segment at origin 0x0000
alongside one at 0x8000, and which is its real payload is unresolved, so the
harness cannot say where its RAM sits; with the window on, its call-overlay run
never armed IMR. NativeC5x now switches the window off when any program segment
origin is below 0x8000, leaving such an image exactly as it was. The window is
a fact about the 20.16 MHz ROM downloads, whose segments are all at 0x8000 or
above, and an open question elsewhere.

Seven tests across test_v34.py and test_bridge.py were failing on the previous
two commits and pass again. 302 is unchanged by the gating: one bootstrap, idle
at 0x814d, 120 shared-window accesses.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:16:09 +12:00
Cryan209andClaude Opus 5 a8a211d895 Record that the firmware never selects MP/MC, and that reset lands on 0x8000
Disassembling all four overlays of both images and keeping only writes to @07
reached with DP=0 finds exactly two PMST writes in each, both in the resident,
none in any overlay: `apl @07,#07f8` and `opl @07,#00b0`. The apl mask
preserves bit 3 and the opl mask does not touch it, and bit 3 is MP/MC. So the
firmware sets RAM and OVLY and defers to whatever the pin latched at reset.

That answers whether microcomputer mode ever coincides with PMST.RAM: not from
the firmware, and not from the harness either, since the probe kernels that
force the pin low write PMST as 0x0000.

It also sharpens the reset question. Every download origin in both images is
0x8000 or above, nothing is ever written below it, and bridge.py covers the gap
by calling set_pc(entry_word) by hand. Program 0x8000 holds `ldp #000` and
straight-line initialisation rather than a branch - which is what reset should
land on, not what a vector points with. Aliasing external program fetches to
address | 0x8000 and starting at 0x0000 reproduces the boot exactly: one
prologue pass, the same rptz repeat counts at the aliased addresses, the same
idle at 0x814d.

So "program space ignores A15" is the reading the evidence supports, which is
also what wiring a 32Kx16 RAM across a 64K space gives you. It is recorded, not
modelled: the alias would make main211.xmf's origin-0x0000 and origin-0x8000
segments overwrite each other, and which is the real payload is still open.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:53:21 +12:00
Cryan209andClaude Opus 5 7897246f76 Check the core's regions against the C50 memory-map figures
The guide's three figures - program space in each MP/MC mode, and local data
memory - agree with the core's constants everywhere but one: a 'C50's on-chip
ROM is 2K at 0x0000-0x07FF, where C5X_ROM_WORDS is the 'C52's 4K. That window
does not exist on this board, which runs MP/MC=1, and the probe kernels in
dsp_probe.py and fsk.py use microcomputer mode to host 4K synthetic drivers of
their own, so shrinking it would break fixtures and model nothing. It is
recorded in both places instead of changed.

The figures also supply what the shared external window was missing: a reason.
Nothing is on-chip above 0x2BFF in data space, and nothing above it in program
space either with CNF clear, so a reference to 0x8000-0xFEFF is an off-chip bus
cycle in both spaces - the same address on the same pins. One RAM answering
both is a board that does not separate the strobes, not a trick.

The header comment still described the part as a C52 with no SARAM. It now
describes the C50 the board carries and quotes the maps it is checked against.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:40:03 +12:00
Cryan209andClaude Opus 5 e915079837 Share the board's external RAM between the DSP's two spaces
302's prologue block-moves its mailbox cell-read helper into SARAM with `bldp`
from data 0x80f5, which only yields code if a data read there returns the
downloaded program. An earlier attempt at that was reverted as a regression.

The measurement that note asked for - every data access at or above 0x2c00,
logged with its PC - says the revert was wrong. Across a 2M instruction run the
302 resident touches exactly twenty-five sites: writes at 0xfff0-0xfff7 and
0xff51-0xff5f from the prologue, reads of 0xff60/0xff61, and three reads of
0x80f5-0x80f7 by the bldp. In 0x8000-0xfeff there is no read but the bldp's, so
there is no second read that could depend on getting something other than
program words.

data_region now returns a Shared region for 0x8000-0xfeff, backed by the
program storage in both directions, and the memory map reports data_shared
alongside data_external. The window stops below 0xff00 because the firmware's
own ASIC pages are DP 0x1fe/0x1ff; its exact edges are not otherwise measurable
from a run.

The effect on 302 is not subtle. Copying zeros into 0x23f0 made the
dispatcher's calld execute nothing and the part fall into unloaded low memory
and re-enter its own reset prologue - four passes in 200k instructions, PC at
0x0115 after 20M, 16.3M external program fetches. It now boots once, runs the
real helper out of SARAM, and parks in the idle at 0x814d waiting for a frame
interrupt the harness does not yet deliver: 67k external fetches, 7155 SARAM.

403 is byte-identical either way, with data_shared zero, because it keeps the
same helper in-bank at 0x80e8 and never reads program space as data.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:35:33 +12:00
Cryan209andClaude Opus 5 16e42582fa Question the 0x8000 origin: it is assumed, not measured
0x8000 is also the CPU's flash segment, and the two uses are tangled.
CourierRom.dsp_download filters candidates on DSP_ENTRY_WORD = 0x8000, so the
ROM path's origin is enforced by the scan rather than observed. And main211's
first segment is loaded at origin 0x0000 while the code in it is linked for
0x8000: its stream sender is at word offset 0x05d5 and branches to 0x85d5,
calls 0x85da, and stores #85c9. The segment actually labelled origin 0x8000
holds unrelated content with no sender, agreeing with the first in 11 of its
first 4096 words.

So segment origins and link addresses disagree in both directions. Either an
origin is wrong or the program space ignores A15. dsp_mailbox.py's constants,
taken through the ATGLK2 monitor on a physical modem, agree with the 0x8xxx
addresses used here; whether they were read back by address or derived under
the same assumption is not recorded.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:23:26 +12:00
Cryan209andClaude Opus 5 9371022341 Narrow the external-RAM question: reads are what regress, not writes
Aliasing data 0x8000-0xfeff to the program storage wedged the DSP; doing it
for reads only wedged it identically, so some read in that range must not
return program words. The firmware's direct addressing agrees that the range
is unusual for it: every ldp page it uses is DARAM 0x00-0x07, SARAM 0x10 and
0x17, or the ASIC window 0x1fe/0x1ff, with none in between, so whatever reads
there does so through an address register.

So 0x80f5 must read as the downloaded image while something else in the same
range must not. Both experiments reverted.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:20:45 +12:00
Cryan209andClaude Opus 5 e1b070cf7f Record what fills the SARAM, and that the obvious fix for it regresses
The prologue sets BMAR to 0x23f0 and bldp's three words from data 0x80f5 into
program space. Those words in the downloaded image are 1080 0880 ef00 -
lacc * / lamm * / ret - the cell-read helper the 302 dispatcher and resume
poll calld on every pass, which 403 does not need because it keeps the same
helper in-bank at 0x80e8. So the firmware fills SARAM by reading its own
downloaded program through data space.

Routing data accesses in 0x8000-0xfeff to the program storage to make that
read work regressed the run: the DSP went from running across its prologue to
idle, 3991 of 3999 samples on the wait at 0x814d, with data writes landing on
program code. Reverted; how a data read at 0x80f5 reaches the image is open.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:16:49 +12:00
Cryan209andClaude Opus 5 c6061d62e1 Pin the SARAM window, and withdraw the mirroring claim
SPRU056D gives 0x0800-0x2BFF twice for the 9K part: in program space with
CNF=0, RAM=1, MP/MC=1, leaving 0x0000-0x07FF and 0x2C00-0xFFFF off-chip, which
is where the external program RAM sits; and in data space in table 8-8 with
OVLY=1, alongside the registers, B2, B0 and B1. 0x23f0 is in the first, and
the prologue's 0x0800-0x08ff and 0x0b80-0x0bff clears plus the 302 ring at
0x0bd0 are in the second.

The previous commit read "A15-A14 ignored" as general mirroring. That is table
8-15, address ranges during external DMA, and describes a DMA master's view,
not the CPU's addressing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:09:15 +12:00
Cryan209andClaude Opus 5 38222e3896 Identify the DSP as a C50 from the guide's memory tables
SPRU056D table 1-1 gives on-chip memory per device: 'C50 has 9K SARAM, 'C53
3K, 'LC56 6K, and 'C52 none at all with a single serial port and no TDM. With
PMST.RAM set the guide maps the 9K part's SARAM into program space at
0x0800-0x2BFF, which contains the 0x23f0 helper 302's dispatcher calls on
every message; a 3K part reaches 0x13ff and a 6K part 0x1fff.

That plus the firmware setting RAM and OVLY at all, and the harness modelling
a TDM ISR the 'C52 has no port for, makes the part a 'C50 or 'LC50. The guide
also notes the 9K SARAM decodes with A15-A14 ignored, so it mirrors - which an
earlier single-address test at 0x8080 was too narrow to detect.

Leave the core's C52 map in place and note the discrepancy at its definition.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:07:05 +12:00
Cryan209andClaude Opus 5 9ebcc43310 Retract the handlers below 0x8000; the table is 121 entries
Reading 0x80 dispatch-table entries ran off the end. The table is 0x00-0x78,
as dsp-rom-probe.md already said, and the words at "tags" 0x79-0x7c are the
stream resume poll's prologue: bc00 ldp #000, be41 setc intm, 7e80 23f0 calld
23f0. They match across both builds because they are instructions. So no
handler sits below 0x8000, and tag 0x7b, the DAA identity, is outbound with no
inbound slot.

What remains is 0x23f0, which 302's dispatcher and resume poll both calld on
every pass. With external RAM holding the program at 0x8000-0xffff, that
helper is on-chip program memory - consistent with the firmware setting
PMST.RAM and OVLY, and needing roughly 7.2K words of SARAM to reach. 403 keeps
the same helper in-bank at 0x80e8.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:04:12 +12:00
Cryan209andClaude Opus 5 4a8cdac002 Record the board's four SRAMs and size the DSP's program space
Scott identified them: 2x NEC D43256BGU-70LL on the 80186 and 2x CY7C199-15VC
on the DSP, 64 KB each. The DSP's pair is 32K words on a 16-bit program bus -
exactly 0x8000-0xffff, which is the range the overlay downloads fill
(0x8000-0xf8b5 on 302, 0x8000-0xf949 on 403). That retires the note's problem
of not fitting ~62 KB of downloads into the single IS61C256AH in the parts
list; that part is not the DSP's.

It does not explain the handlers below the range - 0x23f0, called by 302's
dispatcher on every message, and 0x7e80 on both images. Those must be on-chip
unless low program space mirrors the top, and mirroring is not supported: with
A15 undecoded 0x0080 would alias to 0x8080, which holds ordinary code, not the
vector table IPTR implies.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 22:01:42 +12:00
Cryan209andClaude Opus 5 0460745c5d Size the DSP's external program memory from the overlay table
Every overlay is written into program space, so their span is a lower bound on
what has to exist: 0x8000-0xf8b5 on 302 and 0x8000-0xf949 on 403, about 31K
words or 62 KB, before the handlers at 0x23f0 and 0x7e80 below.

That exceeds the single ISSI IS61C256AH-15J in the parts list - 32 KB is 16K
words on a 16-bit program bus, roughly half - so either a second part is on the
board outside the photo, or some of this memory is in the ASIC, which already
holds the DSP in reset and writes its program RAM. board-parts.md does not say
whose bus that SRAM is on.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:53:33 +12:00
Cryan209andClaude Opus 5 6e7c6e7f52 Infer from the code what memory exists, not which C5x it is
Every dispatch-table handler below the resident bank is one of three
addresses: 0x23f0 on 302, from tag 0x7c and from the dispatcher's own calld,
and 0x7e80 on both images from tag 0x7b. Neither is filler - twelve slots are
0x0000 and eight share 0x8222, while these are each reached from one tag.

That gives a part with SARAM, since PMST.RAM and OVLY are set and data at
0x0800-0x08ff and 0x0b80-0x0bff is used with the 302 ring at 0x0bd0. It also
gives external program memory, since 0x7e80 is past every C5x's on-chip SARAM
on any member. And because 0x7e80 must be external, 0x23f0 need not be on-chip
either, so the datum that would have separated a 9K part from a 3K one
dissolves - retracting the previous commit's lean toward the larger member.

The correction is the memory map, not the part number.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:51:42 +12:00
Cryan209andClaude Opus 5 2c79b62447 Argue the part is a C5x with SARAM, not the C52 the core models
The instruction census rules out a C2x: splk, samm, lamm, bsar, bd/calld/retd/
retcd, lacc16, bcnd, bldd, smmr/lmmr and apl/opl/xpl have no C25 encoding.

But the core hard-codes a C52 - "no SARAM at all", PMST.RAM and PMST.OVLY
don't-cares, everything from 0x0800 up External - and the firmware's prologue
sets exactly those two bits, opl @07, #00b0 being RAM, OVLY and IPTR's LSB. A
build sets RAM and OVLY only on a part with SARAM to map, and IPTR 1 puts the
vector table at 0x0080, which needs on-chip memory there.

The addresses agree: the prologue clears 0x0800-0x08ff and 0x0b80-0x0bff, the
302 ring is at 0x0bd0, and the dispatcher's helper is at program 0x23f0 - all
off-chip on the modelled C52, and 0x23f0 beyond a 3K SARAM part's reach.

Inference from the firmware's own PMST write and its addresses, not from a
part marking; the board photo shows only a custom USR number. The memory-map
change this implies has not been made or tested.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:49:32 +12:00
Cryan209andClaude Opus 5 b13f56d9e7 Locate 302's service loop, and correct the dispatcher entry
The loop is at 0x80c8 and makes the same three calls per iteration as 3.1.2's
at 0x80bb: dispatcher, message sender, stream resume poll. The dispatcher
entry is 0x839b, one word before the setc intm quoted earlier - ldp #000 comes
first, as in 3.1.2.

PC sampling puts nothing at any of those four addresses, so the DSP does not
reach the loop; the idle wait poll at 0x814d collects 237 samples. Record the
sampling artefact too: 0x801d's 1617 samples are the reset prologue's rptz
block clear, not repeated resets - a run creates the core once and bootstraps
once.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:41:43 +12:00
Cryan209andClaude Opus 5 2f9cb958a4 Map the 302 DSP mailbox, and mark it as 302-only
The addresses in who-produces-the-events.md are the 403 board image's. Reading
the same landmarks out of IDSDL302.ROM shows the builds differ in substance,
not just offsets: 3.0.13's dispatcher reads 0xFF57, 0xFF5E and 0xFF5F through
a helper at 0x23f0, where 3.1.2 reads 0x57, 0x5e and 0x5f through lamm; the
ring is at 0x0bd0 rather than 0xff60; the table base is 0x8401 rather than
0x83e9. Tag 0x42 -> 0xb05e matches dsp_mailbox.py's note, so that comment is
3.0.13's.

Two consequences. _deliver_host_message writes the 3.1.2 cells, so on 302 it
leaves the cells the dispatcher reads untouched - which is why the tag and
word arrived and bit 15 was never consumed. And 302's table points below its
own segment, to 0x23f0 and 0x7e80, which no overlay in the image provides;
that contradicts the other note's "a ROM needs nothing below 0x8000" and the
conflict is left open rather than explained away.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:32:15 +12:00
Cryan209andClaude Opus 5 8079e583f6 Repair the corrupted note, and record that no transfer completes yet
4fe31a0 committed a 693,624-line file: its edit sliced between two headings in
the wrong order, so the slice was empty and str.replace inserted the new text
between every character. Restore the note from 181fb39 and reapply the edit
against explicit, order-checked anchors.

Content is unchanged from what 4fe31a0 intended - a ROM has no origin-0000
image, so its vectors are at the resident bank's own base and IRQ 5 is armed
at origin + 0x0c - plus the new measurement: with that armed, 5e/5f carry each
tag and word, but @57 sits at a000 forever, so bit 15 is never consumed and
the dispatcher has not run; @57 never shows 1, 2 or 4; io60 stays ffff; and
the ring pointers stay equal. No transfer completes in either direction, and
the obstacle is the DSP not reaching 0x8387 inside the supervisor's window.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:22:30 +12:00
Cryan209andClaude Opus 5 4fe31a08b9 Arm the ROM frame interrupt at the resident bank's own vector base
A flash ROM has no origin-0000 DSP image: dsp_overlays lists four, entering
at 8000, 9d00, b000 and dc00 on both boards. So there is no low block to find
and the previous note's framing was wrong - the resident bank is the program
and its vectors are at its own base.

The core vectors a hardware interrupt to (iptr << 11) | ((irq + 1) << 1),
which is 000c for IRQ 5 with iptr zero: unloaded memory, and the woken part
ran away there. The same slot above a 0x8000 base is 800c, inside the bank the
supervisor downloaded. Arming that takes the core out of idle and puts its PC
across its own code, including the call sequence that precedes the mailbox
service loop at 0x80bb.

ATY12 still times out, so this is not the last piece, but the DSP now runs its
own firmware instead of sitting halted.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:18:09 +12:00
Cryan209andClaude Opus 5 181fb39f9b Look for the DSP's low block; report that it is not in what the slicer finds
CourierRom.dsp_program_segments builds one segment from the download call
site with entry_word as the origin, and its docstring already says whether
the rest of the datapump reaches the DSP another way is unestablished.

That segment opens with the same prologue an XMF places at origin 0000, with
a two-word deletion, so a positional diff shows 3 of 16 words while the shape
is shared. The core implements IPTR, and c5x_core.cpp notes the firmware's own
APL #0x07f8, @07 clears it - an instruction in this prologue - so the vectors
belong at 0000.

Loading the same segment a second time at origin 0000 lets the woken core run
real low-address code instead of running away, but ATY12 still times out and
one program at two origins models nothing; it is recorded only as evidence
the low range works once populated. The block itself has not been found.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:11:48 +12:00
Cryan209andClaude Opus 5 0c272c7369 Identify the DSP's wake interrupt as IRQ 5, and the block it vectors into
Firing each candidate at the core: IRQ 5 takes it out of idle, IRQ 4 and IRQ 6
leave it parked. That agrees with the interrupt the harness already arms for
the XMF build and with the ISR at 0x8188, which ends in rete and zeroes @6b -
the cell the idle loop at 0x813b waits on.

Arming it is not sufficient. The woken core's PC goes to program 0x000c and
stays: a flash image yields only the origin-0x8000 segment, while an update
payload also carries origin 0x0000, and the C5x fetches its vectors from low
program memory. Program 0x8000..0x803f holds no vector table either, so they
are not relocated into the resident bank.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:07:25 +12:00
Cryan209andClaude Opus 5 769f88fe31 Find what calls the dispatcher: a service loop behind an idle wait
The DSP calls 0x8387, the sender at 0x83bf and the stream resume at 0x8462
from one service loop at 0x80bb, every iteration. Reaching that loop means
getting past six calls to 0x8138, which is samm/lacl #03/idle and loops back
into idle until @6b reaches zero.

Sampling the core's state shows idle true and 1316 of 3999 PC samples in that
region: the C52 is parked in idle waiting for interrupts that never arrive, so
the loop never runs and the dispatcher is never called. The mailbox wiring is
not the missing piece; the DSP's periodic interrupt is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 21:02:04 +12:00
Cryan209andClaude Opus 5 316648660a Correct the delivery claim, and find the bit the resume actually tests
The resume poll at DSP 0x8462 tests bit 13 of the status latch, not the
absence of bit 2, then reads the vector a stream handler armed at cell 0x039e
and bacc's into the coroutine. Both stream handlers arm it the same way: tag
0x06 at 0x8470 and tag 0x45, ATY12's, at 0x860a. The acknowledgement now
raises bit 13.

It still gets one word, and instrumenting the acknowledgement says why: @57
reads 8000 there, so bit 15 is still up and the dispatcher at 0x8387 has never
consumed the message, and 039e is 0000, so no handler has armed a stream. The
previous commit read a jump in @57 and ring-pointer write counts as the
handler running; that was the DSP's own periodic work, and this measurement
retracts it. Nothing in the modelled core calls the dispatcher.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:58:25 +12:00
Cryan209andClaude Opus 5 f8e4904399 Write down the mailbox round trip and where the emulator drops it
Both halves are now mapped, so record the ten steps of a CPU-initiated probe
and the stream variant that branches after the dispatch.

The emulator stops at step 4: the bridge intercepts the four mailbox ports and
never writes DSP cells @5e/@5f or @57 bit 15, so the dispatcher at 0x8387
never runs. _answer_runtime_request stands in for exactly two tags, 0x7c and
0x54; everything else, ATY12's 0x45 included, is recorded and dropped. That is
upstream of the empty displays - no handler runs, so nothing reaches the ring
and the sender has nothing to drain.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:35:16 +12:00
Cryan209andClaude Opus 5 675420c971 Locate the DSP's mailbox handler and its dispatch table
The receive side is at program 0x8387: bit 15 of status latch @57 means a
message waits, the tag is cell @5e and the word is cell @5f, the DSP
acknowledges with bit 0 to @57, tags above 0x7f are rejected, and the rest
index a 128-entry table whose base the arithmetic puts at 0x83e9.

The table cross-checks against tags this repository knew only from the CPU
side: 0x06 -> 0x8470 as dsp_mailbox.py states for 3.1.2, 0x42 the simple
write, 0x45 the tag ATY12 sends, 0x7c the detector poll, 0x7b the DAA
identity. The outbound ring producer sits directly after the dispatch, and
the three samm @57 values separate receive-ack, send-complete and the stream
bit the CPU reads as 1c bit 2.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:33:30 +12:00
Cryan209andClaude Opus 5 2ea7f49e2d Attribute the line events to the DSP, and bound the part to C5x
The DSP program writes exactly three mailbox ports: 5e/5f from the message
sender at 0x83d6, which drains a two-pointer ring in DSP data memory, and 0x60
from the stream sender at 0x849e. Nothing in it writes 58, 5a, 5c or 1c. So
the words the supervisor reads as events originate in the DSP and the ASIC
only transports and remaps them.

The stream's seventh word is computed by a packer that normalises the sum of
two data cells into an exponent and mantissa - a level, computed in the DSP.

On the part: splk, samm, lamm, bsar, bd/calld/retd/retcd, lacc16, bcnd, bldd,
smmr/lmmr and apl/opl/xpl are all C5x with no C2x encoding, so it is not a
C25. C50/C51/C52/C53 share the ISA, so "C52" remains an assumption.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:28:45 +12:00
Cryan209andClaude Opus 5 ad378eff3d Attribute the 60/62 window to the DSP and map it onto 7.4.16
Calling channel 2 a diagnostic side-channel was wrong. dsp_mailbox.py already
identifies its producer against hardware: the DSP's sender at 84b7 (3.0.13) /
849e (3.1.2) writes port 0060 and raises the status bit the CPU reads as 1c
bit 2. The ASIC only bridges.

ATY12 is a sibling of the tag-06 stream that tool drives - same window, tag
0x453f against 0x063f, a 32-word collector against 12. Record that all these
addresses are 7.3.14's, and give the 403 board's equivalents: vector [0x01cd],
trampoline 0x0067b, trigger 0x06d52, ATY12 0x06efe, count cell [0x0836].

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:21:57 +12:00
Cryan209andClaude Opus 5 b28423e175 Record the CPU-side line interface on the 20.16 MHz board
Two line signals reach the 80186 directly rather than through the ASIC event
channel: ring sense on port 0x14 bit 1, sampled by a tick-driven cadence
machine vectored through [0x0ada] with debounce counters against [0x0cd2];
and a four-bit part identity bit-banged at 0x287f9 over ports 0x12 and 0x14,
read back on port 0x14 bit 3, stored at [0x014b] and branched on at six sites.

Everything else about the line - every level, every call-progress tone - is
behind the ASIC, which is why the detector qualification runs off event 0x08's
data word. Both images carry both structures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:18:41 +12:00
Cryan209andClaude Opus 5 7bead0b161 Find IDSDL302's own detector path instead of main211's
The DAA's detector_qualified counts audio samples, and main211 counts polled
reply levels in 1..0x60 via [0x0649]. IDSDL302 uses neither: its counter is
[0x0cc0], its wait is at 0xb784, and the update at 0x14fca is "test ah,1 /
inc or reset", where AH is the high byte of the data word accompanying event
0x08, read from ports 0x5e/0x5c at 0x14dd8. The 403 image is the same design
at [0x0b9e] / 0x14fdc / 0x0b7c2.

So for these images qualification comes from the event stream, not from a
poll, and the requirement lands back on the channel that carries nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 20:14:38 +12:00
Cryan209andClaude Opus 5 0f6e0dd651 Mark the ATY4 events as forged and test the real bridge instead
The injected events are fabricated and exercise only the firmware's display
path. Say so at the point of use rather than only in the caveats.

Every run so far used a CPU-only machine while the project's own line model -
CourierDspBridge, which owns ports 0x58/0x5a/0x5c/0x5e and 0x1c, with a DAA,
LineLink, LineExchange and the C5x core - was never instantiated. Enabling it
changes execution but still yields no events: the port is read once and
returns 0xff, rejected by cmp al,0x76. Record that, and that machine.py does
not use the recorded asic_ports idle map at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:51:16 +12:00
Cryan209andClaude Opus 5 c142d1a0b0 Show the ATY4 gate is unreached rather than dead
Execution coverage under event injection records the path into the row
printer: event 0x08's handler falls through the cadence detector at 0x14e30
and reaches 0x14f13 by ordinary flow, with the stack frame belonging to the
call [0x298] event dispatch. There is no caller to find, which is why the
static scans came up empty.

The same run reaches extension entry 8 at 0x48e3f for the first time. 0x48e32
and 0x491b9 still do not execute; both are separate routines needing a real
caller, so for those the same explanation is inference, not demonstration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:47:09 +12:00
Cryan209andClaude Opus 5 5e6ebba2ec Establish the ATY4 row format by injecting call-progress events
The row printer at 0x14f13 is reachable after all; the earlier claim that it
was dead rested on a static scan that found no caller. Channel 1 is live but
reads 0xff from port 0x58 on every one of 5596 invocations, and the dispatch
site rejects anything at or above 0x76 before calling [0x298], so no event
ever reaches the display.

Forcing AL to a table event code while [0x298] holds the call-progress state
prints a row and executes the gate. The printer emits the event byte as two
decimal digits through the aam path at 0x9dbd, then two spaces: an ATY4 row
is a run of call-progress event codes in decimal, not signal levels.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:36:59 +12:00
Cryan209andClaude Opus 5 8b44aa13ad Separate the dead diagnostic channel from the live modem event channel
The earlier note left the impression that the whole word-input path was
inert. Counting port traffic separates it: the ISR at 0x12d3c runs 2882
times, ports 0x58/0x5a see 2878 reads, and the [0x298] modem state machine
is driven normally. Only channel 2 - status bit 2 with data on ports
0x62/0x60, feeding the [0x2d3] collector - never signals, and that is the
one ATY11, ATY12 and ATY17 wait on.

Record what ATY4 arms: [0x298] = 0x5782, which in this module's actual code
segment 0x8f43 is file 0x14bb2, a dispatch over a 36-entry call-progress
event table at file 0x14b40/0x14b64. The dial arms it six times and the
state is entered once, so no row is produced. Its row printer at 0x14f13
executes zero times and has no discoverable caller.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:19:44 +12:00
Cryan209andClaude Opus 5 c3c33c7a39 Trace the ATY diagnostics to the word-input path that never fires
ATY11, ATY12 and ATY17 render empty and ATY4 prints only its banner. All of
them wait on the same thing: the [0x2d3] step vector is armed and never
advances, because port 0x1c bit 2 - the reply-word-ready signal guarding the
call [0x2d3] trampoline at 0x0674 - never asserts, so no word is ever read
from ports 0x62/0x60. ATY12's zeros are its handshake timing out, not an
empty reply.

Expose the Unicorn handle on the machine so a console script can sample
firmware variables; that is how the handshake flag, retry count and reply
buffer were read.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 19:06:24 +12:00