Source Code

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

The starting point was the source code of Comanche 51 (separately previously reconstructed from an Apollo-era listing of Comanche 55, flown on Apollo 11). Comanche 51 source code was then modified by undoing changes known to have been made between revisions 44 and 51. The now-reconstructed Comanche 44 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 match those on the Comanche 55 printout, although the source code would likely have different page numbers in a contemporary Comanche 44 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 51. Here's a guide to the Apollo documentation referenced in those annotations:
In most cases, only the titles (rather than the full texts) of PCRs are known. In addition to the explanatory annotations, there is also a step-by-step commentary about the reconstruction process.

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.

058831,000002:                                                                                                  ## Copyright:   Public domain.
058832,000003:                                                                                                  ## Filename:    TIME_OF_FREE_FALL.agc
058833,000004:                                                                                                  ## Purpose:     A section of Comanche revision 044.
058834,000005:                                                                                                  ##              It is part of the reconstructed source code for the
058835,000006:                                                                                                  ##              original release of the flight software for the Command
058836,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
058837,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
058838,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
058839,000010:                                                                                                  ##              exactly match those specified for Comanche 44 in NASA drawing
058840,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
058841,000012:                                                                                                  ##              reconstruction is correct.
058842,000013:                                                                                                  ## Assembler:   yaYUL
058843,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
058844,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
058845,000016:                                                                                                  ## Mod history: 2020-12-03 MAS  Created from Comanche 51.
058846,000017: 

Page 1373

058848,000019:                                                                                                  #  THE TFF SUBROUTINES MAY BE USED IN EITHER EARTH OR MOON CENTERED COORDINATES.  THE TFF ROUTINES NEVER
058849,000020:                                                                                                  #  KNOW WHICH ORIGIN APPLIES.  IT IS THE USER WHO KNOWS, AND WHO SUPPLIES RONE, VONE AND 1/SQRT(MU) AT THE
058850,000021:                                                                                                  #  APPROPRIATE SCALE LEVEL FOR THE PROPER PRIMARY BODY.
058851,000022: 
058852,000023:                                                                                                  #        EARTH ORIGIN    POSITION        -29     METERS
058853,000024:                                                                                                  #                        VELOCITY        -7      METERS/CENTISECOND
058854,000025:                                                                                                  #                        1/SQRT(MU)      +17     SQRT(CS SQ/METERS CUBED)
058855,000026: 
058856,000027:                                                                                                  #        MOON ORIGIN     POSITION        -27     METERS
058857,000028:                                                                                                  #                        VELOCITY        -5      METERS/CENTISECONDS
058858,000029:                                                                                                  #                        1/SQRT(MU)      +14     SQRT(CS SQ/METERS CUBED)
058859,000030: 
058860,000031:                                                                                                  #  ALL DATA PROVIDED TO AND RECEIVED FROM ANY TFF SUBROUTINE WILL BE AT ONE OF THE LEVELS ABOVE.  IN ALL CASES,
058861,000032:                                                                                                  #  THE FREE FALL TIME IS RETURNED IN CENTISECONDS AT (-28).  PROGRAM TFF/CONIC WILL GENERATE VONE/RTMU AND
058862,000033:                                                                                                  #  LEAVE IT IN VONE' AT (+10) IF EARTH ORIGIN AND (+9) IF MOON ORIGIN.
058863,000034: 
058864,000035:                                                                                                  #  THE USER MUST STORE THE STATE VECTOR IN RONE, VONE  AND MU IN THE FORM 1/SQRT(MU) IN TFF/RTMU
058865,000036:                                                                                                  #  AT THE PROPER SCALE BEFORE CALLING TFF/CONIC.  SINCE RONE, VONE ARE IN THE EXTENDED VERB STORAGE AREA,
058866,000037:                                                                                                  #  THE USER MUST ALSO LOCK OUT THE EXTENDED VERBS, AND RELEASE THEM WHEN FINISHED.
058867,000038: 
058868,000039:                                                                                                  #  PROGRAMS CALC/TFF AND CALC/TPER ASSUME THAT THE TERMINAL RADIUS IS LESS THAN THE PRESENT
058869,000040:                                                                                                  #  RADIUS.  THIS RESTRICTION CAN BE REMOVED BY A 15 W CODING CHANGE, BUT AT PRESENT IT IS NOT DEEMED NECESSARY.
058870,000041: 
058871,000042:                                                                                                  #  THE FOLLOWING ERASABLE QUANTITIES ARE USED BY THE TFF ROUTINES, AND ARE LOCATED IN THE PUSH LIST.
058872,000043: 
058873,000044:                                                                                                  #                                        BELOW   E:  IS USED FOR EARTH ORIGIN SCALE
058874,000045:                                                                                                  #                                                M:  IS USED FOR MOON  ORIGIN SCALE
058875,000046: 
058876,000047:                                                                                                  # TFFSW          =       119D            BIT1    0 = CALCTFF             1 = CALCTPER
058877,000048: 23,3772                        TFFDELQ            =        10D                                   #        Q2-Q1                   E: (-16)  M: (-15)
058878,000049: 23,3772                        RMAG1              =        12D                                   #        ABVAL(RN)  M            E: (-29)  M: (-27)
058879,000050:                                                                                                  # RPER           =       14D             PERIGEE RADIUS  M       E: (-29)  M: (-27)
058880,000051: 23,3772                        TFFQ1              =        14D                                   #        R.V / SQRT(MUE)         E: (-16)  M: (-15)
058881,000052:                                                                                                  # SDELF/2                                SIN(THETA) /2
058882,000053: 23,3772                        CDELF/2            =        14D                                   #        COS(THETA) /2
058883,000054:                                                                                                  # RAPO           =       16D             APOGEE RADIUS  M        E: (-29)  M: (-27)
058884,000055: 23,3772                        NRTERM             =        16D                                   #        TERMINAL RADIUS  M      E: (-29+NR)
058885,000056:                                                                                                  #                                          M: (-27+NR)
058886,000057: 23,3772                        RTERM              =        18D                                   #        TERMINAL RADIUS  M      E: (-29)  M: (-27)
058887,000058: 23,3772                        TFFVSQ             =        20D                                   #        -(V SQUARED/MU)  1/M    E: (20)   M: (18)
058888,000059: 23,3772                        TFF1/ALF           =        22D                                   #        SEMI MAJ AXIS  M        E: (-22-2 NA)
058889,000060:                                                                                                  #                                          M: (-20-2 NA)
058890,000061: 23,3772                        TFFRTALF           =        24D                                   #        SQRT(ALFA)              E:(10+NA) M: (9+NA)
058891,000062: 23,3772                        TFFALFA            =        26D                                   #        ALFA  1/M               E:(26-NR) M: (24-NR)
058892,000063: 23,3772                        TFFNP              =        28D                                   #        SEMI LATUS RECTUM  M    E: (-38+2 NR)
058893,000064:                                                                                                  #                                          M: (-36+2 NR)
058894,000065: 23,3772                        TFF/RTMU           =        30D                                   #        1/SQRT(MU)              E: (17)   M: (14)
058895,000066: 23,3772                        NRMAG              =        32D                                   #        PRESENT RADIUS  M       E: (-29+NR)
058896,000067:                                                                                                  #                                          M: (-27+NR)
058897,000068: 23,3772                        TFFX               =        34D                                   
058898,000069: 23,3772                        TFFTEM             =        36D                                   #        TEMPORARY

Page 1374

058900,000071:                                                                                                  #                REGISTERS S1, S2 ARE UNTOUCHED BY ANY TFF SUBROUTINE
058901,000072:                                                                                                  #                INDEX REGISTERS X1, X2 ARE USED BY ALL TFF SUBROUTINES.  THEY ARE ESTAB-
058902,000073:                                                                                                  #                LISHED IN TFF/CONIC AND MUST BE PRESERVED BETWEEN CALLS TO SUBSEQUENT
058903,000074:                                                                                                  #                SUBROUTINES.
058904,000075:                                                                                                  #                -NR                             C(X1) = NORM COUNT OF RMAG
058905,000076:                                                                                                  #                -NA                             C(X2) = NORM COUNT OF SQRT(ABS(ALFA))
058906,000077: 

Page 1375

058908,000079:                                                                                                  #  SUBROUTINE NAME:  TFFCONIC                    DATE:  01.29.67
058909,000080:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
058910,000081:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
058911,000082:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
058912,000083:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD MOON MU.
058913,000084:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
058914,000085: 
058915,000086:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS SUBROUTINE IS CALLED TO COMPUTE THOSE CONIC PARAMETERS REQUIRED BY THE TFF
058916,000087:                                                                                                  #        SUBROUTINES AND TO ESTABLISH THEM IN THE PUSH LIST AREA.  THE PARAMETERS ARE LISTED UNDER OUTPUT.
058917,000088:                                                                                                  #        THE EQUATIONS ARE
058918,000089:                                                                                                  #                -   -  -
058919,000090:                                                                                                  #                H = RN*VN                       ANGULAR MOMENTUM
058920,000091:                                                                                                  #                      - -
058921,000092:                                                                                                  #                LCP = H.H / MU                  SEMI LATUS RECTUM
058922,000093:                                                                                                  #                              -  -
058923,000094:                                                                                                  #                ALFA = 2/RN - VN.VN / MU        RECIPROCAL SEMI MAJ AXIS, SIGNED
058924,000095: 
058925,000096:                                                                                                  #        AND ALFA IS POS FOR ELLIPTIC ORBITS
058926,000097:                                                                                                  #                      0 FOR PARABOLIC ORBITS
058927,000098:                                                                                                  #                    NEG FOR HYPERBOLIC ORBITS.
058928,000099:                                                                                                  #        SUBROUTINE ALSO COMPUTES AND SAVES RMAG.
058929,000100: 
058930,000101:                                                                                                  #  CALLING SEQUENCE:
058931,000102:                                                                                                  #        TFFCONIC EXPECTS CALLER TO ENTER WITH CORRECT GRAVITATIONAL CONSTANT IN MPAC, IN THE FORM
058932,000103:                                                                                                  #        1/SQRT(MU).  PROGRAM WILL SAVE IN TFF/RTMU.  THE SCALE IS DETERMINED BY WHETHER EARTH OR MOON
058933,000104:                                                                                                  #        ORIGIN IS USED.  THE CALLER MUST LOCK OUT THE EXTENDED VERBS BEFORE PROVIDING STATE VECTOR IN RONE,
058934,000105:                                                                                                  #        VONE AT PROPER SCALE.  THE EXTENDED VERBS MUST BE RESTORED WHEN THE CALLER IS FINISHED USING THE
058935,000106:                                                                                                  #        TFF ROUTINES.
058936,000107: 
058937,000108:                                                                                                  #        ENTRY POINT TFFCONMU EXPECTS THAT TFF/RTMU IS ALREADY LOADED.
058938,000109: 
058939,000110:                                                                                                  #        TO SPECIFY MU:  DLOAD   CALL            IF MU ALREADY STORED:           CALL
058940,000111:                                                                                                  #                                YOURMU          1/RTMU E:(17) M:(14)                    TFFCONMU
058941,000112:                                                                                                  #                                TFFCONIC
058942,000113:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 18D
058943,000114: 
058944,000115:                                                                                                  #  SUBROUTINES CALLED:  NONE
058945,000116: 
058946,000117:                                                                                                  #  NORMAL EXIT MODES:  RVQ
058947,000118: 
058948,000119:                                                                                                  #  ALARMS:  NONE
058949,000120: 
058950,000121:                                                                                                  #  OUTPUT:       THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
058951,000122:                                                                                                  #                RMAG1           E:(-29) M:(-27)         M  RN, PRESENT RADIUS LENGTH.
058952,000123:                                                                                                  #                NRMAG           E:(-29+NR)              M  RMAG, NORMALIZED
058953,000124:                                                                                                  #                                M:(-27+NR)
058954,000125:                                                                                                  #                X1                                      -NR, NORM COUNT
058955,000126:                                                                                                  #                TFFNP           E:(-38+2NR)             M  LCP, SEMI LATUS RECTUM, WEIGHTED BY NR.  FOR VGAMCALC
058956,000127:                                                                                                  #                                M:(-36+2NR)
058957,000128:                                                                                                  #                TFF/RTMU        E:(17) M:(14)           1/SQRT(MU)
058958,000129:                                                                                                  #                TFFVSQ          E:(20) M:(18)           1/M  -(V SQ/MU):  PRESENT VELOCITY, NORMLIZED.  FOR VGAMCALC
058959,000130:                                                                                                  #                TFFALFA         E:(26-NR)               1/M  ALFA, WEIGHTED BY NR
058960,000131:                                                                                                  #                                M:(24-NR)
058961,000132:                                                                                                  #                TFFRTALF        E:(10+NA)               SQRT(ALFA), NORMALIZED
058962,000133:                                                                                                  #                                M:(9+NA)

Page 1376

058964,000135:                                                                                                  #                X2                                      -NA, NORM COUNT
058965,000136:                                                                                                  #                TFF1/ALF        E:(-22-2NA)             SIGNED SEMI MAJ AXIS, WEIGHTED BY NA
058966,000137:                                                                                                  #                                M:(-20-2NA)
058967,000138:                                                                                                  #                PUSHLOC AT PDL+0
058968,000139: 
058969,000140:                                                                                                  #        THE FOLLOWING IS STORED IN GENERAL ERASABLE
058970,000141:                                                                                                  #                VONE'           E:(10) M:(9)            V/RT(MU), NORMALIZED VELOCITY
058971,000142: 
058972,000143:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
058973,000144:                                                                                                  #                RONE            E:(-29) M:(-27)         M  STATE VECTOR         LEFT BY CALLER
058974,000145:                                                                                                  #                VONE            E:(-7) M:(-5)           M/CS  STATE VECTOR      LEFT BY CALLER
058975,000146:                                                                                                  #                TFF/RTMU        E:(17) M:(14)           1/RT(CS SQ/M CUBE)      IF ENTER VIA TFFCONMU.
058976,000147: 
058977,000148:                                                                                                  #  DEBRIS:       QPRET,  PDL+0 ... PDL+3
058978,000149: 
058979,000150: 33,3776                                           BANK     33                                    
058980,000151: 27,2000                                           SETLOC   TOF-FF                                
058981,000152: 27,2000                                           BANK                                           
058982,000153: 
058983,000154: 27,2757                                           COUNT*   $$/TFF                                
058984,000155: 
058985,000156: 27,2757           00037        TFFCONIC           STORE    TFF/RTMU                              #  1/SQRT(MU)    E:(17) M:(14)
058986,000157: 
058987,000158: 27,2760           53575        TFFCONMU           VLOAD    UNIT                                  #  COME HERE WITH TFFRTMU LOADED.
058988,000159: 27,2761           02327                                    RONE                                  #  SAVED RN.  M  E:(-29) M:(-27)
058989,000160: 27,2762           77725                           PDDL                                           #  UR/2 TO PDL+0, +5
058990,000161: 27,2763           00045                                    36D                                   #  MAGNITUDE
058991,000162: 27,2764           00015                           STORE    RMAG1                                 #  M  E:(-29) M:(-27)
058992,000163: 
058993,000164: 27,2765           77701                           NORM                                           
058994,000165: 27,2766           00047                                    X1                                    #  -NR
058995,000166: 27,2767           24041                           STOVL    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
058996,000167: 27,2770           02335                                    VONE                                  #  SAVED VN.  M/CS  E:(-7) M:(-5)
058997,000168: 27,2771           77761                           VXSC                                           
058998,000169: 27,2772           00037                                    TFF/RTMU                              #  E:(17) M:(14)
058999,000170: 27,2773           02372                           STORE    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
059000,000171: 
059001,000172: 27,2774           47361                           VXSC     VXV                                   
059002,000173: 27,2775           00041                                    NRMAG                                 #  E:(-29+NR) M:(-27+NR)
059003,000174:                                                                                                  #  UR/2 FROM PDL
059004,000175: 27,2776           47572                           VSL1     VSQ                                   #  BEFORE:  E:(-19+NR) M:(-18+NR)
059005,000176: 27,2777           14035                           STODL    TFFNP                                 #  LC P  M  E:(-38+2NR) M:(-36+2NR)
059006,000177:                                                                                                  #  SAVE ALSO FOR VGAMCALC
059007,000178: 27,3000           15325                                    TFF1/4                                
059008,000179: 27,3001           63271                           DDV      PDVL                                  #  (2/RMAG)  1/M  E:(26-NR) M:(24-NR)
059009,000180: 27,3002           00041                                    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
059010,000181: 27,3003           02372                                    VONE'                                 #  SAVED VN.  E:(10) M:(9)
059011,000182: 27,3004           57436                           VSQ      DCOMP                                 #  KEEP MPAC+2 HONEST FOR SQRT.
059012,000183: 27,3005           00025                           STORE    TFFVSQ                                #  -(V SQ/MU)  E:(20) M:(18)
059013,000184:                                                                                                  #  SAVE FOR VGAMCALC
059014,000185: 27,3006           43257                           SR*      DAD                                   

Page 1377

059016,000187: 27,3007           20573                                    0          -6,1                       #  GET -VSQ/MU  E:(26-NR) M:(24-NR)
059017,000188: 27,3010           77626                           STADR                                          
059018,000189:                                                                                                  #  2/RMAG  FROM PDL+2
059019,000190: 27,3011           77744                           STORE    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
059020,000191: 27,3012           41457                           SL*      PUSH                                  #  TEMP SAVE ALFA  E:(20) M:(18)
059021,000192: 27,3013           20173                                    0          -6,1                       
059022,000193: 27,3014           75446                           ABS      SQRT                                  #  E:(10) M:(9)
059023,000194: 27,3015           77701                           NORM                                           
059024,000195: 27,3016           00050                                    X2                                    #  X2 = -NA
059025,000196: 27,3017           00031                           STORE    TFFRTALF                              #  SQRT( ABS(ALFA) )  E:(10+NA) M:(9+NA)
059026,000197: 27,3020           75316                           DSQ      SIGN                                  #  NOT SO ACCURATE, BUT OK
059027,000198:                                                                                                  #  ALFA FROM PDL+2  E:(20) M:(18)
059028,000199: 27,3021           55254                           BZE      BDDV                                  #  SET 1/ALFA =0, TO SHOW SMALL ALFA
059029,000200: 27,3022           57024                                    +2                                    
059030,000201: 27,3023           15325                                    TFF1/4                                
059031,000202: 27,3024           00027                 +2        STORE    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
059032,000203: 27,3025           77616        DUMPCNIC           RVQ                                            
059033,000204:                                                                                                  #                        39 W

Page 1378

059035,000206:                                                                                                  #  SUBROUTINE NAME:  TFFRP/RA                    DATE: 01.17.67
059036,000207:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
059037,000208:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
059038,000209:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
059039,000210:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
059040,000211:                                                                                                  #                                                                        ALSO IMPROVE ACCURACY OF RAPO.
059041,000212: 
059042,000213:                                                                                                  #  FUNCTIONAL DESCRIPTION:  USED BY CALCTPER AND TFF DISPLAYS TO CALCULATE PERIGEE RADIUS AND ALSO
059043,000214:                                                                                                  #        APOGEE RADIUS FOR A GENERAL CONIC.
059044,000215:                                                                                                  #        PROGRAM GIVES PERIGEE RADIUS AS         APOGEE RADIUS IS GIVEN BY
059045,000216:                                                                                                  #                RP = P/(1+E)                            RA = (1+E) / ALFA
059046,000217:                                                                                                  #        WHERE    2
059047,000218:                                                                                                  #                E  = 1 - P ALFA
059048,000219:                                                                                                  #        IF RA IS NEGATIVE OR SHOWS DIVIDE OVERFLOW, THEN RA = POSMAX BECAUSE
059049,000220:                                                                                                  #                1. APOGEE RADIUS IS NOT MEANINGFUL FOR HYPERBOLA
059050,000221:                                                                                                  #                2. APOGEE RADIUS IS NOT DEFINED FOR PARABOLA
059051,000222:                                                                                                  #                3. APOGEE RADIUS EXCEEDS THE SCALING FOR ELLIPSE.
059052,000223: 
059053,000224:                                                                                                  #        THIS SUBROUTINE REQUIRES THE SIGNED RECIPROCAL SEMI MAJ AXIS, ALFA, AND SEMI LATUS RECTUM AS DATA.
059054,000225: 
059055,000226:                                                                                                  #  CALLING SEQUENCE:     CALL
059056,000227:                                                                                                  #                                TFFRP/RA
059057,000228:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 10D
059058,000229:                                                                                                  #        C(MPAC) UNSPECIFIED
059059,000230: 
059060,000231:                                                                                                  #  SUBROUTINES CALLED:   NONE
059061,000232: 
059062,000233:                                                                                                  #  NORMAL EXIT MODE:     RVQ
059063,000234:                                                                                                  #        IF ELLIPSE, WITHIN NORMAL SCALING, RAPO IS CORRECT.
059064,000235:                                                                                                  #        OTHERWISE, RAPO = POSMAX.
059065,000236: 
059066,000237:                                                                                                  #  ALARMS:       NONE
059067,000238: 
059068,000239:                                                                                                  #  OUTPUT:       STORED IN PUSH LIST AREA.  SCALE OF OUTPUT AGREES WITH DATA SUPPLIED TO TFF/CONIC.
059069,000240:                                                                                                  #        RPER    E:(-29) M:(-27)         M       PERIGEE RADIUS          DESTROYED BY CALCTFF/CALCTPER, TFFTRIG.
059070,000241:                                                                                                  #        RAPO    E:(-29) M:(-27)         M       APOGEE RADIUS           WILL BE DESTROYED BY CALCTFF/CALCTPER
059071,000242:                                                                                                  #        PUSHLOC AT PDL+0
059072,000243: 
059073,000244:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
059074,000245:                                                                                                  #        TFFALFA E:(26-NR)               M       1/SEMI MAJ AXIS LEFT BY TFFCONIC
059075,000246:                                                                                                  #                M:(24-NR)
059076,000247:                                                                                                  #        TFFNP   E:(-38+2NR)             M       LC P, SEMI LATUS RECTUM LEFT BY TFFCONIC
059077,000248:                                                                                                  #                M:(-36+2NR)
059078,000249:                                                                                                  #        X1                              -NR, NORM COUNT OF RMAG         LEFT BY TFFCONIC
059079,000250:                                                                                                  #        X2                              -NA, NORM COUNT OF ALFA         LEFT BY TFFCONIC
059080,000251: 
059081,000252:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+1
059082,000253: 

Page 1379

059084,000255: 27,3026                        RAPO               =        16D                                   #  APOGEE RADIUS  M  E:(-29) M:(-27)
059085,000256: 27,3026                        RPER               =        14D                                   #  PERIGEE RADIUS  M  E:(-29) M:(-27)
059086,000257: 
059087,000258: 27,3026           41345        TFFRP/RA           DLOAD    DMP                                   
059088,000259: 27,3027           00033                                    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
059089,000260: 27,3030           00035                                    TFFNP                                 #  LC P  M E:(-38+2NR) M:(-36+2NR)
059090,000261: 27,3031           57457                           SR*      DCOMP                                 #  ALFA P (-12+NR)
059091,000262: 27,3032           20571                                    0          -8D,1                      #  ALFA P (-4)
059092,000263: 27,3033           51415                           DAD      ABS                                   #  (DCOMP GIVES VALID TP RESULT FOR SQRT)
059093,000264:                                                                                                  #  (ABS PROTECTS SQRT IF E IS VERY NEAR 0)
059094,000265: 27,3034           17366                                    DP2(-4)                               
059095,000266: 27,3035           43366                           SQRT     DAD                                   #  E SQ = (1- P ALFA) (-4)
059096,000267: 27,3036           15325                                    TFF1/4                                
059097,000268: 27,3037           55206                           PUSH     BDDV                                  #  (1+E)  (-2)  TO PDL+0
059098,000269: 27,3040           00035                                    TFFNP                                 #  LCP  M  E:(-38+2NR) M:(-36+2NR)
059099,000270: 27,3041           53657                           SR*      SR*                                   #  (DOES SR THEN SL TO AVOID OVFL)
059100,000271: 27,3042           20601                                    0,1                                   #  X1=-NR
059101,000272: 27,3043           20572                                    0          -7,1                       #  (EFFECTIVE SL)
059102,000273: 27,3044           14017                           STODL    RPER                                  #  PERIGEE RADIUS  M  E:(-29) M:(-27)
059103,000274:                                                                                                  #  (1+E)  (-2)  FROM PDL+0
059104,000275: 27,3045           41005                           DMP      BOVB                                  
059105,000276: 27,3046           00027                                    TFF1/ALF                              #  E:(-22-2NA) M:(-20-2NA)
059106,000277: 27,3047           57352                                    TCDANZIG                              #  CLEAR OVFIND, IF ON.
059107,000278: 27,3050           53654                           BZE      SL*                                   
059108,000279: 27,3051           57060                                    MAXRA                                 #  SET POSMAX, IF ALFA=0
059109,000280: 27,3052           57603                                    0          -5,2                       #  -5+NA
059110,000281: 27,3053           40057                           SL*      BOV                                   
059111,000282: 27,3054           57576                                    0,2                                   
059112,000283: 27,3055           57060                                    MAXRA                                 #  SET POSMAX IF OVFL.
059113,000284: 27,3056           77644                           BPL                                            #  CONTINUE WITH VALID RAPO.
059114,000285: 27,3057           57062                                    +3                                    
059115,000286: 27,3060           77745        MAXRA              DLOAD                                          #  RAPO CALC IS NOT VALID.  SET RAPO =
059116,000287: 27,3061           17372                                    NEARONE                               #  POSMAX AS A TAG.
059117,000288: 27,3062           00021                 +3        STORE    RAPO                                  #  APOGEE RADIUS  M  E:(-29) M:(-27)
059118,000289: 27,3063           77616        DUMPRPRA           RVQ                                            
059119,000290:                                                                                                  #                        30 W

Page 1380

059121,000292:                                                                                                  #  SUBROUTINE NAME:  CALCTPER / CALCTFF          DATE:  01.29.67
059122,000293:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
059123,000294:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
059124,000295:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 67
059125,000296:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 14 APR 67
059126,000297:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 8 JUL 67          NEAR EARTH MUE AND NEG TFF (GONEPAST)
059127,000298:                                                                                                  #  MOD NO:  4    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD VARIABLE MU.
059128,000299:                                                                                                  #  MOD NO:  5    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
059129,000300: 
059130,000301:                                                                                                  #  FUNCTIONAL DESCRIPTION:  PROGRAM CALCULATES THE FREE-FALL TIME OF FLIGHT FROM PRESENT POSITION RN AND
059131,000302:                                                                                                  #        VELOCITY VN TO A RADIUS LENGTH SPECIFIED BY RTERM, SUPPLIED BY THE USER.  THE POSITION VECTOR
059132,000303:                                                                                                  #        RN MAY BE ON EITHER SIDE OF THE CONIC, BUT RTERM IS CONSIDERED ON THE INBOUND SIDE.
059133,000304:                                                                                                  #        THE EQUATIONS ARE
059134,000305: 
059135,000306:                                                                                                  #                Q2 = -SQRT(RTERM (2-RTERM ALFA) - LCP)  (INBOUND SIDE)) LEQ +- LCE/SQRT(ALFA)
059136,000307:                                                                                                  #                     -  -
059137,000308:                                                                                                  #                Q1 = RN.VN / SQRT(MU)                                   LEQ +- LCE/SQRT(ALFA)
059138,000309: 
059139,000310:                                                                                                  #                Z = NUM / DEN                                           LEQ +- 1/SQRT(ALFA)
059140,000311: 
059141,000312:                                                                                                  #        WHERE, IF INBOUND
059142,000313:                                                                                                  #                NUM = RTERM -RN                                         LEQ +- 2 LCE/ALFA
059143,000314:                                                                                                  #                DEN = Q2+Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
059144,000315: 
059145,000316:                                                                                                  #        AND, IF OUTBOUND
059146,000317:                                                                                                  #                NUM = Q2-Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
059147,000318:                                                                                                  #                DEN = 2 - ALFA (RTERM + RN).                            LEQ +- 2 LCE
059148,000319: 
059149,000320:                                                                                                  #        IF      ALFA ZZ < 1.0           (FOR ALL CONICS EXCEPT ELLIPSES HAVING ABS(DEL ECC ANOM) G 90 DEG)
059150,000321:                                                                                                  #        THEN    X = ALFA Z Z
059151,000322:                                                                                                  #        AND     TFF = (RTERM +RN -2 ZZ T(X) ) Z/SQRT(MU)
059152,000323:                                                                                                  #                EXCEPT  IF ALFA PNZ, AND IF TFF NEG,
059153,000324:                                                                                                  #                THEN    TFF = 2 PI /(ALFA SQRT(ALFA)) + TFF
059154,000325:                                                                                                  #        OR      IF ALFA ZZ GEQ 1.0      (FOR ELLIPSES HAVING ABS(DEL ECC ANOM) GEQ 90 DEG)
059155,000326:                                                                                                  #        THEN    X = 1/ALFA Z Z
059156,000327:                                                                                                  #        AND     TFF = (PI/SQRT(ALFA) -Q2 +Q1 +2(X T(X) -1) /ALFA Z) /ALFA SQRT(MU)
059157,000328:                                                                                                  #        WHERE   T(X) IS A POLYNOMIAL APPROXIMATION TO THE SERIES
059158,000329:                                                                                                  #                             2      3             2
059159,000330:                                                                                                  #                1/3 - X/5 + X /7 - X /9 ...     (X  < 1.0)
059160,000331: 
059161,000332:                                                                                                  #  CALLING SEQUENCE:     TIME TO RTERM                   TIME TO PERIGEE
059162,000333:                                                                                                  #                        CALL                            CALL
059163,000334:                                                                                                  #                                CALCTFF                         CALCTPER
059164,000335:                                                                                                  #                        C(MPAC) = TERMNL RAD M          C(MPAC) = PERIGEE RAD M
059165,000336:                                                                                                  #        FOR EITHER, E:(-29) M:(-27)
059166,000337:                                                                                                  #        FOR EITHER, PUSHLOC = PDL+0, ARBITRARY IF LEQ 8D.

