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.

051980,000002:                                                                                                  ## Copyright:   Public domain.
051981,000003:                                                                                                  ## Filename:    FIXED_FIXED_CONSTANT_POOL.agc
051982,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus 2A, AKA Comanche 055.
051983,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
051984,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
051985,000007:                                                                                                  ## Assembler:   yaYUL
051986,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
051987,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
051988,000010:                                                                                                  ## Pages:       1200-1204
051989,000011:                                                                                                  ## Mod history: 2009-05-13 RSB  Adapted from the Colossus249/ file of the
051990,000012:                                                                                                  ##                              same name, using Comanche055 page images.
051991,000013:                                                                                                  ##
051992,000014:                                                                                                  ## This source code has been transcribed or otherwise adapted from digitized
051993,000015:                                                                                                  ## images of a hardcopy from the MIT Museum.  The digitization was performed
051994,000016:                                                                                                  ## by Paul Fjeld, and arranged for by Deborah Douglas of the Museum.  Many
051995,000017:                                                                                                  ## thanks to both.  The images (with suitable reduction in storage size and
051996,000018:                                                                                                  ## consequent reduction in image quality as well) are available online at
051997,000019:                                                                                                  ## www.ibiblio.org/apollo.  If for some reason you find that the images are
051998,000020:                                                                                                  ## illegible, contact me at info@sandroid.org about getting access to the 
051999,000021:                                                                                                  ## (much) higher-quality images which Paul actually created.
052000,000022:                                                                                                  ##
052001,000023:                                                                                                  ## Notations on the hardcopy document read, in part:
052002,000024:                                                                                                  ##
052003,000025:                                                                                                  ##      Assemble revision 055 of AGC program Comanche by NASA
052004,000026:                                                                                                  ##      2021113-051.  10:28 APR. 1, 1969  
052005,000027:                                                                                                  ##
052006,000028:                                                                                                  ##      This AGC program shall also be referred to as
052007,000029:                                                                                                  ##                      Colossus 2A
052008,000030: 

Page 1200

052010,000032:    4776                                           BLOCK    02                                    
052011,000033:    4776                                           COUNT    02/FCONS                              
052012,000034: 
052013,000035:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES
052014,000036: 
052015,000037:    4776           37777        DPOSMAX            OCT      37777                                 #  MUST PRECED POSMAX
052016,000038:    4777           37777        POSMAX             OCT      37777                                 
052017,000039: 
052018,000040:    5000     5000               LIMITS             =        NEG1/2                                
052019,000041: 
052020,000042:    5000           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
052021,000043:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
052022,000044: 
052023,000045:                                                                                                  #  BIT TABLE                                     
052024,000046: 
052025,000047:    5001           40000        BIT15              OCT      40000                                 
052026,000048:    5002           20000        BIT14              OCT      20000                                 
052027,000049:    5003           10000        BIT13              OCT      10000                                 
052028,000050:    5004           04000        BIT12              OCT      04000                                 
052029,000051:    5005           02000        BIT11              OCT      02000                                 
052030,000052:    5006           01000        BIT10              OCT      01000                                 
052031,000053:    5007           00400        BIT9               OCT      00400                                 
052032,000054:    5010           00200        BIT8               OCT      00200                                 
052033,000055:    5011           00100        BIT7               OCT      00100                                 
052034,000056:    5012           00040        BIT6               OCT      00040                                 
052035,000057:    5013           00020        BIT5               OCT      00020                                 
052036,000058:    5014           00010        BIT4               OCT      00010                                 
052037,000059:    5015           00004        BIT3               OCT      00004                                 
052038,000060:    5016           00002        BIT2               OCT      00002                                 
052039,000061:    5017           00001        BIT1               OCT      00001                                 
052040,000062: 
052041,000063:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
052042,000064:    5020           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
052043,000065:    5021           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
052044,000066:                                                                                                  #  BIT1          OCT     00001
052045,000067:                                                                                                  #  NO.WDS        OCT     2               # INTERPRETER
052046,000068:                                                                                                  #  OCTAL3        OCT     3               # INTERPRETER
052047,000069:                                                                                                  #  R3D1          OCT     4               # PINBALL
052048,000070:    5022           00005        FIVE               OCT      5                                     
052049,000071:                                                                                                  #  REVCNT        OCT     6               # INTERPRETER
052050,000072:    5023           00007        SEVEN              OCT      7                                     
052051,000073:                                                                                                  #  BIT4          OCT     00010
052052,000074:                                                                                                  #  R2D1          OCT     11              # PINBALL
052053,000075:    5024     4334               OCT11              =        R2D1                                  #  P20S
052054,000076:                                                                                                  #  BINCON        DEC     10              # PINBALL               (OCTAL 12)
052055,000077:    5024           00013        ELEVEN             DEC      11         B-14                       
052056,000078:                                                                                                  #  OCT14         OCT     14              # ALARM AND ABORT (FILLER)
052057,000079:    5025           00015        OCT15              OCT      15                                    
052058,000080:                                                                                                  #  R1D1          OCT     16              # PINBALL

Page 1201

052060,000082:    5026           00017        LOW4               OCT      17                                    
052061,000083:                                                                                                  #  BIT5          OCT     00020
052062,000084:                                                                                                  #  ND1           OCT     21              # PINBALL
052063,000085:                                                                                                  #  VD1           OCT     23              # PINBALL
052064,000086:                                                                                                  #  OCT24         OCT     24              # SERVICE ROUTINES
052065,000087:                                                                                                  #  MD1           OCT     25              # PINBALL
052066,000088:    5027           00030        BITS4&5            OCT      30                                    
052067,000089:                                                                                                  #  OCT31         OCT     31              # SERVICE ROUTINES
052068,000090:    5030           00032        CALLCODE           OCT      00032                                 
052069,000091:                                                                                                  #  LOW5          OCT     37              # PINBALL
052070,000092:                                                                                                  #  33DEC         DEC     33              # PINBALL               (OCTAL 41)
052071,000093:                                                                                                  #  34DEC         DEC     34              # PINBALL               (OCTAL 42)
052072,000094:    5031           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVENIENCE IN DAPTESTING
052073,000095:    5032           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
052074,000096:                                                                                                  #  BIT6          OCT     00040
052075,000097:    5033           00050        OCT50              OCT      50                                    
052076,000098:    5034           00055        DEC45              DEC      45         B-14                       
052077,000099:    5035           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
052078,000100:    5036           00062        .5SEC              DEC      50         B-14                       
052079,000101:                                                                                                  #  BIT7          OCT     00100
052080,000102: 
052081,000103:    5037     5011               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
052082,000104:                                                                                                  #  (LAST 4K OF ROPE)
052083,000105:    5037           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
052084,000106:                                                                                                  #  OCT121        OCT     121             # SERVICE ROUTINES
052085,000107:                                                                                                  #  (FIRST 8K OF ACM)
052086,000108:    5040           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
052087,000109:                                                                                                  #  (LAST BK OF ACM)
052088,000110:    5041           00144        1SEC               DEC      100        B-14                       
052089,000111:                                                                                                  #  LOW7          OCT     177             # INTERPRETER
052090,000112:                                                                                                  #  BIT8          OCT     00200
052091,000113:                                                                                                  #  OT215         OCT     215             # ALARM AND ABORT
052092,000114:                                                                                                  #  8,5           OCT     00220           # P20-P25 SUNDANCE
052093,000115:    5042           00310        2SECS              DEC      200        B-14                       
052094,000116:                                                                                                  #  LOW8          OCT     377             # PINBALL
052095,000117:                                                                                                  #  BIT9          OCT     00400
052096,000118:    5043           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
052097,000119:    5044           00454        3SECS              DEC      300        B-14                       
052098,000120:    5045           00620        4SECS              DEC      400        B-14                       
052099,000121:    5046           00777        LOW9               OCT      777                                   
052100,000122:                                                                                                  #  BIT10         OCT     01000
052101,000123:                                                                                                  #  5.5DEGS       DEC     .03056          # P20-P25 SUNDANCE      (OCTAL 00765)
052102,000124:                                                                                                  #  OCT1103       OCT     1103            # ALARM AND ABORT
052103,000125:    5047           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
052104,000126:    5050           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
052105,000127:    5051           01400        OCT1400            OCT      01400                                 
052106,000128:    5052           01426        V06N22             VN       0622                                  
052107,000129:                                                                                                  #  MID5          OCT     1740            # PINBALL
052108,000130:    5053           01776        BITS2-10           OCT      1776                                  
052109,000131:    5054           01777        LOW10              OCT      1777                                  

Page 1202

052111,000133:                                                                                                  #  BIT11         OCT     02000
052112,000134:                                                                                                  #  2K+3          OCT     2003            # PINBALL
052113,000135:    5055           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING
052114,000136:    5056           02400        EBANK5             OCT      02400                                 
052115,000137:    5057           03000        PRIO3              OCT      03000                                 
052116,000138:    5060           03400        EBANK7             OCT      03400                                 
052117,000139:                                                                                                  #  LOW11         OCT     3777            # PINBALL
052118,000140:                                                                                                  #  BIT12         OCT     04000
052119,000141:                                                                                                  #  RELTAB        OCT     04025           # T4RUPT
052120,000142:    5061           05000        PRIO5              OCT      05000                                 
052121,000143:    5062           06000        PRIO6              OCT      06000                                 
052122,000144:    5063           07000        PRIO7              OCT      07000                                 
052123,000145: 
052124,000146:                                                                                                  #  BIT13         OCT     10000
052125,000147:                                                                                                  #                OCT     10003           # T4RUPT        RELTAB +1D
052126,000148:                                                                                                  #  13,7,2        OCT     10102           # P20-P25 SUNDANCE
052127,000149:    5064           11000        PRIO11             OCT      11000                                 
052128,000150:                                                                                                  #  PRIO12        OCT     12000           # BANKCALL
052129,000151:    5065           13000        PRIO13             OCT      13000                                 
052130,000152:    5066           14000        PRIO14             OCT      14000                                 
052131,000153:                                                                                                  #                OCT     14031           # T4RUPT        RELTAB +2D
052132,000154:    5067           15000        PRIO15             OCT      15000                                 
052133,000155:    5070           16000        PRIO16             OCT      16000                                 
052134,000156:                                                                                                  #  85DEGS        DEC     .45556          # P20-P25 SUNDANCE      (OCTAL 16450)
052135,000157:    5071           17000        PRIO17             OCT      17000                                 
052136,000158:    5072           17770        OCT17770           OCT      17770                                 
052137,000159:                                                                                                  #  BIT14         OCT     20000
052138,000160:                                                                                                  #                OCT     20033           # T4RUPT        RELTAB +3D
052139,000161:    5073           21000        PRIO21             OCT      21000                                 
052140,000162:    7657                                           BLOCK    03                                    
052141,000163:    7657                                           COUNT    03/FCONS                              
052142,000164: 
052143,000165:    7657           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
052144,000166:    7660           23000        PRIO23             OCT      23000                                 
052145,000167:    7661           24000        PRIO24             OCT      24000                                 
052146,000168:                                                                                                  #  5/8+1         OCT     24001           # SINGLE PRECISION SUBROUTINES
052147,000169:                                                                                                  #                OCT     24017           # T4RUPT        RELTAB +4D
052148,000170:    7662           25000        PRIO25             OCT      25000                                 
052149,000171:    7663           26000        PRIO26             OCT      26000                                 
052150,000172:    7664           27000        PRIO27             OCT      27000                                 
052151,000173:                                                                                                  #  CHRPRIO       OCT     30000           # PINBALL
052152,000174:                                                                                                  #                OCT     30036           # T4RUPT        RELTAB +5D
052153,000175:    7665           31000        PRIO31             OCT      31000                                 
052154,000176:    7666           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
052155,000177:    7667           32000        PRIO32             OCT      32000                                 
052156,000178:    7670           33000        PRIO33             OCT      33000                                 
052157,000179:    7671           34000        PRIO34             OCT      34000                                 
052158,000180:                                                                                                  #                OCT     34034           # T4RUPT        RELTAB +6D              
052159,000181:    7672           35000        PRIO35             OCT      35000                                 
052160,000182:    7673           36000        PRIO36             OCT      36000                                 

Page 1203

