Source Code

These source-code files were transcribed from scans made from Don Eyles's personal copy of Luminary 069. They were scanned at archive.org's Boston facility, and the scanning was sponsored by Onno Hommes. The code was transcribed from these scans by a team of volunteers who are referenced in the program comments. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". In some cases, where similar code blocks exist in previously-transcribed AGC programs (primarily Luminary 99, from Apollo 11) those code blocks were used as a starting point and then corrected to agree with the Luminary 69 scans. The full scans are available at the Virtual AGC project's collection at archive.org, while more-convenient reduced-size (but reduced-quality) images are available at the main Virtual AGC website. Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 069 OF AGC PROGRAM LUMINARY BY NASA 2021112-011
	19:02 NOV. 25,1968
Note that the date is the date of the printout, not the date of the program revision.

001057,000002:                                                                                                  ## Copyright:   Public domain.
001058,000003:                                                                                                  ## Filename:    TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc
001059,000004:                                                                                                  ## Purpose:     The main source file for Luminary revision 069.
001060,000005:                                                                                                  ##              It is part of the source code for the original release
001061,000006:                                                                                                  ##              of the flight software for the Lunar Module's (LM) Apollo
001062,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 10. The actual flown
001063,000008:                                                                                                  ##              version was Luminary 69 revision 2, which included a
001064,000009:                                                                                                  ##              newer lunar gravity model and only affected module 2.
001065,000010:                                                                                                  ##              This file is intended to be a faithful transcription, except
001066,000011:                                                                                                  ##              that the code format has been changed to conform to the
001067,000012:                                                                                                  ##              requirements of the yaYUL assembler rather than the
001068,000013:                                                                                                  ##              original YUL assembler.
001069,000014:                                                                                                  ## Reference:   pp. 27-36
001070,000015:                                                                                                  ## Assembler:   yaYUL
001071,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
001072,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
001073,000018:                                                                                                  ## Mod history: 2016-12-13 MAS  Created from Luminary 99.
001074,000019:                                                                                                  ##              2017-01-03 HG   Transcribed
001075,000020:                                                                                                  ##              2017-01-06 HG   Fix label INPRET2 -> INTPRET2
001076,000021:                                                                                                  ##              2017-01-25 RSB  Proofed comment text with octopus/prooferComments.
001077,000022:                                                                                                  ##                              No errors were found.
001078,000023: 

Page 27

001080,000025: ???????                                           COUNT    BANKSUM                               
001081,000026: 
001082,000027:                                                                                                  #  MODULE 1 CONTAINS BANKS 0 THROUGH 5
001083,000028: 
001084,000029:    4000                                           BLOCK    02                                    
001085,000030:    4000                        RADARFF            EQUALS                                         
001086,000031:    4000                        FFTAG1             EQUALS                                         
001087,000032:    4000                        FFTAG2             EQUALS                                         
001088,000033:    4000                        FFTAG3             EQUALS                                         
001089,000034:    4000                        FFTAG4             EQUALS                                         
001090,000035:    4000                        FFTAG7             EQUALS                                         
001091,000036:    4000                        FFTAG8             EQUALS                                         
001092,000037:    4000                        FFTAG9             EQUALS                                         
001093,000038:    4000                        FFTAG10            EQUALS                                         
001094,000039:    4000                        FFTAG11            EQUALS                                         
001095,000040:    4000                        FFTAG12            EQUALS                                         
001096,000041:    4000                        FFTAG13            EQUALS                                         
001097,000042:    4000                                           BNKSUM   02                                    
001098,000043: 
001099,000044: 
001100,000045:    6000                                           BLOCK    03                                    
001101,000046:    6000                        FFTAG5             EQUALS                                         
001102,000047:    6000                        FFTAG6             EQUALS                                         
001103,000048:    6000                                           BNKSUM   03                                    
001104,000049: 
001105,000050: 
001106,000051: 00,2000                                           BANK     00                                    
001107,000052: 00,2000                        DLAYJOB            EQUALS                                         
001108,000053: 00,2000                                           BNKSUM   00                                    
001109,000054: 
001110,000055: 
001111,000056: 01,2000                                           BANK     01                                    
001112,000057: 01,2000                        RESTART            EQUALS                                         
001113,000058: 01,2000                        LOADDAP1           EQUALS                                         
001114,000059: 01,2000                                           BNKSUM   01                                    
001115,000060: 
001116,000061: 
001117,000062: 04,2000                                           BANK     04                                    
001118,000063: 04,2000                        R02                EQUALS                                         
001119,000064: 04,2000                        VERB37             EQUALS                                         
001120,000065: 04,2000                        PINBALL4           EQUALS                                         
001121,000066: 04,2000                        CONICS1            EQUALS                                         
001122,000067: 04,2000                        KEYRUPT            EQUALS                                         
001123,000068: 04,2000                        R36LM              EQUALS                                         
001124,000069: 04,2000                        UPDATE2            EQUALS                                         
001125,000070: 04,2000                        E/PROG             EQUALS                                         
001126,000071: 04,2000                                           BNKSUM   04                                    
001127,000072: 
001128,000073: 