Page 1381

059168,000339: 
059169,000340:                                                                                                  #  SUBROUTINES CALLED:   T(X), VIA RTB
059170,000341: 
059171,000342:                                                                                                  #  NORMAL EXIT MODE:     RVQ
059172,000343:                                                                                                  #        HOWEVER, PROGRAM EXITS WITH ONE OF THE FOLLOWING VALUES FOR TFF (-28) CS IN MPAC.  USER MUST STORE.
059173,000344:                                                                                                  #                A. TFF = FLIGHT TIME.  NORMAL CASE FOR POSITIVE FLIGHT TIME LESS THAN ONE ORBITAL PERIOD.
059174,000345:                                                                                                  #                B. (THIS OPTION IS NO LONGER USED.)
059175,000346:                                                                                                  #                C. TFF = POSMAX.  THIS INDICATES THAT THE CONIC FROM THE PRESENT POSITION WILL NOT RETURN TO
059176,000347:                                                                                                  #                   THE SPECIFIED ALTITUDE.  ALSO INDICATES OUTBOUND PARABOLA OR HYPERBOLA.
059177,000348: 
059178,000349:                                                                                                  #  OUTPUT:       C(MPAC)         (-28) CS        TIME OF FLIGHT, OR TIME TO PERIGEE
059179,000350:                                                                                                  #                TFFX            (0)             X,                                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
059180,000351:                                                                                                  #                NRTERM          E:(-29+NR) M    RTERM, WEIGHTED BY NR                   LEFT FOR ENTRY DISPLAY TFF ROUTINES
059181,000352:                                                                                                  #                                M:(-27+NR)
059182,000353:                                                                                                  #                TFFTEM          E:(-59+2NR)     LCP Z Z SGN(SDELF)                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
059183,000354:                                                                                                  #                                M:(-55+2NR)     LCP /ALFA SGN(SDELF)                    LEFT FOR ENTRY DISPLAY TFF ROUTINES
059184,000355:                                                                                                  #                NOTE:   TFFTEM = PDL 36D AND WILL BE DESTROYED BY .:UNIT:.
059185,000356:                                                                                                  #                RMAG1           E:(-29) M:(-27) PDL 12 NOT TOUCHED.
059186,000357:                                                                                                  #                TFFQ1           E:(-16) M:(-15) PDL 14D
059187,000358:                                                                                                  #                TFFDELQ         E:(-16) M:(-15) PDL 10D
059188,000359:                                                                                                  #                PUSHLOC AT PDL+0
059189,000360: 
059190,000361:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
059191,000362:                                                                                                  #                RONE            E:(-29) M:(-27) M  STATE VECTOR                         LEFT BY USER
059192,000363:                                                                                                  #                VONE'           E:(+10) M:(+9)  VN/SQRT(MU)                             LEFT BY TFF/CONIC
059193,000364:                                                                                                  #                RMAG1           E:(-29) M:(-27) PRESENT RADIUS, M                       LEFT BY TFFCONIC
059194,000365:                                                                                                  #                C(MPAC)         E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH, M        LEFT BY USER
059195,000366: 
059196,000367:                                                                                                  #                THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
059197,000368:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/SQRT(MU)                              LEFT BY TFFCONIC.
059198,000369:                                                                                                  #                NRMAG           E:(-29+NR)      M  RMAG, NORMALIZED                     LEFT BY TFFCONIC
059199,000370:                                                                                                  #                                M:(-27+NR)
059200,000371:                                                                                                  #                X1                              -NR, NORM COUNT                         LEFT BY TFFCONIC
059201,000372:                                                                                                  #                TFFNP           E:(-38+2NR)     M  LCP, SEMI LATUS RECTUM, WEIGHT NR    LEFT BY TFFCONIC
059202,000373:                                                                                                  #                                M:(-36+2NR)
059203,000374:                                                                                                  #                TFFALFA         E:(26-NR)       1/M  ALFA, WEIGHT NR                    LEFT BY TFFCONIC
059204,000375:                                                                                                  #                                M:(24-NR)
059205,000376:                                                                                                  #                TFFRTALF        E:(10+NA)       SQRT(ALFA), NORMALIZED                  LEFT BY TFFCONIC
059206,000377:                                                                                                  #                                M:(9+NA)
059207,000378:                                                                                                  #                X2                              -NA, NORM COUNT                         LEFT BY TFFCONIC
059208,000379:                                                                                                  #                TFF1/ALF        E:(-22-2NA)     SIGNED SEMIMAJ AXIS, WEIGHTED BY NA     LEFT BY TFFCONIC
059209,000380:                                                                                                  #                                M:(-20-2NA)
059210,000381: 
059211,000382:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+3
059212,000383:                                                                                                  #                RTERM           E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH
059213,000384:                                                                                                  #                RAPO            E:(-29) M:(-27) PDL 16D (=NRTERM)
059214,000385:                                                                                                  #                RPER            E:(-29) M:(-27) PDL 14D (=TFFQ1)
059215,000386: 

Page 1382

059217,000388: 27,3064           77614        CALCTPER           SETGO                                          #  ENTER WITH RPER IN MPAC
059218,000389: 27,3065           03436                                    TFFSW                                 
059219,000390: 27,3066           57071                                    +3                                    
059220,000391: 27,3067           77614        CALCTFF            CLEAR                                          #  ENTER WITH RTERM IN MPAC
059221,000392: 27,3070           03676                                    TFFSW                                 
059222,000393: 27,3071           00023                 +3        STORE    RTERM                                 #  E:(-29) M:(-27)
059223,000394: 27,3072           77657                           SL*                                            
059224,000395: 27,3073           20201                                    0,1                                   #  X1=-NR
059225,000396: 27,3074           00021                           STORE    NRTERM                                #  RTERM  E:(-29+NR) M:(-27+NR)
059226,000397: 27,3075           44205                           DMP      BDSU                                  
059227,000398: 27,3076           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
059228,000399: 27,3077           15325                                    TFF1/4                                
059229,000400: 27,3100           41206                           PUSH     DMP                                   #  (2-ALFA RTERM)  (-3)  TO PDL+0
059230,000401: 27,3101           00021                                    NRTERM                                #  E:(-29+NR) M:(-27+NR)
059231,000402: 27,3102           53725                           PDDL     SR*                                   #  RTERM(2-ALFA RTERM) TO PDL+2
059232,000403:                                                                                                  #  E:(-32+NR) M:(-30+NR)
059233,000404: 27,3103           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
059234,000405: 27,3104           20573                                    0          -6,1                       #  X1 = -NR
059235,000406: 27,3105           43276                           DCOMP    DAD                                   #  DUE TO SHIFTS, KEEP PRECISION FOR SQRT
059236,000407:                                                                                                  #  RTERM(2-ALFA RTERM) FROM PDL +2
059237,000408:                                                                                                  #  E:(-32+NR) M:(-30+NR)
059238,000409: 27,3106           77657                           SR*                                            #  LEAVE  E:(-32) M:(-30)
059239,000410: 27,3107           20601                                    0,1                                   #  X1 = -NR
059240,000411: 27,3110           71214                           BOFF     DLOAD                                 #  CHECK TFF /TPER SWITCH
059241,000412: 27,3111           03756                                    TFFSW                                 
059242,000413: 27,3112           57114                                    +2                                    #  IF TFF, CONTINUE
059243,000414: 27,3113           15335                                    TFFZEROS                              #  IF TPER, SET Q2 = 0
059244,000415: 27,3114           75440                 +2        BMN      SQRT                                  #  E:(-16) M:(-15)
059245,000416: 27,3115           57247                                    MAXTFF1                               #  NO FREE FALL CONIC TO RTERM FROM HERE
059246,000417:                                                                                                  #  RESET PDL, SET TFF=POSMAX, AND EXIT.
059247,000418: 
059248,000419: 27,3116           41076                           DCOMP    BOVB                                  #  RT IS ON INBOUND SIDE.  ASSURE OVFIND=0
059249,000420: 27,3117           57352                                    TCDANZIG                              #  ANY PORT IN A STORM.
059250,000421: 27,3120           24045                           STOVL    TFFTEM                                #  Q2  E:(-16) M:(-15)
059251,000422: 27,3121           02372                                    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
059252,000423: 27,3122           52441                           DOT      SL3                                   
059253,000424: 27,3123           02327                                    RONE                                  #  SAVED RN.  E:(-29) M:(-27)
059254,000425: 27,3124           00017                           STORE    TFFQ1                                 #  Q1, SAVE FOR GONEPAST TEST.
059255,000426:                                                                                                  #  E:(-16) M:(-15)
059256,000427: 27,3125           44240                           BMN      BDSU                                  
059257,000428: 27,3126           57147                                    INBOUND                               #  USE ALTERNATE Z
059258,000429: 27,3127           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
059259,000430: 
059260,000431:                                                                                                  #  OUTBOUND Z CALC CONTINUES HERE
059261,000432: 
059262,000433: 27,3130           14043                           STODL    TFFX                                  #  NUM=Q2-Q1  E:(-16) M:(-15)
059263,000434: 27,3131           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
059264,000435: 27,3132           44205                           DMP      BDSU                                  

Page 1383

059266,000437: 27,3133           00041                                    NRMAG                                 #  RMAG  E:(-29+NR) M:(-27+NR)
059267,000438:                                                                                                  #  (2-RTERM ALFA)  (-3) FROM PDL+0
059268,000439: 27,3134           51406        SAVEDEN            PUSH     ABS                                   #  DEN TO PDL+0  E:(-3) OR (-16)
059269,000440:                                                                                                  #                M:(-3) OR (-15)
059270,000441: 27,3135           40015                           DAD      BOV                                   #  INDETERMINANCY TEST
059271,000442: 27,3136           17360                                    LIM(-22)                              #  =1.0-B(-22)
059272,000443: 27,3137           57160                                    TFFXTEST                              #  GO IF DEN >/= B(-22)
059273,000444: 27,3140           65345                           DLOAD    PDDL                                  #  SET DEN=0 OTHERWISE
059274,000445: 27,3141           15335                                    TFFZEROS                              
059275,000446:                                                                                                  #  XCH ZERO WITH PDL+0
059276,000447: 27,3142           57545                           DLOAD    DCOMP                                 
059277,000448: 27,3143           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
059278,000449: 27,3144           71240                           BMN      DLOAD                                 #  FOR TPER:  Z INDET AT DELE/2=0 AND 90.
059279,000450: 27,3145           57254                                    TFFEL1                                #  ASSUME 90, AND LEAVE 0 IN PDL: 1/Z=D/N
059280,000451: 
059281,000452:                                                                                                  #  Z INDET. AT PERIGEE FOR PARAB OR HYPERB.
059282,000453: 27,3146           77616        DUMPTFF1           RVQ                                            #  RETURN TFF =0
059283,000454: 
059284,000455:                                                                                                  #  INBOUND Z CALC CONTINUES HERE
059285,000456: 
059286,000457: 27,3147           77745        INBOUND            DLOAD                                          #  RESET PDL+0
059287,000458: 27,3150           45345                           DLOAD    DSU                                   #  ALTERNATE Z CALC
059288,000459: 27,3151           00023                                    RTERM                                 #  E:(-29) M:(-27)
059289,000460: 27,3152           00015                                    RMAG1                                 #  E:(-29) M:(-27)
059290,000461: 27,3153           14043                           STODL    TFFX                                  #  NUM=RTERM-RN  E:(-29) M:(-27)
059291,000462: 27,3154           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
059292,000463: 27,3155           52015                           DAD      GOTO                                  
059293,000464: 27,3156           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
059294,000465: 27,3157           57134                                    SAVEDEN                               #  DEN = Q2+Q1  E:(-16) M:(-15)
059295,000466: 
059296,000467: 27,3160           65215        TFFXTEST           DAD      PDDL                                  #  (ABS(DEN) TO PDL+2))  E:(-3) OR (-16)
059297,000468:                                                                                                  #                        M:(-3) OR (-15)
059298,000469: 27,3161           17362                                    DP(-22)                               #  RESTORE ABS(DEN) TO MPAC
059299,000470: 27,3162           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
059300,000471: 27,3163           53605                           DMP      SR*                                   
059301,000472: 27,3164           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
059302,000473: 27,3165           57201                                    0          -3,2                       #  X2=-NA
059303,000474: 27,3166           77671                           DDV                                            #  C(MPAC) =NUM SQRT(ALFA)       E:(-3) OR (-16)
059304,000475:                                                                                                  #                                M:(-3) OR (-15)
059305,000476:                                                                                                  #  ABS(DEN) FROM PDL+2   E:(-3) OR (-16)
059306,000477:                                                                                                  #                        M:(-3) OR (-15)
059307,000478: 27,3167           40145                           DLOAD    BOV                                   #  (THE DLOAD IS SHARED WITH TFFELL)
059308,000479: 27,3170           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
059309,000480: 27,3171           57252                                    TFFELL                                #  USE EQN FOR DELE GEQ 90, LEQ -90
059310,000481: 
059311,000482:                                                                                                  #  OTHERWISE, CONTINUE FOR GENERAL CONIC FOR TFF EQN
059312,000483: 
059313,000484: 27,3172           45471                           DDV      STADR                                 
059314,000485:                                                                                                  #  DEN FROM PDL+0        E:(-3) OR (-16)
059315,000486:                                                                                                  #                        M:(-3) OR (-15)
059316,000487: 27,3173           77732                           STORE    TFFTEM                                #  Z SAVE FOR SIGN OF SDELF.

Page 1384

