Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

039222,000002:                                                                                                  ## Copyright:   Public domain.
039223,000003:                                                                                                  ## Filename:    LANDING_ANALOG_DISPLAYS.agc
039224,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary, build 099. It
039225,000005:                                                                                                  ##              is part of the source code for the Lunar Module's
039226,000006:                                                                                                  ##              (LM) Apollo Guidance Computer (AGC), Apollo 11.
039227,000007:                                                                                                  ## Assembler:   yaYUL
039228,000008:                                                                                                  ## Reference:   pp. 898-907
039229,000009:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>,
039230,000010:                                                                                                  ##              Fabrizio Bernardini <fabrizio@spacecraft.it>
039231,000011:                                                                                                  ## Website:     http://www.ibiblio.org/apollo.
039232,000012:                                                                                                  ## Mod history: 05/06/09 FB     Transcription Batch 4 Assignment.
039233,000013:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
039234,000014:                                                                                                  ##                              and corrected the errors found.
039235,000015:                                                                                                  ##
039236,000016:                                                                                                  ## The contents of the "Luminary099" files, in general, are transcribed 
039237,000017:                                                                                                  ## from scanned documents. 
039238,000018:                                                                                                  ##
039239,000019:                                                                                                  ##      Assemble revision 001 of AGC program Luminary099 by NASA
039240,000020:                                                                                                  ##      2021112-061.  July 14, 1969.  
039241,000021:                                                                                                  ##
039242,000022:                                                                                                  ##      Prepared by
039243,000023:                                                                                                  ##                      Massachusetts Institute of Technology
039244,000024:                                                                                                  ##                      75 Cambridge Parkway
039245,000025:                                                                                                  ##                      Cambridge, Massachusetts
039246,000026:                                                                                                  ##
039247,000027:                                                                                                  ##      under NASA contract NAS 9-4065.
039248,000028:                                                                                                  ##
039249,000029:                                                                                                  ## Refer directly to the online document mentioned above for further
039250,000030:                                                                                                  ## information.  Please report any errors to info@sandroid.org.
039251,000031: 

Page 898

039253,000033: 21,2154                                           BANK     21                                    
039254,000034: 21,2000                                           SETLOC   R10                                   
039255,000035: 21,2000                                           BANK                                           
039256,000036: 
039257,000037: 21,2154  E7,1536                                  EBANK=   UNIT/R/                               
039258,000038: 21,2154                                           COUNT*   $$/R10                                
039259,000039: 
039260,000040: 21,2154           23714        LANDISP            LXCH     PIPCTR1                               #  UPDATE TBASE2 AND PIPCTR SIMULTANEOUSLY.
039261,000041: 21,2155           40025                           CS       TIME1                                 
039262,000042: 21,2156           53056                           DXCH     TBASE2                                
039263,000043: 
039264,000044: 21,2157           40103                           CS       FLAGWRD7                              #  IS LANDING ANALOG DISPLAYS FLAG SET?
039265,000045: 21,2160           74741                           MASK     SWANDBIT                              
039266,000046: 21,2161           10000                           CCS      A                                     
039267,000047: 21,2162           13053                           TCF      DISPRSET                              #  NO.
039268,000048: 21,2163           31303                           CA       IMODES33                              #  BIT 7 = 0 (DO ALTRATE), =1 (DO ALT.)
039269,000049: 21,2164           74745                           MASK     BIT7                                  
039270,000050: 21,2165           10000                           CCS      A                                     
039271,000051: 21,2166           12240                           TCF      ALTOUT                                
039272,000052: 21,2167           02324        ALTROUT            TC       DISINDAT                              #  CHECK MODE SELECT SWITCH AND DIDFLG.
039273,000053: 21,2170           41303                           CS       IMODES33                              
039274,000054: 21,2171           74745                           MASK     BIT7                                  
039275,000055: 21,2172           27303                           ADS      IMODES33                              #  ALTERNATE ALTITUDE RATE WITH ALTITUDE.
039276,000056: 21,2173           34752                           CAF      BIT2                                  #  RATE COMMAND IS EXECUTED BEFORE RANGE.
039277,000057: 21,2174           00006                           EXTEND                                         
039278,000058: 21,2175           05014                           WOR      CHAN14                                #  ALTRATE (BIT2 = 1), ALTITUDE (BIT2 = 0).
039279,000059: 21,2176           31743        ARCOMP             CA       RUNIT                                 #  COMPUTE ALTRATE = RUNIT.VVECT M/CS *2(-6).
039280,000060: 21,2177           00006                           EXTEND                                         
039281,000061: 21,2200           71706                           MP       VVECT                                 #  MULTIPLY X-COMPONENTS.
039282,000062: 21,2201           56070                           XCH      RUPTREG1                              #  SAVE SINGLE PRECISION RESULT M/CS*2(-6).
039283,000063: 21,2202           31744                           CA       RUNIT      +1                         #  MULTIPLY Y-COMPONENTS.
039284,000064: 21,2203           00006                           EXTEND                                         
039285,000065: 21,2204           71707                           MP       VVECT      +1                         
039286,000066: 21,2205           26070                           ADS      RUPTREG1                              #  ACCUMULATE PARTIAL PRODUCTS.
039287,000067: 21,2206           31745                           CA       RUNIT      +2                         #  MULTIPLY Z-COMPONENTS.
039288,000068: 21,2207           00006                           EXTEND                                         
039289,000069: 21,2210           71710                           MP       VVECT      +2                         
039290,000070: 21,2211           26070                           ADS      RUPTREG1                              #  ALTITUDE RATE IN M/CS *2(-6).
039291,000071: 21,2212           32000                           CA       ARCONV                                #  CONVERT ALTRATE TO BIT UNITS (.5FPS/BIT)
039292,000072: 21,2213           00006                           EXTEND                                         
039293,000073: 21,2214           70070                           MP       RUPTREG1                              
039294,000074: 21,2215           20001                           DDOUBL                                         
039295,000075: 21,2216           20001                           DDOUBL                                         
039296,000076: 21,2217           56070                           XCH      RUPTREG1                              #  ALTITUDE RATE IN BIT UNITS*2(-14).
039297,000077: 21,2220           31716                           CA       DALTRATE                              #  ALTITUDE RATE COMPENSATION FACTOR.
039298,000078: 21,2221           00006                           EXTEND                                         
039299,000079: 21,2222           71715                           MP       DT                                    
039300,000080: 21,2223           60070                           AD       RUPTREG1                              
039301,000081: 21,2224           55711                           TS       ALTRATE                               #  ALTITUDE RATE IN BIT UNITS*2(-14).
039302,000082: 21,2225           41711                           CS       ALTRATE                               

Page 899

039304,000084: 21,2226           00006                           EXTEND                                         #  CHECK POLARITY OF ALTITUDE RATE.
039305,000085: 21,2227           62231                           BZMF     +2                                    
039306,000086: 21,2230           12233                           TCF      DATAOUT                               #  NEGATIVE - SEND POS. PULSES TO ALTM REG.
039307,000087: 21,2231           31711                           CA       ALTRATE                               #  POSITIVE OR ZERO - SET SIGN BIT = 1 AND
039308,000088: 21,2232           64735                           AD       BIT15                                 #  SEND TO ALTM REGISTER.  *DO NOT SEND +0*
039309,000089: 21,2233           54060        DATAOUT            TS       ALTM                                  #  ACTIVATE THE LANDING ANALOG DISPLAYS - -
039310,000090: 21,2234           34751                           CAF      BIT3                                  
039311,000091: 21,2235           00006                           EXTEND                                         
039312,000092: 21,2236           05014                           WOR      CHAN14                                #  BIT3 DRIVES THE ALT/ALTRATE METER.
039313,000093: 21,2237           15261                           TCF      TASKOVER                              #  EXIT
039314,000094: 
039315,000095: 21,2240           02324        ALTOUT             TC       DISINDAT                              #  CHECK MODE SELECT SWITCH AND DIDFLG.
039316,000096: 21,2241           44745                           CS       BIT7                                  
039317,000097: 21,2242           71303                           MASK     IMODES33                              
039318,000098: 21,2243           55303                           TS       IMODES33                              #  ALTERNATE ALTITUDE RATE WITH ALTITUDE.
039319,000099: 21,2244           44752                           CS       BIT2                                  
039320,000100: 21,2245           00006                           EXTEND                                         
039321,000101: 21,2246           03014                           WAND     CHAN14                                
039322,000102: 21,2247           11741                           CCS      ALTBITS                               #  = -1 IF OLD ALT. DATA TO BE EXTRAPOLATED.
039323,000103: 21,2250           12254                           TCF      +4                                    
039324,000104: 21,2251           12254                           TCF      +3                                    
039325,000105: 21,2252           12272                           TCF      OLDDATA                               
039326,000106: 21,2253           55741                           TS       ALTBITS                               #  SET ALTBITS FROM -0 TO +0.
039327,000107: 21,2254           44753                           CS       ONE                                   
039328,000108: 21,2255           53742                           DXCH     ALTBITS                               #  SET ALTBITS = -1 FOR SWITCH USE NEXT PASS.
039329,000109: 21,2256           53713                           DXCH     ALTSAVE                               
039330,000110: 21,2257           34742                           CA       BIT10                                 #  NEW ALTITUDE EXTRAPOLATION WITH ALTRATE.
039331,000111: 21,2260           56002                           XCH      Q                                     
039332,000112: 21,2261           22007                           LXCH     7                                     #  ZL
039333,000113: 21,2262           31715                           CA       DT                                    
039334,000114: 21,2263           00006                           EXTEND                                         
039335,000115: 21,2264           10002                           DV       Q                                     #  RESCALE DT*2(-14) TO *2(-9) TIME IN CS.
039336,000116: 21,2265           00006                           EXTEND                                         
039337,000117: 21,2266           72002                           MP       ARTOA2                                #  .0021322 *2(+8)
039338,000118: 21,2267           12273                           TCF      OLDDATA    +1                         #  RATE APPLIES FOR DT CS.
039339,000119: 
039340,000120: 21,2270           53713        ZDATA2             DXCH     ALTSAVE                               
039341,000121: 21,2271           12313                           TCF      NEWDATA                               
039342,000122: 21,2272           32001        OLDDATA            CA       ARTOA                                 #  RATE APPLIES FOR .5 SEC. (4X/SEC. CYCLE)
039343,000123: 21,2273           00006                           EXTEND                                         
039344,000124: 21,2274           71711                           MP       ALTRATE                               #  EXTRAPOLATE WITH ALTITUDE RATE.
039345,000125: 21,2275           20001                           DDOUBL                                         
039346,000126: 21,2276           61713                           AD       ALTSAVE    +1                         
039347,000127: 21,2277           55713                           TS       ALTSAVE    +1                         
039348,000128: 21,2300           34755                           CAF      ZERO                                  
039349,000129: 21,2301           27712                           ADS      ALTSAVE                               
039350,000130: 21,2302           34733                           CAF      POSMAX                                #  FORCE SIGN AGREEMENT ASSUMING A
039351,000131: 21,2303           64753                           AD       ONE                                   #  NON-NEGATIVE ALTSAVE.
039352,000132: 21,2304           61713                           AD       ALTSAVE    +1                         #  IF ALTSAVE IS NEGATIVE, ZERO ALTSAVE
039353,000133: 21,2305           55713                           TS       ALTSAVE    +1                         #  AND ALTSAVE +1 AT ZERODATA.

Page 900

039355,000135: 21,2306           34755                           CAF      ZERO                                  
039356,000136: 21,2307           64733                           AD       POSMAX                                
039357,000137: 21,2310           61712                           AD       ALTSAVE                               
039358,000138: 21,2311           55712                           TS       ALTSAVE                               #  POSSIBLY SKIP TO NEWDATA.
039359,000139: 21,2312           13050                           TCF      ZERODATA                              
039360,000140: 21,2313           11713        NEWDATA            CCS      ALTSAVE    +1                         
039361,000141: 21,2314           12320                           TCF      +4                                    
039362,000142: 21,2315           12320                           TCF      +3                                    
039363,000143: 21,2316           34755                           CAF      ZERO                                  #  SET NEGATIVE ALTSAVE +1 TO +0.
039364,000144: 21,2317           55713                           TS       ALTSAVE    +1                         
039365,000145: 21,2320           11712                           CCS      ALTSAVE                               #  PROVIDE A 15 BIT UNSIGNED OUTPUT.
039366,000146: 21,2321           34735                           CAF      BIT15                                 #  THE HI-ORDER PART IS +1 OR +0.
039367,000147: 21,2322           61713                           AD       ALTSAVE    +1                         
039368,000148: 21,2323           12233                           TCF      DATAOUT                               #  DISPATCH UNSIGNED BITS TO ALTM REG.
039369,000149: 21,2324           00006        DISINDAT           EXTEND                                         
039370,000150: 21,2325           23714                           QXCH     LADQSAVE                              #  SAVE RETURN TO ALTROUT +1 OR ALTOUT +1
039371,000151: 21,2326           34746                           CAF      BIT6                                  
039372,000152: 21,2327           00006                           EXTEND                                         #  WISHETH THE ASTRONAUT THE ANALOG
039373,000153: 21,2330           02030                           RAND     CHAN30                                #  DISPLAYS?  I.E.,
039374,000154: 21,2331           10000                           CCS      A                                     #  IS THE MODE SELECT SWITCH IN PGNCS?
039375,000155: 21,2332           13053                           TCF      DISPRSET                              #  NO.  ASTRONAUT REQUESTS NO INERTIAL DATA
039376,000156: 21,2333           40075                           CS       FLAGWRD1                              #  YES.  CHECK STATUS OF DIDFLAG.
039377,000157: 21,2334           74736                           MASK     DIDFLBIT                              
039378,000158: 21,2335           00006                           EXTEND                                         
039379,000159: 21,2336           12374                           BZF      SPEEDRUN                              #  SET.  PERFORM DATA DISPLAY SEQUENCE.
039380,000160: 21,2337           40075                           CS       FLAGWRD1                              #  RESET.  PERFORM INITIALIZATION FUNCTIONS.
039381,000161: 21,2340           74736                           MASK     DIDFLBIT                              
039382,000162: 21,2341           26075                           ADS      FLAGWRD1                              #  SET DIDFLAG.
039383,000163: 21,2342           44745                           CS       BIT7                                  
039384,000164: 21,2343           71303                           MASK     IMODES33                              #  TO DISPLAY ALTRATE FIRST AND ALT. SECOND
039385,000165: 21,2344           55303                           TS       IMODES33                              
039386,000166: 21,2345           40074                           CS       FLAGWRD0                              #  ARE WE IN DESCENT TRAJECTORY?
039387,000167: 21,2346           74752                           MASK     R10FLBIT                              
039388,000168: 21,2347           00006                           EXTEND                                         
039389,000169: 21,2350           15261                           BZF      TASKOVER                              #  NO
039390,000170: 21,2351           34744                           CAF      BIT8                                  #  YES.
039391,000171: 21,2352           00006                           EXTEND                                         
039392,000172: 21,2353           05012                           WOR      CHAN12                                #  SET DISPLAY INERTIAL DATA OUTBIT.
039393,000173: 21,2354           34755                           CAF      ZERO                                  
039394,000174: 21,2355           55702                           TS       TRAKLATV                              #  LATERAL VELOCITY MONITOR FLAG
039395,000175: 21,2356           55703                           TS       TRAKFWDV                              #  FORWARD VELOCITY MONITOR FLAG
039396,000176: 21,2357           55676                           TS       LATVMETR                              #  LATVEL MONITOR METER
039397,000177: 21,2360           55677                           TS       FORVMETR                              #  FORVEL MONITOR METER
039398,000178: 21,2361           34750                           CAF      BIT4                                  
039399,000179: 21,2362           05173                           TC       TWIDDLE                               
039400,000180: 21,2363           02365                           ADRES    INTLZE                                
039401,000181: 21,2364           15261                           TCF      TASKOVER                              
039402,000182: 21,2365           34752        INTLZE             CAF      BIT2                                  
039403,000183: 21,2366           00006                           EXTEND                                         
039404,000184: 21,2367           05012                           WOR      CHAN12                                #  ENABLE RR ERROR COUNTER.

Page 901

039406,000186: 21,2370           41303                           CS       IMODES33                              
039407,000187: 21,2371           74744                           MASK     BIT8                                  
039408,000188: 21,2372           27303                           ADS      IMODES33                              #  SET INERTIAL DATA FLAG.
039409,000189: 21,2373           15261                           TCF      TASKOVER                              
039410,000190: 
039411,000191: 21,2374           41235        SPEEDRUN           CS       PIPTIME    +1                         #  UPDATE THE VELOCITY VECTOR
039412,000192: 21,2375           60025                           AD       TIME1                                 #  COMPUTE T - TN
039413,000193: 21,2376           64736                           AD       HALF                                  #  CORRECT FOR POSSIBLE OVERFLOW OF TIME1.
039414,000194: 21,2377           64736                           AD       HALF                                  
039415,000195: 21,2400           57715                           XCH      DT                                    #  SAVE FOR LATER USE
039416,000196: 21,2401           34777                           CA       1SEC                                  
039417,000197: 21,2402           54065                           TS       ITEMP5                                #  INITIALIZE FOR DIVISION LATER
039418,000198: 21,2403           00006                           EXTEND                                         
039419,000199: 21,2404           31237                           DCA      GDT/2                                 #  COMPUTE THE X-COMPONENT OF VELOCITY.
039420,000200: 21,2405           20001                           DDOUBL                                         
039421,000201: 21,2406           20001                           DDOUBL                                         
039422,000202: 21,2407           00006                           EXTEND                                         
039423,000203: 21,2410           71715                           MP       DT                                    
039424,000204: 21,2411           00006                           EXTEND                                         
039425,000205: 21,2412           10065                           DV       ITEMP5                                
039426,000206: 21,2413           57706                           XCH      VVECT                                 #  VVECT = G(T-TN) M/CS *2(-5)
039427,000207: 21,2414           00006                           EXTEND                                         
039428,000208: 21,2415           31527                           DCA      V                                     #  M/CS *2(-7)
039429,000209: 21,2416           20001                           DDOUBL                                         #  RESCALE TO 2(-5)
039430,000210: 21,2417           20001                           DDOUBL                                         
039431,000211: 21,2420           27706                           ADS      VVECT                                 #  VVECT = VN + G(T-TN) M/CS *2(-5)
039432,000212: 21,2421           30037                           CA       PIPAX                                 #  DELV CM/SEC *2(-14)
039433,000213: 21,2422           61160                           AD       PIPATMPX                              #  IN CASE PIPAX HAS BEEN ZEROED
039434,000214: 21,2423           00006                           EXTEND                                         
039435,000215: 21,2424           72004                           MP       KPIP1(5)                              #  DELV M/CS *2(-5)
039436,000216: 21,2425           27706                           ADS      VVECT                                 #  VVECT = VN + DELV + GN(T-TN) M/CS *2(-5)
039437,000217: 21,2426           00006                           EXTEND                                         
039438,000218: 21,2427           31241                           DCA      GDT/2      +2                         #  COMPUTE THE Y-COMPONENT OF VELOCITY.
039439,000219: 21,2430           20001                           DDOUBL                                         
039440,000220: 21,2431           20001                           DDOUBL                                         
039441,000221: 21,2432           00006                           EXTEND                                         
039442,000222: 21,2433           71715                           MP       DT                                    
039443,000223: 21,2434           00006                           EXTEND                                         
039444,000224: 21,2435           10065                           DV       ITEMP5                                
039445,000225: 21,2436           57707                           XCH      VVECT      +1                         
039446,000226: 21,2437           00006                           EXTEND                                         
039447,000227: 21,2440           31531                           DCA      V          +2                         
039448,000228: 21,2441           20001                           DDOUBL                                         
039449,000229: 21,2442           20001                           DDOUBL                                         
039450,000230: 21,2443           27707                           ADS      VVECT      +1                         
039451,000231: 21,2444           30040                           CA       PIPAY                                 
039452,000232: 21,2445           61161                           AD       PIPATMPY                              
039453,000233: 21,2446           00006                           EXTEND                                         
039454,000234: 21,2447           72004                           MP       KPIP1(5)                              
039455,000235: 21,2450           27707                           ADS      VVECT      +1                         

Page 902

