Source Code

These source-code files were transcribed from scans made from Don Eyles's personal copy of Luminary 069. They were scanned at archive.org's Boston facility, and the scanning was sponsored by Onno Hommes. The code was transcribed from these scans by a team of volunteers who are referenced in the program comments. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". In some cases, where similar code blocks exist in previously-transcribed AGC programs (primarily Luminary 99, from Apollo 11) those code blocks were used as a starting point and then corrected to agree with the Luminary 69 scans. The full scans are available at the Virtual AGC project's collection at archive.org, while more-convenient reduced-size (but reduced-quality) images are available at the main Virtual AGC website. Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 069 OF AGC PROGRAM LUMINARY BY NASA 2021112-011
	19:02 NOV. 25,1968
Note that the date is the date of the printout, not the date of the program revision.

047243,000002:                                                                                                  ## Copyright:   Public domain.
047244,000003:                                                                                                  ## Filename:    FIXED-FIXED_CONSTANT_POOL.agc
047245,000004:                                                                                                  ## Purpose:     The main source file for Luminary revision 069.
047246,000005:                                                                                                  ##              It is part of the source code for the original release
047247,000006:                                                                                                  ##              of the flight software for the Lunar Module's (LM) Apollo
047248,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 10. The actual flown
047249,000008:                                                                                                  ##              version was Luminary 69 revision 2, which included a
047250,000009:                                                                                                  ##              newer lunar gravity model and only affected module 2.
047251,000010:                                                                                                  ##              This file is intended to be a faithful transcription, except
047252,000011:                                                                                                  ##              that the code format has been changed to conform to the
047253,000012:                                                                                                  ##              requirements of the yaYUL assembler rather than the
047254,000013:                                                                                                  ##              original YUL assembler.
047255,000014:                                                                                                  ## Reference:   pp. 1090-1094
047256,000015:                                                                                                  ## Assembler:   yaYUL
047257,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
047258,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
047259,000018:                                                                                                  ## Mod history: 2016-12-13 MAS  Created from Luminary 99.
047260,000019:                                                                                                  ##              2016-12-18 MAS  Updated from comment-proofed Luminary 99 version.
047261,000020:                                                                                                  ##              2017-01-02 RRB  Updated for Luminary 69.
047262,000021:                                                                                                  ##              2017-01-28 RSB  Proofed comment text using octopus/prooferComments
047263,000022:                                                                                                  ##                              but no errors found.
047264,000023:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
047265,000024: 

Page 1090

