Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

001160,000002:                                                                                                  ## Copyright:   Public domain.
001161,000003:                                                                                                  ## Filename:    TAGS_FOR_RELATIVE_SETLOC.agc
001162,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
001163,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
001164,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
001165,000007:                                                                                                  ##
001166,000008:                                                                                                  ## Assembler:   yaYUL
001167,000009:                                                                                                  ## Contact:     Jim Lawton <jim.lawton@gmail.com>
001168,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo.
001169,000011:                                                                                                  ## Pages:       028-037
001170,000012:                                                                                                  ## Mod history: 2009-05-16      JVL     Transcribed from page images.
001171,000013:                                                                                                  ##              2016-12-13 RSB  Proofed text comments with octopus/ProoferComments
001172,000014:                                                                                                  ##                              and corrected the errors found.
001173,000015:                                                                                                  ##
001174,000016:                                                                                                  ## This source code has been transcribed or otherwise adapted from digitized
001175,000017:                                                                                                  ## images of a hardcopy from the MIT Museum.  The digitization was performed
001176,000018:                                                                                                  ## by Paul Fjeld, and arranged for by Deborah Douglas of the Museum.  Many
001177,000019:                                                                                                  ## thanks to both.  The images (with suitable reduction in storage size and
001178,000020:                                                                                                  ## consequent reduction in image quality as well) are available online at
001179,000021:                                                                                                  ## www.ibiblio.org/apollo.  If for some reason you find that the images are
001180,000022:                                                                                                  ## illegible, contact me at info@sandroid.org about getting access to the
001181,000023:                                                                                                  ## (much) higher-quality images which Paul actually created.
001182,000024:                                                                                                  ##
001183,000025:                                                                                                  ## Notations on the hardcopy document read, in part:
001184,000026:                                                                                                  ##
001185,000027:                                                                                                  ##    Assemble revision 001 of AGC program LMY99 by NASA 2021112-061
001186,000028:                                                                                                  ##    16:27 JULY 14, 1969
001187,000029: 

Page 28

001189,000031: ???????                                           COUNT    BANKSUM                               
001190,000032: 
001191,000033:                                                                                                  #  MODULE 1 CONTAINS BANKS 0 THROUGH 5
001192,000034: 
001193,000035:    4000                                           BLOCK    02                                    
001194,000036:    4000                        RADARFF            EQUALS                                         
001195,000037:    4000                        FFTAG1             EQUALS                                         
001196,000038:    4000                        FFTAG2             EQUALS                                         
001197,000039:    4000                        FFTAG3             EQUALS                                         
001198,000040:    4000                        FFTAG4             EQUALS                                         
001199,000041:    4000                        FFTAG7             EQUALS                                         
001200,000042:    4000                        FFTAG8             EQUALS                                         
001201,000043:    4000                        FFTAG9             EQUALS                                         
001202,000044:    4000                        FFTAG10            EQUALS                                         
001203,000045:    4000                        FFTAG11            EQUALS                                         
001204,000046:    4000                        FFTAG12            EQUALS                                         
001205,000047:    4000                        FFTAG13            EQUALS                                         
001206,000048:    4000                                           BNKSUM   02                                    
001207,000049: 
001208,000050:    6000                                           BLOCK    03                                    
001209,000051:    6000                        FFTAG5             EQUALS                                         
001210,000052:    6000                        FFTAG6             EQUALS                                         
001211,000053:    6000                                           BNKSUM   03                                    
001212,000054: 
001213,000055: 00,2000                                           BANK     00                                    
001214,000056: 00,2000                        DLAYJOB            EQUALS                                         
001215,000057: 00,2000                                           BNKSUM   00                                    
001216,000058: 
001217,000059: 01,2000                                           BANK     01                                    
001218,000060: 01,2000                        RESTART            EQUALS                                         
001219,000061: 01,2000                        LOADDAP1           EQUALS                                         
001220,000062: 01,2000                                           BNKSUM   01                                    
001221,000063: 
001222,000064: 04,2000                                           BANK     04                                    
001223,000065: 04,2000                        R02                EQUALS                                         
001224,000066: 04,2000                        VERB37             EQUALS                                         
001225,000067: 04,2000                        PINBALL4           EQUALS                                         
001226,000068: 04,2000                        CONICS1            EQUALS                                         
001227,000069: 04,2000                        KEYRUPT            EQUALS                                         
001228,000070: 04,2000                        R36LM              EQUALS                                         
001229,000071: 04,2000                        UPDATE2            EQUALS                                         
001230,000072: 04,2000                        E/PROG             EQUALS                                         
001231,000073: 04,2000                        AOTMARK2           EQUALS                                         
001232,000074: 04,2000                                           BNKSUM   04                                    
001233,000075: 

Page 29

001235,000077: 05,2000                                           BANK     05                                    
001236,000078: 05,2000                        FRANDRES           EQUALS                                         
001237,000079: 05,2000                        DOWNTELM           EQUALS                                         
001238,000080: 05,2000                        ABORTS1            EQUALS                                         
001239,000081: 05,2000                        EPHEM1             EQUALS                                         
001240,000082: 05,2000                        ASENT3             EQUALS                                         
001241,000083: 05,2000                                           BNKSUM   05                                    
001242,000084: 
001243,000085:                                                                                                  #  MODULE 2 CONTAINS BANKS 6 THROUGH 13
001244,000086: 
001245,000087: 06,2000                                           BANK     06                                    
001246,000088: 06,2000                        IMUCOMP            EQUALS                                         
001247,000089: 06,2000                        T4RUP              EQUALS                                         
001248,000090: 06,2000                        RCSMONT            EQUALS                                         
001249,000091: 06,2000                        MIDDGIM            EQUALS                                         
001250,000092: 06,2000                        EARTHLOC           EQUALS                                         
001251,000093: 06,2000                                           BNKSUM   06                                    
001252,000094: 
001253,000095: 07,2000                                           BANK     07                                    
001254,000096: 07,2000                        AOTMARK1           EQUALS                                         
001255,000097: 07,2000                        MODESW             EQUALS                                         
001256,000098: 07,2000                        ASENT2             EQUALS                                         
001257,000099: 07,2000                                           BNKSUM   07                                    
001258,000100: 
001259,000101: 10,2000                                           BANK     10                                    
001260,000102: 10,2000                        RTBCODES           EQUALS                                         
001261,000103: 10,2000                        DISPLAYS           EQUALS                                         
001262,000104: 10,2000                        PHASETAB           EQUALS                                         
001263,000105: 10,2000                        FLESHLOC           EQUALS                                         
001264,000106: 10,2000                        SLCTMU             EQUALS                                         
001265,000107: 10,2000                                           BNKSUM   10                                    
001266,000108: 
001267,000109: 11,2000                                           BANK     11                                    
001268,000110: 11,2000                        ORBITAL            EQUALS                                         
001269,000111: 11,2000                        F2DPS*11           EQUALS                                         
001270,000112: 11,2000                        INTVEL             EQUALS                                         
001271,000113: 11,2000                                           BNKSUM   11                                    
001272,000114: 
001273,000115: 12,2000                                           BANK     12                                    
001274,000116: 12,2000                        CONICS             EQUALS                                         
001275,000117: 12,2000                        ORBITAL1           EQUALS                                         

Page 30

001277,000119: 12,2000                        INTPRET2           EQUALS                                         
001278,000120: 12,2000                                           BNKSUM   12                                    
001279,000121: 
001280,000122: 13,2000                                           BANK     13                                    
001281,000123: 13,2000                        LATLONG            EQUALS                                         
001282,000124: 13,2000                        INTINIT            EQUALS                                         
001283,000125: 13,2000                        LEMGEOM            EQUALS                                         
001284,000126: 13,2000                        P76LOC             EQUALS                                         
001285,000127: 13,2000                        ORBITAL2           EQUALS                                         
001286,000128: 13,2000                        ABTFLGS            EQUALS                                         
001287,000129: 13,2000                                           BNKSUM   13                                    
001288,000130: 

Page 31

001290,000132:                                                                                                  #  MODULE 3 CONTAINS BANKS 14 THROUGH 21
001291,000133: 
001292,000134: 14,2000                                           BANK     14                                    
001293,000135: 14,2000                        P50S1              EQUALS                                         
001294,000136: 14,2000                        STARTAB            EQUALS                                         
001295,000137: 14,2000                        ASENT4             EQUALS                                         
001296,000138: 14,2000                                           BNKSUM   14                                    
001297,000139: 
001298,000140: 15,2000                                           BANK     15                                    
001299,000141: 15,2000                        P50S               EQUALS                                         
001300,000142: 15,2000                        EPHEM              EQUALS                                         
001301,000143: 15,2000                                           BNKSUM   15                                    
001302,000144: 
001303,000145: 16,2000                                           BANK     16                                    
001304,000146: 16,2000                        DAPS1              EQUALS                                         
001305,000147: 16,2000                                           BNKSUM   16                                    
001306,000148: 
001307,000149: 17,2000                                           BANK     17                                    
001308,000150: 17,2000                        DAPS2              EQUALS                                         
001309,000151: 17,2000                        P40S3              EQUALS                                         
001310,000152: 17,2000                                           BNKSUM   17                                    
001311,000153: 
001312,000154: 20,2000                                           BANK     20                                    
001313,000155: 20,2000                        DAPS3              EQUALS                                         
001314,000156: 20,2000                        LOADDAP            EQUALS                                         
001315,000157: 20,2000                        RODTRAP            EQUALS                                         
001316,000158: 20,2000                                           BNKSUM   20                                    
001317,000159: 
001318,000160: 21,2000                                           BANK     21                                    
001319,000161: 21,2000                        DAPS4              EQUALS                                         
001320,000162: 21,2000                        R10                EQUALS                                         
001321,000163: 21,2000                        R11                EQUALS                                         
001322,000164: 21,2000                                           BNKSUM   21                                    

Page 32

001324,000166: 
001325,000167:                                                                                                  #  MODULE 4 CONTAINS BANKS 22 THROUGH 27
001326,000168: 
001327,000169: 22,2000                                           BANK     22                                    
001328,000170: 22,2000                        KALCMON1           EQUALS                                         
001329,000171: 22,2000                        KALCMON2           EQUALS                                         
001330,000172: 22,2000                        R30LOC             EQUALS                                         
001331,000173: 22,2000                        RENDEZ             EQUALS                                         
001332,000174: 22,2000                        SERV2              EQUALS                                         
001333,000175: 22,2000                        LANDCNST           EQUALS                                         
001334,000176: 22,2000                                           BNKSUM   22                                    
001335,000177: 
001336,000178: 23,2000                                           BANK     23                                    
001337,000179: 23,2000                        POWFLITE           EQUALS                                         
001338,000180: 23,2000                        POWFLIT1           EQUALS                                         
001339,000181: 23,2000                        INFLIGHT           EQUALS                                         
001340,000182: 23,2000                        APOPERI            EQUALS                                         
001341,000183: 23,2000                        R61                EQUALS                                         
001342,000184: 23,2000                        R62                EQUALS                                         
001343,000185: 23,2000                        INTPRET1           EQUALS                                         
001344,000186: 23,2000                        MEASINC            EQUALS                                         
001345,000187: 23,2000                        MEASINC1           EQUALS                                         
001346,000188: 23,2000                        EXTVB1             EQUALS                                         
001347,000189: 23,2000                        P12A               EQUALS                                         
001348,000190: 23,2000                        NORMLIZ            EQUALS                                         
001349,000191: 23,2000                        ASENT7             EQUALS                                         
001350,000192: 23,2000                                           BNKSUM   23                                    
001351,000193: 
001352,000194: 24,2000                                           BANK     24                                    
001353,000195: 24,2000                        PLANTIN            EQUALS                                         
001354,000196: 24,2000                        P20S               EQUALS                                         
001355,000197: 24,2000                                           BNKSUM   24                                    
001356,000198: 
001357,000199: 25,2000                                           BANK     25                                    
001358,000200: 25,2000                        P20S1              EQUALS                                         
001359,000201: 25,2000                        P20S2              EQUALS                                         
001360,000202: 25,2000                        RADARUPT           EQUALS                                         
001361,000203: 25,2000                        RRLEADIN           EQUALS                                         
001362,000204: 25,2000                        R29S1              EQUALS                                         
001363,000205: 25,2000                        PLANTIN3           EQUALS                                         
001364,000206: 25,2000                                           BNKSUM   25                                    
001365,000207: 
001366,000208: 26,2000                                           BANK     26                                    

Page 33

001368,000210: 26,2000                        P20S3              EQUALS                                         
001369,000211: 26,2000                        BAWLANGS           EQUALS                                         
001370,000212: 26,2000                        MANUVER            EQUALS                                         
001371,000213: 26,2000                        MANUVER1           EQUALS                                         
001372,000214: 26,2000                        PLANTIN1           EQUALS                                         
001373,000215: 26,2000                        PLANTIN2           EQUALS                                         
001374,000216: 26,2000                                           BNKSUM   26                                    
001375,000217: 
001376,000218: 27,2000                                           BANK     27                                    
001377,000219: 27,2000                        TOF-FF             EQUALS                                         
001378,000220: 27,2000                        TOF-FF1            EQUALS                                         
001379,000221: 27,2000                        P40S1              EQUALS                                         
001380,000222: 27,2000                        VECPT              EQUALS                                         
001381,000223: 27,2000                        ASENT1             EQUALS                                         
001382,000224: 27,2000                        SERV3              EQUALS                                         
001383,000225: 27,2000                                           BNKSUM   27                                    
001384,000226: 

