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. |
046779,000002: ## Copyright: Public domain.
046780,000003: ## Filename: FIXED_FIXED_CONSTANT_POOL.agc
046781,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
046782,000005: ## It is part of the source code for the Lunar Module's (LM)
046783,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
046784,000007: ## Assembler: yaYUL
046785,000008: ## Contact: Ron Burkey <info@sandroid.org>.
046786,000009: ## Website: www.ibiblio.org/apollo.
046787,000010: ## Pages: 1095-1099
046788,000011: ## Mod history: 2009-05-25 RSB Adapted from the corresponding
046789,000012: ## Luminary131 file, using page
046790,000013: ## images from Luminary 1A.
046791,000014: ## 2016-12-17 RSB Proofed text comments with octopus/ProoferComments
046792,000015: ## and corrected the errors found.
046793,000016: ## 2017-03-13 RSB Comment-text fixes noted in proofing Luminary 116.
046794,000017: ##
046795,000018: ## This source code has been transcribed or otherwise adapted from
046796,000019: ## digitized images of a hardcopy from the MIT Museum. The digitization
046797,000020: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
046798,000021: ## the Museum. Many thanks to both. The images (with suitable reduction
046799,000022: ## in storage size and consequent reduction in image quality as well) are
046800,000023: ## available online at www.ibiblio.org/apollo. If for some reason you
046801,000024: ## find that the images are illegible, contact me at info@sandroid.org
046802,000025: ## about getting access to the (much) higher-quality images which Paul
046803,000026: ## actually created.
046804,000027: ##
046805,000028: ## Notations on the hardcopy document read, in part:
046806,000029: ##
046807,000030: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
046808,000031: ## 16:27 JULY 14, 1969
046809,000032:
![]() |
Page 1095 |
046811,000034: 4732 BLOCK 02
046812,000035: 4732 COUNT* $$/FCONS
046813,000036:
046814,000037: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
046815,000038:
046816,000039: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
046817,000040: 4733 37777 POSMAX OCT 37777
046818,000041:
046819,000042: 4734 4734 LIMITS = NEG1/2
046820,000043:
046821,000044: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
046822,000045: # LOCATIONS IN FRONT OF BIT14)
046823,000046:
046824,000047: # BIT TABLE
046825,000048:
046826,000049: 4735 40000 BIT15 OCT 40000
046827,000050: 4736 20000 BIT14 OCT 20000
046828,000051: 4737 10000 BIT13 OCT 10000
046829,000052: 4740 04000 BIT12 OCT 04000
046830,000053: 4741 02000 BIT11 OCT 02000
046831,000054: 4742 01000 BIT10 OCT 01000
046832,000055: 4743 00400 BIT9 OCT 00400
046833,000056: 4744 00200 BIT8 OCT 00200
046834,000057: 4745 00100 BIT7 OCT 00100
046835,000058: 4746 00040 BIT6 OCT 00040
046836,000059: 4747 00020 BIT5 OCT 00020
046837,000060: 4750 00010 BIT4 OCT 00010
046838,000061: 4751 00004 BIT3 OCT 00004
046839,000062: 4752 00002 BIT2 OCT 00002
046840,000063: 4753 00001 BIT1 OCT 00001
046841,000064:
046842,000065: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046843,000066: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
046844,000067: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
046845,000068: # BIT1 OCT 00001
046846,000069: # NO.WDS OCT 2 INTERPRETER
046847,000070: # OCTAL3 OCT 3 INTERPRETER
046848,000071: # R3D1 OCT 4 PINBALL
046849,000072: 4756 00005 FIVE OCT 5
046850,000073: # REVCNT OCT 6 INTERPRETER
046851,000074: 4757 00007 SEVEN OCT 7
046852,000075: # BIT4 OCT 00010
046853,000076: # R2D1 OCT 11 PINBALL
046854,000077: 4760 4320 OCT11 = R2D1 # P20S
046855,000078: # BINCON DEC 10 PINBALL (OCTAL 12)
046856,000079: 4760 00013 ELEVEN DEC 11 B-14
046857,000080: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
046858,000081: 4761 00015 OCT15 OCT 15
046859,000082: # R1D1 OCT 16 PINBALL
046860,000083: 4762 00017 LOW4 OCT 17
![]() |
Page 1096 |
046862,000085: # BIT5 OCT 00020
046863,000086: # ND1 OCT 21 PINBALL
046864,000087: # VD1 OCT 23 PINBALL
046865,000088: # OCT24 OCT 24 SERVICE ROUTINES
046866,000089: # MD1 OCT 25 PINBALL
046867,000090: 4763 00030 BITS4&5 OCT 30
046868,000091: # OCT31 OCT 31 SERVICE ROUTINES
046869,000092: 4764 00033 OCT33 OCT 33
046870,000093: 4765 4764 DEC27 = OCT33
046871,000094: 4765 00035 OCT35 OCT 35
046872,000095: 4766 4765 DEC29 = OCT35
046873,000096: 4766 00032 CALLCODE OCT 00032
046874,000097: # LOW5 OCT 37 PINBALL
046875,000098: # 33DEC DEC 33 PINBALL (OCTAL 41)
046876,000099: # 34DEC DEC 34 PINBALL (OCTAL 42)
046877,000100: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
046878,000101: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
046879,000102: # BIT6 OCT 00040
046880,000103: 4771 00050 OCT50 OCT 50
046881,000104: 4772 00055 DEC45 DEC 45 B-14
046882,000105: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
046883,000106: 4774 00062 .5SEC DEC 50 B-14
046884,000107: # BIT7 OCT 00100
046885,000108:
046886,000109: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
046887,000110: # (LAST 4K OF ROPE)
046888,000111: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
046889,000112: # OCT121 OCT 121 SERVICE ROUTINES
046890,000113: # (FIRST 8K OF ACM)
046891,000114: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
046892,000115: # (LAST 8K OF ACM)
046893,000116: 4777 00144 1SEC DEC 100 B-14
046894,000117: # LOW7 OCT 177 INTERPRETER
046895,000118: # BIT8 OCT 00200
046896,000119: # OT215 OCT 215 ALARM AND ABORT
046897,000120: # 8,5 OCT 00220 P20-P25 SUNDANCE
046898,000121: 5000 00310 2SECS DEC 200 B-14
046899,000122: # LOW8 OCT 377 PINBALL
046900,000123: # BIT9 OCT 00400
046901,000124: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
046902,000125: 5002 00454 3SECS DEC 300 B-14
046903,000126: 5003 00620 4SECS DEC 400 B-14
046904,000127: 5004 00777 LOW9 OCT 777
046905,000128: # BIT10 OCT 01000
046906,000129: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
046907,000130: # OCT1103 OCT 1103 ALARM AND ABORT
046908,000131: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
046909,000132: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
046910,000133: 5007 01400 OCT1400 OCT 01400
046911,000134: 5010 01426 V06N22 VN 0622
![]() |
Page 1097 |
046913,000136: # MID5 OCT 1740 PINBALL
046914,000137: 5011 01776 BITS2-10 OCT 1776
046915,000138: 5012 01777 LOW10 OCT 1777
046916,000139: # BIT11 OCT 02000
046917,000140: # 2K+3 OCT 2003 PINBALL
046918,000141: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
046919,000142: 5014 02400 EBANK5 OCT 02400
046920,000143: 5015 03000 PRIO3 OCT 03000
046921,000144: 5016 03400 EBANK7 OCT 03400
046922,000145: # LOW11 OCT 3777 PINBALL
046923,000146: # BIT12 OCT 04000
046924,000147: # RELTAB OCT 04025 T4RUPT
046925,000148: 5017 05000 PRIO5 OCT 05000
046926,000149: 5020 06000 PRIO6 OCT 06000
046927,000150: 5021 07000 PRIO7 OCT 07000
046928,000151:
046929,000152: # BIT13 OCT 10000
046930,000153: # OCT 10003 T4RUPT RELTAB +1D
046931,000154: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
046932,000155: 5022 11000 PRIO11 OCT 11000
046933,000156: # PRIO12 OCT 12000 BANKCALL
046934,000157: 5023 13000 PRIO13 OCT 13000
046935,000158: 5024 14000 PRIO14 OCT 14000
046936,000159: # OCT 14031 T4RUPT RELTAB +2D
046937,000160: 5025 15000 PRIO15 OCT 15000
046938,000161: 5026 16000 PRIO16 OCT 16000
046939,000162: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
046940,000163: 5027 17000 PRIO17 OCT 17000
046941,000164: 5030 17770 OCT17770 OCT 17770
046942,000165: # BIT14 OCT 20000
046943,000166: # OCT 20033 T4RUPT RELTAB +3D
046944,000167: 5031 21000 PRIO21 OCT 21000
046945,000168: 7710 BLOCK 03
046946,000169: 7710 COUNT* $$/FCONS
046947,000170: 7710 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
046948,000171: 7711 23000 PRIO23 OCT 23000
046949,000172: 7712 24000 PRIO24 OCT 24000
046950,000173: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
046951,000174: # OCT 24017 T4RUPT RELTAB +4D
046952,000175: 7713 25000 PRIO25 OCT 25000
046953,000176: 7714 26000 PRIO26 OCT 26000
046954,000177: 7715 27000 PRIO27 OCT 27000
046955,000178: # CHRPRIO OCT 30000 PINBALL
046956,000179: # OCT 30036 T4RUPT RELTAB +5D
046957,000180: 7716 31000 PRIO31 OCT 31000
046958,000181: 7717 31103 C1/2 DEC .7853134 # (OCTAL 31103)
046959,000182: 7720 32000 PRIO32 OCT 32000
046960,000183: 7721 33000 PRIO33 OCT 33000
046961,000184: 7722 34000 PRIO34 OCT 34000
046962,000185: # OCT 34034 T4RUPT RELTAB +6D
![]() |
Page 1098 |
046964,000187: 7723 35000 PRIO35 OCT 35000
046965,000188: 7724 36000 PRIO36 OCT 36000
046966,000189: 7725 37000 PRIO37 OCT 37000
046967,000190: 7726 37401 63/64+1 OCT 37401
046968,000191: # MID7 OCT 37600 PINBALL
046969,000192: 7727 37766 OCT37766 OCT 37766
046970,000193: 7730 37774 OCT37774 OCT 37774
046971,000194: 7731 37776 OCT37776 OCT 37776
046972,000195: # DPOSMAX OCT 37777
046973,000196: # BIT15 OCT 40000
046974,000197: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION)
046975,000198: 7732 40014 DLOADCOD OCT 40014
046976,000199: 7733 40015 DLOAD* OCT 40015
046977,000200: # OCT 40023 T4RUPT RELTAB +7D
046978,000201: 7734 40040 BIT15+6 OCT 40040
046979,000202: 7735 40200 OCT40200 OCT 40200
046980,000203: # OCT 44035 T4RUPT RELTAB +8D
046981,000204: # OCT 50037 T4RUPT RELTAB +9D
046982,000205: # OCT 54000 T4RUPT RELTAB +10D
046983,000206: 7736 57777 -BIT14 OCT 57777
046984,000207: # RELTAB11 OCT 60000 T4RUPT
046985,000208: 7737 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
046986,000209: 7740 70000 13,14,15 OCT 70000
046987,000210: 7741 73777 -1/8 OCT 73777
046988,000211: 7742 74000 HIGH4 OCT 74000
046989,000212: 7743 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
046990,000213: # HI5 OCT 76000 PINBALL
046991,000214: 7744 77700 HIGH9 OCT 77700
046992,000215: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
046993,000216: # -OCT10 OCT -10 (OCT 77767)
046994,000217: # NEG4 DEC -4 (OCTAL 77773)
046995,000218: 7745 77774 NEG3 DEC -3 B-14
046996,000219: 7746 77775 NEG2 OCT 77775
046997,000220: 7747 77776 NEGONE DEC -1 B-14
046998,000221:
![]() |
Page 1099 |
047000,000223:
047001,000224: # DEFINED BY EQUALS
047002,000225:
047003,000226: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
047004,000227: # ACCIDENTAL DEFINITION CHANGES.
047005,000228:
047006,000229: 7750 7747 MINUS1 = NEG1
047007,000230: 7750 7747 NEG1 = NEGONE
047008,000231: 7750 4753 ONE = BIT1
047009,000232: 7750 4752 TWO = BIT2
047010,000233: 7750 6245 THREE = OCTAL3
047011,000234: 7750 6245 LOW2 = THREE
047012,000235: 7750 4751 FOUR = BIT3
047013,000236: 7750 6242 SIX = REVCNT
047014,000237: 7750 4757 LOW3 = SEVEN
047015,000238: 7750 4750 EIGHT = BIT4
047016,000239: 7750 4320 NINE = R2D1
047017,000240: 7750 4363 TEN = BINCON
047018,000241: 7750 4760 NOUTCON = ELEVEN
047019,000242: 7750 4360 OCT23 = VD1
047020,000243: 7750 4362 OCT25 = MD1
047021,000244: 7750 4742 PRIO1 = BIT10
047022,000245: 7750 5007 EBANK3 = OCT1400
047023,000246: 7750 4741 PRIO2 = BIT11
047024,000247: 7750 4775 OCT120 = SUPER101
047025,000248: 7750 4776 OCT140 = SUPER110
047026,000249: 7750 4741 2K = BIT11
047027,000250: 7750 4741 EBANK4 = BIT11
047028,000251: 7750 4740 PRIO4 = BIT12
047029,000252: 7750 5015 EBANK6 = PRIO3
047030,000253: 7750 4737 QUARTER = BIT13
047031,000254: 7750 4737 PRIO10 = BIT13
047032,000255: 7750 7663 OCT10001 = CCSL
047033,000256: 7750 4736 POS1/2 = HALF
047034,000257: 7750 4736 PRIO20 = BIT14
047035,000258: 7750 4736 HALF = BIT14
047036,000259: 7750 4355 PRIO30 = CHRPRIO
047037,000260: 7750 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
047038,000261: 7750 6471 OCT30002 = TLOAD +1
047039,000262: 7750 7722 B12T14 = PRIO34
047040,000263: 7750 4735 NEGMAX = BIT15
047041,000264: 7750 4735 VLOADCOD = BIT15
047042,000265: 7750 6107 VLOAD* = OCT40001
047043,000266: 7750 4101 OCT60000 = RELTAB11
047044,000267: 7750 4350 BANKMASK = HI5
047045,000268:
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc