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