Marius Comper RO

Luminary 99 rev. 1 · Apollo 11 lunar module · listing dated 14 July 1969

Apollo 11’s woven memory, one wire at a time

The instructions in the Apollo 11 lunar module’s fixed memory could not be overwritten in flight: they were woven. For every bit, a wire either passed through a small ring of ferrite or went around it. Pick a word of bank 02, rethread its wires, and see what the computer’s self-check would make of it.

address
word
parity bit

One word’s sixteen sense wires and the core they pass. When the core switches, a wire threaded through it carries a pulse and reads 1; a wire around it reads 0. Click a wire to rethread it.
Bank 02, woven: 1,024 words left to right in strips, 15 data bits and the parity bit top to bottom. A mark is a 1, a wire threaded through its core: copper for data, grey for parity, red in a word you have changed. Click to pick a word.

Memory you could not erase

The Apollo Guidance Computer kept its program in core rope memory. Each word was set by threading sense wires, largely by hand: through a ring of ferrite for a 1, around it for a 0. When a core switched, only the sense wires that passed through it picked up a pulse. Nothing could overwrite the fixed memory in flight; to change the program, the rope had to be woven again.

The fixed memory held 36 banks of 1,024 words each, every word 15 bits plus a parity bit. Apollo 11’s lunar module flew Luminary 99, revision 1. The surviving assembly listing of that revision is dated 14 July 1969, two days before launch.

The drawing shows one word’s sixteen sense wires and a single core. In the real modules each core encoded 12 words: 192 sense wires threaded or bypassed each of a module’s 512 cores, other wires selected which core switched, and selection circuits chose which group of 16 sense wires was read.

A word that makes the sum come out

The computer could check its own rope. Its rope check adds up a bank’s words, with the arithmetic the machine uses, ones’ complement, as far as the bank’s checksum word, and expects the total to equal the bank’s number, plus or minus. The checksum is chosen to bring the sum to that value; the programmers called it the bugger word. In bank 02 it sits at the last address.

For bank 02 the listing prints it at address 05777, page 1593: “CKSM 67044 0”, the word and its parity bit. The 1,024 words of bank 02, as transcribed by the Virtual AGC project, add up to +2 with it. All 36 banks of Luminary 099 add up to plus or minus their own numbers.

00+001+102+203+304−405+506+607+710+811+912+1013−1114+1215+1316−1417+1520+1621+1722−1823+1924+2025−2126+2227+2330+2431+2532+2633−2734+2835+2936+3037+3140+3241+3342+3443+35

The 36 banks of Luminary 099 (bank number in octal) and their sums: each equals plus or minus its own number in decimal.

Each word also carries a parity bit, chosen so that the sixteen bits hold an odd number of ones. On page 1593 the parity bits printed beside the last row of words, 05770 to 05777, are exactly the ones this rule gives.

The first words of the bank

Bank 02 opens at address 04000 with the startup entry, GO. Its first word, 00004, is INHINT: block interrupts. From 04004 come the lead-ins for the timer interrupts, including the one that runs the digital autopilot at 04010. Change one data wire in any of them and the parity check catches the word; the bank sum catches many changes, but not all.

What the page does not show

The weave is simplified: the real rope modules are dense bundles in which each core serves 12 words. This reconstruction uses archival listings: it recomputes the bank sums from the Virtual AGC transcription and checks eight computed parity bits against page 1593. It does not examine any physical rope.

Odd parity catches any single changed bit when the word is read. The bank sum catches many changes but not all: flipping the sign bit of the first word leaves the sum at +2. Some combinations of changes pass both checks.

Share the rope

The link opens bank 02 as flown.

Sources

Every figure on this page is traced in the project’s source notes.

  1. GAP listing “Assemble revision 001 of AGC program LMY99 by NASA 2021112-061”, 14 July 1969: p. 1593 (CKSM 67044) and p. 1285 (SHOW-BANKSUM); scans via Virtual AGC and the Internet Archive.
  2. The Virtual AGC project (Ronald Burkey and contributors): Luminary099.binsource, public domain, proofed against listing pages 1590–1733.