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