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, 1968
Note that the date is the date of the printout, not the date of the program revision.

049636,000002:                                                                                                  ## Copyright:   Public domain.
049637,000003:                                                                                                  ## Filename:    FIXED-FIXED_CONSTANT_POOL.agc
049638,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus build 237.
049639,000005:                                                                                                  ##              This is for the Command Module's (CM) Apollo Guidance
049640,000006:                                                                                                  ##              Computer (AGC), for Apollo 8.
049641,000007:                                                                                                  ## Assembler:   yaYUL
049642,000008:                                                                                                  ## Contact:     Jim Lawton <jim DOT lawton AT gmail DOT com>
049643,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
049644,000010:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Colossus237/
049645,000011:                                                                                                  ## Mod history: 2011-04-11 JL   Adapted from corresponding Colossus 249 file.
049646,000012:                                                                                                  ##              2017-01-01 RSB  Proofed comment text using octopus/ProoferComments,
049647,000013:                                                                                                  ##                              and fixed errors found.
049648,000014:                                                                                                  ##              2017-01-14 RSB  Wherever '#' was followed by non-whitespace
049649,000015:                                                                                                  ##                              (except in "##"), I inserted a space.  It wasn't
049650,000016:                                                                                                  ##                              wrong to do it the other way, and indeed makes more
049651,000017:                                                                                                  ##                              sense in some ways, but '#' is consistently
049652,000018:                                                                                                  ##                              followed by a space everywhere else, and without a 
049653,000019:                                                                                                  ##                              space it may be flagged in cross-diffs vs other
049654,000020:                                                                                                  ##                              AGC version.
049655,000021: 

Page 1167

049657,000023:    4671                                           BLOCK    02                                    
049658,000024: 
049659,000025:    4671                                           COUNT*   02/FCONS                              
049660,000026: 
049661,000027:                                                                                                  #   THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
049662,000028: 
049663,000029:    4671           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
049664,000030:    4672           37777        POSMAX             OCT      37777                                 
049665,000031: 
049666,000032:    4673     4673               LIMITS             =        NEG1/2                                
049667,000033: 
049668,000034:    4673           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
049669,000035:                                                                                                  #                                          LOCATIONS IN FRONT OF BIT14)
049670,000036:                                                                                                  #           BIT TABLE                                    
049671,000037: 
049672,000038:    4674           40000        BIT15              OCT      40000                                 
049673,000039:    4675           20000        BIT14              OCT      20000                                 
049674,000040:    4676           10000        BIT13              OCT      10000                                 
049675,000041:    4677           04000        BIT12              OCT      04000                                 
049676,000042:    4700           02000        BIT11              OCT      02000                                 
049677,000043:    4701           01000        BIT10              OCT      01000                                 
049678,000044:    4702           00400        BIT9               OCT      00400                                 
049679,000045:    4703           00200        BIT8               OCT      00200                                 
049680,000046:    4704           00100        BIT7               OCT      00100                                 
049681,000047:    4705           00040        BIT6               OCT      00040                                 
049682,000048:    4706           00020        BIT5               OCT      00020                                 
049683,000049:    4707           00010        BIT4               OCT      00010                                 
049684,000050:    4710           00004        BIT3               OCT      00004                                 
049685,000051:    4711           00002        BIT2               OCT      00002                                 
049686,000052:    4712           00001        BIT1               OCT      00001                                 
049687,000053: 
049688,000054: 
049689,000055:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
049690,000056:    4713           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
049691,000057:    4714           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
049692,000058:                                                                                                  #  BIT1          OCT     00001
049693,000059:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
049694,000060:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
049695,000061:                                                                                                  #  R3D1          OCT     4               PINBALL
049696,000062:    4715           00005        FIVE               OCT      5                                     
049697,000063:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
049698,000064:    4716           00007        SEVEN              OCT      7                                     
049699,000065:                                                                                                  #  BIT4          OCT     00010
049700,000066:                                                                                                  #  R2D1          OCT     11              PINBALL
049701,000067:    4717     4334               OCT11              =        R2D1                                  #  P20S
049702,000068:                                                                                                  #  BINCON        DEC     10              PINBALL            (OCTAL 12)
049703,000069:    4717           00013        ELEVEN             DEC      11         B-14                       
049704,000070:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
049705,000071:    4720           00015        OCT15              OCT      15                                    
049706,000072:                                                                                                  #  R1D1          OCT     16              PINBALL

Page 1168

049708,000074:    4721           00017        LOW4               OCT      17                                    
049709,000075:                                                                                                  #  BIT5          OCT     00020
049710,000076:                                                                                                  #  ND1           OCT     21              PINBALL
049711,000077:                                                                                                  #  VD1           OCT     23              PINBALL
049712,000078:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
049713,000079:                                                                                                  #  MD1           OCT     25              PINBALL
049714,000080:    4722           00030        BITS4&5            OCT      30                                    
049715,000081:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
049716,000082:    4723           00032        CALLCODE           OCT      00032                                 
049717,000083:                                                                                                  #  LOW5          OCT     37              PINBALL
049718,000084:                                                                                                  #  33DEC         DEC     33              PINBALL            (OCTAL 41)
049719,000085:                                                                                                  #  34DEC         DEC     34              PINBALL            (OCTAL 42)
049720,000086:    4724           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
049721,000087:    4725           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
049722,000088:                                                                                                  #  BIT6          OCT     00040
049723,000089:    4726           00050        OCT50              OCT      50                                    
049724,000090:    4727           00055        DEC45              DEC      45         B-14                       
049725,000091:    4730           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
049726,000092:    4731           00062        .5SEC              DEC      50         B-14                       
049727,000093:                                                                                                  #  BIT7          OCT     00100
049728,000094: 
049729,000095:    4732     4704               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
049730,000096:                                                                                                  #                                          (LAST 4K OF ROPE)
049731,000097:    4732           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
049732,000098:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
049733,000099:                                                                                                  #                                          (FIRST 8K OF ACM)
049734,000100:    4733           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
049735,000101:                                                                                                  #                                          (LAST 8K OF ACM)
049736,000102:    4734           00144        1SEC               DEC      100        B-14                       
049737,000103:                                                                                                  #  LOW7          OCT     177             INTERPRETER
049738,000104:                                                                                                  #  BIT8          OCT     00200
049739,000105:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
049740,000106:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
049741,000107:    4735           00310        2SECS              DEC      200        B-14                       
049742,000108:                                                                                                  #  LOW8          OCT     377             PINBALL
049743,000109:                                                                                                  #  BIT9          OCT     00400
049744,000110:    4736           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
049745,000111:    4737           00454        3SECS              DEC      300        B-14                       
049746,000112:    4740           00620        4SECS              DEC      400        B-14                       
049747,000113:    4741           00777        LOW9               OCT      777                                   
049748,000114:                                                                                                  #  BIT10         OCT     01000
049749,000115:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE   (OCTAL 00765)
049750,000116:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
049751,000117:    4742           01124        C5/2               DEC      .0363551                              #                     (OCTAL 01124)
049752,000118:    4743           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
049753,000119:    4744           01400        OCT1400            OCT      01400                                 
049754,000120:    4745           01426        V06N22             VN       0622                                  
049755,000121:                                                                                                  #  MID5          OCT     1740            PINBALL
049756,000122:    4746           01776        BITS2-10           OCT      1776                                  
049757,000123:    4747           01777        LOW10              OCT      1777                                  

Page 1169

