Source Code
These source-code files were derived from scans of the
Colossus 237 (Apollo 8 Command Module) program listing from the private collection of original
AGC developer Fred Martin. Scanning was by Ron Burkey. Pre-existing Colossus 249
(Apollo 9 CM) source files were used as a template, and changes between Colossus 249
and Colossus 237 were manually transcribed by a team of volunteers. Note
that the page images
presented online are of reduced quality, and that additional 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 237 OF AGC PROGRAM COLOSSUS BY NASA 2021111-031 1:17 AUG. 24, 1968Note that the date is the date of the printout, not the date of the program revision. |
049644,000002: ## Copyright: Public domain.
049645,000003: ## Filename: FIXED-FIXED_CONSTANT_POOL.agc
049646,000004: ## Purpose: Part of the source code for Colossus build 237.
049647,000005: ## This is for the Command Module's (CM) Apollo Guidance
049648,000006: ## Computer (AGC), for Apollo 8.
049649,000007: ## Assembler: yaYUL
049650,000008: ## Contact: Jim Lawton <jim DOT lawton AT gmail DOT com>
049651,000009: ## Website: www.ibiblio.org/apollo/index.html
049652,000010: ## Page Scans: www.ibiblio.org/apollo/ScansForConversion/Colossus237/
049653,000011: ## Mod history: 2011-04-11 JL Adapted from corresponding Colossus 249 file.
049654,000012: ## 2017-01-01 RSB Proofed comment text using octopus/ProoferComments,
049655,000013: ## and fixed errors found.
049656,000014: ## 2017-01-14 RSB Wherever '#' was followed by non-whitespace
049657,000015: ## (except in "##"), I inserted a space. It wasn't
049658,000016: ## wrong to do it the other way, and indeed makes more
049659,000017: ## sense in some ways, but '#' is consistently
049660,000018: ## followed by a space everywhere else, and without a
049661,000019: ## space it may be flagged in cross-diffs vs other
049662,000020: ## AGC version.
049663,000021:
Page 1167 |
049665,000023: 4671 BLOCK 02
049666,000024:
049667,000025: 4671 COUNT* 02/FCONS
049668,000026:
049669,000027: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
049670,000028:
049671,000029: 4671 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
049672,000030: 4672 37777 POSMAX OCT 37777
049673,000031:
049674,000032: 4673 4673 LIMITS = NEG1/2
049675,000033:
049676,000034: 4673 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
049677,000035: # LOCATIONS IN FRONT OF BIT14)
049678,000036: # BIT TABLE
049679,000037:
049680,000038: 4674 40000 BIT15 OCT 40000
049681,000039: 4675 20000 BIT14 OCT 20000
049682,000040: 4676 10000 BIT13 OCT 10000
049683,000041: 4677 04000 BIT12 OCT 04000
049684,000042: 4700 02000 BIT11 OCT 02000
049685,000043: 4701 01000 BIT10 OCT 01000
049686,000044: 4702 00400 BIT9 OCT 00400
049687,000045: 4703 00200 BIT8 OCT 00200
049688,000046: 4704 00100 BIT7 OCT 00100
049689,000047: 4705 00040 BIT6 OCT 00040
049690,000048: 4706 00020 BIT5 OCT 00020
049691,000049: 4707 00010 BIT4 OCT 00010
049692,000050: 4710 00004 BIT3 OCT 00004
049693,000051: 4711 00002 BIT2 OCT 00002
049694,000052: 4712 00001 BIT1 OCT 00001
049695,000053:
049696,000054:
049697,000055: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
049698,000056: 4713 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
049699,000057: 4714 00000 ZERO OCT 0 # MUST FOLLOW NEG0
049700,000058: # BIT1 OCT 00001
049701,000059: # NO.WDS OCT 2 INTERPRETER
049702,000060: # OCTAL3 OCT 3 INTERPRETER
049703,000061: # R3D1 OCT 4 PINBALL
049704,000062: 4715 00005 FIVE OCT 5
049705,000063: # REVCNT OCT 6 INTERPRETER
049706,000064: 4716 00007 SEVEN OCT 7
049707,000065: # BIT4 OCT 00010
049708,000066: # R2D1 OCT 11 PINBALL
049709,000067: 4717 4334 OCT11 = R2D1 # P20S
049710,000068: # BINCON DEC 10 PINBALL (OCTAL 12)
049711,000069: 4717 00013 ELEVEN DEC 11 B-14
049712,000070: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
049713,000071: 4720 00015 OCT15 OCT 15
049714,000072: # R1D1 OCT 16 PINBALL
Page 1168 |
049716,000074: 4721 00017 LOW4 OCT 17
049717,000075: # BIT5 OCT 00020
049718,000076: # ND1 OCT 21 PINBALL
049719,000077: # VD1 OCT 23 PINBALL
049720,000078: # OCT24 OCT 24 SERVICE ROUTINES
049721,000079: # MD1 OCT 25 PINBALL
049722,000080: 4722 00030 BITS4&5 OCT 30
049723,000081: # OCT31 OCT 31 SERVICE ROUTINES
049724,000082: 4723 00032 CALLCODE OCT 00032
049725,000083: # LOW5 OCT 37 PINBALL
049726,000084: # 33DEC DEC 33 PINBALL (OCTAL 41)
049727,000085: # 34DEC DEC 34 PINBALL (OCTAL 42)
049728,000086: 4724 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
049729,000087: 4725 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
049730,000088: # BIT6 OCT 00040
049731,000089: 4726 00050 OCT50 OCT 50
049732,000090: 4727 00055 DEC45 DEC 45 B-14
049733,000091: 4730 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
049734,000092: 4731 00062 .5SEC DEC 50 B-14
049735,000093: # BIT7 OCT 00100
049736,000094:
049737,000095: 4732 4704 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
049738,000096: # (LAST 4K OF ROPE)
049739,000097: 4732 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
049740,000098: # OCT121 OCT 121 SERVICE ROUTINES
049741,000099: # (FIRST 8K OF ACM)
049742,000100: 4733 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
049743,000101: # (LAST 8K OF ACM)
049744,000102: 4734 00144 1SEC DEC 100 B-14
049745,000103: # LOW7 OCT 177 INTERPRETER
049746,000104: # BIT8 OCT 00200
049747,000105: # OT215 OCT 215 ALARM AND ABORT
049748,000106: # 8,5 OCT 00220 P20-P25 SUNDANCE
049749,000107: 4735 00310 2SECS DEC 200 B-14
049750,000108: # LOW8 OCT 377 PINBALL
049751,000109: # BIT9 OCT 00400
049752,000110: 4736 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
049753,000111: 4737 00454 3SECS DEC 300 B-14
049754,000112: 4740 00620 4SECS DEC 400 B-14
049755,000113: 4741 00777 LOW9 OCT 777
049756,000114: # BIT10 OCT 01000
049757,000115: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
049758,000116: # OCT1103 OCT 1103 ALARM AND ABORT
049759,000117: 4742 01124 C5/2 DEC .0363551 # (OCTAL 01124)
049760,000118: 4743 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
049761,000119: 4744 01400 OCT1400 OCT 01400
049762,000120: 4745 01426 V06N22 VN 0622
049763,000121: # MID5 OCT 1740 PINBALL
049764,000122: 4746 01776 BITS2-10 OCT 1776
049765,000123: 4747 01777 LOW10 OCT 1777
Page 1169 |
049767,000125: # BIT11 OCT 02000
049768,000126: # 2K+3 OCT 2003 PINBALL
049769,000127: 4750 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
049770,000128: 4751 02400 EBANK5 OCT 02400
049771,000129: 4752 03000 PRIO3 OCT 03000
049772,000130: 4753 03400 EBANK7 OCT 03400
049773,000131: # LOW11 OCT 3777 PINBALL
049774,000132: # BIT12 OCT 04000
049775,000133: # RELTAB OCT 04025 T4RUPT
049776,000134: 4754 05000 PRIO5 OCT 05000
049777,000135: 4755 06000 PRIO6 OCT 06000
049778,000136: 4756 07000 PRIO7 OCT 07000
049779,000137:
049780,000138: # BIT13 OCT 10000
049781,000139: # OCT 10003 T4RUPT RELTAB +1D
049782,000140: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
049783,000141: 4757 11000 PRIO11 OCT 11000
049784,000142: # PRIO12 OCT 12000 BANKCALL
049785,000143: 4760 13000 PRIO13 OCT 13000
049786,000144: 4761 14000 PRIO14 OCT 14000
049787,000145: # OCT 14031 T4RUPT RELTAB +2D
049788,000146: 4762 15000 PRIO15 OCT 15000
049789,000147: 4763 16000 PRIO16 OCT 16000
049790,000148: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
049791,000149: 4764 17000 PRIO17 OCT 17000
049792,000150: 4765 17770 OCT17770 OCT 17770
049793,000151: # BIT14 OCT 20000
049794,000152: # OCT 20033 T4RUPT RELTAB +3D
049795,000153: 4766 21000 PRIO21 OCT 21000
049796,000154: 7657 BLOCK 03
049797,000155: 7657 COUNT* 03/FCONS
049798,000156:
049799,000157: 7657 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
049800,000158: 7660 23000 PRIO23 OCT 23000
049801,000159: 7661 24000 PRIO24 OCT 24000
049802,000160: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
049803,000161: # OCT 24017 T4RUPT RELTAB +4D
049804,000162: 7662 25000 PRIO25 OCT 25000
049805,000163: 7663 26000 PRIO26 OCT 26000
049806,000164: 7664 27000 PRIO27 OCT 27000
049807,000165: # CHRPRIO OCT 30000 PINBALL
049808,000166: # OCT 30036 T4RUPT RELTAB +5D
049809,000167: 7665 31000 PRIO31 OCT 31000
049810,000168: 7666 31103 C1/2 DEC .7853134 # (OCTAL 31103)
049811,000169: 7667 32000 PRIO32 OCT 32000
049812,000170: 7670 33000 PRIO33 OCT 33000
049813,000171: 7671 34000 PRIO34 OCT 34000
049814,000172: # OCT 34034 T4RUPT RELTAB +6D
049815,000173: 7672 35000 PRIO35 OCT 35000
049816,000174: 7673 36000 PRIO36 OCT 36000
Page 1170 |
049818,000176: 7674 37000 PRIO37 OCT 37000
049819,000177: 7675 37401 63/64+1 OCT 37401
049820,000178: # MID7 OCT 37600 PINBALL
049821,000179: 7676 37766 OCT37766 OCT 37766
049822,000180: 7677 37774 OCT37774 OCT 37774
049823,000181: 7700 37776 OCT37776 OCT 37776
049824,000182: # DPOSMAX OCT 37777
049825,000183: # BIT15 OCT 40000
049826,000184: # OCT40001 OCT 40001 INTERPRETER ( CS 1 INSTRUCTION)
049827,000185: 7701 40014 DLOADCOD OCT 40014
049828,000186: 7702 40015 DLOAD* OCT 40015
049829,000187: # OCT 40023 T4RUPT RELTAB +7D
049830,000188: 7703 40040 BIT15+6 OCT 40040
049831,000189: 7704 40200 OCT40200 OCT 40200
049832,000190: # OCT 44035 T4RUPT RELTAB +8D
049833,000191: # OCT 50037 T4RUPT RELTAB +9D
049834,000192: # OCT 54000 T4RUPT RELTAB +10D
049835,000193: 7705 57777 -BIT14 OCT 57777
049836,000194: # RELTAB11 OCT 60000 T4RUPT
049837,000195: 7706 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
049838,000196: 7707 70000 13,14,15 OCT 70000
049839,000197: 7710 73777 -1/8 OCT 73777
049840,000198: 7711 74000 HIGH4 OCT 74000
049841,000199: 7712 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
049842,000200: # HI5 OCT 76000 PINBALL
049843,000201: 7713 77700 HIGH9 OCT 77700
049844,000202: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
049845,000203: # -OCT10 OCT -10 (OCT 77767)
049846,000204: # NEG4 DEC -4 (OCTAL 77773)
049847,000205: 7714 77774 NEG3 DEC -3 B-14
049848,000206: 7715 77775 NEG2 OCT 77775
049849,000207: 7716 77776 NEGONE DEC -1 B-14
049850,000208:
Page 1171 |
049852,000210: # DEFINED BY EQUALS
049853,000211:
049854,000212: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
049855,000213: # ACCIDENTAL DEFINITION CHANGES.
049856,000214:
049857,000215: 7717 7716 MINUS1 = NEG1
049858,000216: 7717 7716 NEG1 = NEGONE
049859,000217: 7717 4712 ONE = BIT1
049860,000218: 7717 4711 TWO = BIT2
049861,000219: 7717 6214 THREE = OCTAL3
049862,000220: 7717 6214 LOW2 = THREE
049863,000221: 7717 4710 FOUR = BIT3
049864,000222: 7717 6211 SIX = REVCNT
049865,000223: 7717 4716 LOW3 = SEVEN
049866,000224: 7717 4707 EIGHT = BIT4
049867,000225: 7717 4334 NINE = R2D1
049868,000226: 7717 4377 TEN = BINCON
049869,000227: 7717 4717 NOUTCON = ELEVEN
049870,000228: 7717 4374 OCT23 = VD1
049871,000229: 7717 4376 OCT25 = MD1
049872,000230: 7717 4701 PRIO1 = BIT10
049873,000231: 7717 4744 EBANK3 = OCT1400
049874,000232: 7717 4700 PRIO2 = BIT11
049875,000233: 7717 4732 OCT120 = SUPER101
049876,000234: 7717 4733 OCT140 = SUPER110
049877,000235: 7717 4700 2K = BIT11
049878,000236: 7717 4700 EBANK4 = BIT11
049879,000237: 7717 4677 PRIO4 = BIT12
049880,000238: 7717 4752 EBANK6 = PRIO3
049881,000239: 7717 4676 QUARTER = BIT13
049882,000240: 7717 4676 PRIO10 = BIT13
049883,000241: 7717 7632 OCT10001 = CCSL
049884,000242: 7717 4675 POS1/2 = HALF
049885,000243: 7717 4675 PRIO20 = BIT14
049886,000244: 7717 4675 HALF = BIT14
049887,000245: 7717 4371 PRIO30 = CHRPRIO
049888,000246: 7717 4371 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
049889,000247: 7717 6440 OCT30002 = TLOAD +1
049890,000248: 7717 7671 B12T14 = PRIO34
049891,000249: 7717 4674 NEGMAX = BIT15
049892,000250: 7717 4674 VLOADCOD = BIT15
049893,000251: 7717 6056 VLOAD* = OCT40001
049894,000252: 7717 4105 OCT60000 = RELTAB11
049895,000253: 7717 4364 BANKMASK = HI5
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc