Source Code

These source-code files are part of a reconstructed copy of Luminary 97, the original release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memos 83 and 85, using asterisks indicating changed lines in the listing as a guide. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 97 listing.

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.

046201,000002:                                                                                                  ## Copyright:   Public domain.
046202,000003:                                                                                                  ## Filename:    INTERPRETIVE_CONSTANTS.agc
046203,000004:                                                                                                  ## Purpose:     A section of Luminary revision 97.
046204,000005:                                                                                                  ##              It is part of the reconstructed source code for the
046205,000006:                                                                                                  ##              original release of the flight software for the Lunar 
046206,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
046207,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
046208,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
046209,000010:                                                                                                  ##              the listing and Luminary Memos #83 and #85, which list 
046210,000011:                                                                                                  ##              changes between Luminary 97 and 98, and 98 and 99. The
046211,000012:                                                                                                  ##              code has been adapted such that the resulting bugger words
046212,000013:                                                                                                  ##              exactly match those specified for Luminary 97 in NASA drawing
046213,000014:                                                                                                  ##              2021152D, which gives relatively high confidence that the
046214,000015:                                                                                                  ##              reconstruction is correct.
046215,000016:                                                                                                  ## Reference:   pp. 1100-1101
046216,000017:                                                                                                  ## Assembler:   yaYUL
046217,000018:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
046218,000019:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
046219,000020:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
046220,000021: 

Page 1100

046222,000023: 23,2000                                           SETLOC   INTPRET1                              
046223,000024: 23,2000                                           BANK                                           
046224,000025: 
046225,000026: 23,2511                                           COUNT*   $$/ICONS                              
046226,000027: 23,2511           10000 00000  DP1/4TH            2DEC     .25                                   
046227,000028: 
046228,000029: 23,2513           00000 00000  UNITZ              2DEC     0          B-28                       
046229,000030: 
046230,000031: 23,2515           00000 00000  UNITY              2DEC     0          B-28                       
046231,000032: 
046232,000033: 23,2517           20000 00000  UNITX              2DEC     .5                                    
046233,000034: 
046234,000035: 23,2521           00000 00000  ZEROVECS           2DEC     0          B-28                       
046235,000036: 
046236,000037: 23,2523           00000 00000                     2DEC     0          B-28                       
046237,000038: 
046238,000039: 23,2525           00000 00000                     2DEC     0          B-28                       
046239,000040: 
046240,000041: 23,2527  23,2517               DPHALF             =        UNITX                                 
046241,000042: 23,2527           37777        DPPOSMAX           OCT      37777                                 
046242,000043: 23,2530           37777                           OCT      37777                                 
046243,000044: 

Page 1101

046245,000046:                                                                                                  #  INTERPRETIVE CONSTANTS IN THE OTHER HALF-MEMORY
046246,000047: 
046247,000048: 12,2000                                           SETLOC   INTPRET2                              
046248,000049: 12,2000                                           BANK                                           
046249,000050: 
046250,000051: 12,2000                                           COUNT*   $$/ICONS                              
046251,000052: 12,2000           00000 00000  ZUNIT              2DEC     0          B-28                       
046252,000053: 
046253,000054: 12,2002           00000 00000  YUNIT              2DEC     0          B-28                       
046254,000055: 
046255,000056: 12,2004           20000 00000  XUNIT              2DEC     .5                                    
046256,000057: 
046257,000058: 12,2006           00000 00000  ZEROVEC            2DEC     0          B-28                       
046258,000059: 
046259,000060: 12,2010           00000 00000                     2DEC     0          B-28                       
046260,000061: 
046261,000062: 12,2012           00000 00000                     2DEC     0          B-28                       
046262,000063: 
046263,000064: 12,2014           77777                           OCT      77777                                 #  -0, -6, -12 MUST REMAIN IN THIS ORDER
046264,000065: 12,2015           77771        DFC-6              DEC      -6         B-14                       
046265,000066: 12,2016           77763        DFC-12             DEC      -12        B-14                       
046266,000067: 12,2017           37777 37777  LODPMAX            2OCT     3777737777                            #  THESE TWO CONSTANTS MUST REMAIN
046267,000068: 
046268,000069: 12,2021           37777 37777  LODPMAX1           2OCT     3777737777                            #  ADJACENT AND THE SAME FOR INTEGRATION
046269,000070: 
046270,000071: 12,2023  12,2006               ZERODP             =        ZEROVEC                               
046271,000072: 12,2023  12,2004               HALFDP             =        XUNIT                                 
046272,000073: 
046273,000074: 

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