Source Code

These source-code files are part of a reconstructed copy of Comanche 051, the original release of the Apollo 11 Command Module (CM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Comanche 055 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes related to the R-2 lunar potential model, using hints from program comments and change-indicating asterisks in the Comanche 055 listing as a guide. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021153D. Note that page numbers in the reconstructed code match those on the Comanche 055 printout, although the added code would likely have changed page numbers for a real Comanche 051 listing.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

051027,000002:                                                                                                  ## Copyright:   Public domain.
051028,000003:                                                                                                  ## Filename:    FIXED-FIXED_CONSTANT_POOL.agc
051029,000004:                                                                                                  ## Purpose:     A section of Comanche revision 051.
051030,000005:                                                                                                  ##              It is part of the reconstructed source code for the
051031,000006:                                                                                                  ##              original release of the flight software for the Command
051032,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 11.
051033,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
051034,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
051035,000010:                                                                                                  ##              exactly match those specified for Comanche 51 in NASA drawing
051036,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
051037,000012:                                                                                                  ##              reconstruction is correct.
051038,000013:                                                                                                  ## Reference:   pp. 1200-1204
051039,000014:                                                                                                  ## Assembler:   yaYUL
051040,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
051041,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
051042,000017:                                                                                                  ## Mod history: 2019-07-30 MAS  Created from Comanche 55.
051043,000018: 

Page 1200

051045,000020:    4776                                           BLOCK    02                                    
051046,000021:    4776                                           COUNT    02/FCONS                              
051047,000022: 
051048,000023:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES.
051049,000024: 
051050,000025:    4776           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
051051,000026:    4777           37777        POSMAX             OCT      37777                                 
051052,000027: 
051053,000028:    5000     5000               LIMITS             =        NEG1/2                                
051054,000029: 
051055,000030:    5000           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
051056,000031:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
051057,000032: 
051058,000033:                                                                                                  #  BIT TABLE                                     
051059,000034: 
051060,000035:    5001           40000        BIT15              OCT      40000                                 
051061,000036:    5002           20000        BIT14              OCT      20000                                 
051062,000037:    5003           10000        BIT13              OCT      10000                                 
051063,000038:    5004           04000        BIT12              OCT      04000                                 
051064,000039:    5005           02000        BIT11              OCT      02000                                 
051065,000040:    5006           01000        BIT10              OCT      01000                                 
051066,000041:    5007           00400        BIT9               OCT      00400                                 
051067,000042:    5010           00200        BIT8               OCT      00200                                 
051068,000043:    5011           00100        BIT7               OCT      00100                                 
051069,000044:    5012           00040        BIT6               OCT      00040                                 
051070,000045:    5013           00020        BIT5               OCT      00020                                 
051071,000046:    5014           00010        BIT4               OCT      00010                                 
051072,000047:    5015           00004        BIT3               OCT      00004                                 
051073,000048:    5016           00002        BIT2               OCT      00002                                 
051074,000049:    5017           00001        BIT1               OCT      00001                                 
051075,000050: 
051076,000051:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
051077,000052:    5020           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
051078,000053:    5021           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
051079,000054:                                                                                                  #  BIT1          OCT     00001
051080,000055:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
051081,000056:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
051082,000057:                                                                                                  #  R3D1          OCT     4               PINBALL
051083,000058:    5022           00005        FIVE               OCT      5                                     
051084,000059:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
051085,000060:    5023           00007        SEVEN              OCT      7                                     
051086,000061:                                                                                                  #  BIT4          OCT     00010
051087,000062:                                                                                                  #  R2D1          OCT     11              PINBALL
051088,000063:    5024     4334               OCT11              =        R2D1                                  #  P20S
051089,000064:                                                                                                  #  BINCON        DEC     10              PINBALL         (OCTAL 12)
051090,000065:    5024           00013        ELEVEN             DEC      11         B-14                       
051091,000066:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
051092,000067:    5025           00015        OCT15              OCT      15                                    
051093,000068:                                                                                                  #  R1D1          OCT     16              PINBALL

Page 1201

051095,000070:    5026           00017        LOW4               OCT      17                                    
051096,000071:                                                                                                  #  BIT5          OCT     00020
051097,000072:                                                                                                  #  ND1           OCT     21              PINBALL
051098,000073:                                                                                                  #  VD1           OCT     23              PINBALL
051099,000074:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
051100,000075:                                                                                                  #  MD1           OCT     25              PINBALL
051101,000076:    5027           00030        BITS4&5            OCT      30                                    
051102,000077:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
051103,000078:    5030           00032        CALLCODE           OCT      00032                                 
051104,000079:                                                                                                  #  LOW5          OCT     37              PINBALL
051105,000080:                                                                                                  #  33DEC         DEC     33              PINBALL         (OCTAL 41)
051106,000081:                                                                                                  #  34DEC         DEC     34              PINBALL         (OCTAL 42)
051107,000082:    5031           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
051108,000083:    5032           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
051109,000084:                                                                                                  #  BIT6          OCT     00040
051110,000085:    5033           00050        OCT50              OCT      50                                    
051111,000086:    5034           00055        DEC45              DEC      45         B-14                       
051112,000087:    5035           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
051113,000088:    5036           00062        .5SEC              DEC      50         B-14                       
051114,000089:                                                                                                  #  BIT7          OCT     00100
051115,000090: 
051116,000091:    5037     5011               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
051117,000092:                                                                                                  #  (LAST 4K OF ROPE)
051118,000093:    5037           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
051119,000094:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
051120,000095:                                                                                                  #  (FIRST 8K OF ACM)
051121,000096:    5040           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
051122,000097:                                                                                                  #  (LAST 8K OF ACM)
051123,000098:    5041           00144        1SEC               DEC      100        B-14                       
051124,000099:                                                                                                  #  LOW7          OCT     177             INTERPRETER
051125,000100:                                                                                                  #  BIT8          OCT     00200
051126,000101:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
051127,000102:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
051128,000103:    5042           00310        2SECS              DEC      200        B-14                       
051129,000104:                                                                                                  #  LOW8          OCT     377             PINBALL
051130,000105:                                                                                                  #  BIT9          OCT     00400
051131,000106:    5043           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
051132,000107:    5044           00454        3SECS              DEC      300        B-14                       
051133,000108:    5045           00620        4SECS              DEC      400        B-14                       
051134,000109:    5046           00777        LOW9               OCT      777                                   
051135,000110:                                                                                                  #  BIT10         OCT     01000
051136,000111:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE        (OCTAL 00765)
051137,000112:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
051138,000113:    5047           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
051139,000114:    5050           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
051140,000115:    5051           01400        OCT1400            OCT      01400                                 
051141,000116:    5052           01426        V06N22             VN       0622                                  
051142,000117:                                                                                                  #  MID5          OCT     1740            PINBALL
051143,000118:    5053           01776        BITS2-10           OCT      1776                                  
051144,000119:    5054           01777        LOW10              OCT      1777                                  

Page 1202

051146,000121:                                                                                                  #  BIT11         OCT     02000
051147,000122:                                                                                                  #  2K+3          OCT     2003            PINBALL
051148,000123:    5055           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
051149,000124:    5056           02400        EBANK5             OCT      02400                                 
051150,000125:    5057           03000        PRIO3              OCT      03000                                 
051151,000126:    5060           03400        EBANK7             OCT      03400                                 
051152,000127:                                                                                                  #  LOW11         OCT     3777            PINBALL
051153,000128:                                                                                                  #  BIT12         OCT     04000
051154,000129:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
051155,000130:    5061           05000        PRIO5              OCT      05000                                 
051156,000131:    5062           06000        PRIO6              OCT      06000                                 
051157,000132:    5063           07000        PRIO7              OCT      07000                                 
051158,000133: 
051159,000134:                                                                                                  #  BIT13         OCT     10000
051160,000135:                                                                                                  #                OCT     10003           T4RUPT  RELTAB +1D
051161,000136:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
051162,000137:    5064           11000        PRIO11             OCT      11000                                 
051163,000138:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
051164,000139:    5065           13000        PRIO13             OCT      13000                                 
051165,000140:    5066           14000        PRIO14             OCT      14000                                 
051166,000141:                                                                                                  #                OCT     14031           T4RUPT  RELTAB +2D
051167,000142:    5067           15000        PRIO15             OCT      15000                                 
051168,000143:    5070           16000        PRIO16             OCT      16000                                 
051169,000144:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE        (OCTAL 16450)
051170,000145:    5071           17000        PRIO17             OCT      17000                                 
051171,000146:    5072           17770        OCT17770           OCT      17770                                 
051172,000147:                                                                                                  #  BIT14         OCT     20000
051173,000148:                                                                                                  #                OCT     20033           T4RUPT  RELTAB +3D
051174,000149:    5073           21000        PRIO21             OCT      21000                                 
051175,000150:    7657                                           BLOCK    03                                    
051176,000151:    7657                                           COUNT    03/FCONS                              
051177,000152: 
051178,000153:    7657           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
051179,000154:    7660           23000        PRIO23             OCT      23000                                 
051180,000155:    7661           24000        PRIO24             OCT      24000                                 
051181,000156:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
051182,000157:                                                                                                  #                OCT     24017           T4RUPT  RELTAB +4D
051183,000158:    7662           25000        PRIO25             OCT      25000                                 
051184,000159:    7663           26000        PRIO26             OCT      26000                                 
051185,000160:    7664           27000        PRIO27             OCT      27000                                 
051186,000161:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
051187,000162:                                                                                                  #                OCT     30036           T4RUPT  RELTAB +5D
051188,000163:    7665           31000        PRIO31             OCT      31000                                 
051189,000164:    7666           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
051190,000165:    7667           32000        PRIO32             OCT      32000                                 
051191,000166:    7670           33000        PRIO33             OCT      33000                                 
051192,000167:    7671           34000        PRIO34             OCT      34000                                 
051193,000168:                                                                                                  #                OCT     34034           T4RUPT  RELTAB +6D              
051194,000169:    7672           35000        PRIO35             OCT      35000                                 
051195,000170:    7673           36000        PRIO36             OCT      36000                                 

Page 1203

051197,000172:    7674           37000        PRIO37             OCT      37000                                 
051198,000173:    7675           37401        63/64+1            OCT      37401                                 
051199,000174:                                                                                                  #  MID7          OCT     37600           PINBALL
051200,000175:    7676           37766        OCT37766           OCT      37766                                 
051201,000176:    7677           37774        OCT37774           OCT      37774                                 
051202,000177:    7700           37776        OCT37776           OCT      37776                                 
051203,000178:                                                                                                  #  DPOSMAX       OCT     37777
051204,000179:                                                                                                  #  BIT15         OCT     40000
051205,000180:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER (CS 1 INSTRUCTION)
051206,000181:    7701           40014        DLOADCOD           OCT      40014                                 
051207,000182:    7702           40015        DLOAD*             OCT      40015                                 
051208,000183:                                                                                                  #                OCT     40023           T4RUPT  RELTAB +7D
051209,000184:    7703           40040        BIT15+6            OCT      40040                                 
051210,000185:    7704           40200        OCT40200           OCT      40200                                 
051211,000186:                                                                                                  #                OCT     44035           T4RUPT  RELTAB +8D
051212,000187:                                                                                                  #                OCT     50037           T4RUPT  RELTAB +9D
051213,000188:                                                                                                  #                OCT     54000           T4RUPT  RELTAB +10D
051214,000189:    7705           57777        -BIT14             OCT      57777                                 
051215,000190:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
051216,000191:    7706           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
051217,000192:    7707           70000        13,14,15           OCT      70000                                 
051218,000193:    7710           73777        -1/8               OCT      73777                                 
051219,000194:    7711           74000        HIGH4              OCT      74000                                 
051220,000195:    7712           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
051221,000196:                                                                                                  #  HI5           OCT     76000           PINBALL
051222,000197:    7713           77700        HIGH9              OCT      77700                                 
051223,000198:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER             (OCTAL 77722)
051224,000199:                                                                                                  #  -OCT10        OCT     -10                                      (OCT 77767)
051225,000200:                                                                                                  #  NEG4          DEC     -4                                      (OCTAL 77773)
051226,000201:    7714           77774        NEG3               DEC      -3         B-14                       
051227,000202:    7715           77775        NEG2               OCT      77775                                 
051228,000203:    7716           77776        NEGONE             DEC      -1         B-14                       
051229,000204: 

Page 1204

051231,000206: 
051232,000207:                                                                                                  #  DEFINED BY EQUALS
051233,000208: 
051234,000209:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
051235,000210:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
051236,000211: 
051237,000212:    7717     7716               MINUS1             =        NEG1                                  
051238,000213:    7717     7716               NEG1               =        NEGONE                                
051239,000214:    7717     5017               ONE                =        BIT1                                  
051240,000215:    7717     5016               TWO                =        BIT2                                  
051241,000216:    7717     6214               THREE              =        OCTAL3                                
051242,000217:    7717     6214               LOW2               =        THREE                                 
051243,000218:    7717     5015               FOUR               =        BIT3                                  
051244,000219:    7717     6211               SIX                =        REVCNT                                
051245,000220:    7717     5023               LOW3               =        SEVEN                                 
051246,000221:    7717     5014               EIGHT              =        BIT4                                  
051247,000222:    7717     4334               NINE               =        R2D1                                  
051248,000223:    7717     4377               TEN                =        BINCON                                
051249,000224:    7717     5024               NOUTCON            =        ELEVEN                                
051250,000225:    7717     4374               OCT23              =        VD1                                   
051251,000226:    7717     4376               OCT25              =        MD1                                   
051252,000227:    7717     5006               PRIO1              =        BIT10                                 
051253,000228:    7717     5051               EBANK3             =        OCT1400                               
051254,000229:    7717     5005               PRIO2              =        BIT11                                 
051255,000230:    7717     5037               OCT120             =        SUPER101                              
051256,000231:    7717     5040               OCT140             =        SUPER110                              
051257,000232:    7717     5005               2K                 =        BIT11                                 
051258,000233:    7717     5005               EBANK4             =        BIT11                                 
051259,000234:    7717     5004               PRIO4              =        BIT12                                 
051260,000235:    7717     5057               EBANK6             =        PRIO3                                 
051261,000236:    7717     5003               QUARTER            =        BIT13                                 
051262,000237:    7717     5003               PRIO10             =        BIT13                                 
051263,000238:    7717     7632               OCT10001           =        CCSL                                  
051264,000239:    7717     5002               POS1/2             =        HALF                                  
051265,000240:    7717     5002               PRIO20             =        BIT14                                 
051266,000241:    7717     5002               HALF               =        BIT14                                 
051267,000242:    7717     4371               PRIO30             =        CHRPRIO                               
051268,000243:    7717     4371               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
051269,000244:    7717     6440               OCT30002           =        TLOAD      +1                         
051270,000245:    7717     7671               B12T14             =        PRIO34                                
051271,000246:    7717     5001               NEGMAX             =        BIT15                                 
051272,000247:    7717     5001               VLOADCOD           =        BIT15                                 
051273,000248:    7717     6056               VLOAD*             =        OCT40001                              
051274,000249:    7717     4105               OCT60000           =        RELTAB11                              
051275,000250:    7717     4364               BANKMASK           =        HI5                                   
051276,000251: 

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