Source Code
These source-code files derive from a printout of Luminary 116 (the Apollo 12
Lunar Module guidance computer program), from the personal library of
original AGC developer Don Eyles, digitally photographed at archive.org,
financially sponsored by Ron Burkey, and transcribed to source code by a
team of volunteers. This colorized, syntax-highlighted form was created
by assembling that transcribed source code. Note that the full page images
are available on the
Virtual AGC project page at archive.org, while reduced-size images
are presented at the VirtualAGC project website. Report or fix any
transcription errors at
the Virtual AGC project code repository. Notations on the program listing read, in part: GAP: ASSEMBLE REVISION 116 OF AGC PROGRAM LUMINARY BY NASA 2021112-071 19:09 AUG. 11,1969Note that the date is the date of the printout, not the date of the program revision. |
001089,000002: ## Copyright: Public domain.
001090,000003: ## Filename: TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc
001091,000004: ## Purpose: A section of Luminary revision 116.
001092,000005: ## It is part of the source code for the Lunar Module's (LM)
001093,000006: ## Apollo Guidance Computer (AGC) for Apollo 12.
001094,000007: ## This file is intended to be a faithful transcription, except
001095,000008: ## that the code format has been changed to conform to the
001096,000009: ## requirements of the yaYUL assembler rather than the
001097,000010: ## original YUL assembler.
001098,000011: ## Reference: pp. 28-37
001099,000012: ## Assembler: yaYUL
001100,000013: ## Contact: Ron Burkey <info@sandroid.org>.
001101,000014: ## Website: www.ibiblio.org/apollo/index.html
001102,000015: ## Mod history: 2017-01-22 MAS Created from Luminary 99.
001103,000016: ## 2017-02-25 HG Transcribed
001104,000017: ## 2017-03-01 RSB Proofed comment text by diff vs Luminary 131
001105,000018: ## but no errors found.
001106,000019:
Page 28 |
001108,000021: ??????? COUNT BANKSUM
001109,000022:
001110,000023: # MODULE 1 CONTAINS BANKS 0 THROUGH 5
001111,000024:
001112,000025: 4000 BLOCK 02
001113,000026: 4000 RADARFF EQUALS
001114,000027: 4000 FFTAG1 EQUALS
001115,000028: 4000 FFTAG2 EQUALS
001116,000029: 4000 FFTAG3 EQUALS
001117,000030: 4000 FFTAG4 EQUALS
001118,000031: 4000 FFTAG7 EQUALS
001119,000032: 4000 FFTAG8 EQUALS
001120,000033: 4000 FFTAG9 EQUALS
001121,000034: 4000 FFTAG10 EQUALS
001122,000035: 4000 FFTAG11 EQUALS
001123,000036: 4000 FFTAG12 EQUALS
001124,000037: 4000 FFTAG13 EQUALS
001125,000038: 4000 BNKSUM 02
001126,000039:
001127,000040:
001128,000041: 6000 BLOCK 03
001129,000042: 6000 FFTAG5 EQUALS
001130,000043: 6000 FFTAG6 EQUALS
001131,000044: 6000 BNKSUM 03
001132,000045:
001133,000046:
001134,000047: 00,2000 BANK 00
001135,000048: 00,2000 DLAYJOB EQUALS
001136,000049: 00,2000 BNKSUM 00
001137,000050:
001138,000051:
001139,000052: 01,2000 BANK 01
001140,000053: 01,2000 RESTART EQUALS
001141,000054: 01,2000 LOADDAP1 EQUALS
001142,000055: 01,2000 BNKSUM 01
001143,000056:
001144,000057:
001145,000058: 04,2000 BANK 04
001146,000059: 04,2000 R02 EQUALS
001147,000060: 04,2000 VERB37 EQUALS
001148,000061: 04,2000 PINBALL4 EQUALS
001149,000062: 04,2000 CONICS1 EQUALS
001150,000063: 04,2000 KEYRUPT EQUALS
001151,000064: 04,2000 R36LM EQUALS
001152,000065: 04,2000 UPDATE2 EQUALS
001153,000066: 04,2000 E/PROG EQUALS
001154,000067: 04,2000 AOTMARK2 EQUALS
001155,000068: 04,2000 BNKSUM 04
001156,000069:
001157,000070:
Page 29 |
001159,000072: 05,2000 BANK 05
001160,000073: 05,2000 FRANDRES EQUALS
001161,000074: 05,2000 DOWNTELM EQUALS
001162,000075: 05,2000 ABORTS1 EQUALS
001163,000076: 05,2000 EPHEM1 EQUALS
001164,000077: 05,2000 ASENT3 EQUALS
001165,000078: 05,2000 ORBITAL3 EQUALS
001166,000079: 05,2000 BNKSUM 05
001167,000080:
001168,000081:
001169,000082: # MODULE 2 CONTAINS BANKS 6 THROUGH 13
001170,000083:
001171,000084: 06,2000 BANK 06
001172,000085: 06,2000 IMUCOMP EQUALS
001173,000086: 06,2000 T4RUP EQUALS
001174,000087: 06,2000 RCSMONT EQUALS
001175,000088: 06,2000 MIDDGIM EQUALS
001176,000089: 06,2000 EARTHLOC EQUALS
001177,000090: 06,2000 BNKSUM 06
001178,000091:
001179,000092:
001180,000093: 07,2000 BANK 07
001181,000094: 07,2000 AOTMARK1 EQUALS
001182,000095: 07,2000 MODESW EQUALS
001183,000096: 07,2000 ASENT2 EQUALS
001184,000097: 07,2000 BNKSUM 07
001185,000098:
001186,000099:
001187,000100: 10,2000 BANK 10
001188,000101: 10,2000 RTBCODES EQUALS
001189,000102: 10,2000 DISPLAYS EQUALS
001190,000103: 10,2000 PHASETAB EQUALS
001191,000104: 10,2000 FLESHLOC EQUALS
001192,000105: 10,2000 SLCTMU EQUALS
001193,000106: 10,2000 BNKSUM 10
001194,000107:
001195,000108:
001196,000109: 11,2000 BANK 11
001197,000110: 11,2000 ORBITAL EQUALS
001198,000111: 11,2000 F2DPS*11 EQUALS
001199,000112: 11,2000 INTVEL EQUALS
001200,000113: 11,2000 BNKSUM 11
001201,000114:
001202,000115:
001203,000116: 12,2000 BANK 12
001204,000117: 12,2000 CONICS EQUALS
001205,000118:
Page 30 |
001207,000120: 12,2000 ORBITAL1 EQUALS
001208,000121: 12,2000 INTPRET2 EQUALS
001209,000122: 12,2000 BNKSUM 12
001210,000123:
001211,000124:
001212,000125: 13,2000 BANK 13
001213,000126: 13,2000 LATLONG EQUALS
001214,000127: 13,2000 INTINIT EQUALS
001215,000128: 13,2000 LEMGEOM EQUALS
001216,000129: 13,2000 P76LOC EQUALS
001217,000130: 13,2000 ORBITAL2 EQUALS
001218,000131: 13,2000 ABTFLGS EQUALS
001219,000132: 13,2000 BNKSUM 13
001220,000133:
001221,000134:
Page 31 |
001223,000136: # MODULE 3 CONTAINS BANKS 14 THROUGH 21
001224,000137:
001225,000138: 14,2000 BANK 14
001226,000139: 14,2000 P50S1 EQUALS
001227,000140: 14,2000 STARTAB EQUALS
001228,000141: 14,2000 ASENT4 EQUALS
001229,000142: 14,2000 BNKSUM 14
001230,000143:
001231,000144:
001232,000145: 15,2000 BANK 15
001233,000146: 15,2000 P50S EQUALS
001234,000147: 15,2000 EPHEM EQUALS
001235,000148: 15,2000 BNKSUM 15
001236,000149:
001237,000150:
001238,000151: 16,2000 BANK 16
001239,000152: 16,2000 DAPS1 EQUALS
001240,000153: 16,2000 BNKSUM 16
001241,000154:
001242,000155:
001243,000156: 17,2000 BANK 17
001244,000157: 17,2000 DAPS2 EQUALS
001245,000158: 17,2000 C13BANK EQUALS
001246,000159: 17,2000 BNKSUM 17
001247,000160:
001248,000161:
001249,000162: 20,2000 BANK 20
001250,000163: 20,2000 DAPS3 EQUALS
001251,000164: 20,2000 LOADDAP EQUALS
001252,000165: 20,2000 BNKSUM 20
001253,000166:
001254,000167:
001255,000168: 21,2000 BANK 21
001256,000169: 21,2000 DAPS4 EQUALS
001257,000170: 21,2000 R10 EQUALS
001258,000171: 21,2000 R11 EQUALS
001259,000172: 21,2000 BNKSUM 21
Page 32 |
001261,000174:
001262,000175: # MODULE 4 CONTAINS BANKS 22 THROUGH 27
001263,000176:
001264,000177: 22,2000 BANK 22
001265,000178: 22,2000 KALCMON1 EQUALS
001266,000179: 22,2000 KALCMON2 EQUALS
001267,000180: 22,2000 R30LOC EQUALS
001268,000181: 22,2000 RENDEZ EQUALS
001269,000182: 22,2000 SERV2 EQUALS
001270,000183: 22,2000 LANDCNST EQUALS
001271,000184: 22,2000 BNKSUM 22
001272,000185:
001273,000186:
001274,000187: 23,2000 BANK 23
001275,000188: 23,2000 POWFLITE EQUALS
001276,000189: 23,2000 POWFLIT1 EQUALS
001277,000190: 23,2000 INFLIGHT EQUALS
001278,000191: 23,2000 APOPERI EQUALS
001279,000192: 23,2000 R61 EQUALS
001280,000193: 23,2000 R62 EQUALS
001281,000194: 23,2000 INTPRET1 EQUALS
001282,000195: 23,2000 MEASINC EQUALS
001283,000196: 23,2000 MEASINC1 EQUALS
001284,000197: 23,2000 EXTVB1 EQUALS
001285,000198: 23,2000 P12A EQUALS
001286,000199: 23,2000 NORMLIZ EQUALS
001287,000200: 23,2000 ASENT7 EQUALS
001288,000201: 23,2000 RODTRAP EQUALS
001289,000202: 23,2000 BNKSUM 23
001290,000203:
001291,000204:
001292,000205: 24,2000 BANK 24
001293,000206: 24,2000 PLANTIN EQUALS
001294,000207: 24,2000 P20S EQUALS
001295,000208: 24,2000 BNKSUM 24
001296,000209:
001297,000210:
001298,000211: 25,2000 BANK 25
001299,000212: 25,2000 P20S1 EQUALS
001300,000213: 25,2000 P20S2 EQUALS
001301,000214: 25,2000 RADARUPT EQUALS
001302,000215: 25,2000 RRLEADIN EQUALS
001303,000216: 25,2000 R29S1 EQUALS
001304,000217: 25,2000 PLANTIN3 EQUALS
001305,000218: 25,2000 BNKSUM 25
001306,000219:
001307,000220:
001308,000221: 26,2000 BANK 26
001309,000222:
Page 33 |
001311,000224: 26,2000 P20S3 EQUALS
001312,000225: 26,2000 BAWLANGS EQUALS
001313,000226: 26,2000 MANUVER EQUALS
001314,000227: 26,2000 MANUVER1 EQUALS
001315,000228: 26,2000 PLANTIN1 EQUALS
001316,000229: 26,2000 PLANTIN2 EQUALS
001317,000230: 26,2000 BNKSUM 26
001318,000231:
001319,000232:
001320,000233: 27,2000 BANK 27
001321,000234: 27,2000 TOF-FF EQUALS
001322,000235: 27,2000 TOF-FF1 EQUALS
001323,000236: 27,2000 P40S1 EQUALS
001324,000237: 27,2000 VECPT EQUALS
001325,000238: 27,2000 ASENT1 EQUALS
001326,000239: 27,2000 SERV3 EQUALS
001327,000240: 27,2000 BNKSUM 27
001328,000241:
001329,000242:
Page 34 |
001331,000244: # MODULE 5 CONTAINS BANKS 30 THROUGH 35
001332,000245:
001333,000246: 30,2000 BANK 30
001334,000247: 30,2000 LOWSUPER EQUALS
001335,000248: 30,2000 P12 EQUALS
001336,000249: 30,2000 ASENT EQUALS
001337,000250: 30,2000 FCDUW EQUALS
001338,000251: 30,2000 FLOGSUB EQUALS
001339,000252: 30,2000 VB67A EQUALS
001340,000253: 30,2000 ASENT5 EQUALS
001341,000254: 30,2000 BNKSUM 30
001342,000255:
001343,000256:
001344,000257: 31,2000 BANK 31
001345,000258: 31,2000 FTHROT EQUALS
001346,000259: 31,2000 F2DPS*31 EQUALS
001347,000260: 31,2000 VB67 EQUALS
001348,000261: 31,2000 BNKSUM 31
001349,000262:
001350,000263:
001351,000264: 32,2000 BANK 32
001352,000265: 32,2000 P20S4 EQUALS
001353,000266: 32,2000 F2DPS*32 EQUALS
001354,000267: 32,2000 ABORTS EQUALS
001355,000268: 32,2000 LRS22 EQUALS
001356,000269: 32,2000 P66LOC EQUALS
001357,000270: 32,2000 R47 EQUALS
001358,000271: 32,2000 SERV EQUALS
001359,000272: 32,2000 BNKSUM 32
001360,000273:
001361,000274:
001362,000275: 33,2000 BANK 33
001363,000276: 33,2000 SERVICES EQUALS
001364,000277: 33,2000 R29/SERV EQUALS
001365,000278: 33,2000 ASENT6 EQUALS
001366,000279: 33,2000 BNKSUM 33
001367,000280:
001368,000281:
001369,000282: 34,2000 BANK 34
001370,000283: 34,2000 ASENT8 EQUALS
001371,000284: 34,2000 P30S1 EQUALS
001372,000285: 34,2000 CSI/CDH1 EQUALS
001373,000286: 34,2000 ASCFILT EQUALS
001374,000287: 34,2000 R12STUFF EQUALS
001375,000288: 34,2000 SERV4 EQUALS
001376,000289: 34,2000 F2DPS*34 EQUALS
001377,000290:
Page 35 |
001379,000292: 34,2000 BNKSUM 34
001380,000293:
001381,000294:
001382,000295: 35,2000 BANK 35
001383,000296: 35,2000 CSI/CDH EQUALS
001384,000297: 35,2000 P30S EQUALS
001385,000298: 35,2000 P40S3 EQUALS
001386,000299: 35,2000 P40S2 EQUALS
001387,000300: 35,2000 BNKSUM 35
001388,000301:
Page 36 |
001390,000303: # MODULE 6 CONTAINS BANKS 36 THROUGH 43
001391,000304:
001392,000305: 36,2000 BANK 36
001393,000306: 36,2000 P40S EQUALS
001394,000307: 36,2000 BNKSUM 36
001395,000308:
001396,000309:
001397,000310: 37,2000 BANK 37
001398,000311: 37,2000 P05P06 EQUALS
001399,000312: 37,2000 IMU2 EQUALS
001400,000313: 37,2000 IMU4 EQUALS
001401,000314: 37,2000 R31 EQUALS
001402,000315: 37,2000 IMUSUPER EQUALS
001403,000316: 37,2000 SERV1 EQUALS
001404,000317: 37,2000 BNKSUM 37
001405,000318:
001406,000319:
001407,000320: 40,2000 BANK 40
001408,000321: 40,2000 PINBALL1 EQUALS
001409,000322: 40,2000 SELFSUPR EQUALS
001410,000323: 40,2000 PINSUPER EQUALS
001411,000324: 40,2000 R31LOC EQUALS
001412,000325: 40,2000 BNKSUM 40
001413,000326:
001414,000327:
001415,000328: 41,2000 BANK 41
001416,000329: 41,2000 PINBALL2 EQUALS
001417,000330: 41,2000 BNKSUM 41
001418,000331:
001419,000332:
001420,000333: 42,2000 BANK 42
001421,000334: 42,2000 SBAND EQUALS
001422,000335: 42,2000 PINBALL3 EQUALS
001423,000336: 42,2000 BNKSUM 42
001424,000337:
001425,000338:
001426,000339: 43,2000 BANK 43
001427,000340: 43,2000 EXTVERBS EQUALS
001428,000341: 43,2000 SELFCHEC EQUALS
001429,000342:
001430,000343: 43,2000 BNKSUM 43
001431,000344:
Page 37 |
001433,000346: 43,2000 23,2523 HI6ZEROS EQUALS ZEROVECS # ZERO VECTOR ALWAYS IN HIGH MEMORY
001434,000347: 43,2000 12,2006 LO6ZEROS EQUALS ZEROVEC # ZERO VECTOR ALWAYS IN LOW MEMORY
001435,000348: 43,2000 23,2521 HIDPHALF EQUALS UNITX
001436,000349: 43,2000 12,2004 LODPHALF EQUALS XUNIT
001437,000350: 43,2000 23,2513 HIDP1/4 EQUALS DP1/4TH
001438,000351: 43,2000 04,3020 LODP1/4 EQUALS D1/4 # 2DEC .25
001439,000352: 43,2000 23,2521 HIUNITX EQUALS UNITX
001440,000353: 43,2000 23,2517 HIUNITY EQUALS UNITY
001441,000354: 43,2000 23,2515 HIUNITZ EQUALS UNITZ
001442,000355: 43,2000 12,2004 LOUNITX EQUALS XUNIT # 2DEC .5
001443,000356: 43,2000 12,2002 LOUNITY EQUALS YUNIT # 2DEC 0
001444,000357: 43,2000 12,2000 LOUNITZ EQUALS ZUNIT # 2DEC 0
001445,000358:
001446,000359:
001447,000360:
001448,000361: 43,2000 22,3541 DELRSPL EQUALS SPLRET # COL PGM, ALSO CALLED BY R30 IN LUMINARY
001449,000362: # ROPE-SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN DETERMINING INTEGRATION AREA ENTRIES.
001450,000363:
001451,000364: 43,2000 13,2735 ATOPTHIS EQUALS ATOPLEM
001452,000365: 43,2000 13,2662 ATOPOTH EQUALS ATOPCSM
001453,000366: 43,2000 13,3044 OTHPREC EQUALS CSMPREC
001454,000367: 43,2000 0000174 MOONTHIS EQUALS LMOONFLG
001455,000368: 43,2000 0000173 MOONOTH EQUALS CMOONFLG
001456,000369: 43,2000 13,2750 MOVATHIS EQUALS MOVEALEM
001457,000370: 43,2000 12,2017 RMM = LODPMAX
001458,000371: 43,2000 12,2021 RME = LODPMAX1
001459,000372: 43,2000 13,3060 THISPREC EQUALS LEMPREC
001460,000373: 43,2000 23,2515 THISAXIS = UNITZ
001461,000374: 43,2000 23,2515 NB1NB2 EQUALS THISAXIS # FOR R31
001462,000375: 43,2000 5011 ERASID EQUALS BITS2-10 # DOWNLINK ERASABLE DUMP ID
001463,000376: 43,2000 4752 DELAYNUM EQUALS TWO
End of include-file TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc. Parent file is MAIN.agc