Source Code
These source-code files are part of a reconstructed copy of Luminary 97, the
second release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer
(AGC) software. It was created to fix two incorrect ephemeris constants in
Luminary 96, as described by anomaly report LNY-59.
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. |
001090,000002: ## Copyright: Public domain.
001091,000003: ## Filename: TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc
001092,000004: ## Purpose: A section of Luminary revision 97.
001093,000005: ## It is part of the reconstructed source code for the
001094,000006: ## second release of the flight software for the Lunar
001095,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
001096,000008: ## It was created to fix two incorrect ephemeris constants in
001097,000009: ## Luminary 96, as described by anomaly report LNY-59.
001098,000010: ## The code has been recreated from a copy of Luminary 99
001099,000011: ## revision 001, using asterisks indicating changed lines in
001100,000012: ## the listing and Luminary Memos #83 and #85, which list
001101,000013: ## changes between Luminary 97 and 98, and 98 and 99. The
001102,000014: ## code has been adapted such that the resulting bugger words
001103,000015: ## exactly match those specified for Luminary 97 in NASA drawing
001104,000016: ## 2021152D, which gives relatively high confidence that the
001105,000017: ## reconstruction is correct.
001106,000018: ## Reference: pp. 28-37
001107,000019: ## Assembler: yaYUL
001108,000020: ## Contact: Ron Burkey <info@sandroid.org>.
001109,000021: ## Website: www.ibiblio.org/apollo/index.html
001110,000022: ## Mod history: 2019-07-28 MAS Created from Luminary 99.
001111,000023:
Page 28 |
001113,000025: ??????? COUNT BANKSUM
001114,000026:
001115,000027: # MODULE 1 CONTAINS BANKS 0 THROUGH 5
001116,000028:
001117,000029: 4000 BLOCK 02
001118,000030: 4000 RADARFF EQUALS
001119,000031: 4000 FFTAG1 EQUALS
001120,000032: 4000 FFTAG2 EQUALS
001121,000033: 4000 FFTAG3 EQUALS
001122,000034: 4000 FFTAG4 EQUALS
001123,000035: 4000 FFTAG7 EQUALS
001124,000036: 4000 FFTAG8 EQUALS
001125,000037: 4000 FFTAG9 EQUALS
001126,000038: 4000 FFTAG10 EQUALS
001127,000039: 4000 FFTAG11 EQUALS
001128,000040: 4000 FFTAG12 EQUALS
001129,000041: 4000 FFTAG13 EQUALS
001130,000042: 4000 BNKSUM 02
001131,000043:
001132,000044: 6000 BLOCK 03
001133,000045: 6000 FFTAG5 EQUALS
001134,000046: 6000 FFTAG6 EQUALS
001135,000047: 6000 BNKSUM 03
001136,000048:
001137,000049: 00,2000 BANK 00
001138,000050: 00,2000 DLAYJOB EQUALS
001139,000051: 00,2000 BNKSUM 00
001140,000052:
001141,000053: 01,2000 BANK 01
001142,000054: 01,2000 RESTART EQUALS
001143,000055: 01,2000 LOADDAP1 EQUALS
001144,000056: 01,2000 BNKSUM 01
001145,000057:
001146,000058: 04,2000 BANK 04
001147,000059: 04,2000 R02 EQUALS
001148,000060: 04,2000 VERB37 EQUALS
001149,000061: 04,2000 PINBALL4 EQUALS
001150,000062: 04,2000 CONICS1 EQUALS
001151,000063: 04,2000 KEYRUPT EQUALS
001152,000064: 04,2000 R36LM EQUALS
001153,000065: 04,2000 UPDATE2 EQUALS
001154,000066: 04,2000 E/PROG EQUALS
001155,000067: 04,2000 AOTMARK2 EQUALS
001156,000068: 04,2000 BNKSUM 04
001157,000069:
Page 29 |
001159,000071: 05,2000 BANK 05
001160,000072: 05,2000 FRANDRES EQUALS
001161,000073: 05,2000 DOWNTELM EQUALS
001162,000074: 05,2000 ABORTS1 EQUALS
001163,000075: 05,2000 EPHEM1 EQUALS
001164,000076: 05,2000 ASENT3 EQUALS
001165,000077: 05,2000 BNKSUM 05
001166,000078:
001167,000079: # MODULE 2 CONTAINS BANKS 6 THROUGH 13
001168,000080:
001169,000081: 06,2000 BANK 06
001170,000082: 06,2000 IMUCOMP EQUALS
001171,000083: 06,2000 T4RUP EQUALS
001172,000084: 06,2000 RCSMONT EQUALS
001173,000085: 06,2000 MIDDGIM EQUALS
001174,000086: 06,2000 EARTHLOC EQUALS
001175,000087: 06,2000 BNKSUM 06
001176,000088:
001177,000089: 07,2000 BANK 07
001178,000090: 07,2000 AOTMARK1 EQUALS
001179,000091: 07,2000 MODESW EQUALS
001180,000092: 07,2000 ASENT2 EQUALS
001181,000093: 07,2000 BNKSUM 07
001182,000094:
001183,000095: 10,2000 BANK 10
001184,000096: 10,2000 RTBCODES EQUALS
001185,000097: 10,2000 DISPLAYS EQUALS
001186,000098: 10,2000 PHASETAB EQUALS
001187,000099: 10,2000 FLESHLOC EQUALS
001188,000100: 10,2000 SLCTMU EQUALS
001189,000101: 10,2000 BNKSUM 10
001190,000102:
001191,000103: 11,2000 BANK 11
001192,000104: 11,2000 ORBITAL EQUALS
001193,000105: 11,2000 F2DPS*11 EQUALS
001194,000106: 11,2000 INTVEL EQUALS
001195,000107: 11,2000 BNKSUM 11
001196,000108:
001197,000109: 12,2000 BANK 12
001198,000110: 12,2000 CONICS EQUALS
001199,000111: 12,2000 ORBITAL1 EQUALS
Page 30 |
001201,000113: 12,2000 INTPRET2 EQUALS
001202,000114: 12,2000 BNKSUM 12
001203,000115:
001204,000116: 13,2000 BANK 13
001205,000117: 13,2000 LATLONG EQUALS
001206,000118: 13,2000 INTINIT EQUALS
001207,000119: 13,2000 LEMGEOM EQUALS
001208,000120: 13,2000 P76LOC EQUALS
001209,000121: 13,2000 ORBITAL2 EQUALS
001210,000122: 13,2000 ABTFLGS EQUALS
001211,000123: 13,2000 BNKSUM 13
001212,000124:
Page 31 |
001214,000126: # MODULE 3 CONTAINS BANKS 14 THROUGH 21
001215,000127:
001216,000128: 14,2000 BANK 14
001217,000129: 14,2000 P50S1 EQUALS
001218,000130: 14,2000 STARTAB EQUALS
001219,000131: 14,2000 ASENT4 EQUALS
001220,000132: 14,2000 BNKSUM 14
001221,000133:
001222,000134: 15,2000 BANK 15
001223,000135: 15,2000 P50S EQUALS
001224,000136: 15,2000 EPHEM EQUALS
001225,000137: 15,2000 BNKSUM 15
001226,000138:
001227,000139: 16,2000 BANK 16
001228,000140: 16,2000 DAPS1 EQUALS
001229,000141: 16,2000 BNKSUM 16
001230,000142:
001231,000143: 17,2000 BANK 17
001232,000144: 17,2000 DAPS2 EQUALS
001233,000145: 17,2000 P40S3 EQUALS
001234,000146: 17,2000 BNKSUM 17
001235,000147:
001236,000148: 20,2000 BANK 20
001237,000149: 20,2000 DAPS3 EQUALS
001238,000150: 20,2000 LOADDAP EQUALS
001239,000151: 20,2000 RODTRAP EQUALS
001240,000152: 20,2000 BNKSUM 20
001241,000153:
001242,000154: 21,2000 BANK 21
001243,000155: 21,2000 DAPS4 EQUALS
001244,000156: 21,2000 R10 EQUALS
001245,000157: 21,2000 R11 EQUALS
001246,000158: 21,2000 BNKSUM 21
Page 32 |
001248,000160:
001249,000161: # MODULE 4 CONTAINS BANKS 22 THROUGH 27
001250,000162:
001251,000163: 22,2000 BANK 22
001252,000164: 22,2000 KALCMON1 EQUALS
001253,000165: 22,2000 KALCMON2 EQUALS
001254,000166: 22,2000 R30LOC EQUALS
001255,000167: 22,2000 RENDEZ EQUALS
001256,000168: 22,2000 SERV2 EQUALS
001257,000169: 22,2000 LANDCNST EQUALS
001258,000170: 22,2000 BNKSUM 22
001259,000171:
001260,000172: 23,2000 BANK 23
001261,000173: 23,2000 POWFLITE EQUALS
001262,000174: 23,2000 POWFLIT1 EQUALS
001263,000175: 23,2000 INFLIGHT EQUALS
001264,000176: 23,2000 APOPERI EQUALS
001265,000177: 23,2000 R61 EQUALS
001266,000178: 23,2000 R62 EQUALS
001267,000179: 23,2000 INTPRET1 EQUALS
001268,000180: 23,2000 MEASINC EQUALS
001269,000181: 23,2000 MEASINC1 EQUALS
001270,000182: 23,2000 EXTVB1 EQUALS
001271,000183: 23,2000 P12A EQUALS
001272,000184: 23,2000 NORMLIZ EQUALS
001273,000185: 23,2000 ASENT7 EQUALS
001274,000186: 23,2000 BNKSUM 23
001275,000187:
001276,000188: 24,2000 BANK 24
001277,000189: 24,2000 PLANTIN EQUALS
001278,000190: 24,2000 P20S EQUALS
001279,000191: 24,2000 BNKSUM 24
001280,000192:
001281,000193: 25,2000 BANK 25
001282,000194: 25,2000 P20S1 EQUALS
001283,000195: 25,2000 P20S2 EQUALS
001284,000196: 25,2000 RADARUPT EQUALS
001285,000197: 25,2000 RRLEADIN EQUALS
001286,000198: 25,2000 R29S1 EQUALS
001287,000199: 25,2000 PLANTIN3 EQUALS
001288,000200: 25,2000 BNKSUM 25
001289,000201:
001290,000202: 26,2000 BANK 26
Page 33 |
001292,000204: 26,2000 P20S3 EQUALS
001293,000205: 26,2000 BAWLANGS EQUALS
001294,000206: 26,2000 MANUVER EQUALS
001295,000207: 26,2000 MANUVER1 EQUALS
001296,000208: 26,2000 PLANTIN1 EQUALS
001297,000209: 26,2000 PLANTIN2 EQUALS
001298,000210: 26,2000 BNKSUM 26
001299,000211:
001300,000212: 27,2000 BANK 27
001301,000213: 27,2000 TOF-FF EQUALS
001302,000214: 27,2000 TOF-FF1 EQUALS
001303,000215: 27,2000 P40S1 EQUALS
001304,000216: 27,2000 VECPT EQUALS
001305,000217: 27,2000 ASENT1 EQUALS
001306,000218: 27,2000 SERV3 EQUALS
001307,000219: 27,2000 BNKSUM 27
001308,000220:
Page 34 |
001310,000222: # MODULE 5 CONTAINS BANKS 30 THROUGH 35
001311,000223:
001312,000224: 30,2000 BANK 30
001313,000225: 30,2000 LOWSUPER EQUALS
001314,000226: 30,2000 P12 EQUALS
001315,000227: 30,2000 ASENT EQUALS
001316,000228: 30,2000 FCDUW EQUALS
001317,000229: 30,2000 FLOGSUB EQUALS
001318,000230: 30,2000 VB67A EQUALS
001319,000231: 30,2000 ASENT5 EQUALS
001320,000232: 30,2000 BNKSUM 30
001321,000233:
001322,000234: 31,2000 BANK 31
001323,000235: 31,2000 FTHROT EQUALS
001324,000236: 31,2000 F2DPS*31 EQUALS
001325,000237: 31,2000 VB67 EQUALS
001326,000238: 31,2000 BNKSUM 31
001327,000239:
001328,000240: 32,2000 BANK 32
001329,000241: 32,2000 P20S4 EQUALS
001330,000242: 32,2000 F2DPS*32 EQUALS
001331,000243: 32,2000 ABORTS EQUALS
001332,000244: 32,2000 LRS22 EQUALS
001333,000245: 32,2000 P66LOC EQUALS
001334,000246: 32,2000 R47 EQUALS
001335,000247: 32,2000 SERV EQUALS
001336,000248: 32,2000 BNKSUM 32
001337,000249:
001338,000250: 33,2000 BANK 33
001339,000251: 33,2000 SERVICES EQUALS
001340,000252: 33,2000 R29/SERV EQUALS
001341,000253: 33,2000 ASENT6 EQUALS
001342,000254: 33,2000 BNKSUM 33
001343,000255:
001344,000256: 34,2000 BANK 34
001345,000257: 34,2000 STBLEORB EQUALS
001346,000258: 34,2000 P30S1 EQUALS
001347,000259: 34,2000 CSI/CDH1 EQUALS
001348,000260: 34,2000 ASCFILT EQUALS
001349,000261: 34,2000 R12STUFF EQUALS
001350,000262: 34,2000 SERV4 EQUALS
001351,000263: 34,2000 BNKSUM 34
001352,000264:
Page 35 |
001354,000266: 35,2000 BANK 35
001355,000267: 35,2000 CSI/CDH EQUALS
001356,000268: 35,2000 P30S EQUALS
001357,000269: 35,2000 GLM EQUALS
001358,000270: 35,2000 P40S2 EQUALS
001359,000271: 35,2000 BNKSUM 35
001360,000272:
Page 36 |
001362,000274: # MODULE 6 CONTAINS BANKS 36 THROUGH 43
001363,000275:
001364,000276: 36,2000 BANK 36
001365,000277: 36,2000 P40S EQUALS
001366,000278: 36,2000 BNKSUM 36
001367,000279:
001368,000280: 37,2000 BANK 37
001369,000281: 37,2000 P05P06 EQUALS
001370,000282: 37,2000 IMU2 EQUALS
001371,000283: 37,2000 IMU4 EQUALS
001372,000284: 37,2000 R31 EQUALS
001373,000285: 37,2000 IMUSUPER EQUALS
001374,000286: 37,2000 SERV1 EQUALS
001375,000287: 37,2000 BNKSUM 37
001376,000288:
001377,000289: 40,2000 BANK 40
001378,000290: 40,2000 PINBALL1 EQUALS
001379,000291: 40,2000 SELFSUPR EQUALS
001380,000292: 40,2000 PINSUPER EQUALS
001381,000293: 40,2000 R31LOC EQUALS
001382,000294: 40,2000 BNKSUM 40
001383,000295:
001384,000296: 41,2000 BANK 41
001385,000297: 41,2000 PINBALL2 EQUALS
001386,000298: 41,2000 BNKSUM 41
001387,000299:
001388,000300: 42,2000 BANK 42
001389,000301: 42,2000 SBAND EQUALS
001390,000302: 42,2000 PINBALL3 EQUALS
001391,000303: 42,2000 BNKSUM 42
001392,000304:
001393,000305: 43,2000 BANK 43
001394,000306: 43,2000 EXTVERBS EQUALS
001395,000307: 43,2000 SELFCHEC EQUALS
001396,000308: 43,2000 BNKSUM 43
001397,000309:
Page 37 |
001399,000311:
001400,000312: 43,2000 23,2521 HI6ZEROS EQUALS ZEROVECS # ZERO VECTOR ALWAYS IN HIGH MEMORY
001401,000313: 43,2000 12,2006 LO6ZEROS EQUALS ZEROVEC # ZERO VECTOR ALWAYS IN LOW MEMORY
001402,000314: 43,2000 23,2517 HIDPHALF EQUALS UNITX
001403,000315: 43,2000 12,2004 LODPHALF EQUALS XUNIT
001404,000316: 43,2000 23,2511 HIDP1/4 EQUALS DP1/4TH
001405,000317: 43,2000 04,3036 LODP1/4 EQUALS D1/4 # 2DEC .25
001406,000318: 43,2000 23,2517 HIUNITX EQUALS UNITX
001407,000319: 43,2000 23,2515 HIUNITY EQUALS UNITY
001408,000320: 43,2000 23,2513 HIUNITZ EQUALS UNITZ
001409,000321: 43,2000 12,2004 LOUNITX EQUALS XUNIT # 2DEC .5
001410,000322: 43,2000 12,2002 LOUNITY EQUALS YUNIT # 2DEC 0
001411,000323: 43,2000 12,2000 LOUNITZ EQUALS ZUNIT # 2DEC 0
001412,000324:
001413,000325: 43,2000 22,3541 DELRSPL EQUALS SPLRET # COL PGM, ALSO CALLED BY R30 IN LUMINARY
001414,000326:
001415,000327: # ROPE-SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN DETERMINING INTEGRATION AREA ENTRIES.
001416,000328:
001417,000329: 43,2000 13,2734 ATOPTHIS EQUALS ATOPLEM
001418,000330: 43,2000 13,2661 ATOPOTH EQUALS ATOPCSM
001419,000331: 43,2000 13,3043 OTHPREC EQUALS CSMPREC
001420,000332: 43,2000 0000174 MOONTHIS EQUALS LMOONFLG
001421,000333: 43,2000 0000173 MOONOTH EQUALS CMOONFLG
001422,000334: 43,2000 13,2747 MOVATHIS EQUALS MOVEALEM
001423,000335: 43,2000 12,2017 RMM = LODPMAX
001424,000336: 43,2000 12,2021 RME = LODPMAX1
001425,000337: 43,2000 13,3057 THISPREC EQUALS LEMPREC
001426,000338: 43,2000 23,2513 THISAXIS = UNITZ
001427,000339: 43,2000 23,2513 NB1NB2 EQUALS THISAXIS # FOR R31
001428,000340: 43,2000 5011 ERASID EQUALS BITS2-10 # DOWNLINK ERASABLE DUMP ID
001429,000341: 43,2000 4752 DELAYNUM EQUALS TWO
001430,000342:
End of include-file TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc. Parent file is MAIN.agc