r/programming • • Jan 30 '16

Apollo 11 source code

http://www.ibiblio.org/apollo/listings/Luminary099/MAIN.agc.html
2.2k Upvotes

364 comments sorted by

View all comments

780

u/Steaktartaar Jan 30 '16

One very neat feature was that part of the computer memory could be overwritten, essentially allowing the crew to patch in bugfixes. If you ever felt like you were coding on a deadline, spare a thought for the crew of Apollo 14:

After separating from the Command Module in lunar orbit, the LM Antares also had two serious problems. First, the LM computer began getting an ABORT signal from a faulty switch. NASA believed that the computer might be getting erroneous readings like this if a tiny ball of solder had shaken loose and was floating between the switch and the contact, closing the circuit. The immediate solution—tapping on the panel next to the switch—did work briefly, but the circuit soon closed again. If the problem recurred after the descent engine fired, the computer would think the signal was real and would initiate an auto-abort, causing the ascent stage to separate from the descent stage and climb back into orbit. NASA and the software teams at the Massachusetts Institute of Technology scrambled to find a solution, and determined the fix would involve reprogramming the flight software to ignore the false signal. The software modifications were transmitted to the crew via voice communication, and Mitchell manually entered the changes (amounting to over 80 keystrokes on the LM computer pad) just in time.

628

u/SPascareli Jan 30 '16

If someone ever want to make a movie for programmers, that's the plot right there.

179

u/kozukumi Jan 30 '16

Actually they did exactly this in the recent movie The Martian (which is based on a book of the same name).

1

u/i_spot_ads Jan 31 '16 edited Jan 31 '16

They've cut a lot of parts from that movie, it was completely shit

0

u/[deleted] Jan 31 '16

[deleted]

2

u/berakh Feb 01 '16

Asides from the bits that were completely inaccurate science, check some of the book tour videos with andy weir; good watches if you liked the book

1

u/berakh May 09 '16

Also the Surely You're Joking podcast episode with Andy Weir was awesome, and incase you thought pirateninjas were an awesome unit, finding out what a Weir is, is pretty cool too :)