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.

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

Page 1095

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

Page 1096

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

Page 1097

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

Page 1098

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

Page 1099

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

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