049759,000125:                                                                                                  #  BIT11         OCT     02000
049760,000126:                                                                                                  #  2K+3          OCT     2003            PINBALL
049761,000127:    4750           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
049762,000128:    4751           02400        EBANK5             OCT      02400                                 
049763,000129:    4752           03000        PRIO3              OCT      03000                                 
049764,000130:    4753           03400        EBANK7             OCT      03400                                 
049765,000131:                                                                                                  #  LOW11         OCT     3777            PINBALL
049766,000132:                                                                                                  #  BIT12         OCT     04000
049767,000133:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
049768,000134:    4754           05000        PRIO5              OCT      05000                                 
049769,000135:    4755           06000        PRIO6              OCT      06000                                 
049770,000136:    4756           07000        PRIO7              OCT      07000                                 
049771,000137: 
049772,000138:                                                                                                  #  BIT13         OCT     10000
049773,000139:                                                                                                  #                OCT     10003           T4RUPT     RELTAB +1D
049774,000140:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
049775,000141:    4757           11000        PRIO11             OCT      11000                                 
049776,000142:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
049777,000143:    4760           13000        PRIO13             OCT      13000                                 
049778,000144:    4761           14000        PRIO14             OCT      14000                                 
049779,000145:                                                                                                  #                OCT     14031           T4RUPT     RELTAB +2D
049780,000146:    4762           15000        PRIO15             OCT      15000                                 
049781,000147:    4763           16000        PRIO16             OCT      16000                                 
049782,000148:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE   (OCTAL 16450)
049783,000149:    4764           17000        PRIO17             OCT      17000                                 
049784,000150:    4765           17770        OCT17770           OCT      17770                                 
049785,000151:                                                                                                  #  BIT14         OCT     20000
049786,000152:                                                                                                  #                OCT     20033           T4RUPT     RELTAB +3D
049787,000153:    4766           21000        PRIO21             OCT      21000                                 
049788,000154:    7657                                           BLOCK    03                                    
049789,000155:    7657                                           COUNT*   03/FCONS                              
049790,000156: 
049791,000157:    7657           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
049792,000158:    7660           23000        PRIO23             OCT      23000                                 
049793,000159:    7661           24000        PRIO24             OCT      24000                                 
049794,000160:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
049795,000161:                                                                                                  #                OCT     24017           T4RUPT     RELTAB +4D
049796,000162:    7662           25000        PRIO25             OCT      25000                                 
049797,000163:    7663           26000        PRIO26             OCT      26000                                 
049798,000164:    7664           27000        PRIO27             OCT      27000                                 
049799,000165:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
049800,000166:                                                                                                  #                OCT     30036           T4RUPT     RELTAB +5D
049801,000167:    7665           31000        PRIO31             OCT      31000                                 
049802,000168:    7666           31103        C1/2               DEC      .7853134                              #                     (OCTAL 31103)
049803,000169:    7667           32000        PRIO32             OCT      32000                                 
049804,000170:    7670           33000        PRIO33             OCT      33000                                 
049805,000171:    7671           34000        PRIO34             OCT      34000                                 
049806,000172:                                                                                                  #                OCT     34034           T4RUPT     RELTAB +6D           
049807,000173:    7672           35000        PRIO35             OCT      35000                                 
049808,000174:    7673           36000        PRIO36             OCT      36000                                 

Page 1170

049810,000176:    7674           37000        PRIO37             OCT      37000                                 
049811,000177:    7675           37401        63/64+1            OCT      37401                                 
049812,000178:                                                                                                  #  MID7          OCT     37600           PINBALL
049813,000179:    7676           37766        OCT37766           OCT      37766                                 
049814,000180:    7677           37774        OCT37774           OCT      37774                                 
049815,000181:    7700           37776        OCT37776           OCT      37776                                 
049816,000182:                                                                                                  #  DPOSMAX       OCT     37777
049817,000183:                                                                                                  #  BIT15         OCT     40000
049818,000184:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER  ( CS   1   INSTRUCTION)
049819,000185:    7701           40014        DLOADCOD           OCT      40014                                 
049820,000186:    7702           40015        DLOAD*             OCT      40015                                 
049821,000187:                                                                                                  #                OCT     40023           T4RUPT     RELTAB +7D
049822,000188:    7703           40040        BIT15+6            OCT      40040                                 
049823,000189:    7704           40200        OCT40200           OCT      40200                                 
049824,000190:                                                                                                  #                OCT     44035           T4RUPT    RELTAB +8D
049825,000191:                                                                                                  #                OCT     50037           T4RUPT     RELTAB +9D
049826,000192:                                                                                                  #                OCT     54000           T4RUPT     RELTAB +10D
049827,000193:    7705           57777        -BIT14             OCT      57777                                 
049828,000194:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
049829,000195:    7706           65552        C3/2               DEC      -.3216147                             #                     (OCTAL 65552)
049830,000196:    7707           70000        13,14,15           OCT      70000                                 
049831,000197:    7710           73777        -1/8               OCT      73777                                 
049832,000198:    7711           74000        HIGH4              OCT      74000                                 
049833,000199:    7712           74056        -ENDERAS           DEC      -2001      B-14                       #                     (OCTAL 74056)
049834,000200:                                                                                                  #  HI5           OCT     76000           PINBALL
049835,000201:    7713           77700        HIGH9              OCT      77700                                 
049836,000202:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER        (OCTAL 77722)
049837,000203:                                                                                                  #  -OCT10        OCT     -10                                 (OCT 77767)
049838,000204:                                                                                                  #  NEG4          DEC     -4                                 (OCTAL 77773)
049839,000205:    7714           77774        NEG3               DEC      -3         B-14                       
049840,000206:    7715           77775        NEG2               OCT      77775                                 
049841,000207:    7716           77776        NEGONE             DEC      -1         B-14                       
049842,000208: 