Page 28

001130,000075: 05,2000                                           BANK     05                                    
001131,000076: 05,2000                        FRANDRES           EQUALS                                         
001132,000077: 05,2000                        DOWNTELM           EQUALS                                         
001133,000078: 05,2000                        AOTMARK2           EQUALS                                         
001134,000079: 05,2000                        EPHEM1             EQUALS                                         
001135,000080: 05,2000                                           BNKSUM   05                                    
001136,000081: 
001137,000082: 
001138,000083:                                                                                                  #  MODULE 2 CONTAINS BANKS 6 THROUGH 13
001139,000084: 
001140,000085: 06,2000                                           BANK     06                                    
001141,000086: 06,2000                        IMUCOMP            EQUALS                                         
001142,000087: 06,2000                        T4RUP              EQUALS                                         
001143,000088: 06,2000                        RCSMONT            EQUALS                                         
001144,000089: 06,2000                                           BNKSUM   06                                    
001145,000090: 
001146,000091: 
001147,000092: 07,2000                                           BANK     07                                    
001148,000093: 07,2000                        AOTMARK1           EQUALS                                         
001149,000094: 07,2000                        MODESW             EQUALS                                         
001150,000095: 07,2000                                           BNKSUM   07                                    
001151,000096: 
001152,000097: 
001153,000098: 10,2000                                           BANK     10                                    
001154,000099: 10,2000                        RTBCODES           EQUALS                                         
001155,000100: 10,2000                        DISPLAYS           EQUALS                                         
001156,000101: 10,2000                        PHASETAB           EQUALS                                         
001157,000102: 10,2000                        MIDDGIM            EQUALS                                         
001158,000103: 10,2000                                           BNKSUM   10                                    
001159,000104: 
001160,000105: 
001161,000106: 11,2000                                           BANK     11                                    
001162,000107: 11,2000                        ORBITAL            EQUALS                                         
001163,000108: 11,2000                        ORBITAL1           EQUALS                                         
001164,000109: 11,2000                        INTVEL             EQUALS                                         
001165,000110: 11,2000                        INTPRET2           EQUALS                                         
001166,000111: 11,2000                                           BNKSUM   11                                    
001167,000112: 
001168,000113: 
001169,000114: 12,2000                                           BANK     12                                    
001170,000115: 12,2000                        CONICS             EQUALS                                         
001171,000116: 12,2000                                           BNKSUM   12                                    
001172,000117: 
001173,000118: 

Page 29

001175,000120: 13,2000                                           BANK     13                                    
001176,000121: 13,2000                        LATLONG            EQUALS                                         
001177,000122: 13,2000                        INTINIT            EQUALS                                         
001178,000123: 13,2000                        LEMGEOM            EQUALS                                         
001179,000124: 13,2000                        P76LOC             EQUALS                                         
001180,000125: 13,2000                        ORBITAL2           EQUALS                                         
001181,000126: 13,2000                                           BNKSUM   13                                    
001182,000127: 
001183,000128: 

Page 30

