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 Luminary 131 (Apollo 13) 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 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	16:27 JULY 14,1969
Note that the date is the date of the printout, not the date of the program revision.

046813,000002:                                                                                                  ## Copyright:   Public domain.
046814,000003:                                                                                                  ## Filename:    FIXED_FIXED_CONSTANT_POOL.agc
046815,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
046816,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
046817,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
046818,000007:                                                                                                  ## Assembler:   yaYUL
046819,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
046820,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
046821,000010:                                                                                                  ## Pages:       1095-1099
046822,000011:                                                                                                  ## Mod history: 2009-05-25 RSB  Adapted from the corresponding 
046823,000012:                                                                                                  ##                              Luminary131 file, using page 
046824,000013:                                                                                                  ##                              images from Luminary 1A.
046825,000014:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
046826,000015:                                                                                                  ##                              and corrected the errors found.
046827,000016:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
046828,000017:                                                                                                  ##
046829,000018:                                                                                                  ## This source code has been transcribed or otherwise adapted from
046830,000019:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
046831,000020:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
046832,000021:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
046833,000022:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
046834,000023:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
046835,000024:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
046836,000025:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
046837,000026:                                                                                                  ## actually created.
046838,000027:                                                                                                  ##
046839,000028:                                                                                                  ## Notations on the hardcopy document read, in part:
046840,000029:                                                                                                  ##
046841,000030:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
046842,000031:                                                                                                  ##      16:27 JULY 14, 1969 
046843,000032: 

Page 1095

046845,000034:    4732                                           BLOCK    02                                    
046846,000035:    4732                                           COUNT*   $$/FCONS                              
046847,000036: 
046848,000037:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES.
046849,000038: 
046850,000039:    4732           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
046851,000040:    4733           37777        POSMAX             OCT      37777                                 
046852,000041: 
046853,000042:    4734     4734               LIMITS             =        NEG1/2                                
046854,000043: 
046855,000044:    4734           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
046856,000045:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
046857,000046: 
046858,000047:                                                                                                  #  BIT TABLE                                     
046859,000048: 
046860,000049:    4735           40000        BIT15              OCT      40000                                 
046861,000050:    4736           20000        BIT14              OCT      20000                                 
046862,000051:    4737           10000        BIT13              OCT      10000                                 
046863,000052:    4740           04000        BIT12              OCT      04000                                 
046864,000053:    4741           02000        BIT11              OCT      02000                                 
046865,000054:    4742           01000        BIT10              OCT      01000                                 
046866,000055:    4743           00400        BIT9               OCT      00400                                 
046867,000056:    4744           00200        BIT8               OCT      00200                                 
046868,000057:    4745           00100        BIT7               OCT      00100                                 
046869,000058:    4746           00040        BIT6               OCT      00040                                 
046870,000059:    4747           00020        BIT5               OCT      00020                                 
046871,000060:    4750           00010        BIT4               OCT      00010                                 
046872,000061:    4751           00004        BIT3               OCT      00004                                 
046873,000062:    4752           00002        BIT2               OCT      00002                                 
046874,000063:    4753           00001        BIT1               OCT      00001                                 
046875,000064: 
046876,000065:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046877,000066:    4754           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
046878,000067:    4755           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
046879,000068:                                                                                                  #  BIT1          OCT     00001
046880,000069:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
046881,000070:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
046882,000071:                                                                                                  #  R3D1          OCT     4               PINBALL
046883,000072:    4756           00005        FIVE               OCT      5                                     
046884,000073:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
046885,000074:    4757           00007        SEVEN              OCT      7                                     
046886,000075:                                                                                                  #  BIT4          OCT     00010
046887,000076:                                                                                                  #  R2D1          OCT     11              PINBALL
046888,000077:    4760     4320               OCT11              =        R2D1                                  #  P20S
046889,000078:                                                                                                  #  BINCON        DEC     10              PINBALL         (OCTAL 12)
046890,000079:    4760           00013        ELEVEN             DEC      11         B-14                       
046891,000080:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
046892,000081:    4761           00015        OCT15              OCT      15                                    
046893,000082:                                                                                                  #  R1D1          OCT     16              PINBALL
046894,000083:    4762           00017        LOW4               OCT      17                                    

Page 1096

046896,000085:                                                                                                  #  BIT5          OCT     00020
046897,000086:                                                                                                  #  ND1           OCT     21              PINBALL
046898,000087:                                                                                                  #  VD1           OCT     23              PINBALL
046899,000088:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
046900,000089:                                                                                                  #  MD1           OCT     25              PINBALL
046901,000090:    4763           00030        BITS4&5            OCT      30                                    
046902,000091:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
046903,000092:    4764           00033        OCT33              OCT      33                                    
046904,000093:    4765     4764               DEC27              =        OCT33                                 
046905,000094:    4765           00035        OCT35              OCT      35                                    
046906,000095:    4766     4765               DEC29              =        OCT35                                 
046907,000096:    4766           00032        CALLCODE           OCT      00032                                 
046908,000097:                                                                                                  #  LOW5          OCT     37              PINBALL
046909,000098:                                                                                                  #  33DEC         DEC     33              PINBALL         (OCTAL 41)
046910,000099:                                                                                                  #  34DEC         DEC     34              PINBALL         (OCTAL 42)
046911,000100:    4767           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
046912,000101:    4770           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
046913,000102:                                                                                                  #  BIT6          OCT     00040
046914,000103:    4771           00050        OCT50              OCT      50                                    
046915,000104:    4772           00055        DEC45              DEC      45         B-14                       
046916,000105:    4773           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
046917,000106:    4774           00062        .5SEC              DEC      50         B-14                       
046918,000107:                                                                                                  #  BIT7          OCT     00100
046919,000108: 
046920,000109:    4775     4745               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
046921,000110:                                                                                                  #  (LAST 4K OF ROPE)
046922,000111:    4775           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
046923,000112:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
046924,000113:                                                                                                  #  (FIRST 8K OF ACM)
046925,000114:    4776           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
046926,000115:                                                                                                  #  (LAST 8K OF ACM)
046927,000116:    4777           00144        1SEC               DEC      100        B-14                       
046928,000117:                                                                                                  #  LOW7          OCT     177             INTERPRETER
046929,000118:                                                                                                  #  BIT8          OCT     00200
046930,000119:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
046931,000120:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
046932,000121:    5000           00310        2SECS              DEC      200        B-14                       
046933,000122:                                                                                                  #  LOW8          OCT     377             PINBALL
046934,000123:                                                                                                  #  BIT9          OCT     00400
046935,000124:    5001           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
046936,000125:    5002           00454        3SECS              DEC      300        B-14                       
046937,000126:    5003           00620        4SECS              DEC      400        B-14                       
046938,000127:    5004           00777        LOW9               OCT      777                                   
046939,000128:                                                                                                  #  BIT10         OCT     01000
046940,000129:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE        (OCTAL 00765)
046941,000130:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
046942,000131:    5005           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
046943,000132:    5006           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
046944,000133:    5007           01400        OCT1400            OCT      01400                                 
046945,000134:    5010           01426        V06N22             VN       0622                                  

Page 1097

