The XMF layout in xmf.py placed main211's first segment at program 0x0000,
and the mask-ROM reasoning in three documents was built on that. The origin
was never measured. The supervisor names its own destination at the download
call site, and it says 8000; its overlay table puts the other 2.1/2.2 rows at
9d00, af50 and dc00. Every branch target in the payload has bit 15 set, which
needs no explaining at that origin and needed masking off at 0x0000.
Recover all four segments the way rom.py does, matching the call site and the
table and identifying the resident as the fall-through row that reproduces
what the call site independently said. That also separates the two families:
2.1.1 and 2.2.05 occupy 8000..ffff, the board's 32K of external RAM, leaving
0000..1fff to the C51's mask ROM; 2.3.x occupies 0000..7fff instead, with its
resident at 1000 and one overlay at program 0000, which no part running mask
ROM there can host.
Three consumers carried the layout too: bridge.py's bootstrap length and its
TDM vector, and c5x_runner.cpp, which held the whole map as C++ defaults and
entered at PC 0. All three now derive it, the runner taking --segment
OFFSET:BYTES:ORIGIN. Both loaders published every segment into the core at
construction, which with correct origins would lay the overlays over resident
code; they load the resident alone, as the board has it at reset.
bootstrap_match stays true at 60344 bytes, and all seven XMFs now boot from
their own origin to the same relative idle.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>