001185,000130:                                                                                                  #  MODULE 3 CONTAINS BANKS 14 THROUGH 21
001186,000131: 
001187,000132: 14,2000                                           BANK     14                                    
001188,000133: 14,2000                        P50S1              EQUALS                                         
001189,000134: 14,2000                        STARTAB            EQUALS                                         
001190,000135: 14,2000                                           BNKSUM   14                                    
001191,000136: 
001192,000137: 
001193,000138: 15,2000                                           BANK     15                                    
001194,000139: 15,2000                        P50S               EQUALS                                         
001195,000140: 15,2000                        EPHEM              EQUALS                                         
001196,000141: 15,2000                                           BNKSUM   15                                    
001197,000142: 
001198,000143: 
001199,000144: 16,2000                                           BANK     16                                    
001200,000145: 16,2000                        DAPS1              EQUALS                                         
001201,000146: 16,2000                                           BNKSUM   16                                    
001202,000147: 
001203,000148: 
001204,000149: 17,2000                                           BANK     17                                    
001205,000150: 17,2000                        DAPS2              EQUALS                                         
001206,000151: 17,2000                                           BNKSUM   17                                    
001207,000152: 
001208,000153: 
001209,000154: 20,2000                                           BANK     20                                    
001210,000155: 20,2000                        DAPS3              EQUALS                                         
001211,000156: 20,2000                        LOADDAP            EQUALS                                         
001212,000157: 20,2000                        RODTRAP            EQUALS                                         
001213,000158: 20,2000                                           BNKSUM   20                                    
001214,000159: 
001215,000160: 
001216,000161: 21,2000                                           BANK     21                                    
001217,000162: 21,2000                        DAPS4              EQUALS                                         
001218,000163: 21,2000                        F2DPS*21           EQUALS                                         
001219,000164: 21,2000                        R10                EQUALS                                         
001220,000165: 21,2000                        R11                EQUALS                                         
001221,000166: 21,2000                                           BNKSUM   21                                    
001222,000167: 

Page 31

001224,000169: 
001225,000170:                                                                                                  #  MODULE 4 CONTAINS BANKS 22 THROUGH 27
001226,000171: 
001227,000172: 22,2000                                           BANK     22                                    
001228,000173: 22,2000                        KALCMON1           EQUALS                                         
001229,000174: 22,2000                        KALCMON2           EQUALS                                         
001230,000175: 22,2000                        R30LOC             EQUALS                                         
001231,000176: 22,2000                        RENDEZ             EQUALS                                         
001232,000177: 22,2000                                           BNKSUM   22                                    
001233,000178: 
001234,000179: 
001235,000180: 23,2000                                           BANK     23                                    
001236,000181: 23,2000                        POWFLITE           EQUALS                                         
001237,000182: 23,2000                        POWFLIT1           EQUALS                                         
001238,000183: 23,2000                        INFLIGHT           EQUALS                                         
001239,000184: 23,2000                        APOPERI            EQUALS                                         
001240,000185: 23,2000                        R61                EQUALS                                         
001241,000186: 23,2000                        R62                EQUALS                                         
001242,000187: 23,2000                        INTPRET1           EQUALS                                         
001243,000188: 23,2000                        MEASINC            EQUALS                                         
001244,000189: 23,2000                        MEASINC1           EQUALS                                         
001245,000190: 23,2000                        EXTVB1             EQUALS                                         
001246,000191: 23,2000                                           BNKSUM   23                                    
001247,000192: 
001248,000193: 
001249,000194: 24,2000                                           BANK     24                                    
001250,000195: 24,2000                        PLANTIN            EQUALS                                         
001251,000196: 24,2000                        P20S               EQUALS                                         
001252,000197: 24,2000                                           BNKSUM   24                                    
001253,000198: 
001254,000199: 
001255,000200: 25,2000                                           BANK     25                                    
001256,000201: 25,2000                        P20S1              EQUALS                                         
001257,000202: 25,2000                        P20S2              EQUALS                                         
001258,000203: 25,2000                        RADARUPT           EQUALS                                         
001259,000204: 25,2000                        RRLEADIN           EQUALS                                         
001260,000205: 25,2000                        R29S1              EQUALS                                         
001261,000206: 25,2000                                           BNKSUM   25                                    
001262,000207: 
001263,000208: 
001264,000209: 26,2000                                           BANK     26                                    
001265,000210: 26,2000                        P20S3              EQUALS                                         
001266,000211: 26,2000                        BAWLANGS           EQUALS                                         
001267,000212: 26,2000                        MANUVER            EQUALS                                         
001268,000213: 26,2000                        MANUVER1           EQUALS                                         
001269,000214: 26,2000                        PLANTIN1           EQUALS                                         
001270,000215: 26,2000                                           BNKSUM   26                                    
001271,000216: 
001272,000217: 

Page 32