052162,000184:    7674           37000        PRIO37             OCT      37000                                 
052163,000185:    7675           37401        63/64+1            OCT      37401                                 
052164,000186:                                                                                                  #  MID7          OCT     37600           # PINBALL
052165,000187:    7676           37766        OCT37766           OCT      37766                                 
052166,000188:    7677           37774        OCT37774           OCT      37774                                 
052167,000189:    7700           37776        OCT37776           OCT      37776                                 
052168,000190:                                                                                                  #  DPOSMAX       OCT     37777
052169,000191:                                                                                                  #  BIT15         OCT     40000
052170,000192:                                                                                                  #  OCT40001      OCT     40001           # INTERPRETER (CS 1 INSTRUCTION)
052171,000193:    7701           40014        DLOADCOD           OCT      40014                                 
052172,000194:    7702           40015        DLOAD*             OCT      40015                                 
052173,000195:                                                                                                  #                OCT     40023           # T4RUPT        RELTAB +7D
052174,000196:    7703           40040        BIT15+6            OCT      40040                                 
052175,000197:    7704           40200        OCT40200           OCT      40200                                 
052176,000198:                                                                                                  #                OCT     44035           # T4RUPT        RELTAB +8D
052177,000199:                                                                                                  #                OCT     50037           # T4RUPT        RELTAB +9D
052178,000200:                                                                                                  #                OCT     54000           # T4RUPT        RELTAB +10D
052179,000201:    7705           57777        -BIT14             OCT      57777                                 
052180,000202:                                                                                                  #  RELTAB11      OCT     60000           # T4RUPT
052181,000203:    7706           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
052182,000204:    7707           70000        13,14,15           OCT      70000                                 
052183,000205:    7710           73777        -1/8               OCT      73777                                 
052184,000206:    7711           74000        HIGH4              OCT      74000                                 
052185,000207:    7712           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
052186,000208:                                                                                                  #  HI5           OCT     76000           # PINBALL
052187,000209:    7713           77700        HIGH9              OCT      77700                                 
052188,000210:                                                                                                  #  -ENDVAC       DEC     -45             # INTERPRETER           (OCTAL 77722)
052189,000211:                                                                                                  #  -OCT10        OCT     -10             #                       (OCTAL 77767)
052190,000212:                                                                                                  #  NEG4          DEC     -4              #                       (OCTAL 77773)
052191,000213:    7714           77774        NEG3               DEC      -3         B-14                       
052192,000214:    7715           77775        NEG2               OCT      77775                                 
052193,000215:    7716           77776        NEGONE             DEC      -1         B-14                       
052194,000216: 

Page 1204

052196,000218: 
052197,000219:                                                                                                  #  DEFINED BY EQUALS
052198,000220: 
052199,000221:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
052200,000222:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
052201,000223: 
052202,000224:    7717     7716               MINUS1             =        NEG1                                  
052203,000225:    7717     7716               NEG1               =        NEGONE                                
052204,000226:    7717     5017               ONE                =        BIT1                                  
052205,000227:    7717     5016               TWO                =        BIT2                                  
052206,000228:    7717     6214               THREE              =        OCTAL3                                
052207,000229:    7717     6214               LOW2               =        THREE                                 
052208,000230:    7717     5015               FOUR               =        BIT3                                  
052209,000231:    7717     6211               SIX                =        REVCNT                                
052210,000232:    7717     5023               LOW3               =        SEVEN                                 
052211,000233:    7717     5014               EIGHT              =        BIT4                                  
052212,000234:    7717     4334               NINE               =        R2D1                                  
052213,000235:    7717     4377               TEN                =        BINCON                                
052214,000236:    7717     5024               NOUTCON            =        ELEVEN                                
052215,000237:    7717     4374               OCT23              =        VD1                                   
052216,000238:    7717     4376               OCT25              =        MD1                                   
052217,000239:    7717     5006               PRIO1              =        BIT10                                 
052218,000240:    7717     5051               EBANK3             =        OCT1400                               
052219,000241:    7717     5005               PRIO2              =        BIT11                                 
052220,000242:    7717     5037               OCT120             =        SUPER101                              
052221,000243:    7717     5040               OCT140             =        SUPER110                              
052222,000244:    7717     5005               2K                 =        BIT11                                 
052223,000245:    7717     5005               EBANK4             =        BIT11                                 
052224,000246:    7717     5004               PRIO4              =        BIT12                                 
052225,000247:    7717     5057               EBANK6             =        PRIO3                                 
052226,000248:    7717     5003               QUARTER            =        BIT13                                 
052227,000249:    7717     5003               PRIO10             =        BIT13                                 
052228,000250:    7717     7632               OCT10001           =        CCSL                                  
052229,000251:    7717     5002               POS1/2             =        HALF                                  
052230,000252:    7717     5002               PRIO20             =        BIT14                                 
052231,000253:    7717     5002               HALF               =        BIT14                                 
052232,000254:    7717     4371               PRIO30             =        CHRPRIO                               
052233,000255:    7717     4371               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
052234,000256:    7717     6440               OCT30002           =        TLOAD      +1                         
052235,000257:    7717     7671               B12T14             =        PRIO34                                
052236,000258:    7717     5001               NEGMAX             =        BIT15                                 
052237,000259:    7717     5001               VLOADCOD           =        BIT15                                 
052238,000260:    7717     6056               VLOAD*             =        OCT40001                              
052239,000261:    7717     4105               OCT60000           =        RELTAB11                              
052240,000262:    7717     4364               BANKMASK           =        HI5                                   
052241,000263: 

End of include-file FIXED_FIXED_CONSTANT_POOL.agc.  Parent file is MAIN.agc