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

052272,000002:                                                                                                  ## Copyright:   Public domain.
052273,000003:                                                                                                  ## Filename:    FIXED_FIXED_CONSTANT_POOL.agc
052274,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus 2A, AKA Comanche 055.
052275,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
052276,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
052277,000007:                                                                                                  ## Assembler:   yaYUL
052278,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
052279,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
052280,000010:                                                                                                  ## Pages:       1200-1204
052281,000011:                                                                                                  ## Mod history: 2009-05-13 RSB  Adapted from the Colossus249/ file of the
052282,000012:                                                                                                  ##                              same name, using Comanche055 page images.
052283,000013:                                                                                                  ##              2016-12-21 RSB  Proofed comment text using octopus/ProoferComments
052284,000014:                                                                                                  ##                              and corrected the errors found.
052285,000015:                                                                                                  ##
052286,000016:                                                                                                  ## This source code has been transcribed or otherwise adapted from digitized
052287,000017:                                                                                                  ## images of a hardcopy from the MIT Museum.  The digitization was performed
052288,000018:                                                                                                  ## by Paul Fjeld, and arranged for by Deborah Douglas of the Museum.  Many
052289,000019:                                                                                                  ## thanks to both.  The images (with suitable reduction in storage size and
052290,000020:                                                                                                  ## consequent reduction in image quality as well) are available online at
052291,000021:                                                                                                  ## www.ibiblio.org/apollo.  If for some reason you find that the images are
052292,000022:                                                                                                  ## illegible, contact me at info@sandroid.org about getting access to the 
052293,000023:                                                                                                  ## (much) higher-quality images which Paul actually created.
052294,000024:                                                                                                  ##
052295,000025:                                                                                                  ## Notations on the hardcopy document read, in part:
052296,000026:                                                                                                  ##
052297,000027:                                                                                                  ##      Assemble revision 055 of AGC program Comanche by NASA
052298,000028:                                                                                                  ##      2021113-051.  10:28 APR. 1, 1969  
052299,000029:                                                                                                  ##
052300,000030:                                                                                                  ##      This AGC program shall also be referred to as
052301,000031:                                                                                                  ##                      Colossus 2A
052302,000032: 

Page 1200

052304,000034:    4776                                           BLOCK    02                                    
052305,000035:    4776                                           COUNT    02/FCONS                              
052306,000036: 
052307,000037:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES.
052308,000038: 
052309,000039:    4776           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
052310,000040:    4777           37777        POSMAX             OCT      37777                                 
052311,000041: 
052312,000042:    5000     5000               LIMITS             =        NEG1/2                                
052313,000043: 
052314,000044:    5000           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
052315,000045:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
052316,000046: 
052317,000047:                                                                                                  #  BIT TABLE                                     
052318,000048: 
052319,000049:    5001           40000        BIT15              OCT      40000                                 
052320,000050:    5002           20000        BIT14              OCT      20000                                 
052321,000051:    5003           10000        BIT13              OCT      10000                                 
052322,000052:    5004           04000        BIT12              OCT      04000                                 
052323,000053:    5005           02000        BIT11              OCT      02000                                 
052324,000054:    5006           01000        BIT10              OCT      01000                                 
052325,000055:    5007           00400        BIT9               OCT      00400                                 
052326,000056:    5010           00200        BIT8               OCT      00200                                 
052327,000057:    5011           00100        BIT7               OCT      00100                                 
052328,000058:    5012           00040        BIT6               OCT      00040                                 
052329,000059:    5013           00020        BIT5               OCT      00020                                 
052330,000060:    5014           00010        BIT4               OCT      00010                                 
052331,000061:    5015           00004        BIT3               OCT      00004                                 
052332,000062:    5016           00002        BIT2               OCT      00002                                 
052333,000063:    5017           00001        BIT1               OCT      00001                                 
052334,000064: 
052335,000065:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
052336,000066:    5020           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
052337,000067:    5021           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
052338,000068:                                                                                                  #  BIT1          OCT     00001
052339,000069:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
052340,000070:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
052341,000071:                                                                                                  #  R3D1          OCT     4               PINBALL
052342,000072:    5022           00005        FIVE               OCT      5                                     
052343,000073:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
052344,000074:    5023           00007        SEVEN              OCT      7                                     
052345,000075:                                                                                                  #  BIT4          OCT     00010
052346,000076:                                                                                                  #  R2D1          OCT     11              PINBALL
052347,000077:    5024     4334               OCT11              =        R2D1                                  #  P20S
052348,000078:                                                                                                  #  BINCON        DEC     10              PINBALL         (OCTAL 12)
052349,000079:    5024           00013        ELEVEN             DEC      11         B-14                       
052350,000080:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
052351,000081:    5025           00015        OCT15              OCT      15                                    
052352,000082:                                                                                                  #  R1D1          OCT     16              PINBALL

