Source Code

These source-code files were derived originally from the scan from MIT's Dibner Institute's now-discontinued website titled "History of Recent Science and Technology", which in turn was originally created by Gary Neff, though his high-quality scans were unfortunately reduced in legibility when presented online. The markings on the front of the printout imply that it was the original AGC developer Norm Brodeur's copy. A scan by Ron Burkey has superceded it, made from a more-legible copy from the collection of original AGC developer Fred Martin. The source code was transcribed from those images by Ron Burkey. 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:

	ASSEMBLE REVISION 249 OF AGC PROGRAM COLOSSUS BY NASA 2021111-041
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

050635,000002:                                                                                                  ## Copyright:   Public domain.
050636,000003:                                                                                                  ## Filename:    FIXED_FIXED_CONSTANT_POOL.agc
050637,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus, build 249.
050638,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
050639,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), possibly for Apollo 8 and 9.
050640,000007:                                                                                                  ## Assembler:   yaYUL
050641,000008:                                                                                                  ## Reference:   pp. 1182-1186 of 1701.pdf.
050642,000009:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
050643,000010:                                                                                                  ## Mod history: 04/27/03 RSB.   Adapted from the Luminary131 file with the 
050644,000011:                                                                                                  ##                              same name.  The changes were highly trivial
050645,000012:                                                                                                  ##                              in nature:
050646,000013:                                                                                                  ##                              1.  A small number of constants were removed.
050647,000014:                                                                                                  ##                              2.  The names of the COUNT* counters were
050648,000015:                                                                                                  ##                                  changed.  
050649,000016:                                                                                                  ##                              3.  Comments (such as pagination and header
050650,000017:                                                                                                  ##                                  materials) were changed.
050651,000018:                                                                                                  ##                              No constants changed value, to my knowledge.
050652,000019:                                                                                                  ##
050653,000020:                                                                                                  ## The contents of the "Colossus249" files, in general, are transcribed 
050654,000021:                                                                                                  ## from a scanned document obtained from MIT's website,
050655,000022:                                                                                                  ## http://hrst.mit.edu/hrs/apollo/public/archive/1701.pdf.  Notations on this
050656,000023:                                                                                                  ## document read, in part:
050657,000024:                                                                                                  ##
050658,000025:                                                                                                  ##      Assemble revision 249 of AGC program Colossus by NASA
050659,000026:                                                                                                  ##      2021111-041.  October 28, 1968.  
050660,000027:                                                                                                  ##
050661,000028:                                                                                                  ##      This AGC program shall also be referred to as
050662,000029:                                                                                                  ##                              Colossus 1A
050663,000030:                                                                                                  ##
050664,000031:                                                                                                  ##      Prepared by
050665,000032:                                                                                                  ##                      Massachusetts Institute of Technology
050666,000033:                                                                                                  ##                      75 Cambridge Parkway
050667,000034:                                                                                                  ##                      Cambridge, Massachusetts
050668,000035:                                                                                                  ##      under NASA contract NAS 9-4065.
050669,000036:                                                                                                  ##
050670,000037:                                                                                                  ## Refer directly to the online document mentioned above for further information.
050671,000038:                                                                                                  ## Please report any errors (relative to 1701.pdf) to info@sandroid.org.
050672,000039: 

Page 1182

050674,000041:    4671                                           BLOCK    02                                    
050675,000042:    4671                                           COUNT*   02/FCONS                              
050676,000043: 
050677,000044:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES
050678,000045: 
050679,000046:    4671           37777        DPOSMAX            OCT      37777                                 #  MUST PRECED POSMAX
050680,000047:    4672           37777        POSMAX             OCT      37777                                 
050681,000048: 
050682,000049:    4673     4673               LIMITS             =        NEG1/2                                
050683,000050: 
050684,000051:    4673           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
050685,000052:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
050686,000053: 
050687,000054:                                                                                                  #  BIT TABLE                                     
050688,000055: 
050689,000056:    4674           40000        BIT15              OCT      40000                                 
050690,000057:    4675           20000        BIT14              OCT      20000                                 
050691,000058:    4676           10000        BIT13              OCT      10000                                 
050692,000059:    4677           04000        BIT12              OCT      04000                                 
050693,000060:    4700           02000        BIT11              OCT      02000                                 
050694,000061:    4701           01000        BIT10              OCT      01000                                 
050695,000062:    4702           00400        BIT9               OCT      00400                                 
050696,000063:    4703           00200        BIT8               OCT      00200                                 
050697,000064:    4704           00100        BIT7               OCT      00100                                 
050698,000065:    4705           00040        BIT6               OCT      00040                                 
050699,000066:    4706           00020        BIT5               OCT      00020                                 
050700,000067:    4707           00010        BIT4               OCT      00010                                 
050701,000068:    4710           00004        BIT3               OCT      00004                                 
050702,000069:    4711           00002        BIT2               OCT      00002                                 
050703,000070:    4712           00001        BIT1               OCT      00001                                 
050704,000071: 
050705,000072:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
050706,000073:    4713           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
050707,000074:    4714           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
050708,000075:                                                                                                  #  BIT1          OCT     00001
050709,000076:                                                                                                  #  NO.WDS        OCT     2               # INTERPRETER
050710,000077:                                                                                                  #  OCTAL3        OCT     3               # INTERPRETER
050711,000078:                                                                                                  #  R3D1          OCT     4               # PINBALL
050712,000079:    4715           00005        FIVE               OCT      5                                     
050713,000080:                                                                                                  #  REVCNT        OCT     6               # INTERPRETER
050714,000081:    4716           00007        SEVEN              OCT      7                                     
050715,000082:                                                                                                  #  BIT4          OCT     00010
050716,000083:                                                                                                  #  R2D1          OCT     11              # PINBALL
050717,000084:    4717     4334               OCT11              =        R2D1                                  #  P20S
050718,000085:                                                                                                  #  BINCON        DEC     10              # PINBALL               (OCTAL 12)
050719,000086:    4717           00013        ELEVEN             DEC      11         B-14                       
050720,000087:                                                                                                  #  OCT14         OCT     14              # ALARM AND ABORT (FILLER)
050721,000088:    4720           00015        OCT15              OCT      15                                    
050722,000089:                                                                                                  #  R1D1          OCT     16              # PINBALL

Page 1183

050724,000091:    4721           00017        LOW4               OCT      17                                    
050725,000092:                                                                                                  #  BIT5          OCT     00020
050726,000093:                                                                                                  #  ND1           OCT     21              # PINBALL
050727,000094:                                                                                                  #  VD1           OCT     23              # PINBALL
050728,000095:                                                                                                  #  OCT24         OCT     24              # SERVICE ROUTINES
050729,000096:                                                                                                  #  MD1           OCT     25              # PINBALL
050730,000097:    4722           00030        BITS4&5            OCT      30                                    
050731,000098:                                                                                                  #  OCT31         OCT     31              # SERVICE ROUTINES
050732,000099:    4723           00032        CALLCODE           OCT      00032                                 
050733,000100:                                                                                                  #  LOW5          OCT     37              # PINBALL
050734,000101:                                                                                                  #  33DEC         DEC     33              # PINBALL               (OCTAL 41)
050735,000102:                                                                                                  #  34DEC         DEC     34              # PINBALL               (OCTAL 42)
050736,000103:    4724           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVENIENCE IN DAPTESTING
050737,000104:    4725           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
050738,000105:                                                                                                  #  BIT6          OCT     00040
050739,000106:    4726           00050        OCT50              OCT      50                                    
050740,000107:    4727           00055        DEC45              DEC      45         B-14                       
050741,000108:    4730           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
050742,000109:    4731           00062        .5SEC              DEC      50         B-14                       
050743,000110:                                                                                                  #  BIT7          OCT     00100
050744,000111: 
050745,000112:    4732     4704               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
050746,000113:                                                                                                  #  (LAST 4K OF ROPE)
050747,000114:    4732           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
050748,000115:                                                                                                  #  OCT121        OCT     121             # SERVICE ROUTINES
050749,000116:                                                                                                  #  (FIRST 8K OF ACM)
050750,000117:    4733           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
050751,000118:                                                                                                  #  (LAST BK OF ACM)
050752,000119:    4734           00144        1SEC               DEC      100        B-14                       
050753,000120:                                                                                                  #  LOW7          OCT     177             # INTERPRETER
050754,000121:                                                                                                  #  BIT8          OCT     00200
050755,000122:                                                                                                  #  OT215         OCT     215             # ALARM AND ABORT
050756,000123:                                                                                                  #  8,5           OCT     00220           # P20-P25 SUNDANCE
050757,000124:    4735           00310        2SECS              DEC      200        B-14                       
050758,000125:                                                                                                  #  LOW8          OCT     377             # PINBALL
050759,000126:                                                                                                  #  BIT9          OCT     00400
050760,000127:    4736           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
050761,000128:    4737           00454        3SECS              DEC      300        B-14                       
050762,000129:    4740           00620        4SECS              DEC      400        B-14                       
050763,000130:    4741           00777        LOW9               OCT      777                                   
050764,000131:                                                                                                  #  BIT10         OCT     01000
050765,000132:                                                                                                  #  5.5DEGS       DEC     .03056          # P20-P25 SUNDANCE      (OCTAL 00765)
050766,000133:                                                                                                  #  OCT1103       OCT     1103            # ALARM AND ABORT
050767,000134:    4742           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
050768,000135:    4743           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
050769,000136:    4744           01400        OCT1400            OCT      01400                                 
050770,000137:    4745           01426        V06N22             VN       0622                                  
050771,000138:                                                                                                  #  MID5          OCT     1740            # PINBALL
050772,000139:    4746           01776        BITS2-10           OCT      1776                                  
050773,000140:    4747           01777        LOW10              OCT      1777                                  

Page 1184

050775,000142:                                                                                                  #  BIT11         OCT     02000
050776,000143:                                                                                                  #  2K+3          OCT     2003            # PINBALL
050777,000144:    4750           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING
050778,000145:    4751           02400        EBANK5             OCT      02400                                 
050779,000146:    4752           03000        PRIO3              OCT      03000                                 
050780,000147:    4753           03400        EBANK7             OCT      03400                                 
050781,000148:                                                                                                  #  LOW11         OCT     3777            # PINBALL
050782,000149:                                                                                                  #  BIT12         OCT     04000
050783,000150:                                                                                                  #  RELTAB        OCT     04025           # T4RUPT
050784,000151:    4754           05000        PRIO5              OCT      05000                                 
050785,000152:    4755           06000        PRIO6              OCT      06000                                 
050786,000153:    4756           07000        PRIO7              OCT      07000                                 
050787,000154: 
050788,000155:                                                                                                  #  BIT13         OCT     10000
050789,000156:                                                                                                  #                OCT     10003           # T4RUPT        RELTAB +1D
050790,000157:                                                                                                  #  13,7,2        OCT     10102           # P20-P25 SUNDANCE
050791,000158:    4757           11000        PRIO11             OCT      11000                                 
050792,000159:                                                                                                  #  PRIO12        OCT     12000           # BANKCALL
050793,000160:    4760           13000        PRIO13             OCT      13000                                 
050794,000161:    4761           14000        PRIO14             OCT      14000                                 
050795,000162:                                                                                                  #                OCT     14031           # T4RUPT        RELTAB +2D
050796,000163:    4762           15000        PRIO15             OCT      15000                                 
050797,000164:    4763           16000        PRIO16             OCT      16000                                 
050798,000165:                                                                                                  #  85DEGS        DEC     .45556          # P20-P25 SUNDANCE      (OCTAL 16450)
050799,000166:    4764           17000        PRIO17             OCT      17000                                 
050800,000167:    4765           17770        OCT17770           OCT      17770                                 
050801,000168:                                                                                                  #  BIT14         OCT     20000
050802,000169:                                                                                                  #                OCT     20033           # T4RUPT        RELTAB +3D
050803,000170:    4766           21000        PRIO21             OCT      21000                                 
050804,000171: 
050805,000172:    7657                                           BLOCK    03                                    
050806,000173:    7657                                           COUNT*   03/FCONS                              
050807,000174: 
050808,000175:    7657           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
050809,000176:    7660           23000        PRIO23             OCT      23000                                 
050810,000177:    7661           24000        PRIO24             OCT      24000                                 
050811,000178:                                                                                                  #  5/8+1         OCT     24001           # SINGLE PRECISION SUBROUTINES
050812,000179:                                                                                                  #                OCT     24017           # T4RUPT        RELTAB +4D
050813,000180:    7662           25000        PRIO25             OCT      25000                                 
050814,000181:    7663           26000        PRIO26             OCT      26000                                 
050815,000182:    7664           27000        PRIO27             OCT      27000                                 
050816,000183:                                                                                                  #  CHRPRIO       OCT     30000           # PINBALL
050817,000184:                                                                                                  #                OCT     30036           # T4RUPT        RELTAB +5D
050818,000185:    7665           31000        PRIO31             OCT      31000                                 
050819,000186:    7666           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
050820,000187:    7667           32000        PRIO32             OCT      32000                                 
050821,000188:    7670           33000        PRIO33             OCT      33000                                 
050822,000189:    7671           34000        PRIO34             OCT      34000                                 
050823,000190:                                                                                                  #                OCT     34034           # T4RUPT        RELTAB +6D              
050824,000191:    7672           35000        PRIO35             OCT      35000                                 
050825,000192:    7673           36000        PRIO36             OCT      36000                                 

Page 1185

