Apollo 11 source code

95    31 Jan 2016 20:28 by u/anouar

37 comments

10

Should have: Try (whatever) catch (TomHanks) around the whole thing.

0

Ok that's funny!

10

Assembly language, the way God intended programming to be.

3

Then Satan created LISP?

5

Probably, and I think he had a hand in PHP too.

2

Hey, LISP is damn elegant when done right. Super memory hogging usually, but damn elegant.

0

Heretic.

Lisp is the light, the truth and the way.

1

huh, do you know what kind of assembly that is? I didn't even realize what it was for a bit.

1

I didn't recognize any of it. My experience is with Digital Equipment (DEC) PDP 11/34 and Vax assembly back in the 70's and early 80's. I did a little bit of assembly on some proprietary Cincinnati Milacron machine controls with core memory, but only to interface some 8" floppy drives. There are many different assemblers that target specific architectures and instruction sets.

9

As a Brit, 'bugger words' made me giggle.

0

Is there a way that this could be read that changes the meaning? I'd assumed they were checksums or error handling of some sort.

7

This is so cool. It's all written in assembler so I have no idea what the hell most of it is doing, but reading the comments is interesting. Thinking of someone writing this back in the 60s and documenting all their code...wow. And most of the maths involved here is mind-boggling.

4

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

4

Got a giggle out of

006925: WHOCARES E7,1471

3

All that got us to the moon!

If hate to try to see what runs a battleship these days :-(

I wonder if a bunch of raspberries could simulate the hardware?

8

I've worked on code running on our Guided Missile Destroyers. You are correct, you would hate to see what runs them.

3

neat. what language is it even in, or is there some easy guide for seeing the logic trail it uses? would be cool to make something that, actually acts like appolo 11

3

Assembly. Basically mnemonics for machine code

1

Finally, note that the original Apollo AGC assembler (called "YUL") is no longer

available (as far as I can tell). In fact, it was replaced by another assembler

("GAP") even before Apollo 11, but GAP is no more available than is YUL. The

replacement assembler yaYUL accepts a slightly different format for the source

code from what YUL or GAP accepted, so the source code has been targeted for

assembly with yaYUL.

The yaYUL aseembler is the closest you'll get, it seems. Here's a manual for it. Here's a physical implemnation of AGCs and here's information about virtual AGC (which seems really neat but I haven't digested everything yet.)

3

Imagine if every programmer would put as much intricacy and documentation into their work.

Full disclosure, I'm not that good at doing so myself yet.

1

you'd put as much intricacy and documentation if lives depend on it. Shit, if the programming would've failed they would've had your head on a pike.

0

Human error is always a variable. You can't prevent everything. It's amazing that nothing slipped drastically. Though there were some issues they encountered. But, if every programmer treated it like you said, we may already have far greater tech than we do now.

1

I disagree. Many many great things have come from the, move fast and break things, mentality. If we all spent as much time as possible trying to be perfect the world would grind to a halt and everyone would be too afraid of making a mistake to be innovative.

0

I totally agree with you. But there are certain cases where that just doesn't apply. For example, a major overhaul of a government site should be intricately programmed with plenty of documentation to avoid mistakes as much as possible. You don't want security vulnerabilities and such. In a personal project, sure, go fast, break things, learn from it, you're not putting anyone at risk with it and you may just happen to find a vulnerability within the software itself that you have now assisted in securing.

3

Comment from LUNAR_LANDING_GUIDANCE_EQUATIONS.agc:

#  TEMPORARY, I HOPE HOPE HOPE
2

I'm pretty sure my toaster runs more code than this to tell whether I'm toasting a bagel.

2

Good god! If the Russians get a hold of this, we're finished!

1

There is an emulator for the hardware here: http://www.ibiblio.org/apollo/

Haven't tested it though

0

This looks neat. Thanks for sharing.

1

Neat. How much memory does something like this use? I'm assuming kilobytes of data.

0

Thank you for sharing.

0

It would be nice if someone also explains what we see and how it is used.

0

I have no idea what any of this is.

-2

Hahaha, what a terrible joke. What an insane amount of stupidity to believe the apollo missions sent man out of low earth orbit. Just astounding how ignorant and dumb most people are, especially americans. But then again, they have their own set of blinders.