This is really cool. Here is PLANETARY_INERTIAL_ORIENTATION.agc which contains Apollo command module code for converting between vectors in earth or moon based coordinate systems and a basic reference system:
http://www.ibiblio.org/apollo/listings/Comanche055/PLANETARY...
It really looks surprisingly similar to modern assembly code. Well commented too.
It really looks surprisingly similar to modern assembly code. Well commented too.