Source Code
![]() |
These source-code files were derived originally from the scan from MIT's Dibner Institute's
now-discontinued website titled "History of Recent Science and Technology". It is believed
that the original listing was preserved by AGC developer Don Eyles, copied/reduced by
AGC developer Hugh Blair-Smith, passed by AGC developer James Kernan to collector David Craig,
scanned by Gary Neff, and then passed to the Dibner Institute
where unfortunately the high-quality scans were reduced in legibility as part of the
online-presentation process, and the original scans discarded.
The source code was transcribed from
those images by Ron Burkey. The images from the Dibner Institute website, and unfortunately not
the discarded original high-quality scans, though with a few high-quality replacement scans
provided directly by Gary Neff, are now available
at the Virtual AGC project website.
Report any conversion errors to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 131 OF AGC PROGRAM LUMINARY BY NASA 2021112-091 17:53 DEC. 19, 1969Note that the date is the date of the printout, not the date of the program revision. |
001146,000002: ## Copyright: Public domain.
001147,000003: ## Filename: TAGS_FOR_RELATIVE_SETLOC.agc
001148,000004: ## Purpose: Header information for Luminary 1C, revision 131.
001149,000005: ## It is part of the source code for the Lunar Module's (LM)
001150,000006: ## Apollo Guidance Computer (AGC) for Apollo 13 and Apollo 14.
001151,000007: ## This file is intended to be a faithful transcription, except
001152,000008: ## that the code format has been changed to conform to the
001153,000009: ## requirements of the yaYUL assembler rather than the
001154,000010: ## original YUL assembler.
001155,000011: ## Reference: Pages 33-42 of 1729.pdf.
001156,000012: ## Contact: Ron Burkey <info@sandroid.org>.
001157,000013: ## Website: www.ibiblio.org/apollo/index.html
001158,000014: ## Mod history: 04/23/03 RSB. First draft.
001159,000015: ## 05/14/05 RSB Corrected website reference above.
001160,000016: ##
001161,000017: ## The contents of this file, and all associated "Luminary131" files, are
001162,000018: ## transcribed from a scanned document obtained from MIT's website,
001163,000019: ## http://hrst.mit.edu/hrs/apollo/public/archive/1729.pdf. Notations on this
001164,000020: ## document read, in part:
001165,000021: ##
001166,000022: ## NASA Apollo LUMINARY 131 (1C) Program Source Code Listing.
001167,000023: ## MIT Instrumentation/Draper Laboratory -- 19 December 1969, 1742 pages.
001168,000024: ## This listing contains the flight program for the Lunar Module
001169,000025: ## as created by MIT's Draper Lab for the Apollo 13/14 moon missions.
001170,000026: ##
001171,000027: ## Refer directly to the online document mentioned above for further information.
001172,000028: ## Please report any errors in this listing (relative to 1729.pdf) to info@sandroid.org.
001173,000029:
![]() |
Page 33 |
001175,000031: # TAGS FOR RELATIVE SETLOC AND BLANK BANK CARDS
001176,000032:
001177,000033: ??????? COUNT BANKSUM
001178,000034:
001179,000035: # MODULE 1 CONTAINS BANKS 0 THROUGH 5
001180,000036:
001181,000037: 4000 BLOCK 02
001182,000038: 4000 RADARFF EQUALS
001183,000039: 4000 FFTAG1 EQUALS
001184,000040: 4000 FFTAG2 EQUALS
001185,000041: 4000 FFTAG3 EQUALS
001186,000042: 4000 FFTAG4 EQUALS
001187,000043: 4000 FFTAG7 EQUALS
001188,000044: 4000 FFTAG8 EQUALS
001189,000045: 4000 FFTAG9 EQUALS
001190,000046: 4000 FFTAG10 EQUALS
001191,000047: 4000 FFTAG11 EQUALS
001192,000048: 4000 FFTAG12 EQUALS
001193,000049: 4000 FFTAG13 EQUALS
001194,000050: 4000 BNKSUM 02
001195,000051:
001196,000052: 6000 BLOCK 03
001197,000053: 6000 FFTAG5 EQUALS
001198,000054: 6000 FFTAG6 EQUALS
001199,000055: 6000 BNKSUM 03
001200,000056:
001201,000057: 00,2000 BANK 00
001202,000058: 00,2000 DLAYJOB EQUALS
001203,000059: 00,2000 BNKSUM 00
001204,000060:
001205,000061: 01,2000 BANK 01
001206,000062: 01,2000 RESTART EQUALS
001207,000063: 01,2000 LOADDAP1 EQUALS
001208,000064: 01,2000 BNKSUM 01
001209,000065:
001210,000066: 04,2000 BANK 04
001211,000067: 04,2000 ORBITAL3 EQUALS
001212,000068: 04,2000 R02 EQUALS
001213,000069: 04,2000 VERB37 EQUALS
001214,000070: 04,2000 PINBALL4 EQUALS
001215,000071: 04,2000 CONICS1 EQUALS
001216,000072: 04,2000 KEYRUPT EQUALS
001217,000073: 04,2000 R36LM EQUALS
001218,000074: 04,2000 UPDATE2 EQUALS
001219,000075: 04,2000 E/PROG EQUALS
001220,000076: 04,2000 AOTMARK2 EQUALS
001221,000077:
![]() |
Page 34 |
001223,000079:
001224,000080: 04,2000 BNKSUM 04
001225,000081:
001226,000082: 05,2000 BANK 05
001227,000083: 05,2000 FRANDRES EQUALS
001228,000084: 05,2000 DOWNTELM EQUALS
001229,000085: 05,2000 ABORTS1 EQUALS
001230,000086: 05,2000 EPHEM1 EQUALS
001231,000087: 05,2000 ASENT3 EQUALS
001232,000088: 05,2000 BNKSUM 05
001233,000089:
001234,000090: # MODULE 2 CONTAINS BANKS 6 THROUGH 13
001235,000091:
001236,000092: 06,2000 BANK 06
001237,000093: 06,2000 IMUCOMP EQUALS
001238,000094: 06,2000 T4RUP EQUALS
001239,000095: 06,2000 RCSMONT EQUALS
001240,000096: 06,2000 MIDDGIM EQUALS
001241,000097: 06,2000 EARTHLOC EQUALS
001242,000098: 06,2000 BNKSUM 06
001243,000099:
001244,000100: 07,2000 BANK 07
001245,000101: 07,2000 AOTMARK1 EQUALS
001246,000102: 07,2000 MODESW EQUALS
001247,000103: 07,2000 ASENT2 EQUALS
001248,000104: 07,2000 BNKSUM 07
001249,000105:
001250,000106: 10,2000 BANK 10
001251,000107: 10,2000 RTBCODES EQUALS
001252,000108: 10,2000 DISPLAYS EQUALS
001253,000109: 10,2000 PHASETAB EQUALS
001254,000110: 10,2000 FLESHLOC EQUALS
001255,000111: 10,2000 SLCTMU EQUALS
001256,000112: 10,2000 BNKSUM 10
001257,000113:
001258,000114: 11,2000 BANK 11
001259,000115: 11,2000 ORBITAL EQUALS
001260,000116: 11,2000 F2DPS*11 EQUALS
001261,000117: 11,2000 INTVEL EQUALS
001262,000118: 11,2000 BNKSUM 11
001263,000119:
![]() |
Page 35 |
001265,000121: 12,2000 BANK 12
001266,000122: 12,2000 CONICS EQUALS
001267,000123: 12,2000 ORBITAL1 EQUALS
001268,000124: 12,2000 INTPRET2 EQUALS
001269,000125: 12,2000 BNKSUM 12
001270,000126:
001271,000127: 13,2000 BANK 13
001272,000128: 13,2000 LATLONG EQUALS
001273,000129: 13,2000 INTINIT EQUALS
001274,000130: 13,2000 LEMGEOM EQUALS
001275,000131: 13,2000 P76LOC EQUALS
001276,000132: 13,2000 ORBITAL2 EQUALS
001277,000133: 13,2000 ABTFLGS EQUALS
001278,000134: 13,2000 BNKSUM 13
001279,000135:
![]() |
Page 36 |
001281,000137: # BANK 3 CONTAINS BANKS 14 THROUGH 21
001282,000138:
001283,000139: 14,2000 BANK 14
001284,000140: 14,2000 P50S1 EQUALS
001285,000141: 14,2000 STARTAB EQUALS
001286,000142: 14,2000 ASENT4 EQUALS
001287,000143: 14,2000 BNKSUM 14
001288,000144:
001289,000145: 15,2000 BANK 15
001290,000146: 15,2000 P50S EQUALS
001291,000147: 15,2000 EPHEM EQUALS
001292,000148: 15,2000 BNKSUM 15
001293,000149:
001294,000150: 16,2000 BANK 16
001295,000151: 16,2000 DAPS1 EQUALS
001296,000152: 16,2000 BNKSUM 16
001297,000153:
001298,000154: 17,2000 BANK 17
001299,000155: 17,2000 DAPS2 EQUALS
001300,000156: 17,2000 C13BANK EQUALS
001301,000157: 17,2000 BNKSUM 17
001302,000158:
001303,000159: 20,2000 BANK 20
001304,000160: 20,2000 DAPS3 EQUALS
001305,000161: 20,2000 LOADDAP EQUALS
001306,000162: 20,2000 BNKSUM 20
001307,000163:
001308,000164: 21,2000 BANK 21
001309,000165: 21,2000 DAPS4 EQUALS
001310,000166: 21,2000 R10 EQUALS
001311,000167: 21,2000 R11 EQUALS
001312,000168: 21,2000 BNKSUM 21
![]() |
Page 37 |
001314,000170:
001315,000171: # MODULE 4 CONTAINS BANKS 22 THROUGH 27
001316,000172:
001317,000173: 22,2000 BANK 22
001318,000174: 22,2000 KALCMON1 EQUALS
001319,000175: 22,2000 KALCMON2 EQUALS
001320,000176: 22,2000 R30LOC EQUALS
001321,000177: 22,2000 RENDEZ EQUALS
001322,000178: 22,2000 SERV2 EQUALS
001323,000179: 22,2000 LANDCNST EQUALS
001324,000180: 22,2000 BNKSUM 22
001325,000181:
001326,000182: 23,2000 BANK 23
001327,000183: 23,2000 POWFLITE EQUALS
001328,000184: 23,2000 POWFLIT1 EQUALS
001329,000185: 23,2000 INFLIGHT EQUALS
001330,000186: 23,2000 APOPERI EQUALS
001331,000187: 23,2000 R61 EQUALS
001332,000188: 23,2000 R62 EQUALS
001333,000189: 23,2000 INTPRET1 EQUALS
001334,000190: 23,2000 MEASINC EQUALS
001335,000191: 23,2000 MEASINC1 EQUALS
001336,000192: 23,2000 EXTVB1 EQUALS
001337,000193: 23,2000 P12A EQUALS
001338,000194: 23,2000 NORMLIZ EQUALS
001339,000195: 23,2000 ASENT7 EQUALS
001340,000196: 23,2000 RODTRAP EQUALS
001341,000197: 23,2000 BNKSUM 23
001342,000198:
001343,000199: 24,2000 BANK 24
001344,000200: 24,2000 PLANTIN EQUALS
001345,000201: 24,2000 P20S EQUALS
001346,000202: 24,2000 BNKSUM 24
001347,000203:
001348,000204: 25,2000 BANK 25
001349,000205: 25,2000 P20S1 EQUALS
001350,000206: 25,2000 P20S2 EQUALS
001351,000207: 25,2000 RADARUPT EQUALS
001352,000208: 25,2000 RRLEADIN EQUALS
001353,000209: 25,2000 R29S1 EQUALS
001354,000210: 25,2000 PLANTIN3 EQUALS
001355,000211: 25,2000 BNKSUM 25
001356,000212:
001357,000213: 26,2000 BANK 26
![]() |
Page 38 |
001359,000215: 26,2000 P20S3 EQUALS
001360,000216: 26,2000 BAWLANGS EQUALS
001361,000217: 26,2000 MANUVER EQUALS
001362,000218: 26,2000 MANUVER1 EQUALS
001363,000219: 26,2000 PLANTIN1 EQUALS
001364,000220: 26,2000 PLANTIN2 EQUALS
001365,000221: 26,2000 BNKSUM 26
001366,000222:
001367,000223: 27,2000 BANK 27
001368,000224: 27,2000 TOF-FF EQUALS
001369,000225: 27,2000 TOF-FF1 EQUALS
001370,000226: 27,2000 P40S1 EQUALS
001371,000227: 27,2000 VECPT EQUALS
001372,000228: 27,2000 ASENT1 EQUALS
001373,000229: 27,2000 SERV3 EQUALS
001374,000230: 27,2000 BNKSUM 27
001375,000231:
![]() |
Page 39 |
001377,000233: # MODULE 5 CONTAINS BANKS 30 THROUGH 35
001378,000234:
001379,000235: 30,2000 BANK 30
001380,000236: 30,2000 LOWSUPER EQUALS
001381,000237: 30,2000 P12 EQUALS
001382,000238: 30,2000 ASENT EQUALS
001383,000239: 30,2000 FCDUW EQUALS
001384,000240: 30,2000 FLOGSUB EQUALS
001385,000241: 30,2000 VB67A EQUALS
001386,000242: 30,2000 ASENT5 EQUALS
001387,000243: 30,2000 BNKSUM 30
001388,000244:
001389,000245: 31,2000 BANK 31
001390,000246: 31,2000 FTHROT EQUALS
001391,000247: 31,2000 F2DPS*31 EQUALS
001392,000248: 31,2000 VB67 EQUALS
001393,000249: 31,2000 BNKSUM 31
001394,000250:
001395,000251: 32,2000 BANK 32
001396,000252: 32,2000 P20S4 EQUALS
001397,000253: 32,2000 F2DPS*32 EQUALS
001398,000254: 32,2000 ABORTS EQUALS
001399,000255: 32,2000 LRS22 EQUALS
001400,000256: 32,2000 P66LOC EQUALS
001401,000257: 32,2000 R47 EQUALS
001402,000258: 32,2000 SERV EQUALS
001403,000259: 32,2000 BNKSUM 32
001404,000260:
001405,000261: 33,2000 BANK 33
001406,000262: 33,2000 SERVICES EQUALS
001407,000263: 33,2000 R29/SERV EQUALS
001408,000264: 33,2000 ASENT6 EQUALS
001409,000265: 33,2000 BNKSUM 33
001410,000266:
001411,000267: 34,2000 BANK 34
001412,000268: 34,2000 ASENT8 EQUALS
001413,000269: 34,2000 P30S1 EQUALS
001414,000270: 34,2000 CSI/CDH1 EQUALS
001415,000271: 34,2000 ASCFILT EQUALS
001416,000272: 34,2000 R12STUFF EQUALS
001417,000273: 34,2000 SERV4 EQUALS
001418,000274: 34,2000 F2DPS*34 EQUALS
![]() |
Page 40 |
001420,000276: 34,2000 BNKSUM 34
001421,000277:
001422,000278: 35,2000 BANK 35
001423,000279: 35,2000 CSI/CDH EQUALS
001424,000280: 35,2000 P30S EQUALS
001425,000281: 35,2000 P40S3 EQUALS
001426,000282: 35,2000 P40S2 EQUALS
001427,000283: 35,2000 BNKSUM 35
001428,000284:
![]() |
Page 41 |
001430,000286: # MODULE 6 CONTAINS BANKS 36 THROUGH 43
001431,000287:
001432,000288: 36,2000 BANK 36
001433,000289: 36,2000 P40S EQUALS
001434,000290: 36,2000 BNKSUM 36
001435,000291:
001436,000292: 37,2000 BANK 37
001437,000293: 37,2000 P05P06 EQUALS
001438,000294: 37,2000 IMU2 EQUALS
001439,000295: 37,2000 IMU4 EQUALS
001440,000296: 37,2000 R31 EQUALS
001441,000297: 37,2000 IMUSUPER EQUALS
001442,000298: 37,2000 SERV1 EQUALS
001443,000299: 37,2000 BNKSUM 37
001444,000300:
001445,000301: 40,2000 BANK 40
001446,000302: 40,2000 PINBALL1 EQUALS
001447,000303: 40,2000 SELFSUPR EQUALS
001448,000304: 40,2000 PINSUPER EQUALS
001449,000305: 40,2000 R31LOC EQUALS
001450,000306: 40,2000 BNKSUM 40
001451,000307:
001452,000308: 41,2000 BANK 41
001453,000309: 41,2000 PINBALL2 EQUALS
001454,000310: 41,2000 BNKSUM 41
001455,000311:
001456,000312: 42,2000 BANK 42
001457,000313: 42,2000 SBAND EQUALS
001458,000314: 42,2000 PINBALL3 EQUALS
001459,000315: 42,2000 BNKSUM 42
001460,000316:
001461,000317: 43,2000 BANK 43
001462,000318: 43,2000 EXTVERBS EQUALS
001463,000319: 43,2000 SELFCHEC EQUALS
001464,000320: 43,2000 BNKSUM 43
001465,000321:
![]() |
Page 42 |
001467,000323:
001468,000324: 43,2000 23,2523 HI6ZEROS EQUALS ZEROVECS # ZERO VECTOR ALWAYS IN HIGH MEMORY
001469,000325: 43,2000 12,2006 LO6ZEROS EQUALS ZEROVEC # ZERO VECTOR ALWAYS IN LOW MEMORY
001470,000326: 43,2000 23,2521 HIDPHALF EQUALS UNITX
001471,000327: 43,2000 12,2004 LODPHALF EQUALS XUNIT
001472,000328: 43,2000 23,2513 HIDP1/4 EQUALS DP1/4TH # (line is garbled)
001473,000329: 43,2000 04,3002 LODP1/4 EQUALS D1/4 # 2DEC .25
001474,000330: 43,2000 23,2521 HIUNITX EQUALS UNITX
001475,000331: 43,2000 23,2517 HIUNITY EQUALS UNITY
001476,000332: 43,2000 23,2515 HIUNITZ EQUALS UNITZ
001477,000333: 43,2000 12,2004 LOUNITX EQUALS XUNIT # 2DEC .5
001478,000334: 43,2000 12,2002 LOUNITY EQUALS YUNIT # 2DEC 0
001479,000335: 43,2000 12,2000 LOUNITZ EQUALS ZUNIT # 2DEC 0
001480,000336:
001481,000337: 43,2000 22,3541 DELRSPL EQUALS SPLRET # COL PGM, ALSO CALLED BY R30 IN LUMINARY.
001482,000338:
001483,000339: # ROPE-SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN (garbled) DETERMINING INTEGRATION AREA ENTRIES.
001484,000340:
001485,000341: 43,2000 13,2733 ATOPTHIS EQUALS ATOPLEM
001486,000342: 43,2000 13,2660 ATOPOTH EQUALS ATOPCSM
001487,000343: 43,2000 13,3042 OTHPREC EQUALS CSMPREC
001488,000344: 43,2000 0000174 MOONTHIS EQUALS LMOONFLG
001489,000345: 43,2000 0000173 MOONOTH EQUALS CMOONFLG
001490,000346: 43,2000 13,2746 MOVATHIS EQUALS MOVEALEM
001491,000347: 43,2000 12,2017 RMM = LODPMAX
001492,000348: 43,2000 12,2021 RME = LODPMAX1
001493,000349: 43,2000 13,3056 THISPREC EQUALS LEMPREC
001494,000350: 43,2000 23,2515 THISAXIS = UNITZ
001495,000351: 43,2000 23,2515 NB1NB2 EQUALS THISAXIS # FOR R31
001496,000352: 43,2000 5011 ERASID EQUALS BITS2-10 # DOWNLINK ERASABLE DUMP IO
001497,000353: 43,2000 4752 DELAYNUM EQUALS TWO
001498,000354:
End of include-file TAGS_FOR_RELATIVE_SETLOC.agc. Parent file is MAIN.agc