Source Code

These source-code files are part of a reconstructed copy of Comanche 45/2 (AKA Manche45 revision 2), the final, flown mission release of the Apollo 10 Command Module (CM) Apollo Guidance Computer (AGC) software. Comanche 45/2 was preceded by Comanche 44 and Comanche 45. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 45/2, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 45 (itself previously accurately reconstructed). Comanche 45 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 45 and 45/2. The now-reconstructed Comanche 45/2 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 listing.

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
Comments expected to have been present in 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.

058257,000002:                                                                                                  ## Copyright:   Public domain.
058258,000003:                                                                                                  ## Filename:    TIME_OF_FREE_FALL.agc
058259,000004:                                                                                                  ## Purpose:     A section of Manche45 revision 2.
058260,000005:                                                                                                  ##              It is part of the reconstructed source code for the
058261,000006:                                                                                                  ##              final, flown release of the flight software for the Command
058262,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
058263,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
058264,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
058265,000010:                                                                                                  ##              exactly match those specified for Manche 45/2 in NASA drawing
058266,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
058267,000012:                                                                                                  ##              reconstruction is correct.
058268,000013:                                                                                                  ## Assembler:   yaYUL
058269,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
058270,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
058271,000016:                                                                                                  ## Mod history: 2020-12-24 MAS  Created from Comanche 45.
058272,000017: 

Page 1373

058274,000019:                                                                                                  #  THE TFF SUBROUTINES MAY BE USED IN EITHER EARTH OR MOON CENTERED COORDINATES.  THE TFF ROUTINES NEVER
058275,000020:                                                                                                  #  KNOW WHICH ORIGIN APPLIES.  IT IS THE USER WHO KNOWS, AND WHO SUPPLIES RONE, VONE AND 1/SQRT(MU) AT THE
058276,000021:                                                                                                  #  APPROPRIATE SCALE LEVEL FOR THE PROPER PRIMARY BODY.
058277,000022: 
058278,000023:                                                                                                  #        EARTH ORIGIN    POSITION        -29     METERS
058279,000024:                                                                                                  #                        VELOCITY        -7      METERS/CENTISECOND
058280,000025:                                                                                                  #                        1/SQRT(MU)      +17     SQRT(CS SQ/METERS CUBED)
058281,000026: 
058282,000027:                                                                                                  #        MOON ORIGIN     POSITION        -27     METERS
058283,000028:                                                                                                  #                        VELOCITY        -5      METERS/CENTISECONDS
058284,000029:                                                                                                  #                        1/SQRT(MU)      +14     SQRT(CS SQ/METERS CUBED)
058285,000030: 
058286,000031:                                                                                                  #  ALL DATA PROVIDED TO AND RECEIVED FROM ANY TFF SUBROUTINE WILL BE AT ONE OF THE LEVELS ABOVE.  IN ALL CASES,
058287,000032:                                                                                                  #  THE FREE FALL TIME IS RETURNED IN CENTISECONDS AT (-28).  PROGRAM TFF/CONIC WILL GENERATE VONE/RTMU AND
058288,000033:                                                                                                  #  LEAVE IT IN VONE' AT (+10) IF EARTH ORIGIN AND (+9) IF MOON ORIGIN.
058289,000034: 
058290,000035:                                                                                                  #  THE USER MUST STORE THE STATE VECTOR IN RONE, VONE  AND MU IN THE FORM 1/SQRT(MU) IN TFF/RTMU
058291,000036:                                                                                                  #  AT THE PROPER SCALE BEFORE CALLING TFF/CONIC.  SINCE RONE, VONE ARE IN THE EXTENDED VERB STORAGE AREA,
058292,000037:                                                                                                  #  THE USER MUST ALSO LOCK OUT THE EXTENDED VERBS, AND RELEASE THEM WHEN FINISHED.
058293,000038: 
058294,000039:                                                                                                  #  PROGRAMS CALC/TFF AND CALC/TPER ASSUME THAT THE TERMINAL RADIUS IS LESS THAN THE PRESENT
058295,000040:                                                                                                  #  RADIUS.  THIS RESTRICTION CAN BE REMOVED BY A 15 W CODING CHANGE, BUT AT PRESENT IT IS NOT DEEMED NECESSARY.
058296,000041: 
058297,000042:                                                                                                  #  THE FOLLOWING ERASABLE QUANTITIES ARE USED BY THE TFF ROUTINES, AND ARE LOCATED IN THE PUSH LIST.
058298,000043: 
058299,000044:                                                                                                  #                                        BELOW   E:  IS USED FOR EARTH ORIGIN SCALE
058300,000045:                                                                                                  #                                                M:  IS USED FOR MOON  ORIGIN SCALE
058301,000046: 
058302,000047:                                                                                                  # TFFSW          =       119D            BIT1    0 = CALCTFF             1 = CALCTPER
058303,000048: 23,3772                        TFFDELQ            =        10D                                   #        Q2-Q1                   E: (-16)  M: (-15)
058304,000049: 23,3772                        RMAG1              =        12D                                   #        ABVAL(RN)  M            E: (-29)  M: (-27)
058305,000050:                                                                                                  # RPER           =       14D             PERIGEE RADIUS  M       E: (-29)  M: (-27)
058306,000051: 23,3772                        TFFQ1              =        14D                                   #        R.V / SQRT(MUE)         E: (-16)  M: (-15)
058307,000052:                                                                                                  # SDELF/2                                SIN(THETA) /2
058308,000053: 23,3772                        CDELF/2            =        14D                                   #        COS(THETA) /2
058309,000054:                                                                                                  # RAPO           =       16D             APOGEE RADIUS  M        E: (-29)  M: (-27)
058310,000055: 23,3772                        NRTERM             =        16D                                   #        TERMINAL RADIUS  M      E: (-29+NR)
058311,000056:                                                                                                  #                                          M: (-27+NR)
058312,000057: 23,3772                        RTERM              =        18D                                   #        TERMINAL RADIUS  M      E: (-29)  M: (-27)
058313,000058: 23,3772                        TFFVSQ             =        20D                                   #        -(V SQUARED/MU)  1/M    E: (20)   M: (18)
058314,000059: 23,3772                        TFF1/ALF           =        22D                                   #        SEMI MAJ AXIS  M        E: (-22-2 NA)
058315,000060:                                                                                                  #                                          M: (-20-2 NA)
058316,000061: 23,3772                        TFFRTALF           =        24D                                   #        SQRT(ALFA)              E:(10+NA) M: (9+NA)
058317,000062: 23,3772                        TFFALFA            =        26D                                   #        ALFA  1/M               E:(26-NR) M: (24-NR)
058318,000063: 23,3772                        TFFNP              =        28D                                   #        SEMI LATUS RECTUM  M    E: (-38+2 NR)
058319,000064:                                                                                                  #                                          M: (-36+2 NR)
058320,000065: 23,3772                        TFF/RTMU           =        30D                                   #        1/SQRT(MU)              E: (17)   M: (14)
058321,000066: 23,3772                        NRMAG              =        32D                                   #        PRESENT RADIUS  M       E: (-29+NR)
058322,000067:                                                                                                  #                                          M: (-27+NR)
058323,000068: 23,3772                        TFFX               =        34D                                   
058324,000069: 23,3772                        TFFTEM             =        36D                                   #        TEMPORARY

Page 1374

058326,000071:                                                                                                  #                REGISTERS S1, S2 ARE UNTOUCHED BY ANY TFF SUBROUTINE
058327,000072:                                                                                                  #                INDEX REGISTERS X1, X2 ARE USED BY ALL TFF SUBROUTINES.  THEY ARE ESTAB-
058328,000073:                                                                                                  #                LISHED IN TFF/CONIC AND MUST BE PRESERVED BETWEEN CALLS TO SUBSEQUENT
058329,000074:                                                                                                  #                SUBROUTINES.
058330,000075:                                                                                                  #                -NR                             C(X1) = NORM COUNT OF RMAG
058331,000076:                                                                                                  #                -NA                             C(X2) = NORM COUNT OF SQRT(ABS(ALFA))
058332,000077: 

Page 1375

058334,000079:                                                                                                  #  SUBROUTINE NAME:  TFFCONIC                    DATE:  01.29.67
058335,000080:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
058336,000081:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
058337,000082:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
058338,000083:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD MOON MU.
058339,000084:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
058340,000085: 
058341,000086:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS SUBROUTINE IS CALLED TO COMPUTE THOSE CONIC PARAMETERS REQUIRED BY THE TFF
058342,000087:                                                                                                  #        SUBROUTINES AND TO ESTABLISH THEM IN THE PUSH LIST AREA.  THE PARAMETERS ARE LISTED UNDER OUTPUT.
058343,000088:                                                                                                  #        THE EQUATIONS ARE
058344,000089:                                                                                                  #                -   -  -
058345,000090:                                                                                                  #                H = RN*VN                       ANGULAR MOMENTUM
058346,000091:                                                                                                  #                      - -
058347,000092:                                                                                                  #                LCP = H.H / MU                  SEMI LATUS RECTUM
058348,000093:                                                                                                  #                              -  -
058349,000094:                                                                                                  #                ALFA = 2/RN - VN.VN / MU        RECIPROCAL SEMI MAJ AXIS, SIGNED
058350,000095: 
058351,000096:                                                                                                  #        AND ALFA IS POS FOR ELLIPTIC ORBITS
058352,000097:                                                                                                  #                      0 FOR PARABOLIC ORBITS
058353,000098:                                                                                                  #                    NEG FOR HYPERBOLIC ORBITS.
058354,000099:                                                                                                  #        SUBROUTINE ALSO COMPUTES AND SAVES RMAG.
058355,000100: 
058356,000101:                                                                                                  #  CALLING SEQUENCE:
058357,000102:                                                                                                  #        TFFCONIC EXPECTS CALLER TO ENTER WITH CORRECT GRAVITATIONAL CONSTANT IN MPAC, IN THE FORM
058358,000103:                                                                                                  #        1/SQRT(MU).  PROGRAM WILL SAVE IN TFF/RTMU.  THE SCALE IS DETERMINED BY WHETHER EARTH OR MOON
058359,000104:                                                                                                  #        ORIGIN IS USED.  THE CALLER MUST LOCK OUT THE EXTENDED VERBS BEFORE PROVIDING STATE VECTOR IN RONE,
058360,000105:                                                                                                  #        VONE AT PROPER SCALE.  THE EXTENDED VERBS MUST BE RESTORED WHEN THE CALLER IS FINISHED USING THE
058361,000106:                                                                                                  #        TFF ROUTINES.
058362,000107: 
058363,000108:                                                                                                  #        ENTRY POINT TFFCONMU EXPECTS THAT TFF/RTMU IS ALREADY LOADED.
058364,000109: 
058365,000110:                                                                                                  #        TO SPECIFY MU:  DLOAD   CALL            IF MU ALREADY STORED:           CALL
058366,000111:                                                                                                  #                                YOURMU          1/RTMU E:(17) M:(14)                    TFFCONMU
058367,000112:                                                                                                  #                                TFFCONIC
058368,000113:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 18D
058369,000114: 
058370,000115:                                                                                                  #  SUBROUTINES CALLED:  NONE
058371,000116: 
058372,000117:                                                                                                  #  NORMAL EXIT MODES:  RVQ
058373,000118: 
058374,000119:                                                                                                  #  ALARMS:  NONE
058375,000120: 
058376,000121:                                                                                                  #  OUTPUT:       THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
058377,000122:                                                                                                  #                RMAG1           E:(-29) M:(-27)         M  RN, PRESENT RADIUS LENGTH.
058378,000123:                                                                                                  #                NRMAG           E:(-29+NR)              M  RMAG, NORMALIZED
058379,000124:                                                                                                  #                                M:(-27+NR)
058380,000125:                                                                                                  #                X1                                      -NR, NORM COUNT
058381,000126:                                                                                                  #                TFFNP           E:(-38+2NR)             M  LCP, SEMI LATUS RECTUM, WEIGHTED BY NR.  FOR VGAMCALC
058382,000127:                                                                                                  #                                M:(-36+2NR)
058383,000128:                                                                                                  #                TFF/RTMU        E:(17) M:(14)           1/SQRT(MU)
058384,000129:                                                                                                  #                TFFVSQ          E:(20) M:(18)           1/M  -(V SQ/MU):  PRESENT VELOCITY, NORMLIZED.  FOR VGAMCALC
058385,000130:                                                                                                  #                TFFALFA         E:(26-NR)               1/M  ALFA, WEIGHTED BY NR
058386,000131:                                                                                                  #                                M:(24-NR)
058387,000132:                                                                                                  #                TFFRTALF        E:(10+NA)               SQRT(ALFA), NORMALIZED
058388,000133:                                                                                                  #                                M:(9+NA)

Page 1376

058390,000135:                                                                                                  #                X2                                      -NA, NORM COUNT
058391,000136:                                                                                                  #                TFF1/ALF        E:(-22-2NA)             SIGNED SEMI MAJ AXIS, WEIGHTED BY NA
058392,000137:                                                                                                  #                                M:(-20-2NA)
058393,000138:                                                                                                  #                PUSHLOC AT PDL+0
058394,000139: 
058395,000140:                                                                                                  #        THE FOLLOWING IS STORED IN GENERAL ERASABLE
058396,000141:                                                                                                  #                VONE'           E:(10) M:(9)            V/RT(MU), NORMALIZED VELOCITY
058397,000142: 
058398,000143:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
058399,000144:                                                                                                  #                RONE            E:(-29) M:(-27)         M  STATE VECTOR         LEFT BY CALLER
058400,000145:                                                                                                  #                VONE            E:(-7) M:(-5)           M/CS  STATE VECTOR      LEFT BY CALLER
058401,000146:                                                                                                  #                TFF/RTMU        E:(17) M:(14)           1/RT(CS SQ/M CUBE)      IF ENTER VIA TFFCONMU.
058402,000147: 
058403,000148:                                                                                                  #  DEBRIS:       QPRET,  PDL+0 ... PDL+3
058404,000149: 
058405,000150: 33,3776                                           BANK     33                                    
058406,000151: 27,2000                                           SETLOC   TOF-FF                                
058407,000152: 27,2000                                           BANK                                           
058408,000153: 
058409,000154: 27,2757                                           COUNT*   $$/TFF                                
058410,000155: 
058411,000156: 27,2757           00037        TFFCONIC           STORE    TFF/RTMU                              #  1/SQRT(MU)    E:(17) M:(14)
058412,000157: 
058413,000158: 27,2760           53575        TFFCONMU           VLOAD    UNIT                                  #  COME HERE WITH TFFRTMU LOADED.
058414,000159: 27,2761           02327                                    RONE                                  #  SAVED RN.  M  E:(-29) M:(-27)
058415,000160: 27,2762           77725                           PDDL                                           #  UR/2 TO PDL+0, +5
058416,000161: 27,2763           00045                                    36D                                   #  MAGNITUDE
058417,000162: 27,2764           00015                           STORE    RMAG1                                 #  M  E:(-29) M:(-27)
058418,000163: 
058419,000164: 27,2765           77701                           NORM                                           
058420,000165: 27,2766           00047                                    X1                                    #  -NR
058421,000166: 27,2767           24041                           STOVL    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
058422,000167: 27,2770           02335                                    VONE                                  #  SAVED VN.  M/CS  E:(-7) M:(-5)
058423,000168: 27,2771           77761                           VXSC                                           
058424,000169: 27,2772           00037                                    TFF/RTMU                              #  E:(17) M:(14)
058425,000170: 27,2773           02372                           STORE    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
058426,000171: 
058427,000172: 27,2774           47361                           VXSC     VXV                                   
058428,000173: 27,2775           00041                                    NRMAG                                 #  E:(-29+NR) M:(-27+NR)
058429,000174:                                                                                                  #  UR/2 FROM PDL
058430,000175: 27,2776           47572                           VSL1     VSQ                                   #  BEFORE:  E:(-19+NR) M:(-18+NR)
058431,000176: 27,2777           14035                           STODL    TFFNP                                 #  LC P  M  E:(-38+2NR) M:(-36+2NR)
058432,000177:                                                                                                  #  SAVE ALSO FOR VGAMCALC
058433,000178: 27,3000           15325                                    TFF1/4                                
058434,000179: 27,3001           63271                           DDV      PDVL                                  #  (2/RMAG)  1/M  E:(26-NR) M:(24-NR)
058435,000180: 27,3002           00041                                    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
058436,000181: 27,3003           02372                                    VONE'                                 #  SAVED VN.  E:(10) M:(9)
058437,000182: 27,3004           57436                           VSQ      DCOMP                                 #  KEEP MPAC+2 HONEST FOR SQRT.
058438,000183: 27,3005           00025                           STORE    TFFVSQ                                #  -(V SQ/MU)  E:(20) M:(18)
058439,000184:                                                                                                  #  SAVE FOR VGAMCALC
058440,000185: 27,3006           43257                           SR*      DAD                                   

Page 1377

058442,000187: 27,3007           20573                                    0          -6,1                       #  GET -VSQ/MU  E:(26-NR) M:(24-NR)
058443,000188: 27,3010           77626                           STADR                                          
058444,000189:                                                                                                  #  2/RMAG  FROM PDL+2
058445,000190: 27,3011           77744                           STORE    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
058446,000191: 27,3012           41457                           SL*      PUSH                                  #  TEMP SAVE ALFA  E:(20) M:(18)
058447,000192: 27,3013           20173                                    0          -6,1                       
058448,000193: 27,3014           75446                           ABS      SQRT                                  #  E:(10) M:(9)
058449,000194: 27,3015           77701                           NORM                                           
058450,000195: 27,3016           00050                                    X2                                    #  X2 = -NA
058451,000196: 27,3017           00031                           STORE    TFFRTALF                              #  SQRT( ABS(ALFA) )  E:(10+NA) M:(9+NA)
058452,000197: 27,3020           75316                           DSQ      SIGN                                  #  NOT SO ACCURATE, BUT OK
058453,000198:                                                                                                  #  ALFA FROM PDL+2  E:(20) M:(18)
058454,000199: 27,3021           55254                           BZE      BDDV                                  #  SET 1/ALFA =0, TO SHOW SMALL ALFA
058455,000200: 27,3022           57024                                    +2                                    
058456,000201: 27,3023           15325                                    TFF1/4                                
058457,000202: 27,3024           00027                 +2        STORE    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
058458,000203: 27,3025           77616        DUMPCNIC           RVQ                                            
058459,000204:                                                                                                  #                        39 W

Page 1378

058461,000206:                                                                                                  #  SUBROUTINE NAME:  TFFRP/RA                    DATE: 01.17.67
058462,000207:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
058463,000208:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
058464,000209:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
058465,000210:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
058466,000211:                                                                                                  #                                                                        ALSO IMPROVE ACCURACY OF RAPO.
058467,000212: 
058468,000213:                                                                                                  #  FUNCTIONAL DESCRIPTION:  USED BY CALCTPER AND TFF DISPLAYS TO CALCULATE PERIGEE RADIUS AND ALSO
058469,000214:                                                                                                  #        APOGEE RADIUS FOR A GENERAL CONIC.
058470,000215:                                                                                                  #        PROGRAM GIVES PERIGEE RADIUS AS         APOGEE RADIUS IS GIVEN BY
058471,000216:                                                                                                  #                RP = P/(1+E)                            RA = (1+E) / ALFA
058472,000217:                                                                                                  #        WHERE    2
058473,000218:                                                                                                  #                E  = 1 - P ALFA
058474,000219:                                                                                                  #        IF RA IS NEGATIVE OR SHOWS DIVIDE OVERFLOW, THEN RA = POSMAX BECAUSE
058475,000220:                                                                                                  #                1. APOGEE RADIUS IS NOT MEANINGFUL FOR HYPERBOLA
058476,000221:                                                                                                  #                2. APOGEE RADIUS IS NOT DEFINED FOR PARABOLA
058477,000222:                                                                                                  #                3. APOGEE RADIUS EXCEEDS THE SCALING FOR ELLIPSE.
058478,000223: 
058479,000224:                                                                                                  #        THIS SUBROUTINE REQUIRES THE SIGNED RECIPROCAL SEMI MAJ AXIS, ALFA, AND SEMI LATUS RECTUM AS DATA.
058480,000225: 
058481,000226:                                                                                                  #  CALLING SEQUENCE:     CALL
058482,000227:                                                                                                  #                                TFFRP/RA
058483,000228:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 10D
058484,000229:                                                                                                  #        C(MPAC) UNSPECIFIED
058485,000230: 
058486,000231:                                                                                                  #  SUBROUTINES CALLED:   NONE
058487,000232: 
058488,000233:                                                                                                  #  NORMAL EXIT MODE:     RVQ
058489,000234:                                                                                                  #        IF ELLIPSE, WITHIN NORMAL SCALING, RAPO IS CORRECT.
058490,000235:                                                                                                  #        OTHERWISE, RAPO = POSMAX.
058491,000236: 
058492,000237:                                                                                                  #  ALARMS:       NONE
058493,000238: 
058494,000239:                                                                                                  #  OUTPUT:       STORED IN PUSH LIST AREA.  SCALE OF OUTPUT AGREES WITH DATA SUPPLIED TO TFF/CONIC.
058495,000240:                                                                                                  #        RPER    E:(-29) M:(-27)         M       PERIGEE RADIUS          DESTROYED BY CALCTFF/CALCTPER, TFFTRIG.
058496,000241:                                                                                                  #        RAPO    E:(-29) M:(-27)         M       APOGEE RADIUS           WILL BE DESTROYED BY CALCTFF/CALCTPER
058497,000242:                                                                                                  #        PUSHLOC AT PDL+0
058498,000243: 
058499,000244:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
058500,000245:                                                                                                  #        TFFALFA E:(26-NR)               M       1/SEMI MAJ AXIS LEFT BY TFFCONIC
058501,000246:                                                                                                  #                M:(24-NR)
058502,000247:                                                                                                  #        TFFNP   E:(-38+2NR)             M       LC P, SEMI LATUS RECTUM LEFT BY TFFCONIC
058503,000248:                                                                                                  #                M:(-36+2NR)
058504,000249:                                                                                                  #        X1                              -NR, NORM COUNT OF RMAG         LEFT BY TFFCONIC
058505,000250:                                                                                                  #        X2                              -NA, NORM COUNT OF ALFA         LEFT BY TFFCONIC
058506,000251: 
058507,000252:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+1
058508,000253: 

Page 1379

058510,000255: 27,3026                        RAPO               =        16D                                   #  APOGEE RADIUS  M  E:(-29) M:(-27)
058511,000256: 27,3026                        RPER               =        14D                                   #  PERIGEE RADIUS  M  E:(-29) M:(-27)
058512,000257: 
058513,000258: 27,3026           41345        TFFRP/RA           DLOAD    DMP                                   
058514,000259: 27,3027           00033                                    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
058515,000260: 27,3030           00035                                    TFFNP                                 #  LC P  M E:(-38+2NR) M:(-36+2NR)
058516,000261: 27,3031           57457                           SR*      DCOMP                                 #  ALFA P (-12+NR)
058517,000262: 27,3032           20571                                    0          -8D,1                      #  ALFA P (-4)
058518,000263: 27,3033           51415                           DAD      ABS                                   #  (DCOMP GIVES VALID TP RESULT FOR SQRT)
058519,000264:                                                                                                  #  (ABS PROTECTS SQRT IF E IS VERY NEAR 0)
058520,000265: 27,3034           17366                                    DP2(-4)                               
058521,000266: 27,3035           43366                           SQRT     DAD                                   #  E SQ = (1- P ALFA) (-4)
058522,000267: 27,3036           15325                                    TFF1/4                                
058523,000268: 27,3037           55206                           PUSH     BDDV                                  #  (1+E)  (-2)  TO PDL+0
058524,000269: 27,3040           00035                                    TFFNP                                 #  LCP  M  E:(-38+2NR) M:(-36+2NR)
058525,000270: 27,3041           53657                           SR*      SR*                                   #  (DOES SR THEN SL TO AVOID OVFL)
058526,000271: 27,3042           20601                                    0,1                                   #  X1=-NR
058527,000272: 27,3043           20572                                    0          -7,1                       #  (EFFECTIVE SL)
058528,000273: 27,3044           14017                           STODL    RPER                                  #  PERIGEE RADIUS  M  E:(-29) M:(-27)
058529,000274:                                                                                                  #  (1+E)  (-2)  FROM PDL+0
058530,000275: 27,3045           41005                           DMP      BOVB                                  
058531,000276: 27,3046           00027                                    TFF1/ALF                              #  E:(-22-2NA) M:(-20-2NA)
058532,000277: 27,3047           57352                                    TCDANZIG                              #  CLEAR OVFIND, IF ON.
058533,000278: 27,3050           53654                           BZE      SL*                                   
058534,000279: 27,3051           57060                                    MAXRA                                 #  SET POSMAX, IF ALFA=0
058535,000280: 27,3052           57603                                    0          -5,2                       #  -5+NA
058536,000281: 27,3053           40057                           SL*      BOV                                   
058537,000282: 27,3054           57576                                    0,2                                   
058538,000283: 27,3055           57060                                    MAXRA                                 #  SET POSMAX IF OVFL.
058539,000284: 27,3056           77644                           BPL                                            #  CONTINUE WITH VALID RAPO.
058540,000285: 27,3057           57062                                    +3                                    
058541,000286: 27,3060           77745        MAXRA              DLOAD                                          #  RAPO CALC IS NOT VALID.  SET RAPO =
058542,000287: 27,3061           17372                                    NEARONE                               #  POSMAX AS A TAG.
058543,000288: 27,3062           00021                 +3        STORE    RAPO                                  #  APOGEE RADIUS  M  E:(-29) M:(-27)
058544,000289: 27,3063           77616        DUMPRPRA           RVQ                                            
058545,000290:                                                                                                  #                        30 W

Page 1380

058547,000292:                                                                                                  #  SUBROUTINE NAME:  CALCTPER / CALCTFF          DATE:  01.29.67
058548,000293:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
058549,000294:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
058550,000295:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 67
058551,000296:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 14 APR 67
058552,000297:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 8 JUL 67          NEAR EARTH MUE AND NEG TFF (GONEPAST)
058553,000298:                                                                                                  #  MOD NO:  4    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD VARIABLE MU.
058554,000299:                                                                                                  #  MOD NO:  5    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
058555,000300: 
058556,000301:                                                                                                  #  FUNCTIONAL DESCRIPTION:  PROGRAM CALCULATES THE FREE-FALL TIME OF FLIGHT FROM PRESENT POSITION RN AND
058557,000302:                                                                                                  #        VELOCITY VN TO A RADIUS LENGTH SPECIFIED BY RTERM, SUPPLIED BY THE USER.  THE POSITION VECTOR
058558,000303:                                                                                                  #        RN MAY BE ON EITHER SIDE OF THE CONIC, BUT RTERM IS CONSIDERED ON THE INBOUND SIDE.
058559,000304:                                                                                                  #        THE EQUATIONS ARE
058560,000305: 
058561,000306:                                                                                                  #                Q2 = -SQRT(RTERM (2-RTERM ALFA) - LCP)  (INBOUND SIDE)) LEQ +- LCE/SQRT(ALFA)
058562,000307:                                                                                                  #                     -  -
058563,000308:                                                                                                  #                Q1 = RN.VN / SQRT(MU)                                   LEQ +- LCE/SQRT(ALFA)
058564,000309: 
058565,000310:                                                                                                  #                Z = NUM / DEN                                           LEQ +- 1/SQRT(ALFA)
058566,000311: 
058567,000312:                                                                                                  #        WHERE, IF INBOUND
058568,000313:                                                                                                  #                NUM = RTERM -RN                                         LEQ +- 2 LCE/ALFA
058569,000314:                                                                                                  #                DEN = Q2+Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
058570,000315: 
058571,000316:                                                                                                  #        AND, IF OUTBOUND
058572,000317:                                                                                                  #                NUM = Q2-Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
058573,000318:                                                                                                  #                DEN = 2 - ALFA (RTERM + RN).                            LEQ +- 2 LCE
058574,000319: 
058575,000320:                                                                                                  #        IF      ALFA ZZ < 1.0           (FOR ALL CONICS EXCEPT ELLIPSES HAVING ABS(DEL ECC ANOM) G 90 DEG)
058576,000321:                                                                                                  #        THEN    X = ALFA Z Z
058577,000322:                                                                                                  #        AND     TFF = (RTERM +RN -2 ZZ T(X) ) Z/SQRT(MU)
058578,000323:                                                                                                  #                EXCEPT  IF ALFA PNZ, AND IF TFF NEG,
058579,000324:                                                                                                  #                THEN    TFF = 2 PI /(ALFA SQRT(ALFA)) + TFF
058580,000325:                                                                                                  #        OR      IF ALFA ZZ GEQ 1.0      (FOR ELLIPSES HAVING ABS(DEL ECC ANOM) GEQ 90 DEG)
058581,000326:                                                                                                  #        THEN    X = 1/ALFA Z Z
058582,000327:                                                                                                  #        AND     TFF = (PI/SQRT(ALFA) -Q2 +Q1 +2(X T(X) -1) /ALFA Z) /ALFA SQRT(MU)
058583,000328:                                                                                                  #        WHERE   T(X) IS A POLYNOMIAL APPROXIMATION TO THE SERIES
058584,000329:                                                                                                  #                             2      3             2
058585,000330:                                                                                                  #                1/3 - X/5 + X /7 - X /9 ...     (X  < 1.0)
058586,000331: 
058587,000332:                                                                                                  #  CALLING SEQUENCE:     TIME TO RTERM                   TIME TO PERIGEE
058588,000333:                                                                                                  #                        CALL                            CALL
058589,000334:                                                                                                  #                                CALCTFF                         CALCTPER
058590,000335:                                                                                                  #                        C(MPAC) = TERMNL RAD M          C(MPAC) = PERIGEE RAD M
058591,000336:                                                                                                  #        FOR EITHER, E:(-29) M:(-27)
058592,000337:                                                                                                  #        FOR EITHER, PUSHLOC = PDL+0, ARBITRARY IF LEQ 8D.

Page 1381

058594,000339: 
058595,000340:                                                                                                  #  SUBROUTINES CALLED:   T(X), VIA RTB
058596,000341: 
058597,000342:                                                                                                  #  NORMAL EXIT MODE:     RVQ
058598,000343:                                                                                                  #        HOWEVER, PROGRAM EXITS WITH ONE OF THE FOLLOWING VALUES FOR TFF (-28) CS IN MPAC.  USER MUST STORE.
058599,000344:                                                                                                  #                A. TFF = FLIGHT TIME.  NORMAL CASE FOR POSITIVE FLIGHT TIME LESS THAN ONE ORBITAL PERIOD.
058600,000345:                                                                                                  #                B. (THIS OPTION IS NO LONGER USED.)
058601,000346:                                                                                                  #                C. TFF = POSMAX.  THIS INDICATES THAT THE CONIC FROM THE PRESENT POSITION WILL NOT RETURN TO
058602,000347:                                                                                                  #                   THE SPECIFIED ALTITUDE.  ALSO INDICATES OUTBOUND PARABOLA OR HYPERBOLA.
058603,000348: 
058604,000349:                                                                                                  #  OUTPUT:       C(MPAC)         (-28) CS        TIME OF FLIGHT, OR TIME TO PERIGEE
058605,000350:                                                                                                  #                TFFX            (0)             X,                                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
058606,000351:                                                                                                  #                NRTERM          E:(-29+NR) M    RTERM, WEIGHTED BY NR                   LEFT FOR ENTRY DISPLAY TFF ROUTINES
058607,000352:                                                                                                  #                                M:(-27+NR)
058608,000353:                                                                                                  #                TFFTEM          E:(-59+2NR)     LCP Z Z SGN(SDELF)                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
058609,000354:                                                                                                  #                                M:(-55+2NR)     LCP /ALFA SGN(SDELF)                    LEFT FOR ENTRY DISPLAY TFF ROUTINES
058610,000355:                                                                                                  #                NOTE:   TFFTEM = PDL 36D AND WILL BE DESTROYED BY .:UNIT:.
058611,000356:                                                                                                  #                RMAG1           E:(-29) M:(-27) PDL 12 NOT TOUCHED.
058612,000357:                                                                                                  #                TFFQ1           E:(-16) M:(-15) PDL 14D
058613,000358:                                                                                                  #                TFFDELQ         E:(-16) M:(-15) PDL 10D
058614,000359:                                                                                                  #                PUSHLOC AT PDL+0
058615,000360: 
058616,000361:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
058617,000362:                                                                                                  #                RONE            E:(-29) M:(-27) M  STATE VECTOR                         LEFT BY USER
058618,000363:                                                                                                  #                VONE'           E:(+10) M:(+9)  VN/SQRT(MU)                             LEFT BY TFF/CONIC
058619,000364:                                                                                                  #                RMAG1           E:(-29) M:(-27) PRESENT RADIUS, M                       LEFT BY TFFCONIC
058620,000365:                                                                                                  #                C(MPAC)         E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH, M        LEFT BY USER
058621,000366: 
058622,000367:                                                                                                  #                THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
058623,000368:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/SQRT(MU)                              LEFT BY TFFCONIC.
058624,000369:                                                                                                  #                NRMAG           E:(-29+NR)      M  RMAG, NORMALIZED                     LEFT BY TFFCONIC
058625,000370:                                                                                                  #                                M:(-27+NR)
058626,000371:                                                                                                  #                X1                              -NR, NORM COUNT                         LEFT BY TFFCONIC
058627,000372:                                                                                                  #                TFFNP           E:(-38+2NR)     M  LCP, SEMI LATUS RECTUM, WEIGHT NR    LEFT BY TFFCONIC
058628,000373:                                                                                                  #                                M:(-36+2NR)
058629,000374:                                                                                                  #                TFFALFA         E:(26-NR)       1/M  ALFA, WEIGHT NR                    LEFT BY TFFCONIC
058630,000375:                                                                                                  #                                M:(24-NR)
058631,000376:                                                                                                  #                TFFRTALF        E:(10+NA)       SQRT(ALFA), NORMALIZED                  LEFT BY TFFCONIC
058632,000377:                                                                                                  #                                M:(9+NA)
058633,000378:                                                                                                  #                X2                              -NA, NORM COUNT                         LEFT BY TFFCONIC
058634,000379:                                                                                                  #                TFF1/ALF        E:(-22-2NA)     SIGNED SEMIMAJ AXIS, WEIGHTED BY NA     LEFT BY TFFCONIC
058635,000380:                                                                                                  #                                M:(-20-2NA)
058636,000381: 
058637,000382:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+3
058638,000383:                                                                                                  #                RTERM           E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH
058639,000384:                                                                                                  #                RAPO            E:(-29) M:(-27) PDL 16D (=NRTERM)
058640,000385:                                                                                                  #                RPER            E:(-29) M:(-27) PDL 14D (=TFFQ1)
058641,000386: 

Page 1382

058643,000388: 27,3064           77614        CALCTPER           SETGO                                          #  ENTER WITH RPER IN MPAC
058644,000389: 27,3065           03436                                    TFFSW                                 
058645,000390: 27,3066           57071                                    +3                                    
058646,000391: 27,3067           77614        CALCTFF            CLEAR                                          #  ENTER WITH RTERM IN MPAC
058647,000392: 27,3070           03676                                    TFFSW                                 
058648,000393: 27,3071           00023                 +3        STORE    RTERM                                 #  E:(-29) M:(-27)
058649,000394: 27,3072           77657                           SL*                                            
058650,000395: 27,3073           20201                                    0,1                                   #  X1=-NR
058651,000396: 27,3074           00021                           STORE    NRTERM                                #  RTERM  E:(-29+NR) M:(-27+NR)
058652,000397: 27,3075           44205                           DMP      BDSU                                  
058653,000398: 27,3076           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
058654,000399: 27,3077           15325                                    TFF1/4                                
058655,000400: 27,3100           41206                           PUSH     DMP                                   #  (2-ALFA RTERM)  (-3)  TO PDL+0
058656,000401: 27,3101           00021                                    NRTERM                                #  E:(-29+NR) M:(-27+NR)
058657,000402: 27,3102           53725                           PDDL     SR*                                   #  RTERM(2-ALFA RTERM) TO PDL+2
058658,000403:                                                                                                  #  E:(-32+NR) M:(-30+NR)
058659,000404: 27,3103           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
058660,000405: 27,3104           20573                                    0          -6,1                       #  X1 = -NR
058661,000406: 27,3105           43276                           DCOMP    DAD                                   #  DUE TO SHIFTS, KEEP PRECISION FOR SQRT
058662,000407:                                                                                                  #  RTERM(2-ALFA RTERM) FROM PDL +2
058663,000408:                                                                                                  #  E:(-32+NR) M:(-30+NR)
058664,000409: 27,3106           77657                           SR*                                            #  LEAVE  E:(-32) M:(-30)
058665,000410: 27,3107           20601                                    0,1                                   #  X1 = -NR
058666,000411: 27,3110           71214                           BOFF     DLOAD                                 #  CHECK TFF /TPER SWITCH
058667,000412: 27,3111           03756                                    TFFSW                                 
058668,000413: 27,3112           57114                                    +2                                    #  IF TFF, CONTINUE
058669,000414: 27,3113           15335                                    TFFZEROS                              #  IF TPER, SET Q2 = 0
058670,000415: 27,3114           75440                 +2        BMN      SQRT                                  #  E:(-16) M:(-15)
058671,000416: 27,3115           57247                                    MAXTFF1                               #  NO FREE FALL CONIC TO RTERM FROM HERE
058672,000417:                                                                                                  #  RESET PDL, SET TFF=POSMAX, AND EXIT.
058673,000418: 
058674,000419: 27,3116           41076                           DCOMP    BOVB                                  #  RT IS ON INBOUND SIDE.  ASSURE OVFIND=0
058675,000420: 27,3117           57352                                    TCDANZIG                              #  ANY PORT IN A STORM.
058676,000421: 27,3120           24045                           STOVL    TFFTEM                                #  Q2  E:(-16) M:(-15)
058677,000422: 27,3121           02372                                    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
058678,000423: 27,3122           52441                           DOT      SL3                                   
058679,000424: 27,3123           02327                                    RONE                                  #  SAVED RN.  E:(-29) M:(-27)
058680,000425: 27,3124           00017                           STORE    TFFQ1                                 #  Q1, SAVE FOR GONEPAST TEST.
058681,000426:                                                                                                  #  E:(-16) M:(-15)
058682,000427: 27,3125           44240                           BMN      BDSU                                  
058683,000428: 27,3126           57147                                    INBOUND                               #  USE ALTERNATE Z
058684,000429: 27,3127           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
058685,000430: 
058686,000431:                                                                                                  #  OUTBOUND Z CALC CONTINUES HERE
058687,000432: 
058688,000433: 27,3130           14043                           STODL    TFFX                                  #  NUM=Q2-Q1  E:(-16) M:(-15)
058689,000434: 27,3131           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
058690,000435: 27,3132           44205                           DMP      BDSU                                  

Page 1383

058692,000437: 27,3133           00041                                    NRMAG                                 #  RMAG  E:(-29+NR) M:(-27+NR)
058693,000438:                                                                                                  #  (2-RTERM ALFA)  (-3) FROM PDL+0
058694,000439: 27,3134           51406        SAVEDEN            PUSH     ABS                                   #  DEN TO PDL+0  E:(-3) OR (-16)
058695,000440:                                                                                                  #                M:(-3) OR (-15)
058696,000441: 27,3135           40015                           DAD      BOV                                   #  INDETERMINANCY TEST
058697,000442: 27,3136           17360                                    LIM(-22)                              #  =1.0-B(-22)
058698,000443: 27,3137           57160                                    TFFXTEST                              #  GO IF DEN >/= B(-22)
058699,000444: 27,3140           65345                           DLOAD    PDDL                                  #  SET DEN=0 OTHERWISE
058700,000445: 27,3141           15335                                    TFFZEROS                              
058701,000446:                                                                                                  #  XCH ZERO WITH PDL+0
058702,000447: 27,3142           57545                           DLOAD    DCOMP                                 
058703,000448: 27,3143           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
058704,000449: 27,3144           71240                           BMN      DLOAD                                 #  FOR TPER:  Z INDET AT DELE/2=0 AND 90.
058705,000450: 27,3145           57254                                    TFFEL1                                #  ASSUME 90, AND LEAVE 0 IN PDL: 1/Z=D/N
058706,000451: 
058707,000452:                                                                                                  #  Z INDET. AT PERIGEE FOR PARAB OR HYPERB.
058708,000453: 27,3146           77616        DUMPTFF1           RVQ                                            #  RETURN TFF =0
058709,000454: 
058710,000455:                                                                                                  #  INBOUND Z CALC CONTINUES HERE
058711,000456: 
058712,000457: 27,3147           77745        INBOUND            DLOAD                                          #  RESET PDL+0
058713,000458: 27,3150           45345                           DLOAD    DSU                                   #  ALTERNATE Z CALC
058714,000459: 27,3151           00023                                    RTERM                                 #  E:(-29) M:(-27)
058715,000460: 27,3152           00015                                    RMAG1                                 #  E:(-29) M:(-27)
058716,000461: 27,3153           14043                           STODL    TFFX                                  #  NUM=RTERM-RN  E:(-29) M:(-27)
058717,000462: 27,3154           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
058718,000463: 27,3155           52015                           DAD      GOTO                                  
058719,000464: 27,3156           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
058720,000465: 27,3157           57134                                    SAVEDEN                               #  DEN = Q2+Q1  E:(-16) M:(-15)
058721,000466: 
058722,000467: 27,3160           65215        TFFXTEST           DAD      PDDL                                  #  (ABS(DEN) TO PDL+2))  E:(-3) OR (-16)
058723,000468:                                                                                                  #                        M:(-3) OR (-15)
058724,000469: 27,3161           17362                                    DP(-22)                               #  RESTORE ABS(DEN) TO MPAC
058725,000470: 27,3162           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
058726,000471: 27,3163           53605                           DMP      SR*                                   
058727,000472: 27,3164           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
058728,000473: 27,3165           57201                                    0          -3,2                       #  X2=-NA
058729,000474: 27,3166           77671                           DDV                                            #  C(MPAC) =NUM SQRT(ALFA)       E:(-3) OR (-16)
058730,000475:                                                                                                  #                                M:(-3) OR (-15)
058731,000476:                                                                                                  #  ABS(DEN) FROM PDL+2   E:(-3) OR (-16)
058732,000477:                                                                                                  #                        M:(-3) OR (-15)
058733,000478: 27,3167           40145                           DLOAD    BOV                                   #  (THE DLOAD IS SHARED WITH TFFELL)
058734,000479: 27,3170           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
058735,000480: 27,3171           57252                                    TFFELL                                #  USE EQN FOR DELE GEQ 90, LEQ -90
058736,000481: 
058737,000482:                                                                                                  #  OTHERWISE, CONTINUE FOR GENERAL CONIC FOR TFF EQN
058738,000483: 
058739,000484: 27,3172           45471                           DDV      STADR                                 
058740,000485:                                                                                                  #  DEN FROM PDL+0        E:(-3) OR (-16)
058741,000486:                                                                                                  #                        M:(-3) OR (-15)
058742,000487: 27,3173           77732                           STORE    TFFTEM                                #  Z SAVE FOR SIGN OF SDELF.

Page 1384

058744,000489:                                                                                                  #  E:(-13) M:(-12)
058745,000490: 27,3174           63406                           PUSH     DSQ                                   #  Z TO PDL+0
058746,000491: 27,3175           41206                           PUSH     DMP                                   #  Z SQ TO PDL+2  E:(-26) M:(-24)
058747,000492: 27,3176           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
058748,000493: 27,3177           75261                           SL       SIGN                                  
058749,000494: 27,3200           20206                                    5                                     
058750,000495: 27,3201           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF (ENTRY DISPLAY)
058751,000496: 27,3202           14045                           STODL    TFFTEM                                #  P ZSQ  E:(-59+2NR) M:(-55+2NR)
058752,000497:                                                                                                  #  (ARG IS USED IN TFF/TRIG)
058753,000498:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
058754,000499: 27,3203           41206                           PUSH     DMP                                   #  RESTORE PUSH LOC
058755,000500: 27,3204           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
058756,000501: 27,3205           77657                           SL*                                            
058757,000502: 27,3206           20201                                    0,1                                   #  X1=-NR
058758,000503: 27,3207           00043                           STORE    TFFX                                  #  X
058759,000504: 27,3210           41234                           RTB      DMP                                   
058760,000505: 27,3211           57334                                    T(X)                                  #  POLY
058761,000506:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
058762,000507: 27,3212           44302                           SR2      BDSU                                  #  2 ZSQ T(X)  E:(-29) M:(-27)
058763,000508: 27,3213           00023                                    RTERM                                 #  RTERM  E:(-29) M:(-27)
058764,000509: 27,3214           41215                           DAD      DMP                                   
058765,000510: 27,3215           00015                                    RMAG1                                 #  E:(-29) M:(-27)
058766,000511:                                                                                                  #  Z FROM PDL+0  E:(-13) M:(-12)
058767,000512: 27,3216           51042                           SR3      BPL                                   #  TFF SQRT(MU)  E:(-45) M:(-42)
058768,000513: 27,3217           57240                                    ENDTFF                                #  (NO PUSH UP)
058769,000514: 27,3220           75206                           PUSH     SIGN                                  #  TFF SQRT(MU) TO PDL+0
058770,000515: 27,3221           00017                                    TFFQ1                                 #  Q1 FOR GONEPAST TEST
058771,000516: 27,3222           71244                           BPL      DLOAD                                 #  GONE PAST ?
058772,000517: 27,3223           57244                                    NEGTFF                                #  YES. TFF < 0.
058773,000518: 27,3224           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
058774,000519: 27,3225           51076                           DCOMP    BPL                                   #  ALFA > 0 ?
058775,000520: 27,3226           57244                                    NEGTFF                                #  NO. TFF IS NEGATIVE.
058776,000521: 
058777,000522:                                                                                                  #  CORRECT FOR ORBITAL PERIOD.
058778,000523: 
058779,000524: 27,3227           77676                           DCOMP                                          #  YES.  CORRECT FOR ORB PERIOD.
058780,000525: 27,3230           56205                           DMP      DDV                                   
058781,000526: 27,3231           17356                                    PI/16                                 #  2 PI (-5)
058782,000527: 27,3232           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
058783,000528: 27,3233           53657                           SL*      SL*                                   
058784,000529: 27,3234           57602                                    0          -4,2                       #  X2=-NA
058785,000530: 27,3235           57602                                    0          -4,2                       
058786,000531: 27,3236           43257                           SL*      DAD                                   
058787,000532: 27,3237           57576                                    0,2                                   
058788,000533:                                                                                                  #  TFF SQRT(MU) FROM PDL+0       E:(-45) M:(-42)
058789,000534: 27,3240           40005        ENDTFF             DMP      BOV                                   #  TFF SQRT(MU) IN MPAC          E:(-45) M:(-42)
058790,000535: 27,3241           00037                                    TFF/RTMU                              #  E:(17) M:(14)
058791,000536: 27,3242           57250                                    MAXTFF                                #  SET POSMAX IF OVFL.
058792,000537: 
058793,000538: 27,3243           77616        DUMPTFF2           RVQ                                            #  RETURN TFF (-28) CS IN MPAC.
058794,000539: 

Page 1385

058796,000541: 27,3244           77745        NEGTFF             DLOAD                                          
058797,000542:                                                                                                  #  TFF SQRT(MU) FROM PDL+0, NEGATIVE.
058798,000543: 27,3245           77650                           GOTO                                           
058799,000544: 27,3246           57240                                    ENDTFF                                
058800,000545: 
058801,000546: 27,3247           77745        MAXTFF1            DLOAD                                          #  RESET PDL
058802,000547: 27,3250           43545        MAXTFF             DLOAD    RVQ                                   
058803,000548: 27,3251           17372                                    NEARONE                               
058804,000549: 
058805,000550:                                                                                                  #  TIME OF FLIGHT ELLIPSE WHEN DEL (ECCENTRIC ANOM) GEQ 90 AND LEQ -90.
058806,000551: 
058807,000552:                                                                                                  #  NUM FROM TFFX.        E:(-16) OR (-29)
058808,000553:                                                                                                  #                        M:(-15) OR (-27)
058809,000554: 27,3252           77712        TFFELL             SL2                                            #  NUM  E:(-14) OR (-27)  M:(-13) OR (-25)
058810,000555: 27,3253           41465                           BDDV     PUSH                                  #  TEMP SAVE D/N IN PDL+0
058811,000556:                                                                                                  #  DEN FROM PDL+0  E:(-3)/( 16)  M:(-3)/(-15)
058812,000557:                                                                                                  #  N/D TO PDL+0  E:(11) M:(10)
058813,000558: 27,3254           45345        TFFEL1             DLOAD    DSU                                   #  (ENTER WITH D/N=0 IN PDL+0)
058814,000559: 27,3255           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
058815,000560: 27,3256           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
058816,000561: 27,3257           14013                           STODL    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
058817,000562:                                                                                                  #  D/N FROM PDL+0
058818,000563: 27,3260           77626                           STADR                                          
058819,000564: 27,3261           77732                           STORE    TFFTEM                                #  D/N  E:(11) M:(10)
058820,000565: 27,3262           53605                           DMP      SL*                                   
058821,000566: 27,3263           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
058822,000567: 27,3264           57576                                    0,2                                   #  1/ALFA Z  E:(-11-NA) M:(-10-NA)
058823,000568: 27,3265           41206                           PUSH     DMP                                   #  TO PDL+0
058824,000569: 27,3266           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
058825,000570: 27,3267           41057                           SL*      BOVB                                  
058826,000571: 27,3270           57576                                    0,2                                   #  X2= -NA
058827,000572: 27,3271           45712                                    SIGNMPAC                              #  IN CASE X= 1.0, CONTINUE
058828,000573: 27,3272           00043                           STORE    TFFX                                  #  X=1/ALFA ZSQ
058829,000574: 27,3273           41234                           RTB      DMP                                   
058830,000575: 27,3274           57334                                    T(X)                                  #  POLY
058831,000576: 27,3275           00043                                    TFFX                                  
058832,000577: 27,3276           45242                           SR3      DSU                                   
058833,000578: 27,3277           17364                                    DP2(-3)                               
058834,000579: 27,3300           41405                           DMP      PUSH                                  #  2(X T(X)-1) /Z ALFA   E:(-15-NA)
058835,000580:                                                                                                  #                        M:(-14-NA)
058836,000581:                                                                                                  #  1/ALFA Z FROM PDL+0   E:(-11-NA)
058837,000582:                                                                                                  #                        M:(-10-NA)
058838,000583: 27,3301           41345                           DLOAD    DMP                                   #  GET SIGN FOR SDELF
058839,000584: 27,3302           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
058840,000585: 27,3303           00015                                    RMAG1                                 #  E:(-29) M:(-27)
058841,000586: 27,3304           43312                           SL2      DAD                                   
058842,000587: 27,3305           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
058843,000588: 27,3306           14045                           STODL    TFFTEM                                #  (Q1+R 1/Z) =SGN OF SDELF  E:(-16) M:(-15
058844,000589: 27,3307           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
058845,000590: 27,3310           53605                           DMP      SL*                                   #  CALC FOR ARG FOR TFF/TRIG.

Page 1386

058847,000592: 27,3311           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
058848,000593: 27,3312           57575                                    1,2                                   #  X2=-NA
058849,000594: 27,3313           53765                           SIGN     SL*                                   
058850,000595: 27,3314           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF
058851,000596: 27,3315           57576                                    0,2                                   
058852,000597: 27,3316           14045                           STODL    TFFTEM                                #  P/ALFA  E:(-59+2NR) M:(-55+2NR)
058853,000598:                                                                                                  #  (ARG FOR USE IN TFF/TRIG)
058854,000599: 27,3317           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
058855,000600: 27,3320           41366                           SQRT     DMP                                   
058856,000601: 27,3321           17356                                    PI/16                                 #  PI (-4)
058857,000602: 27,3322           77615                           DAD                                            
058858,000603:                                                                                                  #  2(XT(X)-1)/Z ALFA FROM PDL    E:(-15-NA)
058859,000604:                                                                                                  #                                M:(-14-NA)
058860,000605: 27,3323           45257                           SL*      DSU                                   
058861,000606: 27,3324           57577                                    0          -1,2                       
058862,000607: 27,3325           00013                                    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
058863,000608: 27,3326           53605                           DMP      SL*                                   
058864,000609: 27,3327           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
058865,000610: 27,3330           57601                                    0          -3,2                       
058866,000611: 27,3331           52057                           SL*      GOTO                                  
058867,000612: 27,3332           57602                                    0          -4,2                       
058868,000613: 27,3333           57240                                    ENDTFF                                #  TFF SQRT(MU) IN MPAC E:(-45) M:(-42)
058869,000614: 

Page 1387

058871,000616:                                                                                                  #  PROGRAM NAME:  T(X)                           DATE:  01.17.67
058872,000617:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
058873,000618:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
058874,000619: 
058875,000620:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THE POLYNOMIAL T(X) IS USED BY TIME OF FLIGHT SUBROUTINES CALCTFF AND
058876,000621:                                                                                                  #        CALCTPER TO APPROXIMATE THE SERIES
058877,000622:                                                                                                  #                           2     3
058878,000623:                                                                                                  #                1/3 -X/5 +X /7 -X /9 ...
058879,000624: 
058880,000625:                                                                                                  #        WHERE   X = ALFA Z Z            IF ALFA Z Z LEQ 1
058881,000626:                                                                                                  #                X = 1/(ALFA Z Z)        IF ALFA Z Z G 1
058882,000627: 
058883,000628:                                                                                                  #        ALSO    X IS NEG FOR HYPERBOLIC ORBITS
058884,000629:                                                                                                  #                X = 0 FOR PARABOLIC ORBITS
058885,000630:                                                                                                  #                X IS POSITIVE FOR ELLIPTIC ORBITS
058886,000631: 
058887,000632:                                                                                                  #        FOR FLIGHT 278, THE POLYNOMIAL T(X) IS FITTED OVER THE RANGE (0,+1) AND HAS A MAXIMUM
058888,000633:                                                                                                  #        DEVIATION FROM THE SERIES OF 2 E-5       (T(X) IS A CHEBYCHEV TYPE FIT AND WAS OBTAINED USING
058889,000634:                                                                                                  #        MAC PROGRAM AUTCURFIT294RRB AND IS VALID TO THE SAME TOLERANCE OVER THE RANGE (-.08,+1).)
058890,000635: 
058891,000636:                                                                                                  #  CALLING SEQUENCE:     RTB
058892,000637:                                                                                                  #                                T(X)
058893,000638:                                                                                                  #        C(MPAC) = X
058894,000639: 
058895,000640:                                                                                                  #  SUBROUTINES CALLED:  NONE
058896,000641: 
058897,000642:                                                                                                  #  NORMAL EXIT MODE:  TC DANZIG
058898,000643: 
058899,000644:                                                                                                  #  ALARMS:  NONE
058900,000645: 
058901,000646:                                                                                                  #  OUTPUT:  C(MPAC) = T(X)
058902,000647: 
058903,000648:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
058904,000649:                                                                                                  #        C(MPAC) = X
058905,000650: 
058906,000651:                                                                                                  #  DEBRIS:  NONE
058907,000652: 
058908,000653: 27,3334           07171        T(X)               TC       POLY                                  
058909,000654: 27,3335           00004                           DEC      4          B-14                       #  N-1
058910,000655: 27,3336           12525 12525                     2DEC     3.333333333 E-1                        
058911,000656: 27,3340           71463 57703                     2DEC*    -1.999819135 E-1*                       
058912,000657: 27,3342           04423 17645                     2DEC*    1.418148467 E-1*                       
058913,000658: 27,3344           74604 43667                     2DEC*    -1.01310997 E-1*                       
058914,000659: 27,3346           01626 37256                     2DEC*    5.609004986 E-2*                       
058915,000660: 27,3350           77404 52071                     2DEC*    -1.536156925 E-2*                       
058916,000661: 
058917,000662: 27,3352           06030        ENDT(X)            TC       DANZIG                                
058918,000663: 
058919,000664: 27,3353  27,3352               TCDANZIG           =        ENDT(X)                               
058920,000665: 

Page 1388

058922,000667:                                                                                                  #  TFF CONSTANTS
058923,000668: 
058924,000669: 32,3770                                           BANK     32                                    
058925,000670: 
058926,000671: 27,2000                                           SETLOC   TOF-FF1                               
058927,000672: 27,2000                                           BANK                                           
058928,000673: 
058929,000674:                                                                                                  #                                                NOTE _  NOTE _ ADJUSTED MUE FOR NEAR EARTH TRAJ.
058930,000675:                                                                                                  # MUE            =       3.990815471 E10         M CUBE/CS SQ
058931,000676:                                                                                                  # RTMUE          =       1.997702549 E5 B-18*    MODIFIED EARTH MU
058932,000677: 
058933,000678: 27,3353           24775 30424  1/RTMU             2DEC*    .5005750271 E-5        B17*            #  MODIFIED EARTH MU
058934,000679: 
058935,000680:                                                                                                  #                                                NOTE _  NOTE _ ADJUSTED MUE FOR NEAR EARTH TRAJ.
058936,000681:                                                                                                  # MUM            =       4.902778 E8             M CUBE/CS SQ
058937,000682:                                                                                                  # RTMUM          2DEC*   2.21422176 E4 B-18*
058938,000683: 27,3355           06220 37553  PI/16              2DEC     3.141592653 B-4                        
058939,000684: 27,3357           37777 37700  LIM(-22)           2OCT     3777737700                            #  1.0 -B(-22)
058940,000685: 27,3361           00000 00100  DP(-22)            2OCT     0000000100                            #  B(-22)
058941,000686: 27,3363           04000 00000  DP2(-3)            2DEC     1          B-3                        
058942,000687: 27,3365           02000 00000  DP2(-4)            2DEC     1          B-4                        #  1/16
058943,000688: 
058944,000689:                                                                                                  #  RPAD1         2DEC    6373338 B-29            M (-29) = 20909901.57 FT
058945,000690: 27,3367  22,3151               RPAD1              =        RPAD                                  
058946,000691: 
058947,000692: 27,3367           00305 11205  R300K              2DEC     6464778    B-29                       #  (-29) M
058948,000693: 27,3371           37777 37777  NEARONE            2DEC     .999999999                            
058949,000694: 27,3373  26,3334               TFFZEROS           EQUALS   HI6ZEROS                              
058950,000695: 27,3373  26,3324               TFF1/4             EQUALS   HIDP1/4                               

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