039457,000237: 21,2451           00006                           EXTEND                                         
039458,000238: 21,2452           31243                           DCA      GDT/2      +4                         #  COMPUTE THE Z-COMPONENT OF VELOCITY.
039459,000239: 21,2453           20001                           DDOUBL                                         
039460,000240: 21,2454           20001                           DDOUBL                                         
039461,000241: 21,2455           00006                           EXTEND                                         
039462,000242: 21,2456           71715                           MP       DT                                    
039463,000243: 21,2457           00006                           EXTEND                                         
039464,000244: 21,2460           10065                           DV       ITEMP5                                
039465,000245: 21,2461           57710                           XCH      VVECT      +2                         
039466,000246: 21,2462           00006                           EXTEND                                         
039467,000247: 21,2463           31533                           DCA      V          +4                         
039468,000248: 21,2464           20001                           DDOUBL                                         
039469,000249: 21,2465           20001                           DDOUBL                                         
039470,000250: 21,2466           27710                           ADS      VVECT      +2                         
039471,000251: 21,2467           30041                           CA       PIPAZ                                 
039472,000252: 21,2470           61162                           AD       PIPATMPZ                              
039473,000253: 21,2471           00006                           EXTEND                                         
039474,000254: 21,2472           72004                           MP       KPIP1(5)                              
039475,000255: 21,2473           27710                           ADS      VVECT      +2                         
039476,000256: 
039477,000257: 21,2474           34751                           CAF      BIT3                                  #  PAUSE 40 MS TO LET OTHER RUPTS IN.
039478,000258: 21,2475           05224                           TC       VARDELAY                              
039479,000259: 
039480,000260: 21,2476           40074                           CS       FLAGWRD0                              #  ARE WE IN DESCENT TRAJECTORY?
039481,000261: 21,2477           74752                           MASK     R10FLBIT                              
039482,000262: 21,2500           10000                           CCS      A                                     
039483,000263: 21,2501           12503                           TCF      +2                                    #  YES.
039484,000264: 21,2502           01714                           TC       LADQSAVE                              #  NO.
039485,000265: 
039486,000266: 21,2503           31733                           CA       DELVS                                 #  HI X OF VELOCITY CORRECTION TERM.
039487,000267: 21,2504           61706                           AD       VVECT                                 #  HI X OF UPDATED VELOCITY VECTOR.
039488,000268: 21,2505           54061                           TS       ITEMP1                                #  = VX - DVX M/CS *2(-5).
039489,000269: 21,2506           31735                           CA       DELVS      +2                         #     Y
039490,000270: 21,2507           61707                           AD       VVECT      +1                         #     Y
039491,000271: 21,2510           54062                           TS       ITEMP2                                #  = VY - DVY M/CS *2(-5).
039492,000272: 21,2511           31737                           CA       DELVS      +4                         #     Z
039493,000273: 21,2512           61710                           AD       VVECT      +2                         #     Z
039494,000274: 21,2513           54063                           TS       ITEMP3                                #  = VZ - DVZ M/CS *2(-5).
039495,000275: 21,2514           30061                           CA       ITEMP1                                #  COMPUTE VHY, VELOCITY DIRECTED ALONG THE
039496,000276: 21,2515           00006                           EXTEND                                         #  Y-COORDINATE.
039497,000277: 21,2516           71717                           MP       UHYP                                  #  HI X OF CROSS-RANGE HALF-UNIT VECTOR.
039498,000278: 21,2517           56070                           XCH      RUPTREG1                              
039499,000279: 21,2520           30062                           CA       ITEMP2                                
039500,000280: 21,2521           00006                           EXTEND                                         
039501,000281: 21,2522           71721                           MP       UHYP       +2                         #  Y
039502,000282: 21,2523           26070                           ADS      RUPTREG1                              #  ACCUMULATE PARTIAL PRODUCTS.
039503,000283: 21,2524           30063                           CA       ITEMP3                                
039504,000284: 21,2525           00006                           EXTEND                                         
039505,000285: 21,2526           71723                           MP       UHYP       +4                         #  Z
039506,000286: 21,2527           26070                           ADS      RUPTREG1                              

Page 903

039508,000288: 21,2530           30070                           CA       RUPTREG1                              
039509,000289: 21,2531           60000                           DOUBLE                                         
039510,000290: 21,2532           57704                           XCH      VHY                                   #  VHY=VMP.UHYP M/CS*2(-5).
039511,000291: 21,2533           30061                           CA       ITEMP1                                #  NOW COMPUTE VHZ, VELOCITY DIRECTED ALONG
039512,000292: 21,2534           00006                           EXTEND                                         #  THE Z-COORDINATE.
039513,000293: 21,2535           71725                           MP       UHZP                                  #  HI X OF DOWN-RANGE HALF-UNIT VECTOR.
039514,000294: 21,2536           56070                           XCH      RUPTREG1                              
039515,000295: 21,2537           30062                           CA       ITEMP2                                
039516,000296: 21,2540           00006                           EXTEND                                         
039517,000297: 21,2541           71727                           MP       UHZP       +2                         #  Y
039518,000298: 21,2542           26070                           ADS      RUPTREG1                              #  ACCUMULATE PARTIAL PRODUCTS.
039519,000299: 21,2543           30063                           CA       ITEMP3                                
039520,000300: 21,2544           00006                           EXTEND                                         
039521,000301: 21,2545           71731                           MP       UHZP       +4                         #  Z
039522,000302: 21,2546           26070                           ADS      RUPTREG1                              
039523,000303: 21,2547           30070                           CA       RUPTREG1                              
039524,000304: 21,2550           60000                           DOUBLE                                         
039525,000305: 21,2551           57705                           XCH      VHZ                                   #  VHZ = VMP.UHZP M/CS*2(-5).
039526,000306: 21,2552           35015        GET22/32           CAF      EBANK6                                #  GET SIN(AOG),COS(AOG) FROM GPMATRIX.
039527,000307: 21,2553           54003                           TS       EBANK                                 
039528,000308: 21,2554  E6,1417                                  EBANK=   M22                                   
039529,000309: 21,2554           31417                           CA       M22                                   
039530,000310: 21,2555           54063                           TS       ITEMP3                                
039531,000311: 21,2556           31420                           CA       M32                                   
039532,000312: 21,2557           54064                           TS       ITEMP4                                
039533,000313: 21,2560           35016                           CAF      EBANK7                                
039534,000314: 21,2561           54003                           TS       EBANK                                 
039535,000315: 21,2562  E7,1536                                  EBANK=   UNIT/R/                               
039536,000316: 21,2562           30064        LATFWDV            CA       ITEMP4                                #  COMPUTE LATERAL AND FORWARD VELOCITIES.
039537,000317: 21,2563           00006                           EXTEND                                         
039538,000318: 21,2564           71704                           MP       VHY                                   
039539,000319: 21,2565           56070                           XCH      RUPTREG1                              
039540,000320: 21,2566           30063                           CA       ITEMP3                                
039541,000321: 21,2567           00006                           EXTEND                                         
039542,000322: 21,2570           71705                           MP       VHZ                                   
039543,000323: 21,2571           26070                           ADS      RUPTREG1                              #  = VHY(COS)AOG+VHZ(SIN)AOG M/CS *2(-5)
039544,000324: 21,2572           32003                           CA       VELCONV                               #  CONVERT LATERAL VELOCITY TO BIT UNITS.
039545,000325: 21,2573           00006                           EXTEND                                         
039546,000326: 21,2574           70070                           MP       RUPTREG1                              
039547,000327: 21,2575           20001                           DDOUBL                                         
039548,000328: 21,2576           57700                           XCH      LATVEL                                #  LATERAL VELOCITY IN BIT UNITS *2(-14).
039549,000329: 21,2577           30064                           CA       ITEMP4                                #  COMPUTE FORWARD VELOCITY.
039550,000330: 21,2600           00006                           EXTEND                                         
039551,000331: 21,2601           71705                           MP       VHZ                                   
039552,000332: 21,2602           56070                           XCH      RUPTREG1                              
039553,000333: 21,2603           30063                           CA       ITEMP3                                
039554,000334: 21,2604           00006                           EXTEND                                         
039555,000335: 21,2605           71704                           MP       VHY                                   
039556,000336: 21,2606           40000                           CS       A                                     
039557,000337: 21,2607           26070                           ADS      RUPTREG1                              #  =VHZ(COS)AOG-VHY(SIN)AOG M/CS *2(-5).

Page 904

039559,000339: 21,2610           32003                           CA       VELCONV                               #  CONVERT FORWARD VELOCITY TO BIT UNITS.
039560,000340: 21,2611           00006                           EXTEND                                         
039561,000341: 21,2612           70070                           MP       RUPTREG1                              
039562,000342: 21,2613           20001                           DDOUBL                                         
039563,000343: 21,2614           57701                           XCH      FORVEL                                #  FORWARD VELOCITY IN BIT UNITS *2(-14).
039564,000344: 
039565,000345: 21,2615           42005                           CS       MAXVBITS                              #  ACC.=-199.9989 FT./SEC.
039566,000346: 21,2616           54066                           TS       ITEMP6                                #  -547 BIT UNITS (OCTAL) AT 0.5571 FPS/BIT
039567,000347: 
039568,000348: 21,2617           34753                           CAF      ONE                                   #  LOOP TWICE.
039569,000349: 21,2620           54065        VMONITOR           TS       ITEMP5                                #  FORWARD AND LATERAL VELOCITY LANDING
039570,000350: 21,2621           50065                           INDEX    ITEMP5                                #        ANALOG DISPLAYS MONITOR.
039571,000351: 21,2622           11700                           CCS      LATVEL                                
039572,000352: 21,2623           12627                           TCF      +4                                    
039573,000353: 21,2624           12730                           TCF      LVLIMITS                              
039574,000354: 21,2625           12635                           TCF      +8D                                   
039575,000355: 21,2626           12730                           TCF      LVLIMITS                              
039576,000356: 21,2627           50065                           INDEX    ITEMP5                                
039577,000357: 21,2630           41700                           CS       LATVEL                                
039578,000358: 21,2631           62005                           AD       MAXVBITS                              #  +199.9989 FT./SEC.
039579,000359: 21,2632           00006                           EXTEND                                         
039580,000360: 21,2633           62643                           BZMF     CHKLASTY                              
039581,000361: 21,2634           12730                           TCF      LVLIMITS                              
039582,000362: 21,2635           50065                           INDEX    ITEMP5                                
039583,000363: 21,2636           31700                           CA       LATVEL                                
039584,000364: 21,2637           62005                           AD       MAXVBITS                              
039585,000365: 21,2640           00006                           EXTEND                                         
039586,000366: 21,2641           62643                           BZMF     +2                                    
039587,000367: 21,2642           12730                           TCF      LVLIMITS                              
039588,000368: 21,2643           50065        CHKLASTY           INDEX    ITEMP5                                
039589,000369: 21,2644           11676                           CCS      LATVMETR                              
039590,000370: 21,2645           12651                           TCF      +4                                    
039591,000371: 21,2646           12662                           TCF      LASTOK                                
039592,000372: 21,2647           12656                           TCF      +7                                    
039593,000373: 21,2650           12662                           TCF      LASTOK                                
039594,000374: 21,2651           50065                           INDEX    ITEMP5                                
039595,000375: 21,2652           31700                           CA       LATVEL                                
039596,000376: 21,2653           00006                           EXTEND                                         
039597,000377: 21,2654           62701                           BZMF     LASTPOSY   +5                         
039598,000378: 21,2655           12662                           TCF      +5                                    
039599,000379: 21,2656           50065                           INDEX    ITEMP5                                
039600,000380: 21,2657           41700                           CS       LATVEL                                
039601,000381: 21,2660           00006                           EXTEND                                         
039602,000382: 21,2661           62716                           BZMF     LASTNEGY   +4                         
039603,000383: 21,2662           50065        LASTOK             INDEX    ITEMP5                                
039604,000384: 21,2663           11702                           CCS      TRAKLATV                              
039605,000385: 21,2664           12674                           TCF      LASTPOSY                              
039606,000386: 21,2665           12667                           TCF      +2                                    
039607,000387: 21,2666           12712                           TCF      LASTNEGY                              
039608,000388: 21,2667           50065                           INDEX    ITEMP5                                

Page 905

039610,000390: 21,2670           31700                           CA       LATVEL                                
039611,000391: 21,2671           00006                           EXTEND                                         
039612,000392: 21,2672           62720                           BZMF     NEGVMAXY                              
039613,000393: 21,2673           12703                           TCF      POSVMAXY                              
039614,000394: 21,2674           50065        LASTPOSY           INDEX    ITEMP5                                
039615,000395: 21,2675           31700                           CA       LATVEL                                
039616,000396: 21,2676           00006                           EXTEND                                         
039617,000397: 21,2677           62701                           BZMF     +2                                    
039618,000398: 21,2700           12703                           TCF      POSVMAXY                              
039619,000399: 21,2701           42005                           CS       MAXVBITS                              
039620,000400: 21,2702           13024                           TCF      ZEROLSTY                              
039621,000401: 21,2703           50065        POSVMAXY           INDEX    ITEMP5                                
039622,000402: 21,2704           41676                           CS       LATVMETR                              
039623,000403: 21,2705           62005                           AD       MAXVBITS                              
039624,000404: 21,2706           50065                           INDEX    ITEMP5                                
039625,000405: 21,2707           56072                           XCH      RUPTREG3                              
039626,000406: 21,2710           34753                           CAF      ONE                                   
039627,000407: 21,2711           13027                           TCF      ZEROLSTY   +3                         
039628,000408: 21,2712           50065        LASTNEGY           INDEX    ITEMP5                                
039629,000409: 21,2713           31700                           CA       LATVEL                                
039630,000410: 21,2714           00006                           EXTEND                                         
039631,000411: 21,2715           62720                           BZMF     NEGVMAXY                              
039632,000412: 21,2716           32005                           CA       MAXVBITS                              
039633,000413: 21,2717           13024                           TCF      ZEROLSTY                              
039634,000414: 21,2720           50065        NEGVMAXY           INDEX    ITEMP5                                
039635,000415: 21,2721           31676                           CA       LATVMETR                              
039636,000416: 21,2722           62005                           AD       MAXVBITS                              
039637,000417: 21,2723           40000                           COM                                            
039638,000418: 21,2724           50065                           INDEX    ITEMP5                                
039639,000419: 21,2725           56072                           XCH      RUPTREG3                              
039640,000420: 21,2726           44753                           CS       ONE                                   
039641,000421: 21,2727           13027                           TCF      ZEROLSTY   +3                         
039642,000422: 21,2730           50065        LVLIMITS           INDEX    ITEMP5                                
039643,000423: 21,2731           11702                           CCS      TRAKLATV                              
039644,000424: 21,2732           12761                           TCF      LATVPOS                               
039645,000425: 21,2733           12735                           TCF      +2                                    
039646,000426: 21,2734           12766                           TCF      LATVNEG                               
039647,000427: 21,2735           50065                           INDEX    ITEMP5                                
039648,000428: 21,2736           41676                           CS       LATVMETR                              
039649,000429: 21,2737           00006                           EXTEND                                         
039650,000430: 21,2740           62742                           BZMF     +2                                    
039651,000431: 21,2741           12775                           TCF      NEGLMLV                               
039652,000432: 21,2742           50065                           INDEX    ITEMP5                                
039653,000433: 
039654,000434: 21,2743           41700                           CS       LATVEL                                
039655,000435: 21,2744           00006                           EXTEND                                         
039656,000436: 21,2745           63020                           BZMF     LVMINLM                               
039657,000437: 21,2746           60066                           AD       ITEMP6                                
039658,000438: 21,2747           50065                           INDEX    ITEMP5                                
039659,000439: 21,2750           61676                           AD       LATVMETR                              
039660,000440: 21,2751           00006                           EXTEND                                         

Page 906

039662,000442: 21,2752           63020                           BZMF     LVMINLM                               
039663,000443: 21,2753           50065                           INDEX    ITEMP5                                
039664,000444: 21,2754           61700                           AD       LATVEL                                
039665,000445: 21,2755           00006                           EXTEND                                         
039666,000446: 21,2756           50065                           INDEX    ITEMP5                                
039667,000447: 21,2757           61676                           SU       LATVMETR                              
039668,000448: 21,2760           13024                           TCF      ZEROLSTY                              
039669,000449: 21,2761           50065        LATVPOS            INDEX    ITEMP5                                
039670,000450: 21,2762           41700                           CS       LATVEL                                
039671,000451: 21,2763           00006                           EXTEND                                         
039672,000452: 21,2764           63020                           BZMF     LVMINLM                               
039673,000453: 21,2765           12772                           TCF      +5                                    
039674,000454: 21,2766           50065        LATVNEG            INDEX    ITEMP5                                
039675,000455: 21,2767           31700                           CA       LATVEL                                
039676,000456: 21,2770           00006                           EXTEND                                         
039677,000457: 21,2771           63020                           BZMF     LVMINLM                               
039678,000458: 21,2772           50065                           INDEX    ITEMP5                                
039679,000459: 21,2773           41676                           CS       LATVMETR                              
039680,000460: 21,2774           13024                           TCF      ZEROLSTY                              
039681,000461: 21,2775           50065        NEGLMLV            INDEX    ITEMP5                                
039682,000462: 21,2776           31700                           CA       LATVEL                                
039683,000463: 21,2777           00006                           EXTEND                                         
039684,000464: 21,3000           63020                           BZMF     LVMINLM                               
039685,000465: 21,3001           32005                           CA       MAXVBITS                              
039686,000466: 21,3002           50065                           INDEX    ITEMP5                                
039687,000467: 21,3003           61676                           AD       LATVMETR                              
039688,000468: 21,3004           40000                           COM                                            
039689,000469: 21,3005           50065                           INDEX    ITEMP5                                
039690,000470: 21,3006           61700                           AD       LATVEL                                
039691,000471: 21,3007           00006                           EXTEND                                         
039692,000472: 21,3010           63020                           BZMF     LVMINLM                               
039693,000473: 21,3011           00006                           EXTEND                                         
039694,000474: 21,3012           50065                           INDEX    ITEMP5                                
039695,000475: 21,3013           61700                           SU       LATVEL                                
039696,000476: 21,3014           50065                           INDEX    ITEMP5                                
039697,000477: 21,3015           61676                           AD       LATVMETR                              
039698,000478: 21,3016           40000                           COM                                            
039699,000479: 21,3017           13024                           TCF      ZEROLSTY                              
039700,000480: 21,3020           50065        LVMINLM            INDEX    ITEMP5                                
039701,000481: 21,3021           41676                           CS       LATVMETR                              
039702,000482: 21,3022           50065                           INDEX    ITEMP5                                
039703,000483: 21,3023           61700                           AD       LATVEL                                
039704,000484: 21,3024           50065        ZEROLSTY           INDEX    ITEMP5                                
039705,000485: 21,3025           56072                           XCH      RUPTREG3                              
039706,000486: 21,3026           34755                           CAF      ZERO                                  
039707,000487: 21,3027           50065                           INDEX    ITEMP5                                
039708,000488: 21,3030           55702                           TS       TRAKLATV                              
039709,000489: 21,3031           50065                           INDEX    ITEMP5                                
039710,000490: 21,3032           30072                           CA       RUPTREG3                              
039711,000491: 21,3033           64754                           AD       NEG0                                  #  AVOIDS +0 DINC HARDWARE MALFUNCTION

