Source Code

This is a reconstructed version of Luminary 130, the initial AGC program released in November 1969 for the Apollo 13 LM. Three more releases followed before the flown revision was finally manufactured in February 1970.

This reconstruction was created from a previous transcription of the original listing of Luminary 131, combined with Luminary memo #129 which describes the small difference between the Luminary 130 and 131. The reconstructed source code was verified by matching memory-bank checksums to those listed for Luminary 130 in drawing 2021152G.

In this source code, program comments from the original (Luminary 131) code are prefixed with '#', while those added later by the Virtual AGC project are prefixed with '##'.

045974,000002:                                                                                                  ## Copyright:   Public domain.
045975,000003:                                                                                                  ## Filename:    FIXED-FIXED_CONSTANT_POOL.agc
045976,000004:                                                                                                  ## Purpose:     A section of the reconstructed source code for Luminary 130.
045977,000005:                                                                                                  ##              This was the original program released for the Apollo 13 LM,
045978,000006:                                                                                                  ##              although several more revisions would follow. It has been
045979,000007:                                                                                                  ##              reconstructed from a listing of Luminary 131, from which it
045980,000008:                                                                                                  ##              differs on only two lines in P70-P71. The difference is
045981,000009:                                                                                                  ##              described in detail in Luminary memo #129, which was used
045982,000010:                                                                                                  ##              to perform the reconstruction. This file is intended to be a
045983,000011:                                                                                                  ##              faithful reconstruction, except that the code format has been
045984,000012:                                                                                                  ##              changed to conform to the requirements of the yaYUL assembler
045985,000013:                                                                                                  ##              rather than the original YUL assembler.
045986,000014:                                                                                                  ## Reference:   pp. 1089-1093
045987,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
045988,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
045989,000017:                                                                                                  ## Mod history: 04/23/03 RSB.   Began.
045990,000018:                                                                                                  ##              05/14/05 RSB    Corrected website reference above.
045991,000019:                                                                                                  ##              2010-10-25 JL   Indentation fixes.
045992,000020:                                                                                                  ##              2017-01-06 RSB  Page numbers now agree with those on the
045993,000021:                                                                                                  ##                              original harcopy, as opposed to the PDF page
045994,000022:                                                                                                  ##                              numbers in 1701.pdf.
045995,000023:                                                                                                  ##              2017-02-27 RSB  Proofed comment text using octopus/ProoferComments.
045996,000024:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
045997,000025:                                                                                                  ##              2018-09-04 MAS  Copied from Luminary 131 for Luminary 130.
045998,000026: 

Page 1089

046000,000028:    4732                                           BLOCK    02                                    
046001,000029:    4732                                           COUNT*   $$/FCONS                              
046002,000030: 
046003,000031:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES.
046004,000032: 
046005,000033:    4732           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
046006,000034:    4733           37777        POSMAX             OCT      37777                                 
046007,000035: 
046008,000036:    4734     4734               LIMITS             =        NEG1/2                                
046009,000037: 
046010,000038:    4734           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
046011,000039:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
046012,000040: 
046013,000041:                                                                                                  #  BIT TABLE                                     
046014,000042: 
046015,000043:    4735           40000        BIT15              OCT      40000                                 
046016,000044:    4736           20000        BIT14              OCT      20000                                 
046017,000045:    4737           10000        BIT13              OCT      10000                                 
046018,000046:    4740           04000        BIT12              OCT      04000                                 
046019,000047:    4741           02000        BIT11              OCT      02000                                 
046020,000048:    4742           01000        BIT10              OCT      01000                                 
046021,000049:    4743           00400        BIT9               OCT      00400                                 
046022,000050:    4744           00200        BIT8               OCT      00200                                 
046023,000051:    4745           00100        BIT7               OCT      00100                                 
046024,000052:    4746           00040        BIT6               OCT      00040                                 
046025,000053:    4747           00020        BIT5               OCT      00020                                 
046026,000054:    4750           00010        BIT4               OCT      00010                                 
046027,000055:    4751           00004        BIT3               OCT      00004                                 
046028,000056:    4752           00002        BIT2               OCT      00002                                 
046029,000057:    4753           00001        BIT1               OCT      00001                                 
046030,000058: 
046031,000059:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046032,000060:    4754           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
046033,000061:    4755           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
046034,000062:                                                                                                  #  BIT1          OCT     00001
046035,000063:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
046036,000064:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
046037,000065:                                                                                                  #  R3D1          OCT     4               PINBALL
046038,000066:    4756           00005        FIVE               OCT      5                                     
046039,000067:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
046040,000068:    4757           00007        SEVEN              OCT      7                                     
046041,000069:                                                                                                  #  BIT4          OCT     00010
046042,000070:                                                                                                  #  R2D1          OCT     11              PINBALL
046043,000071:    4760     4320               OCT11              =        R2D1                                  #  P20S
046044,000072:                                                                                                  #  BINCON        DEC     10              PINBALL         (OCTAL 12)
046045,000073:    4760           00013        ELEVEN             DEC      11         B-14                       
046046,000074:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
046047,000075:    4761           00015        OCT15              OCT      15                                    
046048,000076:                                                                                                  #  R1D1          OCT     16              PINBALL
046049,000077:    4762           00017        LOW4               OCT      17                                    

Page 1090

046051,000079:                                                                                                  #  BIT5          OCT     00020
046052,000080:                                                                                                  #  ND1           OCT     21              PINBALL
046053,000081:                                                                                                  #  VD1           OCT     23              PINBALL
046054,000082:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
046055,000083:                                                                                                  #  MD1           OCT     25              PINBALL
046056,000084:    4763           00030        BITS4&5            OCT      30                                    
046057,000085:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
046058,000086:    4764           00033        OCT33              OCT      33                                    
046059,000087:    4765     4764               DEC27              =        OCT33                                 
046060,000088:    4765           00035        OCT35              OCT      35                                    
046061,000089:    4766     4765               DEC29              =        OCT35                                 
046062,000090:    4766           00032        CALLCODE           OCT      00032                                 
046063,000091:                                                                                                  #  LOW5          OCT     37              PINBALL
046064,000092:                                                                                                  #  33DEC         DEC     33              PINBALL         (OCTAL 41)
046065,000093:                                                                                                  #  34DEC         DEC     34              PINBALL         (OCTAL 42)
046066,000094:    4767           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
046067,000095:    4770           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
046068,000096:                                                                                                  #  BIT6          OCT     00040
046069,000097:    4771           00050        OCT50              OCT      50                                    
046070,000098:    4772           00055        DEC45              DEC      45         B-14                       
046071,000099:    4773           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
046072,000100:    4774           00062        .5SEC              DEC      50         B-14                       
046073,000101:                                                                                                  #  BIT7          OCT     00100
046074,000102: 
046075,000103:    4775     4745               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
046076,000104:                                                                                                  #  (LAST 4K OF ROPE)
046077,000105:    4775           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
046078,000106:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
046079,000107:                                                                                                  #  (FIRST 8K OF ACM)
046080,000108:    4776           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
046081,000109:                                                                                                  #  (LAST 8K OF ACM)
046082,000110:    4777           00144        1SEC               DEC      100        B-14                       
046083,000111:                                                                                                  #  LOW7          OCT     177             INTERPRETER
046084,000112:                                                                                                  #  BIT8          OCT     00200
046085,000113:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
046086,000114:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
046087,000115:    5000           00310        2SECS              DEC      200        B-14                       
046088,000116:                                                                                                  #  LOW8          OCT     377             PINBALL
046089,000117:                                                                                                  #  BIT9          OCT     00400
046090,000118:    5001           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
046091,000119:    5002           00454        3SECS              DEC      300        B-14                       
046092,000120:    5003           00620        4SECS              DEC      400        B-14                       
046093,000121:    5004           00777        LOW9               OCT      777                                   
046094,000122:                                                                                                  #  BIT10         OCT     01000
046095,000123:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE        (OCTAL 00765)
046096,000124:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
046097,000125:    5005           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
046098,000126:    5006           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
046099,000127:    5007           01400        OCT1400            OCT      01400                                 
046100,000128:    5010           01426        V06N22             VN       0622                                  

Page 1091

