XL1200-EMU Symbolics XL1200 Emulator
Architecture & Guides docs/macivory-vs-xl1200-fep.md

Architectural Comparison: MacIvory Device-PROM & IFEP-Kernel vs. XL1200 FEP 3.30

This document compares the MacIvory coprocessor FEP binaries (Device-PROM, IFEP-Kernel) against the physical standalone XL1200 Boot PROM (115988 + 115989 / rom.dump), covering container formats, driver hierarchies, and how MacIvory disk images are converted for use in the C11 XL1200 emulator (emu/).

NOTE

Local-Only Assets: MacIvory binaries (docs/reference/macivory/fep/), MacIvory C substrate sources (docs/reference/macivory/substrate/), macivory/ disk/CD-ROM images, and physical Boot PROM dumps (ivory-fep-roms/) are git-ignored local-only files (fetched with scripts/fetch-assets.sh or supplied by the user) and are not distributed in this repository.


1. Binary Identification

All of these images share the same checksummed IFEP prom sectioned container format parsed by emu/src/loader.c (30-byte "IFEP prom<rev>" header, LE 5-byte words [Data<7:0>, Data<15:8>, Data<23:16>, Data<31:24>, Tag&CDR], 32-bit byte-sum section checksums, and [entry_vma, 0xFFFFFFFF] footer):

Binary Image (Local-Only)Header MagicSectionsDecoded WordsEntry VMATarget PlatformRole
XL1200 Boot EPROM (fep330/115988-e + 115989-e)IFEP promJ225,0680xF8007162Standalone XL1200 / XL400Motherboard physical EPROMs (128 KiB container)
XL1200 Boot EPROM (Older) (fep320)IFEP promB2~24,830—Standalone XL1200 / XL400Older motherboard physical EPROMs
UX solstice-device.promIFEP promE218,4520xF8005816Sun UX CoprocessorHost-loaded embedded device driver PROM
MacIvory Device-PROMIFEP promE2~17,120—MacIvory NuBus CoprocessorHost-loaded MacIvory device driver PROM
MacIvory IFEP-KernelIFEP promH349,0050xF8017F9FIvory FEP Common KernelResident FEP Core Operating System

Key Takeaways

  1. Identical Container Packaging: All images use the IFEP prom sectioned format with little-endian 5-byte word packing ([b0..b3, tag]).
  2. Device-PROM cannot boot standalone XL1200 hardware: Device-PROM (IFEP promE) was compiled for NuBus coprocessors and contains no WD33C93A SCSI chip driver, no ESDI driver, and no Merlin video/DUSCC console drivers. It expects a Macintosh host serving embCommunicationArea queues.
  3. IFEP-Kernel is the common Ivory FEP core: On a standalone XL1200, IFEP promJ loads the equivalent kernel.fep from a 1,280-byte/sector SCSI disk (FEP7:) or ISO 9660 CD-ROM (CART11:).

2. Driver Hierarchy Comparison

graph TD
    subgraph "Standalone Hardware Driver Stack (FEP 3.30 - promJ)"
        XL_SCSI["MERLIN-WD33C93-SCSI-CONTROLLER<br/>(Physical WD33C93A SCSI Chip)"]
        XL_ESDI["MERLIN-ESDI-CONTROLLER<br/>(Physical ESDI Controller)"]
        XL_VID["MERLIN-VIDEO-MEMORY / PHOTON / VME<br/>(Physical Hardware Framebuffers)"]
        XL_KBD["MERLIN-HARDWARE-KEYBOARD<br/>(SCN68562 DUSCC + 8237A DMA)"]
        XL_TAPE["BOL-QIC-100-TAPE<br/>(Physical SCSI Tape)"]
    end

    subgraph "Host Life-Support Driver Stack (Device-PROM - promE)"
        MAC_SCSI["EMB-SCSI-CONTROLLER<br/>(Host Macintosh SCSI Queues)"]
        MAC_DISK["MACIVORY-PSEUDO-DISK-CONTROLLER<br/>(Virtual Disks on Host Files)"]
        MAC_CONSOLE["EMBEDDED-CONSOLE / COLD-LOAD<br/>(Host QuickDraw Window Stream)"]
    end

    subgraph "Common Object-Oriented Framework (Both)"
        COMMON_DISK["SCSI-DISK, BASIC-DISK, SIMPLE-DISK"]
        COMMON_TAPE["SCSI-TAPE, BASIC-TAPE"]
        COMMON_STREAM["DISK-STREAM, DISK-BUFFER, STREAM"]
        COMMON_FLAVORS["FLAVOR, VANILLA, CONDITION"]
    end

