Source Code

These source-code files are part of a reconstructed copy of Luminary 97, the second release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software. It was created to fix two incorrect ephemeris constants in Luminary 96, as described by anomaly report LNY-59.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memos 83 and 85, using asterisks indicating changed lines in the listing as a guide. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 97 listing.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

061066,000002:                                                                                                  ## Copyright:   Public domain.
061067,000003:                                                                                                  ## Filename:    Q,R-AXES_RCS_AUTOPILOT.agc
061068,000004:                                                                                                  ## Purpose:     A section of Luminary revision 97.
061069,000005:                                                                                                  ##              It is part of the reconstructed source code for the
061070,000006:                                                                                                  ##              second release of the flight software for the Lunar 
061071,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
061072,000008:                                                                                                  ##              It was created to fix two incorrect ephemeris constants in
061073,000009:                                                                                                  ##              Luminary 96, as described by anomaly report LNY-59.
061074,000010:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
061075,000011:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
061076,000012:                                                                                                  ##              the listing and Luminary Memos #83 and #85, which list 
061077,000013:                                                                                                  ##              changes between Luminary 97 and 98, and 98 and 99. The
061078,000014:                                                                                                  ##              code has been adapted such that the resulting bugger words
061079,000015:                                                                                                  ##              exactly match those specified for Luminary 97 in NASA drawing
061080,000016:                                                                                                  ##              2021152D, which gives relatively high confidence that the
061081,000017:                                                                                                  ##              reconstruction is correct.
061082,000018:                                                                                                  ## Reference:   pp. 1442-1459
061083,000019:                                                                                                  ## Assembler:   yaYUL
061084,000020:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
061085,000021:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
061086,000022:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
061087,000023: 

Page 1442

061089,000025: 17,2072                                           BANK     17                                    
061090,000026: 17,2000                                           SETLOC   DAPS2                                 
061091,000027: 17,2000                                           BANK                                           
061092,000028: 
061093,000029: 17,2072  E6,1635                                  EBANK=   CDUXD                                 
061094,000030: 
061095,000031: 17,2072                                           COUNT*   $$/DAPQR                              
061096,000032: 
061097,000033: 17,2072           34737        CALLQERR           CA       BIT13                                 #  CALCULATE Q,R ERRORS UNLESS THESE AXES
061098,000034: 17,2073           00006                           EXTEND                                         #  ARE IN MANUAL RATE COMMAND.
061099,000035: 17,2074           02031                           RAND     CHAN31                                
061100,000036: 17,2075           10000                           CCS      A                                     
061101,000037: 17,2076           12103                           TCF      +5                                    #  IN AUTO COMPUTE Q,R ERRORS
061102,000038: 17,2077           40111                           CS       DAPBOOLS                              #  IN MANUAL RATE COMMAND?
061103,000039: 17,2100           74740                           MASK     OURRCBIT                              
061104,000040: 17,2101           00006                           EXTEND                                         
061105,000041: 17,2102           12104                           BZF      Q,RORGTS                              #  IF SO BYPASS CALCULATION OF ERRORS.
061106,000042: 17,2103           02626                           TC       QERRCALC                              
061107,000043: 
061108,000044: 17,2104           11631        Q,RORGTS           CCS      COTROLER                              #  CHOOSE CONTROL SYSTEM FOR THIS DAP PASS:
061109,000045: 17,2105           12607                           TCF      GOTOGTS                               #        GTS (ALTERNATES WITH RCS WHEN DOCKED)
061110,000046: 17,2106           12574                           TCF      TRYGTS                                #        GTS IF ALLOWED, OTHERWISE RCS
061111,000047: 17,2107           34755        RCS                CAF      ZERO                                  #        RCS (TRYGTS MAY BRANCH TO HERE)
061112,000048: 17,2110           55631                           TS       COTROLER                              
061113,000049: 
061114,000050: 17,2111           53437                           DXCH     EDOTQ                                 
061115,000051: 17,2112           03146                           TC       ROT-TOUV                              
061116,000052: 17,2113           53427                           DXCH     OMEGAU                                
061117,000053: 
061118,000054:                                                                                                  #  X - TRANSLATION:
061119,000055: 
061120,000056:                                                                                                  #  INPUT:        BITS 7,8 OF CH31 (TRANSLATION CONTROLLER)
061121,000057:                                                                                                  #                ULLAGER
061122,000058:                                                                                                  #                APSFLAG, DRIFTBIT
061123,000059:                                                                                                  #                ACC40R2X, ACRBTRAN
061124,000060: 
061125,000061:                                                                                                  #  OUTPUT:       NEXTU, NEXTV    CODES OF TRANSLATION FOR AFTER ROTATION
061126,000062:                                                                                                  #                SENSETYP        TELL ROTATION DIRECTION AND DESIRE
061127,000063: 
061128,000064:                                                                                                  #  X-TRANS POLICIES ARE EITHER 4 JETS OR A DIAGONAL PAIR.  IN 2-JET TRANSLATION THE SYSTEM IS SPECIFIED.  A FAILURE
061129,000065:                                                                                                  #  WILL OVERRIDE THIS SPECIFICATION.  AN ALARM RESULTS WHEN NO POLICY IS AVAILABLE BECAUSE OF FAILURES.
061130,000066: 
061131,000067: 17,2114           34745        SENSEGET           CA       BIT7                                  #  INPUT BITS OVERRIDE THE INTERNAL BITS
061132,000068: 17,2115           00006                           EXTEND                                         #  SENSETYP WILL NOT OPPOSE ANYTRANS
061133,000069: 17,2116           02031                           RAND     CHAN31                                
061134,000070: 17,2117           00006                           EXTEND                                         
061135,000071: 17,2120           12146                           BZF      +XORULGE                              

Page 1443

061137,000073: 17,2121           34744                           CA       BIT8                                  
061138,000074: 17,2122           00006                           EXTEND                                         
061139,000075: 17,2123           02031                           RAND     CHAN31                                
061140,000076: 17,2124           00006                           EXTEND                                         
061141,000077: 17,2125           12147                           BZF      -XTRANS                               
061142,000078: 
061143,000079: 17,2126           34746                           CA       ULLAGER                               
061144,000080: 17,2127           70111                           MASK     DAPBOOLS                              
061145,000081: 17,2130           10000                           CCS      A                                     
061146,000082: 17,2131           12146                           TCF      +XORULGE                              
061147,000083: 
061148,000084: 17,2132           55473                           TS       NEXTU                                 #  STORE NULL TRANSLATION POLICIES
061149,000085: 17,2133           55474                           TS       NEXTV                                 
061150,000086: 17,2134           40111                           CS       DAPBOOLS                              #  BURNING OR DRIFTING?
061151,000087: 17,2135           74744                           MASK     DRIFTBIT                              
061152,000088: 17,2136           00006                           EXTEND                                         
061153,000089: 17,2137           12144                           BZF      TSENSE                                
061154,000090: 17,2140           30106                           CA       FLGWRD10                              #  DPS (INCLUDING DOCKED) OR APS?
061155,000091: 17,2141           74737                           MASK     APSFLBIT                              
061156,000092: 17,2142           10000                           CCS      A                                     
061157,000093: 17,2143           34752                           CAF      TWO                                   #  FAVOR +X JETS DURING AN APS BURN.
061158,000094: 17,2144           55500        TSENSE             TS       SENSETYP                              
061159,000095: 17,2145           12200                           TCF      QRCONTRL                              
061160,000096: 
061161,000097: 17,2146           34753        +XORULGE           CAF      ONE                                   
061162,000098: 17,2147           64751        -XTRANS            AD       FOUR                                  
061163,000099: 17,2150           55744                           TS       ROTINDEX                              
061164,000100: 17,2151           67745                           AD       NEG3                                  
061165,000101: 17,2152           55500                           TS       SENSETYP                              #  FAVOR APPROPRIATE JETS DURING TRANS.
061166,000102: 17,2153           30111                           CA       DAPBOOLS                              
061167,000103: 17,2154           74741                           MASK     ACC4OR2X                              
061168,000104: 17,2155           10000                           CCS      A                                     
061169,000105: 17,2156           12321                           TCF      TRANS4                                
061170,000106: 
061171,000107: 17,2157           30111                           CA       DAPBOOLS                              
061172,000108: 17,2160           74742                           MASK     AORBTRAN                              
061173,000109: 17,2161           10000                           CCS      A                                     
061174,000110: 17,2162           34753                           CA       ONE                                   #  THREE FOR B
061175,000111: 17,2163           64752                           AD       TWO                                   #  TWO FOR A SYSTEM 2 JET X TRANS
061176,000112: 17,2164           55743        TSNUMBRT           TS       NUMBERT                               
061177,000113: 
061178,000114: 17,2165           03173                           TC       SELCTSUB                              
061179,000115: 
061180,000116: 17,2166           11741                           CCS      POLYTEMP                              
061181,000117: 17,2167           12172                           TCF      +3                                    
061182,000118: 17,2170           05567                           TC       ALARM                                 
061183,000119: 17,2171           02002                           OCT      02002                                 
061184,000120: 17,2172           35774                           CA       00314OCT                              
061185,000121: 17,2173           71741                           MASK     POLYTEMP                              
061186,000122: 17,2174           55473        TSNEXTS            TS       NEXTU                                 

Page 1444

061188,000124: 17,2175           45774                           CS       00314OCT                              
061189,000125: 17,2176           71741                           MASK     POLYTEMP                              
061190,000126: 17,2177           55474                           TS       NEXTV                                 
061191,000127: 
061192,000128:                                                                                                  #  Q,R-AXES RCS CONTROL MODE SELECTION
061193,000129:                                                                                                  #        SWITCHES        INDICATION WHEN SET
061194,000130:                                                                                                  #        BIT13/CHAN31    AUTO, GO TO ATTSTEER
061195,000131:                                                                                                  #        PULSES          MINIMUM IMPULSE MODE
061196,000132:                                                                                                  #        (OTHERWISE)     RATE COMMAND/ATTITUDE HOLD MODE
061197,000133: 
061198,000134: 17,2200           34737        QRCONTRL           CA       BIT13                                 #  CHECK MODE SELECT SWITCH.
061199,000135: 17,2201           00006                           EXTEND                                         
061200,000136: 17,2202           02031                           RAND     CHAN31                                #  BITS INVERTED
061201,000137: 17,2203           10000                           CCS      A                                     
061202,000138: 17,2204           12661                           TCF      ATTSTEER                              
061203,000139: 17,2205           34735        CHKBIT10           CAF      PULSES                                #  PULSES = 1 FOR MIN IMP USE OF RHC
061204,000140: 17,2206           70111                           MASK     DAPBOOLS                              
061205,000141: 17,2207           00006                           EXTEND                                         
061206,000142: 17,2210           12323                           BZF      CHEKSTIK                              #  IN ATT-HOLD/RATE-COMMAND IF BIT10=0
061207,000143: 
061208,000144:                                                                                                  #  MINIMUM IMPULSE MODE
061209,000145: 
061210,000146: 17,2211           00004                           INHINT                                         
061211,000147: 17,2212           04674                           TC       IBNKCALL                              
061212,000148: 17,2213           40153                           CADR     ZATTEROR                              
061213,000149: 17,2214           34755                           CA       ZERO                                  
061214,000150: 17,2215           55450                           TS       QERROR                                
061215,000151: 17,2216           55452                           TS       RERROR                                #  FOR DISPLAYS
061216,000152: 17,2217           00003                           RELINT                                         
061217,000153: 
061218,000154: 17,2220           00006                           EXTEND                                         
061219,000155: 17,2221           00031                           READ     CHAN31                                
061220,000156: 17,2222           55737                           TS       TEMP31                                #  IS EQUAL TO DAPTEMP1
061221,000157: 17,2223           11461                           CCS      OLDQRMIN                              
061222,000158: 17,2224           12246                           TCF      CHECKIN                               
061223,000159: 
061224,000160: 17,2225           31737        FIREQR             CA       TEMP31                                
061225,000161: 17,2226           74753                           MASK     BIT1                                  
061226,000162: 17,2227           00006                           EXTEND                                         
061227,000163: 17,2230           12252                           BZF      +QMIN                                 
061228,000164: 
061229,000165: 17,2231           31737                           CA       TEMP31                                
061230,000166: 17,2232           74752                           MASK     BIT2                                  
061231,000167: 17,2233           00006                           EXTEND                                         
061232,000168: 17,2234           12256                           BZF      -QMIN                                 
061233,000169: 
061234,000170: 17,2235           31737                           CA       TEMP31                                
061235,000171: 17,2236           74747                           MASK     BIT5                                  

Page 1445

061237,000173: 17,2237           00006                           EXTEND                                         
061238,000174: 17,2240           12262                           BZF      +RMIN                                 
061239,000175: 
061240,000176: 17,2241           31737                           CA       TEMP31                                
061241,000177: 17,2242           74746                           MASK     BIT6                                  
061242,000178: 17,2243           00006                           EXTEND                                         
061243,000179: 17,2244           12264                           BZF      -RMIN                                 
061244,000180: 
061245,000181: 17,2245           13063                           TCF      XTRANS                                
061246,000182: 
061247,000183: 17,2246           41737        CHECKIN            CS       TEMP31                                
061248,000184: 17,2247           72320                           MASK     OCT63                                 
061249,000185: 17,2250           55461                           TS       OLDQRMIN                              
061250,000186: 17,2251           13063                           TCF      XTRANS                                
061251,000187: 
061252,000188: 17,2252           33107        +QMIN              CA       14MS                                  
061253,000189: 17,2253           55525                           TS       TJU                                   
061254,000190: 17,2254           43107                           CS       14MS                                  
061255,000191: 17,2255           12266                           TCF      MINQR                                 
061256,000192: 17,2256           43107        -QMIN              CS       14MS                                  
061257,000193: 17,2257           55525                           TS       TJU                                   
061258,000194: 17,2260           33107                           CA       14MS                                  
061259,000195: 17,2261           12266                           TCF      MINQR                                 
061260,000196: 17,2262           33107        +RMIN              CA       14MS                                  
061261,000197: 17,2263           12265                           TCF      +2                                    
061262,000198: 17,2264           43107        -RMIN              CS       14MS                                  
061263,000199: 17,2265           55525                           TS       TJU                                   
061264,000200: 17,2266           55526        MINQR              TS       TJV                                   
061265,000201: 17,2267           32317                           CA       MINADR                                
061266,000202: 17,2270           55477                           TS       RETJADR                               
061267,000203: 17,2271           34753                           CA       ONE                                   
061268,000204: 17,2272           55461                           TS       OLDQRMIN                              
061269,000205: 17,2273           55505        MINRTN             TS       AXISCTR                               
061270,000206: 17,2274           30111                           CA       DAPBOOLS                              
061271,000207: 17,2275           74737                           MASK     CSMDOCKD                              
061272,000208: 17,2276           00006                           EXTEND                                         
061273,000209: 17,2277           12307                           BZF      MIMRET                                
061274,000210: 17,2300           51505                           INDEX    AXISCTR                               #  IF DOCKED, USE 60MS MINIMUM IMPULSE
061275,000211: 17,2301           11525                           CCS      TJU                                   
061276,000212: 17,2302           32316                           CA       60MS                                  
061277,000213: 17,2303           12305                           TCF      +2                                    
061278,000214: 17,2304           42316                           CS       60MS                                  
061279,000215: 17,2305           51505                           INDEX    AXISCTR                               
061280,000216: 17,2306           55525                           TS       TJU                                   
061281,000217: 17,2307           30111        MIMRET             CA       DAPBOOLS                              
061282,000218: 17,2310           74742                           MASK     AORBTRAN                              
061283,000219: 17,2311           10000                           CCS      A                                     
061284,000220: 17,2312           34753                           CA       ONE                                   
061285,000221: 17,2313           64752                           AD       TWO                                   
061286,000222: 17,2314           55743                           TS       NUMBERT                               

Page 1446

061288,000224: 17,2315           12727                           TCF      AFTERTJ                               
061289,000225: 
061290,000226: 17,2316           00140        60MS               DEC      96.0                                  
061291,000227: 17,2317           02273        MINADR             GENADR   MINRTN                                
061292,000228: 17,2320           00063        OCT63              OCT      63                                    
061293,000229: 17,2321  17,3107               14MS               =        +TJMINT6                              
061294,000230: 
061295,000231: 17,2321           34751        TRANS4             CA       FOUR                                  
061296,000232: 17,2322           12164                           TCF      TSNUMBRT                              
061297,000233: 
061298,000234:                                                                                                  #  RATE COMMAND MODE:
061299,000235: 
061300,000236:                                                                                                  #  DESCRIPTION (SAME AS P-AXIS)
061301,000237: 
061302,000238: 17,2323           55633        CHEKSTIK           TS       INGTS                                 #  NOT IN GTS WHEN IN ATT HOLD
061303,000239: 17,2324           44753                           CS       ONE                                   #  1/ACCS WILL DO THE NULLING DRIVES
061304,000240: 17,2325           55631                           TS       COTROLER                              #  COME BACK TO RCS NEXT TIME
061305,000241: 17,2326           34735                           CA       BIT15                                 
061306,000242: 17,2327           71443                           MASK     CH31TEMP                              
061307,000243: 17,2330           00006                           EXTEND                                         
061308,000244: 17,2331           12350                           BZF      RHCACTIV                              #  BRANCH IF OUT OF DETENT.
061309,000245: 17,2332           34740                           CA       OURRCBIT                              #  ***********
061310,000246: 17,2333           70111                           MASK     DAPBOOLS                              #  *IN DETENT*   CHECK FOR MANUAL CONTROL
061311,000247: 17,2334           00006                           EXTEND                                         #  ***********   LAST TIME.
061312,000248: 17,2335           12661                           BZF      STILLRCS                              
061313,000249: 17,2336           44743                           CS       BIT9                                  
061314,000250: 17,2337           71273                           MASK     RCSFLAGS                              
061315,000251: 17,2340           55273                           TS       RCSFLAGS                              #  BIT 9 IS 0.
061316,000252: 17,2341           12345                           TCF      DAMPING                               
061317,000253: 17,2342           00050        40CYCL             OCT      50                                    
061318,000254: 17,2343           00001        1/10S              OCT      1                                     
061319,000255: 17,2344           00056        LINRAT             DEC      46         B-14                       
061320,000256: 
061321,000257:                                                                                                  #  ================================
061322,000258: 
061323,000259: 17,2345           34755        DAMPING            CA       ZERO                                  
061324,000260: 17,2346           55462                           TS       SAVEHAND                              
061325,000261: 17,2347           55463                           TS       SAVEHAND   +1                         
061326,000262: 17,2350           11462        RHCACTIV           CCS      SAVEHAND                              #  *******************
061327,000263: 17,2351           12354                           TCF      +3                                    #  Q,R MANUAL CONTROL    WC = A*(B+|D|)*D
061328,000264: 17,2352           12354                           TCF      +2                                    #  *******************
061329,000265: 17,2353           12354                           TCF      +1                                    
061330,000266: 17,2354           60000                           DOUBLE                                         #  WHERE
061331,000267: 17,2355           60000                           DOUBLE                                         
061332,000268: 17,2356           62344                           AD       LINRAT                                #        WC  = COMMANDED ROTATIONAL RATE
061333,000269: 17,2357           00006                           EXTEND                                         #        A   = QUADRATIC SENSITIVITY FACTOR
061334,000270: 17,2360           71462                           MP       SAVEHAND                              #        B   = LINEAR/QUADRATIC SENSITIVITY
061335,000271: 17,2361           30001                           CA       L                                     #        |D| = ABS. VALUE OF DEFLECTION
061336,000272: 17,2362           00006                           EXTEND                                         #        D   = HAND CONTROLLER DEFLECTION
061337,000273: 17,2363           71444                           MP       STIKSENS                              
061338,000274: 17,2364           57455                           XCH      QLAST                                 #  COMMAND Q RATE     SCALED 45 DEG/SEC
061339,000275: 17,2365           40000                           COM                                            

Page 1447

061341,000277: 17,2366           61455                           AD       QLAST                                 
061342,000278: 17,2367           55741                           TS       DAPTEMP3                              
061343,000279: 17,2370           11463                           CCS      SAVEHAND   +1                         
061344,000280: 17,2371           12374                           TCF      +3                                    
061345,000281: 17,2372           12374                           TCF      +2                                    
061346,000282: 17,2373           12374                           TCF      +1                                    
061347,000283: 17,2374           60000                           DOUBLE                                         
061348,000284: 17,2375           60000                           DOUBLE                                         
061349,000285: 17,2376           62344                           AD       LINRAT                                
061350,000286: 17,2377           00006                           EXTEND                                         
061351,000287: 17,2400           71463                           MP       SAVEHAND   +1                         
061352,000288: 17,2401           30001                           CA       L                                     
061353,000289: 17,2402           00006                           EXTEND                                         
061354,000290: 17,2403           71444                           MP       STIKSENS                              
061355,000291: 17,2404           57456                           XCH      RLAST                                 
061356,000292: 17,2405           40000                           COM                                            
061357,000293: 17,2406           61456                           AD       RLAST                                 
061358,000294: 17,2407           55742                           TS       DAPTEMP4                              
061359,000295: 17,2410           41455                           CS       QLAST                                 #  INTERVAL.
061360,000296: 17,2411           61422                           AD       OMEGAQ                                
061361,000297: 17,2412           55436                           TS       QRATEDIF                              
061362,000298: 17,2413           41456                           CS       RLAST                                 
061363,000299: 17,2414           61423                           AD       OMEGAR                                
061364,000300: 17,2415           55437                           TS       RRATEDIF                              
061365,000301: 17,2416           53437        ENTERQR            DXCH     QRATEDIF                              #  TRANSFORM RATES FROM Q,R TO U,V AXES
061366,000302: 17,2417           03146                           TC       ROT-TOUV                              
061367,000303: 17,2420           53427                           DXCH     URATEDIF                              
061368,000304: 17,2421           11741                           CCS      DAPTEMP3                              #  CHECK IF Q COMMAND CHANGE EXCEEDS
061369,000305: 17,2422           02425                           TC       +3                                    #  BREAKOUT LEVEL.  IF NOT, CHECK R.
061370,000306: 17,2423           02425                           TC       +2                                    
061371,000307: 17,2424           02425                           TC       +1                                    
061372,000308: 17,2425           61476                           AD       -RATEDB                               
061373,000309: 17,2426           00006                           EXTEND                                         
061374,000310: 17,2427           62431                           BZMF     +2                                    
061375,000311: 17,2430           12447                           TCF      ENTERUV    -2                         #  BREAKOUT LEVEL EXCEEDED.  DIRECT RATE.
061376,000312: 17,2431           11742                           CCS      DAPTEMP4                              #  R COMMAND BREAKOUT CHECK.
061377,000313: 17,2432           02435                           TC       +3                                    
061378,000314: 17,2433           02435                           TC       +2                                    
061379,000315: 17,2434           02435                           TC       +1                                    
061380,000316: 17,2435           61476                           AD       -RATEDB                               
061381,000317: 17,2436           00006                           EXTEND                                         
061382,000318: 17,2437           62441                           BZMF     +2                                    
061383,000319: 17,2440           12447                           TCF      ENTERUV    -2                         #  BREAKOUT LEVEL EXCEEDED.  DIRECT RATE.
061384,000320: 17,2441           31273                           CA       RCSFLAGS                              #  BREAKOUT LEVEL NOT EXCEEDED.  CHECK FOR
061385,000321: 17,2442           74741                           MASK     QRBIT                                 #  DIRECT RATE CONTROL LAST TIME.
061386,000322: 17,2443           00006                           EXTEND                                         
061387,000323: 17,2444           12446                           BZF      +2                                    
061388,000324: 17,2445           12451                           TCF      ENTERUV                               #  CONTINUE DIRECT RATE CONTROL.
061389,000325: 17,2446           12661                           TCF      STILLRCS                              #  PSEUDO-AUTO CONTROL.
061390,000326: 17,2447           32342                           CA       40CYCL                                

Page 1448

061392,000328: 17,2450           55457                           TS       TCQR                                  
061393,000329: 17,2451           00004        ENTERUV            INHINT                                         #  DIRECT RATE CONTROL.
061394,000330: 17,2452           04674                           TC       IBNKCALL                              
061395,000331: 17,2453           40153                           FCADR    ZATTEROR                              
061396,000332: 17,2454           00003                           RELINT                                         
061397,000333: 17,2455           34755                           CA       ZERO                                  
061398,000334: 17,2456           55450                           TS       DYERROR                               
061399,000335: 17,2457           55451                           TS       DYERROR    +1                         
061400,000336: 17,2460           55452                           TS       DZERROR                               
061401,000337: 17,2461           55453                           TS       DZERROR    +1                         
061402,000338: 17,2462           11426                           CCS      URATEDIF                              
061403,000339: 17,2463           12466                           TCF      +3                                    
061404,000340: 17,2464           12466                           TCF      +2                                    
061405,000341: 17,2465           12466                           TCF      +1                                    
061406,000342: 17,2466           61476                           AD       TARGETDB                              #  IF TARGET DB IS EXCEEDED, CONTINUE
061407,000343: 17,2467           00006                           EXTEND                                         #  DIRECT RATE CONTROL.
061408,000344: 17,2470           62504                           BZMF     VDB                                   
061409,000345: 17,2471           11427                           CCS      VRATEDIF                              
061410,000346: 17,2472           12475                           TCF      +3                                    
061411,000347: 17,2473           12475                           TCF      +2                                    
061412,000348: 17,2474           12475                           TCF      +1                                    
061413,000349: 17,2475           61476                           AD       TARGETDB                              
061414,000350: 17,2476           00006                           EXTEND                                         
061415,000351: 17,2477           62501                           BZMF     +2                                    
061416,000352: 17,2500           12515                           TCF      QRTIME                                
061417,000353: 17,2501           34755                           CA       ZERO                                  
061418,000354: 17,2502           55427                           TS       VRATEDIF                              
061419,000355: 17,2503           12515                           TCF      QRTIME                                
061420,000356: 17,2504           11427        VDB                CCS      VRATEDIF                              
061421,000357: 17,2505           02510                           TC       +3                                    
061422,000358: 17,2506           02510                           TC       +2                                    
061423,000359: 17,2507           02510                           TC       +1                                    
061424,000360: 17,2510           61476                           AD       TARGETDB                              #  IF TARGET DB IS EXCEEDED, CONTINUE
061425,000361: 17,2511           00006                           EXTEND                                         #  DIRECT RATE CONTROL.  IF NOT, FIRE AND
061426,000362: 17,2512           62524                           BZMF     TOPSEUDO                              #  SWITCH TO PSEUDO-AUTO CONTROL ON NEXT
061427,000363: 17,2513           34755                           CA       ZERO                                  #  PASS.
061428,000364: 17,2514           55426                           TS       URATEDIF                              
061429,000365: 17,2515           31457        QRTIME             CA       TCQR                                  #  DIRECT RATE TIME CHECK.
061430,000366: 17,2516           00006                           EXTEND                                         
061431,000367: 17,2517           62524                           BZMF     +5                                    #  BRANCH IF TIME EXCEEDS 4 SEC.
061432,000368: 17,2520           41273                           CS       RCSFLAGS                              
061433,000369: 17,2521           74741                           MASK     QRBIT                                 
061434,000370: 17,2522           27273                           ADS      RCSFLAGS                              #  BIT 11 IS 1.
061435,000371: 17,2523           02527                           TC       +4                                    
061436,000372: 17,2524           44741        TOPSEUDO           CS       QRBIT                                 
061437,000373: 17,2525           71273                           MASK     RCSFLAGS                              
061438,000374: 17,2526           55273                           TS       RCSFLAGS                              #  BIT 11 IS 0.
061439,000375: 17,2527           32573                           CA       HANDADR                               
061440,000376: 17,2530           55477                           TS       RETJADR                               
061441,000377: 17,2531           34753                           CA       ONE                                   
061442,000378: 

Page 1449

061444,000380: 17,2532           55505        BACKHAND           TS       AXISCTR                               
061445,000381: 
061446,000382: 17,2533           34751                           CA       FOUR                                  
061447,000383: 17,2534           55743                           TS       NUMBERT                               
061448,000384: 
061449,000385: 17,2535           51505                           INDEX    AXISCTR                               
061450,000386: 17,2536           51535                           INDEX    SKIPU                                 
061451,000387: 17,2537           12540                           TCF      +1                                    
061452,000388: 17,2540           34751                           CA       FOUR                                  
061453,000389: 17,2541           51505                           INDEX    AXISCTR                               
061454,000390: 17,2542           55535                           TS       SKIPU                                 
061455,000391: 17,2543           13005                           TCF      LOOPER                                
061456,000392: 
061457,000393: 17,2544           51505                           INDEX    AXISCTR                               
061458,000394: 17,2545           11426                           CCS      URATEDIF                              #        INDEX   AXIS    QUANITY
061459,000395: 17,2546           34755                           CA       ZERO                                  #        0       -U      1/JETACC-AOSU
061460,000396: 17,2547           12551                           TCF      +2                                    #        1       +U      1/JETACC+AOSU
061461,000397: 17,2550           34753                           CA       ONE                                   #        16      -V      1/JETACC-AOSV
061462,000398: 17,2551           51505                           INDEX    AXISCTR                               #        17      +V      1/JETACC+AOSV
061463,000399: 17,2552           63722                           AD       AXISDIFF                              #  JETACC = 2 JET ACCELERATION (1 FOR FAIL)
061464,000400: 
061465,000401: 17,2553           50000                           INDEX    A                                     
061466,000402: 17,2554           41571                           CS       1/ANET2    +1                         
061467,000403: 17,2555           00006                           EXTEND                                         
061468,000404: 17,2556           51505                           INDEX    AXISCTR                               #  URATEDIF IS SCALED AT PI/4 RAD/SEC
061469,000405: 17,2557           71426                           MP       URATEDIF                              #  JET TIME IN A       SCALED 32 SEC
061470,000406: 17,2560           54002                           TS       Q                                     
061471,000407: 17,2561           20001                           DAS      A                                     
061472,000408: 17,2562           60002                           AD       Q                                     
061473,000409: 17,2563           54000                           TS       A                                     #  OVERFLOW SKIP
061474,000410: 17,2564           12566                           TCF      +2                                    
061475,000411: 17,2565           30002                           CA       Q                                     #  RIGHT SIGN AND BIGGER THAN 150MS
061476,000412: 17,2566           51505        SETTIME            INDEX    AXISCTR                               
061477,000413: 17,2567           55525                           TS       TJU                                   #  SCALED AT 10.67 WHICH IS CLOSE TO 10.24
061478,000414: 17,2570           12727                           TCF      AFTERTJ                               
061479,000415: 
061480,000416: 17,2571           34755        ZEROTJ             CA       ZERO                                  
061481,000417: 17,2572           12566                           TCF      SETTIME                               
061482,000418: 
061483,000419: 17,2573           02532        HANDADR            GENADR   BACKHAND                              
061484,000420: 
061485,000421:                                                                                                  #  GTS WILL BE TRIED IF
061486,000422:                                                                                                  #        1. USEQRJTS = 0,
061487,000423:                                                                                                  #        2. ALLOWGTS POS,
061488,000424:                                                                                                  #        3. JETS ARE OFF (Q,R-AXES)
061489,000425: 
061490,000426: 17,2574           34736        TRYGTS             CAF      USEQRJTS                              #  IS JET USE MANDATORY.         (AS LONG AS
061491,000427: 17,2575           70111                           MASK     DAPBOOLS                              #  USEQRJTS BIT IS NOT BIT 15, CCS IS SAFE)
061492,000428: 17,2576           10000                           CCS      A                                     
061493,000429: 17,2577           12107                           TCF      RCS                                   
061494,000430: 17,2600           11502                           CCS      ALLOWGTS                              #  NO.  DOES AOSTASK OK CONTROL FOR GTS?

Page 1450

061496,000432: 17,2601           12603                           TCF      +2                                    
061497,000433: 17,2602           12107                           TCF      RCS                                   
061498,000434: 17,2603           00006                           EXTEND                                         
061499,000435: 17,2604           00005                           READ     CHAN5                                 
061500,000436: 17,2605           10000                           CCS      A                                     
061501,000437: 17,2606           12612                           TCF      CHKINGTS                              
061502,000438: 17,2607           00006        GOTOGTS            EXTEND                                         
061503,000439: 17,2610           32625                           DCA      GTSCADR                               
061504,000440: 17,2611           52006                           DTCB                                           
061505,000441: 
061506,000442: 17,2612           11633        CHKINGTS           CCS      INGTS                                 #  WAS THE TRIM GIMBAL CONTROLLING
061507,000443: 17,2613           12615                           TCF      +2                                    #        YES.  SET UP A DAMPED NULLING DRIVE.
061508,000444: 17,2614           12107                           TCF      RCS                                   #        NO.  NULLING WAS SET UP BEFORE.  DO RCS
061509,000445: 17,2615           00004                           INHINT                                         
061510,000446: 17,2616           04674                           TC       IBNKCALL                              
061511,000447: 17,2617           43330                           CADR     TIMEGMBL                              
061512,000448: 17,2620           00003                           RELINT                                         
061513,000449: 17,2621           34755                           CAF      ZERO                                  
061514,000450: 17,2622           55633                           TS       INGTS                                 
061515,000451: 17,2623           12107                           TCF      RCS                                   
061516,000452: 
061517,000453: 17,2624  E6,1635                                  EBANK=   CDUXD                                 
061518,000454: 17,2624           03077 42106  GTSCADR            2CADR    GTS                                   
061519,000455: 

Page 1451

061521,000457:                                                                                                  #  SUBROUTINE TO COMPUTE Q,R-AXES ATTITUDE ERRORS FOR USE IN THE RCS AND GTS CONTROL LAWS AND THE DISPLAYS.
061522,000458: 
061523,000459: 17,2626           30033        QERRCALC           CAE      CDUY                                  #  Q-ERROR CALCULATION
061524,000460: 17,2627           00006                           EXTEND                                         
061525,000461: 17,2630           21636                           MSU      CDUYD                                 #  CDU ANGLE - ANGLE DESIRED (Y-AXIS)
061526,000462: 17,2631           55737                           TS       DAPTEMP1                              #  SAVE FOR RERRCALC
061527,000463: 17,2632           00006                           EXTEND                                         
061528,000464: 17,2633           71415                           MP       M21                                   #  (CDUY-CDUYD)*M21 SCALED AT PI RADIANS
061529,000465: 17,2634           55752                           TS       E                                     
061530,000466: 17,2635           30034                           CAE      CDUZ                                  #  SECOND TERM CALCULATION:
061531,000467: 17,2636           00006                           EXTEND                                         
061532,000468: 17,2637           21637                           MSU      CDUZD                                 #  CDU ANGLE -ANGLE DESIRED (Z-AXIS)
061533,000469: 17,2640           55740                           TS       DAPTEMP2                              #  SAVE FOR RERRCALC
061534,000470: 17,2641           00006                           EXTEND                                         
061535,000471: 17,2642           71417                           MP       M22                                   #  (CDUZ-CDUZD)*M22 SCALED AT PI RADIANS
061536,000472: 17,2643           61300                           AD       DELQEROR                              #  KALCMANU INERFACE ERROR
061537,000473: 17,2644           61752                           AD       E                                     
061538,000474: 17,2645           57450                           XCH      QERROR                                #  SAVE Q-ERROR FOR EIGHT-BALL DISPLAY.
061539,000475: 
061540,000476: 17,2646           31737        RERRCALC           CAE      DAPTEMP1                              #  R-ERROR CALCULATION:
061541,000477: 17,2647           00006                           EXTEND                                         #  CDU ANGLE -ANGLE DESIRED (Y-AXIS)
061542,000478: 17,2650           71416                           MP       M31                                   #  (CDUY-CDUYD)*M31 SCALED AT PI RADIANS
061543,000479: 17,2651           55752                           TS       E                                     
061544,000480: 17,2652           31740                           CAE      DAPTEMP2                              #  SECOND TERM CALCULATION:
061545,000481: 17,2653           00006                           EXTEND                                         #  CDU ANGLE -ANGLE DESIRED (Z-AXIS)
061546,000482: 17,2654           71420                           MP       M32                                   #  (CDUZ-CDUZD)*M32 SCALED AT PI RADIANS
061547,000483: 17,2655           61301                           AD       DELREROR                              #  KALCMANU INERFACE ERROR
061548,000484: 17,2656           61752                           AD       E                                     
061549,000485: 17,2657           57452                           XCH      RERROR                                #  SAVE R-ERROR FOR EIGHT-BALL DISPLAY.
061550,000486: 17,2660           00002                           TC       Q                                     
061551,000487: 

Page 1452

061553,000489:                                                                                                  #  "ATTSTEER" IS THE ENTRY POINT FOR Q,R-AXES (U,V-AXES) ATTITUDE CONTROL USING THE REACTION CONTROL SYSTEM
061554,000490: 
061555,000491: 17,2661  17,2661               ATTSTEER           EQUALS   STILLRCS                              #  "STILLRCS" IS THE RCS EXIT FROM TRYGTS.
061556,000492: 
061557,000493: 17,2661           31452        STILLRCS           CA       RERROR                                
061558,000494: 17,2662           22000                           LXCH     A                                     
061559,000495: 17,2663           31450                           CA       QERROR                                
061560,000496: 17,2664           03146                           TC       ROT-TOUV                              
061561,000497: 17,2665           53752                           DXCH     UERROR                                
061562,000498: 
061563,000499:                                                                                                  #  PREPARES CALL TO TJETLAW (OR SPSRCS(DOCKED))
061564,000500:                                                                                                  #  PREFORMS SKIP LOGIC ON U OR Y AXIS IF NEEDED.
061565,000501: 
061566,000502: 17,2666           33113        TJLAW              CA       TJLAWADR                              
061567,000503: 17,2667           55477                           TS       RETJADR                               
061568,000504: 17,2670           34753                           CA       ONE                                   
061569,000505: 17,2671           55505                           TS       AXISCTR                               
061570,000506: 17,2672           51505                           INDEX    AXISCTR                               
061571,000507: 17,2673           51535                           INDEX    SKIPU                                 
061572,000508: 17,2674           12675                           TCF      +1                                    
061573,000509: 17,2675           34751                           CA       FOUR                                  
061574,000510: 17,2676           51505                           INDEX    AXISCTR                               
061575,000511: 17,2677           55535                           TS       SKIPU                                 
061576,000512: 17,2700           13005                           TCF      LOOPER                                
061577,000513: 17,2701           51505                           INDEX    AXISCTR                               
061578,000514: 17,2702           31751                           CA       UERROR                                
061579,000515: 17,2703           55752                           TS       E                                     
061580,000516: 17,2704           51505                           INDEX    AXISCTR                               
061581,000517: 17,2705           31426                           CA       OMEGAU                                
061582,000518: 17,2706           55427                           TS       EDOT                                  
061583,000519: 17,2707           30111                           CA       DAPBOOLS                              
061584,000520: 17,2710           74737                           MASK     CSMDOCKD                              
061585,000521: 17,2711           10000                           CCS      A                                     
061586,000522: 17,2712           12715                           TCF      +3                                    
061587,000523: 17,2713           03252                           TC       TJETLAW                               
061588,000524: 17,2714           12727                           TCF      AFTERTJ                               
061589,000525: 17,2715           40111                 +3        CS       DAPBOOLS                              #  DOCKED.  IF GIMBAL USABLE DO GTS CONTROL
061590,000526: 17,2716           74736                           MASK     USEQRJTS                              #        ON THE NEXT PASS.
061591,000527: 17,2717           10000                           CCS      A                                     #  USEQRJTS BIT MUST NOT BE BIT 15.
061592,000528: 17,2720           55631                           TS       COTROLER                              #  GIMBAL USABLE.  STORE POSITIVE VALUE.
061593,000529: 17,2721           00004                           INHINT                                         
061594,000530: 17,2722           04674                           TC       IBNKCALL                              
061595,000531: 17,2723           43727                           CADR     SPSRCS                                #  DETERMINE RCS CONTROL
061596,000532: 17,2724           00003                           RELINT                                         
061597,000533: 17,2725           34751                           CAF      FOUR                                  #  ALWAYS CALL FOR 2-JET CONTROL ABOUT U,V.
061598,000534: 17,2726           55743                           TS       NUMBERT                               #  FALL THROUGH TO JET SELECTION, ETC.
061599,000535: 
061600,000536:                                                                                                  #  Q,R-JET-SELECTION-LOGIC
061601,000537: 
061602,000538:                                                                                                  #  INPUT:        AXISCTR         0,1 FOR U,V
061603,000539:                                                                                                  #                SNUFFBIT        ZERO TJETU,V AND TRANS. ONLY IF SET IN A DPS BURN

Page 1453

061605,000541:                                                                                                  #                TJU,TJV         JET TIME SCALED 10.24 SEC.
061606,000542:                                                                                                  #                NUMBERT         INDICATES NUMBER OF JETS AND TYPE OF POLICY
061607,000543:                                                                                                  #                RETJADR         WHERE TO RETURN TO
061608,000544: 
061609,000545:                                                                                                  #  OUTPUT:       NO.U(V)JETS     RATE DERIVATION FEEDBACK
061610,000546:                                                                                                  #                CHANNEL 5
061611,000547:                                                                                                  #                SKIPU,SKIRV     FOR LESS THAN 150MS FIRING
061612,000548: 
061613,000549:                                                                                                  #  NOTES:        IN CASE OF FAILURE IN DESIRED ROTATION POLICY, "ALL" UNFAILED
061614,000550:                                                                                                  #                JETS OF THE DESIRED POLICY ARE SELECTED.  SINCE THERE ARE ONLY
061615,000551:                                                                                                  #                TWO JETS, THIS MEANS THE OTHER ONE OR NONE.  THE ALARM IS SENT
061616,000552:                                                                                                  #                IF NONE CAN BE FOUND.
061617,000553: 
061618,000554:                                                                                                  #                TIMES LESS THAN 14 MSEC ARE TAKEN TO CALL FOR A SINGLE-JET
061619,000555:                                                                                                  #                MINIMUM IMPULSE, WITH THE JET CHOSEN SEMI-RANDOMLY.
061620,000556: 
061621,000557: 17,2727           30101        AFTERTJ            CA       FLAGWRD5                              #  IF SNUFFBIT SET DURING A DPS BURN GO TO
061622,000558: 17,2730           74737                           MASK     SNUFFBIT                              #  XTRANS; THAT IS, INHIBIT CONTROL.
061623,000559: 17,2731           00006                           EXTEND                                         
061624,000560: 17,2732           12743                           BZF      DOROTAT                               
061625,000561: 17,2733           40106                           CS       FLGWRD10                              
061626,000562: 17,2734           74737                           MASK     APSFLBIT                              
061627,000563: 17,2735           00006                           EXTEND                                         
061628,000564: 17,2736           12743                           BZF      DOROTAT                               
061629,000565: 17,2737           30111                           CA       DAPBOOLS                              
061630,000566: 17,2740           74744                           MASK     DRIFTBIT                              
061631,000567: 17,2741           00006                           EXTEND                                         
061632,000568: 17,2742           13063                           BZF      XTRANS                                
061633,000569: 
061634,000570: 17,2743           34752        DOROTAT            CAF      TWO                                   
061635,000571: 17,2744           54001                           TS       L                                     
061636,000572: 17,2745           51505                           INDEX    AXISCTR                               
061637,000573: 17,2746           11525                           CCS      TJU                                   
061638,000574: 17,2747           12754                           TCF      +5                                    
061639,000575: 17,2750           12777                           TCF      NOROTAT                               
061640,000576: 17,2751           12753                           TCF      +2                                    
061641,000577: 17,2752           12777                           TCF      NOROTAT                               
061642,000578: 17,2753           22007                           ZL                                             
061643,000579: 17,2754           64753                           AD       ONE                                   
061644,000580: 17,2755           55737                           TS       ABSTJ                                 
061645,000581: 
061646,000582: 17,2756           31505                           CA       AXISCTR                               
061647,000583: 17,2757           60001                           AD       L                                     
061648,000584: 17,2760           55744                           TS       ROTINDEX                              #  0 1 2 3 = -U -V -+U +V
061649,000585: 
061650,000586: 17,2761           31737                           CA       ABSTJ                                 
061651,000587: 17,2762           63110                           AD       -150MS                                
061652,000588: 17,2763           00006                           EXTEND                                         
061653,000589: 17,2764           63010                           BZMF     DOSKIP                                

Page 1454

061655,000591: 17,2765           03173                           TC       SELCTSUB                              
061656,000592: 
061657,000593: 17,2766           51505                           INDEX    AXISCTR                               
061658,000594: 17,2767           33105                           CA       INDEXES                               
061659,000595: 17,2770           54001                           TS       L                                     
061660,000596: 
061661,000597: 17,2771           31741                           CA       POLYTEMP                              
061662,000598: 17,2772           00004                           INHINT                                         
061663,000599: 17,2773           50001                           INDEX    L                                     
061664,000600: 17,2774           05754                           TC       WRITEP                                
061665,000601: 
061666,000602: 17,2775           00003                           RELINT                                         
061667,000603: 17,2776           13051                           TCF      FEEDBACK                              
061668,000604: 
061669,000605: 17,2777           51505        NOROTAT            INDEX    AXISCTR                               
061670,000606: 17,3000           33105                           CA       INDEXES                               
061671,000607: 17,3001           00004                           INHINT                                         
061672,000608: 17,3002           50000                           INDEX    A                                     
061673,000609: 17,3003           05753                           TC       WRITEP     -1                         
061674,000610: 
061675,000611: 17,3004           00003                           RELINT                                         
061676,000612: 17,3005           11505        LOOPER             CCS      AXISCTR                               
061677,000613: 17,3006           01477                           TC       RETJADR                               
061678,000614: 17,3007           13236                           TCF      CLOSEOUT                              
061679,000615: 17,3010           41737        DOSKIP             CS       ABSTJ                                 
061680,000616: 17,3011           63107                           AD       +TJMINT6                              #  14MS
061681,000617: 17,3012           00006                           EXTEND                                         
061682,000618: 17,3013           63032                           BZMF     NOTMIN                                
061683,000619: 
061684,000620: 17,3014           27737                           ADS      ABSTJ                                 
061685,000621: 17,3015           51505                           INDEX    AXISCTR                               
061686,000622: 17,3016           11525                           CCS      TJU                                   
061687,000623: 17,3017           33107                           CA       +TJMINT6                              
061688,000624: 17,3020           13022                           TCF      +2                                    
061689,000625: 17,3021           43107                           CS       +TJMINT6                              
061690,000626: 17,3022           51505                           INDEX    AXISCTR                               
061691,000627: 17,3023           55525                           TS       TJU                                   
061692,000628: 
061693,000629: 17,3024           11500                           CCS      SENSETYP                              #  ENSURE MIN-IMPULSE NOT AGAINST TRANS
061694,000630: 17,3025           13031                           TCF      NOTMIN     -1                         
061695,000631: 17,3026           00006                           EXTEND                                         
061696,000632: 17,3027           00004                           READ     LOSCALAR                              
061697,000633: 17,3030           74753                           MASK     ONE                                   
061698,000634: 17,3031           55743                           TS       NUMBERT                               
061699,000635: 
061700,000636: 17,3032           03173        NOTMIN             TC       SELCTSUB                              
061701,000637: 
061702,000638: 17,3033           51505                           INDEX    AXISCTR                               
061703,000639: 17,3034           33105                           CA       INDEXES                               
061704,000640: 17,3035           00004                           INHINT                                         

Page 1455

061706,000642: 17,3036           55471                           TS       T6FURTHA   +1                         
061707,000643: 17,3037           31741                           CA       POLYTEMP                              
061708,000644: 17,3040           51471                           INDEX    T6FURTHA   +1                         
061709,000645: 17,3041           05754                           TC       WRITEP                                
061710,000646: 
061711,000647: 17,3042           31737                           CA       ABSTJ                                 
061712,000648: 17,3043           55470                           TS       T6FURTHA                              
061713,000649: 17,3044           03114                           TC       JTLST                                 #  IN QR BANK BY NOW
061714,000650: 
061715,000651: 17,3045           00003                           RELINT                                         
061716,000652: 
061717,000653: 17,3046           34755                           CA       ZERO                                  
061718,000654: 17,3047           51505                           INDEX    AXISCTR                               
061719,000655: 17,3050           55535                           TS       SKIPU                                 
061720,000656: 
061721,000657: 17,3051           46245        FEEDBACK           CS       THREE                                 
061722,000658: 17,3052           61743                           AD       NUMBERT                               
061723,000659: 17,3053           00006                           EXTEND                                         
061724,000660: 17,3054           63057                           BZMF     +3                                    
061725,000661: 
061726,000662: 17,3055           34752                           CA       TWO                                   
061727,000663: 17,3056           13060                           TCF      +2                                    
061728,000664: 17,3057           34753                           CA       ONE                                   
061729,000665: 17,3060           51505                           INDEX    AXISCTR                               
061730,000666: 17,3061           55522                           TS       NO.UJETS                              
061731,000667: 17,3062           13005                           TCF      LOOPER                                
061732,000668: 
061733,000669: 17,3063           34755        XTRANS             CA       ZERO                                  
061734,000670: 17,3064           55525                           TS       TJU                                   
061735,000671: 17,3065           55526                           TS       TJV                                   
061736,000672: 17,3066           34751                           CA       FOUR                                  
061737,000673: 17,3067           00004                           INHINT                                         
061738,000674: 17,3070           57535                           XCH      SKIPU                                 
061739,000675: 17,3071           00006                           EXTEND                                         
061740,000676: 17,3072           13074                           BZF      +2                                    
061741,000677: 17,3073           05757                           TC       WRITEU     -1                         
061742,000678: 17,3074           34751                           CA       FOUR                                  
061743,000679: 17,3075           57536                           XCH      SKIPV                                 
061744,000680: 17,3076           00003                           RELINT                                         
061745,000681: 
061746,000682: 17,3077           00006                           EXTEND                                         
061747,000683: 17,3100           13236                           BZF      CLOSEOUT                              
061748,000684: 17,3101           00004                           INHINT                                         
061749,000685: 17,3102           05770                           TC       WRITEV     -1                         
061750,000686: 17,3103           00003                           RELINT                                         
061751,000687: 
061752,000688: 17,3104           13236                           TCF      CLOSEOUT                              
061753,000689: 17,3105           00004        INDEXES            DEC      4          B-14                       
061754,000690: 17,3106           00015                           DEC      13         B-14                       
061755,000691: 17,3107           00026        +TJMINT6           DEC      22         B-14                       

Page 1456

061757,000693: 17,3110           77417        -150MS             DEC      -240       B-14                       
061758,000694: 17,3111           00600        BIT8,9             OCT      00600                                 
061759,000695: 17,3112           00266        SCLNORM            OCT      266                                   
061760,000696: 17,3113           02671        TJLAWADR           GENADR   TJLAW      +3                         #  RETURN ADDRESS FOR RCS ATTITUDE CONTROL
061761,000697: 
061762,000698:                                                                                                  #  THE JET LIST:
061763,000699:                                                                                                  #  THIS IS A WAITLIST FOR T6RUPTS.
061764,000700: 
061765,000701:                                                                                                  #  CALLED BY:
061766,000702:                                                                                                  #                CA      TJ              TIME WHEN NEXT JETS WILL BE WRITTEN
061767,000703:                                                                                                  #                TS      T6FURTHA
061768,000704:                                                                                                  #                CA      INDEX           AXIS TO BE WIRTTEN AT TJ (FROM NOW)
061769,000705:                                                                                                  #                TS      T6FURTHA +1
061770,000706:                                                                                                  #                TC      JTLST
061771,000707: 
061772,000708:                                                                                                  #  EXAMPLE - U-AXIS AUTOPILOT WILL WRITE ITS ROTATION CODE OF
061773,000709:                                                                                                  #  JETS INTO CHANNEL 5.  IF IT DESIRES TO TURN OFF THIS POLICY WITHIN
061774,000710:                                                                                                  #  150MS AND THEN FIRE NEXTU, A CALL TO JTLST IS MADE WITH T6FURTHA
061775,000711:                                                                                                  #  CONTAINING THE TIME TO TURN OFF THE POLICY, T6FURTHA +1 THE INDEX
061776,000712:                                                                                                  #  OF THE U-AXIS(4), AND NEXTU WILL CONTAIN THE "U-TRANS" POLICY OR ZERO.
061777,000713: 
061778,000714:                                                                                                  #  THE LIST IS EXACTLY 3 LONG.  (THIS LEADS TO SKIP LOGIC AND 150MS LIMIT)
061779,000715:                                                                                                  #  THE INPUT IS THE LAST MEMBER OF THE LIST
061780,000716: 
061781,000717:                                                                                                  #  RETURNS BY:
061782,000718:                                                                                                  #        +       TC      Q
061783,000719: 
061784,000720:                                                                                                  #  DEFINITIONS:  (OUTPUT)
061785,000721:                                                                                                  #        TIME6           TIME OF NEXT RUPT
061786,000722:                                                                                                  #        T6NEXT          DELTA TIME TO NEXT RUPT
061787,000723:                                                                                                  #        T6FURTHA        DELTA TIME FROM 2ND TO LAST RUPT
061788,000724:                                                                                                  #        NXT6ADR         AXIS INDEX       Q - P-AXIS
061789,000725:                                                                                                  #        T6NEXT +1       AXIS INDEX       4 - U-AXIS
061790,000726:                                                                                                  #        T6FURTHA +1     AXIS INDEX      13 - V-AXIS
061791,000727: 
061792,000728: 17,3114           41470        JTLST              CS       T6FURTHA                              
061793,000729: 17,3115           60031                           AD       TIME6                                 
061794,000730: 17,3116           00006                           EXTEND                                         
061795,000731: 17,3117           63131                           BZMF     MIDORLST                              #  TIME6 - T IS IN A
061796,000732: 
061797,000733: 17,3120           23465                           LXCH     NXT6ADR                               
061798,000734: 17,3121           53467                           DXCH     T6NEXT                                
061799,000735: 17,3122           53471                           DXCH     T6FURTHA                              
061800,000736: 17,3123           54031                           TS       TIME6                                 
061801,000737: 17,3124           23465                           LXCH     NXT6ADR                               
061802,000738: 
061803,000739: 17,3125           34735        TURNON             CA       BIT15                                 
061804,000740: 17,3126           00006                           EXTEND                                         
061805,000741: 17,3127           05013                           WOR      CHAN13                                
061806,000742: 17,3130           00002                           TC       Q                                     
061807,000743: 

Page 1457

061809,000745: 17,3131           61466        MIDORLST           AD       T6NEXT                                
061810,000746: 17,3132           00006                           EXTEND                                         
061811,000747: 17,3133           63142                           BZMF     LASTCHG                               #  TIME6 + T6NEXT - T IS IN A
061812,000748: 
061813,000749: 17,3134           23467                           LXCH     T6NEXT     +1                         
061814,000750: 17,3135           53471                           DXCH     T6FURTHA                              
061815,000751: 17,3136           00006                           EXTEND                                         
061816,000752: 17,3137           60031                           SU       TIME6                                 
061817,000753: 17,3140           53467                           DXCH     T6NEXT                                
061818,000754: 
061819,000755: 17,3141           00002                           TC       Q                                     
061820,000756: 
061821,000757: 17,3142           40000        LASTCHG            CS       A                                     
061822,000758: 17,3143           64754                           AD       NEG0                                  
061823,000759: 17,3144           55470                           TS       T6FURTHA                              
061824,000760: 
061825,000761: 17,3145           00002                           TC       Q                                     
061826,000762: 
061827,000763:                                                                                                  #  ROT-TOUV IS ENTERED WITH THE Q-COMPONENT OF THE QUANTITY TO BE TRANSFORMED IN A AND THE R-COMPONENT IN L.
061828,000764:                                                                                                  #  ROT-TOUV TRANSFORMS THE QUANTITY INTO THE NON-ORTHOGONAL U-V AXIS SYSTEM.  IN THE U-V SYSTEM NO CROSS-COUPLING IS
061829,000765:                                                                                                  #  PRODUCED FROM RCS JET FIRINGS.  AT THE COMPLETION OF ROT-TOUV, THE U-COMPONENT OF THE TRANSFORMED QUANTITY IS IN
061830,000766:                                                                                                  #  A AND THE V-COMPONENT IS IN L.
061831,000767: 
061832,000768: 17,3146           23740        ROT-TOUV           LXCH     ROTEMP2                               #  (R) IS PUT INTO ROTEMP2
061833,000769: 17,3147           00006                           EXTEND                                         
061834,000770: 17,3150           71627                           MP       COEFFQ                                
061835,000771: 17,3151           57740                           XCH      ROTEMP2                               #  (R) GOES TO A AND COEFFQ.(Q) TO ROTEMP2
061836,000772: 17,3152           00006                           EXTEND                                         
061837,000773: 17,3153           71630                           MP       COEFFR                                
061838,000774: 17,3154           54001                           TS       L                                     #  COEFFR.(R) IS PUT INTO L
061839,000775: 17,3155           61740                           AD       ROTEMP2                               
061840,000776: 17,3156           55737                           TS       ROTEMP1                               #  COEFFQ.(Q)+COEFFR.(R) IS PUT IN ROTEMP1
061841,000777: 17,3157           13163                           TCF      +4                                    
061842,000778: 17,3160           50000                           INDEX    A                                     #  COEFFQ.(Q) + COEFFR.(R) HAS OVERFLOWED
061843,000779: 17,3161           44734                           CS       LIMITS                                #  AND IS LIMITED TO POSMAX OR NEGMAX
061844,000780: 17,3162           55737                           TS       ROTEMP1                               
061845,000781: 17,3163           41740                           CS       ROTEMP2                               
061846,000782: 17,3164           60001                           AD       L                                     #  -COEFFQ.(Q) + COEFFR.(R) IS NOW IN A
061847,000783: 17,3165           54007                           TS       7                                     
061848,000784: 17,3166           13171                           TCF      +3                                    
061849,000785: 17,3167           50000                           INDEX    A                                     #  -COEFFQ.(Q) + COEFFR.(R) HAS OVERFLOWED
061850,000786: 17,3170           44734                           CS       LIMITS                                #  AND IS LIMITED TO POSMAX OR NEGMAX
061851,000787: 17,3171           23737                           LXCH     ROTEMP1                               #  COEFFQ.(Q) + COEFFR.(R) IS PUT INTO L
061852,000788: 17,3172           00002                           TC       Q                                     
061853,000789: 17,3173           51744        SELCTSUB           INDEX    ROTINDEX                              
061854,000790: 17,3174           33225                           CA       ALLJETS                               
061855,000791: 17,3175           51743                           INDEX    NUMBERT                               
061856,000792: 17,3176           73231                           MASK     TYPEPOLY                              
061857,000793: 17,3177           55741                           TS       POLYTEMP                              

Page 1458

061859,000795: 17,3200           71262                           MASK     CH5MASK                               
061860,000796: 17,3201           10000                           CCS      A                                     
061861,000797: 17,3202           13204                           TCF      +2                                    
061862,000798: 
061863,000799: 17,3203           00002                           TC       Q                                     
061864,000800: 
061865,000801: 17,3204           36245                           CA       THREE                                 
061866,000802: 17,3205           55743        FAILOOP            TS       NUMBERT                               
061867,000803: 17,3206           51744                           INDEX    ROTINDEX                              
061868,000804: 17,3207           33225                           CA       ALLJETS                               
061869,000805: 17,3210           51743                           INDEX    NUMBERT                               
061870,000806: 17,3211           73231                           MASK     TYPEPOLY                              
061871,000807: 17,3212           55741                           TS       POLYTEMP                              
061872,000808: 17,3213           71262                           MASK     CH5MASK                               
061873,000809: 17,3214           00006                           EXTEND                                         
061874,000810: 17,3215           13203                           BZF      FAILOOP    -2                         
061875,000811: 17,3216           11743                           CCS      NUMBERT                               
061876,000812: 17,3217           13205                           TCF      FAILOOP                               
061877,000813: 17,3220           51505                           INDEX    AXISCTR                               
061878,000814: 17,3221           55525                           TS       TJU                                   
061879,000815: 17,3222           05567                           TC       ALARM                                 
061880,000816: 17,3223           02004                           OCT      02004                                 
061881,000817: 17,3224           12777                           TCF      NOROTAT                               
061882,000818: 17,3225           00110        ALLJETS            OCT      00110                                 #        -U      6 13
061883,000819: 17,3226           00022                           OCT      00022                                 #        -V      2 9
061884,000820: 17,3227           00204                           OCT      00204                                 #        +U      5 14
061885,000821: 17,3230           00041                           OCT      00041                                 #        +V      1 10
061886,000822: 17,3231           00125        TYPEPOLY           OCT      00125                                 #        -X      1 5 9 13
061887,000823: 17,3232           00252                           OCT      00252                                 #        +X      2 6 10 14
061888,000824: 17,3233           00146                           OCT      00146                                 #        A       2 5 10 13
061889,000825: 17,3234           00231                           OCT      00231                                 #        B       1 6 9 14
061890,000826: 17,3235           00377                           OCT      00377                                 #        ALL     1 2 5 6 9 10 13 14
061891,000827: 
061892,000828:                                                                                                  #  THE FOLLOWING SETS THE INTERRUPT FLIP-FLOP AS SOON AS POSSIBLE, WHICH PERMITS A RETURN TO THE INTERRUPTED JOB.
061893,000829: 
061894,000830: 17,3236           33240        CLOSEOUT           CA       ADRRUPT                               
061895,000831: 17,3237           07754                           TC       MAKERUPT                              
061896,000832: 
061897,000833: 17,3240           03241        ADRRUPT            ADRES    ENDJASK                               
061898,000834: 
061899,000835: 17,3241           53754        ENDJASK            DXCH     DAPARUPT                              
061900,000836: 17,3242           52011                           DXCH     ARUPT                                 
061901,000837: 17,3243           53756                           DXCH     DAPBQRPT                              
061902,000838: 17,3244           56017                           XCH      BRUPT                                 
061903,000839: 17,3245           22002                           LXCH     Q                                     
061904,000840: 17,3246           34735                           CAF      NEGMAX                                #  NEGATIVE DAPZRUPT SIGNALS JASK IS OVER.
061905,000841: 17,3247           53760                           DXCH     DAPZRUPT                              
061906,000842: 17,3250           52016                           DXCH     ZRUPT                                 
061907,000843: 17,3251           15272                           TCF      NOQRSM                                

Page 1459

061909,000845:    7754                                           BLOCK    3                                     
061910,000846:    6000                                           SETLOC   FFTAG6                                
061911,000847:    6000                                           BANK                                           
061912,000848: 
061913,000849:    7754                                           COUNT*   $$/DAP                                
061914,000850: 
061915,000851:    7754           00006        MAKERUPT           EXTEND                                         
061916,000852:    7755           07754                           EDRUPT   MAKERUPT                              
061917,000853: 

End of include-file Q,R-AXES_RCS_AUTOPILOT.agc.  Parent file is MAIN.agc