Monday, July 20, 2009

Apollo 11 mission's 40th Anniversary: One large step for open source code...



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

31 comments:

  1. First one to find a bug should get a prize.

    ReplyDelete
  2. Hm...thats interesting, they used an int instead of a double. Amazing how the lunar module landed intact...wait... that can't be right ;)

    ReplyDelete
  3. Wow, seriously. Looking at this puts what I do into perspective. Thanks for taking the time to get this piece of history out there!

    ReplyDelete
  4. yeah, that code seems to land in MGM studios rather than the moon, am I reading the code right.

    ReplyDelete
  5. @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

    ReplyDelete
  6. println("one small step for man") // todo - fix typo

    ReplyDelete
  7. Love 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
  8. "NUMERO MYSTERIOSO" on line 666 of the LL Guidance Equations, too.

    ReplyDelete
  9. The 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"

    ReplyDelete
  10. line 257: XCH TEMPBETA # OVFL NOT EXPECTED.

    lol 'tis cute :)

    ReplyDelete
  11. Does 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?

    ReplyDelete
  12. i'd like to see source from NASA's Spirit and Opportunity robots.

    ReplyDelete
  13. i would like to see the high level language MAC (MIT Algebraic Compiler) they supposedly used for development.

    ReplyDelete
  14. I spotted a bug. It looks like they set co-ordinates to a desert in Nevada rather than the Moon ;)

    ReplyDelete
  15. There's a summary of an interview with the principal designer of the LM descent software here.

    ReplyDelete
  16. I dont like how line 847 looks on the lunar landing file...

    ReplyDelete
  17. Memory Access Violation Protected Mode

    ReplyDelete
  18. There's no "FILE NOT FOUND" message or "Press any Key to Continue"

    ReplyDelete
  19. How would they catch a stack overflow exception?

    ReplyDelete
  20. What would have happened if they found these errors?

    Error Reading Setup Initialization File or

    I am getting the "A Disk Read Error Occured. Press CTRL+ALT+DEL to restart"

    ReplyDelete
  21. looks like they used 8 decimal points of pi to fly to the moon.

    ReplyDelete
  22. Don 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!

    ReplyDelete
  23. It looks like you're landing a spaceship.

    Would you like help?

    * Get help with landing the spaceship

    * Just land the spaceship without help

    [] Don't show this tip again

    @

    ReplyDelete
  24. 12/18/1970 ?

    Think thy touched down in 1969 ?

    ReplyDelete
  25. 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 ?

    ReplyDelete
  26. I can see a Guildenstern, but where's Rosencrantz? What happens if Rosencrantz and Guildenstern are dead?

    ReplyDelete
  27. Nice Post
    Please visit
    www.shehzaibyousufkhan.blogspot.com

    ReplyDelete
  28. Remembering achivevement of Neil Amstrang and Buzz Aldrin nice Post...byentertainment

    ReplyDelete
  29. 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