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 Colossus 249 (Apollo 9)
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 055 OF AGC PROGRAM COMANCHE BY NASA 2021113-051 10:28 APR. 1,1969Note that the date is the date of the printout, not the date of the program revision. |
052288,000002: ## Copyright: Public domain.
052289,000003: ## Filename: FIXED_FIXED_CONSTANT_POOL.agc
052290,000004: ## Purpose: Part of the source code for Colossus 2A, AKA Comanche 055.
052291,000005: ## It is part of the source code for the Command Module's (CM)
052292,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
052293,000007: ## Assembler: yaYUL
052294,000008: ## Contact: Ron Burkey <info@sandroid.org>.
052295,000009: ## Website: www.ibiblio.org/apollo.
052296,000010: ## Pages: 1200-1204
052297,000011: ## Mod history: 2009-05-13 RSB Adapted from the Colossus249/ file of the
052298,000012: ## same name, using Comanche055 page images.
052299,000013: ## 2016-12-21 RSB Proofed comment text using octopus/ProoferComments
052300,000014: ## and corrected the errors found.
052301,000015: ##
052302,000016: ## This source code has been transcribed or otherwise adapted from digitized
052303,000017: ## images of a hardcopy from the MIT Museum. The digitization was performed
052304,000018: ## by Paul Fjeld, and arranged for by Deborah Douglas of the Museum. Many
052305,000019: ## thanks to both. The images (with suitable reduction in storage size and
052306,000020: ## consequent reduction in image quality as well) are available online at
052307,000021: ## www.ibiblio.org/apollo. If for some reason you find that the images are
052308,000022: ## illegible, contact me at info@sandroid.org about getting access to the
052309,000023: ## (much) higher-quality images which Paul actually created.
052310,000024: ##
052311,000025: ## Notations on the hardcopy document read, in part:
052312,000026: ##
052313,000027: ## Assemble revision 055 of AGC program Comanche by NASA
052314,000028: ## 2021113-051. 10:28 APR. 1, 1969
052315,000029: ##
052316,000030: ## This AGC program shall also be referred to as
052317,000031: ## Colossus 2A
052318,000032:
Page 1200 |
052320,000034: 4776 BLOCK 02
052321,000035: 4776 COUNT 02/FCONS
052322,000036:
052323,000037: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
052324,000038:
052325,000039: 4776 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
052326,000040: 4777 37777 POSMAX OCT 37777
052327,000041:
052328,000042: 5000 5000 LIMITS = NEG1/2
052329,000043:
052330,000044: 5000 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
052331,000045: # LOCATIONS IN FRONT OF BIT14)
052332,000046:
052333,000047: # BIT TABLE
052334,000048:
052335,000049: 5001 40000 BIT15 OCT 40000
052336,000050: 5002 20000 BIT14 OCT 20000
052337,000051: 5003 10000 BIT13 OCT 10000
052338,000052: 5004 04000 BIT12 OCT 04000
052339,000053: 5005 02000 BIT11 OCT 02000
052340,000054: 5006 01000 BIT10 OCT 01000
052341,000055: 5007 00400 BIT9 OCT 00400
052342,000056: 5010 00200 BIT8 OCT 00200
052343,000057: 5011 00100 BIT7 OCT 00100
052344,000058: 5012 00040 BIT6 OCT 00040
052345,000059: 5013 00020 BIT5 OCT 00020
052346,000060: 5014 00010 BIT4 OCT 00010
052347,000061: 5015 00004 BIT3 OCT 00004
052348,000062: 5016 00002 BIT2 OCT 00002
052349,000063: 5017 00001 BIT1 OCT 00001
052350,000064:
052351,000065: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
052352,000066: 5020 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
052353,000067: 5021 00000 ZERO OCT 0 # MUST FOLLOW NEG0
052354,000068: # BIT1 OCT 00001
052355,000069: # NO.WDS OCT 2 INTERPRETER
052356,000070: # OCTAL3 OCT 3 INTERPRETER
052357,000071: # R3D1 OCT 4 PINBALL
052358,000072: 5022 00005 FIVE OCT 5
052359,000073: # REVCNT OCT 6 INTERPRETER
052360,000074: 5023 00007 SEVEN OCT 7
052361,000075: # BIT4 OCT 00010
052362,000076: # R2D1 OCT 11 PINBALL
052363,000077: 5024 4334 OCT11 = R2D1 # P20S
052364,000078: # BINCON DEC 10 PINBALL (OCTAL 12)
052365,000079: 5024 00013 ELEVEN DEC 11 B-14
052366,000080: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
052367,000081: 5025 00015 OCT15 OCT 15
052368,000082: # R1D1 OCT 16 PINBALL
Page 1201 |
052370,000084: 5026 00017 LOW4 OCT 17
052371,000085: # BIT5 OCT 00020
052372,000086: # ND1 OCT 21 PINBALL
052373,000087: # VD1 OCT 23 PINBALL
052374,000088: # OCT24 OCT 24 SERVICE ROUTINES
052375,000089: # MD1 OCT 25 PINBALL
052376,000090: 5027 00030 BITS4&5 OCT 30
052377,000091: # OCT31 OCT 31 SERVICE ROUTINES
052378,000092: 5030 00032 CALLCODE OCT 00032
052379,000093: # LOW5 OCT 37 PINBALL
052380,000094: # 33DEC DEC 33 PINBALL (OCTAL 41)
052381,000095: # 34DEC DEC 34 PINBALL (OCTAL 42)
052382,000096: 5031 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
052383,000097: 5032 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
052384,000098: # BIT6 OCT 00040
052385,000099: 5033 00050 OCT50 OCT 50
052386,000100: 5034 00055 DEC45 DEC 45 B-14
052387,000101: 5035 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
052388,000102: 5036 00062 .5SEC DEC 50 B-14
052389,000103: # BIT7 OCT 00100
052390,000104:
052391,000105: 5037 5011 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
052392,000106: # (LAST 4K OF ROPE)
052393,000107: 5037 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
052394,000108: # OCT121 OCT 121 SERVICE ROUTINES
052395,000109: # (FIRST 8K OF ACM)
052396,000110: 5040 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
052397,000111: # (LAST 8K OF ACM)
052398,000112: 5041 00144 1SEC DEC 100 B-14
052399,000113: # LOW7 OCT 177 INTERPRETER
052400,000114: # BIT8 OCT 00200
052401,000115: # OT215 OCT 215 ALARM AND ABORT
052402,000116: # 8,5 OCT 00220 P20-P25 SUNDANCE
052403,000117: 5042 00310 2SECS DEC 200 B-14
052404,000118: # LOW8 OCT 377 PINBALL
052405,000119: # BIT9 OCT 00400
052406,000120: 5043 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
052407,000121: 5044 00454 3SECS DEC 300 B-14
052408,000122: 5045 00620 4SECS DEC 400 B-14
052409,000123: 5046 00777 LOW9 OCT 777
052410,000124: # BIT10 OCT 01000
052411,000125: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
052412,000126: # OCT1103 OCT 1103 ALARM AND ABORT
052413,000127: 5047 01124 C5/2 DEC .0363551 # (OCTAL 01124)
052414,000128: 5050 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
052415,000129: 5051 01400 OCT1400 OCT 01400
052416,000130: 5052 01426 V06N22 VN 0622
052417,000131: # MID5 OCT 1740 PINBALL
052418,000132: 5053 01776 BITS2-10 OCT 1776
052419,000133: 5054 01777 LOW10 OCT 1777
Page 1202 |
052421,000135: # BIT11 OCT 02000
052422,000136: # 2K+3 OCT 2003 PINBALL
052423,000137: 5055 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
052424,000138: 5056 02400 EBANK5 OCT 02400
052425,000139: 5057 03000 PRIO3 OCT 03000
052426,000140: 5060 03400 EBANK7 OCT 03400
052427,000141: # LOW11 OCT 3777 PINBALL
052428,000142: # BIT12 OCT 04000
052429,000143: # RELTAB OCT 04025 T4RUPT
052430,000144: 5061 05000 PRIO5 OCT 05000
052431,000145: 5062 06000 PRIO6 OCT 06000
052432,000146: 5063 07000 PRIO7 OCT 07000
052433,000147:
052434,000148: # BIT13 OCT 10000
052435,000149: # OCT 10003 T4RUPT RELTAB +1D
052436,000150: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
052437,000151: 5064 11000 PRIO11 OCT 11000
052438,000152: # PRIO12 OCT 12000 BANKCALL
052439,000153: 5065 13000 PRIO13 OCT 13000
052440,000154: 5066 14000 PRIO14 OCT 14000
052441,000155: # OCT 14031 T4RUPT RELTAB +2D
052442,000156: 5067 15000 PRIO15 OCT 15000
052443,000157: 5070 16000 PRIO16 OCT 16000
052444,000158: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
052445,000159: 5071 17000 PRIO17 OCT 17000
052446,000160: 5072 17770 OCT17770 OCT 17770
052447,000161: # BIT14 OCT 20000
052448,000162: # OCT 20033 T4RUPT RELTAB +3D
052449,000163: 5073 21000 PRIO21 OCT 21000
052450,000164: 7657 BLOCK 03
052451,000165: 7657 COUNT 03/FCONS
052452,000166:
052453,000167: 7657 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
052454,000168: 7660 23000 PRIO23 OCT 23000
052455,000169: 7661 24000 PRIO24 OCT 24000
052456,000170: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
052457,000171: # OCT 24017 T4RUPT RELTAB +4D
052458,000172: 7662 25000 PRIO25 OCT 25000
052459,000173: 7663 26000 PRIO26 OCT 26000
052460,000174: 7664 27000 PRIO27 OCT 27000
052461,000175: # CHRPRIO OCT 30000 PINBALL
052462,000176: # OCT 30036 T4RUPT RELTAB +5D
052463,000177: 7665 31000 PRIO31 OCT 31000
052464,000178: 7666 31103 C1/2 DEC .7853134 # (OCTAL 31103)
052465,000179: 7667 32000 PRIO32 OCT 32000
052466,000180: 7670 33000 PRIO33 OCT 33000
052467,000181: 7671 34000 PRIO34 OCT 34000
052468,000182: # OCT 34034 T4RUPT RELTAB +6D
052469,000183: 7672 35000 PRIO35 OCT 35000
052470,000184: 7673 36000 PRIO36 OCT 36000
Page 1203 |
052472,000186: 7674 37000 PRIO37 OCT 37000
052473,000187: 7675 37401 63/64+1 OCT 37401
052474,000188: # MID7 OCT 37600 PINBALL
052475,000189: 7676 37766 OCT37766 OCT 37766
052476,000190: 7677 37774 OCT37774 OCT 37774
052477,000191: 7700 37776 OCT37776 OCT 37776
052478,000192: # DPOSMAX OCT 37777
052479,000193: # BIT15 OCT 40000
052480,000194: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION)
052481,000195: 7701 40014 DLOADCOD OCT 40014
052482,000196: 7702 40015 DLOAD* OCT 40015
052483,000197: # OCT 40023 T4RUPT RELTAB +7D
052484,000198: 7703 40040 BIT15+6 OCT 40040
052485,000199: 7704 40200 OCT40200 OCT 40200
052486,000200: # OCT 44035 T4RUPT RELTAB +8D
052487,000201: # OCT 50037 T4RUPT RELTAB +9D
052488,000202: # OCT 54000 T4RUPT RELTAB +10D
052489,000203: 7705 57777 -BIT14 OCT 57777
052490,000204: # RELTAB11 OCT 60000 T4RUPT
052491,000205: 7706 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
052492,000206: 7707 70000 13,14,15 OCT 70000
052493,000207: 7710 73777 -1/8 OCT 73777
052494,000208: 7711 74000 HIGH4 OCT 74000
052495,000209: 7712 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
052496,000210: # HI5 OCT 76000 PINBALL
052497,000211: 7713 77700 HIGH9 OCT 77700
052498,000212: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
052499,000213: # -OCT10 OCT -10 (OCT 77767)
052500,000214: # NEG4 DEC -4 (OCTAL 77773)
052501,000215: 7714 77774 NEG3 DEC -3 B-14
052502,000216: 7715 77775 NEG2 OCT 77775
052503,000217: 7716 77776 NEGONE DEC -1 B-14
052504,000218:
Page 1204 |
052506,000220:
052507,000221: # DEFINED BY EQUALS
052508,000222:
052509,000223: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
052510,000224: # ACCIDENTAL DEFINITION CHANGES.
052511,000225:
052512,000226: 7717 7716 MINUS1 = NEG1
052513,000227: 7717 7716 NEG1 = NEGONE
052514,000228: 7717 5017 ONE = BIT1
052515,000229: 7717 5016 TWO = BIT2
052516,000230: 7717 6214 THREE = OCTAL3
052517,000231: 7717 6214 LOW2 = THREE
052518,000232: 7717 5015 FOUR = BIT3
052519,000233: 7717 6211 SIX = REVCNT
052520,000234: 7717 5023 LOW3 = SEVEN
052521,000235: 7717 5014 EIGHT = BIT4
052522,000236: 7717 4334 NINE = R2D1
052523,000237: 7717 4377 TEN = BINCON
052524,000238: 7717 5024 NOUTCON = ELEVEN
052525,000239: 7717 4374 OCT23 = VD1
052526,000240: 7717 4376 OCT25 = MD1
052527,000241: 7717 5006 PRIO1 = BIT10
052528,000242: 7717 5051 EBANK3 = OCT1400
052529,000243: 7717 5005 PRIO2 = BIT11
052530,000244: 7717 5037 OCT120 = SUPER101
052531,000245: 7717 5040 OCT140 = SUPER110
052532,000246: 7717 5005 2K = BIT11
052533,000247: 7717 5005 EBANK4 = BIT11
052534,000248: 7717 5004 PRIO4 = BIT12
052535,000249: 7717 5057 EBANK6 = PRIO3
052536,000250: 7717 5003 QUARTER = BIT13
052537,000251: 7717 5003 PRIO10 = BIT13
052538,000252: 7717 7632 OCT10001 = CCSL
052539,000253: 7717 5002 POS1/2 = HALF
052540,000254: 7717 5002 PRIO20 = BIT14
052541,000255: 7717 5002 HALF = BIT14
052542,000256: 7717 4371 PRIO30 = CHRPRIO
052543,000257: 7717 4371 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
052544,000258: 7717 6440 OCT30002 = TLOAD +1
052545,000259: 7717 7671 B12T14 = PRIO34
052546,000260: 7717 5001 NEGMAX = BIT15
052547,000261: 7717 5001 VLOADCOD = BIT15
052548,000262: 7717 6056 VLOAD* = OCT40001
052549,000263: 7717 4105 OCT60000 = RELTAB11
052550,000264: 7717 4364 BANKMASK = HI5
052551,000265:
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc