Source Code

These source-code files are part of a reconstructed copy of Luminary 96, the original release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 96 listing.

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

053097,000002:                                                                                                  ## Copyright:   Public domain.
053098,000003:                                                                                                  ## Filename:    TIME_OF_FREE_FALL.agc
053099,000004:                                                                                                  ## Purpose:     A section of Luminary revision 96.
053100,000005:                                                                                                  ##              It is part of the reconstructed source code for the
053101,000006:                                                                                                  ##              original release of the flight software for the Lunar 
053102,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
053103,000008:                                                                                                  ##              The code has been recreated from a previously reconstructed
053104,000009:                                                                                                  ##              copy of Luminary 97 by undoing changes described in anomaly
053105,000010:                                                                                                  ##              report LNY-59. The code has been adapted such that the
053106,000011:                                                                                                  ##              resulting bugger words exactly match those specified for
053107,000012:                                                                                                  ##              Luminary 96 in NASA drawing 2021152D, which gives relatively
053108,000013:                                                                                                  ##              high confidence that the reconstruction is correct.
053109,000014:                                                                                                  ## Reference:   pp. 1268-1283
053110,000015:                                                                                                  ## Assembler:   yaYUL
053111,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
053112,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
053113,000018:                                                                                                  ## Mod history: 2019-08-04 MAS  Created from Luminary 97.
053114,000019: 

Page 1268

053116,000021:                                                                                                  #  THE TFF SUBROUTINES MAY BE USED IN EITHER EARTH OR MOON CENTERED COORDINATES.  THE TFF ROUTINES NEVER
053117,000022:                                                                                                  #  KNOW WHICH ORIGIN APPLIES.  IT IS THE USER WHO KNOWS, AND WHO SUPPLIES RONE, VONE AND 1/SQRT(MU) AT THE
053118,000023:                                                                                                  #  APPROPRIATE SCALE LEVEL FOR THE PROPER PRIMARY BODY.
053119,000024: 
053120,000025:                                                                                                  #        EARTH ORIGIN    POSITION        -29     METERS
053121,000026:                                                                                                  #                        VELOCITY        -7      METERS/CENTISECOND
053122,000027:                                                                                                  #                        1/SQRT(MU)      +17     SQRT(CS SQ/METERS CUBED)
053123,000028: 
053124,000029:                                                                                                  #        MOON ORIGIN     POSITION        -27     METERS
053125,000030:                                                                                                  #                        VELOCITY        -5      METERS/CENTISECONDS
053126,000031:                                                                                                  #                        1/SQRT(MU)      +14     SQRT(CS SQ/METERS CUBED)
053127,000032: 
053128,000033:                                                                                                  #  ALL DATA PROVIDED TO AND RECEIVED FROM ANY TFF SUBROUTINE WILL BE AT ONE OF THE LEVELS ABOVE.  IN ALL CASES,
053129,000034:                                                                                                  #  THE FREE FALL TIME IS RETURNED IN CENTISECONDS AT (-28).  PROGRAM TFF/CONIC WILL GENERATE VONE/RTMU AND
053130,000035:                                                                                                  #  LEAVE IT IN VONE' AT (+10) IF EARTH ORIGIN AND (+9) IF MOON ORIGIN.
053131,000036: 
053132,000037:                                                                                                  #  THE USER MUST STORE THE STATE VECTOR IN RONE, VONE  AND MU IN THE FORM 1/SQRT(MU) IN TFF/RTMU
053133,000038:                                                                                                  #  AT THE PROPER SCALE BEFORE CALLING TFF/CONIC.  SINCE RONE, VONE ARE IN THE EXTENDED VERB STORAGE AREA,
053134,000039:                                                                                                  #  THE USER MUST ALSO LOCK OUT THE EXTENDED VERBS, AND RELEASE THEM WHEN FINISHED.
053135,000040: 
053136,000041:                                                                                                  #  PROGRAMS CALC/TFF AND CALC/TPER ASSUME THAT THE TERMINAL RADIUS IS LESS THAN THE PRESENT
053137,000042:                                                                                                  #  RADIUS.  THIS RESTRICTION CAN BE REMOVED BY A 15 W CODING CHANGE, BUT AT PRESENT IT IS NOT DEEMED NECESSARY.
053138,000043: 
053139,000044:                                                                                                  #  THE FOLLOWING ERASABLE QUANTITIES ARE USED BY THE TFF ROUTINES, AND ARE LOCATED IN THE PUSH LIST.
053140,000045: 
053141,000046:                                                                                                  #                                        BELOW   E:  IS USED FOR EARTH ORIGIN SCALE
053142,000047:                                                                                                  #                                                M:  IS USED FOR MOON  ORIGIN SCALE
053143,000048: 
053144,000049:                                                                                                  # TFFSW          =       119D    BIT1    0 = CALCTFF             1 = CALCTPER
053145,000050: 10,2213                        TFFDELQ            =        10D                                   #        Q2-Q1                   E: (-16)  M: (-15)
053146,000051: 10,2213                        RMAG1              =        12D                                   #        ABVAL(RN)  M            E: (-29)  M: (-27)
053147,000052:                                                                                                  # RPER           =       14D             PERIGEE RADIUS  M       E: (-29)  M: (-27)
053148,000053: 10,2213                        TFFQ1              =        14D                                   #        R.V / SQRT(MUE)         E: (-16)  M: (-15)
053149,000054:                                                                                                  # SDELF/2                                SIN(THETA) /2
053150,000055: 10,2213                        CDELF/2            =        14D                                   #        COS(THETA) /2
053151,000056:                                                                                                  # RAPO           =       16D             APOGEE RADIUS  M        E: (-29)  M: (-27)
053152,000057: 10,2213                        NRTERM             =        16D                                   #        TERMINAL RADIUS  M      E: (-29+NR)
053153,000058:                                                                                                  #                                          M: (-27+NR)
053154,000059: 10,2213                        RTERM              =        18D                                   #        TERMINAL RADIUS  M      E: (-29)  M: (-27)
053155,000060: 10,2213                        TFFVSQ             =        20D                                   #        -(V SQUARED/MU)  1/M    E: (20)   M: (18)
053156,000061: 10,2213                        TFF1/ALF           =        22D                                   #        SEMI MAJ AXIS  M        E: (-22-2 NA)
053157,000062:                                                                                                  #                                          M: (-20-2 NA)
053158,000063: 10,2213                        TFFRTALF           =        24D                                   #        SQRT(ALFA)              E:(10+NA) M: (9+NA)
053159,000064: 10,2213                        TFFALFA            =        26D                                   #        ALFA  1/M               E:(26-NR) M: (24-NR)
053160,000065: 10,2213                        TFFNP              =        28D                                   #        SEMI LATUS RECTUM  M    E: (-38+2 NR)
053161,000066:                                                                                                  #                                          M: (-36+2 NR)
053162,000067: 10,2213                        TFF/RTMU           =        30D                                   #        1/SQRT(MU)              E: (17)   M: (14)
053163,000068: 10,2213                        NRMAG              =        32D                                   #        PRESENT RADIUS  M       E: (-29+NR)
053164,000069:                                                                                                  #                                          M: (-27+NR)
053165,000070: 10,2213                        TFFX               =        34D                                   
053166,000071: 10,2213                        TFFTEM             =        36D                                   #        TEMPORARY

Page 1269

053168,000073:                                                                                                  #                REGISTERS S1, S2 ARE UNTOUCHED BY ANY TFF SUBROUTINE
053169,000074:                                                                                                  #                INDEX REGISTERS X1, X2 ARE USED BY ALL TFF SUBROUTINES.  THEY ARE ESTAB-
053170,000075:                                                                                                  #                LISHED IN TFF/CONIC AND MUST BE PRESERVED BETWEEN CALLS TO SUBSEQUENT
053171,000076:                                                                                                  #                SUBROUTINES.
053172,000077:                                                                                                  #                -NR                             C(X1) = NORM COUNT OF RMAG
053173,000078:                                                                                                  #                -NA                             C(X2) = NORM COUNT OF SQRT(ABS(ALFA))
053174,000079: 

Page 1270

053176,000081:                                                                                                  #  SUBROUTINE NAME:  TFFCONIC                                            DATE:  01.29.67
053177,000082:                                                                                                  #  MOD NO:  0                                                            LOG SECTION:  TIME OF FREE FALL
053178,000083:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
053179,000084:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
053180,000085:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD MOON MU.
053181,000086:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
053182,000087: 
053183,000088:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS SUBROUTINE IS CALLED TO COMPUTE THOSE CONIC PARAMETERS REQUIRED BY THE TFF
053184,000089:                                                                                                  #        SUBROUTINES AND TO ESTABLISH THEM IN THE PUSH LIST AREA.  THE PARAMETERS ARE LISTED UNDER OUTPUT.
053185,000090:                                                                                                  #        THE EQUATIONS ARE
053186,000091:                                                                                                  #                -   -  -
053187,000092:                                                                                                  #                H = RN*VN                       ANGULAR MOMENTUM
053188,000093:                                                                                                  #                      - -
053189,000094:                                                                                                  #                LCP = H.H / MU                  SEMI LATUS RECTUM
053190,000095:                                                                                                  #                              -  - 
053191,000096:                                                                                                  #                ALFA = 2/RN - VN.VN / MU        RECIPROCAL SEMI MAJ AXIS, SIGNED
053192,000097: 
053193,000098:                                                                                                  #        AND ALFA IS POS FOR ELLIPTIC ORBITS
053194,000099:                                                                                                  #                      0 FOR PARABOLIC ORBITS
053195,000100:                                                                                                  #                    NEG FOR HYPERBOLIC ORBITS.
053196,000101:                                                                                                  #        SUBROUTINE ALSO COMPUTES AND SAVES RMAG.
053197,000102: 
053198,000103:                                                                                                  #  CALLING SEQUENCE:
053199,000104:                                                                                                  #        TFFCONIC EXPECTS CALLER TO ENTER WITH CORRECT GRAVITATIONAL CONSTANT IN MPAC, IN THE FORM
053200,000105:                                                                                                  #        1/SQRT(MU).  PROGRAM WILL SAVE IN TFF/RTMU.  THE SCALE IS DETERMINED BY WHETHER EARTH OR MOON
053201,000106:                                                                                                  #        ORIGIN IS USED.  THE CALLER MUST LOCK OUT THE EXTENDED VERBS BEFORE PROVIDING STATE VECTOR IN RONE,
053202,000107:                                                                                                  #        VONE AT PROPER SCALE.  THE EXTENDED VERBS MUST BE RESTORED WHEN THE CALLER IS FINISHED USING THE
053203,000108:                                                                                                  #        TFF ROUTINES.
053204,000109: 
053205,000110:                                                                                                  #        ENTRY POINT TFFCONMU EXPECTS THAT TFF/RTMU IS ALREADY LOADED.
053206,000111: 
053207,000112:                                                                                                  #        TO SPECIFY MU:  DLOAD   CALL                            IF MU ALREADY STORED:   CALL
053208,000113:                                                                                                  #                                YOURMU  1/RTMU E:(17) M:(14)                                    TFFCONMU
053209,000114:                                                                                                  #                                TFFCONIC
053210,000115:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 18D
053211,000116: 
053212,000117:                                                                                                  #  SUBROUTINES CALLED:  NONE
053213,000118: 
053214,000119:                                                                                                  #  NORMAL EXIT MODES:  RVQ
053215,000120: 
053216,000121:                                                                                                  #  ALARMS:  NONE
053217,000122: 
053218,000123:                                                                                                  #  OUTPUT:       THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
053219,000124:                                                                                                  #                RMAG1           E:(-29) M:(-27) M  RN, PRESENT RADIUS LENGTH.
053220,000125:                                                                                                  #                NRMAG           E:(-29+NR)      M  RMAG, NORMALIZED
053221,000126:                                                                                                  #                                M:(-27+NR)
053222,000127:                                                                                                  #                X1                              -NR, NORM COUNT
053223,000128:                                                                                                  #                TFFNP           E:(-38+2NR)     M  LCP, SEMI LATUS RECTUM, WEIGHTED BY NR.      FOR VGAMCALC
053224,000129:                                                                                                  #                                M:(-36+2NR)
053225,000130:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/SQRT(MU)
053226,000131:                                                                                                  #                TFFVSQ          E:(20) M:(18)   1/M  -(V SQ/MU):  PRESENT VELOCITY,NORMLIZED.   FOR VGAMCALC
053227,000132:                                                                                                  #                TFFALFA         E:(26-NR)       1/M  ALFA, WEIGHTED BY NR
053228,000133:                                                                                                  #                                M:(24-NR)
053229,000134:                                                                                                  #                TFFRTALF        E:(10+NA)       SQRT(ALFA), NORMALIZED
053230,000135:                                                                                                  #                                M:(9+NA)

Page 1271

053232,000137:                                                                                                  #                X2                              -NA, NORMCOUNT
053233,000138:                                                                                                  #                TFF1/ALF        E:(-22-2NA)     SIGNED SEMI MAJ AXIS, WEIGHTED BY NA
053234,000139:                                                                                                  #                                M:(-20-2NA)
053235,000140:                                                                                                  #                PUSHLOC AT PDL+0
053236,000141: 
053237,000142:                                                                                                  #        THE FOLLOWING IS STORED IN GENERAL ERASABLE
053238,000143:                                                                                                  #                VONE'           E:(10) M:(9)    V/RT(MU), NORMALIZED VELOCITY
053239,000144: 
053240,000145:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
053241,000146:                                                                                                  #                RONE            E:(-29) M:(-27) M  STATE VECTOR         LEFT BY CALLER
053242,000147:                                                                                                  #                VONE            E:(-7) M:(-5)   M/CS  STATE VECTOR      LEFT BY CALLER
053243,000148:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/RT(CS SQ/M CUBE)      IF ENTER VIA TFFCONMU.
053244,000149: 
053245,000150:                                                                                                  #  DEBRIS:       QPRET,          PDL+0 ... PDL+3
053246,000151: 
053247,000152: 33,3757                                           BANK     33                                    
053248,000153: 27,2000                                           SETLOC   TOF-FF                                
053249,000154: 27,2000                                           BANK                                           
053250,000155: 
053251,000156: 27,3360                                           COUNT*   $$/TFF                                
053252,000157: 
053253,000158: 27,3360           00037        TFFCONIC           STORE    TFF/RTMU                              #  1/SQRT(MU)    E:(17) M:(14)
053254,000159: 
053255,000160: 27,3361           53575        TFFCONMU           VLOAD    UNIT                                  #  COME HERE WITH TFFRTMU LOADED.
053256,000161: 27,3362           02207                                    RONE                                  #  SAVED RN.  M  E:(-29) M:(-27)
053257,000162: 27,3363           77725                           PDDL                                           #  UR/2 TO PDL+0, +5
053258,000163: 27,3364           00045                                    36D                                   #  MAGNITUDE
053259,000164: 27,3365           00015                           STORE    RMAG1                                 #  M  E:(-29) M:(-27)
053260,000165: 
053261,000166: 27,3366           77701                           NORM                                           
053262,000167: 27,3367           00047                                    X1                                    #  -NR
053263,000168: 27,3370           24041                           STOVL    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
053264,000169: 27,3371           02215                                    VONE                                  #  SAVED VN.  M/CS  E:(-7) M:(-5)
053265,000170: 27,3372           77761                           VXSC                                           
053266,000171: 27,3373           00037                                    TFF/RTMU                              #  E:(17) M:(14)
053267,000172: 27,3374           02170                           STORE    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
053268,000173: 
053269,000174: 27,3375           47361                           VXSC     VXV                                   
053270,000175: 27,3376           00041                                    NRMAG                                 #  E:(-29+NR) M:(-27+NR)
053271,000176:                                                                                                  #  UR/2 FROM PDL
053272,000177: 27,3377           47572                           VSL1     VSQ                                   #  BEFORE:  E:(-19+NR) M:(-18+NR)
053273,000178: 27,3400           14035                           STODL    TFFNP                                 #  LC P  M  E:(-38+2NR) M:(-36+2NR)
053274,000179:                                                                                                  #  SAVE ALSO FOR VGAMCALC
053275,000180: 27,3401           06512                                    TFF1/4                                
053276,000181: 27,3402           63271                           DDV      PDVL                                  #  (2/RMAG)  1/M  E:(26-NR) M:(24-NR)
053277,000182: 27,3403           00041                                    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
053278,000183: 27,3404           02170                                    VONE'                                 #  SAVED VN.  E:(10) M:(9)
053279,000184: 27,3405           57436                           VSQ      DCOMP                                 #  KEEP MPAC+2 HONEST FOR SQRT.
053280,000185: 27,3406           00025                           STORE    TFFVSQ                                #  -(V SQ/MU)  E:(20) M:(18)
053281,000186:                                                                                                  #  SAVE FOR VGAMCALC
053282,000187: 27,3407           43257                           SR*      DAD                                   

Page 1272

053284,000189: 27,3410           20573                                    0          -6,1                       #  GET -VSQ/MU  E:(26-NR) M:(24-NR)
053285,000190: 27,3411           77626                           STADR                                          
053286,000191:                                                                                                  #  2/RMAG  FROM PDL+2
053287,000192: 27,3412           77744                           STORE    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
053288,000193: 27,3413           41457                           SL*      PUSH                                  #  TEMP SAVE ALFA  E:(20) M:(18)
053289,000194: 27,3414           20173                                    0          -6,1                       
053290,000195: 27,3415           75446                           ABS      SQRT                                  #  E:(10) M:(9)
053291,000196: 27,3416           77701                           NORM                                           
053292,000197: 27,3417           00050                                    X2                                    #  X2 = -NA
053293,000198: 27,3420           00031                           STORE    TFFRTALF                              #  SQRT( ABS(ALFA) )  E:(10+NA) M:(9+NA)
053294,000199: 27,3421           75316                           DSQ      SIGN                                  #  NOT SO ACCURATE, BUT OK
053295,000200:                                                                                                  #  ALFA FROM PDL+2  E:(20) M:(18)
053296,000201: 27,3422           55254                           BZE      BDDV                                  #  SET 1/ALFA =0, TO SHOW SMALL ALFA
053297,000202: 27,3423           57425                                    +2                                    
053298,000203: 27,3424           06512                                    TFF1/4                                
053299,000204: 27,3425           00027                 +2        STORE    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
053300,000205: 27,3426           77616        DUMPCNIC           RVQ                                            
053301,000206: 
053302,000207:                                                                                                  #                                                              39 W

Page 1273

053304,000209:                                                                                                  #  SUBROUTINE NAME:  TFFRP/RA                                            DATE: 01.17.67
053305,000210:                                                                                                  #  MOD NO:  0                                                            LOG SECTION:  TIME OF FREE FALL
053306,000211:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
053307,000212:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
053308,000213:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
053309,000214:                                                                                                  #                                                                        ALSO IMPROVE ACCURACY OF RAPO.
053310,000215: 
053311,000216:                                                                                                  #  FUNCTIONAL DESCRIPTION:  USED BY CALCTPER AND TFF DISPLAYS TO CALCULATE PERIGEE RADIUS AND ALSO
053312,000217:                                                                                                  #        APOGEE RADIUS FOR A GENERAL CONIC.
053313,000218:                                                                                                  #        PROGRAM GIVES PERIGEE RADIUS AS         APOGEE RADIUS IS GIVEN BY
053314,000219:                                                                                                  #                RP = P/(1+E)                            RA = (1+E) / ALFA
053315,000220:                                                                                                  #        WHERE    2
053316,000221:                                                                                                  #                E  = 1 - P ALFA
053317,000222:                                                                                                  #        IF RA IS NEGATIVE OR SHOWS DIVIDE OVERFLOW, THEN RA = POSMAX BECAUSE
053318,000223:                                                                                                  #                1. APOGEE RADIUS IS NOT MEANINGFUL FOR HYPERBOLA
053319,000224:                                                                                                  #                2. APOGEE RADIUS IS NOT DEFINED FOR PARABOLA
053320,000225:                                                                                                  #                3. APOGEE RADIUS EXCEEDS THE SCALING FOR ELLIPSE.
053321,000226: 
053322,000227:                                                                                                  #        THIS SUBROUTINE REQUIRES THE SIGNED RECIPROCAL SEMI MAJ AXIS, ALFA, AND SEMI LATUS RECTUM AS DATA.
053323,000228: 
053324,000229:                                                                                                  #  CALLING SEQUENCE:     CALL
053325,000230:                                                                                                  #                                TFFRP/RA
053326,000231:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 10D
053327,000232:                                                                                                  #        C(MPAC) UNSPECIFIED
053328,000233: 
053329,000234:                                                                                                  #  SUBROUTINES CALLED:   NONE
053330,000235: 
053331,000236:                                                                                                  #  NORMAL EXIT MODE:     RVQ
053332,000237:                                                                                                  #        IF ELLIPSE, WITHIN NORMAL SCALING, RAPO IS CORRECT.
053333,000238:                                                                                                  #        OTHERWISE, RAPO = POSMAX.
053334,000239: 
053335,000240:                                                                                                  #  ALARMS:       NONE
053336,000241: 
053337,000242:                                                                                                  #  OUTPUT:       STORED IN PUSH LIST AREA.  SCALE OF OUTPUT AGREES WITH DATA SUPPLIED TO TFF/CONIC.
053338,000243:                                                                                                  #        RPER    E:(-29) M:(-27)         M       PERIGEE RADIUS          DESTROYED BY CALCTFF/CALCTPER, TFFTRIG.
053339,000244:                                                                                                  #        RAPO    E:(-29) M:(-27)         M       APOGEE RADIUS           WILL BE DESTROYED BY CALCTFF/CALCTPER
053340,000245:                                                                                                  #        PUSHLOC AT PDL+0
053341,000246: 
053342,000247:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
053343,000248:                                                                                                  #        TFFALFA E:(26-NR)               M       1/SEMI MAJ AXIS         LEFT BY TFFCONIC
053344,000249:                                                                                                  #                M:(24-NR)
053345,000250:                                                                                                  #        TFFNP   E:(-38+2NR)             M       LC P, SEMI LATUS RECTUM LEFT BY TFFCONIC
053346,000251:                                                                                                  #                M:(-36+2NR)
053347,000252:                                                                                                  #        X1                              -NR, NORM COUNT OF RMAG         LEFT BY TFFCONIC
053348,000253:                                                                                                  #        X2                              -NA, NORM COUNT OF ALFA         LEFT BY TFFCONIC
053349,000254: 
053350,000255:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+1
053351,000256: 

Page 1274

053353,000258: 27,3427                        RAPO               =        16D                                   #  APOGEE RADIUS  M  E:(-29) M:(-27)
053354,000259: 27,3427                        RPER               =        14D                                   #  PERIGEE RADIUS  M  E:(-29) M:(-27)
053355,000260: 
053356,000261: 27,3427           41345        TFFRP/RA           DLOAD    DMP                                   
053357,000262: 27,3430           00033                                    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
053358,000263: 27,3431           00035                                    TFFNP                                 #  LC P  M E:(-38+2NR) M:(-36+2NR)
053359,000264: 27,3432           57457                           SR*      DCOMP                                 #  ALFA P (-12+NR)
053360,000265: 27,3433           20571                                    0          -8D,1                      #  ALFA P (-4)
053361,000266: 27,3434           51415                           DAD      ABS                                   #  (DCOMP GIVES VALID TP RESULT FOR SQRT)
053362,000267:                                                                                                  #  (ABS PROTECTS SQRT IF E IS VERY NEAR 0)
053363,000268: 27,3435           17765                                    DP2(-4)                               
053364,000269: 27,3436           43366                           SQRT     DAD                                   #  E SQ = (1- P ALFA) (-4)
053365,000270: 27,3437           06512                                    TFF1/4                                
053366,000271: 27,3440           55206                           PUSH     BDDV                                  #  (1+E)  (-2)  TO PDL+0
053367,000272: 27,3441           00035                                    TFFNP                                 #  LCP  M  E:(-38+2NR) M:(-36+2NR)
053368,000273: 27,3442           53657                           SR*      SR*                                   #  (DOES SR THEN SL TO AVOID OVFL)
053369,000274: 27,3443           20601                                    0,1                                   #  X1=-NR
053370,000275: 27,3444           20572                                    0          -7,1                       #  (EFFECTIVE SL)
053371,000276: 27,3445           14017                           STODL    RPER                                  #  PERIGEE RADIUS  M  E:(-29) M:(-27)
053372,000277:                                                                                                  #  (1+E)  (-2)  FROM PDL+0
053373,000278: 27,3446           41005                           DMP      BOVB                                  
053374,000279: 27,3447           00027                                    TFF1/ALF                              #  E:(-22-2NA) M:(-20-2NA)
053375,000280: 27,3450           57753                                    TCDANZIG                              #  CLEAR OVFIND, IF ON.
053376,000281: 27,3451           53654                           BZE      SL*                                   
053377,000282: 27,3452           57461                                    MAXRA                                 #  SET POSMAX, IF ALFA=0
053378,000283: 27,3453           57603                                    0          -5,2                       #  -5+NA
053379,000284: 27,3454           40057                           SL*      BOV                                   
053380,000285: 27,3455           57576                                    0,2                                   
053381,000286: 27,3456           57461                                    MAXRA                                 #  SET POSMAX IF OVFL.
053382,000287: 27,3457           77644                           BPL                                            #  CONTINUE WITH VALID RAPO.
053383,000288: 27,3460           57463                                    +3                                    
053384,000289: 27,3461           77745        MAXRA              DLOAD                                          #  RAPO CALC IS NOT VALID.  SET RAPO =
053385,000290: 27,3462           17771                                    NEARONE                               #  POSMAX AS A TAG.
053386,000291: 27,3463           00021                 +3        STORE    RAPO                                  #  APOGEE RADIUS  M  E:(-29) M:(-27)
053387,000292: 27,3464           77616        DUMPRPRA           RVQ                                            
053388,000293: 
053389,000294:                                                                                                  #                                                                30 W

Page 1275

053391,000296:                                                                                                  #  SUBROUTINE NAME:  CALCTPER / CALCTFF                                  DATE:  01.29.67
053392,000297:                                                                                                  #  MOD NO:  0                                                            LOG SECTION:  TIME OF FREE FALL
053393,000298:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
053394,000299:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 67
053395,000300:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 14 APR 67
053396,000301:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 8 JUL 67          NEAR EARTH MUE AND NEG TFF (GONEPAST)
053397,000302:                                                                                                  #  MOD NO:  4    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD VARIABLE MU.
053398,000303:                                                                                                  #  MOD NO:  5    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
053399,000304: 
053400,000305:                                                                                                  #  FUNCTIONAL DESCRIPTION:  PROGRAM CALCULATES THE FREE-FALL TIME OF FLIGHT FROM PRESENT POSITION RN AND
053401,000306:                                                                                                  #        VELOCITY VN TO A RADIUS LENGTH SPECIFIED BY RTERM, SUPPLIED BY THE USER.  THE POSITION VECTOR
053402,000307:                                                                                                  #        RN MAY BE ON EITHER SIDE OF THE CONIC, BUT RTERM IS CONSIDERED ON THE INBOUND SIDE.
053403,000308:                                                                                                  #        THE EQUATIONS ARE
053404,000309: 
053405,000310:                                                                                                  #                Q2 = -SQRT(RTERM (2-RTERM ALFA) - LCP)  (INBOUND SIDE)) LEQ +- LCE/SQRT(ALFA)
053406,000311:                                                                                                  #                     -  -
053407,000312:                                                                                                  #                Q1 = RN.VN / SQRT(MU)                                   LEQ +- LCE/SQRT(ALFA)
053408,000313: 
053409,000314:                                                                                                  #                Z = NUM / DEN                                           LEQ +- 1/SQRT(ALFA)
053410,000315: 
053411,000316:                                                                                                  #        WHERE, IF INBOUND
053412,000317:                                                                                                  #                NUM = RTERM -RN                                         LEQ +- 2 LCE/ALFA
053413,000318:                                                                                                  #                DEN = Q2+Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
053414,000319: 
053415,000320:                                                                                                  #        AND, IF OUTBOUND
053416,000321:                                                                                                  #                NUM = Q2-Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
053417,000322:                                                                                                  #                DEN = 2 - ALFA (RTERM + RN).                            LEQ +- 2 LCE
053418,000323: 
053419,000324:                                                                                                  #        IF      ALFA ZZ < 1.0           (FOR ALL CONICS EXCEPT ELLIPSES HAVING ABS(DEL ECC ANOM) G 90 DEG)
053420,000325:                                                                                                  #        THEN    X = ALFA Z Z
053421,000326:                                                                                                  #        AND     TFF = (RTERM +RN -2 ZZ T(X) ) Z/SQRT(MU)
053422,000327:                                                                                                  #                EXCEPT  IF ALFA PNZ, AND IF TFF NEG,
053423,000328:                                                                                                  #                THEN    TFF = 2 PI /(ALFA SQRT(ALFA)) + TFF
053424,000329:                                                                                                  #        OR      IF ALFA ZZ GEQ 1.0      (FOR ELLIPSES HAVING ABS(DEL ECC ANOM) GEQ 90 DEG)
053425,000330:                                                                                                  #        THEN    X = 1/ALFA Z Z
053426,000331:                                                                                                  #        AND     TFF = (PI/SQRT(ALFA) -Q2 +Q1 +2(X T(X) -1) /ALFA Z) /ALFA SQRT(MU)
053427,000332:                                                                                                  #        WHERE   T(X) IS A POLYNOMIAL APPROXIMATION TO THE SERIES
053428,000333:                                                                                                  #                             2      3             2
053429,000334:                                                                                                  #                1/3 - X/5 + X /7 - X /9 ...     (X  < 1.0)
053430,000335: 
053431,000336:                                                                                                  #  CALLING SEQUENCE:     TIME TO RTERM                   TIME TO PERIGEE
053432,000337:                                                                                                  #                        CALL                            CALL
053433,000338:                                                                                                  #                                CALCTFF                         CALCTPER
053434,000339:                                                                                                  #                        C(MPAC) = TERMNL RAD M          C(MPAC) = PERIGEE RAD M
053435,000340:                                                                                                  #        FOR EITHER, E:(-29) M:(-27)
053436,000341:                                                                                                  #        FOR EITHER, PUSHLOC = PDL+0, ARBITRARY IF LEQ 8D.

Page 1276

053438,000343: 
053439,000344:                                                                                                  #  SUBROUTINES CALLED:   T(X), VIA RTB
053440,000345: 
053441,000346:                                                                                                  #  NORMAL EXIT MODE:     RVQ
053442,000347:                                                                                                  #        HOWEVER, PROGRAM EXITS WITH ONE OF THE FOLLOWING VALUES FOR TFF (-28) CS IN MPAC.  USER MUST STORE.
053443,000348:                                                                                                  #                A. TFF = FLIGHT TIME.  NORMAL CASE FOR POSITIVE FLIGHT TIME LESS THAN ONE ORBITAL PERIOD.
053444,000349:                                                                                                  #                B. (THIS OPTION IS NO LONGER USED.)
053445,000350:                                                                                                  #                C. TFF = POSMAX.  THIS INDICATES THAT THE CONIC FROM THE PRESENT POSITION WILL NOT RETURN TO
053446,000351:                                                                                                  #                   THE SPECIFIED ALTITUDE.  ALSO INDICATES OUTBOUND PARABOLA OR HYPERBOLA.
053447,000352: 
053448,000353:                                                                                                  #  OUTPUT:       C(MPAC)         (-28) CS        TIME OF FLIGHT, OR TIME TO PERIGEE
053449,000354:                                                                                                  #                TFFX            (0)             X,                                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
053450,000355:                                                                                                  #                NRTERM          E:(-29+NR) M    RTERM, WEIGHTED BY NR                   LEFT FOR ENTRY DISPLAY TFF ROUTINES
053451,000356:                                                                                                  #                                M:(-27+NR)
053452,000357:                                                                                                  #                TFFTEM          E:(-59+2NR)     LCP Z Z SGN(SDELF)                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
053453,000358:                                                                                                  #                                M:(-55+2NR)     LCP /ALFA SGN(SDELF)                    LEFT FOR ENTRY DISPLAY TFF ROUTINES
053454,000359:                                                                                                  #                NOTE:   TFFTEM = PDL 36D AND WILL BE DESTROYED BY .:UNIT:.
053455,000360:                                                                                                  #                RMAG1           E:(-29) M:(-27) PDL 12 NOT TOUCHED.
053456,000361:                                                                                                  #                TFFQ1           E:(-16) M:(-15) PDL 14D
053457,000362:                                                                                                  #                TFFDELQ         E:(-16) M:(-15) PDL 10D
053458,000363:                                                                                                  #                PUSHLOC AT PDL+0
053459,000364: 
053460,000365:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
053461,000366:                                                                                                  #                RONE            E:(-29) M:(-27) M  STATE VECTOR                         LEFT BY USER
053462,000367:                                                                                                  #                VONE'           E:(+10) M:(+9)  VN/SQRT(MU)                             LEFT BY TFF/CONIC
053463,000368:                                                                                                  #                RMAG1           E:(-29) M:(-27) PRESENT RADIUS, M                       LEFT BY TFFCONIC
053464,000369:                                                                                                  #                C(MPAC)         E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH, M        LEFT BY USER
053465,000370: 
053466,000371:                                                                                                  #                THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
053467,000372:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/SQRT(MU)                              LEFT BY TFFCONIC.
053468,000373:                                                                                                  #                NRMAG           E:(-29+NR)      M  RMAG, NORMALIZED                     LEFT BY TFFCONIC
053469,000374:                                                                                                  #                                M:(-27+NR)
053470,000375:                                                                                                  #                X1                              -NR, NORM COUNT                         LEFT BY TFFCONIC
053471,000376:                                                                                                  #                TFFNP           E:(-38+2NR)     M  LCP, SEMI LATUS RECTUM, WEIGHT NR    LEFT BY TFFCONIC
053472,000377:                                                                                                  #                                M:(-36+2NR)
053473,000378:                                                                                                  #                TFFALFA         E:(26-NR)       1/M  ALFA, WEIGHT NR                    LEFT BY TFFCONIC
053474,000379:                                                                                                  #                                M:(24-NR)
053475,000380:                                                                                                  #                TFFRTALF        E:(10+NA)       SQRT(ALFA), NORMALIZED                  LEFT BY TFFCONIC
053476,000381:                                                                                                  #                                M:(9+NA)
053477,000382:                                                                                                  #                X2                              -NA, NORMCOUNT                          LEFT BY TFFCONIC
053478,000383:                                                                                                  #                TFF1/ALF        E:(-22-2NA)     SIGNED SEMIMAJ AXIS, WEIGHTED BY NA     LEFT BY TFFCONIC
053479,000384:                                                                                                  #                                M:(-20-2NA)
053480,000385: 
053481,000386:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+3
053482,000387:                                                                                                  #                RTERM           E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH
053483,000388:                                                                                                  #                RAPO            E:(-29) M:(-27) PDL 16D (=NRTERM)
053484,000389:                                                                                                  #                RPER            E:(-29) M:(-27) PDL 14D (=TFFQ1)
053485,000390: 

Page 1277

053487,000392: 27,3465           77614        CALCTPER           SETGO                                          #  ENTER WITH RPER IN MPAC
053488,000393: 27,3466           03436                                    TFFSW                                 
053489,000394: 27,3467           57472                                    +3                                    
053490,000395: 27,3470           77614        CALCTFF            CLEAR                                          #  ENTER WITH RTERM IN MPAC
053491,000396: 27,3471           03676                                    TFFSW                                 
053492,000397: 27,3472           00023                 +3        STORE    RTERM                                 #  E:(-29) M:(-27)
053493,000398: 27,3473           77657                           SL*                                            
053494,000399: 27,3474           20201                                    0,1                                   #  X1=-NR
053495,000400: 27,3475           00021                           STORE    NRTERM                                #  RTERM  E:(-29+NR) M:(-27+NR)
053496,000401: 27,3476           44205                           DMP      BDSU                                  
053497,000402: 27,3477           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
053498,000403: 27,3500           06512                                    TFF1/4                                
053499,000404: 27,3501           41206                           PUSH     DMP                                   #  (2-ALFA RTERM)  (-3)  TO PDL+0
053500,000405: 27,3502           00021                                    NRTERM                                #  E:(-29+NR) M:(-27+NR)
053501,000406: 27,3503           53725                           PDDL     SR*                                   #  RTERM(2-ALFA RTERM) TO PDL+2
053502,000407:                                                                                                  #  E:(-32+NR) M:(-30+NR)
053503,000408: 27,3504           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
053504,000409: 27,3505           20573                                    0          -6,1                       #  X1 = -NR
053505,000410: 27,3506           43276                           DCOMP    DAD                                   #  DUE TO SHIFTS, KEEP PRECISION FOR SQRT
053506,000411:                                                                                                  #  RTERM(2-ALFA RTERM) FROM PDL +2
053507,000412:                                                                                                  #  E:(-32+NR) M:(-30+NR)
053508,000413: 27,3507           77657                           SR*                                            #  LEAVE  E:(-32) M:(-30)
053509,000414: 27,3510           20601                                    0,1                                   #  X1 = -NR
053510,000415: 27,3511           71214                           BOFF     DLOAD                                 #  CHECK TFF /TPER SWITCH
053511,000416: 27,3512           03756                                    TFFSW                                 
053512,000417: 27,3513           57515                                    +2                                    #  IF TFF, CONTINUE
053513,000418: 27,3514           06522                                    TFFZEROS                              #  IF TPER, SET Q2 = 0
053514,000419: 27,3515           75440                 +2        BMN      SQRT                                  #  E:(-16) M:(-15)
053515,000420: 
053516,000421: 27,3516           57650                                    MAXTFF1                               #  NO FREE FALL CONIC TO RTERM FROM HERE
053517,000422:                                                                                                  #  RESET PDL, SET TFF=POSMAX, AND EXIT.
053518,000423: 
053519,000424: 27,3517           41076                           DCOMP    BOVB                                  #  RT IS ON INBOUND SIDE.  ASSURE OVFIND=0
053520,000425: 27,3520           57753                                    TCDANZIG                              #  ANY PORT IN A STORM.
053521,000426: 27,3521           24045                           STOVL    TFFTEM                                #  Q2  E:(-16) M:(-15)
053522,000427: 27,3522           02170                                    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
053523,000428: 27,3523           52441                           DOT      SL3                                   
053524,000429: 27,3524           02207                                    RONE                                  #  SAVED RN.  E:(-29) M:(-27)
053525,000430: 27,3525           00017                           STORE    TFFQ1                                 #  Q1, SAVE FOR GONEPAST TEST.
053526,000431:                                                                                                  #  E:(-16) M:(-15)
053527,000432: 27,3526           44240                           BMN      BDSU                                  
053528,000433: 27,3527           57550                                    INBOUND                               #  USE ALTERNATE Z
053529,000434: 27,3530           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
053530,000435: 
053531,000436:                                                                                                  #  OUTBOUND Z CALC CONTINUES HERE
053532,000437: 
053533,000438: 27,3531           14043                           STODL    TFFX                                  #  NUM=Q2-Q1  E:(-16) M:(-15)
053534,000439: 27,3532           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
053535,000440: 27,3533           44205                           DMP      BDSU                                  

Page 1278

053537,000442: 27,3534           00041                                    NRMAG                                 #  RMAG  E:(-29+NR) M:(-27+NR)
053538,000443:                                                                                                  #  (2-RTERM ALFA)  (-3) FROM PDL+0
053539,000444: 27,3535           51406        SAVEDEN            PUSH     ABS                                   #  DEN TO PDL+0  E:(-3) OR (-16)
053540,000445:                                                                                                  #                M:(-3) OR (-15)
053541,000446: 27,3536           40015                           DAD      BOV                                   #  INDETERMINANCY TEST
053542,000447: 27,3537           17757                                    LIM(-22)                              #  =1.0-B(-22)
053543,000448: 27,3540           57561                                    TFFXTEST                              #  GO IF DEN >/= B(-22)
053544,000449: 27,3541           65345                           DLOAD    PDDL                                  #  SET DEN=0 OTHERWISE
053545,000450: 27,3542           06522                                    TFFZEROS                              
053546,000451:                                                                                                  #  XCH ZERO WITH PDL+0
053547,000452: 27,3543           57545                           DLOAD    DCOMP                                 
053548,000453: 27,3544           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
053549,000454: 27,3545           71240                           BMN      DLOAD                                 #  FOR TPER:  Z INDET AT DELE/2=0 AND 90.
053550,000455: 27,3546           57655                                    TFFEL1                                #  ASSUME 90, AND LEAVE 0 IN PDL: 1/Z=D/N
053551,000456: 
053552,000457:                                                                                                  #  Z INDET. AT PERIGEE FOR PARAB OR HYPERB.
053553,000458: 27,3547           77616        DUMPTFF1           RVQ                                            #  RETURN TFF =0
053554,000459: 
053555,000460:                                                                                                  #  INBOUND Z CALC CONTINUES HERE
053556,000461: 
053557,000462: 27,3550           77745        INBOUND            DLOAD                                          #  RESET PDL+0
053558,000463: 27,3551           45345                           DLOAD    DSU                                   #  ALTERNATE Z CALC
053559,000464: 27,3552           00023                                    RTERM                                 #  E:(-29) M:(-27)
053560,000465: 27,3553           00015                                    RMAG1                                 #  E:(-29) M:(-27)
053561,000466: 27,3554           14043                           STODL    TFFX                                  #  NUM=RTERM-RN  E:(-29) M:(-27)
053562,000467: 27,3555           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
053563,000468: 27,3556           52015                           DAD      GOTO                                  
053564,000469: 27,3557           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
053565,000470: 27,3560           57535                                    SAVEDEN                               #  DEN = Q2+Q1  E:(-16) M:(-15)
053566,000471: 
053567,000472: 27,3561           65215        TFFXTEST           DAD      PDDL                                  #  (ABS(DEN) TO PDL+2))  E:(-3) OR (-16)
053568,000473:                                                                                                  #                        M:(-3) OR (-15)
053569,000474: 27,3562           17761                                    DP(-22)                               #  RESTORE ABS(DEN) TO MPAC
053570,000475: 27,3563           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
053571,000476: 27,3564           53605                           DMP      SR*                                   
053572,000477: 27,3565           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
053573,000478: 27,3566           57201                                    0          -3,2                       #  X2=-NA
053574,000479: 27,3567           77671                           DDV                                            #  C(MPAC) =NUM SQRT(ALFA)       E:(-3) OR (-16)
053575,000480:                                                                                                  #                                M:(-3) OR (-15)
053576,000481:                                                                                                  #  ABS(DEN) FROM PDL+2   E:(-3) OR (-16)
053577,000482:                                                                                                  #                        M:(-3) OR (-15)
053578,000483: 27,3570           40145                           DLOAD    BOV                                   #  (THE DLOAD IS SHARED WITH TFFELL)
053579,000484: 27,3571           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
053580,000485: 27,3572           57653                                    TFFELL                                #  USE EQN FOR DELE GEQ 90, LEQ -90
053581,000486: 
053582,000487:                                                                                                  #  OTHERWISE, CONTINUE FOR GENERAL CONIC FOR TFF EQN
053583,000488: 
053584,000489: 27,3573           45471                           DDV      STADR                                 
053585,000490:                                                                                                  #  DEN FROM PDL+0        E:(-3) OR (-16)
053586,000491:                                                                                                  #                        M:(-3) OR (-15)
053587,000492: 27,3574           77732                           STORE    TFFTEM                                #  Z SAVE FOR SIGN OF SDELF.

Page 1279

053589,000494:                                                                                                  #  E:(-13) M:(-12)
053590,000495: 27,3575           63406                           PUSH     DSQ                                   #  Z TO PDL+0
053591,000496: 27,3576           41206                           PUSH     DMP                                   #  Z SQ TO PDL+2  E:(-26) M:(-24)
053592,000497: 27,3577           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
053593,000498: 27,3600           75261                           SL       SIGN                                  
053594,000499: 27,3601           20206                                    5                                     
053595,000500: 27,3602           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF (ENTRY DISPLAY)
053596,000501: 27,3603           14045                           STODL    TFFTEM                                #  P ZSQ  E:(-59+2NR) M:(-55+2NR)
053597,000502:                                                                                                  #  (ARG IS USED IN TFF/TRIG)
053598,000503:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
053599,000504: 27,3604           41206                           PUSH     DMP                                   #  RESTORE PUSH LOC
053600,000505: 27,3605           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
053601,000506: 27,3606           77657                           SL*                                            
053602,000507: 27,3607           20201                                    0,1                                   #  X1=-NR
053603,000508: 27,3610           00043                           STORE    TFFX                                  #  X
053604,000509: 27,3611           41234                           RTB      DMP                                   
053605,000510: 27,3612           57735                                    T(X)                                  #  POLY
053606,000511:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
053607,000512: 27,3613           44302                           SR2      BDSU                                  #  2 ZSQ T(X)  E:(-29) M:(-27)
053608,000513: 27,3614           00023                                    RTERM                                 #  RTERM  E:(-29) M:(-27)
053609,000514: 27,3615           41215                           DAD      DMP                                   
053610,000515: 27,3616           00015                                    RMAG1                                 #  E:(-29) M:(-27)
053611,000516:                                                                                                  #  Z FROM PDL+0  E:(-13) M:(-12)
053612,000517: 27,3617           51042                           SR3      BPL                                   #  TFF SQRT(MU)  E:(-45) M:(-42)
053613,000518: 27,3620           57641                                    ENDTFF                                #  (NO PUSH UP)
053614,000519: 27,3621           75206                           PUSH     SIGN                                  #  TFF SQRT(MU) TO PDL+0
053615,000520: 27,3622           00017                                    TFFQ1                                 #  Q1 FOR GONEPAST TEST
053616,000521: 27,3623           71244                           BPL      DLOAD                                 #  GONE PAST ?
053617,000522: 27,3624           57645                                    NEGTFF                                #  YES. TFF < 0.
053618,000523: 27,3625           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
053619,000524: 27,3626           51076                           DCOMP    BPL                                   #  ALFA > 0 ?
053620,000525: 27,3627           57645                                    NEGTFF                                #  NO. TFF IS NEGATIVE.
053621,000526: 
053622,000527:                                                                                                  #  CORRECT FOR ORBITAL PERIOD.
053623,000528: 
053624,000529: 27,3630           77676                           DCOMP                                          #  YES.  CORRECT FOR ORB PERIOD.
053625,000530: 27,3631           56205                           DMP      DDV                                   
053626,000531: 27,3632           17755                                    PI/16                                 #  2 PI (-5)
053627,000532: 27,3633           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
053628,000533: 27,3634           53657                           SL*      SL*                                   
053629,000534: 27,3635           57602                                    0          -4,2                       #  X2=-NA
053630,000535: 27,3636           57602                                    0          -4,2                       
053631,000536: 27,3637           43257                           SL*      DAD                                   
053632,000537: 27,3640           57576                                    0,2                                   
053633,000538:                                                                                                  #  TFF SQRT(MU) FROM PDL+0       E:(-45) M:(-42)
053634,000539: 27,3641           40005        ENDTFF             DMP      BOV                                   #  TFF SQRT(MU) IN MPAC          E:(-45) M:(-42)
053635,000540: 27,3642           00037                                    TFF/RTMU                              #  E:(17) M:(14)
053636,000541: 27,3643           57651                                    MAXTFF                                #  SET POSMAX IF OVFL.
053637,000542: 
053638,000543: 27,3644           77616        DUMPTFF2           RVQ                                            #  RETURN TFF (-28) CS IN MPAC.
053639,000544: 

Page 1280

053641,000546: 27,3645           77745        NEGTFF             DLOAD                                          
053642,000547:                                                                                                  #  TFF SQRT(MU) FROM PDL+0, NEGATIVE.
053643,000548: 27,3646           77650                           GOTO                                           
053644,000549: 27,3647           57641                                    ENDTFF                                
053645,000550: 
053646,000551: 27,3650           77745        MAXTFF1            DLOAD                                          #  RESET PDL
053647,000552: 27,3651           43545        MAXTFF             DLOAD    RVQ                                   
053648,000553: 27,3652           17771                                    NEARONE                               
053649,000554: 
053650,000555:                                                                                                  #  TIME OF FLIGHT ELLIPSE WHEN DEL (ECCENTRIC ANOM) GEQ 90 AND LEQ -90.
053651,000556: 
053652,000557:                                                                                                  #  NUM FROM TFFX.        E:(-16) OR (-29)
053653,000558:                                                                                                  #                        M:(-15) OR (-27)
053654,000559: 27,3653           77712        TFFELL             SL2                                            #  NUM  E:(-14) OR (-27)  M:(-13) OR (-25)
053655,000560: 27,3654           41465                           BDDV     PUSH                                  #  TEMP SAVE D/N IN PDL+0
053656,000561:                                                                                                  #  DEN FROM PDL+0  E:(-3)/( 16) M:(-3)/(-15)
053657,000562:                                                                                                  #  N/D TO PDL+0  E:(11) M:(10)
053658,000563: 27,3655           45345        TFFEL1             DLOAD    DSU                                   #  (ENTER WITH D/N=0 IN PDL+0)
053659,000564: 27,3656           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
053660,000565: 27,3657           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
053661,000566: 27,3660           14013                           STODL    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
053662,000567:                                                                                                  #  D/N FROM PDL+0
053663,000568: 27,3661           77626                           STADR                                          
053664,000569: 27,3662           77732                           STORE    TFFTEM                                #  D/N  E:(11) M:(10)
053665,000570: 27,3663           53605                           DMP      SL*                                   
053666,000571: 27,3664           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
053667,000572: 27,3665           57576                                    0,2                                   #  1/ALFA Z  E:(-11-NA) M:(-10-NA)
053668,000573: 27,3666           41206                           PUSH     DMP                                   #  TO PDL+0
053669,000574: 27,3667           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
053670,000575: 27,3670           41057                           SL*      BOVB                                  
053671,000576: 27,3671           57576                                    0,2                                   #  X2= -NA
053672,000577: 27,3672           21712                                    SIGNMPAC                              #  IN CASE X= 1.0, CONTINUE
053673,000578: 27,3673           00043                           STORE    TFFX                                  #  X=1/ALFA ZSQ
053674,000579: 27,3674           41234                           RTB      DMP                                   
053675,000580: 27,3675           57735                                    T(X)                                  #  POLY
053676,000581: 27,3676           00043                                    TFFX                                  
053677,000582: 27,3677           45242                           SR3      DSU                                   
053678,000583: 27,3700           17763                                    DP2(-3)                               
053679,000584: 27,3701           41405                           DMP      PUSH                                  #  2(X T(X)-1) /Z ALFA   E:(-15-NA)
053680,000585:                                                                                                  #                        M:(-14-NA)
053681,000586:                                                                                                  #  1/ALFA Z FROM PDL+0   E:(-11-NA)
053682,000587:                                                                                                  #                        M:(-10-NA)
053683,000588: 27,3702           41345                           DLOAD    DMP                                   #  GET SIGN FOR SDELF
053684,000589: 27,3703           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
053685,000590: 27,3704           00015                                    RMAG1                                 #  E:(-29) M:(-27)
053686,000591: 27,3705           43312                           SL2      DAD                                   
053687,000592: 27,3706           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
053688,000593: 27,3707           14045                           STODL    TFFTEM                                #  (Q1+R 1/Z) =SGN OF SDELF  E:(-16) M:(-15
053689,000594: 27,3710           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
053690,000595: 27,3711           53605                           DMP      SL*                                   #  CALC FOR ARG FOR TFF/TRIG.

Page 1281

053692,000597: 27,3712           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
053693,000598: 27,3713           57575                                    1,2                                   #  X2=-NA
053694,000599: 27,3714           53765                           SIGN     SL*                                   
053695,000600: 27,3715           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF
053696,000601: 27,3716           57576                                    0,2                                   
053697,000602: 27,3717           14045                           STODL    TFFTEM                                #  P/ALFA  E:(-59+2NR) M:(-55+2NR)
053698,000603:                                                                                                  #  (ARG FOR USE IN TFF/TRIG)
053699,000604: 27,3720           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
053700,000605: 27,3721           41366                           SQRT     DMP                                   
053701,000606: 27,3722           17755                                    PI/16                                 #  PI (-4)
053702,000607: 27,3723           77615                           DAD                                            
053703,000608:                                                                                                  #  2(XT(X)-1)/Z ALFA FROM PDL    E:(-15-NA)
053704,000609:                                                                                                  #                                M:(-14-NA)
053705,000610: 27,3724           45257                           SL*      DSU                                   
053706,000611: 27,3725           57577                                    0          -1,2                       
053707,000612: 27,3726           00013                                    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
053708,000613: 27,3727           53605                           DMP      SL*                                   
053709,000614: 27,3730           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
053710,000615: 27,3731           57601                                    0          -3,2                       
053711,000616: 27,3732           52057                           SL*      GOTO                                  
053712,000617: 27,3733           57602                                    0          -4,2                       
053713,000618: 27,3734           57641                                    ENDTFF                                #  TFF SQRT(MU) IN MPAC E:(-45) M:(-42)
053714,000619: 

Page 1282

053716,000621:                                                                                                  #  PROGRAM NAME:  T(X)                           DATE:  01.17.67
053717,000622:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
053718,000623:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
053719,000624: 
053720,000625:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THE POLYNOMIAL T(X) IS USED BY TIME OF FLIGHT SUBROUTINES CALCTFF AND
053721,000626:                                                                                                  #        CALCTPER TO APPROXIMATE THE SERIES
053722,000627:                                                                                                  #                           2     3
053723,000628:                                                                                                  #                1/3 -X/5 +X /7 -X /9 ...
053724,000629: 
053725,000630:                                                                                                  #        WHERE   X = ALFA Z Z            IF ALFA Z Z LEQ 1
053726,000631:                                                                                                  #                X = 1/(ALFA Z Z)        IF ALFA Z Z G 1
053727,000632: 
053728,000633:                                                                                                  #        ALSO    X IS NEG FOR HYPERBOLIC ORBITS
053729,000634:                                                                                                  #                X = 0 FOR PARABOLIC ORBITS
053730,000635:                                                                                                  #                X IS POSITIVE FOR ELLIPTIC ORBITS
053731,000636: 
053732,000637:                                                                                                  #        FOR FLIGHT 278, THE POLYNOMIAL T(X) IS FITTED OVER THE RANGE (0,+1) AND HAS A MAXIMUM
053733,000638:                                                                                                  #        DEVIATION FROM THE SERIES OF 2 E-5   (T(X) IS A CHEBYCHEV TYPE FIT AND WAS OBTAINED USING
053734,000639:                                                                                                  #        MAC PROGRAM AUTCURFIT294RRB AND IS VALID TO THE SAME TOLERANCE OVER THE RANGE (-.08,+1).)
053735,000640: 
053736,000641:                                                                                                  #  CALLING SEQUENCE:     RTB
053737,000642:                                                                                                  #                                T(X)
053738,000643:                                                                                                  #        C(MPAC) = X
053739,000644: 
053740,000645:                                                                                                  #  SUBROUTINES CALLED:  NONE
053741,000646: 
053742,000647:                                                                                                  #  NORMAL EXIT MODE:  TC   DANZIG
053743,000648: 
053744,000649:                                                                                                  #  ALARMS:  NONE
053745,000650: 
053746,000651:                                                                                                  #  OUTPUT:  C(MPAC) = T(X)
053747,000652: 
053748,000653:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
053749,000654:                                                                                                  #        C(MPAC) = X
053750,000655: 
053751,000656:                                                                                                  #  DEBRIS:  NONE
053752,000657: 
053753,000658: 27,3735           07222        T(X)               TC       POLY                                  
053754,000659: 27,3736           00004                           DEC      4          B-14                       #  N-1
053755,000660: 27,3737           12525 12525                     2DEC     3.333333333 E-1                        
053756,000661: 
053757,000662: 27,3741           71463 57703                     2DEC*    -1.999819135 E-1*                       
053758,000663: 
053759,000664: 27,3743           04423 17645                     2DEC*    1.418148467 E-1*                       
053760,000665: 
053761,000666: 27,3745           74604 43667                     2DEC*    -1.01310997 E-1*                       
053762,000667: 
053763,000668: 27,3747           01626 37256                     2DEC*    5.609004986 E-2*                       
053764,000669: 
053765,000670: 27,3751           77404 52071                     2DEC*    -1.536156925 E-2*                       
053766,000671: 
053767,000672: 27,3753           06061        ENDT(X)            TC       DANZIG                                
053768,000673: 
053769,000674: 27,3754  27,3753               TCDANZIG           =        ENDT(X)                               
053770,000675: 

Page 1283

053772,000677:                                                                                                  #  TFF CONSTANTS
053773,000678: 
053774,000679: 32,3773                                           BANK     32                                    
053775,000680: 
053776,000681: 27,2000                                           SETLOC   TOF-FF1                               
053777,000682: 27,2000                                           BANK                                           
053778,000683: 
053779,000684:                                                                                                  #                                                NOTE _  NOTE _  ADJUSTED MUE FOR NEAR EARTH TRAJ.
053780,000685:                                                                                                  # MUE            =       3.990815471 E10         M CUBE/CS SQ
053781,000686:                                                                                                  # RTMUE          =       1.997702549 E5 B-18*    MODIFIED EARTH MU
053782,000687: 
053783,000688:                                                                                                  #                                                NOTE _  NOTE _  ADJUSTED MUE FOR NEAR EARTH TRAJ.
053784,000689:                                                                                                  # MUM            =       4.902778 E8             M CUBE/CS SQ
053785,000690:                                                                                                  # RTMUM          2DEC*   2.21422176 E4 B-18*
053786,000691: 
053787,000692: 27,3754           06220 37553  PI/16              2DEC     3.141592653 B-4                        
053788,000693: 
053789,000694: 27,3756           37777 37700  LIM(-22)           2OCT     3777737700                            #  1.0 -B(-22)
053790,000695: 
053791,000696: 27,3760           00000 00100  DP(-22)            2OCT     0000000100                            #  B(-22)
053792,000697: 
053793,000698: 27,3762           04000 00000  DP2(-3)            2DEC     1          B-3                        
053794,000699: 
053795,000700: 27,3764           02000 00000  DP2(-4)            2DEC     1          B-4                        #  1/16
053796,000701: 
053797,000702:                                                                                                  #  RPAD1         2DEC    6373338 B-29            M (-29) = 20909901.57 FT
053798,000703: 
053799,000704: 27,3766  23,2314               RPAD1              =        RPAD                                  
053800,000705: 
053801,000706: 27,3766           00305 11205  R300K              2DEC     6464778    B-29                       #  (-29) M
053802,000707: 
053803,000708: 27,3770           37777 37777  NEARONE            2DEC     .999999999                            
053804,000709: 
053805,000710: 27,3772  23,2521               TFFZEROS           EQUALS   HI6ZEROS                              
053806,000711: 27,3772  23,2511               TFF1/4             EQUALS   HIDP1/4                               
053807,000712: 

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