2.1 Comparative Driver Class Table

Driver Flavor ClassFEP 3.30 (promJ)Device-PROM (promE)ClassificationArchitectural Function
MERLIN-WD33C93-SCSI-CONTROLLERPresent—Hardware OnlyDrives physical Western Digital WD33C93A SCSI chip
WD33C93-SCSI-CONTROLLERPresent—Hardware OnlyWD33C93 base class and register operations
EMB-SCSI-CONTROLLER—PresentCoprocessor OnlyDelegates SCSI commands to host embCommunicationArea
MERLIN-ESDI-CONTROLLERPresent—Hardware OnlyDrives physical Merlin ESDI disk controller
ESDI-CONTROLLER / ESDI-DISKPresent—Hardware OnlyESDI disk block controller and geometry
MACIVORY-PSEUDO-DISK-CONTROLLER—PresentCoprocessor OnlyDrives virtual disk partitions hosted on Macintosh
MACIVORY-PSEUDO-DISK—PresentCoprocessor OnlyVirtual sector mapping over host file streams
CONSTANT-GEOMETRY-DISKPresent—Hardware OnlyFixed physical geometry disk driver
MERLIN-VIDEO-MEMORY / PHOTON / VMEPresent—Hardware OnlyDirect hardware monochrome/color framebuffers
SCREEN / WINDOW / SHEETPresent—Hardware OnlyDirect hardware bitmapped console window system
EMBEDDED-CONSOLE / COLD-LOAD-CONSOLE—PresentCoprocessor OnlyStreams console opcodes (0000–0201) to host window
MERLIN-HARDWARE-KEYBOARDPresent—Hardware OnlyPhysical SLB keyboard over DUSCC + 8237A DMA
BOL-QIC-100-TAPEPresent—Hardware OnlyPhysical cartridge tape controller
SCSI-DISK / SCSI-CDROM / SCSI-TAPEPresentPresentCommonStandard SCSI disk, ISO 9660 CD-ROM, and sequential tape drivers
BASIC-DISK / SIMPLE-DISK / STREAMPresentPresentCommonAbstract block-device and buffer layers
FLAVOR / VANILLA / CONDITIONPresentPresentCommonObject system runtime and condition handlers

3. Host Life-Support Handshake (MacIvory Reference)

On MacIvory (documented in local-only docs/reference/macivory/substrate/):

  1. The Macintosh host allocates embCommunicationArea (identifying itself with big-endian 'DBME' -> Ivory little-endian "EMBD"), maps NuBus RAM for the pseudo-BootROM ('ivBR'), and releases Ivory reset.
  2. Ivory sets guest_status = InitializingGuestStatus (2) and pulls Device-PROM and IFEP-Kernel chunks through host queues.
  3. Once IFEP-Kernel initializes, guest_status transitions to RunningGuestStatus (3) and all console/disk/network traffic travels over shared host queues.

4. Using MacIvory Disks on the Standalone XL1200 Emulator (emu/)

Rather than emulating MacIvory NuBus coprocessor queues, the from-scratch C11 emulator (emu/) emulates native standalone XL1200 Merlin-II hardware (IFEP promJ, WD33C93A SCSI, Intel 82586 Ethernet, SCN68562 DUSCC + 8237A DMA, monochrome VRAM).

MacIvory FEPFS disk images store every 32-bit word in Motorola 68k big-endian byte order (magic "LBAL" instead of "LABL"), often preceded by a 0x400-byte Macintosh header and 13 zeroed label pages (pages 0..12, with the first valid "LBAL" at offset 0x400 + 13 * 1280 = 0x4500).

The native C11 converter ivory-fep-convert (emu/src/fep_convert.c, also embedded in the emulator GUI and s7 workbench via emu/include/ivory_fep_tools.h) non-destructively converts MacIvory images into native XL1200 little-endian "LABL" SCSI disk images:

# Inspect either a big-endian MacIvory (LBAL) or little-endian XL1200 (LABL) image
./emu/build/ivory-fep-convert --info macivory/macivory_fep0.raw

# Convert MacIvory LBAL -> native XL1200 LABL (strips 0x400 prefix, restores pages 0..12, bswap32)
./emu/build/ivory-fep-convert macivory/macivory_fep0.raw emu/disks/xl1200_macivory_fep0.raw

# Or auto-convert and boot with a non-destructive RAM overlay:
./scripts/run-xl1200-macivory.sh

For clean native XL1200 installations from the Genera 8.3 CD-ROM without using a MacIvory disk image, see Genera 8.3 CD-ROM Installation Guide and Peripherals & Backends.

Related Chip Datasheets (6)All Component Datasheets →