046947,000136:                                                                                                  #  MID5          OCT     1740            PINBALL
046948,000137:    5011           01776        BITS2-10           OCT      1776                                  
046949,000138:    5012           01777        LOW10              OCT      1777                                  
046950,000139:                                                                                                  #  BIT11         OCT     02000
046951,000140:                                                                                                  #  2K+3          OCT     2003            PINBALL
046952,000141:    5013           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
046953,000142:    5014           02400        EBANK5             OCT      02400                                 
046954,000143:    5015           03000        PRIO3              OCT      03000                                 
046955,000144:    5016           03400        EBANK7             OCT      03400                                 
046956,000145:                                                                                                  #  LOW11         OCT     3777            PINBALL
046957,000146:                                                                                                  #  BIT12         OCT     04000
046958,000147:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
046959,000148:    5017           05000        PRIO5              OCT      05000                                 
046960,000149:    5020           06000        PRIO6              OCT      06000                                 
046961,000150:    5021           07000        PRIO7              OCT      07000                                 
046962,000151: 
046963,000152:                                                                                                  #  BIT13         OCT     10000
046964,000153:                                                                                                  #                OCT     10003           T4RUPT  RELTAB +1D
046965,000154:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
046966,000155:    5022           11000        PRIO11             OCT      11000                                 
046967,000156:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
046968,000157:    5023           13000        PRIO13             OCT      13000                                 
046969,000158:    5024           14000        PRIO14             OCT      14000                                 
046970,000159:                                                                                                  #                OCT     14031           T4RUPT  RELTAB +2D
046971,000160:    5025           15000        PRIO15             OCT      15000                                 
046972,000161:    5026           16000        PRIO16             OCT      16000                                 
046973,000162:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE        (OCTAL 16450)
046974,000163:    5027           17000        PRIO17             OCT      17000                                 
046975,000164:    5030           17770        OCT17770           OCT      17770                                 
046976,000165:                                                                                                  #  BIT14         OCT     20000
046977,000166:                                                                                                  #                OCT     20033           T4RUPT  RELTAB +3D
046978,000167:    5031           21000        PRIO21             OCT      21000                                 
046979,000168:    7710                                           BLOCK    03                                    
046980,000169:    7710                                           COUNT*   $$/FCONS                              
046981,000170:    7710           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
046982,000171:    7711           23000        PRIO23             OCT      23000                                 
046983,000172:    7712           24000        PRIO24             OCT      24000                                 
046984,000173:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
046985,000174:                                                                                                  #                OCT     24017           T4RUPT  RELTAB +4D
046986,000175:    7713           25000        PRIO25             OCT      25000                                 
046987,000176:    7714           26000        PRIO26             OCT      26000                                 
046988,000177:    7715           27000        PRIO27             OCT      27000                                 
046989,000178:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
046990,000179:                                                                                                  #                OCT     30036           T4RUPT  RELTAB +5D
046991,000180:    7716           31000        PRIO31             OCT      31000                                 
046992,000181:    7717           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
046993,000182:    7720           32000        PRIO32             OCT      32000                                 
046994,000183:    7721           33000        PRIO33             OCT      33000                                 
046995,000184:    7722           34000        PRIO34             OCT      34000                                 
046996,000185:                                                                                                  #                OCT     34034           T4RUPT  RELTAB +6D              

Page 1098

046998,000187:    7723           35000        PRIO35             OCT      35000                                 
046999,000188:    7724           36000        PRIO36             OCT      36000                                 
047000,000189:    7725           37000        PRIO37             OCT      37000                                 
047001,000190:    7726           37401        63/64+1            OCT      37401                                 
047002,000191:                                                                                                  #  MID7          OCT     37600           PINBALL
047003,000192:    7727           37766        OCT37766           OCT      37766                                 
047004,000193:    7730           37774        OCT37774           OCT      37774                                 
047005,000194:    7731           37776        OCT37776           OCT      37776                                 
047006,000195:                                                                                                  #  DPOSMAX       OCT     37777
047007,000196:                                                                                                  #  BIT15         OCT     40000
047008,000197:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER (CS 1 INSTRUCTION)
047009,000198:    7732           40014        DLOADCOD           OCT      40014                                 
047010,000199:    7733           40015        DLOAD*             OCT      40015                                 
047011,000200:                                                                                                  #                OCT     40023           T4RUPT  RELTAB +7D
047012,000201:    7734           40040        BIT15+6            OCT      40040                                 
047013,000202:    7735           40200        OCT40200           OCT      40200                                 
047014,000203:                                                                                                  #                OCT     44035           T4RUPT  RELTAB +8D
047015,000204:                                                                                                  #                OCT     50037           T4RUPT  RELTAB +9D
047016,000205:                                                                                                  #                OCT     54000           T4RUPT  RELTAB +10D
047017,000206:    7736           57777        -BIT14             OCT      57777                                 
047018,000207:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
047019,000208:    7737           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
047020,000209:    7740           70000        13,14,15           OCT      70000                                 
047021,000210:    7741           73777        -1/8               OCT      73777                                 
047022,000211:    7742           74000        HIGH4              OCT      74000                                 
047023,000212:    7743           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
047024,000213:                                                                                                  #  HI5           OCT     76000           PINBALL
047025,000214:    7744           77700        HIGH9              OCT      77700                                 
047026,000215:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER             (OCTAL 77722)
047027,000216:                                                                                                  #  -OCT10        OCT     -10                                      (OCT 77767)
047028,000217:                                                                                                  #  NEG4          DEC     -4                                      (OCTAL 77773)
047029,000218:    7745           77774        NEG3               DEC      -3         B-14                       
047030,000219:    7746           77775        NEG2               OCT      77775                                 
047031,000220:    7747           77776        NEGONE             DEC      -1         B-14                       
047032,000221: 