046102,000130:                                                                                                  #  MID5          OCT     1740            PINBALL
046103,000131:    5011           01776        BITS2-10           OCT      1776                                  
046104,000132:    5012           01777        LOW10              OCT      1777                                  
046105,000133:                                                                                                  #  BIT11         OCT     02000
046106,000134:                                                                                                  #  2K+3          OCT     2003            PINBALL
046107,000135:    5013           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
046108,000136:    5014           02400        EBANK5             OCT      02400                                 
046109,000137:    5015           03000        PRIO3              OCT      03000                                 
046110,000138:    5016           03400        EBANK7             OCT      03400                                 
046111,000139:                                                                                                  #  LOW11         OCT     3777            PINBALL
046112,000140:                                                                                                  #  BIT12         OCT     04000
046113,000141:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
046114,000142:    5017           05000        PRIO5              OCT      05000                                 
046115,000143:    5020           06000        PRIO6              OCT      06000                                 
046116,000144:    5021           07000        PRIO7              OCT      07000                                 
046117,000145: 
046118,000146:                                                                                                  #  BIT13         OCT     10000
046119,000147:                                                                                                  #                OCT     10003           T4RUPT  RELTAB +1D
046120,000148:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
046121,000149:    5022           11000        PRIO11             OCT      11000                                 
046122,000150:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
046123,000151:    5023           13000        PRIO13             OCT      13000                                 
046124,000152:    5024           14000        PRIO14             OCT      14000                                 
046125,000153:                                                                                                  #                OCT     14031           T4RUPT  RELTAB +2D
046126,000154:    5025           15000        PRIO15             OCT      15000                                 
046127,000155:    5026           16000        PRIO16             OCT      16000                                 
046128,000156:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE        (OCTAL 16450)
046129,000157:    5027           17000        PRIO17             OCT      17000                                 
046130,000158:    5030           17770        OCT17770           OCT      17770                                 
046131,000159:                                                                                                  #  BIT14         OCT     20000
046132,000160:                                                                                                  #                OCT     20033           T4RUPT  RELTAB +3D
046133,000161:    5031           21000        PRIO21             OCT      21000                                 
046134,000162: 
046135,000163:    7713                                           BLOCK    03                                    
046136,000164:    7713                                           COUNT*   $$/FCONS                              
046137,000165: 
046138,000166:    7713           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
046139,000167:    7714           23000        PRIO23             OCT      23000                                 
046140,000168:    7715           24000        PRIO24             OCT      24000                                 
046141,000169:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
046142,000170:                                                                                                  #                OCT     24017           T4RUPT  RELTAB +4D
046143,000171:    7716           25000        PRIO25             OCT      25000                                 
046144,000172:    7717           26000        PRIO26             OCT      26000                                 
046145,000173:    7720           27000        PRIO27             OCT      27000                                 
046146,000174:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
046147,000175:                                                                                                  #                OCT     30036           T4RUPT  RELTAB +5D
046148,000176:    7721           31000        PRIO31             OCT      31000                                 
046149,000177:    7722           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
046150,000178:    7723           32000        PRIO32             OCT      32000                                 
046151,000179:    7724           33000        PRIO33             OCT      33000                                 
046152,000180:    7725           34000        PRIO34             OCT      34000                                 
046153,000181:                                                                                                  #                OCT     34034           T4RUPT  RELTAB +6D              

Page 1092