059318,000489:                                                                                                  #  E:(-13) M:(-12)
059319,000490: 27,3174           63406                           PUSH     DSQ                                   #  Z TO PDL+0
059320,000491: 27,3175           41206                           PUSH     DMP                                   #  Z SQ TO PDL+2  E:(-26) M:(-24)
059321,000492: 27,3176           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
059322,000493: 27,3177           75261                           SL       SIGN                                  
059323,000494: 27,3200           20206                                    5                                     
059324,000495: 27,3201           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF (ENTRY DISPLAY)
059325,000496: 27,3202           14045                           STODL    TFFTEM                                #  P ZSQ  E:(-59+2NR) M:(-55+2NR)
059326,000497:                                                                                                  #  (ARG IS USED IN TFF/TRIG)
059327,000498:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
059328,000499: 27,3203           41206                           PUSH     DMP                                   #  RESTORE PUSH LOC
059329,000500: 27,3204           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
059330,000501: 27,3205           77657                           SL*                                            
059331,000502: 27,3206           20201                                    0,1                                   #  X1=-NR
059332,000503: 27,3207           00043                           STORE    TFFX                                  #  X
059333,000504: 27,3210           41234                           RTB      DMP                                   
059334,000505: 27,3211           57334                                    T(X)                                  #  POLY
059335,000506:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
059336,000507: 27,3212           44302                           SR2      BDSU                                  #  2 ZSQ T(X)  E:(-29) M:(-27)
059337,000508: 27,3213           00023                                    RTERM                                 #  RTERM  E:(-29) M:(-27)
059338,000509: 27,3214           41215                           DAD      DMP                                   
059339,000510: 27,3215           00015                                    RMAG1                                 #  E:(-29) M:(-27)
059340,000511:                                                                                                  #  Z FROM PDL+0  E:(-13) M:(-12)
059341,000512: 27,3216           51042                           SR3      BPL                                   #  TFF SQRT(MU)  E:(-45) M:(-42)
059342,000513: 27,3217           57240                                    ENDTFF                                #  (NO PUSH UP)
059343,000514: 27,3220           75206                           PUSH     SIGN                                  #  TFF SQRT(MU) TO PDL+0
059344,000515: 27,3221           00017                                    TFFQ1                                 #  Q1 FOR GONEPAST TEST
059345,000516: 27,3222           71244                           BPL      DLOAD                                 #  GONE PAST ?
059346,000517: 27,3223           57244                                    NEGTFF                                #  YES. TFF < 0.
059347,000518: 27,3224           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
059348,000519: 27,3225           51076                           DCOMP    BPL                                   #  ALFA > 0 ?
059349,000520: 27,3226           57244                                    NEGTFF                                #  NO. TFF IS NEGATIVE.
059350,000521: 
059351,000522:                                                                                                  #  CORRECT FOR ORBITAL PERIOD.
059352,000523: 
059353,000524: 27,3227           77676                           DCOMP                                          #  YES.  CORRECT FOR ORB PERIOD.
059354,000525: 27,3230           56205                           DMP      DDV                                   
059355,000526: 27,3231           17356                                    PI/16                                 #  2 PI (-5)
059356,000527: 27,3232           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
059357,000528: 27,3233           53657                           SL*      SL*                                   
059358,000529: 27,3234           57602                                    0          -4,2                       #  X2=-NA
059359,000530: 27,3235           57602                                    0          -4,2                       
059360,000531: 27,3236           43257                           SL*      DAD                                   
059361,000532: 27,3237           57576                                    0,2                                   
059362,000533:                                                                                                  #  TFF SQRT(MU) FROM PDL+0       E:(-45) M:(-42)
059363,000534: 27,3240           40005        ENDTFF             DMP      BOV                                   #  TFF SQRT(MU) IN MPAC          E:(-45) M:(-42)
059364,000535: 27,3241           00037                                    TFF/RTMU                              #  E:(17) M:(14)
059365,000536: 27,3242           57250                                    MAXTFF                                #  SET POSMAX IF OVFL.
059366,000537: 
059367,000538: 27,3243           77616        DUMPTFF2           RVQ                                            #  RETURN TFF (-28) CS IN MPAC.
059368,000539: 

Page 1385

059370,000541: 27,3244           77745        NEGTFF             DLOAD                                          
059371,000542:                                                                                                  #  TFF SQRT(MU) FROM PDL+0, NEGATIVE.
059372,000543: 27,3245           77650                           GOTO                                           
059373,000544: 27,3246           57240                                    ENDTFF                                
059374,000545: 
059375,000546: 27,3247           77745        MAXTFF1            DLOAD                                          #  RESET PDL
059376,000547: 27,3250           43545        MAXTFF             DLOAD    RVQ                                   
059377,000548: 27,3251           17372                                    NEARONE                               
059378,000549: 
059379,000550:                                                                                                  #  TIME OF FLIGHT ELLIPSE WHEN DEL (ECCENTRIC ANOM) GEQ 90 AND LEQ -90.
059380,000551: 
059381,000552:                                                                                                  #  NUM FROM TFFX.        E:(-16) OR (-29)
059382,000553:                                                                                                  #                        M:(-15) OR (-27)
059383,000554: 27,3252           77712        TFFELL             SL2                                            #  NUM  E:(-14) OR (-27)  M:(-13) OR (-25)
059384,000555: 27,3253           41465                           BDDV     PUSH                                  #  TEMP SAVE D/N IN PDL+0
059385,000556:                                                                                                  #  DEN FROM PDL+0  E:(-3)/( 16)  M:(-3)/(-15)
059386,000557:                                                                                                  #  N/D TO PDL+0  E:(11) M:(10)
059387,000558: 27,3254           45345        TFFEL1             DLOAD    DSU                                   #  (ENTER WITH D/N=0 IN PDL+0)
059388,000559: 27,3255           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
059389,000560: 27,3256           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
059390,000561: 27,3257           14013                           STODL    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
059391,000562:                                                                                                  #  D/N FROM PDL+0
059392,000563: 27,3260           77626                           STADR                                          
059393,000564: 27,3261           77732                           STORE    TFFTEM                                #  D/N  E:(11) M:(10)
059394,000565: 27,3262           53605                           DMP      SL*                                   
059395,000566: 27,3263           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
059396,000567: 27,3264           57576                                    0,2                                   #  1/ALFA Z  E:(-11-NA) M:(-10-NA)
059397,000568: 27,3265           41206                           PUSH     DMP                                   #  TO PDL+0
059398,000569: 27,3266           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
059399,000570: 27,3267           41057                           SL*      BOVB                                  
059400,000571: 27,3270           57576                                    0,2                                   #  X2= -NA
059401,000572: 27,3271           45712                                    SIGNMPAC                              #  IN CASE X= 1.0, CONTINUE
059402,000573: 27,3272           00043                           STORE    TFFX                                  #  X=1/ALFA ZSQ
059403,000574: 27,3273           41234                           RTB      DMP                                   
059404,000575: 27,3274           57334                                    T(X)                                  #  POLY
059405,000576: 27,3275           00043                                    TFFX                                  
059406,000577: 27,3276           45242                           SR3      DSU                                   
059407,000578: 27,3277           17364                                    DP2(-3)                               
059408,000579: 27,3300           41405                           DMP      PUSH                                  #  2(X T(X)-1) /Z ALFA   E:(-15-NA)
059409,000580:                                                                                                  #                        M:(-14-NA)
059410,000581:                                                                                                  #  1/ALFA Z FROM PDL+0   E:(-11-NA)
059411,000582:                                                                                                  #                        M:(-10-NA)
059412,000583: 27,3301           41345                           DLOAD    DMP                                   #  GET SIGN FOR SDELF
059413,000584: 27,3302           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
059414,000585: 27,3303           00015                                    RMAG1                                 #  E:(-29) M:(-27)
059415,000586: 27,3304           43312                           SL2      DAD                                   
059416,000587: 27,3305           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
059417,000588: 27,3306           14045                           STODL    TFFTEM                                #  (Q1+R 1/Z) =SGN OF SDELF  E:(-16) M:(-15
059418,000589: 27,3307           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
059419,000590: 27,3310           53605                           DMP      SL*                                   #  CALC FOR ARG FOR TFF/TRIG.

