mirror of
https://github.com/D-Modem/courier-emu.git
synced 2026-11-28 20:38:07 -08:00
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>