Page 1171

049844,000210:                                                                                                  #  DEFINED BY EQUALS
049845,000211: 
049846,000212:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
049847,000213:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
049848,000214: 
049849,000215:    7717     7716               MINUS1             =        NEG1                                  
049850,000216:    7717     7716               NEG1               =        NEGONE                                
049851,000217:    7717     4712               ONE                =        BIT1                                  
049852,000218:    7717     4711               TWO                =        BIT2                                  
049853,000219:    7717     6214               THREE              =        OCTAL3                                
049854,000220:    7717     6214               LOW2               =        THREE                                 
049855,000221:    7717     4710               FOUR               =        BIT3                                  
049856,000222:    7717     6211               SIX                =        REVCNT                                
049857,000223:    7717     4716               LOW3               =        SEVEN                                 
049858,000224:    7717     4707               EIGHT              =        BIT4                                  
049859,000225:    7717     4334               NINE               =        R2D1                                  
049860,000226:    7717     4377               TEN                =        BINCON                                
049861,000227:    7717     4717               NOUTCON            =        ELEVEN                                
049862,000228:    7717     4374               OCT23              =        VD1                                   
049863,000229:    7717     4376               OCT25              =        MD1                                   
049864,000230:    7717     4701               PRIO1              =        BIT10                                 
049865,000231:    7717     4744               EBANK3             =        OCT1400                               
049866,000232:    7717     4700               PRIO2              =        BIT11                                 
049867,000233:    7717     4732               OCT120             =        SUPER101                              
049868,000234:    7717     4733               OCT140             =        SUPER110                              
049869,000235:    7717     4700               2K                 =        BIT11                                 
049870,000236:    7717     4700               EBANK4             =        BIT11                                 
049871,000237:    7717     4677               PRIO4              =        BIT12                                 
049872,000238:    7717     4752               EBANK6             =        PRIO3                                 
049873,000239:    7717     4676               QUARTER            =        BIT13                                 
049874,000240:    7717     4676               PRIO10             =        BIT13                                 
049875,000241:    7717     7632               OCT10001           =        CCSL                                  
049876,000242:    7717     4675               POS1/2             =        HALF                                  
049877,000243:    7717     4675               PRIO20             =        BIT14                                 
049878,000244:    7717     4675               HALF               =        BIT14                                 
049879,000245:    7717     4371               PRIO30             =        CHRPRIO                               
049880,000246:    7717     4371               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
049881,000247:    7717     6440               OCT30002           =        TLOAD      +1                         
049882,000248:    7717     7671               B12T14             =        PRIO34                                
049883,000249:    7717     4674               NEGMAX             =        BIT15                                 
049884,000250:    7717     4674               VLOADCOD           =        BIT15                                 
049885,000251:    7717     6056               VLOAD*             =        OCT40001                              
049886,000252:    7717     4105               OCT60000           =        RELTAB11                              
049887,000253:    7717     4364               BANKMASK           =        HI5                                   

End of include-file FIXED-FIXED_CONSTANT_POOL.agc.  Parent file is MAIN.agc