Tech Trivia

Apollo 11 Landed on the Moon With 4 KB of RAM: The Computer That Got Us There

The Apollo Guidance Computer had about 4 KB of RAM, a 1 MHz clock and code woven by hand. How it worked, and how the 1202 alarm nearly stopped the landing.

Watch the Short

The 60-second version is on YouTube. This article is the full story.

New Shorts every week on tech trivia, AI and gadgets.

Subscribe to TheTechPrana

Key takeaways

  • The Apollo Guidance Computer had about 4 KB of working memory and ran at roughly 1 MHz. A single phone photo is hundreds of times bigger.
  • Its programs were stored in 'core rope' memory, woven by hand at Raytheon by threading wires through or around tiny magnetic rings.
  • During the landing, 1202 and 1201 alarms warned the computer was overloaded. Margaret Hamilton's team's software dropped low-priority jobs and kept flying, and Mission Control called 'Go'.

On 20 July 1969, two astronauts landed on the Moon with the help of a computer that had less memory than a single photo on your phone. It weighed as much as a large dog, its software was literally sewn together by hand – and minutes before touchdown, it started flashing alarms nobody in the cockpit understood.

The Short above counts it down. Here’s the whole story of the Apollo Guidance Computer (AGC).

Number 4: about 1 MHz

The AGC’s internal clock ran at about 1 MHz (a 2.048 MHz crystal, divided by two).

A modern phone processor runs at around 2–4 GHz per core – thousands of times faster – and has several cores working at once. Yet the AGC handled navigation, guidance and engine control for a trip to the Moon and back.

Number 3: 70 pounds

The whole computer weighed about 70 pounds (32 kg) and fitted in less than a cubic foot. That was remarkably small for 1960s computing, when many computers filled entire rooms.

Astronauts talked to it through the DSKY (“display and keyboard”), a panel where they typed two-digit “verb” and “noun” codes – for example, “display” plus “velocity”.

Number 2: software woven by hand

The AGC had two kinds of memory:

  • About 4 KB of working memory (RAM), made of tiny magnetic rings called cores. Technically, it was 2,048 words of 16 bits each – roughly 4 KB.
  • About 72 KB of permanent program memory, called core rope memory.

Core rope is the astonishing part. To store a “1”, a wire was threaded through a tiny magnetic ring; to store a “0”, the wire went around it. The finished programs were literally woven into bundles of wire.

That weaving was done by hand at Raytheon’s factory in Waltham, Massachusetts, largely by women hired for their skill and precision – some of them experienced in textile work. Once woven, the software couldn’t be changed, so it had to be right before it was built.

Number 1: the 1202 alarm

As the lunar module Eagle descended towards the Moon, a yellow light came on and the computer showed program alarm 1202. Neither Neil Armstrong nor Buzz Aldrin knew what it meant. Armstrong asked Mission Control for a reading on it.

What it meant

The computer was overloaded. A switch for the rendezvous radar – a system needed only if the crew had to abort and return to the command module – had been left in a position that kept sending it extra data. That flood of unnecessary work took up processing time the computer needed for landing.

Why the landing didn’t fail

The software had been designed to handle exactly this kind of trouble. When it ran out of capacity, it restarted and dropped low-priority jobs, keeping the essential ones – steering the descent and updating the display – running. That priority scheduling was part of the flight software developed at MIT’s Instrumentation Laboratory, where Margaret Hamilton led the team behind it.

“We’re Go on that alarm”

In Mission Control, 26-year-old guidance officer Steve Bales had seconds to decide whether to abort. Backing him up was computer engineer Jack Garman, who had made a handwritten list of every possible alarm code after a training simulation days earlier. Garman knew that as long as the alarms didn’t come continuously, the computer was coping.

Bales called “Go.” The crew heard: “We’re Go on that alarm.” In total there were four 1202 alarms and one related 1201 alarm during the descent – and Eagle landed safely.

The twist: 4 KB is tiny

About 4 KB of RAM – that’s roughly 4,000 bytes. A single photo on your phone is typically 1–5 MB, hundreds or even thousands of times larger. This short article’s text alone takes up more space than the AGC’s working memory.

It’s a reminder that what got Apollo to the Moon wasn’t raw computing power. It was careful engineering, tightly written software and well-prepared people.

Margaret Hamilton’s recognition

In 2016, Margaret Hamilton received the Presidential Medal of Freedom for her work on the Apollo flight software. She’s also widely credited with popularising the term “software engineering”.

Quick recap

  • ~1 MHz clock speed
  • 70 lb – the whole computer
  • Woven by hand – core rope memory at Raytheon
  • 1202 – the overload alarm that the software (and Mission Control) handled
  • ~4 KB of RAM – less than one phone photo

Your turn: could you code with 4 KB? Tell us in the YouTube comments.

Sources

  1. Ken Shirriff: Software woven into wire – core rope and the Apollo Guidance Computer (2019)
  2. Wikipedia: Apollo Guidance Computer
  3. Royal Museums Greenwich: Apollo 11 Moon landing minute by minute
  4. Smithsonian Air & Space: Troubleshooting 101 (1201 actually, and 1202 too)
  5. Wikipedia: Jack Garman
Apollo 11NASATech historyMargaret HamiltonSpace history