047267,000026:    4732                                           BLOCK    02                                    
047268,000027:    4732                                           COUNT*   $$/FCONS                              
047269,000028: 
047270,000029:                                                                                                  #  THE FOLLOWING TABLE OF 18 VALUES IS INDEXED.  DO NOT INSERT OR REMOVE ANY QUANTITIES.
047271,000030: 
047272,000031:    4732           37777        DPOSMAX            OCT      37777                                 #  MUST PRECEDE POSMAX
047273,000032:    4733           37777        POSMAX             OCT      37777                                 
047274,000033: 
047275,000034:    4734     4734               LIMITS             =        NEG1/2                                
047276,000035: 
047277,000036:    4734           57777        NEG1/2             OCT      -20000                                #  USED BY SIN ROUTINE (MUST BE TWO 
047278,000037:                                                                                                  #  LOCATIONS IN FRONT OF BIT14)
047279,000038: 
047280,000039:                                                                                                  #  BIT TABLE                                     
047281,000040: 
047282,000041:    4735           40000        BIT15              OCT      40000                                 
047283,000042:    4736           20000        BIT14              OCT      20000                                 
047284,000043:    4737           10000        BIT13              OCT      10000                                 
047285,000044:    4740           04000        BIT12              OCT      04000                                 
047286,000045:    4741           02000        BIT11              OCT      02000                                 
047287,000046:    4742           01000        BIT10              OCT      01000                                 
047288,000047:    4743           00400        BIT9               OCT      00400                                 
047289,000048:    4744           00200        BIT8               OCT      00200                                 
047290,000049:    4745           00100        BIT7               OCT      00100                                 
047291,000050:    4746           00040        BIT6               OCT      00040                                 
047292,000051:    4747           00020        BIT5               OCT      00020                                 
047293,000052:    4750           00010        BIT4               OCT      00010                                 
047294,000053:    4751           00004        BIT3               OCT      00004                                 
047295,000054:    4752           00002        BIT2               OCT      00002                                 
047296,000055:    4753           00001        BIT1               OCT      00001                                 
047297,000056: 
047298,000057:                                                                                                  #  DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
047299,000058:    4754           77777        NEG0               OCT      -0                                    #  MUST PRECEDE ZERO
047300,000059:    4755           00000        ZERO               OCT      0                                     #  MUST FOLLOW NEG0
047301,000060:                                                                                                  #  BIT1          OCT     00001
047302,000061:                                                                                                  #  NO.WDS        OCT     2               INTERPRETER
047303,000062:                                                                                                  #  OCTAL3        OCT     3               INTERPRETER
047304,000063:                                                                                                  #  R3D1          OCT     4               PINBALL
047305,000064:    4756           00005        FIVE               OCT      5                                     
047306,000065:                                                                                                  #  REVCNT        OCT     6               INTERPRETER
047307,000066:    4757           00007        SEVEN              OCT      7                                     
047308,000067:                                                                                                  #  BIT4          OCT     00010
047309,000068:                                                                                                  #  R2D1          OCT     11              PINBALL
047310,000069:    4760     4320               OCT11              =        R2D1                                  #  P20S
047311,000070:                                                                                                  #  BINCON        DEC     10              PINBALL         (OCTAL 12)
047312,000071:    4760           00013        ELEVEN             DEC      11         B-14                       
047313,000072:                                                                                                  #  OCT14         OCT     14              ALARM AND ABORT (FILLER)
047314,000073:    4761           00015        OCT15              OCT      15                                    
047315,000074:                                                                                                  #  R1D1          OCT     16              PINBALL
047316,000075:    4762           00017        LOW4               OCT      17                                    

Page 1091