Page 1386

059421,000592: 27,3311           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
059422,000593: 27,3312           57575                                    1,2                                   #  X2=-NA
059423,000594: 27,3313           53765                           SIGN     SL*                                   
059424,000595: 27,3314           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF
059425,000596: 27,3315           57576                                    0,2                                   
059426,000597: 27,3316           14045                           STODL    TFFTEM                                #  P/ALFA  E:(-59+2NR) M:(-55+2NR)
059427,000598:                                                                                                  #  (ARG FOR USE IN TFF/TRIG)
059428,000599: 27,3317           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
059429,000600: 27,3320           41366                           SQRT     DMP                                   
059430,000601: 27,3321           17356                                    PI/16                                 #  PI (-4)
059431,000602: 27,3322           77615                           DAD                                            
059432,000603:                                                                                                  #  2(XT(X)-1)/Z ALFA FROM PDL    E:(-15-NA)
059433,000604:                                                                                                  #                                M:(-14-NA)
059434,000605: 27,3323           45257                           SL*      DSU                                   
059435,000606: 27,3324           57577                                    0          -1,2                       
059436,000607: 27,3325           00013                                    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
059437,000608: 27,3326           53605                           DMP      SL*                                   
059438,000609: 27,3327           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
059439,000610: 27,3330           57601                                    0          -3,2                       
059440,000611: 27,3331           52057                           SL*      GOTO                                  
059441,000612: 27,3332           57602                                    0          -4,2                       
059442,000613: 27,3333           57240                                    ENDTFF                                #  TFF SQRT(MU) IN MPAC E:(-45) M:(-42)
059443,000614: 

Page 1387

059445,000616:                                                                                                  #  PROGRAM NAME:  T(X)                           DATE:  01.17.67
059446,000617:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
059447,000618:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
059448,000619: 
059449,000620:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THE POLYNOMIAL T(X) IS USED BY TIME OF FLIGHT SUBROUTINES CALCTFF AND
059450,000621:                                                                                                  #        CALCTPER TO APPROXIMATE THE SERIES
059451,000622:                                                                                                  #                           2     3
059452,000623:                                                                                                  #                1/3 -X/5 +X /7 -X /9 ...
059453,000624: 
059454,000625:                                                                                                  #        WHERE   X = ALFA Z Z            IF ALFA Z Z LEQ 1
059455,000626:                                                                                                  #                X = 1/(ALFA Z Z)        IF ALFA Z Z G 1
059456,000627: 
059457,000628:                                                                                                  #        ALSO    X IS NEG FOR HYPERBOLIC ORBITS
059458,000629:                                                                                                  #                X = 0 FOR PARABOLIC ORBITS
059459,000630:                                                                                                  #                X IS POSITIVE FOR ELLIPTIC ORBITS
059460,000631: 
059461,000632:                                                                                                  #        FOR FLIGHT 278, THE POLYNOMIAL T(X) IS FITTED OVER THE RANGE (0,+1) AND HAS A MAXIMUM
059462,000633:                                                                                                  #        DEVIATION FROM THE SERIES OF 2 E-5       (T(X) IS A CHEBYCHEV TYPE FIT AND WAS OBTAINED USING
059463,000634:                                                                                                  #        MAC PROGRAM AUTCURFIT294RRB AND IS VALID TO THE SAME TOLERANCE OVER THE RANGE (-.08,+1).)
059464,000635: 
059465,000636:                                                                                                  #  CALLING SEQUENCE:     RTB
059466,000637:                                                                                                  #                                T(X)
059467,000638:                                                                                                  #        C(MPAC) = X
059468,000639: 
059469,000640:                                                                                                  #  SUBROUTINES CALLED:  NONE
059470,000641: 
059471,000642:                                                                                                  #  NORMAL EXIT MODE:  TC DANZIG
059472,000643: 
059473,000644:                                                                                                  #  ALARMS:  NONE
059474,000645: 
059475,000646:                                                                                                  #  OUTPUT:  C(MPAC) = T(X)
059476,000647: 
059477,000648:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
059478,000649:                                                                                                  #        C(MPAC) = X
059479,000650: 
059480,000651:                                                                                                  #  DEBRIS:  NONE
059481,000652: 
059482,000653: 27,3334           07171        T(X)               TC       POLY                                  
059483,000654: 27,3335           00004                           DEC      4          B-14                       #  N-1
059484,000655: 27,3336           12525 12525                     2DEC     3.333333333 E-1                        
059485,000656: 27,3340           71463 57703                     2DEC*    -1.999819135 E-1*                       
059486,000657: 27,3342           04423 17645                     2DEC*    1.418148467 E-1*                       
059487,000658: 27,3344           74604 43667                     2DEC*    -1.01310997 E-1*                       
059488,000659: 27,3346           01626 37256                     2DEC*    5.609004986 E-2*                       
059489,000660: 27,3350           77404 52071                     2DEC*    -1.536156925 E-2*                       
059490,000661: 
059491,000662: 27,3352           06030        ENDT(X)            TC       DANZIG                                
059492,000663: 
059493,000664: 27,3353  27,3352               TCDANZIG           =        ENDT(X)                               
059494,000665: 

Page 1388

059496,000667:                                                                                                  #  TFF CONSTANTS
059497,000668: 
059498,000669: 32,3770                                           BANK     32                                    
059499,000670: 
059500,000671: 27,2000                                           SETLOC   TOF-FF1                               
059501,000672: 27,2000                                           BANK                                           
059502,000673: 
059503,000674:                                                                                                  #                                                NOTE _  NOTE _ ADJUSTED MUE FOR NEAR EARTH TRAJ.
059504,000675:                                                                                                  # MUE            =       3.990815471 E10         M CUBE/CS SQ
059505,000676:                                                                                                  # RTMUE          =       1.997702549 E5 B-18*    MODIFIED EARTH MU
059506,000677: 
059507,000678: 27,3353           24775 30424  1/RTMU             2DEC*    .5005750271 E-5        B17*            #  MODIFIED EARTH MU
059508,000679: 
059509,000680:                                                                                                  #                                                NOTE _  NOTE _ ADJUSTED MUE FOR NEAR EARTH TRAJ.
059510,000681:                                                                                                  # MUM            =       4.902778 E8             M CUBE/CS SQ
059511,000682:                                                                                                  # RTMUM          2DEC*   2.21422176 E4 B-18*
059512,000683: 27,3355           06220 37553  PI/16              2DEC     3.141592653 B-4                        
059513,000684: 27,3357           37777 37700  LIM(-22)           2OCT     3777737700                            #  1.0 -B(-22)
059514,000685: 27,3361           00000 00100  DP(-22)            2OCT     0000000100                            #  B(-22)
059515,000686: 27,3363           04000 00000  DP2(-3)            2DEC     1          B-3                        
059516,000687: 27,3365           02000 00000  DP2(-4)            2DEC     1          B-4                        #  1/16
059517,000688: 
059518,000689:                                                                                                  #  RPAD1         2DEC    6373338 B-29            M (-29) = 20909901.57 FT
059519,000690: 27,3367  22,3151               RPAD1              =        RPAD                                  
059520,000691: 
059521,000692: 27,3367           00305 11205  R300K              2DEC     6464778    B-29                       #  (-29) M
059522,000693: 27,3371           37777 37777  NEARONE            2DEC     .999999999                            
059523,000694: 27,3373  26,3334               TFFZEROS           EQUALS   HI6ZEROS                              
059524,000695: 27,3373  26,3324               TFF1/4             EQUALS   HIDP1/4                               

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