Page 34

001386,000228:                                                                                                  #  MODULE 5 CONTAINS BANKS 30 THROUGH 35
001387,000229: 
001388,000230: 30,2000                                           BANK     30                                    
001389,000231: 30,2000                        LOWSUPER           EQUALS                                         
001390,000232: 30,2000                        P12                EQUALS                                         
001391,000233: 30,2000                        ASENT              EQUALS                                         
001392,000234: 30,2000                        FCDUW              EQUALS                                         
001393,000235: 30,2000                        FLOGSUB            EQUALS                                         
001394,000236: 30,2000                        VB67A              EQUALS                                         
001395,000237: 30,2000                        ASENT5             EQUALS                                         
001396,000238: 30,2000                                           BNKSUM   30                                    
001397,000239: 
001398,000240: 31,2000                                           BANK     31                                    
001399,000241: 31,2000                        FTHROT             EQUALS                                         
001400,000242: 31,2000                        F2DPS*31           EQUALS                                         
001401,000243: 31,2000                        VB67               EQUALS                                         
001402,000244: 31,2000                                           BNKSUM   31                                    
001403,000245: 
001404,000246: 32,2000                                           BANK     32                                    
001405,000247: 32,2000                        P20S4              EQUALS                                         
001406,000248: 32,2000                        F2DPS*32           EQUALS                                         
001407,000249: 32,2000                        ABORTS             EQUALS                                         
001408,000250: 32,2000                        LRS22              EQUALS                                         
001409,000251: 32,2000                        P66LOC             EQUALS                                         
001410,000252: 32,2000                        R47                EQUALS                                         
001411,000253: 32,2000                        SERV               EQUALS                                         
001412,000254: 32,2000                                           BNKSUM   32                                    
001413,000255: 
001414,000256: 33,2000                                           BANK     33                                    
001415,000257: 33,2000                        SERVICES           EQUALS                                         
001416,000258: 33,2000                        R29/SERV           EQUALS                                         
001417,000259: 33,2000                        ASENT6             EQUALS                                         
001418,000260: 33,2000                                           BNKSUM   33                                    
001419,000261: 
001420,000262: 34,2000                                           BANK     34                                    
001421,000263: 34,2000                        STBLEORB           EQUALS                                         
001422,000264: 34,2000                        P30S1              EQUALS                                         
001423,000265: 34,2000                        CSI/CDH1           EQUALS                                         
001424,000266: 34,2000                        ASCFILT            EQUALS                                         
001425,000267: 34,2000                        R12STUFF           EQUALS                                         
001426,000268: 34,2000                        SERV4              EQUALS                                         
001427,000269: 34,2000                                           BNKSUM   34                                    
001428,000270: 

Page 35

001430,000272: 35,2000                                           BANK     35                                    
001431,000273: 35,2000                        CSI/CDH            EQUALS                                         
001432,000274: 35,2000                        P30S               EQUALS                                         
001433,000275: 35,2000                        GLM                EQUALS                                         
001434,000276: 35,2000                        P40S2              EQUALS                                         
001435,000277: 35,2000                                           BNKSUM   35                                    
001436,000278: 

Page 36

