Source Code

These source-code files are part of a reconstructed copy of Luminary 163, the first (unflown) release of the Apollo 14 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with reconstructed source code for Luminary 173. Changes between revision 163 and 173 were backed out, as described by Luminary memos 157 and 158. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152N. Note that page numbers in the reconstructed code match those for the baseline log section mentioned in each file's changelog; the page numbers for a real Luminary 163 listing would be different.

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.

046097,000002:                                                                                                  ## Copyright:   Public domain.
046098,000003:                                                                                                  ## Filename:    FIXED-FIXED_CONSTANT_POOL.agc
046099,000004:                                                                                                  ## Purpose:     A section of Luminary revision 163.
046100,000005:                                                                                                  ##              It is part of the reconstructed source code for the first
046101,000006:                                                                                                  ##              (unflown) release of the flight software for the Lunar
046102,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 14.
046103,000008:                                                                                                  ##              The code has been recreated from a reconstructed copy of
046104,000009:                                                                                                  ##              Luminary 173, as well as Luminary memos 157 amd 158.
046105,000010:                                                                                                  ##              It has been adapted such that the resulting bugger words
046106,000011:                                                                                                  ##              exactly match those specified for Luminary 163 in NASA
046107,000012:                                                                                                  ##              drawing 2021152N, which gives relatively high confidence
046108,000013:                                                                                                  ##              that the reconstruction is correct.
046109,000014:                                                                                                  ## Reference:   pp. 1086-1090
046110,000015:                                                                                                  ## Assembler:   yaYUL
046111,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
046112,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
046113,000018:                                                                                                  ## Mod history: 2019-08-21 MAS  Created from Luminary 173.
046114,000019: 

Page 1086

046116,000021:    4732                                           BLOCK    02                                    
046117,000022: 
046118,000023:    4732                                           COUNT*   $$/FCONS                              
046119,000024:                                                                                                  #   THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
046120,000025: 
046121,000026:    4732           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
046122,000027:    4733           37777        POSMAX             OCT      37777                                 
046123,000028: 
046124,000029:    4734     4734               LIMITS             =        NEG1/2                                
046125,000030: 
046126,000031:    4734           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
046127,000032:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
046128,000033:                                                                                                  #  BIT TABLE
046129,000034: 
046130,000035:    4735           40000        BIT15              OCT      40000                                 
046131,000036:    4736           20000        BIT14              OCT      20000                                 
046132,000037:    4737           10000        BIT13              OCT      10000                                 
046133,000038:    4740           04000        BIT12              OCT      04000                                 
046134,000039:    4741           02000        BIT11              OCT      02000                                 
046135,000040:    4742           01000        BIT10              OCT      01000                                 
046136,000041:    4743           00400        BIT9               OCT      00400                                 
046137,000042:    4744           00200        BIT8               OCT      00200                                 
046138,000043:    4745           00100        BIT7               OCT      00100                                 
046139,000044:    4746           00040        BIT6               OCT      00040                                 
046140,000045:    4747           00020        BIT5               OCT      00020                                 
046141,000046:    4750           00010        BIT4               OCT      00010                                 
046142,000047:    4751           00004        BIT3               OCT      00004                                 
046143,000048:    4752           00002        BIT2               OCT      00002                                 
046144,000049:    4753           00001        BIT1               OCT      00001                                 
046145,000050: 
046146,000051: 
046147,000052:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046148,000053:    4754           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
046149,000054:    4755           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
046150,000055:                                                                                                  #  BIT1          OCT     00001
046151,000056:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
046152,000057:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
046153,000058:                                                                                                  #  R3D1          OCT     4               PINBALL
046154,000059:    4756           00005        FIVE               OCT      5                                     
046155,000060:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
046156,000061:    4757           00007        SEVEN              OCT      7                                     
046157,000062:                                                                                                  #  BIT4          OCT     00010
046158,000063:                                                                                                  #  R2D1          OCT     11              PINBALL
046159,000064:    4760     4320               OCT11              =        R2D1                                  #  P20S
046160,000065:                                                                                                  #  BINCON        DEC     10              PINBALL            (OCTAL 12)
046161,000066:    4760           00013        ELEVEN             DEC      11         B-14                       
046162,000067:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
046163,000068:    4761           00015        OCT15              OCT      15                                    
046164,000069:                                                                                                  #  R1D1          OCT     16              PINBALL
046165,000070:    4762           00017        LOW4               OCT      17                                    