046155,000183:    7726           35000        PRIO35             OCT      35000                                 
046156,000184:    7727           36000        PRIO36             OCT      36000                                 
046157,000185:    7730           37000        PRIO37             OCT      37000                                 
046158,000186:    7731           37401        63/64+1            OCT      37401                                 
046159,000187:                                                                                                  #  MID7          OCT     37600           PINBALL
046160,000188:    7732           37766        OCT37766           OCT      37766                                 
046161,000189:    7733           37774        OCT37774           OCT      37774                                 
046162,000190:    7734           37776        OCT37776           OCT      37776                                 
046163,000191:                                                                                                  #  DPOSMAX       OCT     37777
046164,000192:                                                                                                  #  BIT15         OCT     40000
046165,000193:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER (CS 1 INSTRUCTION)
046166,000194:    7735           40014        DLOADCOD           OCT      40014                                 
046167,000195:    7736           40015        DLOAD*             OCT      40015                                 
046168,000196:                                                                                                  #                OCT     40023           T4RUPT  RELTAB +7D
046169,000197:    7737           40040        BIT15+6            OCT      40040                                 
046170,000198:    7740           40200        OCT40200           OCT      40200                                 
046171,000199:                                                                                                  #                OCT     44035           T4RUPT  RELTAB +8D
046172,000200:                                                                                                  #                OCT     50037           T4RUPT  RELTAB +9D
046173,000201:                                                                                                  #                OCT     54000           T4RUPT  RELTAB +10D
046174,000202:    7741           57777        -BIT14             OCT      57777                                 
046175,000203:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
046176,000204:    7742           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
046177,000205:    7743           70000        13,14,15           OCT      70000                                 
046178,000206:    7744           73777        -1/8               OCT      73777                                 
046179,000207:    7745           74000        HIGH4              OCT      74000                                 
046180,000208:    7746           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
046181,000209:                                                                                                  #  HI5           OCT     76000           PINBALL
046182,000210:    7747           77700        HIGH9              OCT      77700                                 
046183,000211:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER             (OCTAL 77722)
046184,000212:                                                                                                  #  -OCT10        OCT     -10                                      (OCT 77767)
046185,000213:                                                                                                  #  NEG4          DEC     -4                                      (OCTAL 77773)
046186,000214:    7750           77774        NEG3               DEC      -3         B-14                       
046187,000215:    7751           77775        NEG2               OCT      77775                                 
046188,000216:    7752           77776        NEGONE             DEC      -1         B-14                       
046189,000217: 

Page 1093

046191,000219: 
046192,000220:                                                                                                  #  DEFINED BY EQUALS
046193,000221: 
046194,000222:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
046195,000223:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
046196,000224: 
046197,000225:    7753     7752               MINUS1             =        NEG1                                  
046198,000226:    7753     7752               NEG1               =        NEGONE                                
046199,000227:    7753     4753               ONE                =        BIT1                                  
046200,000228:    7753     4752               TWO                =        BIT2                                  
046201,000229:    7753     6250               THREE              =        OCTAL3                                
046202,000230:    7753     6250               LOW2               =        THREE                                 
046203,000231:    7753     4751               FOUR               =        BIT3                                  
046204,000232:    7753     6245               SIX                =        REVCNT                                
046205,000233:    7753     4757               LOW3               =        SEVEN                                 
046206,000234:    7753     4750               EIGHT              =        BIT4                                  
046207,000235:    7753     4320               NINE               =        R2D1                                  
046208,000236:    7753     4363               TEN                =        BINCON                                
046209,000237:    7753     4760               NOUTCON            =        ELEVEN                                
046210,000238:    7753     4360               OCT23              =        VD1                                   
046211,000239:    7753     4362               OCT25              =        MD1                                   
046212,000240:    7753     4742               PRIO1              =        BIT10                                 
046213,000241:    7753     5007               EBANK3             =        OCT1400                               
046214,000242:    7753     4741               PRIO2              =        BIT11                                 
046215,000243:    7753     4775               OCT120             =        SUPER101                              
046216,000244:    7753     4776               OCT140             =        SUPER110                              
046217,000245:    7753     4741               2K                 =        BIT11                                 
046218,000246:    7753     4741               EBANK4             =        BIT11                                 
046219,000247:    7753     4740               PRIO4              =        BIT12                                 
046220,000248:    7753     5015               EBANK6             =        PRIO3                                 
046221,000249:    7753     4737               QUARTER            =        BIT13                                 
046222,000250:    7753     4737               PRIO10             =        BIT13                                 
046223,000251:    7753     7666               OCT10001           =        CCSL                                  
046224,000252:    7753     4736               POS1/2             =        HALF                                  
046225,000253:    7753     4736               PRIO20             =        BIT14                                 
046226,000254:    7753     4736               HALF               =        BIT14                                 
046227,000255:    7753     4355               PRIO30             =        CHRPRIO                               
046228,000256:    7753     4355               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
046229,000257:    7753     6474               OCT30002           =        TLOAD      +1                         
046230,000258:    7753     7725               B12T14             =        PRIO34                                
046231,000259:    7753     4735               NEGMAX             =        BIT15                                 
046232,000260:    7753     4735               VLOADCOD           =        BIT15                                 
046233,000261:    7753     6112               VLOAD*             =        OCT40001                              
046234,000262:    7753     4101               OCT60000           =        RELTAB11                              
046235,000263:    7753     4350               BANKMASK           =        HI5                                   
046236,000264: 

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