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

Symbolics XL1200 / Ivory FEP Boot ROM Structure

1. Physical Chip Configuration

On physical Symbolics Merlin-II workstations (XL400, XL1200, XL1201), the Boot PROM subsystem consists of two 64 KiB 27C512 EPROMs:

  • Part 115988: Lower 64 KiB (0x00000–0x0FFFF), starting with the 30-byte "IFEP prom<rev>" container header.
  • Part 115989: Upper 64 KiB (0x10000–0x1FFFF), continuing the section payload, checksums, and footer.

Joined in order (115988 ‖ 115989), the two EPROMs form a contiguous 128 KiB (131,072-byte) sectioned IFEP prom container image (verified in emu/src/loader.c):

  • FEP 3.30 (IFEP promJ): 2 sections totaling 25,068 words (125,340 payload bytes + 30B header + section headers/checksums + 8B footer = 125,402 active bytes, zero-padded to 131,072 bytes).
  • FEP 3.20 (IFEP promB): Earlier Revision B release (~24,830 words, zero-padded to 131,072 bytes).
NOTE

Physical EPROM dumps are user-supplied, git-ignored local files and are not distributed in this repository. See Boot PROM Specification for CLI and xl1200.scm loading instructions.


2. IFEP prom Container & 5-Byte Word Packing

The Boot PROM is not executed in place as a flat raw-mapped ROM; it is a checksummed IFEP prom container unpacked into Zone 31 RAM (VMA = PMA, pma = vma & 0x07FFFFFF).

2.1 Section Record Structure

Offset   Size        Field
------   ---------   -------------------------------------------------------
0        10 bytes    ASCII magic "IFEP prom" + 1-byte revision char ('J', 'B', ...)
10       20 bytes    5 little-endian uint32_t header words
30       variable    One or more section records:
                       uint32_t vma_base   (LE)
                       uint32_t word_count (LE)
                       word_count * 5 B    packed 40-bit Ivory words
                       uint32_t checksum   (LE: unsigned 32-bit byte sum of payload)
end-8    8 bytes     Footer:
                       uint32_t entry_vma  (LE)
                       uint32_t 0xFFFFFFFF (LE sentinel)

2.2 40-Bit Word Packing (5 Bytes per Word, Little-Endian)

Inside every section payload, each 40-bit Ivory word is stored in 5 consecutive bytes as a 32-bit little-endian payload word followed by a 1-byte Tag & CDR field:

Byte Offset:   +0          +1          +2           +3           +4
Field:      [Data<7:0>] [Data<15:8>] [Data<23:16>] [Data<31:24>] [Tag & CDR]
  • 32-bit Payload (Bytes +0..+3): ptr = Byte[0] | (Byte[1] << 8) | (Byte[2] << 16) | (Byte[3] << 24)
  • Tag & CDR Byte (Byte +4):
    • Bits <7:6> (2 bits): CDR / instruction-sequence code:
      • 00_2 (0): CDR-NEXT / IVORY_SEQ_PC_PLUS_1 (normal Even -> Odd -> next word)
      • 01_2 (1): CDR-NIL / IVORY_SEQ_FENCE (list terminator or non-executable trailer)
      • 10_2 (2): CDR-NORMAL / IVORY_SEQ_PC_MINUS_1
      • 11_2 (3): CDR-JUMP / IVORY_SEQ_PC_EVEN_2_ODD_3 (single Even/fullword instruction, skips Odd slot)
    • Bits <5:0> (6 bits): 6-bit Data Type (DTP) tag (0o00..0o77):
      • 0o00: DTP-NULL
      • 0o03: DTP-HEADER-I (compiled function & structure headers)
      • 0o10: DTP-FIXNUM
      • 0o24: DTP-NIL, 0o25: DTP-LIST, 0o30: DTP-SYMBOL
      • 0o34: DTP-COMPILED-FUNCTION
      • 0o50..0o57: Full-word call starters (CallCompiledEven, CallCompiledOdd, CallIndirect, CallGeneric, prefetch variants)
      • 0o60..0o77: Packed 18-bit halfword instructions (Even in <17:0>, Odd in <35:18>)

3. Verified FEP 3.30 (IFEP promJ) Memory Map

Unpacking FEP 3.30 via ifep_load_rom_files() + ifep_install() yields two contiguous Zone 31 RAM sections:

SectionLoad VMA RangePhysical PMA RangeWord CountChecksum
Section 00xF8001088 – 0xF80071F20x00001088 – 0x000071F224,938Verified 32-bit byte sum
Section 10xF8001000 – 0xF80010820x00001000 – 0x00001082130Verified 32-bit byte sum
Total0xF8001000 – 0xF80071F20x00001000 – 0x000071F225,068All sections verified
  • Entry Point VMA: 0xF8007162 (Even phase, inside Section 0).
  • Boot Comm Reference: Word 0xF8007164 is DTP-EXTERNAL-VALUE-CELL-POINTER (CDR-JUMP) pointing to 0xFFFE0001 in the wired Boot Communication Area (0xFFFE0000..0xFFFE003F).
  • Execution Mode: Cold boot begins in TRAP-MODE-FEP (Mode 3), probes hardware (Merlin-II PIT, MK48T02 NVRAM, IO0 SRAM/ID ROM, monochrome VRAM, SCN68562 DUSCC + 8237A DMA console/keyboard, ESDI, and WD33C93A SCSI), displays the interactive Device PROM banner, and loads kernel.fep from disk or CD-ROM.
NOTE

Historical Note (Earlier Misinterpretation): Early reverse-engineering notes (prior to decoding the IFEP prom container in emu/src/loader.c) treated rom.dump as a flat raw ROM mapped at 0o777400000 with byte order [Data<31:24>, Data<23:16>, Tag, Data<15:8>, Data<7:0>] and a byte-swapped reset vector 0x2b62/0x622b at 0o777400100. Those values were artifacts of reading across the 30-byte header and section boundaries without unpacking the container. The true layout is the LE 5-byte sectioned container documented above, verified end-to-end by booting authentic FEP 3.30 and Genera 8.3.


4. Recovered Device Drivers & Subsystems

The IFEP promJ image contains an object-oriented driver framework implemented in Symbolics Flavors:

  • Video Subsystems:
    • MERLIN-VIDEO-MEMORY, PHOTON-VIDEO-MEMORY, VME-VIDEO-MEMORY, SCREEN, WINDOW, SHEET
  • Mass Storage & Controllers:
    • MERLIN-WD33C93-SCSI-CONTROLLER, WD33C93-SCSI-CONTROLLER, SCSI-CONTROLLER, DISK-CONTROLLER
    • MERLIN-ESDI-CONTROLLER, ESDI-CONTROLLER, ESDI-DISK
    • SCSI-DISK, SCSI-CDROM (ISO 9660), SCSI-TAPE, BASIC-TAPE, BOL-QIC-100-TAPE
    • CONSTANT-GEOMETRY-DISK, SIMPLE-DISK, BASIC-DISK, DISK-BUFFER, DISK-STREAM
  • Console & Input:
    • MERLIN-HARDWARE-KEYBOARD, HARDWARE-KEYBOARD, SOFTWARE-KEYBOARD, KEYBOARD
    • CONSOLE-KEYBOARD, SERIAL-CONSOLE, EMBEDDED-CONSOLE, KEYBOARD-DEMULTIPLEXING-STREAM
  • Core Flavors Runtime:
    • FLAVOR, VANILLA, CONDITION, REFERENCE-COUNTING-MIXIN, ENCAPSULATING-STREAM

See Also

Related Chip Datasheets (5)All Component Datasheets →