047318,000077:                                                                                                  #  BIT5          OCT     00020
047319,000078:                                                                                                  #  ND1           OCT     21              PINBALL
047320,000079:                                                                                                  #  VD1           OCT     23              PINBALL
047321,000080:                                                                                                  #  OCT24         OCT     24              SERVICE ROUTINES
047322,000081:                                                                                                  #  MD1           OCT     25              PINBALL
047323,000082:    4763           00030        BITS4&5            OCT      30                                    
047324,000083:                                                                                                  #  OCT31         OCT     31              SERVICE ROUTINES
047325,000084:    4764           00033        OCT33              OCT      33                                    
047326,000085:    4765     4764               DEC27              =        OCT33                                 
047327,000086:    4765           00035        OCT35              OCT      35                                    
047328,000087:    4766     4765               DEC29              =        OCT35                                 
047329,000088:    4766           00032        CALLCODE           OCT      00032                                 
047330,000089:                                                                                                  #  LOW5          OCT     37              PINBALL
047331,000090:                                                                                                  #  33DEC         DEC     33              PINBALL         (OCTAL 41)
047332,000091:                                                                                                  #  34DEC         DEC     34              PINBALL         (OCTAL 42)
047333,000092:    4767           00045        TBUILDFX           DEC      37         B-14                       #  BUILDUP FOR CONVIENCE IN DAPTESTING
047334,000093:    4770           00046        TDECAYFX           DEC      38         B-14                       #  CONVENIENCE FOR DAPTESTING
047335,000094:                                                                                                  #  BIT6          OCT     00040
047336,000095:    4771           00050        OCT50              OCT      50                                    
047337,000096:    4772           00055        DEC45              DEC      45         B-14                       
047338,000097:    4773           00060        SUPER011           OCT      60                                    #  BITS FOR SUPERBNK SETTING 011.
047339,000098:    4774           00062        .5SEC              DEC      50         B-14                       
047340,000099:                                                                                                  #  BIT7          OCT     00100
047341,000100: 
047342,000101:    4775     4745               SUPER100           =        BIT7                                  #  BITS FOR SUPERBNK SETTING 100
047343,000102:                                                                                                  #  (LAST 4K OF ROPE)
047344,000103:    4775           00120        SUPER101           OCT      120                                   #  BITS FOR SUPERBNK SETTING 101
047345,000104:                                                                                                  #  OCT121        OCT     121             SERVICE ROUTINES
047346,000105:                                                                                                  #  (FIRST 8K OF ACM)
047347,000106:    4776           00140        SUPER110           OCT      140                                   #  BITS FOR SUPERBNK SETTING 110.
047348,000107:                                                                                                  #  (LAST 8K OF ACM)
047349,000108:    4777           00144        1SEC               DEC      100        B-14                       
047350,000109:                                                                                                  #  LOW7          OCT     177             INTERPRETER
047351,000110:                                                                                                  #  BIT8          OCT     00200
047352,000111:                                                                                                  #  OT215         OCT     215             ALARM AND ABORT
047353,000112:                                                                                                  #  8,5           OCT     00220           P20-P25 SUNDANCE
047354,000113:    5000           00310        2SECS              DEC      200        B-14                       
047355,000114:                                                                                                  #  LOW8          OCT     377             PINBALL
047356,000115:                                                                                                  #  BIT9          OCT     00400
047357,000116:    5001           00401        GN/CCODE           OCT      00401                                 #  SET S/C CONTROL SWITCH TO G/N
047358,000117:    5002           00454        3SECS              DEC      300        B-14                       
047359,000118:    5003           00620        4SECS              DEC      400        B-14                       
047360,000119:    5004           00777        LOW9               OCT      777                                   
047361,000120:                                                                                                  #  BIT10         OCT     01000
047362,000121:                                                                                                  #  5.5DEGS       DEC     .03056          P20-P25 SUNDANCE        (OCTAL 00765)
047363,000122:                                                                                                  #  OCT1103       OCT     1103            ALARM AND ABORT
047364,000123:    5005           01124        C5/2               DEC      .0363551                              #                        (OCTAL 01124)
047365,000124:    5006           01211        V05N09             VN       0509                                  #  (SAME AS OCTAL 1211)
047366,000125:    5007           01400        OCT1400            OCT      01400                                 
047367,000126:    5010           01426        V06N22             VN       0622                                  

Page 1092

