Source Code
![]() |
This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure! |
045972,000002: ## Copyright: Public domain.
045973,000003: ## Filename: FIXED_FIXED_CONSTANT_POOL.agc
045974,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
045975,000005: ## It is part of the source code for the Lunar Module's (LM)
045976,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
045977,000007: ## Assembler: yaYUL
045978,000008: ## Contact: Ron Burkey <info@sandroid.org>.
045979,000009: ## Website: www.ibiblio.org/apollo.
045980,000010: ## Pages: 1095-1099
045981,000011: ## Mod history: 2009-05-25 RSB Adapted from the corresponding
045982,000012: ## Luminary131 file, using page
045983,000013: ## images from Luminary 1A.
045984,000014: ## 2016-12-17 RSB Proofed text comments with octopus/ProoferComments
045985,000015: ## and corrected the errors found.
045986,000016: ## 2017-03-03 RSB Snapshot of Luminary 99 Rev 1.
045987,000017: ## 2017-03-13 RSB Comment-text fixes noted in proofing Luminary 116.
045988,000018: ## 2017-03-15 RSB Proofed comment text using 5-way
045989,000019: ## side-by-side diff of Luminary 69/99/116/131/210,
045990,000020: ## but no errors were found.
045991,000021:
![]() |
Page 1095 |
045993,000023: 4732 BLOCK 02
045994,000024: 4732 COUNT* $$/FCONS
045995,000025:
045996,000026: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
045997,000027:
045998,000028: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
045999,000029: 4733 37777 POSMAX OCT 37777
046000,000030:
046001,000031: 4734 4734 LIMITS = NEG1/2
046002,000032:
046003,000033: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
046004,000034: # LOCATIONS IN FRONT OF BIT14)
046005,000035:
046006,000036: # BIT TABLE
046007,000037:
046008,000038: 4735 40000 BIT15 OCT 40000
046009,000039: 4736 20000 BIT14 OCT 20000
046010,000040: 4737 10000 BIT13 OCT 10000
046011,000041: 4740 04000 BIT12 OCT 04000
046012,000042: 4741 02000 BIT11 OCT 02000
046013,000043: 4742 01000 BIT10 OCT 01000
046014,000044: 4743 00400 BIT9 OCT 00400
046015,000045: 4744 00200 BIT8 OCT 00200
046016,000046: 4745 00100 BIT7 OCT 00100
046017,000047: 4746 00040 BIT6 OCT 00040
046018,000048: 4747 00020 BIT5 OCT 00020
046019,000049: 4750 00010 BIT4 OCT 00010
046020,000050: 4751 00004 BIT3 OCT 00004
046021,000051: 4752 00002 BIT2 OCT 00002
046022,000052: 4753 00001 BIT1 OCT 00001
046023,000053:
046024,000054: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046025,000055: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
046026,000056: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
046027,000057: # BIT1 OCT 00001
046028,000058: # NO.WDS OCT 2 INTERPRETER
046029,000059: # OCTAL3 OCT 3 INTERPRETER
046030,000060: # R3D1 OCT 4 PINBALL
046031,000061: 4756 00005 FIVE OCT 5
046032,000062: # REVCNT OCT 6 INTERPRETER
046033,000063: 4757 00007 SEVEN OCT 7
046034,000064: # BIT4 OCT 00010
046035,000065: # R2D1 OCT 11 PINBALL
046036,000066: 4760 4320 OCT11 = R2D1 # P20S
046037,000067: # BINCON DEC 10 PINBALL (OCTAL 12)
046038,000068: 4760 00013 ELEVEN DEC 11 B-14
046039,000069: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
046040,000070: 4761 00015 OCT15 OCT 15
046041,000071: # R1D1 OCT 16 PINBALL
046042,000072: 4762 00017 LOW4 OCT 17
![]() |
Page 1096 |
046044,000074: # BIT5 OCT 00020
046045,000075: # ND1 OCT 21 PINBALL
046046,000076: # VD1 OCT 23 PINBALL
046047,000077: # OCT24 OCT 24 SERVICE ROUTINES
046048,000078: # MD1 OCT 25 PINBALL
046049,000079: 4763 00030 BITS4&5 OCT 30
046050,000080: # OCT31 OCT 31 SERVICE ROUTINES
046051,000081: 4764 00033 OCT33 OCT 33
046052,000082: 4765 4764 DEC27 = OCT33
046053,000083: 4765 00035 OCT35 OCT 35
046054,000084: 4766 4765 DEC29 = OCT35
046055,000085: 4766 00032 CALLCODE OCT 00032
046056,000086: # LOW5 OCT 37 PINBALL
046057,000087: # 33DEC DEC 33 PINBALL (OCTAL 41)
046058,000088: # 34DEC DEC 34 PINBALL (OCTAL 42)
046059,000089: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
046060,000090: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
046061,000091: # BIT6 OCT 00040
046062,000092: 4771 00050 OCT50 OCT 50
046063,000093: 4772 00055 DEC45 DEC 45 B-14
046064,000094: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
046065,000095: 4774 00062 .5SEC DEC 50 B-14
046066,000096: # BIT7 OCT 00100
046067,000097:
046068,000098: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
046069,000099: # (LAST 4K OF ROPE)
046070,000100: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
046071,000101: # OCT121 OCT 121 SERVICE ROUTINES
046072,000102: # (FIRST 8K OF ACM)
046073,000103: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
046074,000104: # (LAST 8K OF ACM)
046075,000105: 4777 00144 1SEC DEC 100 B-14
046076,000106: # LOW7 OCT 177 INTERPRETER
046077,000107: # BIT8 OCT 00200
046078,000108: # OT215 OCT 215 ALARM AND ABORT
046079,000109: # 8,5 OCT 00220 P20-P25 SUNDANCE
046080,000110: 5000 00310 2SECS DEC 200 B-14
046081,000111: # LOW8 OCT 377 PINBALL
046082,000112: # BIT9 OCT 00400
046083,000113: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
046084,000114: 5002 00454 3SECS DEC 300 B-14
046085,000115: 5003 00620 4SECS DEC 400 B-14
046086,000116: 5004 00777 LOW9 OCT 777
046087,000117: # BIT10 OCT 01000
046088,000118: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
046089,000119: # OCT1103 OCT 1103 ALARM AND ABORT
046090,000120: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
046091,000121: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
046092,000122: 5007 01400 OCT1400 OCT 01400
046093,000123: 5010 01426 V06N22 VN 0622
![]() |
Page 1097 |
046095,000125: # MID5 OCT 1740 PINBALL
046096,000126: 5011 01776 BITS2-10 OCT 1776
046097,000127: 5012 01777 LOW10 OCT 1777
046098,000128: # BIT11 OCT 02000
046099,000129: # 2K+3 OCT 2003 PINBALL
046100,000130: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
046101,000131: 5014 02400 EBANK5 OCT 02400
046102,000132: 5015 03000 PRIO3 OCT 03000
046103,000133: 5016 03400 EBANK7 OCT 03400
046104,000134: # LOW11 OCT 3777 PINBALL
046105,000135: # BIT12 OCT 04000
046106,000136: # RELTAB OCT 04025 T4RUPT
046107,000137: 5017 05000 PRIO5 OCT 05000
046108,000138: 5020 06000 PRIO6 OCT 06000
046109,000139: 5021 07000 PRIO7 OCT 07000
046110,000140:
046111,000141: # BIT13 OCT 10000
046112,000142: # OCT 10003 T4RUPT RELTAB +1D
046113,000143: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
046114,000144: 5022 11000 PRIO11 OCT 11000
046115,000145: # PRIO12 OCT 12000 BANKCALL
046116,000146: 5023 13000 PRIO13 OCT 13000
046117,000147: 5024 14000 PRIO14 OCT 14000
046118,000148: # OCT 14031 T4RUPT RELTAB +2D
046119,000149: 5025 15000 PRIO15 OCT 15000
046120,000150: 5026 16000 PRIO16 OCT 16000
046121,000151: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
046122,000152: 5027 17000 PRIO17 OCT 17000
046123,000153: 5030 17770 OCT17770 OCT 17770
046124,000154: # BIT14 OCT 20000
046125,000155: # OCT 20033 T4RUPT RELTAB +3D
046126,000156: 5031 21000 PRIO21 OCT 21000
046127,000157: 7710 BLOCK 03
046128,000158: 7710 COUNT* $$/FCONS
046129,000159: 7710 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
046130,000160: 7711 23000 PRIO23 OCT 23000
046131,000161: 7712 24000 PRIO24 OCT 24000
046132,000162: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
046133,000163: # OCT 24017 T4RUPT RELTAB +4D
046134,000164: 7713 25000 PRIO25 OCT 25000
046135,000165: 7714 26000 PRIO26 OCT 26000
046136,000166: 7715 27000 PRIO27 OCT 27000
046137,000167: # CHRPRIO OCT 30000 PINBALL
046138,000168: # OCT 30036 T4RUPT RELTAB +5D
046139,000169: 7716 31000 PRIO31 OCT 31000
046140,000170: 7717 31103 C1/2 DEC .7853134 # (OCTAL 31103)
046141,000171: 7720 32000 PRIO32 OCT 32000
046142,000172: 7721 33000 PRIO33 OCT 33000
046143,000173: 7722 34000 PRIO34 OCT 34000
046144,000174: # OCT 34034 T4RUPT RELTAB +6D
![]() |
Page 1098 |
046146,000176: 7723 35000 PRIO35 OCT 35000
046147,000177: 7724 36000 PRIO36 OCT 36000
046148,000178: 7725 37000 PRIO37 OCT 37000
046149,000179: 7726 37401 63/64+1 OCT 37401
046150,000180: # MID7 OCT 37600 PINBALL
046151,000181: 7727 37766 OCT37766 OCT 37766
046152,000182: 7730 37774 OCT37774 OCT 37774
046153,000183: 7731 37776 OCT37776 OCT 37776
046154,000184: # DPOSMAX OCT 37777
046155,000185: # BIT15 OCT 40000
046156,000186: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION)
046157,000187: 7732 40014 DLOADCOD OCT 40014
046158,000188: 7733 40015 DLOAD* OCT 40015
046159,000189: # OCT 40023 T4RUPT RELTAB +7D
046160,000190: 7734 40040 BIT15+6 OCT 40040
046161,000191: 7735 40200 OCT40200 OCT 40200
046162,000192: # OCT 44035 T4RUPT RELTAB +8D
046163,000193: # OCT 50037 T4RUPT RELTAB +9D
046164,000194: # OCT 54000 T4RUPT RELTAB +10D
046165,000195: 7736 57777 -BIT14 OCT 57777
046166,000196: # RELTAB11 OCT 60000 T4RUPT
046167,000197: 7737 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
046168,000198: 7740 70000 13,14,15 OCT 70000
046169,000199: 7741 73777 -1/8 OCT 73777
046170,000200: 7742 74000 HIGH4 OCT 74000
046171,000201: 7743 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
046172,000202: # HI5 OCT 76000 PINBALL
046173,000203: 7744 77700 HIGH9 OCT 77700
046174,000204: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
046175,000205: # -OCT10 OCT -10 (OCT 77767)
046176,000206: # NEG4 DEC -4 (OCTAL 77773)
046177,000207: 7745 77774 NEG3 DEC -3 B-14
046178,000208: 7746 77775 NEG2 OCT 77775
046179,000209: 7747 77776 NEGONE DEC -1 B-14
046180,000210:
![]() |
Page 1099 |
046182,000212:
046183,000213: # DEFINED BY EQUALS
046184,000214:
046185,000215: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
046186,000216: # ACCIDENTAL DEFINITION CHANGES.
046187,000217:
046188,000218: 7750 7747 MINUS1 = NEG1
046189,000219: 7750 7747 NEG1 = NEGONE
046190,000220: 7750 4753 ONE = BIT1
046191,000221: 7750 4752 TWO = BIT2
046192,000222: 7750 6245 THREE = OCTAL3
046193,000223: 7750 6245 LOW2 = THREE
046194,000224: 7750 4751 FOUR = BIT3
046195,000225: 7750 6242 SIX = REVCNT
046196,000226: 7750 4757 LOW3 = SEVEN
046197,000227: 7750 4750 EIGHT = BIT4
046198,000228: 7750 4320 NINE = R2D1
046199,000229: 7750 4363 TEN = BINCON
046200,000230: 7750 4760 NOUTCON = ELEVEN
046201,000231: 7750 4360 OCT23 = VD1
046202,000232: 7750 4362 OCT25 = MD1
046203,000233: 7750 4742 PRIO1 = BIT10
046204,000234: 7750 5007 EBANK3 = OCT1400
046205,000235: 7750 4741 PRIO2 = BIT11
046206,000236: 7750 4775 OCT120 = SUPER101
046207,000237: 7750 4776 OCT140 = SUPER110
046208,000238: 7750 4741 2K = BIT11
046209,000239: 7750 4741 EBANK4 = BIT11
046210,000240: 7750 4740 PRIO4 = BIT12
046211,000241: 7750 5015 EBANK6 = PRIO3
046212,000242: 7750 4737 QUARTER = BIT13
046213,000243: 7750 4737 PRIO10 = BIT13
046214,000244: 7750 7663 OCT10001 = CCSL
046215,000245: 7750 4736 POS1/2 = HALF
046216,000246: 7750 4736 PRIO20 = BIT14
046217,000247: 7750 4736 HALF = BIT14
046218,000248: 7750 4355 PRIO30 = CHRPRIO
046219,000249: 7750 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
046220,000250: 7750 6471 OCT30002 = TLOAD +1
046221,000251: 7750 7722 B12T14 = PRIO34
046222,000252: 7750 4735 NEGMAX = BIT15
046223,000253: 7750 4735 VLOADCOD = BIT15
046224,000254: 7750 6107 VLOAD* = OCT40001
046225,000255: 7750 4101 OCT60000 = RELTAB11
046226,000256: 7750 4350 BANKMASK = HI5
046227,000257:
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc