Source Code

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

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

064248,000002:                                                                                                  ## Copyright:   Public domain.
064249,000003:                                                                                                  ## Filename:    AOSTASK_AND_AOSJOB.agc
064250,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
064251,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
064252,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
064253,000007:                                                                                                  ## Assembler:   yaYUL
064254,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
064255,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
064256,000010:                                                                                                  ## Pages:       1485-1506
064257,000011:                                                                                                  ## Mod history: 2009-05-27 RSB  Adapted from the corresponding 
064258,000012:                                                                                                  ##                              Luminary131 file, using page 
064259,000013:                                                                                                  ##                              images from Luminary 1A.
064260,000014:                                                                                                  ##              2009-06-05 RSB  Corrected a memory-bank error type.
064261,000015:                                                                                                  ##              2009-06-07 RSB  Corrected a typo.
064262,000016:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
064263,000017:                                                                                                  ##              2016-12-18 RSB  Proofed text comments with octopus/ProoferComments
064264,000018:                                                                                                  ##                              and corrected the errors found.
064265,000019:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes identified in 5-way
064266,000020:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
064267,000021: 
064268,000022:                                                                                                  ## This source code has been transcribed or otherwise adapted from
064269,000023:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
064270,000024:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
064271,000025:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
064272,000026:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
064273,000027:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
064274,000028:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
064275,000029:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
064276,000030:                                                                                                  ## actually created.
064277,000031:                                                                                                  ##
064278,000032:                                                                                                  ## Notations on the hardcopy document read, in part:
064279,000033:                                                                                                  ##
064280,000034:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
064281,000035:                                                                                                  ##      16:27 JULY 14, 1969 
064282,000036: 

Page 1485

064284,000038:                                                                                                  #  PROGRAM NAME:         1/ACCS
064285,000039:                                                                                                  #  PROGRAM WRITTEN BY:   BOB COVELLI AND MIKE HOUSTON
064286,000040:                                                                                                  #  LAST MODIFICATION:    FEB. 14, 1969 BY G. KALAN
064287,000041: 
064288,000042:                                                                                                  #  PROGRAM DESCRIPTION:
064289,000043:                                                                                                  #        1/ACCS PROVIDES THE INTERFACE BETWEEN THE GUIDANCE PROGRAMS AND THE DIGITAL AUTOPILOT.  WHENEVER THERE IS A
064290,000044:                                                                                                  #        CHANGE IN THE MASS OF THE VEHICLE, IN THE DEADBAND SELECTED, IN THE VEHICLE CONFIGURATION (ASCENT-DESCENT-
064291,000045:                                                                                                  #        DOCKED), AND DURING A FRESH START OR A RESTART, 1/ACCS IS CALLED TO COMMUNICATE THE DATA CHANGES TO THE DAP.
064292,000046: 
064293,000047:                                                                                                  #        THE INPUTS TO 1/ACCS ARE MASS, ACCELERATION (ABDELV), DEADBAND (DB), OFFSET ACCELERATIONS (AOSQ AND AOSR),
064294,000048:                                                                                                  #        STAGE VERIFY BIT (CHAN30, BIT2), DOCKED BIT (DAPBOOLS, BIT13), DRIFT BIT (DAPBOOLS, BIT8), USEQRJTS (DAPBOOLS,
064295,000049:                                                                                                  #        BIT14), AND SURFACE FLAG (FLAGWRD8, BIT8), AND CH5MASK.
064296,000050: 
064297,000051:                                                                                                  #        1/ACCS COMPUTES THE JET ACCELERATIONS (1JACC, 1JACCQ, 1JACCR) AS FUNCTIONS OF MASS.  1JACCU AND 1JACCV ARE
064298,000052:                                                                                                  #        FORMED BY RESOLVING 1JACCQ NAD 1JACCR.  IN THE DESCENT CASE, THE DESCENT ENGINE MOMENT ARM (L, PVT-CG) IS ALSO
064299,000053:                                                                                                  #        COMPUTED AS A FUNCTION OF MASS.  THE RATE OF CHANGE OF ACCELERATION DUE TO ROTATION OF THE GIMBAL (ACCDOTQ,
064300,000054:                                                                                                  #        ACCDOTR) IS ALSO COMPUTED IN THE DESCENT CASE.
064301,000055: 
064302,000056:                                                                                                  #        AFTER THE ABOVE COMPUTATIONS, THE PROGRAM 1/ACCONT COMPUTES THE RECIPROCAL NET ACCELERATIONS ABOUT THE P, U,
064303,000057:                                                                                                  #        AND V AXES (2 JETS FOR P AXIS, BOTH 1 AND 2 JETS FOR U AND V AXES), AND THE RECIPROCAL COAST ACCELERATIONS ABOUT
064304,000058:                                                                                                  #        THE P, U, AND V AXES.  THE ACCELERATION FUNCTIONS (ACCFCTZ1 AND ACCFCTZ5) ARE ALSO COMPUTED FOR THESE AXES.  THE
064305,000059:                                                                                                  #        FIRE AND COAST DEADBANDS AND AXISDIST ARE COMPUTED FOR EACH AXIS.  FLAT AND ZONE3LIM, THE WIDTH AND HEIGHT OF THE
064306,000060:                                                                                                  #        MINIMUM IMPULSE ZONE, ARE COMPUTED.  1/ACCONT ALSO SETS ACCSWU AND ACCSWV, WHICH INDICATE WHEN 1 JET ACCELERATION
064307,000061:                                                                                                  #        IS NOT SUFFICIENT TO PRODUCE MINIMUM ACCELERATION.  AT THE COMPLETION OF 1/ACCS, THE ACCSOKAY BIT IS SET.
064308,000062: 
064309,000063:                                                                                                  #  SUBBOUTINES CALLED:
064310,000064:                                                                                                  #        TIMEGMBL
064311,000065:                                                                                                  #        MAKECADR
064312,000066:                                                                                                  #        ROT45DEG
064313,000067: 
064314,000068:                                                                                                  #  CALLING SEQUENCE:
064315,000069:                                                                                                  #                TC      BANKCALL        (1/ACCS MUST BE CALL BY BANKCALL
064316,000070:                                                                                                  #                CADR    1/ACCS
064317,000071: 
064318,000072:                                                                                                  #  NORMAL EXIT:  VIA BANKJUMP            ALARM AND ABORT EXIT MODES:  NONE.
064319,000073: 
064320,000074:                                                                                                  #  INPUT/OUTPUT:  SEE PROGRAM DESCRIPTION
064321,000075: 
064322,000076:                                                                                                  #  DEBRIS:
064323,000077:                                                                                                  #        ALL OF THE EXECUTIVE TEMPORARY REGISTERS, EXCEPT FIXLOC AND OVFIND, AND THE CORE SET AREA FROM MPAC TO BANKSET.
064324,000078: 
064325,000079:                                                                                                  #  RESTRICTIONS:
064326,000080:                                                                                                  #        1/ACCS MUST BE CALLED BY BANKCALL
064327,000081:                                                                                                  #        EBANK IS SET TO 6, BUT NOT RESTORED.

Page 1486

064329,000083: 
064330,000084: 20,2447                                           BANK     20                                    
064331,000085: 20,2000                                           SETLOC   DAPS3                                 
064332,000086: 20,2000                                           BANK                                           
064333,000087: 
064334,000088: 20,2447                                           COUNT*   $$/DAPAO                              
064335,000089: 
064336,000090: 20,2447  E6,1537                                  EBANK=   AOSQ                                  
064337,000091: 
064338,000092:                                                                                                  #  ENTRY IS THROUGH 1/ACCJOB OR 1/ACCSET WHEN 1/ACCS IS TO BE DONE AS A SEPARATE NOVAC JOB.
064339,000093:                                                                                                  #  IT IS POSSIBLE FOR MORE THAN ONE OF THESE JOBS TO BE SET UP CONCURRENTLY.  HOWEVER, SINCE THERE IS NO CHECK OF
064340,000094:                                                                                                  #  NEWJOB, A SECOND MANIFESTATION CANNOT BE STARTED UNTIL THE FIRST IS COMPLETED.
064341,000095: 
064342,000096: 20,2447           34755        1/ACCSET           CAF      ZERO                                  #  ENTRY FROM FRESH START/RESTART CODING.
064343,000097: 20,2450           55537                           TS       AOSQ                                  #        NULL THE OFFSET ESTIMATES FOR 1/ACCS.
064344,000098: 20,2451           55541                           TS       AOSR                                  
064345,000099: 20,2452           55424                           TS       ALPHAQ                                #        NULL THE OFFSET ESTIMATES FOR DOWNLIST
064346,000100: 20,2453           55425                           TS       ALPHAR                                
064347,000101: 
064348,000102: 20,2454           04616        1/ACCJOB           TC       BANKCALL                              #  1/ACCS ASSUMES ENTRY VIA BANKCALL.
064349,000103: 20,2455           40461                           CADR     1/ACCS     +2                         #  SKIP EBANK SETTING.
064350,000104: 
064351,000105: 20,2456           05155                           TC       ENDOFJOB                              
064352,000106: 
064353,000107: 20,2457           35015        1/ACCS             CA       EBANK6                                #  ***** EBANK SET BUT NOT RESTORED *****
064354,000108: 20,2460           54003                           TS       EBANK                                 
064355,000109: 
064356,000110: 20,2461           04645                           TC       MAKECADR                              #  SAVE RETURN SO THAT BUF2 MAY BE USED
064357,000111: 20,2462           54117                           TS       ACCRETRN                              
064358,000112: 
064359,000113:                                                                                                  #  DETERMINE MASS OF THE LEM.
064360,000114: 
064361,000115: 20,2463           30111                           CA       DAPBOOLS                              #  IS CSM DOCKED
064362,000116: 20,2464           74737                           MASK     CSMDOCKD                              
064363,000117: 20,2465           54157                           TS       DOCKTEMP                              #  STORE RECORD OF STATE IN TEMP (MPAC +3).
064364,000118: 20,2466           10000                           CCS      A                                     
064365,000119: 20,2467           41332                           CS       CSMMASS                               #        DOCKED:  LEMMASS = MASS - CSMMASS
064366,000120: 20,2470           61244                           AD       MASS                                  #        LEM ALONE:  LEMMASS = MASS
064367,000121: 20,2471           55331                           TS       LEMMASS                               
064368,000122: 
064369,000123:                                                                                                  #  ON THE BASIS OF APSFLAG:
064370,000124:                                                                                                  #        SET THE P-AXIS RATE COMMAND LIMIT FOR 2-JET/4-JET CONTROL
064371,000125:                                                                                                  #        SET MPAC, WHICH INDICATES THE PROPER SET OF COEFFICIENTS FOR THE LEM-ALONE F(MASS) CALCULATIONS
064372,000126:                                                                                                  #        ENSURE THAT THE LEM MASS VALUE IS WITHIN THE ACCEPTABLE RANGE
064373,000127: 
064374,000128: 20,2472           00004                           INHINT                                         
064375,000129: 20,2473           30106                           CAE      FLGWRD10                              #  DETERMINE WHETHER STAGED.
064376,000130: 20,2474           74737                           MASK     APSFLBIT                              
064377,000131: 20,2475           00006                           EXTEND                                         
064378,000132: 20,2476           12522                           BZF      DPSFLITE                              

Page 1487

064380,000134: 20,2477           44733                           CS       POSMAX                                #  ASCENT (OR ON LUNAR SURFACE)
064381,000135: 20,2500           55475                           TS       -2JETLIM                              #  ALWAYS 2 JETS FOR P-AXIS RATE COMMAND
064382,000136: 20,2501           35751                           CAF      OCT14                                 #  INITIALIZE INDEX AT 12.
064383,000137: 20,2502           54154                           TS       MPAC                                  
064384,000138: 20,2503           41331                           CS       LEMMASS                               #  CHECK IF MASS TOO HIGH.  CATCH STAGING.
064385,000139: 20,2504           61400                           AD       HIASCENT                              
064386,000140: 20,2505           00006                           EXTEND                                         
064387,000141: 20,2506           62513                           BZMF     MASSFIX                               
064388,000142: 20,2507           41331                           CS       LEMMASS                               #  CHECK IF MASS TOO LOW.  THIS LIMITS THE
064389,000143: 20,2510           62001                           AD       LOASCENT                              #        DECREMENTING BY MASSMON.
064390,000144: 20,2511           00006                           EXTEND                                         
064391,000145: 20,2512           62540                           BZMF     F(MASS)                               
064392,000146: 
064393,000147: 20,2513           27331        MASSFIX            ADS      LEMMASS                               #  STORE THE VIOLATED LIMIT AS LEMMASS.
064394,000148: 20,2514           22007                           ZL                                             #        ALSO CORRECT TOTAL MASS, ZEROING THE
064395,000149: 20,2515           10157                           CCS      DOCKTEMP                              #        LOW-ORDER WORD.
064396,000150: 20,2516           31332                           CAE      CSMMASS                               #                DOCKED:  MASS = LEMMASS + CSMMASS
064397,000151: 20,2517           61331                           AD       LEMMASS                               #                LEM ALONE:  MASS = LEMMASS
064398,000152: 20,2520           53245                           DXCH     MASS                                  
064399,000153: 20,2521           12540                           TCF      F(MASS)                               
064400,000154: 
064401,000155: 20,2522           44742        DPSFLITE           CS       BIT10                                 #  FOUR JETS FOR P-AXIS RATE COMMAND ERRORS
064402,000156: 20,2523           55475                           TS       -2JETLIM                              #        EXCEEDING 1.4 DEG/SEC (SCALED AT 45)
064403,000157: 20,2524           36242                           CAF      SIX                                   #  INITIALIZE INDEX AT 6.
064404,000158: 20,2525           54154                           TS       MPAC                                  
064405,000159: 20,2526           41331                           CS       LEMMASS                               #  CHECK IF MASS TOO HIGH.  SHOULD NEVER
064406,000160: 20,2527           62002                           AD       HIDESCNT                              #        OCCUR EXCEPT PERHAPS BEFORE THE PAD
064407,000161: 20,2530           00006                           EXTEND                                         #        LOAD IS DONE.
064408,000162: 20,2531           62513                           BZMF     MASSFIX                               
064409,000163: 20,2532           41331                           CS       LEMMASS                               #  CHECK IF MASS TOO LOW.  THIS LIMITS THE
064410,000164: 20,2533           62003                           AD       LODESCNT                              #        DECREMENTING BY MASSMON.
064411,000165: 20,2534           61400                           AD       HIASCENT                              
064412,000166: 20,2535           00006                           EXTEND                                         
064413,000167: 20,2536           62540                           BZMF     F(MASS)                               
064414,000168: 20,2537           12513                           TCF      MASSFIX                               
064415,000169: 
064416,000170:                                                                                                  #  COMPUTATION OF FUNCTIONS OF MASS
064417,000171: 
064418,000172: 20,2540           00003        F(MASS)            RELINT                                         
064419,000173: 20,2541           10157                           CCS      DOCKTEMP                              
064420,000174: 20,2542           13105                           TCF      DOCKED                                #  DOCKED:  USE SEPERATE COMPUTATION.
064421,000175: 20,2543           34752                           CA       TWO                                   
064422,000176: 20,2544           54155        STCTR              TS       MPAC       +1                         #  J=2,1,0 FOR 1JACCR,1JACCQ,1JACC
064423,000177: 
064424,000178: 20,2545           44752                           CS       TWO                                   
064425,000179: 20,2546           26154                           ADS      MPAC                                  #  JX=10,8,6 OR 4,2,0 TO INDEX COEFS.
064426,000180: 
064427,000181: 20,2547           31331        STCTR1             CAE      LEMMASS                               
064428,000182: 20,2550           50154                           INDEX    MPAC                                  
064429,000183: 20,2551           63060                           AD       INERCONC                              
064430,000184: 20,2552           54156                           TS       MPAC       +2                         #  MASS + C

Page 1488

064432,000186: 20,2553           00006                           EXTEND                                         
064433,000187: 20,2554           50154                           INDEX    MPAC                                  
064434,000188: 20,2555           33042                           DCA      INERCONA                              
064435,000189: 20,2556           00006                           EXTEND                                         
064436,000190: 20,2557           10156                           DV       MPAC       +2                         
064437,000191: 20,2560           50154                           INDEX    MPAC                                  
064438,000192: 20,2561           63057                           AD       INERCONB                              
064439,000193: 20,2562           50155                           INDEX    MPAC       +1                         #  1JACC(J)=A(JX)/(MASS+C(JX) + B(JX)
064440,000194: 20,2563           55530                           TS       1JACC                                 #  1JACC(-1)=L,PVT-CG  SCALED AT 8 FEET
064441,000195: 
064442,000196: 20,2564           10155                           CCS      MPAC       +1                         
064443,000197: 20,2565           12544                           TCF      STCTR                                 
064444,000198: 20,2566           12570                           TCF      COMMEQS                               
064445,000199: 20,2567           12667                           TCF      LRESC                                 
064446,000200: 
064447,000201:                                                                                                  #  COEFFQ AND COEFFR ARE COMPUTED IN THIS SECTION.  THEY ARE USED TO RESOLVE Q-R COMPONENTS INTO NON-ORTHOGONAL
064448,000202:                                                                                                  #  U AND V COMPONENTS (SEE ROT-TOUV SECTION).
064449,000203: 
064450,000204: 20,2570           41532        COMMEQS            CS       1JACCR                                
064451,000205: 20,2571           61531                           AD       1JACCQ                                
064452,000206: 20,2572           00006                           EXTEND                                         
064453,000207: 20,2573           62617                           BZMF     BIGIQ                                 
064454,000208: 20,2574           00006                           EXTEND                                         #  EPSILON IS A MEASURE OF COUPLING AND IS
064455,000209: 20,2575           11531                           DV       1JACCQ                                #  DEFINED=1-IQ/IR FOR IR GREATER THAN IQ.
064456,000210: 20,2576           54155                           TS       EPSILON                               #  THE COMPUTED EXPRESSION IS EQUIVALENT
064457,000211: 20,2577           63104                           AD       -EPSMAX                               
064458,000212: 20,2600           00006                           EXTEND                                         
064459,000213: 20,2601           62604                           BZMF     GOODEPS1                              
064460,000214: 20,2602           43104                           CS       -EPSMAX                               
064461,000215: 20,2603           54155                           TS       EPSILON                               #  EPSILON IS LIMITED TO A MAX. OF .42265
064462,000216: 20,2604           30155        GOODEPS1           CA       EPSILON                               
064463,000217: 20,2605           00006                           EXTEND                                         
064464,000218: 20,2606           73100                           MP       0.35356                               
064465,000219: 20,2607           63102                           AD       .7071                                 
064466,000220: 20,2610           55630                           TS       COEFFR                                #  IN THIS CASE WHERE IR IS GREATER THAN
064467,000221: 20,2611           44733                           CS       POSMAX                                #  IQ, COEFFQ=-.707(1+.5EPSILON)(1-EPSILON)
064468,000222: 20,2612           60155                           AD       EPSILON                               #  AND COEFFR=.707(1+.5EPSILON)
064469,000223: 20,2613           00006                           EXTEND                                         
064470,000224: 20,2614           71630                           MP       COEFFR                                
064471,000225: 20,2615           55627                           TS       COEFFQ                                
064472,000226: 20,2616           12642                           TCF      JACCUV                                
064473,000227: 20,2617           00006        BIGIQ              EXTEND                                         #  EPSILON IS DEFINED AS 1-IR/IQ FOR IQ
064474,000228: 20,2620           11532                           DV       1JACCR                                #  GREATER THAN IR.  -EPSILON IS COMPUTED
064475,000229: 20,2621           54155                           TS       -EPSILON                              #  RATHER THAN EPSILON FOR CONVENIENCE
064476,000230: 20,2622           40155                           CS       -EPSILON                              
064477,000231: 20,2623           63104                           AD       -EPSMAX                               
064478,000232: 20,2624           00006                           EXTEND                                         
064479,000233: 20,2625           62630                           BZMF     GOODEPS2                              
064480,000234: 20,2626           33104                           CA       -EPSMAX                               
064481,000235: 20,2627           54155                           TS       -EPSILON                              #  EPSILON IS LIMITED TO A MAX. OF .42265

Page 1489

064483,000237: 20,2630           30155        GOODEPS2           CA       -EPSILON                              
064484,000238: 20,2631           00006                           EXTEND                                         
064485,000239: 20,2632           73100                           MP       0.35356                               
064486,000240: 20,2633           63103                           AD       -.7071                                
064487,000241: 20,2634           55627                           TS       COEFFQ                                #  IN THIS CASE WHERE IQ IS GREATER THAN
064488,000242: 20,2635           40155                           CS       -EPSILON                              #  IR, COEFFQ=-.707(1+.5EPSILON) AND
064489,000243: 20,2636           64735                           AD       NEGMAX                                #  COEFFR=.707(1+.5EPSILON)(1-EPSILON)
064490,000244: 20,2637           00006                           EXTEND                                         
064491,000245: 20,2640           71627                           MP       COEFFQ                                
064492,000246: 20,2641           55630                           TS       COEFFR                                
064493,000247: 20,2642           41627        JACCUV             CS       COEFFQ                                
064494,000248: 20,2643           00006                           EXTEND                                         
064495,000249: 20,2644           71531                           MP       1JACCQ                                #  1JACCQ IS SCALED AT PI/4
064496,000250: 20,2645           55533                           TS       1JACCU                                #  1JACCU USED AS TEMPORARY STORAGE
064497,000251: 20,2646           31630                           CA       COEFFR                                
064498,000252: 20,2647           00006                           EXTEND                                         
064499,000253: 20,2650           71532                           MP       1JACCR                                
064500,000254: 20,2651           61533                           AD       1JACCU                                
064501,000255: 20,2652           00006                           EXTEND                                         
064502,000256: 20,2653           74736                           MP       BIT14                                 #  SCALING CHANGED FROM PI/4 TO PI/2
064503,000257: 20,2654           55533                           TS       1JACCU                                
064504,000258: 20,2655           55534                           TS       1JACCV                                #  SCALED AT PI/2 RADIANS/SEC(2)
064505,000259: 20,2656           10154                           CCS      MPAC                                  #  COMPUTE L,PVT-CG IF IN DESCENT
064506,000260: 20,2657           34755                           CAF      ZERO                                  #  ZERO SWITCHES AND GO TO 1/ACCONT IN
064507,000261: 20,2660           55502                           TS       ALLOWGTS                              #        ASCENT
064508,000262: 20,2661           13230                           TCF      1/ACCONT   -1                         
064509,000263: 
064510,000264: 20,2662           44752                           CS       TWO                                   
064511,000265: 20,2663           54154                           TS       MPAC                                  
064512,000266: 20,2664           44753                           CS       ONE                                   
064513,000267: 20,2665           54155                           TS       MPAC       +1                         
064514,000268: 20,2666           12547                           TCF      STCTR1                                
064515,000269: 
064516,000270:                                                                                                  #  THIS SECTION COMPUTES THE RATE OF CHANGE OF ACCELERATION DUE TO THE ROTATION OF THE GIMBALS.  THE EQUATION IMPLE
064517,000271:                                                                                                  #  MENTED IN BOTH THE Y-X PLANE AND THE Z-X PLANE IS -- D(ALPHA)/DT = TL/I*D(DELTA)/DT, WHERE
064518,000272:                                                                                                  #        T = ENGINE THRUST FORCE
064519,000273:                                                                                                  #        L = PIVOT TO CG DISTANCE OF ENGINE
064520,000274:                                                                                                  #        I = MOMENT OF INERTIA
064521,000275: 
064522,000276: 20,2667           31246        LRESC              CAE      ABDELV                                #  SCALED AT 2(13) CM/SEC(2)
064523,000277: 20,2670           00006                           EXTEND                                         
064524,000278: 20,2671           71244                           MP       MASS                                  #  SCALED AT B+16 KGS
064525,000279: 20,2672           02776                           TC       DVOVSUB                               #  GET QUOTIENT WITH OVERFLOW PROTECTION
064526,000280: 20,2673           03101                           ADRES    GFACTM                                
064527,000281: 
064528,000282:                                                                                                  #  MASS IS DIVIDED BY ACCELERATION OF GRAVITY IN ORDER TO MATCH THE UNITS OF IXX,IYY,IZZ, WHICH ARE SLUG-FT(2).
064529,000283:                                                                                                  #  THE RATIO OF ACCELERATION FROM PIPAS TO ACCELERATION OF GRAVITY IS THE SAME IN METRIC OR ENGINEERING UNITS, SO
064530,000284:                                                                                                  #  THAT IS UNCONVERTED.  2.20462 CONVERTS KG. TO LB.  NOW T IS IN A SCALED AT 2(14).
064531,000285: 
064532,000286: 20,2674           00006                           EXTEND                                         
064533,000287: 20,2675           71527                           MP       L,PVT-CG                              #  SCALED AT 8 FEET.

Page 1490

064535,000289: 20,2676           00004                           INHINT                                         
064536,000290: 20,2677           54154                           TS       MPAC                                  
064537,000291: 20,2700           00006                           EXTEND                                         
064538,000292: 20,2701           71532                           MP       1JACCR                                
064539,000293: 20,2702           02776                           TC       DVOVSUB                               #  GET QUOTIENT WITH OVERFLOW PROTECTION
064540,000294: 20,2703           02000                           ADRES    TORKJET1                              
064541,000295: 
064542,000296: 20,2704           55511                           TS       ACCDOTR                               #  SCALED AT PI/2(7)
064543,000297: 20,2705           30154                           CA       MPAC                                  
064544,000298: 20,2706           00006                           EXTEND                                         
064545,000299: 20,2707           71531                           MP       1JACCQ                                
064546,000300: 20,2710           02776                           TC       DVOVSUB                               #  GET QUOTIENT WITH OVERFLOW PROTECTION
064547,000301: 20,2711           02000                           ADRES    TORKJET1                              
064548,000302: 
064549,000303: 20,2712           55507        SPSCONT            TS       ACCDOTQ                               #  SCALED AT PI/2(7)
064550,000304: 20,2713           00006                           EXTEND                                         
064551,000305: 20,2714           73077                           MP       DGBF                                  #  .3ACCDOTQ SCALED AT PI/2(8)
064552,000306: 20,2715           55504                           TS       KQ                                    
064553,000307: 20,2716           31511                           CAE      ACCDOTR                               #  .3ACCDOTR AT PI/2(8)
064554,000308: 20,2717           00006                           EXTEND                                         
064555,000309: 20,2720           73077                           MP       DGBF                                  
064556,000310: 20,2721           55506                           TS       KRDAP                                 
064557,000311: 20,2722           00006                           EXTEND                                         #  NOW COMPUTE QACCDOT, RACCDOT, THE SIGNED
064558,000312: 20,2723           00012                           READ     CHAN12                                #  JERK TERMS.  STORE CHANNEL 12. WITH GIM
064559,000313: 20,2724           54155                           TS       MPAC       +1                         #  BAL DRIVE BITS 9 THROUGH 12. SET LOOP
064560,000314: 20,2725           34752                           CAF      BIT2                                  #  INDEX TO COMPUTE RACCDOT, THEN QACCDOT.
064561,000315: 20,2726           12730                           TCF      LOOP3                                 
064562,000316: 20,2727           34755                           CAF      ZERO                                  #  ACCDOTQ AND ACCDOTR ARE NOT NEGATIVE,
064563,000317: 20,2730           54154        LOOP3              TS       MPAC                                  #  BECAUSE THEY ARE MAGNITUDES
064564,000318: 20,2731           30155                           CA       MPAC       +1                         
064565,000319: 20,2732           50154                           INDEX    MPAC                                  #  MASK CHANNEL IMAGE FOR ANY GIMBAL MOTION
064566,000320: 20,2733           73073                           MASK     GIMBLBTS                              
064567,000321: 20,2734           00006                           EXTEND                                         
064568,000322: 20,2735           12751                           BZF      ZACCDOT                               #  IF NONE, Q(R)ACCDOT IS ZERO.
064569,000323: 20,2736           30155                           CA       MPAC       +1                         
064570,000324: 20,2737           50154                           INDEX    MPAC                                  #  GIMBAL IS MOVING.  IS ROTATION POSITIVE.
064571,000325: 20,2740           73074                           MASK     GIMBLBTS   +1                         
064572,000326: 20,2741           00006                           EXTEND                                         
064573,000327: 20,2742           12746                           BZF      FRSTZERO                              #  IF NOT POSITIVE, BRANCH
064574,000328: 20,2743           50154                           INDEX    MPAC                                  #  POSITIVE ROTATION, NEGATIVE Q(R)ACCDOT.
064575,000329: 20,2744           41507                           CS       ACCDOTQ                               
064576,000330: 20,2745           12752                           TCF      STACCDOT                              
064577,000331: 20,2746           50154        FRSTZERO           INDEX    MPAC                                  #  NEGATIVE ROTATION, POSITIVE Q(R)ACCDOT.
064578,000332: 20,2747           31507                           CA       ACCDOTQ                               
064579,000333: 20,2750           12752                           TCF      STACCDOT                              
064580,000334: 20,2751           34755        ZACCDOT            CAF      ZERO                                  
064581,000335: 20,2752           50154        STACCDOT           INDEX    MPAC                                  
064582,000336: 20,2753           55510                           TS       QACCDOT                               #  STORE Q(R)ACCDOT.
064583,000337: 20,2754           10154                           CCS      MPAC                                  
064584,000338: 20,2755           12727                           TCF      LOOP3      -1                         #  NOW DO QACCDOT.

Page 1491

064586,000340: 20,2756           40111                           CS       DAPBOOLS                              #  IS GIMBAL USABLE?
064587,000341: 20,2757           74736                           MASK     USEQRJTS                              
064588,000342: 20,2760           00006                           EXTEND                                         
064589,000343: 20,2761           13706                           BZF      DOWNGTS                               #  NO. BE SURE THE GIMBAL SWITCHES ARE DOWN
064590,000344: 20,2762           41274                           CS       T5ADR                                 #  YES.  IS THE DAP RUNNING?
064591,000345: 20,2763           63765                           AD       PAXISADR                              
064592,000346: 20,2764           00006                           EXTEND                                         
064593,000347: 20,2765           12767                           BZF      +2                                    
064594,000348: 20,2766           13706                           TCF      DOWNGTS                               #  NO. BE SURE THE GIMBAL SWITCHES ARE DOWN
064595,000349: 20,2767           11633                           CCS      INGTS                                 #  YES.  IS GTS IN CONTROL?
064596,000350: 20,2770           12773                           TCF      DOCKTEST                              #  YES.  PROCEED WITH 1/ACCS.
064597,000351: 20,2771           04674                           TC       IBNKCALL                              #  NO. NULL OFFSET AND FIND ALLOWGTS
064598,000352: 20,2772           43330                           CADR     TIMEGMBL                              
064599,000353: 
064600,000354: 20,2773           10157        DOCKTEST           CCS      DOCKTEMP                              #  BYPASS 1/ACCONT WHEN DOCKED.
064601,000355: 20,2774           13671                           TCF      1/ACCRET                              
064602,000356: 20,2775           13231                           TCF      1/ACCONT                              
064603,000357: 

Page 1492

064605,000359:                                                                                                  #  SUBROUTINE:   DVOVSUB
064606,000360:                                                                                                  #  AUTHOR:       C. WORK, MOD 0 12 JUNE 68
064607,000361:                                                                                                  #  PURPOSE:      THIS SUBROUTINE PROVIDES A SINGLE-PRECISION MACHINE LANGUAGE DIVISION OPERATION WHICH RETURNS
064608,000362:                                                                                                  #                (1) THE QUOTIENT, IF THE DIVISION WAS NORMAL.
064609,000363:                                                                                                  #                (2) NEGMAX, IF THE QUOTIENT WAS IMPROPER AND NEGATIVE.
064610,000364:                                                                                                  #                (3) POSMAX, IF THE QUOTIENT WAS IMPROPER AND POSITIVE OR IF THERE WAS A ZERO DIVISOR.
064611,000365:                                                                                                  #                THE CALLING PROGRAM IS PRESUMED TO BE A JOB IN THE F BANK WHICH CONTAINS DVOVSUB.  E BANK MUST BE 6.
064612,000366:                                                                                                  #                THE DIVISOR FOR THIS ROUTINE MAY BE IN EITHER FIXED OR ERASABLE STORAGE.  SIGN AGREEMENT IS
064613,000367:                                                                                                  #                ASSUMED BETWEEN THE TWO HALVES OF THE DIVIDEND.  (THIS IS CERTAIN IF THE A AND L REGISTERS ARE THE RE-
064614,000368:                                                                                                  #                SULT OF A MULTIPLICATION OPERATION.)
064615,000369:                                                                                                  #  CALL SEQUENCE:
064616,000370:                                                                                                  #                        L       TC      DVOVSUB
064617,000371:                                                                                                  #                        L +1    ADRES   (DIVISOR)
064618,000372:                                                                                                  #                        L +2    RETURN HERE, WITH RESULT IN A,L
064619,000373:                                                                                                  #  INPUT:        DIVIDEND IN A,L (SIGN AGREEMENT ASSUMED), DIVISOR IN LOCATION DESIGNATED BY "ADRES".
064620,000374:                                                                                                  #                DIVISOR MAY BE IN THE DVOVSUB FBANK,FIXED-FIXED FBANK,EBANK 6, OR UNSWITCHED ERASABLE.
064621,000375:                                                                                                  #  OUTPUT:       QUOTIENT AND REMAINDER, OR POSMAX (NEGMAX), WHICHEVER IS APPROPRIATE.
064622,000376:                                                                                                  #  DEBRIS:       SCRATCHX,SCRATCHY,SCRATCHZ,A,L  (NOTE: SCRATCHX,Y,Z ARE EQUATED TO MPAC +4,+5, AND +6.)
064623,000377:                                                                                                  #  ABORTS OR ALARMS:  NONE
064624,000378:                                                                                                  #  EXITS:        TO THE CALL POINT +2.
064625,000379:                                                                                                  #  SUBROUTINES CALLED:  NONE.
064626,000380: 
064627,000381: 20,2776           54161        DVOVSUB            TS       SCRATCHY                              #  SAVE UPPER HALF OF DIVIDEND
064628,000382: 20,2777           54160                           TS       SCRATCHX                              
064629,000383: 20,3000           50002                           INDEX    Q                                     #  OBTAIN ADDRESS OF DIVISOR.
064630,000384: 20,3001           30000                           CA       0                                     
064631,000385: 20,3002           24002                           INCR     Q                                     #  STEP Q FOR PROPER RETURN SEQUENCE.
064632,000386: 20,3003           50000                           INDEX    A                                     
064633,000387: 20,3004           30000                           CA       0                                     #  PICK UP THE DIVISOR.
064634,000388: 20,3005           00006                           EXTEND                                         #  RETURN POSMAX FOR A ZERO DIVISOR.
064635,000389: 20,3006           13035                           BZF      MAXPLUS                               
064636,000390: 
064637,000391: 20,3007           54162                           TS       SCRATCHZ                              #  STORE DIVISOR.
064638,000392: 
064639,000393: 20,3010           10000                           CCS      A                                     #  GET ABS(DIVISOR) IN THE A REGISTER.
064640,000394: 20,3011           64753                           AD       BIT1                                  
064641,000395: 20,3012           13014                           TCF      ZEROPLUS                              
064642,000396: 20,3013           64753                           AD       BIT1                                  
064643,000397: 
064644,000398: 20,3014           56161        ZEROPLUS           XCH      SCRATCHY                              #  STORE ABS(DIVISOR).  PICK UP TOP HALF OF
064645,000399: 20,3015           00006                           EXTEND                                         #  DIVIDEND.
064646,000400: 20,3016           63020                           BZMF     GOODNEG                               #  GET -ABS(DIVIDEND)

Page 1493

064648,000402: 20,3017           40000                           CS       A                                     
064649,000403: 
064650,000404: 20,3020           60161        GOODNEG            AD       SCRATCHY                              #  ABS(DIVISOR) - ABS(DIVIDEND)
064651,000405: 20,3021           00006                           EXTEND                                         
064652,000406: 20,3022           63027                           BZMF     MAKEMAX                               #  BRANCH IF DIVISION IS NOT PROPER.
064653,000407: 
064654,000408: 20,3023           30160                           CA       SCRATCHX                              #  RE-ESTABLISH THE DIVIDEND.
064655,000409: 20,3024           00006                           EXTEND                                         
064656,000410: 20,3025           10162                           DV       SCRATCHZ                              #  QUOTIENT IN THE A, REMAINDER IN L.
064657,000411: 20,3026           00002                           TC       Q                                     #  RETURN TO CALLER.
064658,000412: 
064659,000413: 20,3027           10160        MAKEMAX            CCS      SCRATCHX                              #  DETERMINE THE SIGN OF THE QUOTIENT.
064660,000414: 20,3030           10162                           CCS      SCRATCHZ                              #  SCRATCHX AND SCRATCHZ ARE NON-ZERO.
064661,000415: 20,3031           13035                           TCF      MAXPLUS                               
064662,000416: 20,3032           10162                           CCS      SCRATCHZ                              
064663,000417: 20,3033           34735                           CAF      NEGMAX                                #  +,- OR -,+
064664,000418: 20,3034           00002                           TC       Q                                     
064665,000419: 20,3035           34733        MAXPLUS            CAF      POSMAX                                #  -,- OR +,+
064666,000420: 20,3036           00002                           TC       Q                                     
064667,000421: 
064668,000422:                                                                                                  #  COEFFICIENTS FOR THE JET ACCELERATION CURVE FITS
064669,000423:                                                                                                  #  THE CURVE FITS ARE OF THE FORM -
064670,000424: 
064671,000425:                                                                                                  #        1JACC = A/(MASS + C) + B
064672,000426: 
064673,000427:                                                                                                  #  A IS SCALED AT PI/4 RAD/SEC**2 B+16KG, B IS SCALED AT PI/4 RAD/SEC**2, AND C IS SCALED AT B +16 KG.
064674,000428: 
064675,000429:                                                                                                  #  THE CURVE FIT FOR L,PVT-CG IS OF THE SAME FORM, EXCEPT THAT A IS SCALED AT 8 FT B+16 KG, B IS SCALED AT 8 FT,
064676,000430:                                                                                                  #  AND C IS SCALED AT B+16 KG.
064677,000431: 
064678,000432: 20,3037           01240 22513                     2DEC     +.0410511917                            #  L             A               DESCENT
064679,000433: 
064680,000434: 20,3041           00141 07416  INERCONA           2DEC     +.0059347674                            #  1JACCP        A               DESCENT
064681,000435: 
064682,000436: 20,3043           00030 21261                     2DEC     +.0014979264                            #  1JACCQ        A               DESCENT
064683,000437: 
064684,000438: 20,3045           00021 03766                     2DEC     +.0010451889                            #  1JACCR        A               DESCENT
064685,000439: 
064686,000440: 20,3047           00153 07111                     2DEC     +.0065443852                            #  1JACCP        A               ASCENT
064687,000441: 
064688,000442: 20,3051           00072 24103                     2DEC     +.0035784354                            #  1JACCQ        A               ASCENT
064689,000443: 
064690,000444: 20,3053           00135 11511                     2DEC     +.0056946631                            #  1JACCR        A               ASCENT
064691,000445: 
064692,000446: 20,3055           04754                           DEC      +.155044                              #  L             B               DESCENT
064693,000447: 20,3056           77142                           DEC      -.025233                              #  L             C               DESCENT

Page 1494

064695,000449: 20,3057           00061        INERCONB           DEC      +.002989                              #  1JACCP        B               DESCENT
064696,000450: 20,3060           00217        INERCONC           DEC      +.008721                              #  1JACCP        C               DESCENT
064697,000451: 20,3061           00464                           DEC      +.018791                              #  1JACCQ        B               DESCENT
064698,000452: 20,3062           75642                           DEC      -.068163                              #  1JACCQ        C               DESCENT
064699,000453: 20,3063           00536                           DEC      +.021345                              #  1JACCR        B               DESCENT
064700,000454: 20,3064           75705                           DEC      -.066027                              #  1JACCR        C               DESCENT
064701,000455: 
064702,000456: 20,3065           00001                           DEC      +.000032                              #  1JACCP        B               ASCENT
064703,000457: 20,3066           77616                           DEC      -.006923                              #  1JACCP        C               ASCENT
064704,000458: 20,3067           05154                           DEC      +.162862                              #  1JACCQ        B               ASCENT
064705,000459: 20,3070           00052                           DEC      +.002588                              #  1JACCQ        C               ASCENT
064706,000460: 20,3071           00231                           DEC      +.009312                              #  1JACCR        B               ASCENT
064707,000461: 20,3072           77174                           DEC      -.023608                              #  1JACCR        C               ASCENT
064708,000462: 
064709,000463: 20,3073           01400        GIMBLBTS           OCTAL    01400                                 
064710,000464: 20,3074           01000                           OCTAL    01000                                 
064711,000465: 20,3075           06000                           OCTAL    06000                                 
064712,000466: 20,3076           04000                           OCTAL    04000                                 
064713,000467: 20,3077           23146        DGBF               DEC      0.6                                   #  .3 SCALED AT 1/2
064714,000468: 20,3100           13241        0.35356            DEC      0.35356                               #  .70711 SCALED AT 2
064715,000469: 20,3101           00337        GFACTM             OCT      337                                   #  979.24/2.20462 AT B+15
064716,000470: 20,3102           26501        .7071              DEC      .70711                                
064717,000471: 20,3103           51276        -.7071             DEC      -.70711                               
064718,000472: 20,3104           62362        -EPSMAX            DEC      -.42265                               
064719,000473: 
064720,000474:                                                                                                  #  CSM-DOCKED INERTIA COMPUTATIONS
064721,000475: 
064722,000476: 20,3105           34753        DOCKED             CA       ONE                                   #  COEFTR  = 1 FOR INERTIA COEFFICIENTS
064723,000477: 20,3106           54160        SPSLOOP1           TS       COEFCTR                               #          = 7 FOR CG COEFFICIENTS
064724,000478: 20,3107           34753                           CA       ONE                                   #  MASSCTR = 1 FOR CSM
064725,000479: 20,3110           54161                           TS       MASSCTR                               #          = 0 FOR LEM
064726,000480: 
064727,000481: 20,3111           50160                           INDEX    COEFCTR                               
064728,000482: 20,3112           33212                           CA       COEFF      -1                         #  COEFF -1 = C
064729,000483: 20,3113           00006                           EXTEND                                         
064730,000484: 20,3114           71331                           MP       LEMMASS                               
064731,000485: 20,3115           00006                           EXTEND                                         
064732,000486: 20,3116           71332                           MP       CSMMASS                               #  LET X = CSMMASS AND Y = LEMMASS
064733,000487: 
064734,000488: 20,3117           50160                           INDEX    COEFCTR                               
064735,000489: 20,3120           63213                           AD       COEFF                                 #  COEFF = F
064736,000490: 20,3121           54154                           TS       MPAC                                  #  MPAC = C X Y + F
064737,000491: 20,3122           13126                           TCF      +4                                    
064738,000492: 
064739,000493: 20,3123           54161        SPSLOOP2           TS       MASSCTR                               #  LOOP TWICE THROUGH HERE TO OBTAIN
064740,000494: 20,3124           00006                           EXTEND                                         #  MPAC = MPAC + (A X +D)X + (B Y +E)Y
064741,000495: 20,3125           26160                           DIM      COEFCTR                               #                 LOOP #1     LOOP #2
064742,000496: 20,3126           50160                           INDEX    COEFCTR                               
064743,000497: 20,3127           33215                           CA       COEFF      +2                         #  COEFF +2 = A OR B
064744,000498: 20,3130           00006                           EXTEND                                         

Page 1495

064746,000500: 20,3131           50161                           INDEX    MASSCTR                               
064747,000501: 20,3132           71331                           MP       LEMMASS                               
064748,000502: 20,3133           50160                           INDEX    COEFCTR                               
064749,000503: 20,3134           63217                           AD       COEFF      +4                         #  COEFF +4 = E OR D
064750,000504: 20,3135           00006                           EXTEND                                         
064751,000505: 20,3136           50161                           INDEX    MASSCTR                               
064752,000506: 20,3137           71331                           MP       LEMMASS                               
064753,000507: 20,3140           26154                           ADS      MPAC                                  
064754,000508: 
064755,000509: 20,3141           10161                           CCS      MASSCTR                               
064756,000510: 20,3142           13123                           TCF      SPSLOOP2                              
064757,000511: 20,3143           10160                           CCS      COEFCTR                               #  IF COEFCTR IS POS, EXIT FROM LOOP WITH
064758,000512: 20,3144           13153                           TCF      +7                                    #  CG X DELDOT = MPAC X 4 PI RAD-CM/SEC
064759,000513: 20,3145           00000 20354  TORQCONS           2DEC     0.51443    B-14                       #  CORRESPONDS TO 500 LB-FT
064760,000514: 
064761,000515: 20,3147           30154                           CA       MPAC                                  
064762,000516: 20,3150           54155                           TS       MPAC       +1                         #  INERTIA = (MPAC +1) X 2(38) KG-CM(2)
064763,000517: 20,3151           34757                           CA       SEVEN                                 
064764,000518: 20,3152           13106                           TCF      SPSLOOP1                              
064765,000519: 
064766,000520: 20,3153           33212                           CA       1JACCCON                              #  1JACC=1JACCCON/MASS
064767,000521: 20,3154           22007                           ZL                                             
064768,000522: 20,3155           02776                           TC       DVOVSUB                               
064769,000523: 20,3156           01244                           ADRES    MASS                                  
064770,000524: 20,3157           55530                           TS       1JACC                                 #  SCALED AT PI/4
064771,000525: 
064772,000526: 20,3160           34733                           CA       POSMAX                                #  SET INVERSE JET ACCELERATIONS TO POSMAX,
064773,000527: 20,3161           55551                           TS       1/ANETP                               #  WHICH CORRESPONDS TO ACCEL. OF 1.4 D/SS.
064774,000528: 20,3162           55571                           TS       1/ANET2    +1                         
064775,000529: 20,3163           55572                           TS       1/ANET2    +2                         
064776,000530: 20,3164           55611                           TS       1/ANET2    +17D                       
064777,000531: 20,3165           55612                           TS       1/ANET2    +18D                       
064778,000532: 20,3166           00006                           EXTEND                                         
064779,000533: 20,3167           33146                           DCA      TORQCONS                              
064780,000534: 20,3170           00006                           EXTEND                                         
064781,000535: 20,3171           10155                           DV       MPAC       +1                         
064782,000536: 20,3172           00004                           INHINT                                         
064783,000537: 20,3173           55531                           TS       1JACCQ                                #  SCALED AT PI/4
064784,000538: 20,3174           55532                           TS       1JACCR                                
064785,000539: 
064786,000540: 20,3175           33103                           CA       -.7071                                
064787,000541: 20,3176           55627                           TS       COEFFQ                                #  COEFFQ AND COEFFR ARE CHOSEN TO MAKE U-
064788,000542: 20,3177           33102                           CA       .7071                                 #  AND V-AXES ORTHOGONAL FOR DOCKED CASE
064789,000543: 20,3200           55630                           TS       COEFFR                                
064790,000544: 20,3201           31244                           CA       MASS                                  #  SCALED AT 2(16) KG
064791,000545: 20,3202           00006                           EXTEND                                         
064792,000546: 20,3203           70154                           MP       MPAC                                  #  SCALED AT 4 PI RAD-CM/SEC
064793,000547: 20,3204           00006                           EXTEND                                         
064794,000548: 20,3205           71246                           MP       ABDELV                                #  SCALED AT 2(13) CM/SEC(2)
064795,000549: 20,3206           02776                           TC       DVOVSUB                               #  GET QUOTIENT WITH OVERFLOW PROTECTION

Page 1496

064797,000551: 20,3207           00155                           ADRES    MPAC       +1                         
064798,000552: 
064799,000553: 20,3210           55511                           TS       ACCDOTR                               
064800,000554: 20,3211           12712                           TCF      SPSCONT                               #  CONTINUE K, KSQ CALCULATIONS
064801,000555: 
064802,000556: 20,3212           00167        1JACCCON           OCT      00167                                 #  SCALED AT PI/4X2(16) RAD/SEC(2)-KG
064803,000557: 
064804,000558:                                                                                                  #                                                2     2
064805,000559:                                                                                                  #  COEFFICIENTS FOR CURVE FIT OF THE FORM Z = A X  +B Y  +C X Y +D X +E Y +F
064806,000560: 
064807,000561: 20,3213           06176        COEFF              DEC      .19518                                #  C  COEFFICIENT OF INERTIA
064808,000562: 20,3214           77650                           DEC      -.00529                               #  F             ''
064809,000563: 20,3215           72260                           DEC      -.17670                               #  B             ''
064810,000564: 20,3216           76637                           DEC      -.03709                               #  A             ''
064811,000565: 20,3217           02167                           DEC      .06974                                #  E             ''
064812,000566: 20,3220           00645                           DEC      .02569                                #  D             ''
064813,000567: 
064814,000568: 20,3221           06335                           DEC      .20096                                #  C  COEFFICIENT OF CG
064815,000569: 20,3222           04256                           DEC      .13564                                #  F          ''
064816,000570: 20,3223           30163                           DEC      .75704                                #  B          ''
064817,000571: 20,3224           64072                           DEC      -.37142                               #  A          ''
064818,000572: 20,3225           53632                           DEC      -.63117                               #  E          ''
064819,000573: 20,3226           15133                           DEC      .41179                                #  D          ''
064820,000574: 
064821,000575:                                                                                                  #  ASSIGNMENT OF TEMPORARIES FOR 1/ACCS (EXCLUDING 1/ACCONT)
064822,000576:                                                                                                  #  MPAC, MPAC +1, MPAC +2  USED EXPLICITLY
064823,000577: 20,3227     0160               COEFCTR            EQUALS   MPAC       +4                         
064824,000578: 20,3227     0161               MASSCTR            EQUALS   MPAC       +5                         
064825,000579: 20,3227     0160               SCRATCHX           EQUALS   MPAC       +4                         #  SCRATCH AREA FOR DVOVSUB ROUTINE.
064826,000580: 20,3227     0161               SCRATCHY           EQUALS   SCRATCHX   +1                         
064827,000581: 20,3227     0162               SCRATCHZ           EQUALS   SCRATCHX   +2                         
064828,000582: 
064829,000583: 20,3227     0157               DOCKTEMP           EQUALS   MPAC       +3                         #  RECORD OF CSMDOCKED BIT OF DAPBOOLS
064830,000584: 20,3227     0155               EPSILON            EQUALS   MPAC       +1                         
064831,000585: 20,3227     0155               -EPSILON           EQUALS   EPSILON                               
064832,000586: 20,3227           71777        -.1875             DEC      -.18750                               
064833,000587: 

Page 1497

064835,000589: 20,3230                                           BANK     20                                    
064836,000590: 20,2000                                           SETLOC   DAPS3                                 
064837,000591: 20,2000                                           BANK                                           
064838,000592: 
064839,000593: 20,3230  E6,1537                                  EBANK=   AOSQ                                  
064840,000594: 
064841,000595: 20,3230                                           COUNT*   $$/DAPAO                              
064842,000596: 
064843,000597: 20,3230           55633                 -1        TS       INGTS                                 #  ZERO INGTS IN ASCENT
064844,000598: 20,3231           31346        1/ACCONT           CA       DB                                    #  INITIALIZE DBVAL1,2,3
064845,000599: 20,3232           00006                           EXTEND                                         
064846,000600: 20,3233           74737                           MP       BIT13                                 
064847,000601: 20,3234           54001                           TS       L                                     #  0.25 DB
064848,000602: 20,3235           60000                           AD       A                                     
064849,000603: 20,3236           54115                           TS       DBVAL3                                #  0.50 DB
064850,000604: 20,3237           41346                           CS       DBVAL1                                
064851,000605: 20,3240           60001                           AD       L                                     
064852,000606: 20,3241           54114                           TS       DBVAL2                                #  -.75 DB
064853,000607: 
064854,000608: 20,3242           00004        GETAOSUV           INHINT                                         
064855,000609: 20,3243           31541                           CAE      AOSR                                  #  COMPUTE AOSU AND AOSV BY ROTATING
064856,000610: 20,3244           54001                           TS       L                                     #        AOSQ AND AOSR.
064857,000611: 20,3245           31537                           CAE      AOSQ                                  
064858,000612: 20,3246           04674                           TC       IBNKCALL                              
064859,000613: 20,3247           37146                           CADR     ROT-TOUV                              
064860,000614: 20,3250           53544                           DXCH     AOSU                                  
064861,000615: 
064862,000616: 20,3251           00003                           RELINT                                         
064863,000617: 20,3252           30111                           CA       DAPBOOLS                              
064864,000618: 20,3253           74744                           MASK     DRIFTBIT                              #  ZERO DURING ULLAGE AND POWERED FLIGHT.
064865,000619: 20,3254           10000                           CCS      A                                     #  IF DRIFTING FLIGHT,
064866,000620: 20,3255           34753                           CA       ONE                                   #        SET DRIFTER TO 1
064867,000621: 20,3256           54116                           TS       DRIFTER                               #  SAVE TO TEST FOR DRIFTING FLIGHT LATER
064868,000622: 20,3257           61502                           AD       ALLOWGTS                              #  NON-ZERO IF DRIFT OR GTS NEAR
064869,000623: 20,3260           10000                           CCS      A                                     
064870,000624: 20,3261           33763                           CA       FLATVAL                               #  DRIFTING FLIGHT, STORE .8 IN FLAT
064871,000625: 20,3262           54151                           TS       FLATEMP                               #  IN POWERED FLIGHT, STORE ZERO IN FLAT
064872,000626: 20,3263           00006                           EXTEND                                         
064873,000627: 20,3264           13270                           BZF      DOPAXIS                               #  IF POWERED AND NO GTS, START P AXIS,
064874,000628: 20,3265           10116                           CCS      DRIFTER                               #  OTHERWISE SET ZONE3LIM
064875,000629: 20,3266           33762                           CA       ZONE3MAX                              #  17.5 MS, SCALED AT 4 SECONDS.
064876,000630: 20,3267           54152                           TS       Z3TEM                                 
064877,000631: 
064878,000632: 20,3270           31530        DOPAXIS            CA       1JACC                                 #  1JACC AT PI/4 = 2JACC AT PI/2 =
064879,000633:                                                                                                  #  ANET AT PI/2 = ANET/ACOAST AT 2(6).
064880,000634: 20,3271           64743                           AD       BIT9                                  #  1 + ANET/ACOAST AT 2(6)
064881,000635: 20,3272           54157                           TS       FUNTEM                                
064882,000636: 
064883,000637: 20,3273           31530                           CA       1JACC                                 

Page 1498

064885,000639: 20,3274           03700                           TC       INVERT                                
064886,000640: 20,3275           00004                           INHINT                                         #  P AXIS DATA MUST BE CONSISTENT
064887,000641: 20,3276           55551                           TS       1/ANETP                               #  SCALED AT 2(7)/PI.
064888,000642: 20,3277           55552                           TS       1/ANETP    +1                         
064889,000643: 
064890,000644: 20,3300           44743                           CS       BIT9                                  #  -1 AT 2(6)
064891,000645: 20,3301           00006                           EXTEND                                         
064892,000646: 20,3302           71551                           MP       1/ANETP                               #  -1/ANET AT 2(13)/PI
064893,000647: 20,3303           00006                           EXTEND                                         
064894,000648: 20,3304           10157                           DV       FUNTEM                                #  -1/(ANET + ANET**2/ACOAST) AT 2(7)/PI
064895,000649: 20,3305           55557                           TS       PACCFUN                               
064896,000650: 20,3306           55560                           TS       PACCFUN    +1                         
064897,000651: 
064898,000652: 20,3307           34733                           CA       1/.03                                 #  NO AOS FOR P AXIS, ACOAST = AMIN
064899,000653: 20,3310           55553                           TS       1/ACOSTP                              
064900,000654: 20,3311           55554                           TS       1/ACOSTP   +1                         
064901,000655: 20,3312           00003                           RELINT                                         
064902,000656: 
064903,000657: 20,3313           22007                           ZL                                             
064904,000658: 20,3314           10116                           CCS      DRIFTER                               
064905,000659: 20,3315           53544                           DXCH     AOSU                                  #  ZERO AOSU,V IF IN DRIFT, JUST TO BE SURE
064906,000660: 
064907,000661: 20,3316           34755        UAXIS              CA       ZERO                                  #  DO U AXIS COMPUTATIONS
064908,000662: 20,3317           54154                           TS       UV                                    #  ZERO FOR U AXIS, ONE FOR V AXIS.
064909,000663: 
064910,000664: 20,3320           54163        BOTHAXES           TS       SIGNAOS                               #  CODING COMMON TO U,V AXES
064911,000665: 20,3321           50154                           INDEX    UV                                    
064912,000666: 20,3322           11543                           CCS      AOSU                                  #  PICK UP ABS(AOSU OR AOSV)
064913,000667: 20,3323           64753                           AD       ONE                                   #  RESTORE TO PROPER VALUE
064914,000668: 20,3324           13327                           TCF      +3                                    #  AND LEAVE SIGNAOS AT ZERO
064915,000669: 20,3325           64753                           AD       ONE                                   #  NEGATIVE, RESTORE TO PROPER VALUE
064916,000670: 20,3326           24163                           INCR     SIGNAOS                               #  AND SET SIGNAOS TO ONE TO SHOW AOS NEG
064917,000671: 20,3327           54162                           TS       ABSAOS                                #  SAVE ABS(AOS)
064918,000672: 20,3330           40163                           CS       SIGNAOS                               
064919,000673: 20,3331           54164                           TS       -SIGNAOS                              #  USED AS AN INDEX
064920,000674: 
064921,000675: 20,3332           31346                           CA       DBVAL1                                #  SET DB1, DB2 TO DBVAL1 (= DB)
064922,000676: 20,3333           54143                           TS       DBB1                                  
064923,000677: 20,3334           54144                           TS       DBB2                                  
064924,000678: 
064925,000679: 20,3335           30162                           CA       ABSAOS                                #  TEST MAGNITUDE OF ABS(AOS)
064926,000680: 20,3336           63764                           AD       -.03R/S2                              
064927,000681: 20,3337           00006                           EXTEND                                         
064928,000682: 20,3340           63432                           BZMF     NOTMUCH                               #  ABS(AOS) LESS THAN AMIN
064929,000683: 20,3341           10151        BIGAOS             CCS      FLATEMP                               #  AGS(AOS) GREATER THAN AMIN
064930,000684: 20,3342           13372                           TCF      SKIPDB1                               #  I DRIFT OR GTS, DO NOT COMPUTE DB
064931,000685: 
064932,000686: 20,3343           31346                           CA       DBVAL1                                
064933,000687: 20,3344           50164                           INDEX    -SIGNAOS                              

Page 1499

064935,000689: 20,3345           26144                           ADS      DBB2                                  #  DB2(1) = 2 DB
064936,000690: 20,3346           50163                           INDEX    SIGNAOS                               
064937,000691: 20,3347           54145                           TS       DBB4                                  #  DB4(3) = 1 DB
064938,000692: 20,3350           33227                           CA       -.1875                                #  -.1875 PI/2 RAD/SEC(2) SCALED AT PI/2
064939,000693: 20,3351           60162                           AD       ABSAOS                                #  ABSAOS IS SCALED AT PI/2
064940,000694: 20,3352           00006                           EXTEND                                         
064941,000695: 20,3353           63356                           BZMF     +3                                    
064942,000696: 20,3354           40115                           CS       DBVAL3                                #  -.5 DB
064943,000697: 20,3355           13365                           TCF      DBONE                                 
064944,000698: 20,3356           40162                           CS       ABSAOS                                
064945,000699: 20,3357           60000                           DOUBLE                                         
064946,000700: 20,3360           60000                           DOUBLE                                         
064947,000701: 20,3361           64736                           AD       BIT14                                 
064948,000702: 20,3362           60000                           DOUBLE                                         #  1-8 ABSAOS.  (8 IS 16/PI SCALED AT 2/PI)
064949,000703: 20,3363           00006                           EXTEND                                         
064950,000704: 20,3364           71346                           MP       DB                                    
064951,000705: 20,3365           50163        DBONE              INDEX    SIGNAOS                               #  DB1(2)=(1-8 ABSAOS) DB.  IF ABSAOS IS
064952,000706: 20,3366           54143                           TS       DBB1                                  #  GREATER THAN .1875 THEN DB1(2) = -.5 DB
064953,000707: 20,3367           30114                           CA       DBVAL2                                
064954,000708: 20,3370           50164                           INDEX    -SIGNAOS                              
064955,000709: 20,3371           54146                           TS       DBB3                                  #  DB3(4) = -.75 DB
064956,000710: 
064957,000711: 20,3372           30162        SKIPDB1            CA       ABSAOS                                #  ABS(AOS) GREATER THAN AMIN, SO IT IS
064958,000712: 20,3373           00006                           EXTEND                                         
064959,000713: 20,3374           74740                           MP       BIT12                                 
064960,000714: 20,3375           60162                           AD       ABSAOS                                #  (9/8) ABSAOS.
064961,000715: 20,3376           03700                           TC       INVERT                                #  ALL RIGHT TO DIVIDE
064962,000716: 20,3377           50164                           INDEX    -SIGNAOS                              
064963,000717: 20,3400           54130                           TS       1/ACOSTT   +1                         #  1/ACOASTPOS(NEG) = 1/ABS(AOS)
064964,000718: 20,3401           34733                           CA       1/.03                                 
064965,000719: 20,3402           50163                           INDEX    SIGNAOS                               
064966,000720: 20,3403           54127                           TS       1/ACOSTT                              #  1/ACOASTNEG(POS) = 1/AMIN
064967,000721: 
064968,000722: 20,3404           30162                           CA       ABSAOS                                
064969,000723: 20,3405           61533                           AD       1JACCU                                
064970,000724: 20,3406           61533                           AD       1JACCU                                #  2 JACC + ABS(AOS)
064971,000725: 20,3407           64743                           AD       BIT9                                  #  MAXIMUM VALUE IN COMPUTATIONS
064972,000726: 20,3410           54000                           TS       A                                     #  TEST FOR OVERFLOW
064973,000727: 20,3411           13456                           TCF      SKIPDB2                               #  NO OVERFLOW, DO NORMAL COMPUTATION
064974,000728: 
064975,000729: 20,3412           30162                           CA       ABSAOS                                #  RESCALE TO PI TO PREVENT OVERFLOW
064976,000730: 20,3413           00006                           EXTEND                                         
064977,000731: 20,3414           74736                           MP       BIT14                                 
064978,000732: 20,3415           61533                           AD       1JACCU                                #  1 JACC AT PI/2 = 2JACC AT PI
064979,000733: 20,3416           54157                           TS       ANET                                  #  ANETPOS(NEG) MAX SCALED AT PI =
064980,000734:                                                                                                  #  ANETPOS(NEG) MAX/ACOASTNEG(POS) AT 2(7)
064981,000735: 20,3417           64744                           AD       BIT8                                  #  1 + ANETPOS/ACOASTNEG AT 2(7)
064982,000736: 20,3420           56157                           XCH      ANET                                  #  SAVE IN ANET, WHILE PICKING UP ANET
064983,000737: 20,3421           03700                           TC       INVERT                                
064984,000738: 20,3422           00006                           EXTEND                                         

Page 1500

064986,000740: 20,3423           74736                           MP       BIT14                                 #  SCALE 1/ANET AT 2(7)/PI
064987,000741: 20,3424           54160                           TS       1/ANET                                
064988,000742: 
064989,000743: 20,3425           33431                           CA       ACCHERE                               #  SET UP RETURN FROM COMPUTATION ROUTINE
064990,000744: 20,3426           54161                           TS       ARET                                  
064991,000745: 20,3427           44744                           CS       BIT8                                  #  -1 AT 2(7)
064992,000746: 20,3430           13733                           TCF      DOACCFUN                              #  FINISH ACCFUN COMPUTATION
064993,000747: 
064994,000748: 20,3431           13463        ACCHERE            TCF      ACCTHERE                              
064995,000749: 
064996,000750: 20,3432           54001        NOTMUCH            TS       L                                     #  ABS(AOS) LESS THAN AMIN, SAVE IN L
064997,000751: 20,3433           34733                           CA       1/.03                                 #  ACOASTPOS,NEG = AMIN
064998,000752: 20,3434           54127                           TS       1/ACOSTT                              
064999,000753: 20,3435           54130                           TS       1/ACOSTT   +1                         
065000,000754: 
065001,000755: 20,3436           10151                           CCS      FLATEMP                               
065002,000756: 20,3437           13456                           TCF      SKIPDB2                               #  DO NOT COMPUTE DB IF DRIFT OR GTS
065003,000757: 
065004,000758: 20,3440           34744                           CA       .0125RS                               #  AMIN/2
065005,000759: 20,3441           60001                           AD       L                                     #  L HAS ABS(AOS) - AMIN
065006,000760: 20,3442           00006                           EXTEND                                         #  RESULT IS ABS(AOS)- AMIN/2
065007,000761: 20,3443           63453                           BZMF     NOAOS                                 #  ABS(AOS) LESS THAN AMIN/2
065008,000762: 
065009,000763: 20,3444           30115        SOMEAOS            CA       DBVAL3                                #  AMIN/2 LT ABS(AOS) LT AMIN
065010,000764: 20,3445           50164                           INDEX    -SIGNAOS                              
065011,000765: 20,3446           54146                           TS       DBB3                                  #  DB3(4) = DB/2
065012,000766: 20,3447           60000                           AD       A                                     
065013,000767: 20,3450           50163                           INDEX    SIGNAOS                               
065014,000768: 20,3451           54145                           TS       DBB4                                  #  DB4(3) = DB
065015,000769: 20,3452           13456                           TCF      SKIPDB2                               
065016,000770: 
065017,000771: 20,3453           31346        NOAOS              CA       DBVAL1                                
065018,000772: 20,3454           54146                           TS       DBB3                                  #  DB3,4 = DB
065019,000773: 20,3455           54145                           TS       DBB4                                  
065020,000774: 
065021,000775: 20,3456           30162        SKIPDB2            CA       ABSAOS                                #  ANETPOS(NEG) MAX = 2 JACC + ABS(AOS)
065022,000776: 20,3457           61533                           AD       1JACCU                                
065023,000777: 20,3460           61533                           AD       1JACCU                                
065024,000778: 20,3461           54157                           TS       ANET                                  #  CONNOT OVERFLOW HERE
065025,000779: 20,3462           03724        CL1/NET+           TC       DO1/NET+                              #  COMPUTE 1/ANET, ACCFUN
065026,000780: 
065027,000781: 20,3463           50164        ACCTHERE           INDEX    -SIGNAOS                              
065028,000782: 20,3464           54134                           TS       Z5TEM      +2                         #  STORE ACCFUN IN TEMPORARY BUFFER
065029,000783: 20,3465           30160                           CA       1/ANET                                
065030,000784: 20,3466           50164                           INDEX    -SIGNAOS                              
065031,000785: 20,3467           54126                           TS       1/ATEM2    +2                         #  STORE 1/ANET IN TEMPORARY BUFFER
065032,000786: 
065033,000787: 20,3470           30162                           CA       ABSAOS                                #  SEE IF OVERFLOW IN MIN CASE
065034,000788: 20,3471           61533                           AD       1JACCU                                

Page 1501