Page 1099

047034,000223: 
047035,000224:                                                                                                  #  DEFINED BY EQUALS
047036,000225: 
047037,000226:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
047038,000227:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
047039,000228: 
047040,000229:    7750     7747               MINUS1             =        NEG1                                  
047041,000230:    7750     7747               NEG1               =        NEGONE                                
047042,000231:    7750     4753               ONE                =        BIT1                                  
047043,000232:    7750     4752               TWO                =        BIT2                                  
047044,000233:    7750     6245               THREE              =        OCTAL3                                
047045,000234:    7750     6245               LOW2               =        THREE                                 
047046,000235:    7750     4751               FOUR               =        BIT3                                  
047047,000236:    7750     6242               SIX                =        REVCNT                                
047048,000237:    7750     4757               LOW3               =        SEVEN                                 
047049,000238:    7750     4750               EIGHT              =        BIT4                                  
047050,000239:    7750     4320               NINE               =        R2D1                                  
047051,000240:    7750     4363               TEN                =        BINCON                                
047052,000241:    7750     4760               NOUTCON            =        ELEVEN                                
047053,000242:    7750     4360               OCT23              =        VD1                                   
047054,000243:    7750     4362               OCT25              =        MD1                                   
047055,000244:    7750     4742               PRIO1              =        BIT10                                 
047056,000245:    7750     5007               EBANK3             =        OCT1400                               
047057,000246:    7750     4741               PRIO2              =        BIT11                                 
047058,000247:    7750     4775               OCT120             =        SUPER101                              
047059,000248:    7750     4776               OCT140             =        SUPER110                              
047060,000249:    7750     4741               2K                 =        BIT11                                 
047061,000250:    7750     4741               EBANK4             =        BIT11                                 
047062,000251:    7750     4740               PRIO4              =        BIT12                                 
047063,000252:    7750     5015               EBANK6             =        PRIO3                                 
047064,000253:    7750     4737               QUARTER            =        BIT13                                 
047065,000254:    7750     4737               PRIO10             =        BIT13                                 
047066,000255:    7750     7663               OCT10001           =        CCSL                                  
047067,000256:    7750     4736               POS1/2             =        HALF                                  
047068,000257:    7750     4736               PRIO20             =        BIT14                                 
047069,000258:    7750     4736               HALF               =        BIT14                                 
047070,000259:    7750     4355               PRIO30             =        CHRPRIO                               
047071,000260:    7750     4355               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
047072,000261:    7750     6471               OCT30002           =        TLOAD      +1                         
047073,000262:    7750     7722               B12T14             =        PRIO34                                
047074,000263:    7750     4735               NEGMAX             =        BIT15                                 
047075,000264:    7750     4735               VLOADCOD           =        BIT15                                 
047076,000265:    7750     6107               VLOAD*             =        OCT40001                              
047077,000266:    7750     4101               OCT60000           =        RELTAB11                              
047078,000267:    7750     4350               BANKMASK           =        HI5                                   
047079,000268: 

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