Page 1087

046167,000072:                                                                                                  #  BIT5          OCT     00020
046168,000073:                                                                                                  #  ND1           OCT     21              PINBALL
046169,000074:                                                                                                  #  VD1           OCT     23              PINBALL
046170,000075:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
046171,000076:                                                                                                  #  MD1           OCT     25              PINBALL
046172,000077:    4763           00030        BITS4&5            OCT      30                                    
046173,000078:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
046174,000079:    4764           00033        OCT33              OCT      33                                    
046175,000080:    4765     4764               DEC27              =        OCT33                                 
046176,000081:    4765           00035        OCT35              OCT      35                                    
046177,000082:    4766     4765               DEC29              =        OCT35                                 
046178,000083:    4766           00032        CALLCODE           OCT      00032                                 
046179,000084:                                                                                                  #  LOW5          OCT     37              PINBALL
046180,000085:                                                                                                  #  33DEC         DEC     33              PINBALL            (OCTAL 41)
046181,000086:                                                                                                  #  34DEC         DEC     34              PINBALL            (OCTAL 42)
046182,000087:    4767           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
046183,000088:    4770           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
046184,000089:                                                                                                  #  BIT6          OCT     00040
046185,000090:    4771           00050        OCT50              OCT      50                                    
046186,000091:    4772           00055        DEC45              DEC      45         B-14                       
046187,000092:    4773           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
046188,000093:    4774           00062        .5SEC              DEC      50         B-14                       
046189,000094:                                                                                                  #  BIT7          OCT     00100
046190,000095: 
046191,000096:    4775     4745               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
046192,000097:                                                                                                  #  (LAST 4K OF ROPE)
046193,000098:    4775           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
046194,000099:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
046195,000100:                                                                                                  #  (FIRST 8K OF ACM)
046196,000101:    4776           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
046197,000102:                                                                                                  #  (LAST 8K OF ACM)
046198,000103:    4777           00144        1SEC               DEC      100        B-14                       
046199,000104:                                                                                                  #  LOW7          OCT     177             INTERPRETER
046200,000105:                                                                                                  #  BIT8          OCT     00200
046201,000106:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
046202,000107:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
046203,000108:    5000           00310        2SECS              DEC      200        B-14                       
046204,000109:                                                                                                  #  LOW8          OCT     377             PINBALL
046205,000110:                                                                                                  #  BIT9          OCT     00400
046206,000111:    5001           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
046207,000112:    5002           00454        3SECS              DEC      300        B-14                       
046208,000113:    5003           00620        4SECS              DEC      400        B-14                       
046209,000114:    5004           00777        LOW9               OCT      777                                   
046210,000115:                                                                                                  #  BIT10         OCT     01000
046211,000116:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE   (OCTAL 00765)
046212,000117:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
046213,000118:    5005           01124        C5/2               DEC      .0363551                              #                     (OCTAL 01124)
046214,000119:    5006           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
046215,000120:    5007           01400        OCT1400            OCT      01400                                 
046216,000121:    5010           01426        V06N22             VN       0622                                  

Page 1088