Page 1201

052354,000084:    5026           00017        LOW4               OCT      17                                    
052355,000085:                                                                                                  #  BIT5          OCT     00020
052356,000086:                                                                                                  #  ND1           OCT     21              PINBALL
052357,000087:                                                                                                  #  VD1           OCT     23              PINBALL
052358,000088:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
052359,000089:                                                                                                  #  MD1           OCT     25              PINBALL
052360,000090:    5027           00030        BITS4&5            OCT      30                                    
052361,000091:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
052362,000092:    5030           00032        CALLCODE           OCT      00032                                 
052363,000093:                                                                                                  #  LOW5          OCT     37              PINBALL
052364,000094:                                                                                                  #  33DEC         DEC     33              PINBALL         (OCTAL 41)
052365,000095:                                                                                                  #  34DEC         DEC     34              PINBALL         (OCTAL 42)
052366,000096:    5031           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
052367,000097:    5032           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
052368,000098:                                                                                                  #  BIT6          OCT     00040
052369,000099:    5033           00050        OCT50              OCT      50                                    
052370,000100:    5034           00055        DEC45              DEC      45         B-14                       
052371,000101:    5035           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
052372,000102:    5036           00062        .5SEC              DEC      50         B-14                       
052373,000103:                                                                                                  #  BIT7          OCT     00100
052374,000104: 
052375,000105:    5037     5011               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
052376,000106:                                                                                                  #  (LAST 4K OF ROPE)
052377,000107:    5037           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
052378,000108:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
052379,000109:                                                                                                  #  (FIRST 8K OF ACM)
052380,000110:    5040           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
052381,000111:                                                                                                  #  (LAST 8K OF ACM)
052382,000112:    5041           00144        1SEC               DEC      100        B-14                       
052383,000113:                                                                                                  #  LOW7          OCT     177             INTERPRETER
052384,000114:                                                                                                  #  BIT8          OCT     00200
052385,000115:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
052386,000116:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
052387,000117:    5042           00310        2SECS              DEC      200        B-14                       
052388,000118:                                                                                                  #  LOW8          OCT     377             PINBALL
052389,000119:                                                                                                  #  BIT9          OCT     00400
052390,000120:    5043           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
052391,000121:    5044           00454        3SECS              DEC      300        B-14                       
052392,000122:    5045           00620        4SECS              DEC      400        B-14                       
052393,000123:    5046           00777        LOW9               OCT      777                                   
052394,000124:                                                                                                  #  BIT10         OCT     01000
052395,000125:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE        (OCTAL 00765)
052396,000126:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
052397,000127:    5047           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
052398,000128:    5050           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
052399,000129:    5051           01400        OCT1400            OCT      01400                                 
052400,000130:    5052           01426        V06N22             VN       0622                                  
052401,000131:                                                                                                  #  MID5          OCT     1740            PINBALL
052402,000132:    5053           01776        BITS2-10           OCT      1776                                  
052403,000133:    5054           01777        LOW10              OCT      1777                                  

Page 1202

052405,000135:                                                                                                  #  BIT11         OCT     02000
052406,000136:                                                                                                  #  2K+3          OCT     2003            PINBALL
052407,000137:    5055           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
052408,000138:    5056           02400        EBANK5             OCT      02400                                 
052409,000139:    5057           03000        PRIO3              OCT      03000                                 
052410,000140:    5060           03400        EBANK7             OCT      03400                                 
052411,000141:                                                                                                  #  LOW11         OCT     3777            PINBALL
052412,000142:                                                                                                  #  BIT12         OCT     04000
052413,000143:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
052414,000144:    5061           05000        PRIO5              OCT      05000                                 
052415,000145:    5062           06000        PRIO6              OCT      06000                                 
052416,000146:    5063           07000        PRIO7              OCT      07000                                 
052417,000147: 
052418,000148:                                                                                                  #  BIT13         OCT     10000
052419,000149:                                                                                                  #                OCT     10003           T4RUPT  RELTAB +1D
052420,000150:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
052421,000151:    5064           11000        PRIO11             OCT      11000                                 
052422,000152:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
052423,000153:    5065           13000        PRIO13             OCT      13000                                 
052424,000154:    5066           14000        PRIO14             OCT      14000                                 
052425,000155:                                                                                                  #                OCT     14031           T4RUPT  RELTAB +2D
052426,000156:    5067           15000        PRIO15             OCT      15000                                 
052427,000157:    5070           16000        PRIO16             OCT      16000                                 
052428,000158:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE        (OCTAL 16450)
052429,000159:    5071           17000        PRIO17             OCT      17000                                 
052430,000160:    5072           17770        OCT17770           OCT      17770                                 
052431,000161:                                                                                                  #  BIT14         OCT     20000
052432,000162:                                                                                                  #                OCT     20033           T4RUPT  RELTAB +3D
052433,000163:    5073           21000        PRIO21             OCT      21000                                 
052434,000164:    7657                                           BLOCK    03                                    
052435,000165:    7657                                           COUNT    03/FCONS                              
052436,000166: 
052437,000167:    7657           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
052438,000168:    7660           23000        PRIO23             OCT      23000                                 
052439,000169:    7661           24000        PRIO24             OCT      24000                                 
052440,000170:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
052441,000171:                                                                                                  #                OCT     24017           T4RUPT  RELTAB +4D
052442,000172:    7662           25000        PRIO25             OCT      25000                                 
052443,000173:    7663           26000        PRIO26             OCT      26000                                 
052444,000174:    7664           27000        PRIO27             OCT      27000                                 
052445,000175:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
052446,000176:                                                                                                  #                OCT     30036           T4RUPT  RELTAB +5D
052447,000177:    7665           31000        PRIO31             OCT      31000                                 
052448,000178:    7666           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
052449,000179:    7667           32000        PRIO32             OCT      32000                                 
052450,000180:    7670           33000        PRIO33             OCT      33000                                 
052451,000181:    7671           34000        PRIO34             OCT      34000                                 
052452,000182:                                                                                                  #                OCT     34034           T4RUPT  RELTAB +6D              
052453,000183:    7672           35000        PRIO35             OCT      35000                                 
052454,000184:    7673           36000        PRIO36             OCT      36000                                 

Page 1203

052456,000186:    7674           37000        PRIO37             OCT      37000                                 
052457,000187:    7675           37401        63/64+1            OCT      37401                                 
052458,000188:                                                                                                  #  MID7          OCT     37600           PINBALL
052459,000189:    7676           37766        OCT37766           OCT      37766                                 
052460,000190:    7677           37774        OCT37774           OCT      37774                                 
052461,000191:    7700           37776        OCT37776           OCT      37776                                 
052462,000192:                                                                                                  #  DPOSMAX       OCT     37777
052463,000193:                                                                                                  #  BIT15         OCT     40000
052464,000194:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER (CS 1 INSTRUCTION)
052465,000195:    7701           40014        DLOADCOD           OCT      40014                                 
052466,000196:    7702           40015        DLOAD*             OCT      40015                                 
052467,000197:                                                                                                  #                OCT     40023           T4RUPT  RELTAB +7D
052468,000198:    7703           40040        BIT15+6            OCT      40040                                 
052469,000199:    7704           40200        OCT40200           OCT      40200                                 
052470,000200:                                                                                                  #                OCT     44035           T4RUPT  RELTAB +8D
052471,000201:                                                                                                  #                OCT     50037           T4RUPT  RELTAB +9D
052472,000202:                                                                                                  #                OCT     54000           T4RUPT  RELTAB +10D
052473,000203:    7705           57777        -BIT14             OCT      57777                                 
052474,000204:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
052475,000205:    7706           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
052476,000206:    7707           70000        13,14,15           OCT      70000                                 
052477,000207:    7710           73777        -1/8               OCT      73777                                 
052478,000208:    7711           74000        HIGH4              OCT      74000                                 
052479,000209:    7712           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
052480,000210:                                                                                                  #  HI5           OCT     76000           PINBALL
052481,000211:    7713           77700        HIGH9              OCT      77700                                 
052482,000212:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER             (OCTAL 77722)
052483,000213:                                                                                                  #  -OCT10        OCT     -10                                      (OCT 77767)
052484,000214:                                                                                                  #  NEG4          DEC     -4                                      (OCTAL 77773)
052485,000215:    7714           77774        NEG3               DEC      -3         B-14                       
052486,000216:    7715           77775        NEG2               OCT      77775                                 
052487,000217:    7716           77776        NEGONE             DEC      -1         B-14                       
052488,000218: 

Page 1204

052490,000220: 
052491,000221:                                                                                                  #  DEFINED BY EQUALS
052492,000222: 
052493,000223:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
052494,000224:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
052495,000225: 
052496,000226:    7717     7716               MINUS1             =        NEG1                                  
052497,000227:    7717     7716               NEG1               =        NEGONE                                
052498,000228:    7717     5017               ONE                =        BIT1                                  
052499,000229:    7717     5016               TWO                =        BIT2                                  
052500,000230:    7717     6214               THREE              =        OCTAL3                                
052501,000231:    7717     6214               LOW2               =        THREE                                 
052502,000232:    7717     5015               FOUR               =        BIT3                                  
052503,000233:    7717     6211               SIX                =        REVCNT                                
052504,000234:    7717     5023               LOW3               =        SEVEN                                 
052505,000235:    7717     5014               EIGHT              =        BIT4                                  
052506,000236:    7717     4334               NINE               =        R2D1                                  
052507,000237:    7717     4377               TEN                =        BINCON                                
052508,000238:    7717     5024               NOUTCON            =        ELEVEN                                
052509,000239:    7717     4374               OCT23              =        VD1                                   
052510,000240:    7717     4376               OCT25              =        MD1                                   
052511,000241:    7717     5006               PRIO1              =        BIT10                                 
052512,000242:    7717     5051               EBANK3             =        OCT1400                               
052513,000243:    7717     5005               PRIO2              =        BIT11                                 
052514,000244:    7717     5037               OCT120             =        SUPER101                              
052515,000245:    7717     5040               OCT140             =        SUPER110                              
052516,000246:    7717     5005               2K                 =        BIT11                                 
052517,000247:    7717     5005               EBANK4             =        BIT11                                 
052518,000248:    7717     5004               PRIO4              =        BIT12                                 
052519,000249:    7717     5057               EBANK6             =        PRIO3                                 
052520,000250:    7717     5003               QUARTER            =        BIT13                                 
052521,000251:    7717     5003               PRIO10             =        BIT13                                 
052522,000252:    7717     7632               OCT10001           =        CCSL                                  
052523,000253:    7717     5002               POS1/2             =        HALF                                  
052524,000254:    7717     5002               PRIO20             =        BIT14                                 
052525,000255:    7717     5002               HALF               =        BIT14                                 
052526,000256:    7717     4371               PRIO30             =        CHRPRIO                               
052527,000257:    7717     4371               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
052528,000258:    7717     6440               OCT30002           =        TLOAD      +1                         
052529,000259:    7717     7671               B12T14             =        PRIO34                                
052530,000260:    7717     5001               NEGMAX             =        BIT15                                 
052531,000261:    7717     5001               VLOADCOD           =        BIT15                                 
052532,000262:    7717     6056               VLOAD*             =        OCT40001                              
052533,000263:    7717     4105               OCT60000           =        RELTAB11                              
052534,000264:    7717     4364               BANKMASK           =        HI5                                   
052535,000265: 

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