Page 907

039713,000493: 21,3034           50065                           INDEX    ITEMP5                                
039714,000494: 21,3035           54053                           TS       CDUTCMD                               
039715,000495: 21,3036           50065                           INDEX    ITEMP5                                
039716,000496: 21,3037           30072                           CA       RUPTREG3                              
039717,000497: 21,3040           50065                           INDEX    ITEMP5                                
039718,000498: 21,3041           27676                           ADS      LATVMETR                              
039719,000499: 21,3042           10065                           CCS      ITEMP5                                #  FIRST MONITOR FORWARD THEN LATERAL VEL.
039720,000500: 21,3043           12620                           TCF      VMONITOR                              
039721,000501: 
039722,000502: 21,3044           35020                           CAF      BITSET                                #  DRIVE THE X-POINTER DISPLAY.
039723,000503: 21,3045           00006                           EXTEND                                         
039724,000504: 21,3046           05014                           WOR      CHAN14                                
039725,000505: 21,3047           01714                           TC       LADQSAVE                              #  GO TO ALTROUT +1 OR TO ALTOUT +1
039726,000506: 21,3050           34755        ZERODATA           CAF      ZERO                                  #  ZERO ALTSAVE AND ALTSAVE +1 - - -
039727,000507: 21,3051           54001                           TS       L                                     #        NO NEGATIVE ALTITUDES ALLOWED.
039728,000508: 21,3052           12270                           TCF      ZDATA2                                
039729,000509: 
039730,000510:                                                                                                  #  ************************************************************************
039731,000511: 
039732,000512: 21,3053           40074        DISPRSET           CS       FLAGWRD0                              #  ARE WE IN DESCENT TRAJECTORY?
039733,000513: 21,3054           74752                           MASK     R10FLBIT                              
039734,000514: 21,3055           00006                           EXTEND                                         
039735,000515: 21,3056           13067                           BZF      ABORTON                               #  NO.
039736,000516: 21,3057           34744                           CAF      BIT8                                  #  YES.
039737,000517: 21,3060           71303                           MASK     IMODES33                              #  CHECK IF INERTIAL DATA JUST DISPLAYED.
039738,000518: 21,3061           10000                           CCS      A                                     
039739,000519: 21,3062           34752                           CAF      BIT2                                  #  YES. DISABLE RR ERROR COUNTER
039740,000520: 21,3063           64744                           AD       BIT8                                  #  NO.  REMOVE DISPLAY INERTIAL DATA
039741,000521: 21,3064           40000                           COM                                            
039742,000522: 21,3065           00006                           EXTEND                                         
039743,000523: 21,3066           03012                           WAND     CHAN12                                
039744,000524: 21,3067           43076        ABORTON            CS       BITS8/7                               #  RESET INERTIAL DATA, INTERLEAVE FLAGS.
039745,000525: 21,3070           71303                           MASK     IMODES33                              
039746,000526: 21,3071           55303                           TS       IMODES33                              
039747,000527: 21,3072           44736                           CS       DIDFLBIT                              
039748,000528: 21,3073           70075                           MASK     FLAGWRD1                              
039749,000529: 21,3074           54075                           TS       FLAGWRD1                              #  RESET DIDFLAG.
039750,000530: 21,3075           15261                           TCF      TASKOVER                              
039751,000531: 
039752,000532:                                                                                                  #  ************************************************************************
039753,000533: 
039754,000534: 21,3076           00300        BITS8/7            OCT      00300                                 #  INERTIAL DATA AND INTERLEAVE FLAGS.
039755,000535: 21,3077     5020               BITSET             =        PRIO6                                 
039756,000536: 
039757,000537:                                                                                                  #  ************************************************************************
039758,000538: 
039759,000539: 

End of include-file LANDING_ANALOG_DISPLAYS.agc.  Parent file is MAIN.agc