050827,000194:    7674           37000        PRIO37             OCT      37000                                 
050828,000195:    7675           37401        63/64+1            OCT      37401                                 
050829,000196:                                                                                                  #  MID7          OCT     37600           # PINBALL
050830,000197:    7676           37766        OCT37766           OCT      37766                                 
050831,000198:    7677           37774        OCT37774           OCT      37774                                 
050832,000199:    7700           37776        OCT37776           OCT      37776                                 
050833,000200:                                                                                                  #  DPOSMAX       OCT     37777
050834,000201:                                                                                                  #  BIT15         OCT     40000
050835,000202:                                                                                                  #  OCT40001      OCT     40001           # INTERPRETER (CS 1 INSTRUCTION)
050836,000203:    7701           40014        DLOADCOD           OCT      40014                                 
050837,000204:    7702           40015        DLOAD*             OCT      40015                                 
050838,000205:                                                                                                  #                OCT     40023           # T4RUPT        RELTAB +7D
050839,000206:    7703           40040        BIT15+6            OCT      40040                                 
050840,000207:    7704           40200        OCT40200           OCT      40200                                 
050841,000208:                                                                                                  #                OCT     44035           # T4RUPT        RELTAB +8D
050842,000209:                                                                                                  #                OCT     50037           # T4RUPT        RELTAB +9D
050843,000210:                                                                                                  #                OCT     54000           # T4RUPT        RELTAB +10D
050844,000211:    7705           57777        -BIT14             OCT      57777                                 
050845,000212:                                                                                                  #  RELTAB11      OCT     60000           # T4RUPT
050846,000213:    7706           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
050847,000214:    7707           70000        13,14,15           OCT      70000                                 
050848,000215:    7710           73777        -1/8               OCT      73777                                 
050849,000216:    7711           74000        HIGH4              OCT      74000                                 
050850,000217:    7712           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
050851,000218:                                                                                                  #  HI5           OCT     76000           # PINBALL
050852,000219:    7713           77700        HIGH9              OCT      77700                                 
050853,000220:                                                                                                  #  -ENDVAC       DEC     -45             # INTERPRETER           (OCTAL 77722)
050854,000221:                                                                                                  #  -OCT10        OCT     -10             #                       (OCTAL 77767)
050855,000222:                                                                                                  #  NEG4          DEC     -4              #                       (OCTAL 77773)
050856,000223:    7714           77774        NEG3               DEC      -3         B-14                       
050857,000224:    7715           77775        NEG2               OCT      77775                                 
050858,000225:    7716           77776        NEGONE             DEC      -1         B-14                       
050859,000226: 

Page 1186

050861,000228: 
050862,000229:                                                                                                  #  DEFINED BY EQUALS
050863,000230: 
050864,000231:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
050865,000232:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
050866,000233: 
050867,000234:    7717     7716               MINUS1             =        NEG1                                  
050868,000235:    7717     7716               NEG1               =        NEGONE                                
050869,000236:    7717     4712               ONE                =        BIT1                                  
050870,000237:    7717     4711               TWO                =        BIT2                                  
050871,000238:    7717     6214               THREE              =        OCTAL3                                
050872,000239:    7717     6214               LOW2               =        THREE                                 
050873,000240:    7717     4710               FOUR               =        BIT3                                  
050874,000241:    7717     6211               SIX                =        REVCNT                                
050875,000242:    7717     4716               LOW3               =        SEVEN                                 
050876,000243:    7717     4707               EIGHT              =        BIT4                                  
050877,000244:    7717     4334               NINE               =        R2D1                                  
050878,000245:    7717     4377               TEN                =        BINCON                                
050879,000246:    7717     4717               NOUTCON            =        ELEVEN                                
050880,000247:    7717     4374               OCT23              =        VD1                                   
050881,000248:    7717     4376               OCT25              =        MD1                                   
050882,000249:    7717     4701               PRIO1              =        BIT10                                 
050883,000250:    7717     4744               EBANK3             =        OCT1400                               
050884,000251:    7717     4700               PRIO2              =        BIT11                                 
050885,000252:    7717     4732               OCT120             =        SUPER101                              
050886,000253:    7717     4733               OCT140             =        SUPER110                              
050887,000254:    7717     4700               2K                 =        BIT11                                 
050888,000255:    7717     4700               EBANK4             =        BIT11                                 
050889,000256:    7717     4677               PRIO4              =        BIT12                                 
050890,000257:    7717     4752               EBANK6             =        PRIO3                                 
050891,000258:    7717     4676               QUARTER            =        BIT13                                 
050892,000259:    7717     4676               PRIO10             =        BIT13                                 
050893,000260:    7717     7632               OCT10001           =        CCSL                                  
050894,000261:    7717     4675               POS1/2             =        HALF                                  
050895,000262:    7717     4675               PRIO20             =        BIT14                                 
050896,000263:    7717     4675               HALF               =        BIT14                                 
050897,000264:    7717     4371               PRIO30             =        CHRPRIO                               
050898,000265:    7717     4371               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
050899,000266:    7717     6440               OCT30002           =        TLOAD      +1                         
050900,000267:    7717     7671               B12T14             =        PRIO34                                
050901,000268:    7717     4674               NEGMAX             =        BIT15                                 
050902,000269:    7717     4674               VLOADCOD           =        BIT15                                 
050903,000270:    7717     6056               VLOAD*             =        OCT40001                              
050904,000271:    7717     4105               OCT60000           =        RELTAB11                              
050905,000272:    7717     4364               BANKMASK           =        HI5                                   
050906,000273: 

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