Source Code
![]() |
These source-code files were from the printout at the MIT Museum, with many thanks
to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing
it to us. The printout was digitally photographed by Paul Fjeld. A team of
volunteers transcribed the source code manually from these images or, where
appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13)
source code to agree with the images from the printout. Note that the page images
presented online are of reduced quality, and that higher-quality images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061 20'35 OCT. 28,1968Note that the date is the date of the printout, not the date of the program revision. |
046504,000002: ## Copyright: Public domain.
046505,000003: ## Filename: FIXED_FIXED_CONSTANT_POOL.agc
046506,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
046507,000005: ## It is part of the source code for the Lunar Module's (LM)
046508,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
046509,000007: ## Assembler: yaYUL
046510,000008: ## Contact: Ron Burkey <info@sandroid.org>.
046511,000009: ## Website: www.ibiblio.org/apollo.
046512,000010: ## Pages: 1095-1099
046513,000011: ## Mod history: 2009-05-25 RSB Adapted from the corresponding
046514,000012: ## Luminary131 file, using page
046515,000013: ## images from Luminary 1A.
046516,000014: ##
046517,000015: ## This source code has been transcribed or otherwise adapted from
046518,000016: ## digitized images of a hardcopy from the MIT Museum. The digitization
046519,000017: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
046520,000018: ## the Museum. Many thanks to both. The images (with suitable reduction
046521,000019: ## in storage size and consequent reduction in image quality as well) are
046522,000020: ## available online at www.ibiblio.org/apollo. If for some reason you
046523,000021: ## find that the images are illegible, contact me at info@sandroid.org
046524,000022: ## about getting access to the (much) higher-quality images which Paul
046525,000023: ## actually created.
046526,000024: ##
046527,000025: ## Notations on the hardcopy document read, in part:
046528,000026: ##
046529,000027: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
046530,000028: ## 16:27 JULY 14, 1969
046531,000029:
![]() |
Page 1095 |
046533,000031: 4732 BLOCK 02
046534,000032: 4732 COUNT* $$/FCONS
046535,000033:
046536,000034: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES
046537,000035:
046538,000036: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
046539,000037: 4733 37777 POSMAX OCT 37777
046540,000038:
046541,000039: 4734 4734 LIMITS = NEG1/2
046542,000040:
046543,000041: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
046544,000042: # LOCATIONS IN FRONT OF BIT14)
046545,000043:
046546,000044: # BIT TABLE
046547,000045:
046548,000046: 4735 40000 BIT15 OCT 40000
046549,000047: 4736 20000 BIT14 OCT 20000
046550,000048: 4737 10000 BIT13 OCT 10000
046551,000049: 4740 04000 BIT12 OCT 04000
046552,000050: 4741 02000 BIT11 OCT 02000
046553,000051: 4742 01000 BIT10 OCT 01000
046554,000052: 4743 00400 BIT9 OCT 00400
046555,000053: 4744 00200 BIT8 OCT 00200
046556,000054: 4745 00100 BIT7 OCT 00100
046557,000055: 4746 00040 BIT6 OCT 00040
046558,000056: 4747 00020 BIT5 OCT 00020
046559,000057: 4750 00010 BIT4 OCT 00010
046560,000058: 4751 00004 BIT3 OCT 00004
046561,000059: 4752 00002 BIT2 OCT 00002
046562,000060: 4753 00001 BIT1 OCT 00001
046563,000061:
046564,000062: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046565,000063: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
046566,000064: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
046567,000065: # BIT1 OCT 00001
046568,000066: # NO.WDS OCT 2 # INTERPRETER
046569,000067: # OCTAL3 OCT 3 # INTERPRETER
046570,000068: # R3D1 OCT 4 # PINBALL
046571,000069: 4756 00005 FIVE OCT 5
046572,000070: # REVCNT OCT 6 # INTERPRETER
046573,000071: 4757 00007 SEVEN OCT 7
046574,000072: # BIT4 OCT 00010
046575,000073: # R2D1 OCT 11 # PINBALL
046576,000074: 4760 4320 OCT11 = R2D1 # P20S
046577,000075: # BINCON DEC 10 # PINBALL (OCTAL 12)
046578,000076: 4760 00013 ELEVEN DEC 11 B-14
046579,000077: # OCT14 OCT 14 # ALARM AND ABORT (FILLER)
046580,000078: 4761 00015 OCT15 OCT 15
046581,000079: # R1D1 OCT 16 # PINBALL
046582,000080: 4762 00017 LOW4 OCT 17
![]() |
Page 1096 |
046584,000082: # BIT5 OCT 00020
046585,000083: # NC1 OCT 21 # PINBALL
046586,000084: # VD1 OCT 23 # PINBALL
046587,000085: # OCT24 OCT 24 # SERVICE ROUTINES
046588,000086: # MD1 OCT 25 # PINBALL
046589,000087: 4763 00030 BITS4&5 OCT 30
046590,000088: # OCT31 OCT 31 # SERVICE ROUTINES
046591,000089: 4764 00033 OCT33 OCT 33
046592,000090: # DEC27 = OCT33
046593,000091: 4765 00035 OCT35 OCT 35
046594,000092: # DEC29 = OCT35
046595,000093: 4766 00032 CALLCODE OCT 00032
046596,000094: # LOW5 OCT 37 # PINBALL
046597,000095: # 33DEC DEC 33 # PINBALL (OCTAL 41)
046598,000096: # 34DEC DEC 34 # PINBALL (OCTAL 42)
046599,000097: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVENIENCE IN DAPTESTING
046600,000098: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
046601,000099: # BIT6 OCT 00040
046602,000100: 4771 00050 OCT50 OCT 50
046603,000101: 4772 00055 DEC45 DEC 45 B-14
046604,000102: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
046605,000103: 4774 00062 .5SEC DEC 50 B-14
046606,000104: # BIT7 OCT 00100
046607,000105:
046608,000106: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
046609,000107: # (LAST 4K OF ROPE)
046610,000108: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
046611,000109: # OCT121 OCT 121 # SERVICE ROUTINES
046612,000110: # (FIRST 8K OF ACM)
046613,000111: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
046614,000112: # (LAST BK OF ACM)
046615,000113: 4777 00144 1SEC DEC 100 B-14
046616,000114: # LOW7 OCT 177 # INTERPRETER
046617,000115: # BIT8 OCT 00200
046618,000116: # OT215 OCT 215 # ALARM AND ABORT
046619,000117: # 8,5 OCT 00220 # P20-P25 SUNDANCE
046620,000118: 5000 00310 2SECS DEC 200 B-14
046621,000119: # LOW8 OCT 377 # PINBALL
046622,000120: # BIT9 OCT 00400
046623,000121: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
046624,000122: 5002 00454 3SECS DEC 300 B-14
046625,000123: 5003 00620 4SECS DEC 400 B-14
046626,000124: 5004 00777 LOW9 OCT 777
046627,000125: # BIT10 OCT 01000
046628,000126: # 5.5DEGS DEC .03056 # P20-P25 SUNDANCE (OCTAL 00765)
046629,000127: # OCT1103 OCT 1103 # ALARM AND ABORT
046630,000128: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
046631,000129: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
046632,000130: 5007 01400 OCT1400 OCT 01400
046633,000131: 5010 01426 V06N22 VN 0622
![]() |
Page 1097 |
046635,000133: # MID5 OCT 1740 # PINBALL
046636,000134: 5011 01776 BITS2-10 OCT 1776
046637,000135: 5012 01777 LOW10 OCT 1777
046638,000136: # BIT11 OCT 02000
046639,000137: # 2K+3 OCT 2003 # PINBALL
046640,000138: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING
046641,000139: 5014 02400 EBANK5 OCT 02400
046642,000140: 5015 03000 PRIO3 OCT 03000
046643,000141: 5016 03400 EBANK7 OCT 03400
046644,000142: # LOW11 OCT 3777 # PINBALL
046645,000143: # BIT12 OCT 04000
046646,000144: # RELTAB OCT 04025 # T4RUPT
046647,000145: 5017 05000 PRIO5 OCT 05000
046648,000146: 5020 06000 PRIO6 OCT 06000
046649,000147: 5021 07000 PRIO7 OCT 07000
046650,000148:
046651,000149: # BIT13 OCT 10000
046652,000150: # OCT 10003 # T4RUPT RELTAB +1D
046653,000151: # 13,7,2 OCT 10102 # P20-P25 SUNDANCE
046654,000152: 5022 11000 PRIO11 OCT 11000
046655,000153: # PRIO12 OCT 12000 # BANKCALL
046656,000154: 5023 13000 PRIO13 OCT 13000
046657,000155: 5024 14000 PRIO14 OCT 14000
046658,000156: # OCT 14031 # T4RUPT RELTAB +2D
046659,000157: 5025 15000 PRIO15 OCT 15000
046660,000158: 5026 16000 PRIO16 OCT 16000
046661,000159: # 85DEGS DEC .45556 # P20-P25 SUNDANCE (OCTAL 16450)
046662,000160: 5027 17000 PRIO17 OCT 17000
046663,000161: 5030 17770 OCT17770 OCT 17770
046664,000162: # BIT14 OCT 20000
046665,000163: # OCT 20033 # T4RUPT RELTAB +3D
046666,000164: 5031 21000 PRIO21 OCT 21000
046667,000165: 7710 BLOCK 03
046668,000166: 7710 COUNT* $$/FCONS
046669,000167: 7710 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
046670,000168: 7711 23000 PRIO23 OCT 23000
046671,000169: 7712 24000 PRIO24 OCT 24000
046672,000170: # 5/8+1 OCT 24001 # SINGLE PRECISION SUBROUTINES
046673,000171: # OCT 24017 # T4RUPT RELTAB +4D
046674,000172: 7713 25000 PRIO25 OCT 25000
046675,000173: 7714 26000 PRIO26 OCT 26000
046676,000174: 7715 27000 PRIO27 OCT 27000
046677,000175: # CHRPRIO OCT 30000 # PINBALL
046678,000176: # OCT 30036 # T4RUPT RELTAB +5D
046679,000177: 7716 31000 PRIO31 OCT 31000
046680,000178: 7717 31103 C1/2 DEC .7853134 # (OCTAL 31103)
046681,000179: 7720 32000 PRIO32 OCT 32000
046682,000180: 7721 33000 PRIO33 OCT 33000
046683,000181: 7722 34000 PRIO34 OCT 34000
046684,000182: # OCT 34034 # T4RUPT RELTAB +6D
![]() |
Page 1098 |
046686,000184: 7723 35000 PRIO35 OCT 35000
046687,000185: 7724 36000 PRIO36 OCT 36000
046688,000186: 7725 37000 PRIO37 OCT 37000
046689,000187: 7726 37401 63/64+1 OCT 37401
046690,000188: # MID7 OCT 37600 # PINBALL
046691,000189: 7727 37766 OCT37766 OCT 37766
046692,000190: 7730 37774 OCT37774 OCT 37774
046693,000191: 7731 37776 OCT37776 OCT 37776
046694,000192: # DPOSMAX OCT 37777
046695,000193: # BIT15 OCT 40000
046696,000194: # OCT40001 OCT 40001 # INTERPRETER (CS 1 INSTRUCTION)
046697,000195: 7732 40014 DLOADCOD OCT 40014
046698,000196: 7733 40015 DLOAD* OCT 40015
046699,000197: # OCT 40023 # T4RUPT RELTAB +7D
046700,000198: 7734 40040 BIT15+6 OCT 40040
046701,000199: 7735 40200 OCT40200 OCT 40200
046702,000200: # OCT 44035 # T4RUPT RELTAB +8D
046703,000201: # OCT 50037 # T4RUPT RELTAB +9D
046704,000202: # OCT 54000 # T4RUPT RELTAB +10D
046705,000203: 7736 57777 -BIT14 OCT 57777
046706,000204: # RELTAB11 OCT 60000 # T4RUPT
046707,000205: 7737 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
046708,000206: 7740 70000 13,14,15 OCT 70000
046709,000207: 7741 73777 -1/8 OCT 73777
046710,000208: 7742 74000 HIGH4 OCT 74000
046711,000209: 7743 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
046712,000210: # HI5 OCT 76000 # PINBALL
046713,000211: 7744 77700 HIGH9 OCT 77700
046714,000212: # -ENDVAC DEC -45 # INTERPRETER (OCTAL 77722)
046715,000213: # -OCT10 OCT -10 # (OCTAL 77767)
046716,000214: # NEG4 DEC -4 # (OCTAL 77773)
046717,000215: 7745 77774 NEG3 DEC -3 B-14
046718,000216: 7746 77775 NEG2 OCT 77775
046719,000217: 7747 77776 NEGONE DEC -1 B-14
046720,000218:
![]() |
Page 1099 |
046722,000220:
046723,000221: # DEFINED BY EQUALS
046724,000222:
046725,000223: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
046726,000224: # ACCIDENTAL DEFINITION CHANGES.
046727,000225:
046728,000226: 7750 7747 MINUS1 = NEG1
046729,000227: 7750 7747 NEG1 = NEGONE
046730,000228: 7750 4753 ONE = BIT1
046731,000229: 7750 4752 TWO = BIT2
046732,000230: 7750 6245 THREE = OCTAL3
046733,000231: 7750 6245 LOW2 = THREE
046734,000232: 7750 4751 FOUR = BIT3
046735,000233: 7750 6242 SIX = REVCNT
046736,000234: 7750 4757 LOW3 = SEVEN
046737,000235: 7750 4750 EIGHT = BIT4
046738,000236: 7750 4320 NINE = R2D1
046739,000237: 7750 4363 TEN = BINCON
046740,000238: 7750 4760 NOUTCON = ELEVEN
046741,000239: 7750 4360 OCT23 = VD1
046742,000240: 7750 4362 OCT25 = MD1
046743,000241: 7750 4742 PRIO1 = BIT10
046744,000242: 7750 5007 EBANK3 = OCT1400
046745,000243: 7750 4741 PRIO2 = BIT11
046746,000244: 7750 4775 OCT120 = SUPER101
046747,000245: 7750 4776 OCT140 = SUPER110
046748,000246: 7750 4741 2K = BIT11
046749,000247: 7750 4741 EBANK4 = BIT11
046750,000248: 7750 4740 PRIO4 = BIT12
046751,000249: 7750 5015 EBANK6 = PRIO3
046752,000250: 7750 4737 QUARTER = BIT13
046753,000251: 7750 4737 PRIO10 = BIT13
046754,000252: 7750 7663 OCT10001 = CCSL
046755,000253: 7750 4736 POS1/2 = HALF
046756,000254: 7750 4736 PRIO20 = BIT14
046757,000255: 7750 4736 HALF = BIT14
046758,000256: 7750 4355 PRIO30 = CHRPRIO
046759,000257: 7750 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
046760,000258: 7750 6471 OCT30002 = TLOAD +1
046761,000259: 7750 7722 B12T14 = PRIO34
046762,000260: 7750 4735 NEGMAX = BIT15
046763,000261: 7750 4735 VLOADCOD = BIT15
046764,000262: 7750 6107 VLOAD* = OCT40001
046765,000263: 7750 4101 OCT60000 = RELTAB11
046766,000264: 7750 4350 BANKMASK = HI5
046767,000265:
End of include-file FIXED_FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc