XL1200-EMU Symbolics XL1200 Emulator
Architecture & Guides docs/boot-rom.md

Front End Processor (FEP) Boot PROM Specification

This document specifies the Symbolics XL1200 / Merlin-II Front End Processor (FEP) Boot PROM binary container format (IFEP prom), two-chip physical EPROM storage (115988 + 115989), emulator loading rules, and Stage-0 Boot Communication Area (*BOOT-SPY-PC*).

NOTE

Original Boot PROMs Are Optional: Physical Symbolics Boot PROM dumps and Genera media are third-party proprietary assets and are not distributed in this repository (all paths under ivory-fep-roms/, genera-original/, macivory/, and docs/reference/macivory/ are git-ignored local-only files). You do not need original EPROM dumps to boot ivory-xl1200 — build the included clean-room open-source Boot PROM (make -C prom → prom/build/custom-rom.dump; see docs/custom-boot-prom.md). This specification documents the IFEP prom container format used by both prom/ and optional physical 115988/115989 EPROM dumps.


1. Physical EPROM Pair (115988 + 115989)

On standalone Merlin-II hardware (XL400, XL1200, XL1201), the 128 KiB Boot PROM image is stored across two 64 KiB (27C512) EPROM chips:

Chip Part NumberPhysical RoleSizeContents
115988-<rev>.binLow half (0x00000..0x0FFFF)65,536 B (64 KiB)Carries the 30-byte "IFEP prom<rev>" header and the lower half of Section 0
115989-<rev>.binHigh half (0x10000..0x1FFFF)65,536 B (64 KiB)Continuation of Section 0, Section 1, checksums, footer, and trailing padding

Concatenating 115988 followed by 115989 yields the contiguous 128 KiB container image (rom.dump, 131,072 bytes). Common physical revisions:

  • FEP 3.30 (Rev J): 115988-e.bin + 115989-e.bin (magic "IFEP promJ")
  • FEP 3.20 (Rev B): 115988-b.bin + 115989-b.bin (magic "IFEP promB")

2. Proven IFEP prom Sectioned Container Format

As verified by emu/src/loader.c and emu/tests/test_loader.c, physical Boot PROM dumps are not flat memory images mapped directly at 0o777400100. Instead, the concatenated EPROM bytes store a checksummed, sectioned IFEP prom container that the Stage-0 boot sequence unpacks into Zone 31 RAM (VMA = PMA, stripping bits <31:27>).

2.1 Binary Layout

+--------------------------------------------------------------------------+
| 30-Byte Header (bytes 0..29)                                             |
|   bytes [0..9)   : ASCII magic prefix "IFEP prom" (9 bytes)              |
|   byte  [9]      : Revision character ('J', 'H', 'E', 'B', ...)          |
|   bytes [10..30) : 5 little-endian uint32_t header words                 |
+--------------------------------------------------------------------------+
| Section Record (repeated until footer sentinel)                          |
|   uint32_t vma_base    (LE) : Destination Zone 31 VMA                    |
|   uint32_t word_count  (LE) : Number of 40-bit Ivory words (N)           |
|   N * 5 bytes          : Packed 40-bit words:                            |
|                          [Data<7:0>, Data<15:8>, Data<23:16>,            |
|                           Data<31:24>, Tag&CDR]                          |
|                          where Tag&CDR = (cdr_code << 6) | dtp_tag       |
|   uint32_t checksum    (LE) : Unsigned 32-bit sum of all N * 5 payload   |
|                               bytes (mod 2^32)                           |
+--------------------------------------------------------------------------+
| Footer Record (8 bytes)                                                  |
|   uint32_t entry_vma   (LE) : Cold-boot entry VMA (Even phase)           |
|   uint32_t sentinel    (LE) : 0xFFFFFFFF                                 |
+--------------------------------------------------------------------------+

2.2 5-Byte Little-Endian Word Packing

Every 40-bit Ivory word inside an IFEP prom section is stored as 5 bytes in little-endian data order followed by the combined tag/CDR byte:

Byte OffsetFieldBit Layout
+0Data<7:0>Least-significant byte of 32-bit pointer/payload
+1Data<15:8>Byte 1 of 32-bit payload
+2Data<23:16>Byte 2 of 32-bit payload
+3Data<31:24>Most-significant byte of 32-bit payload
+4Tag & CDRBits <7:6> = 2-bit CDR/sequence code (0..3), Bits <5:0> = 6-bit DTP tag (0o00..0o77)