065036,000790: 20,3472           64743                           AD       BIT9                                  #  MAXIMUM POSSIBLE VALUE
065037,000791: 20,3473           54000                           TS       A                                     #  OVERFLOW POSSIBLE BUT REMOTE
065038,000792: 20,3474           13476                           TCF      +2                                    
065039,000793: 20,3475           34733                           CA       POSMAX                                #  IF OVERFLOW, TRUNCATE TO PI/2
065040,000794: 20,3476           63764                           AD       -.03R/S2                              #  RESTORE TO CORRECT VALUE
065041,000795: 20,3477           54157                           TS       ANET                                  
065042,000796: 20,3500           03724                           TC       DO1/NET+                              #  COMPUTE 1/ANET, ACCFUN
065043,000797: 
065044,000798: 20,3501           50164                           INDEX    -SIGNAOS                              #  STORE MIN VALUES JUST AS MAX VALUES
065045,000799: 20,3502           54132                           TS       Z5TEM                                 
065046,000800: 20,3503           30160                           CA       1/ANET                                
065047,000801: 20,3504           50164                           INDEX    -SIGNAOS                              
065048,000802: 20,3505           54124                           TS       1/ATEM2                               
065049,000803: 
065050,000804: 20,3506           40162                           CS       ABSAOS                                #  NOW DO NEG(POS) CASES
065051,000805: 20,3507           61533                           AD       1JACCU                                
065052,000806: 20,3510           61533                           AD       1JACCU                                #  ANETNEG(POS) MAX
065053,000807: 20,3511           03712                           TC       1/ANET-                               #  COMPUTE 1/ANET, ACCFUN, AND ACCSW
065054,000808: 20,3512           50163                           INDEX    SIGNAOS                               #  STORE NEG(POS) VALUES JUST AS POS(NEG)
065055,000809: 20,3513           54133                           TS       Z1TEM      +2                         
065056,000810: 20,3514           54001                           TS       L                                     #  SAVE IN L FOR POSSIBLE FUTURE USE
065057,000811: 20,3515           30160                           CA       1/ANET                                
065058,000812: 20,3516           50163                           INDEX    SIGNAOS                               
065059,000813: 20,3517           54125                           TS       1/ATEM1    +2                         
065060,000814: 20,3520           40162                           CS       ABSAOS                                
065061,000815: 20,3521           61533                           AD       1JACCU                                #  1/ANETNEG(POS) MIN
065062,000816: 20,3522           54157                           TS       ANET                                  
065063,000817: 20,3523           63764                           AD       -.03R/S2                              #  TEST FOR AMIN
065064,000818: 20,3524           00006                           EXTEND                                         #  IF ANET LESS THAN AMIN, STORE MAX JET
065065,000819: 20,3525           63743                           BZMF     FIXMIN                                #  VALUES FOR MIN JETS AND SET ACCSW
065066,000820: 
065067,000821: 20,3526           03720                           TC       1/NETMIN                              #  OTHERWISE DO MIN JET COMPUTATIONS
065068,000822: 20,3527           50163        STMIN-             INDEX    SIGNAOS                               #  STORE VALUES
065069,000823: 20,3530           54131                           TS       Z1TEM                                 
065070,000824: 20,3531           30160                           CA       1/ANET                                
065071,000825: 20,3532           50163                           INDEX    SIGNAOS                               
065072,000826: 20,3533           54123                           TS       1/ATEM1                               
065073,000827: 
065074,000828: 20,3534           50154                           INDEX    UV                                    
065075,000829: 20,3535           33770                           CA       +UMASK                                
065076,000830: 20,3536           71262                           MASK     CH5MASK                               #  TEST FOR +U (+V) JET FAILURES
065077,000831: 20,3537           00006                           EXTEND                                         
065078,000832: 20,3540           13545                           BZF      FAIL-                                 
065079,000833: 20,3541           30124                           CA       1/ATEM2                               #  REPLACE FUNCTION VALUES DEPENDING ON THE
065080,000834: 20,3542           54126                           TS       1/ATEM2    +2                         #  FAILED JET PAIR WITH CORRESPONDING ONE-
065081,000835: 20,3543           30132                           CA       Z5TEM                                 #  JET (OR AMIN) FUNCTION VALUES
065082,000836: 20,3544           54134                           TS       Z5TEM      +2                         
065083,000837: 20,3545           50154        FAIL-              INDEX    UV                                    

Page 1502

065085,000839: 20,3546           33766                           CA       -UMASK                                
065086,000840: 20,3547           71262                           MASK     CH5MASK                               #  TEST FOR -U (-V) JET FAILURES
065087,000841: 20,3550           00006                           EXTEND                                         
065088,000842: 20,3551           13556                           BZF      DBFUN                                 
065089,000843: 20,3552           30123                           CA       1/ATEM1                               #  REPLACE FUNCTION VALUES DEPENDING ON THE
065090,000844: 20,3553           54125                           TS       1/ATEM1    +2                         #  FAILED JET PAIR WITH CORRESPONDING ONE-
065091,000845: 20,3554           30131                           CA       Z1TEM                                 #  JET (OR AMIN) FUNCTION VALUES
065092,000846: 20,3555           54133                           TS       Z1TEM      +2                         
065093,000847: 
065094,000848: 20,3556           40146        DBFUN              CS       DBB3                                  #  COMPUTE AXISDIST
065095,000849: 20,3557           60143                           AD       DBB1                                  
065096,000850: 20,3560           60151                           AD       FLATEMP                               
065097,000851: 20,3561           54147                           TS       AXDSTEM                               
065098,000852: 20,3562           40145                           CS       DBB4                                  
065099,000853: 20,3563           60144                           AD       DBB2                                  
065100,000854: 20,3564           60151                           AD       FLATEMP                               
065101,000855: 20,3565           54150                           TS       AXDSTEM    +1                         
065102,000856: 
065103,000857: 20,3566           00004                           INHINT                                         
065104,000858: 20,3567           10154                           CCS      UV                                    #  TEST FOR U OR V AXIS
065105,000859: 20,3570           13612                           TCF      STORV                                 #  V AXIS        STORE V VALUES
065106,000860: 
065107,000861: 20,3571           30122                           CA       ACCSW                                 #  U AXIS        STORE U VALUES
065108,000862: 20,3572           55547                           TS       ACCSWU                                
065109,000863: 
065110,000864: 20,3573           34320                           CA       NINE                                  #  TRANSFER 10 WORDS VIA GENTRAN
065111,000865: 20,3574           05545                           TC       GENTRAN    +1                         
065112,000866: 20,3575           00123                           ADRES    1/ATEM1                               #  TEMPORARY BUFFER
065113,000867: 20,3576           01567                           ADRES    1/ANET1                               #  THE REAL PLACE
065114,000868: 
065115,000869: 20,3577           00003                           RELINT                                         
065116,000870: 20,3600           52144                           DXCH     DBB1                                  #  SAVE U DBS FOR LATER STORING
065117,000871: 20,3601           52136                           DXCH     UDB1                                  
065118,000872: 20,3602           52146                           DXCH     DBB4                                  
065119,000873: 20,3603           52140                           DXCH     UDB4                                  
065120,000874: 
065121,000875: 20,3604           52150                           DXCH     AXDSTEM                               
065122,000876: 20,3605           52142                           DXCH     UAXDIST                               
065123,000877: 
065124,000878: 20,3606           34753                           CA       ONE                                   #  NOW DO V AXIS
065125,000879: 20,3607           54154                           TS       UV                                    
065126,000880: 20,3610           34755                           CA       ZERO                                  
065127,000881: 20,3611           13320                           TCF      BOTHAXES                              #  AND DO IT AGAIN
065128,000882: 
065129,000883: 20,3612           30122        STORV              CA       ACCSW                                 #  STORE V AXIS VALUES
065130,000884: 20,3613           55550                           TS       ACCSWV                                
065131,000885: 20,3614           34320                           CA       NINE                                  
065132,000886: 20,3615           05545                           TC       GENTRAN    +1                         

Page 1503

065134,000888: 20,3616           00123                           ADRES    1/ATEM1                               #  TEMPORARY BUFFER
065135,000889: 20,3617           01607                           ADRES    1/ANET1    +16D                       #  THE REAL PLACE
065136,000890: 
065137,000891:                                                                                                  #  NOW STORE DEADBANDS FOR ALL AXES
065138,000892: 20,3620           52152                           DXCH     FLATEMP                               #  FLAT AND ZONE3LIM
065139,000893: 20,3621           53556                           DXCH     FLAT                                  
065140,000894: 
065141,000895: 20,3622           31346                           CA       DBVAL1                                #  COMPUTE P AXIS DEADBANDS
065142,000896: 20,3623           55561                           TS       PDB1                                  
065143,000897: 20,3624           55562                           TS       PDB2                                  
065144,000898: 20,3625           61555                           AD       FLAT                                  
065145,000899: 20,3626           55564                           TS       PDB3                                  
065146,000900: 20,3627           55563                           TS       PDB4                                  
065147,000901: 20,3630           34755                           CA       ZERO                                  
065148,000902: 20,3631           55565                           TS       PAXDIST                               
065149,000903: 20,3632           55566                           TS       PAXDIST    +1                         
065150,000904: 
065151,000905: 20,3633           11555                           CCS      FLAT                                  
065152,000906: 20,3634           13652                           TCF      DRFDB                                 #  DRIFT OR GTS - COMPUTE DBS
065153,000907: 
065154,000908: 20,3635           52136                           DXCH     UDB1                                  #  STORE U DEADBANDS
065155,000909: 20,3636           53602                           DXCH     FIREDB                                #  CANNOT USE GENTRAN BECAUSE OF RELINT
065156,000910: 20,3637           52140                           DXCH     UDB4                                  
065157,000911: 20,3640           53604                           DXCH     COASTDB                               
065158,000912: 20,3641           52142                           DXCH     UAXDIST                               
065159,000913: 20,3642           53606                           DXCH     AXISDIST                              
065160,000914: 20,3643           52144                           DXCH     DBB1                                  #  STORE V AXIS DEADBANDS
065161,000915: 20,3644           53622                           DXCH     FIREDB     +16D                       #  COULD USE GENTRAN IF DESIRED
065162,000916: 20,3645           52146                           DXCH     DBB4                                  
065163,000917: 20,3646           53624                           DXCH     COASTDB    +16D                       
065164,000918: 20,3647           52150                           DXCH     AXDSTEM                               
065165,000919: 20,3650           53626                           DXCH     AXISDIST   +16D                       
065166,000920: 
065167,000921: 20,3651           13672                           TCF      1/ACCRET   +1                         #  ALL DONE
065168,000922: 20,3652           31346        DRFDB              CA       DBVAL1                                #  DRIFT DEADBANDS
065169,000923: 20,3653           55601                           TS       FIREDB                                
065170,000924: 20,3654           55602                           TS       FIREDB     +1                         
065171,000925: 20,3655           55621                           TS       FIREDB     +16D                       
065172,000926: 20,3656           55622                           TS       FIREDB     +17D                       
065173,000927: 20,3657           61555                           AD       FLAT                                  
065174,000928: 20,3660           55603                           TS       COASTDB                               
065175,000929: 20,3661           55604                           TS       COASTDB    +1                         
065176,000930: 20,3662           55623                           TS       COASTDB    +16D                       
065177,000931: 20,3663           55624                           TS       COASTDB    +17D                       
065178,000932: 20,3664           34755                           CA       ZERO                                  
065179,000933: 20,3665           55605                           TS       AXISDIST                              
065180,000934: 20,3666           55606                           TS       AXISDIST   +1                         
065181,000935: 20,3667           55625                           TS       AXISDIST   +16D                       
065182,000936: 20,3670           55626                           TS       AXISDIST   +17D                       
065183,000937: 

Page 1504