046218,000123:                                                                                                  #  MID5          OCT     1740            PINBALL
046219,000124:    5011           01776        BITS2-10           OCT      1776                                  
046220,000125:    5012           01777        LOW10              OCT      1777                                  
046221,000126:                                                                                                  #  BIT11         OCT     02000
046222,000127:                                                                                                  #  2K+3          OCT     2003            PINBALL
046223,000128:    5013           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
046224,000129:    5014           02400        EBANK5             OCT      02400                                 
046225,000130:    5015           03000        PRIO3              OCT      03000                                 
046226,000131:    5016           03400        EBANK7             OCT      03400                                 
046227,000132:                                                                                                  #  LOW11         OCT     3777            PINBALL
046228,000133:                                                                                                  #  BIT12         OCT     04000
046229,000134:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
046230,000135:    5017           05000        PRIO5              OCT      05000                                 
046231,000136:    5020           06000        PRIO6              OCT      06000                                 
046232,000137:    5021           07000        PRIO7              OCT      07000                                 
046233,000138: 
046234,000139:                                                                                                  #  BIT13         OCT     10000
046235,000140:                                                                                                  #                OCT     10003           T4RUPT     RELTAB +1D
046236,000141:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
046237,000142:    5022           11000        PRIO11             OCT      11000                                 
046238,000143:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
046239,000144:    5023           13000        PRIO13             OCT      13000                                 
046240,000145:    5024           14000        PRIO14             OCT      14000                                 
046241,000146:                                                                                                  #                OCT     14031           T4RUPT     RELTAB +2D
046242,000147:    5025           15000        PRIO15             OCT      15000                                 
046243,000148:    5026           16000        PRIO16             OCT      16000                                 
046244,000149:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE   (OCTAL 16450)
046245,000150:    5027           17000        PRIO17             OCT      17000                                 
046246,000151:    5030           17770        OCT17770           OCT      17770                                 
046247,000152:                                                                                                  #  BIT14         OCT     20000
046248,000153:                                                                                                  #                OCT     20033           T4RUPT     RELTAB +3D
046249,000154:    5031           21000        PRIO21             OCT      21000                                 
046250,000155:    7713                                           BLOCK    03                                    
046251,000156:    7713                                           COUNT*   $$/FCONS                              
046252,000157:    7713           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
046253,000158:    7714           23000        PRIO23             OCT      23000                                 
046254,000159:    7715           24000        PRIO24             OCT      24000                                 
046255,000160:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
046256,000161:                                                                                                  #                OCT     24017           T4RUPT     RELTAB +4D
046257,000162:    7716           25000        PRIO25             OCT      25000                                 
046258,000163:    7717           26000        PRIO26             OCT      26000                                 
046259,000164:    7720           27000        PRIO27             OCT      27000                                 
046260,000165:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
046261,000166:                                                                                                  #                OCT     30036           T4RUPT     RELTAB +5D
046262,000167:    7721           31000        PRIO31             OCT      31000                                 
046263,000168:    7722           31103        C1/2               DEC      .7853134                              #                   (OCTAL 31103)
046264,000169:    7723           32000        PRIO32             OCT      32000                                 
046265,000170:    7724           33000        PRIO33             OCT      33000                                 
046266,000171:    7725           34000        PRIO34             OCT      34000                                 
046267,000172:                                                                                                  #                OCT     34034           T4RUPT     RELTAB +6D              

Page 1089

046269,000174:    7726           35000        PRIO35             OCT      35000                                 
046270,000175:    7727           36000        PRIO36             OCT      36000                                 
046271,000176:    7730           37000        PRIO37             OCT      37000                                 
046272,000177:    7731           37401        63/64+1            OCT      37401                                 
046273,000178:                                                                                                  #  MID7          OCT     37600           PINBALL
046274,000179:    7732           37766        OCT37766           OCT      37766                                 
046275,000180:    7733           37774        OCT37774           OCT      37774                                 
046276,000181:    7734           37776        OCT37776           OCT      37776                                 
046277,000182:                                                                                                  #  DPOSMAX       OCT     37777
046278,000183:                                                                                                  #  BIT15         OCT     40000
046279,000184:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER  ( CS   1   INSTRUCTION)
046280,000185:    7735           40014        DLOADCOD           OCT      40014                                 
046281,000186:    7736           40015        DLOAD*             OCT      40015                                 
046282,000187:                                                                                                  #                OCT     40023           T4RUPT     RELTAB +7D
046283,000188:    7737           40040        BIT15+6            OCT      40040                                 
046284,000189:    7740           40200        OCT40200           OCT      40200                                 
046285,000190:                                                                                                  #                OCT     44035           T4RUPT    RELTAB +8D
046286,000191:                                                                                                  #                OCT     50037           T4RUPT     RELTAB +9D
046287,000192:                                                                                                  #                OCT     54000           T4RUPT     RELTAB +10D
046288,000193:    7741           57777        -BIT14             OCT      57777                                 
046289,000194:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
046290,000195:    7742           65552        C3/2               DEC      -.3216147                             #                   (OCTAL 65552)
046291,000196:    7743           70000        13,14,15           OCT      70000                                 
046292,000197:    7744           73777        -1/8               OCT      73777                                 
046293,000198:    7745           74000        HIGH4              OCT      74000                                 
046294,000199:    7746           74056        -ENDERAS           DEC      -2001      B-14                       #                   (OCTAL 74056)
046295,000200:                                                                                                  #  HI5           OCT     76000           PINBALL
046296,000201:    7747           77700        HIGH9              OCT      77700                                 
046297,000202:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER        (OCTAL 77722)
046298,000203:                                                                                                  #  -OCT10        OCT     -10                                 (OCT 77767)
046299,000204:                                                                                                  #  NEG4          DEC     -4                                 (OCTAL 77773)
046300,000205:    7750           77774        NEG3               DEC      -3         B-14                       
046301,000206:    7751           77775        NEG2               OCT      77775                                 
046302,000207:    7752           77776        NEGONE             DEC      -1         B-14                       
046303,000208: 

