CompactFlash Interface

YACC1’s disk: a CompactFlash card, run in its 8-bit IDE mode and reached through two I/O ports. It is what lets the Y1/OS operating system leave the emulators: the monitor’s O command boots Y1/OS from the card, and the OS reads and writes its files there.

YACC1 memory card 2.0 with the CompactFlash interface, top side
Memory card 2.0, which carries the CompactFlash interface (the CF-to-IDE adapter mounts above its chips on two standoffs) – a rendering of the top side from its KiCad design files (no photo yet).

How it works

  • Five chips – a decoder for the two I/O ports, a latch that picks which of the card’s registers is addressed (and holds its reset line), a bus transceiver for the data, and the gating between them.
  • Two ports – port 8 selects a register on the CompactFlash card, port 9 reads or writes it. A sector is read by writing its number and a READ command, then reading 512 bytes from port 9.
  • Size – sector numbers are 24 bits, so the interface can use up to 8 GB of a card.
  • The card itself – a standard CompactFlash card in a CF-to-IDE adapter, connected by a short 40-wire ribbon.

Status (October 2026)

  • Designed, not built yet. It started as a card of its own (CF card V1.0: designed, routed and checked, never ordered), then moved onto the memory card, which had the most room.
  • Memory card 2.0 carries it: the CompactFlash chips sit under an HX-2118P CF-to-IDE adapter mounted flat on two standoffs, with its card slot at the free top edge and a short ribbon from the memory card’s own IDE header. The board is finished and almost ready to order.
  • The software is ready: the ROM in the machine and both emulators already use ports 8 and 9, and Y1/OS runs from a CompactFlash disk image on the emulators today.
YACC1 CF card V1.0, the stand-alone CompactFlash card, top side
CF card V1.0, the stand-alone version of the interface (designed, routed and checked, never ordered) – a rendering of the top side from its KiCad design files.

Software

  • The monitor ROM reads and writes sectors and boots the OS (command O).
  • Y1/OS keeps its files on the card in its own file system, with directories, the operating system, its commands and their manual pages.
  • A Python tool on the Mac writes a prepared disk image onto a real CompactFlash card.

Design files and documentation