047369,000128:                                                                                                  #  MID5          OCT     1740            PINBALL
047370,000129:    5011           01776        BITS2-10           OCT      1776                                  
047371,000130:    5012           01777        LOW10              OCT      1777                                  
047372,000131:                                                                                                  #  BIT11         OCT     02000
047373,000132:                                                                                                  #  2K+3          OCT     2003            PINBALL
047374,000133:    5013           02177        LOW7+2K            OCT      2177                                  #  OP CODE MASK + BANK 1 FBANK SETTING.
047375,000134:    5014           02400        EBANK5             OCT      02400                                 
047376,000135:    5015           03000        PRIO3              OCT      03000                                 
047377,000136:    5016           03400        EBANK7             OCT      03400                                 
047378,000137:                                                                                                  #  LOW11         OCT     3777            PINBALL
047379,000138:                                                                                                  #  BIT12         OCT     04000
047380,000139:                                                                                                  #  RELTAB        OCT     04025           T4RUPT
047381,000140:    5017           05000        PRIO5              OCT      05000                                 
047382,000141:    5020           06000        PRIO6              OCT      06000                                 
047383,000142:    5021           07000        PRIO7              OCT      07000                                 
047384,000143: 
047385,000144:                                                                                                  #  BIT13         OCT     10000
047386,000145:                                                                                                  #                OCT     10003           T4RUPT  RELTAB +1D
047387,000146:                                                                                                  #  13,7,2        OCT     10102           P20-P25 SUNDANCE
047388,000147:    5022           11000        PRIO11             OCT      11000                                 
047389,000148:                                                                                                  #  PRIO12        OCT     12000           BANKCALL
047390,000149:    5023           13000        PRIO13             OCT      13000                                 
047391,000150:    5024           14000        PRIO14             OCT      14000                                 
047392,000151:                                                                                                  #                OCT     14031           T4RUPT  RELTAB +2D
047393,000152:    5025           15000        PRIO15             OCT      15000                                 
047394,000153:    5026           16000        PRIO16             OCT      16000                                 
047395,000154:                                                                                                  #  85DEGS        DEC     .45556          P20-P25 SUNDANCE        (OCTAL 16450)
047396,000155:    5027           17000        PRIO17             OCT      17000                                 
047397,000156:    5030           17770        OCT17770           OCT      17770                                 
047398,000157:                                                                                                  #  BIT14         OCT     20000
047399,000158:                                                                                                  #                OCT     20033           T4RUPT  RELTAB +3D
047400,000159:    5031           21000        PRIO21             OCT      21000                                 
047401,000160:    7707                                           BLOCK    03                                    
047402,000161:    7707                                           COUNT*   $$/FCONS                              
047403,000162:    7707           22000        PRIO22             OCT      22000                                 #  SERVICE ROUTINES
047404,000163:    7710           23000        PRIO23             OCT      23000                                 
047405,000164:    7711           24000        PRIO24             OCT      24000                                 
047406,000165:                                                                                                  #  5/8+1         OCT     24001           SINGLE PRECISION SUBROUTINES
047407,000166:                                                                                                  #                OCT     24017           T4RUPT  RELTAB +4D
047408,000167:    7712           25000        PRIO25             OCT      25000                                 
047409,000168:    7713           26000        PRIO26             OCT      26000                                 
047410,000169:    7714           27000        PRIO27             OCT      27000                                 
047411,000170:                                                                                                  #  CHRPRIO       OCT     30000           PINBALL
047412,000171:                                                                                                  #                OCT     30036           T4RUPT  RELTAB +5D
047413,000172:    7715           31000        PRIO31             OCT      31000                                 
047414,000173:    7716           31103        C1/2               DEC      .7853134                              #                        (OCTAL 31103)
047415,000174:    7717           32000        PRIO32             OCT      32000                                 
047416,000175:    7720           33000        PRIO33             OCT      33000                                 
047417,000176:    7721           34000        PRIO34             OCT      34000                                 
047418,000177:                                                                                                  #                OCT     34034           T4RUPT  RELTAB +6D              

Page 1093

047420,000179:    7722           35000        PRIO35             OCT      35000                                 
047421,000180:    7723           36000        PRIO36             OCT      36000                                 
047422,000181:    7724           37000        PRIO37             OCT      37000                                 
047423,000182:    7725           37401        63/64+1            OCT      37401                                 
047424,000183:                                                                                                  #  MID7          OCT     37600           PINBALL
047425,000184:    7726           37766        OCT37766           OCT      37766                                 
047426,000185:    7727           37774        OCT37774           OCT      37774                                 
047427,000186:    7730           37776        OCT37776           OCT      37776                                 
047428,000187:                                                                                                  #  DPOSMAX       OCT     37777
047429,000188:                                                                                                  #  BIT15         OCT     40000
047430,000189:                                                                                                  #  OCT40001      OCT     40001           INTERPRETER (CS 1 INSTRUCTION)
047431,000190:    7731           40014        DLOADCOD           OCT      40014                                 
047432,000191:    7732           40015        DLOAD*             OCT      40015                                 
047433,000192:                                                                                                  #                OCT     40023           T4RUPT  RELTAB +7D
047434,000193:    7733           40040        BIT15+6            OCT      40040                                 
047435,000194:    7734           40200        OCT40200           OCT      40200                                 
047436,000195:                                                                                                  #                OCT     44035           T4RUPT  RELTAB +8D
047437,000196:                                                                                                  #                OCT     50037           T4RUPT   RELTAB +9D
047438,000197:                                                                                                  #                OCT     54000           T4RUPT   RELTAB +10D
047439,000198:    7735           57777        -BIT14             OCT      57777                                 
047440,000199:                                                                                                  #  RELTAB11      OCT     60000           T4RUPT
047441,000200:    7736           65552        C3/2               DEC      -.3216147                             #                        (OCTAL 65552)
047442,000201:    7737           70000        13,14,15           OCT      70000                                 
047443,000202:    7740           73777        -1/8               OCT      73777                                 
047444,000203:    7741           74000        HIGH4              OCT      74000                                 
047445,000204:    7742           74056        -ENDERAS           DEC      -2001      B-14                       #                        (OCTAL 74056)
047446,000205:                                                                                                  #  HI5           OCT     76000           PINBALL
047447,000206:    7743           77700        HIGH9              OCT      77700                                 
047448,000207:                                                                                                  #  -ENDVAC       DEC     -45             INTERPRETER             (OCTAL 77722)
047449,000208:                                                                                                  #  -OCT10        OCT     -10                                      (OCT 77767)
047450,000209:                                                                                                  #  NEG4          DEC     -4                                      (OCTAL 77773)
047451,000210:    7744           77774        NEG3               DEC      -3         B-14                       
047452,000211:    7745           77775        NEG2               OCT      77775                                 
047453,000212:    7746           77776        NEGONE             DEC      -1         B-14                       
047454,000213: 