065185,000939: 20,3671           00004        1/ACCRET           INHINT                                         
065186,000940: 20,3672           40111                           CS       DAPBOOLS                              #  SET BIT TO INDICATE DATA GOOD.
065187,000941: 20,3673           74751                           MASK     ACCSOKAY                              
065188,000942: 20,3674           26111                           ADS      DAPBOOLS                              
065189,000943: 20,3675           00003                           RELINT                                         
065190,000944: 20,3676           30117                           CA       ACCRETRN                              
065191,000945: 20,3677           04640                           TC       BANKJUMP                              #  RETURN TO CALLER
065192,000946: 
065193,000947: 20,3700           54165        INVERT             TS       HOLD                                  #  ROUTINE TO INVERT -INPUT AT PI/2
065194,000948: 20,3701           34743                           CA       BIT9                                  #  1 AT 2(6)
065195,000949: 20,3702           22007                           ZL                                             #  ZERO L FOR ACCURACY AND TO PREVENT OVFLO
065196,000950: 20,3703           00006                           EXTEND                                         
065197,000951: 20,3704           10165                           DV       HOLD                                  
065198,000952: 20,3705           00002                           TC       Q                                     #  RESULT AT 2(7)/PI
065199,000953: 
065200,000954: 20,3706           34755        DOWNGTS            CAF      ZERO                                  #  ZERO SWITCHES WHEN USEQRJTS BIT IS UP
065201,000955: 20,3707           55502                           TS       ALLOWGTS                              #        OR DAP IS OFF.
065202,000956: 20,3710           55633                           TS       INGTS                                 
065203,000957: 20,3711           12773                           TCF      DOCKTEST                              
065204,000958: 
065205,000959: 20,3712           22007        1/ANET-            ZL                                             
065206,000960: 20,3713           22122                           LXCH     ACCSW                                 #  ZERO ACCSW
065207,000961: 20,3714           54157                           TS       ANET                                  #  SAVE ANET
065208,000962: 20,3715           63764                           AD       -.03R/S2                              #  TEST FOR MIN VALUE
065209,000963: 20,3716           00006                           EXTEND                                         
065210,000964: 20,3717           63740                           BZMF     NETNEG                                #  ANET LESS THAN AMIN, SO FAKE IT
065211,000965: 20,3720           30157        1/NETMIN           CA       ANET                                  
065212,000966: 20,3721           00006                           EXTEND                                         
065213,000967: 20,3722           50164                           INDEX    -SIGNAOS                              
065214,000968: 20,3723           70130                           MP       1/ACOSTT   +1                         #  ANETNEG(POS)/ACOASTPOS(NEG) AT 2(6)
065215,000969: 
065216,000970:                                                                                                  #  THE FOLLOWING CODING IS VALID FOR BOTH POS OR NEG
065217,000971:                                                                                                  #        VALUES OF AOS
065218,000972: 
065219,000973: 20,3724           64743        DO1/NET+           AD       BIT9                                  #  1 + ANET/ACOAST AT 2(6)
065220,000974: 20,3725           56157                           XCH      ANET                                  #  SAVE AND PICK UP ANET
065221,000975: 20,3726           00006                           EXTEND                                         
065222,000976: 20,3727           22161                           QXCH     ARET                                  #  SAVE RETURN
065223,000977: 20,3730           03700                           TC       INVERT                                
065224,000978: 20,3731           54160                           TS       1/ANET                                #  1/ANET AT 2(7)/PI
065225,000979: 20,3732           44743                           CS       BIT9                                  #  -1 AT 2(6)
065226,000980: 20,3733           00006        DOACCFUN           EXTEND                                         
065227,000981: 20,3734           70160                           MP       1/ANET                                #  -1/ANET AT 2(13)/PI
065228,000982: 20,3735           00006                           EXTEND                                         
065229,000983: 20,3736           10157                           DV       ANET                                  #  ACCFUN AT 2(7)/PI
065230,000984: 20,3737           00161                           TC       ARET                                  #  RETURN
065231,000985: 
065232,000986: 20,3740           43764        NETNEG             CS       -.03R/S2                              #  ANET LESS THAN AMIN - SET EQUAL TO AMIN
065233,000987: 20,3741           54157                           TS       ANET                                  

Page 1505

065235,000989: 20,3742           13721                           TCF      1/NETMIN   +1                         #  CONTINUE AS IF NOTHING HAPPENED
065236,000990: 
065237,000991: 20,3743           10163        FIXMIN             CCS      SIGNAOS                               
065238,000992: 20,3744           34752                           CA       TWO                                   #  IF AOS NEG, ACCSW = +1
065239,000993: 20,3745           67747                           AD       NEGONE                                #  IF AOS POS, ACCSW = -1
065240,000994: 20,3746           54122                           TS       ACCSW                                 
065241,000995: 20,3747           60154                           AD       UV                                    #  IF ACCSW = +1, TEST FOR +U (+V) JET FAIL
065242,000996: 20,3750           50000                           INDEX    A                                     #  IF ACCSW = -1, TEST FOR -U (-V) JET FAIL
065243,000997: 20,3751           33767                           CA       -UMASK     +1                         
065244,000998: 20,3752           71262                           MASK     CH5MASK                               
065245,000999: 20,3753           00006                           EXTEND                                         
065246,001000: 20,3754           13760                           BZF      +4                                    
065247,001001: 20,3755           43764                           CS       -.03R/S2                              #  JET FAILURE - CANNOT USE 2-JET VALUES
065248,001002: 20,3756           54157                           TS       ANET                                  #  ANET = AMIN
065249,001003: 20,3757           13526                           TCF      STMIN-     -1                         #  CALCULATE FUNCTIONS USING AMIN
065250,001004: 20,3760           30001                           CA       L                                     #  L HAS ACCFUN
065251,001005: 20,3761           13527                           TCF      STMIN-                                #  STORE MAX VALUES FOR MIN JETS
065252,001006: 
065253,001007:                                                                                                  #  ERASABLE ASSIGNMENTS FOR 1/ACCONT
065254,001008: 
065255,001009: 20,3762  E6,1551               1/ANETP            EQUALS   BLOCKTOP   +2                         
065256,001010: 20,3762  E6,1553               1/ACOSTP           EQUALS   BLOCKTOP   +4                         
065257,001011: 20,3762  E6,1557               PACCFUN            EQUALS   BLOCKTOP   +8D                        
065258,001012: 20,3762  E6,1561               PDB1               EQUALS   BLOCKTOP   +10D                       
065259,001013: 20,3762  E6,1562               PDB2               EQUALS   BLOCKTOP   +11D                       
065260,001014: 20,3762  E6,1563               PDB4               EQUALS   BLOCKTOP   +12D                       
065261,001015: 20,3762  E6,1564               PDB3               EQUALS   BLOCKTOP   +13D                       
065262,001016: 20,3762  E6,1565               PAXDIST            EQUALS   BLOCKTOP   +14D                       
065263,001017: 
065264,001018: 20,3762     0122               ACCSW              EQUALS   VBUF                                  #  EXECUTIVE TEMPORARIES
065265,001019:                                                                                                  #  CANNOT DO CCS NEWJOB DURING 1/ACCS
065266,001020: 20,3762     0123               1/ATEM1            EQUALS   ACCSW      +1                         #  TEMP BUFFER FOR U AND V AXES
065267,001021: 20,3762     0124               1/ATEM2            EQUALS   1/ATEM1    +1                         
065268,001022: 20,3762     0127               1/ACOSTT           EQUALS   1/ATEM1    +4                         
065269,001023: 20,3762     0131               Z1TEM              EQUALS   1/ATEM1    +6                         
065270,001024: 20,3762     0132               Z5TEM              EQUALS   1/ATEM1    +7                         
065271,001025: 
065272,001026: 20,3762     0135               UDB1               EQUALS   1/ATEM1    +10D                       #  UAXIS DEADBAND BUFFER
065273,001027: 20,3762     0136               UDB2               EQUALS   1/ATEM1    +11D                       
065274,001028: 20,3762     0137               UDB4               EQUALS   1/ATEM1    +12D                       
065275,001029: 20,3762     0140               UDB3               EQUALS   1/ATEM1    +13D                       
065276,001030: 20,3762     0141               UAXDIST            EQUALS   1/ATEM1    +14D                       
065277,001031: 
065278,001032: 20,3762     0143               DBB1               EQUALS   1/ATEM1    +16D                       #  TEMP DEADBAND BUFFER, ALSO V AXIS
065279,001033: 20,3762     0144               DBB2               EQUALS   1/ATEM1    +17D                       
065280,001034: 20,3762     0145               DBB4               EQUALS   1/ATEM1    +18D                       
065281,001035: 20,3762     0146               DBB3               EQUALS   1/ATEM1    +19D                       
065282,001036: 20,3762     0147               AXDSTEM            EQUALS   1/ATEM1    +20D                       
065283,001037: 

Page 1506

065285,001039: 20,3762     0151               FLATEMP            EQUALS   1/ATEM1    +22D                       
065286,001040: 20,3762     0152               Z3TEM              EQUALS   1/ATEM1    +23D                       #  MUST FOLLOW FLATEMP
065287,001041: 
065288,001042: 20,3762     1346               DBVAL1             EQUALS   DB                                    
065289,001043: 20,3762     0114               DBVAL2             EQUALS   INTB15+                               
065290,001044: 20,3762     0115               DBVAL3             EQUALS   INTB15+    +1                         
065291,001045: 
065292,001046: 20,3762     0116               DRIFTER            EQUALS   INTB15+    +2                         
065293,001047: 
065294,001048: 20,3762     0154               UV                 EQUALS   MPAC                                  
065295,001049: 20,3762     0157               ANET               EQUALS   MPAC       +3                         
065296,001050: 20,3762     0157               FUNTEM             EQUALS   MPAC       +3                         
065297,001051: 20,3762     0160               1/ANET             EQUALS   MPAC       +4                         
065298,001052: 20,3762     0161               ARET               EQUALS   MPAC       +5                         
065299,001053: 20,3762     0162               ABSAOS             EQUALS   MPAC       +6                         
065300,001054: 20,3762     0163               SIGNAOS            EQUALS   MPAC       +7                         
065301,001055: 20,3762     0164               -SIGNAOS           EQUALS   MPAC       +8D                        
065302,001056: 20,3762     0165               HOLD               EQUALS   MPAC       +9D                        
065303,001057: 20,3762     0117               ACCRETRN           EQUALS   FIXLOC     -1                         
065304,001058: 
065305,001059: 20,3762           00110        ZONE3MAX           DEC      .004375                               #  17.5 MS (35 MS FOR 1 JET) AT 4 SECONDS
065306,001060: 20,3763           00443        FLATVAL            DEC      .01778                                #  .8 AT PI/4 RAD
065307,001061: 20,3764           77377        -.03R/S2           OCT      77377                                 #  -PI/2(7) AT PI/2
065308,001062: 
065309,001063: 20,3765     4744               .0125RS            EQUALS   BIT8                                  #  PI/2(+8) AT PI/2
065310,001064: 20,3765     4733               1/.03              EQUALS   POSMAX                                #  2(7)/PI AT 2(7)/PI
065311,001065: 
065312,001066: 20,3765           02213        PAXISADR           GENADR   PAXIS                                 
065313,001067: 
065314,001068:                                                                                                  #  THE FOLLOWING 4 CONSTANTS ARE JET
065315,001069:                                                                                                  #  FAILURE MASKS AND ARE INDEXED
065316,001070: 20,3766           00110        -UMASK             OCT      00110                                 #  -U
065317,001071: 20,3767           00022                           OCT      00022                                 #  -V
065318,001072: 20,3770           00204        +UMASK             OCT      00204                                 #  +U
065319,001073: 20,3771           00041                           OCT      00041                                 #  +V
065320,001074: 

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