On this day 40 years ago, Neil Armstrong and Buzz Aldrin became the first humans to walk on the Moon. This was quite an achievement for mankind and a key milestone in world history.
To commemorate this event the Command Module code (Comanche054) and Lunar Module code (Luminary099) have been transcribed from scanned images to run on yaAGC (an open source AGC emulator) by the Virtual AGC and AGS project.
For more information on this project, I recommend looking at the website and the open source project.
Here are a few links to the source code:
As the project evolves, look for syntax highlighting done with a special extension for google-code-prettify.
Image - NASA/courtesy of nasaimages.org
First one to find a bug should get a prize.
ReplyDeleteHm...thats interesting, they used an int instead of a double. Amazing how the lunar module landed intact...wait... that can't be right ;)
ReplyDeleteWow, seriously. Looking at this puts what I do into perspective. Thanks for taking the time to get this piece of history out there!
ReplyDeleteyeah, that code seems to land in MGM studios rather than the moon, am I reading the code right.
ReplyDelete@sssenator, if u have spent some time with PLC or PLC like eqiupment, u will know that they only have int math. Need some multiplication with 10/100/1000 before doing division if u want decimals. just my 2cent! :D
ReplyDeleteprintln("one small step for man") // todo - fix typo
ReplyDeleteLove the comments on lines 179/180 of LUNAR_LANDING_GUIDANCE_EQUATIONS. Wouldn't wanted to have read that if I'd been Armstrong or Aldrin :)
ReplyDelete"NUMERO MYSTERIOSO" on line 666 of the LL Guidance Equations, too.
ReplyDeleteThe author of some of this code, Don Eyles, has a great article about two life-threatning bugs. Can't post the URL, search for "TALES FROM THE LUNAR MODULE GUIDANCE COMPUTER"
ReplyDeleteline 257: XCH TEMPBETA # OVFL NOT EXPECTED.
ReplyDeletelol 'tis cute :)
wow
ReplyDeleteDoes the source code mention anything about Nazi science or the slave labor from Buchenwald that Wernher von Braun used during his development of rocket technology?
ReplyDeletei'd like to see source from NASA's Spirit and Opportunity robots.
ReplyDeletei would like to see the high level language MAC (MIT Algebraic Compiler) they supposedly used for development.
ReplyDeleteI spotted a bug. It looks like they set co-ordinates to a desert in Nevada rather than the Moon ;)
ReplyDeleteI dont like how line 847 looks on the lunar landing file...
ReplyDeleteMemory Access Violation Protected Mode
ReplyDeleteThere's no "FILE NOT FOUND" message or "Press any Key to Continue"
ReplyDeleteHow would they catch a stack overflow exception?
ReplyDeleteWhat would have happened if they found these errors?
ReplyDeleteError Reading Setup Initialization File or
I am getting the "A Disk Read Error Occured. Press CTRL+ALT+DEL to restart"
looks like they used 8 decimal points of pi to fly to the moon.
ReplyDeleteDon Eyles is a pretty cool guy, it's interesting to see him in that picture from 40 years ago - same man but with glasses and white hair. He once displayed some Apollo artifacts as part of an art exhibit in the neighborhood I lived in, including that same LUMINARY tome and an actual memory module. Fascinating stuff!
ReplyDeleteIt looks like you're landing a spaceship.
ReplyDeleteWould you like help?
* Get help with landing the spaceship
* Just land the spaceship without help
[] Don't show this tip again
@
12/18/1970 ?
ReplyDeleteThink thy touched down in 1969 ?
Can you tell whether it is this Apollo Guidance Computer (AGC) that displayed an "error 1202" during Apollo 11 landing on the moon and forced Armstrong to moonland manually ?
ReplyDeleteI can see a Guildenstern, but where's Rosencrantz? What happens if Rosencrantz and Guildenstern are dead?
ReplyDeleteNice Post
ReplyDeletePlease visit
www.shehzaibyousufkhan.blogspot.com
very nice post thanks for the info....
ReplyDeletecolleges
collegelook
After 40 years,I am very glad for remembered of Neil Armstrong and Buzz Aldrin.I really proud for him and prayed for his holy soul,Thanks. naats
ReplyDelete