3. Verified IFEP prom Image Inventories

All images below pass full section-checksum verification in emu/src/loader.c:

ImageMagicSectionsTotal WordsLoad VMA Ranges (Zone 31)Entry VMA
XL1200 FEP 3.30 (115988-e + 115989-e / rom.dump)IFEP promJ225,068Sec 0: 0xF8001088..0xF80071F2 (24,938 w)
Sec 1: 0xF8001000..0xF8001082 (130 w)
0xF8007162
MacIvory IFEP-Kernel (local-only)IFEP promH349,005Zone 31 RAM kernel load sections0xF8017F9F
UX solstice-device.prom (local-only)IFEP promE218,452Zone 31 RAM device-driver sections0xF8005816

Because Zone 31 strips bits <31:27> (pma = vma & 0x07FFFFFF), FEP 3.30 unpacks directly into physical RAM at PMA 0x00001000..0x000071F2, and cold execution starts at VMA 0xF8007162 (Even phase) in TRAP-MODE-FEP.


4. Emulator Boot PROM Loading (emu/src/loader.c)

ifep_load_rom_files(lo_path, hi_path, &img) supports both raw 2-chip EPROM dumps and pre-concatenated images:

  1. Explicit split pair (CLI):
    ivory-xl1200 --rom 115988-e.bin --rom-hi 115989-e.bin ...
    
  2. Automatic sibling pairing: Passing a lone 64 KiB 115988 file via --rom 115988-e.bin automatically locates and pairs its 115989 sibling (trying exact, lowercase, and uppercase suffix variants).
  3. Swapped-chip detection: If 115989 is accidentally passed as --rom and 115988 as --rom-hi, the loader detects which chip holds "IFEP prom", warns to stderr, and orders them correctly. Because section checksums span the 64 KiB chip boundary, mismatched PROM revisions are rejected with IVORY_ERR_BAD_CHECKSUM / IVORY_ERR_BAD_FORMAT.
  4. Combined image: A pre-joined 128 KiB dump loads directly via --rom rom.dump.
  5. s7 Scheme configuration (xl1200.scm):
    (define-machine
      :rom '("115988-e.bin" "115989-e.bin") ; or :rom "rom.dump"
      ...)
    

5. Wired Boot Communication Area & *BOOT-SPY-PC*

Before transferring control to 0xF8007162, Stage-0 initialization (ivory_boot_comm_init_xl1200() in emu/src/mem.c) populates the 64-word wired Boot Communication Area at VMA 0xFFFE0000..0xFFFE003F (PMA 0x07FE0000..0x07FE003F):

VMAOffsetSymbol / PurposeValue on Standalone XL1200
0xFFFE0000+0x00*BOOT-EMB-COMMUNICATION-AREA*DTP-NIL (0xF8041200, no coprocessor host)
0xFFFE0001+0x01Hardware/board type wordDTP-FIXNUM 0x209
0xFFFE0002+0x02Zone 31 RAM base locativeDTP-LOCATIVE 0xF8000000
0xFFFE0003+0x03Memory size / config wordDTP-FIXNUM 0x0C00
0xFFFE0004+0x04*BOOT-SPY-PC*DTP-EVEN-PC 0xFFFE0010
0xFFFE0007+0x07FEP comm pointerDTP-LOCATIVE 0xF8040940
0xFFFE000A+0x0ABoot PROM revisionDTP-FIXNUM 330
0xFFFE0010..12+0x10..12Stage-0 Halt Vector3 packed OP_HALT words (+0 = FEP Command: Shutdown / Remote Debugger; +2 = IFEP fatal-trap handler)
0xFFFE0020..2F+0x20..2FMain Board ID ROM (#o777400040)DTP-FIXNUM byte words: 4-byte LE serial (default 1200) + 2-byte LE mfg days since 1982-01-01 (default 3650)
0xFFFE0030..3F+0x30..3FFallback Main Board ID ROM (#o777400060)Identical mirror of +0x20..2F

When the user runs FEP Command: Shutdown (or when IFEP hits an unrecoverable fatal trap), firmware branches through *BOOT-SPY-PC* (0xFFFE0010 or 0xFFFE0012), executing OP_HALT and cleanly halting the CPU.


See Also