Page 1094

047456,000215: 
047457,000216:                                                                                                  #  DEFINED BY EQUALS
047458,000217: 
047459,000218:                                                                                                  #  IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
047460,000219:                                                                                                  #  ACCIDENTAL DEFINITION CHANGES.
047461,000220: 
047462,000221:    7747     7746               MINUS1             =        NEG1                                  
047463,000222:    7747     7746               NEG1               =        NEGONE                                
047464,000223:    7747     4753               ONE                =        BIT1                                  
047465,000224:    7747     4752               TWO                =        BIT2                                  
047466,000225:    7747     6244               THREE              =        OCTAL3                                
047467,000226:    7747     6244               LOW2               =        THREE                                 
047468,000227:    7747     4751               FOUR               =        BIT3                                  
047469,000228:    7747     6241               SIX                =        REVCNT                                
047470,000229:    7747     4757               LOW3               =        SEVEN                                 
047471,000230:    7747     4750               EIGHT              =        BIT4                                  
047472,000231:    7747     4320               NINE               =        R2D1                                  
047473,000232:    7747     4363               TEN                =        BINCON                                
047474,000233:    7747     4760               NOUTCON            =        ELEVEN                                
047475,000234:    7747     4360               OCT23              =        VD1                                   
047476,000235:    7747     4362               OCT25              =        MD1                                   
047477,000236:    7747     4742               PRIO1              =        BIT10                                 
047478,000237:    7747     5007               EBANK3             =        OCT1400                               
047479,000238:    7747     4741               PRIO2              =        BIT11                                 
047480,000239:    7747     4775               OCT120             =        SUPER101                              
047481,000240:    7747     4776               OCT140             =        SUPER110                              
047482,000241:    7747     4741               2K                 =        BIT11                                 
047483,000242:    7747     4741               EBANK4             =        BIT11                                 
047484,000243:    7747     4740               PRIO4              =        BIT12                                 
047485,000244:    7747     5015               EBANK6             =        PRIO3                                 
047486,000245:    7747     4737               QUARTER            =        BIT13                                 
047487,000246:    7747     4737               PRIO10             =        BIT13                                 
047488,000247:    7747     7662               OCT10001           =        CCSL                                  
047489,000248:    7747     4736               POS1/2             =        HALF                                  
047490,000249:    7747     4736               PRIO20             =        BIT14                                 
047491,000250:    7747     4736               HALF               =        BIT14                                 
047492,000251:    7747     4355               PRIO30             =        CHRPRIO                               
047493,000252:    7747     4355               BIT13-14           =        PRIO30                                #  INTERPRETER USES IN PROCESSING STORECODE
047494,000253:    7747     6470               OCT30002           =        TLOAD      +1                         
047495,000254:    7747     7721               B12T14             =        PRIO34                                
047496,000255:    7747     4735               NEGMAX             =        BIT15                                 
047497,000256:    7747     4735               VLOADCOD           =        BIT15                                 
047498,000257:    7747     6106               VLOAD*             =        OCT40001                              
047499,000258:    7747     4101               OCT60000           =        RELTAB11                              
047500,000259:    7747     4350               BANKMASK           =        HI5                                   
047501,000260: 

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