Check out some of the Apollo 11 code for the Lunar Module's (LM) Apollo Guidance Computer (AGC). It's just awesome browsing through it, reading the comments, and thinking about the zeitgeist of being on a team that was working on something of that world-altering magnitude.
Code Library:
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...
KALMAN_FILTER.agc
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...
LAMBERT_AIMPOINT_GUIDANCE.agc
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...
LANDING_ANALOG_DISPLAYS.agc
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...
LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...
LUNAR_LANDING_GUIDANCE_EQUATIONS.agc
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...
- - -
Incredible quote:
"There was no second chance. We all knew that. We took our work very seriously, but we were young, many of us in our 20s. Coming up with new ideas was an adventure. Dedication and commitment were a given. Mutual respect was across the board. Because software was a mystery, a black box, upper management gave us total freedom and trust. We had to find a way and we did. Looking back, we were the luckiest people in the world; there was no choice but to be pioneers; no time to be beginners." - Margaret Hamilton
- - -
Edit: OK, this is interesting. Note the filename. The filename and comments suggest that it was for driving keyboard and information display...
PINBALL_GAME_BUTTONS_AND_LIGHTS.agc
https://code.google.com/p/virtualagc/source/browse/trunk/Lum...