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

Monday, July 20, 2009



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:

Hang said...

First one to find a bug should get a prize.

sssenator said...

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

nahtass said...

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

nassrat said...

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

Arkar said...

@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

j6wbs said...

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

Neil Winton said...

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 :)

katesmeow said...

"NUMERO MYSTERIOSO" on line 666 of the LL Guidance Equations, too.

Anthill said...

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"

Andykirk said...

line 257: XCH TEMPBETA # OVFL NOT EXPECTED.

lol 'tis cute :)

Eliezer D said...

wow

!&# said...

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?

radoslav said...

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

Pavol said...

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

russ said...

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

Norm said...

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

bzeble said...

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

Rodney said...

Memory Access Violation Protected Mode

Rodney said...

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

Methos said...

How would they catch a stack overflow exception?

Rodney said...

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"

jjaomni567 said...

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

brandon said...

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!

Bernard said...

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

@

freddassekret said...

12/18/1970 ?

Think thy touched down in 1969 ?

BdC said...

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 ?

andrewjgrimm said...

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

shehzaib said...

Nice Post
Please visit
www.shehzaibyousufkhan.blogspot.com

saravana kumar said...

very nice post thanks for the info....

colleges

collegelook

saravana kumar said...

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

charming day said...

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

Post a Comment