001274,000219: 27,2000                                           BANK     27                                    
001275,000220: 27,2000                        TOF-FF             EQUALS                                         
001276,000221: 27,2000                        TOF-FF1            EQUALS                                         
001277,000222: 27,2000                        P40S1              EQUALS                                         
001278,000223: 27,2000                        VECPT              EQUALS                                         
001279,000224: 27,2000                        ASENT1             EQUALS                                         
001280,000225: 27,2000                                           BNKSUM   27                                    
001281,000226: 
001282,000227: 

Page 33

001284,000229:                                                                                                  #  MODULE 5 CONTAINS BANKS 30 THROUGH 35
001285,000230: 
001286,000231: 30,2000                                           BANK     30                                    
001287,000232: 30,2000                        LOWSUPER           EQUALS                                         
001288,000233: 30,2000                        P12                EQUALS                                         
001289,000234: 30,2000                        ASENT              EQUALS                                         
001290,000235: 30,2000                        FCDUW              EQUALS                                         
001291,000236: 30,2000                                           BNKSUM   30                                    
001292,000237: 
001293,000238: 
001294,000239: 31,2000                                           BANK     31                                    
001295,000240: 31,2000                        FTHROT             EQUALS                                         
001296,000241: 31,2000                        F2DPS*31           EQUALS                                         
001297,000242: 31,2000                        VB67               EQUALS                                         
001298,000243: 31,2000                                           BNKSUM   31                                    
001299,000244: 
001300,000245: 
001301,000246: 32,2000                                           BANK     32                                    
001302,000247: 32,2000                        P20S4              EQUALS                                         
001303,000248: 32,2000                        F2DPS*32           EQUALS                                         
001304,000249: 32,2000                        ABORTS             EQUALS                                         
001305,000250: 32,2000                        LRS22              EQUALS                                         
001306,000251: 32,2000                        FLOGSUB            EQUALS                                         
001307,000252: 32,2000                        SERV2              EQUALS                                         
001308,000253: 32,2000                        R47                EQUALS                                         
001309,000254: 32,2000                                           BNKSUM   32                                    
001310,000255: 
001311,000256: 
001312,000257: 33,2000                                           BANK     33                                    
001313,000258: 33,2000                        SERVICES           EQUALS                                         
001314,000259: 33,2000                        R29/SERV           EQUALS                                         
001315,000260: 33,2000                                           BNKSUM   33                                    
001316,000261: 
001317,000262: 
001318,000263: 34,2000                                           BANK     34                                    
001319,000264: 34,2000                        STBLEORB           EQUALS                                         
001320,000265: 34,2000                        P30S1              EQUALS                                         
001321,000266: 34,2000                        CSI/CDH1           EQUALS                                         
001322,000267: 34,2000                        ASCFILT            EQUALS                                         
001323,000268: 34,2000                        R12STUFF           EQUALS                                         
001324,000269: 34,2000                                           BNKSUM   34                                    
001325,000270: 
001326,000271: 
001327,000272: 35,2000                                           BANK     35                                    
001328,000273: 35,2000                        CSI/CDH            EQUALS                                         
001329,000274: 

Page 34

001331,000276: 35,2000                        P30S               EQUALS                                         
001332,000277: 35,2000                        GLM                EQUALS                                         
001333,000278: 35,2000                        P40S2              EQUALS                                         
001334,000279: 35,2000                                           BNKSUM   35                                    
001335,000280: 

Page 35

001337,000282:                                                                                                  #  MODULE 6 CONTAINS BANKS 36 THROUGH 43
001338,000283: 
001339,000284: 36,2000                                           BANK     36                                    
001340,000285: 36,2000                        P40S               EQUALS                                         
001341,000286: 36,2000                                           BNKSUM   36                                    
001342,000287: 
001343,000288: 
001344,000289: 37,2000                                           BANK     37                                    
001345,000290: 37,2000                        P05P06             EQUALS                                         
001346,000291: 37,2000                        IMU2               EQUALS                                         
001347,000292: 37,2000                        IMU4               EQUALS                                         
001348,000293: 37,2000                        R31                EQUALS                                         
001349,000294: 37,2000                        IMUSUPER           EQUALS                                         
001350,000295: 37,2000                        SERV1              EQUALS                                         
001351,000296: 37,2000                                           BNKSUM   37                                    
001352,000297: 
001353,000298: 
001354,000299: 40,2000                                           BANK     40                                    
001355,000300: 40,2000                        PINBALL1           EQUALS                                         
001356,000301: 40,2000                        SELFSUPR           EQUALS                                         
001357,000302: 40,2000                        PINSUPER           EQUALS                                         
001358,000303: 40,2000                                           BNKSUM   40                                    
001359,000304: 
001360,000305: 
001361,000306: 41,2000                                           BANK     41                                    
001362,000307: 41,2000                        PINBALL2           EQUALS                                         
001363,000308: 41,2000                                           BNKSUM   41                                    
001364,000309: 
001365,000310: 
001366,000311: 42,2000                                           BANK     42                                    
001367,000312: 42,2000                        SBAND              EQUALS                                         
001368,000313: 42,2000                        PINBALL3           EQUALS                                         
001369,000314: 42,2000                                           BNKSUM   42                                    
001370,000315: 
001371,000316: 
001372,000317: 43,2000                                           BANK     43                                    
001373,000318: 43,2000                        EXTVERBS           EQUALS                                         
001374,000319: 43,2000                        SELFCHEC           EQUALS                                         
001375,000320: 
001376,000321: 43,2000                                           BNKSUM   43                                    
001377,000322: 

Page 36

001379,000324: 
001380,000325: 43,2000  23,2423               HI6ZEROS           EQUALS   ZEROVECS                              #  ZERO VECTOR ALWAYS IN HIGH MEMORY
001381,000326: 43,2000  11,2274               LO6ZEROS           EQUALS   ZEROVEC                               #  ZERO VECTOR ALWAYS IN LOW MEMORY
001382,000327: 43,2000  23,2421               HIDPHALF           EQUALS   UNITX                                 
001383,000328: 43,2000  11,2272               LODPHALF           EQUALS   XUNIT                                 
001384,000329: 43,2000  23,2413               HIDP1/4            EQUALS   DP1/4TH                               
001385,000330: 43,2000  04,2757               LODP1/4            EQUALS   D1/4                                  #  2DEC .25
001386,000331: 43,2000  23,2421               HIUNITX            EQUALS   UNITX                                 
001387,000332: 43,2000  23,2417               HIUNITY            EQUALS   UNITY                                 
001388,000333: 43,2000  23,2415               HIUNITZ            EQUALS   UNITZ                                 
001389,000334: 43,2000  11,2272               LOUNITX            EQUALS   XUNIT                                 #  2DEC .5
001390,000335: 43,2000  11,2270               LOUNITY            EQUALS   YUNIT                                 #  2DEC 0
001391,000336: 43,2000  11,2266               LOUNITZ            EQUALS   ZUNIT                                 #  2DEC 0
001392,000337: 
001393,000338: 
001394,000339: 
001395,000340: 43,2000  22,3541               DELRSPL            EQUALS   SPLRET                                #  COL PGM, ALSO CALLED BY R30 IN LUMINARY
001396,000341:                                                                                                  #  ROPE-SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN           DETERMINING INTEGRATION AREA ENTRIES.
001397,000342: 
001398,000343: 43,2000  13,2734               ATOPTHIS           EQUALS   ATOPLEM                               
001399,000344: 43,2000  13,2661               ATOPOTH            EQUALS   ATOPCSM                               
001400,000345: 43,2000  13,3043               OTHPREC            EQUALS   CSMPREC                               
001401,000346: 43,2000  0000174               MOONTHIS           EQUALS   LMOONFLG                              
001402,000347: 43,2000  0000173               MOONOTH            EQUALS   CMOONFLG                              
001403,000348: 43,2000  13,2747               MOVATHIS           EQUALS   MOVEALEM                              
001404,000349: 43,2000  11,2305               RMM                =        LODPMAX                               
001405,000350: 43,2000  11,2307               RME                =        LODPMAX1                              
001406,000351: 43,2000  13,3057               THISPREC           EQUALS   LEMPREC                               
001407,000352: 43,2000  23,2415               THISAXIS           =        UNITZ                                 
001408,000353: 43,2000  23,2415               NB1NB2             EQUALS   THISAXIS                              #  FOR R31
001409,000354: 43,2000     5011               ERASID             EQUALS   BITS2-10                              #  DOWNLINK ERASABLE DUMP ID
001410,000355: 43,2000     4752               DELAYNUM           EQUALS   TWO                                   

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