TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Source code for the Apollo 11 Guidance Computer

311 pointsby carljosephalmost 11 years ago

28 comments

cramericaalmost 11 years ago
There are some pretty great comments in here:<p>ALARM_AND_ABORT.agc - <a href="http://www.ibiblio.org/apollo/listings/Comanche055/ALARM_AND_ABORT.agc.html" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;listings&#x2F;Comanche055&#x2F;ALARM_AND...</a><p><pre><code> TC WHIMPER -1 # YES. DON&#x27;T DO POODOO. DO BAILOUT. </code></pre> From the Guidance Computer Data Cards -<a href="http://www.ibiblio.org/apollo/CMC_data_cards_15_Fabrizio_Bernardini.pdf" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;CMC_data_cards_15_Fabrizio_Ber...</a><p>&quot;POODOO abort, does software restart (ENEMA) and &quot;GO TO POOH&quot; (flashing Verb 37) unless &quot;AVERAGE G&quot; is running then only software restart&quot;<p>From THE_LUNAR_LANDING.agc - <a href="http://www.ibiblio.org/apollo/listings/Luminary099/THE_LUNAR_LANDING.agc.html" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;listings&#x2F;Luminary099&#x2F;THE_LUNAR...</a><p><pre><code> 033911,000064: 32,3017 06037 FLAGORGY TC INTPRET # DIONYSIAN FLAG WAVING 034090,000243: 32,3241 13247 BZF P63SPOT4 # BRANCH IF ANTENNA ALREADY IN POSITION 1 034091,000244: 034092,000245: 32,3242 33254 CAF CODE500 # ASTRONAUT: PLEASE CRANK THE 034093,000246: 32,3243 04616 TC BANKCALL # SILLY THING AROUND 034094,000247: 32,3244 20623 CADR GOPERF1 034095,000248: 32,3245 16001 TCF GOTOP00H # TERMINATE 034096,000249: 32,3246 13235 TCF P63SPOT3 # PROCEED SEE IF HE&#x27;S LYING 034101,000254: 32,3251 04635 TC POSTJUMP # OFF TO SEE THE WIZARD ... 034102,000255: 32,3252 74126 CADR BURNBABY</code></pre>
评论 #8066521 未加载
评论 #8064290 未加载
dangalmost 11 years ago
The source code is here: <a href="http://www.ibiblio.org/apollo/listings/Comanche055/" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;listings&#x2F;Comanche055&#x2F;</a>. We changed the url to the top-level page which provides an overview.<p>Edit: see subthread below.
评论 #8066666 未加载
DanBCalmost 11 years ago
Not quite sure why this links to the code, and not the top level which has a lot more useful information (such as the simulator needed to run the code).<p><a href="http://www.ibiblio.org/apollo/" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;</a><p>There&#x27;s some more information here: <a href="http://googlecode.blogspot.co.uk/2009/07/apollo-11-missions-40th-anniversary-one.html" rel="nofollow">http:&#x2F;&#x2F;googlecode.blogspot.co.uk&#x2F;2009&#x2F;07&#x2F;apollo-11-missions-...</a>
评论 #8063483 未加载
评论 #8065300 未加载
AmVessalmost 11 years ago
Reading the comments is fun...and a bit scary:<p><pre><code> TC BANKCALL # TEMPORARY, I HOPE HOPE HOPE CADR STOPRATE # TEMPORARY, I HOPE HOPE HOPE</code></pre>
spingsprongalmost 11 years ago
<a href="http://www.ibiblio.org/apollo/assembly_language_manual.html" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;assembly_language_manual.html</a><p>Descriptions of instructions, opcodes, number encoding, etc
dmdalmost 11 years ago
&quot;arranged for by Deborah Douglas of the MIT Museum&quot;<p>That&#x27;s my wife&#x27;s boss; the source material is still sitting on my wife&#x27;s desk!
nsxwolfalmost 11 years ago
Do the famous 1201 and 1202 error codes make an appearance here? My assembly skills aren&#x27;t good enough to find them, I&#x27;m afraid.
评论 #8064262 未加载
评论 #8066071 未加载
评论 #8067195 未加载
spainalmost 11 years ago
<a href="http://www.ibiblio.org/apollo/listings/Comanche055/PINBALL_GAME_BUTTONS_AND_LIGHTS.agc.html" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;listings&#x2F;Comanche055&#x2F;PINBALL_G...</a><p>&gt;Filename: PINBALL_GAME_BUTTONS_AND_LIGHTS.agc<p>Can someone explain what this is? I doubt they had an actual game of pinball in their guidance computer.
评论 #8063357 未加载
评论 #8063371 未加载
评论 #8063353 未加载
评论 #8063405 未加载
评论 #8063490 未加载
hyperlineralmost 11 years ago
Wow. This is really impressive: assembler, real-time systems in space, mission-critical equipment, software that protects lives, etc.<p>Maybe that is too much, causing those writing the next &quot;date finding&quot; app to feel incompetent after reading this.<p>But at least we will know we are standing on shoulders of giants.
rejectedstonealmost 11 years ago
Nice Documentation. I liked this line: 058113,000352: 11,3037 77656 UNIT #PROBABLY UNNECESSARY.
评论 #8063385 未加载
mrweaselalmost 11 years ago
It&#x27;s of cause fun to have this code to look at, but is it really useful? I don&#x27;t mean it in a condescending way, but is this actually someone at, say SpaceX, looks at and goes: &quot;Oh so that&#x27;s how they did that&quot;?
评论 #8064730 未加载
评论 #8063494 未加载
评论 #8064508 未加载
评论 #8064170 未加载
评论 #8063876 未加载
rwinnalmost 11 years ago
<i>Project Apollo features a near-full implementation of the control panels in the Command Module and Lunar Module, and an increasingly accurate simulation of the internal systems (e.g. electrical distribution, fuel cells). Also the Virtual AGC software is supported, which allows you to run precisely the same on-board guidance software as used by the real Apollo Guidance Computer</i><p><a href="http://nassp.sourceforge.net/wiki/Main_Page" rel="nofollow">http:&#x2F;&#x2F;nassp.sourceforge.net&#x2F;wiki&#x2F;Main_Page</a>
hcrispalmost 11 years ago
Isn&#x27;t it true that the AGC was initially designed to be the sole navigation computer, but when the implementation did not meet the requirements for accuracy (due to accelerometer and gyroscope drift), they switched to a ground-based radar system? This meant the AGC became the back-up in case the communications system failed. Does anyone know if the AGC was ever used to make a mission-critical decision in the absence of the ground-based radar system?<p>Edit: I think it was actually the PGNCS that was made back-up [1]. Sorry the comment about Kalman filter had me confused. Apparently PGNCS was still used for maintaining orientation, controlling rockets, and navigation during planned outages.<p>1: <a href="http://en.wikipedia.org/wiki/Apollo_PGNCS" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Apollo_PGNCS</a>
davegaueralmost 11 years ago
For anyone interesting in learning more about this computer system, I highly recommend _Digital Apollo: Human and Machine in Spaceflight_ by David A. Mindell.<p>The hardware limitations! The incredibly low bug count! The memory hand-woven by ladies in a factory! I was blown away by the capabilities of the Apollo computer systems. The craft could have been practically unmanned.<p>Even more impressive, the computers could fly the craft while ALSO being interrupted by and adjusting to human intervention at nearly every step of the process. The pilots and the engineers practically battled over who would be in control of the craft. Fascinating stuff!
kghosealmost 11 years ago
If you are into such things, do take a look at the orbiter project (<a href="http://orbit.medphys.ucl.ac.uk/" rel="nofollow">http:&#x2F;&#x2F;orbit.medphys.ucl.ac.uk&#x2F;</a>) and the NASSP add-on (<a href="http://nassp.sourceforge.net/wiki/Main_Page" rel="nofollow">http:&#x2F;&#x2F;nassp.sourceforge.net&#x2F;wiki&#x2F;Main_Page</a>). I spent many an after-school night flying to the moon by punching codes on a keyboard. It was amazing.<p>edit: Here&#x27;s a video <a href="https://www.youtube.com/watch?v=7VDV6Gdxakc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=7VDV6Gdxakc</a>
stuartkalmost 11 years ago
In MAIN.agc there is a list of bugger words. Not that I know assembly in any meaningful way, but I&#x27;ve never come across this term before.<p>On Googling, it seems to be something to do with a checksum value?
评论 #8063501 未加载
analog31almost 11 years ago
I don&#x27;t know why, but I&#x27;m amused by the fact that there&#x27;s no disclaimer about warranties, express or implied.
ghaffalmost 11 years ago
Also a lot of of good information in this document: <a href="http://www.ibiblio.org/apollo/hrst/archive/1029.pdf" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;hrst&#x2F;archive&#x2F;1029.pdf</a><p>(Much of the Apollo Guidance Computer and software was developed by the MIT Instrumentation Lab, the predecessor to Draper Lab.)
Oculusalmost 11 years ago
The entire source code was actually woven by wire into memory for the Apollo missions: <a href="https://www.youtube.com/watch?v=P12r8DKHsak" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=P12r8DKHsak</a>
vrybas1almost 11 years ago
Story behind the code:<p>TALES FROM THE LUNAR MODULE GUIDANCE COMPUTER <a href="http://www.doneyles.com/LM/Tales.html" rel="nofollow">http:&#x2F;&#x2F;www.doneyles.com&#x2F;LM&#x2F;Tales.html</a>
MrBuddyCasinoalmost 11 years ago
previously: <a href="https://news.ycombinator.com/item?id=3888638" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3888638</a><p>related:<p><a href="https://news.ycombinator.com/item?id=3336584" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3336584</a><p><a href="https://news.ycombinator.com/item?id=6071825" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6071825</a>
drinchevalmost 11 years ago
I&#x27;m interested what computer languages do they use today for space vehicles?<p>I place my bet on static-type :D ( joke )
评论 #8063242 未加载
Graham24almost 11 years ago
what are bugger codes?<p><a href="http://www.ibiblio.org/apollo/listings/Comanche055/MAIN.agc.html" rel="nofollow">http:&#x2F;&#x2F;www.ibiblio.org&#x2F;apollo&#x2F;listings&#x2F;Comanche055&#x2F;MAIN.agc....</a>
评论 #8063500 未加载
NietTimalmost 11 years ago
What would it take to make a working simulator from this? Except a whole lot of hardware of course
评论 #8076459 未加载
评论 #8064697 未加载
marclavealmost 11 years ago
This is awesome!
restlessmediaalmost 11 years ago
Tut, where are the supporting unit tests.
EnochSquareRootalmost 11 years ago
OMG. Where&#x27;s the test coverage?
onion2kalmost 11 years ago
I&#x27;m surprised to see that it was written in HTML.<p>;)