001438,000280:                                                                                                  #  MODULE 6 CONTAINS BANKS 36 THROUGH 43
001439,000281: 
001440,000282: 36,2000                                           BANK     36                                    
001441,000283: 36,2000                        P40S               EQUALS                                         
001442,000284: 36,2000                                           BNKSUM   36                                    
001443,000285: 
001444,000286: 37,2000                                           BANK     37                                    
001445,000287: 37,2000                        P05P06             EQUALS                                         
001446,000288: 37,2000                        IMU2               EQUALS                                         
001447,000289: 37,2000                        IMU4               EQUALS                                         
001448,000290: 37,2000                        R31                EQUALS                                         
001449,000291: 37,2000                        IMUSUPER           EQUALS                                         
001450,000292: 37,2000                        SERV1              EQUALS                                         
001451,000293: 37,2000                                           BNKSUM   37                                    
001452,000294: 
001453,000295: 40,2000                                           BANK     40                                    
001454,000296: 40,2000                        PINBALL1           EQUALS                                         
001455,000297: 40,2000                        SELFSUPR           EQUALS                                         
001456,000298: 40,2000                        PINSUPER           EQUALS                                         
001457,000299: 40,2000                        R31LOC             EQUALS                                         
001458,000300: 40,2000                                           BNKSUM   40                                    
001459,000301: 
001460,000302: 41,2000                                           BANK     41                                    
001461,000303: 41,2000                        PINBALL2           EQUALS                                         
001462,000304: 41,2000                                           BNKSUM   41                                    
001463,000305: 
001464,000306: 42,2000                                           BANK     42                                    
001465,000307: 42,2000                        SBAND              EQUALS                                         
001466,000308: 42,2000                        PINBALL3           EQUALS                                         
001467,000309: 42,2000                                           BNKSUM   42                                    
001468,000310: 
001469,000311: 43,2000                                           BANK     43                                    
001470,000312: 43,2000                        EXTVERBS           EQUALS                                         
001471,000313: 43,2000                        SELFCHEC           EQUALS                                         
001472,000314: 43,2000                                           BNKSUM   43                                    
001473,000315: 

Page 37

001475,000317: 
001476,000318: 43,2000  23,2521               HI6ZEROS           EQUALS   ZEROVECS                              #  ZERO VECTOR ALWAYS IN HIGH MEMORY
001477,000319: 43,2000  12,2006               LO6ZEROS           EQUALS   ZEROVEC                               #  ZERO VECTOR ALWAYS IN LOW MEMORY
001478,000320: 43,2000  23,2517               HIDPHALF           EQUALS   UNITX                                 
001479,000321: 43,2000  12,2004               LODPHALF           EQUALS   XUNIT                                 
001480,000322: 43,2000  23,2511               HIDP1/4            EQUALS   DP1/4TH                               
001481,000323: 43,2000  04,3036               LODP1/4            EQUALS   D1/4                                  #  2DEC .25
001482,000324: 43,2000  23,2517               HIUNITX            EQUALS   UNITX                                 
001483,000325: 43,2000  23,2515               HIUNITY            EQUALS   UNITY                                 
001484,000326: 43,2000  23,2513               HIUNITZ            EQUALS   UNITZ                                 
001485,000327: 43,2000  12,2004               LOUNITX            EQUALS   XUNIT                                 #  2DEC .5
001486,000328: 43,2000  12,2002               LOUNITY            EQUALS   YUNIT                                 #  2DEC 0
001487,000329: 43,2000  12,2000               LOUNITZ            EQUALS   ZUNIT                                 #  2DEC 0
001488,000330: 
001489,000331: 43,2000  22,3541               DELRSPL            EQUALS   SPLRET                                #  COL PGM, ALSO CALLED BY R30 IN LUMINARY
001490,000332: 
001491,000333:                                                                                                  #  ROPE-SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN DETERMINING INTEGRATION AREA ENTRIES.
001492,000334: 
001493,000335: 43,2000  13,2734               ATOPTHIS           EQUALS   ATOPLEM                               
001494,000336: 43,2000  13,2661               ATOPOTH            EQUALS   ATOPCSM                               
001495,000337: 43,2000  13,3043               OTHPREC            EQUALS   CSMPREC                               
001496,000338: 43,2000  0000174               MOONTHIS           EQUALS   LMOONFLG                              
001497,000339: 43,2000  0000173               MOONOTH            EQUALS   CMOONFLG                              
001498,000340: 43,2000  13,2747               MOVATHIS           EQUALS   MOVEALEM                              
001499,000341: 43,2000  12,2017               RMM                =        LODPMAX                               
001500,000342: 43,2000  12,2021               RME                =        LODPMAX1                              
001501,000343: 43,2000  13,3057               THISPREC           EQUALS   LEMPREC                               
001502,000344: 43,2000  23,2513               THISAXIS           =        UNITZ                                 
001503,000345: 43,2000  23,2513               NB1NB2             EQUALS   THISAXIS                              #  FOR R31
001504,000346: 43,2000     5011               ERASID             EQUALS   BITS2-10                              #  DOWNLINK ERASABLE DUMP ID
001505,000347: 43,2000     4752               DELAYNUM           EQUALS   TWO                                   
001506,000348: 

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