There is a doodle (of what I can't tell) at the bottom of the page.

046305,000210: 

Page 1090

046307,000212:                                                                                                  #  DEFINED BY EQUALS
046308,000213: 
046309,000214:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
046310,000215:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
046311,000216: 
046312,000217:    7753     7752               MINUS1             =        NEG1                                  
046313,000218:    7753     7752               NEG1               =        NEGONE                                
046314,000219:    7753     4753               ONE                =        BIT1                                  
046315,000220:    7753     4752               TWO                =        BIT2                                  
046316,000221:    7753     6250               THREE              =        OCTAL3                                
046317,000222:    7753     6250               LOW2               =        THREE                                 
046318,000223:    7753     4751               FOUR               =        BIT3                                  
046319,000224:    7753     6245               SIX                =        REVCNT                                
046320,000225:    7753     4757               LOW3               =        SEVEN                                 
046321,000226:    7753     4750               EIGHT              =        BIT4                                  
046322,000227:    7753     4320               NINE               =        R2D1                                  
046323,000228:    7753     4363               TEN                =        BINCON                                
046324,000229:    7753     4760               NOUTCON            =        ELEVEN                                
046325,000230:    7753     4360               OCT23              =        VD1                                   
046326,000231:    7753     4362               OCT25              =        MD1                                   
046327,000232:    7753     4742               PRIO1              =        BIT10                                 
046328,000233:    7753     5007               EBANK3             =        OCT1400                               
046329,000234:    7753     4741               PRIO2              =        BIT11                                 
046330,000235:    7753     4775               OCT120             =        SUPER101                              
046331,000236:    7753     4776               OCT140             =        SUPER110                              
046332,000237:    7753     4741               2K                 =        BIT11                                 
046333,000238:    7753     4741               EBANK4             =        BIT11                                 
046334,000239:    7753     4740               PRIO4              =        BIT12                                 
046335,000240:    7753     5015               EBANK6             =        PRIO3                                 
046336,000241:    7753     4737               QUARTER            =        BIT13                                 
046337,000242:    7753     4737               PRIO10             =        BIT13                                 
046338,000243:    7753     7666               OCT10001           =        CCSL                                  
046339,000244:    7753     4736               POS1/2             =        HALF                                  
046340,000245:    7753     4736               PRIO20             =        BIT14                                 
046341,000246:    7753     4736               HALF               =        BIT14                                 
046342,000247:    7753     4355               PRIO30             =        CHRPRIO                               
046343,000248:    7753     4355               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
046344,000249:    7753     6474               OCT30002           =        TLOAD      +1                         
046345,000250:    7753     7725               B12T14             =        PRIO34                                
046346,000251:    7753     4735               NEGMAX             =        BIT15                                 
046347,000252:    7753     4735               VLOADCOD           =        BIT15                                 
046348,000253:    7753     6112               VLOAD*             =        OCT40001                              
046349,000254:    7753     4101               OCT60000           =        RELTAB11                              
046350,000255:    7753     4350               BANKMASK           =        HI5                                   

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