Source Code

These source-code files are part of a reconstructed copy of Luminary 69/2, the flown, final release of the Apollo 10 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction is based on the source code of Luminary 69 — i.e., the initial, unflown version, "revision 0" — of which a contemporary listing was available. The code was then updated by incorporating the differences between Luminary 69 and Luminary 69/2, known from other contemporary documentation. The only such difference is the implementation in Luminary 69/2 of the "R-2 Lunar Potential Model", the source code for which was taken from program Luminary 99/1 (Apollo 11 LM), of which a contemporary listing was also available. Finally, the now-reconstructed Luminary 69/2 was then validated by assembling it to executable form and verifying that its memory banks had the correct checksums, known from still other contemporary documentation.

Note that page numbers in the reconstructed code match those in the original Luminary 69 program listing, or in the ORBITAL INTEGRATION log section, in Luminary 99/1. Page numbers would certainly differ somewhat in a contemporary Luminary 69/2 listing. Moreover, annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change in Luminary 69/2 relative to Luminary 69. Here's a guide to the Apollo documentation referenced in those annotations:
Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

004621,000002:                                                                                                  ## Copyright:   Public domain.
004622,000003:                                                                                                  ## Filename:    SUBROUTINE_CALLS.agc
004623,000004:                                                                                                  ## Purpose:     A section of LUM69 revision 2.
004624,000005:                                                                                                  ##              It is part of the reconstructed source code for the flown
004625,000006:                                                                                                  ##              version of the flight software for the Lunar Module's (LM)
004626,000007:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 10. The code has
004627,000008:                                                                                                  ##              been recreated from a copy of Luminary revsion 069, using
004628,000009:                                                                                                  ##              changes present in Luminary 099 which were described in
004629,000010:                                                                                                  ##              Luminary memos 75 and 78. The code has been adapted such
004630,000011:                                                                                                  ##              that the resulting bugger words exactly match those specified
004631,000012:                                                                                                  ##              for LUM69 revision 2 in NASA drawing 2021152B, which gives
004632,000013:                                                                                                  ##              relatively high confidence that the reconstruction is correct.
004633,000014:                                                                                                  ## Reference:   p.  105
004634,000015:                                                                                                  ## Assembler:   yaYUL
004635,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
004636,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
004637,000018:                                                                                                  ## Mod history: 2019-07-27 MAS  Created from Luminary 69.
004638,000019: 

Page 105

004640,000021: 24,2022                                           SUBRO    LUMERASE   102                        
004641,000022: 24,2022                                           SUBRO    LEMONAID   070                        
004642,000023: 24,2022                                           SUBRO    LEMP20S    114                        
004643,000024: 24,2022                                           SUBRO    LEMP30S    102                        
004644,000025: 24,2022                                           SUBRO    KISSING    040                        
004645,000026: 24,2022                                           SUBRO    FLY        109                        
004646,000027: 24,2022                                           SUBRO    LEMP50S    103                        
004647,000028: 24,2022                                           SUBRO    SKIPPER    070                        
004648,000029: 24,2022                                           SUBRO    LMDAP      012                        
004649,000030: 
004650,000031: 

End of include-file SUBROUTINE_CALLS.agc.  Parent file is MAIN.agc