Source Code

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

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

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

055608,000002:                                                                                                  ## Copyright:   Public domain.
055609,000003:                                                                                                  ## Filename:    INTEGRATION_INITIALIZATION.agc
055610,000004:                                                                                                  ## Purpose:     A section of Comanche revision 045.
055611,000005:                                                                                                  ##              It is part of the reconstructed source code for the
055612,000006:                                                                                                  ##              second release of the flight software for the Command
055613,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
055614,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
055615,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
055616,000010:                                                                                                  ##              exactly match those specified for Comanche 45 in NASA drawing
055617,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
055618,000012:                                                                                                  ##              reconstruction is correct.
055619,000013:                                                                                                  ## Assembler:   yaYUL
055620,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
055621,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
055622,000016:                                                                                                  ## Mod history: 2020-12-06 MAS  Created from Comanche 44.
055623,000017: 

Page 1309

055625,000019:                                                                                                  #  1.0 INTRODUCTION
055626,000020:                                                                                                  #  ----------------
055627,000021: 
055628,000022:                                                                                                  #  FROM A USERS POINT OF VIEW, ORBITAL INTEGRATION IS ESSENTIALLY THE SAME AS THE 278 INTEGRATION
055629,000023:                                                                                                  #  PROGRAM.  THE SAME ENTRANCES TO THE PROGRAM WILL BE MAINTAINED, THE SAME STALLING ROUTINE WILL BE USED AND
055630,000024:                                                                                                  #  OUTPUT WILL STILL BE VIA THE PUSHLIST.  THE PRIMARY DIFFERENCES TO A USER INVOLVE THE ADDED CAPABILITY OF
055631,000025:                                                                                                  #  TERMINATING INTEGRATION AT A SPECIFIC FINAL RADIUS AND THE DIFFERENCE IN STATE VECTOR SCALING INSIDE AND OUT-
055632,000026:                                                                                                  #  SIDE THE LUNAR SPHERE OF INFLUENCE.
055633,000027: 
055634,000028:                                                                                                  #  IN ORDER TO MAKE THE CSM(LEM)PREC AND CSM(LEM)CONIC ENTRANCES SIMILAR TO FLIGHT 278, THE INTEGRATION PROGRAM
055635,000029:                                                                                                  #  WILL ITSELF SET THE FINAL RADIUS (RFINAL) TO 0 SO THAT REACHING THE DESIRED TIME ONLY WILL TERMINATE
055636,000030:                                                                                                  #  INTEGRATION.  THE DP REGISTER RFINAL MUST BE SET BY USERS OF INTEGRVS AND INTEGRV, AND MUST BE DONE AFTER THE
055637,000031:                                                                                                  #  CALL TC INTSTALL.
055638,000032: 
055639,000033:                                                                                                  #  WHEN THE LM IS ON THE LUNAR SURFACE (INDICATED BY LUNAR SURFACE FLAG SET) CALLS TO LEMCONIC, LEMPREC, AND
055640,000034:                                                                                                  #  INTEGRV WITH VINFLAG = 0 WILL RESULT IN THE USE OF THE PLANETARY INERTIAL ORIENTATION SUBROUTINES TO PROVIDE
055641,000035:                                                                                                  #  BOTH THE LMS POSITION AND VELOCITY IN THE REFERENCE COORDINATE SYSTEM.
055642,000036:                                                                                                  #  THE PROGRAM WILL PROVIDE OUTPUT AS IF INTEGRATION WAS USED.  THAT IS, THE PUSHLIST WILL BE SET AS NOTED BELOW AND
055643,000037:                                                                                                  #  THE PERMANENT STATE VECTOR UPDATED WHEN SPECIFIED BY AN INTEGRV CALL.
055644,000038: 
055645,000039:                                                                                                  #  USERS OF INTEGRVS DESIRING INTEGRATION (INTYPFLG = 0) SHOULD NOTE THAT THE OBLATENESS PERTURBATION COMPUTATION
055646,000040:                                                                                                  #  IN LUNAR ORBIT IS TIME DEPENDENT.  THEREFORE, THE USER SHOULD SUPPLY AN INITIAL STATE VECTOR VALID AT SOME REAL
055647,000041:                                                                                                  #  TIME AND THE DESIRED TIME (TDEC1) ALSO AT SOME REAL TIME.  FOR CONIC ,,INTEGRATION,, THE USER MAY STILL USE ZERO
055648,000042:                                                                                                  #  AS THE INITIAL TIME AND DELTA TIME AS THE DESIRED TIME.
055649,000043: 
055650,000044:                                                                                                  #  2.0 GENERAL DESCRIPTION
055651,000045:                                                                                                  #  -----------------------
055652,000046: 
055653,000047:                                                                                                  #  THE INTEGRATION PROGRAM OPERATES AS A CLOSED INTERPRETIVE SUBROUTINE AND PERFORMS THESE FUNCTIONS ---
055654,000048:                                                                                                  #        1) INTEGRATES (PRECISION OR CONIC) EITHER CSM OR LM STATE VECTOR
055655,000049:                                                                                                  #        2) INTEGRATES THE W-MATRIX
055656,000050:                                                                                                  #        3) PERMANENT OR TEMPORARY UPDATE OF THE STATE VECTOR
055657,000051: 
055658,000052:                                                                                                  #  THERE ARE SIX ENTRANCES TO THE INTEGRATION PROGRAM.  FOUR OF THESE (CSMPREC, LEMPREC, CSMCONIC, LEMCONIC) SET
055659,000053:                                                                                                  #  ALL THE FLAGS REQUIRED IN THE INTEGRATION PROGRAM ITSELF TO CAUSE THE PRECISION OR CONIC INTEGRATION (KEPLER) OF
055660,000054:                                                                                                  #  THE LM OR CSM STATE VECTOR, AS THE NAMES SUGGEST.  ONE ENTRANCE (INTEGRVS) PERMITS THE CALLING PROGRAM TO
055661,000055:                                                                                                  #  PROVIDE A STATE VECTOR TO BE INTEGRATED.  THE CALLING PROGRAM MUST SET THE FLAGS INDICATING (1) PRECISION OR
055662,000056:                                                                                                  #  CONIC INTEGRATION, (2) IN OR OUT OF LUNAR SPHERE, (3) MIDCOURSE OR NOT, AND THE INTEGRATION PROGRAM COMPLETES
055663,000057:                                                                                                  #  THE FLAG SETTING TO BYPASS W-MATRIX INTEGRATION.  THE LAST ENTRANCE (INTEGRV, USED IN GENERAL BY THE
055664,000058:                                                                                                  #  NAVIGATION PROGRAMS) PERMITS THE CALLER TO SET FIVE FLAGS (NOT MOONFLAG OR MIDFLAG) BUT NOT TO INPUT A STATE
055665,000059:                                                                                                  #  VECTOR.  ANY PROGRAM WHICH CALLS INTEGRVS OR INTEGRV MUST CALL INTSTALL BEFORE IT SETS THE INTEGRATION FLAGS
055666,000060:                                                                                                  #  AND/OR STATE VECTOR.
055667,000061: 
055668,000062:                                                                                                  #  THREE SETS OF 42 REGISTERS AND 2 FLAGS ARE USED FOR THE STATE VECTORS.  TWO SETS, WHICH MAY NOT BE OVERLAYED, ARE
055669,000063:                                                                                                  #  USED FOR THE PERMANENT STATE VECTORS FOR THE CSM AND LM.  THE THIRD SET, WHICH MAY BE OVERLAYED WHEN INTEGRATION
055670,000064:                                                                                                  #  IS NOT BEING DONE, IS USED IN THE COMPUTATIONS.
055671,000065: 
055672,000066:                                                                                                  #  THE PERMANENT STATE VECTORS WILL BE PERIODICALLY UPDATED SO THAT THE VECTORS WILL NOT BE OLDER THAN 4 TIMESTEPS.
055673,000067:                                                                                                  #  THE PERMANENT STATE VECTORS WILL ALSO BE UPDATED WHENEVER THE W-MATRIX IS INTEGRATED OR WHEN A CALLER OF INTEGRV
055674,000068:                                                                                                  #  SETS STATEFLG (THE NAVIGATION PROGRAMS P20, P22.)
055675,000069: 

Page 1310

055677,000071:                                                                                                  #  APPENDIX B OF THE USERS GUIDE LISTS THE STATE VECTOR QUANTITIES.
055678,000072: 
055679,000073:                                                                                                  #  2.1 RESTARTS
055680,000074: 
055681,000075:                                                                                                  #  PHASE CHANGES WILL BE MADE IN THE INTEGRATION PROGRAM ONLY FOR THE INTEGRV ENTRANCE (I.E., WHEN THE W-MATRIX IS
055682,000076:                                                                                                  #  INTEGRATED OR PERMANENT STATE VECTOR IS UPDATED.)  THE GROUP NUMBER USED WILL BE THAT FOR THE P20-25 PROGRAMS
055683,000077:                                                                                                  #  (I.E., GROUP2) SINCE THE INTEGRV ENTRANCE WILL ONLY BE USED BY THESE PROGRAMS.  IF A RESTART OCCURS DURING AN
055684,000078:                                                                                                  #  INTEGRATION OF THE STATE VECTOR ONLY, THE RECOVERY WILL BE TO THE LAST PHASE IN THE CALLING PROGRAM.  CALLING
055685,000079:                                                                                                  #  PROGRAMS WHICH USE THE INTEGRV OR INTEGRVS ENTRANCE OF INTEGRATION SHOULD ENSURE THAT IF PHASE CHANGING IS DONE
055686,000080:                                                                                                  #  THAT IT IS PRIOR TO SETTING THE INTEGRATION INPUTS IN THE PUSHLIST.
055687,000081:                                                                                                  #  THIS IS BECAUSE THE PUSHLIST IS LOST DURING A RESTART.
055688,000082: 
055689,000083:                                                                                                  #  2.2 SCALING
055690,000084: 
055691,000085:                                                                                                  #  THE INTEGRATION ROUTINE WILL MAINTAIN THE PERMANENT MEMORY STATE VECTORS IN THE SCALING AND UNITS DEFINED IN
055692,000086:                                                                                                  #  APPENDIX B OF THE USERS GUIDE.  THE SCALING OF THE OUTPUT POSITION VECTOR DEPENDS ON THE ORIGIN OF THE COORDINATE
055693,000087:                                                                                                  #  SYSTEM AT THE DESIRED INTEGRATION TIME.  THE COORDINATE SYSTEM TRANSFORMATION WILL BE DONE AUTOMATICALLY ON
055694,000088:                                                                                                  #  MULTIPLE TIMESTEP ENCKE INTEGRATION ONLY.  THUS IT IS POSSIBLE TO HAVE OUTPUT FROM SUCCESSIVE INTEGRATIONS IN
055695,000089:                                                                                                  #  DIFFERENT SCALING.
055696,000090:                                                                                                  #  HOWEVER, RATT, VATT WILL ALWAYS BE SCALED THE SAME.
055697,000091: 
055698,000092:                                                                                                  #  3.0 INPUT/OUTPUT
055699,000093:                                                                                                  #  ----------------
055700,000094: 
055701,000095:                                                                                                  #  PROGRAM INPUTS ARE THE FLAGS DESCRIBED IN APPENDIX A AND THE PERMANENT STATE VECTOR QUANTITIES DESCRIBED IN AP-
055702,000096:                                                                                                  #  PENDIX B OF THE USERS GUIDE, PLUS THE DESIRED TIME TO INTEGRATE TO IN TDEC1 (A PUSH LIST LOCATION).
055703,000097:                                                                                                  #  FOR INTEGRVS, THE RCV,VCV,TET OF THE TEMPORARY STATE VECTOR MUST BE SET, PLUS MOONFLAG AND MIDFLAG
055704,000098: 
055705,000099:                                                                                                  #  FOR SIMULATION THE FOLLOWING QUANTITIES MUST BE PRESET ---
055706,000100:                                                                                                  #                                                                                EARTH   MOON
055707,000101:                                                                                                  #                                                                                 29      27
055708,000102:                                                                                                  #        RRECTCSM(LEM)   -       RECTIFIED POSITION VECTOR       METERS          2       2
055709,000103: 
055710,000104:                                                                                                  #                                                                                 7       5
055711,000105:                                                                                                  #        VRECTCSM(LEM)   -       RECTIFIED VELOCITY VECTOR       M/CSEC          2       2
055712,000106: 
055713,000107:                                                                                                  #                                                                                 28      28
055714,000108:                                                                                                  #        TETCSM(LEM)     -       TIME STATE VECTOR IS VALID      CSEC            2       2
055715,000109:                                                                                                  #                                CUSTOMARILY 0, BUT NOTE LUNAR
055716,000110:                                                                                                  #                                ORBIT DEPENDENCE ON REAL TIME.
055717,000111: 
055718,000112:                                                                                                  #                                                                                 22      18
055719,000113:                                                                                                  #        DELTAVCSM(LEM)  -       POSITION DEVIATION              METERS          2       2
055720,000114:                                                                                                  #                                0 IF TCCSM(LEM) = 0
055721,000115: 
055722,000116:                                                                                                  #                                                                                 3       -1
055723,000117:                                                                                                  #        NUVCSM(LEM)     -       VELOCITY DEVIATION              M/CSEC          2       2
055724,000118:                                                                                                  #                                0 IF TCCSM(LEM) = 0

Page 1311

055726,000120:                                                                                                  #                                                                                 29      27
055727,000121:                                                                                                  #        RCVCSM(LEM)     -       CONIC POSITION                  METERS          2       2
055728,000122:                                                                                                  #                                EQUALS RRECTCSM(LEM) IF
055729,000123:                                                                                                  #                                TCCSM(LEM) = 0
055730,000124: 
055731,000125:                                                                                                  #                                                                                 7       5
055732,000126:                                                                                                  #        VCVCSM(LEM)     -       CONIC VELOCITY                  M/CSEC          2       2
055733,000127:                                                                                                  #                                EQUALS VRECTCSM(LEM) IF
055734,000128:                                                                                                  #                                TCCSM(LEM) = 0
055735,000129: 
055736,000130:                                                                                                  #                                                                                 28      28
055737,000131:                                                                                                  #        TCCSM(LEM)      -       TIME SINCE RECTIFICATION        CSECS           2       2
055738,000132:                                                                                                  #                                CUSTOMARILY 0
055739,000133: 
055740,000134:                                                                                                  #                                                                 1/2             17      16
055741,000135:                                                                                                  #        XKEPCSM(LEM)    -       ROOT OF KEPLERS EQUATION        M               2       2
055742,000136:                                                                                                  #                                0 IF TCCSM(LEM) = 0
055743,000137: 
055744,000138:                                                                                                  #        CMOONFLG        -       PERMANENT FLAGS CORRESPONDING                   0       0
055745,000139:                                                                                                  #        CMIDFLAG                TO MOONFLAG AND MIDFLAG                         0,1     0,1
055746,000140:                                                                                                  #        LMOONFLG                C = CSM, L = LM                                 0       0
055747,000141:                                                                                                  #        LMIDFLG                                                                 0,1     0,1
055748,000142: 
055749,000143:                                                                                                  #        SURFFLAG        -       LUNAR SURFACE FLAG                              0,1     0,1
055750,000144: 
055751,000145:                                                                                                  #  IN ADDITION, IF (L)CMIDFLAG IS SET, THE INITIAL INPUT VALUES FOR LUNAR
055752,000146:                                                                                                  #  SOLAR EPHEMERIDES SUBROUTINE AND PLANETARY INERTIAL ORIENTATION SUB-
055753,000147:                                                                                                  #  ROUTINE MUST BE PRESET.
055754,000148: 
055755,000149:                                                                                                  #  OUTPUT
055756,000150:                                                                                                  #        AFTER EVERY CALL TO INTEGRATION
055757,000151:                                                                                                  #                                                                        EARTH   MOON
055758,000152:                                                                                                  #                                                                         29      29
055759,000153:                                                                                                  #        0D      RATT    POSITION                        METERS          2       2
055760,000154: 
055761,000155:                                                                                                  #                                                                         7       7
055762,000156:                                                                                                  #        6D      VATT    VELOCITY                        M/CSEC          2       2
055763,000157: 
055764,000158:                                                                                                  #                                                                         28      28
055765,000159:                                                                                                  #        12D     TAT     TIME                                            2       2
055766,000160: 
055767,000161:                                                                                                  #                                                                         29      27
055768,000162:                                                                                                  #        14D     RATT1   POSITION                        METERS          2       2
055769,000163: 
055770,000164:                                                                                                  #                                                                         7       5
055771,000165:                                                                                                  #        20D     VATT1   VELOCITY                        M/CSEC          2       2
055772,000166: 
055773,000167:                                                                                                  #                                                         3   2           36      30
055774,000168:                                                                                                  #        26D     MU(P)   MU                              M /CS           2       2
055775,000169: 
055776,000170:                                                                                                  #        X1              MUTABLE ENTRY                                   -2      -10D
055777,000171: 
055778,000172:                                                                                                  #        X2              COORDINT
055779,000173:                                                                                                  #        X2              COORDINATE SYSTEM ORIGEN                        0       2
055780,000174:                                                                                                  #                        (THIS, NOT MOONFLAG, SHOULD BE

Page 1312

055782,000176:                                                                                                  #                        USED TO DETERMINE ORIGIN.)
055783,000177: 
055784,000178:                                                                                                  #  IN ADDITION TO THE ABOVE, THE PERMANENT STATE VECTOR IS UPDATED WHENEVER
055785,000179:                                                                                                  #  STATEFLG WAS SET AND WHENEVER A W-MATRIX IS TO BE INTEGRATED.  THE PUSH
055786,000180:                                                                                                  #  COUNTER IS SET TO 0 AND OVERFLOW IS CLEARED BEFORE RETURNING TO THE
055787,000181:                                                                                                  #  CALLING PROGRAM.
055788,000182: 
055789,000183:                                                                                                  #  4.0 CALLING SEQUENCES AND SAMPLE CODE
055790,000184:                                                                                                  #  -------------------------------------
055791,000185: 
055792,000186:                                                                                                  #        A) PRECISION ORBITAL INTEGRATION.  CSMPREC, LEMPREC ENTRANCES
055793,000187:                                                                                                  #                L-X     STORE TIME TO 95T5791T5 T 95 PUS L9ST (T4531)
055794,000188:                                                                                                  #                L       CALL
055795,000189:                                                                                                  #                L+1             CSMPREC (OR LEMPREC)
055796,000190:                                                                                                  #                L+2     RETURN
055797,000191:                                                                                                  #           INPUT                                                           28
055798,000192:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO...CENTISECONDS SCALED 2
055799,000193:                                                                                                  #           OUTPUT
055800,000194:                                                                                                  #                THE DATA LISTED IN SECTION 3.0 PLUS
055801,000195:                                                                                                  #                RQVV    POSITION VECTOR OF VEHICLE WITH RESPECT TO SECONDARY
055802,000196:                                                                                                  #                BODY... METERS B-29 ONLY IF MIDFLAG = DIMOFLAG = 1
055803,000197:                                                                                                  #        B) CONIC INTEGRATION.  CSMCONIC, LEMCONIC ENTRANCES
055804,000198:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1)
055805,000199:                                                                                                  #                L       CALL
055806,000200:                                                                                                  #                L+1             CSMCONIC (OR LEMCONIC)
055807,000201:                                                                                                  #           INPUT/OUTPUT
055808,000202:                                                                                                  #                SAME AS PRECISION INTEGRATION, EXCEPT RQVV NOT SET
055809,000203:                                                                                                  #        C) INTEGRATE GIVEN STATE VECTOR.  INTEGRVS ENTRANCE
055810,000204:                                                                                                  #                CALL
055811,000205:                                                                                                  #                                INTSTALL
055812,000206:                                                                                                  #                VLOAD
055813,000207:                                                                                                  #                                POSITION VECTOR
055814,000208:                                                                                                  #                STOVL           RCV
055815,000209:                                                                                                  #                                VELOCITY VECTOR
055816,000210:                                                                                                  #                STODL           VCV
055817,000211:                                                                                                  #                                TIME STATE VECTOR VALID
055818,000212:                                                                                                  #                STODL           TET
055819,000213:                                                                                                  #                                FINAL RADIUS
055820,000214:                                                                                                  #                STORE           RFINAL
055821,000215:                                                                                                  #                SET(CLEAR)      SET(CLEAR)
055822,000216:                                                                                                  #                                INTYPFLAG
055823,000217:                                                                                                  #                                MOONFLAG
055824,000218:                                                                                                  #                SET(CLEAR)      DLOAD
055825,000219:                                                                                                  #                                DESIRED TIME
055826,000220:                                                                                                  #                STCALL          TDEC1
055827,000221:                                                                                                  #                                INTEGRVS
055828,000222:                                                                                                  #          INPUT
055829,000223:                                                                                                  #                RCV     POSITION VECTOR                 METERS
055830,000224:                                                                                                  #                VCV     VELOCITY VECTOR                 M/CSEC
055831,000225:                                                                                                  #                TET     TIME OF STATE VECTOR (MAY = 0)  CSEC B-28

Page 1313

055833,000227:                                                                                                  #                TDEC1   TIME TO INTEGRATE TO            CSEC B-28 (PD 32D)
055834,000228:                                                                                                  #                        (MAY BE INCREMENT IF TET=0)
055835,000229:                                                                                                  #          OUTPUT
055836,000230:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION,
055837,000231:                                                                                                  #                DEPENDING ON INTYPFLG.
055838,000232:                                                                                                  #        D) INTEGRATE STATE VECTOR.  INTGRV ENTRANCE
055839,000233:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1) (MAY BE DONE AFTER CALL TO INTSTALL)
055840,000234:                                                                                                  #                L-8     CALL
055841,000235:                                                                                                  #                L-7
055842,000236:                                                                                                  #                L-6     SET(CLEAR)      SET(CLEAR)
055843,000237:                                                                                                  #                L-5                     VINTFLAG        1=CSM, 0=LM
055844,000238:                                                                                                  #                L-4                     INTYPFLAG       1=CONIC, 0=PRECISION
055845,000239:                                                                                                  #                L-3     SET(CLEAR)      SET(CLEAR)
055846,000240:                                                                                                  #                L-2                     DIMOFLAG        1=W-MATRIX, 0=NO W-MATRIX
055847,000241:                                                                                                  #                L-1                     D6OR9FLG        1=9X9, 0=6X6
055848,000242:                                                                                                  #                L       SET             DLOAD
055849,000243:                                                                                                  #                L+1                     STATEFLG        DESIRE PERMANENT UPDATE
055850,000244:                                                                                                  #                L+2                     FINAL RAD.      OF STATE VECTOR
055851,000245:                                                                                                  #                L+3     STCALL          RFINAL
055852,000246:                                                                                                  #                L+4                     INTEGRV
055853,000247:                                                                                                  #                L       CALL                            NORMAL USE -- WILL UPDATE STATE
055854,000248:                                                                                                  #                L+1                     INTEGRV         VECTOR IF DIMOFLAG=1. (STATEFLG IS
055855,000249:                                                                                                  #                L+2     RETURN                          ALWAYS RESET IN INTEGRATION AFTER
055856,000250:                                                                                                  #                                                        IT IS USED.)
055857,000251:                                                                                                  #          INPUT
055858,000252:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO     CSEC B-28
055859,000253:                                                                                                  #          OUTPUT
055860,000254:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION
055861,000255:                                                                                                  #          THE PROGRAM WILL SET MOONFLAG, MIDFLAG DEPENDING ON
055862,000256:                                                                                                  #          THE PERMANENT STATE VECTOR REPRESENTATION.
055863,000257: 
055864,000258: 11,2363                                           BANK     11                                    
055865,000259: 13,2000                                           SETLOC   INTINIT                               
055866,000260: 13,2000                                           BANK                                           
055867,000261: 13,2627  E3,1554                                  EBANK=   RRECTCSM                              
055868,000262: 13,2627                                           COUNT    13/INTIN                              
055869,000263: 
055870,000264: 13,2627           05412        STATEINT           TC       PHASCHNG                              
055871,000265: 13,2630           00052                           OCT      00052                                 
055872,000266: 13,2631           35061                           CAF      PRIO5                                 
055873,000267: 13,2632           05147                           TC       FINDVAC                               
055874,000268: 13,2633  E3,1554                                  EBANK=   RRECTCSM                              
055875,000269: 13,2633           02636 26063                     2CADR    STATINT1                              
055876,000270: 
055877,000271: 13,2635           05324                           TC       TASKOVER                              
055878,000272: 13,2636           06006        STATINT1           TC       INTPRET                               
055879,000273: 13,2637           47014                           BON      RTB                                   
055880,000274: 13,2640           04712                                    QUITFLAG                              
055881,000275: 13,2641           26677                                    NOINT                                 #  NO STATEINT IF V96
055882,000276: 13,2642           45510                                    LOADTIME                              

Page 1314

055884,000278: 13,2643           00041                           STORE    TDEC1                                 
055885,000279: 13,2644           45014                           CLEAR    CALL                                  
055886,000280: 13,2645           04274                                    V96ONFLG                              
055887,000281: 13,2646           27442                                    INTSTALL                              
055888,000282: 13,2647           45014                           SET      CALL                                  
055889,000283: 13,2650           01076                                    NODOFLAG                              
055890,000284: 13,2651           26670                                    SETIFLGS                              
055891,000285: 13,2652           77650                           GOTO                                           
055892,000286: 13,2653           26000                                    STATEUP                               
055893,000287: 13,2654           00003 25140  600SECS            2DEC     60000      B-28                       
055894,000288: 
055895,000289: 13,2656           77414        ENDINT             CLEAR    EXIT                                  
055896,000290: 13,2657           01672                                    STATEFLG                              
055897,000291: 13,2660           05412                           TC       PHASCHNG                              
055898,000292: 13,2661           20032                           OCT      20032                                 
055899,000293: 13,2662           00006                           EXTEND                                         
055900,000294: 13,2663           32655                           DCA      600SECS                               
055901,000295: 13,2664           05342                           TC       LONGCALL                              
055902,000296: 13,2665  E3,1554                                  EBANK=   RRECTHIS                              
055903,000297: 13,2665           02627 26063                     2CADR    STATEINT                              
055904,000298: 
055905,000299: 13,2667           05217                           TC       ENDOFJOB                              
055906,000300: 13,2670           43014        SETIFLGS           SET      CLEAR                                 
055907,000301: 13,2671           01472                                    STATEFLG                              
055908,000302: 13,2672           01673                                    INTYPFLG                              
055909,000303: 13,2673           43014                           CLEAR    CLEAR                                 
055910,000304: 13,2674           01676                                    DIM0FLAG                              
055911,000305: 13,2675           01675                                    D6OR9FLG                              
055912,000306: 13,2676           77616                           RVQ                                            
055913,000307: 13,2677           77776        NOINT              EXIT                                           
055914,000308: 13,2700           05412                           TC       PHASCHNG                              
055915,000309: 13,2701           00002                           OCT      2                                     
055916,000310: 
055917,000311: 13,2702           05560                           TC       DOWNFLAG                              
055918,000312: 13,2703           00221                           ADRES    QUITFLAG                              
055919,000313: 
055920,000314: 13,2704           05217                           TC       ENDOFJOB                              
055921,000315: 
055922,000316:                                                                                                  #  ATOPCSM TRANSFERS RRECT TO RRECT +41 TO RRECTCSM TO RRECTCSM +41
055923,000317: 
055924,000318:                                                                                                  #  CALLING SEQUENCE
055925,000319:                                                                                                  #        L       CALL
055926,000320:                                                                                                  #        L+1             ATOPCSM
055927,000321: 
055928,000322:                                                                                                  #  NORMAL EXIT AT L+2
055929,000323: 
055930,000324: 13,2705           47020        ATOPCSM            STQ      RTB                                   
055931,000325: 13,2706           00051                                    S2                                    
055932,000326: 13,2707           26720                                    MOVEACSM                              
055933,000327: 13,2710           45014                           SET      CALL                                  

Page 1315

055935,000329: 13,2711           04063                                    CMOONFLG                              
055936,000330: 13,2712           20237                                    SVDWN1                                
055937,000331: 13,2713           43014                           BON      CLRGO                                 
055938,000332: 13,2714           00303                                    MOONFLAG                              
055939,000333: 13,2715           00051                                    S2                                    
055940,000334: 13,2716           04223                                    CMOONFLG                              
055941,000335: 13,2717           00051                                    S2                                    
055942,000336: 13,2720           03064        MOVEACSM           TC       SETBANK                               
055943,000337: 13,2721           55500                           TS       DIFEQCNT                              #  INITIALIZE INDEX
055944,000338: 13,2722           51500                           INDEX    DIFEQCNT                              
055945,000339: 13,2723           31502                           CA       RRECT                                 
055946,000340: 13,2724           51500                           INDEX    DIFEQCNT                              
055947,000341: 13,2725           55554                           TS       RRECTCSM                              
055948,000342: 13,2726           11500                           CCS      DIFEQCNT                              #  IS TRANSFER COMPLETE
055949,000343: 13,2727           12721                           TCF      MOVEACSM   +1                         #  NO-LOOP
055950,000344: 13,2730           06030                           TC       DANZIG                                #  COMPLETE - RETURN
055951,000345: 
055952,000346:                                                                                                  #  PTOACSM TRANSFERS RRECTCSM TO RRECTCSM +41 TO RRECT TO RRECT +41
055953,000347: 
055954,000348:                                                                                                  #  CALLING SEQUENCE
055955,000349:                                                                                                  #        L       CALL
055956,000350:                                                                                                  #                        PTOACSM
055957,000351: 
055958,000352:                                                                                                  #  NORMAL EXIT AT L+2
055959,000353: 
055960,000354: 13,2731           43034        PTOACSM            RTB      BON                                   
055961,000355: 13,2732           26747                                    MOVEPCSM                              
055962,000356: 13,2733           04303                                    CMOONFLG                              
055963,000357: 13,2734           26742                                    SETMOON                               
055964,000358: 13,2735           66214        CLRMOON            CLEAR    SSP                                   
055965,000359: 13,2736           00263                                    MOONFLAG                              
055966,000360: 13,2737           02151                                    PBODY                                 
055967,000361: 13,2740           00000                                    0                                     
055968,000362: 13,2741           77616                           RVQ                                            
055969,000363: 13,2742           66214        SETMOON            SET      SSP                                   
055970,000364: 13,2743           00063                                    MOONFLAG                              
055971,000365: 13,2744           02151                                    PBODY                                 
055972,000366: 13,2745           00002                                    2                                     
055973,000367: 13,2746           77616                           RVQ                                            
055974,000368: 13,2747           03064        MOVEPCSM           TC       SETBANK                               
055975,000369: 13,2750           55500                           TS       DIFEQCNT                              
055976,000370: 13,2751           51500                           INDEX    DIFEQCNT                              
055977,000371: 13,2752           31554                           CA       RRECTCSM                              
055978,000372: 13,2753           51500                           INDEX    DIFEQCNT                              
055979,000373: 13,2754           55502                           TS       RRECT                                 
055980,000374: 13,2755           11500                           CCS      DIFEQCNT                              
055981,000375: 13,2756           12750                           TCF      MOVEPCSM   +1                         
055982,000376: 13,2757           06030                           TC       DANZIG                                
055983,000377: 

Page 1316

055985,000379:                                                                                                  #  ATOPLEM TRANSFERS RRECT TO RRECT +41 TO RRECTLEM TO RRECTLEM +41
055986,000380: 13,2760           47020        ATOPLEM            STQ      RTB                                   
055987,000381: 13,2761           00051                                    S2                                    
055988,000382: 13,2762           26773                                    MOVEALEM                              
055989,000383: 13,2763           45014                           SET      CALL                                  
055990,000384: 13,2764           04064                                    LMOONFLG                              
055991,000385: 13,2765           20263                                    SVDWN2                                
055992,000386: 13,2766           43014                           BON      CLRGO                                 
055993,000387: 13,2767           00303                                    MOONFLAG                              
055994,000388: 13,2770           00051                                    S2                                    
055995,000389: 13,2771           04224                                    LMOONFLG                              
055996,000390: 13,2772           00051                                    S2                                    
055997,000391: 13,2773           03064        MOVEALEM           TC       SETBANK                               
055998,000392: 13,2774           55500                           TS       DIFEQCNT                              
055999,000393: 13,2775           51500                           INDEX    DIFEQCNT                              
056000,000394: 13,2776           31502                           CA       RRECT                                 
056001,000395: 13,2777           51500                           INDEX    DIFEQCNT                              
056002,000396: 13,3000           55626                           TS       RRECTLEM                              
056003,000397: 13,3001           11500                           CCS      DIFEQCNT                              
056004,000398: 13,3002           12774                           TCF      MOVEALEM   +1                         
056005,000399: 13,3003           06030                           TC       DANZIG                                
056006,000400: 
056007,000401:                                                                                                  #  PTOALEM TRANSFERS RRECTLEM TO RRECTLEM +41 TO RRECT TO RRECT +41
056008,000402: 
056009,000403: 13,3004           47014        PTOALEM            BON      RTB                                   
056010,000404: 13,3005           04307                                    SURFFLAG                              
056011,000405: 13,3006           27025                                    USEPIOS                               
056012,000406: 13,3007           27014                                    MOVEPLEM                              
056013,000407: 13,3010           52014                           BON      GOTO                                  
056014,000408: 13,3011           04304                                    LMOONFLG                              
056015,000409: 13,3012           26742                                    SETMOON                               
056016,000410: 13,3013           26735                                    CLRMOON                               
056017,000411: 13,3014           03064        MOVEPLEM           TC       SETBANK                               
056018,000412: 13,3015           55500                           TS       DIFEQCNT                              
056019,000413: 13,3016           51500                           INDEX    DIFEQCNT                              
056020,000414: 13,3017           31626                           CA       RRECTLEM                              
056021,000415: 13,3020           51500                           INDEX    DIFEQCNT                              
056022,000416: 13,3021           55502                           TS       RRECT                                 
056023,000417: 13,3022           11500                           CCS      DIFEQCNT                              
056024,000418: 13,3023           13015                           TCF      MOVEPLEM   +1                         
056025,000419: 13,3024           06030                           TC       DANZIG                                
056026,000420: 
056027,000421: 13,3025           77201        USEPIOS            SETPD    VLOAD                                 
056028,000422: 13,3026           00001                                    0                                     
056029,000423: 13,3027           02026                                    RLS                                   
056030,000424: 13,3030           41525                           PDDL     PUSH                                  
056031,000425: 13,3031           00041                                    TDEC1                                 

Page 1317

056033,000427: 13,3032           15517                           STODL    TET                                   
056034,000428: 13,3033           27755                                    5/8                                   
056035,000429: 13,3034           77624                           CALL                                           
056036,000430: 13,3035           55344                                    RP-TO-R                               
056037,000431: 13,3036           25535                           STOVL    RCV                                   
056038,000432: 13,3037           11555                                    ZUNIT                                 
056039,000433: 13,3040           14001                           STODL    0D                                    
056040,000434: 13,3041           01517                                    TET                                   
056041,000435: 13,3042           14007                           STODL    6D                                    
056042,000436: 13,3043           27755                                    5/8                                   
056043,000437: 13,3044           45014                           SET      CALL                                  #  NEEDED FOR SETTING X1 ON EXIT
056044,000438: 13,3045           00063                                    MOONFLAG                              
056045,000439: 13,3046           55344                                    RP-TO-R                               
056046,000440: 13,3047           74235                           VXV      VXSC                                  
056047,000441: 13,3050           01535                                    RCV                                   
056048,000442: 13,3051           27063                                    OMEGMOON                              
056049,000443: 13,3052           25543                           STOVL    VCV                                   
056050,000444: 13,3053           11563                                    ZEROVEC                               
056051,000445: 13,3054           01521                           STORE    TDELTAV                               
056052,000446: 13,3055           67174                           AXT,2    SXA,2                                 
056053,000447: 13,3056           00002                                    2                                     
056054,000448: 13,3057           02150                                    PBODY                                 
056055,000449: 13,3060           35527                           STCALL   TNUV                                  
056056,000450: 13,3061           27176                                    A-PCHK                                
056057,000451: 13,3062           07112 06620  OMEGMOON           2DEC*    2.66169947 E-8        B+23*           
056058,000452: 
056059,000453: 13,3064           33070        SETBANK            CAF      INTBANK                               
056060,000454: 13,3065           54006                           TS       BBANK                                 
056061,000455: 13,3066           33507                           CAF      FORTYONE                              
056062,000456: 13,3067           00002                           TC       Q                                     
056063,000457: 13,3070  E3,1554                                  EBANK=   RRECTCSM                              
056064,000458: 13,3070           26063        INTBANK            BBCON    INTEGRV                               
056065,000459: 
056066,000460:                                                                                                  #  SPECIAL PURPOSE ENTRIES TO ORBITAL INTEGRATION.  THESE ROUTINES PROVIDE ENTRANCES TO INTEGRATION WITH
056067,000461:                                                                                                  #  APPROPRIATE SWITCHES SET OR CLEARED FOR THE DESIRED INTEGRATION.
056068,000462: 
056069,000463:                                                                                                  #  CSMPREC AND LEMPREC PERFORM ORBIT INTEGRATION BY THE ENCKE METHOD TO THE TIME INDICATED IN TDEC1
056070,000464:                                                                                                  #  ACCELERATIONS DUE TO OBLATENESS ARE INCLUDED.  NO W-MATRIX INT. IS DONE.
056071,000465:                                                                                                  #  THE PERMANENT STATE VECTOR IS NOT UPDATED.
056072,000466:                                                                                                  #  CSMCONIC AND LEMCONIC PERFORM ORBIT INTEG. BY KEPLERS METHOD TO THE TIME INDICATED IN TDEC1
056073,000467:                                                                                                  #  NO DISTURBING ACCELERATIONS ARE INCLUDED.  IN THE PROGRAM FLOW THE GIVEN
056074,000468:                                                                                                  #  STATE VECTOR IS RECTIFIED BEFORE SOLUTION OF KEPLERS EQUATION
056075,000469: 
056076,000470:                                                                                                  #  THE ROUTINES ASSUME THAT THE CSM (LEM) STATE VECTOR IN P-MEM IS VALID.
056077,000471:                                                                                                  #  SWITCHES SET PRIOR TO ENTRY TO THE MAIN INTEG. PROG ARE AS FOLLOWS
056078,000472:                                                                                                  #                        CSMPREC         CSMCONIC        LEMPREC         LEMCONIC
056079,000473:                                                                                                  #        VINTFLAG        SET             SET             CLEAR           CLEAR
056080,000474:                                                                                                  #        INTYPFLG        CLEAR           SET             CLEAR           SET
056081,000475:                                                                                                  #        DIM0FLAG        CLEAR           CLEAR           CLEAR           CLEAR

Page 1318

056083,000477: 
056084,000478:                                                                                                  #  CALLING SEQUENCE
056085,000479:                                                                                                  #        L-X     STORE   TDEC1
056086,000480:                                                                                                  #        L       CALL                    (STCALL TDEC1)
056087,000481:                                                                                                  #        L+1             CSMPREC         (CSMCONIC, LEMPREC, LEMCONIC)
056088,000482: 
056089,000483:                                                                                                  #  NORMAL EXIT TO L+2
056090,000484: 
056091,000485:                                                                                                  #  SUBROUTINES CALLED
056092,000486:                                                                                                  #        INTEGRV1
056093,000487:                                                                                                  #        PRECOUT FOR CSMPREC AND LEMPREC
056094,000488:                                                                                                  #        CONICOUT FOR CSMCONIC AND LEMCONIC
056095,000489: 
056096,000490:                                                                                                  #  OUTPUT - SEE PAGE 2 OF THIS LOG SECTION
056097,000491: 
056098,000492:                                                                                                  #  INPUT
056099,000493:                                                                                                  #        TDEC1           TIME TO INTEGRATE TO.  CSECS B-28
056100,000494: 
056101,000495: 13,3071           45020        CSMPREC            STQ      CALL                                  
056102,000496: 13,3072           00046                                    X1                                    
056103,000497: 13,3073           27442                                    INTSTALL                              
056104,000498: 13,3074           43130                           SXA,1    SET                                   
056105,000499: 13,3075           02214                                    IRETURN                               
056106,000500: 13,3076           01474                                    VINTFLAG                              
056107,000501: 
056108,000502: 13,3077           43014        IFLAGP             SET      CLEAR                                 
056109,000503: 13,3100           01467                                    PRECIFLG                              
056110,000504: 13,3101           01676                                    DIM0FLAG                              
056111,000505: 13,3102           77614                           CLRGO                                          
056112,000506: 13,3103           01633                                    INTYPFLG                              
056113,000507: 13,3104           27164                                    INTEGRV1                              
056114,000508: 13,3105           45020        LEMPREC            STQ      CALL                                  
056115,000509: 13,3106           00046                                    X1                                    
056116,000510: 13,3107           27442                                    INTSTALL                              
056117,000511: 13,3110           43130                           SXA,1    CLRGO                                 
056118,000512: 13,3111           02214                                    IRETURN                               
056119,000513: 13,3112           01634                                    VINTFLAG                              
056120,000514: 13,3113           27077                                    IFLAGP                                
056121,000515: 
056122,000516: 13,3114           45020        CSMCONIC           STQ      CALL                                  
056123,000517: 13,3115           00046                                    X1                                    
056124,000518: 13,3116           27442                                    INTSTALL                              
056125,000519: 13,3117           43130                           SXA,1    SET                                   
056126,000520: 13,3120           02214                                    IRETURN                               
056127,000521: 13,3121           01474                                    VINTFLAG                              
056128,000522: 13,3122           43014        IFLAGC             CLEAR    SETGO                                 
056129,000523: 13,3123           01676                                    DIM0FLAG                              
056130,000524: 13,3124           01433                                    INTYPFLG                              
056131,000525: 13,3125           27164                                    INTEGRV1                              
056132,000526: 13,3126           45020        LEMCONIC           STQ      CALL                                  
056133,000527: 13,3127           00046                                    X1                                    

Page 1319

056135,000529: 13,3130           27442                                    INTSTALL                              
056136,000530: 13,3131           43130                           SXA,1    CLRGO                                 
056137,000531: 13,3132           02214                                    IRETURN                               
056138,000532: 13,3133           01634                                    VINTFLAG                              
056139,000533: 13,3134           27122                                    IFLAGC                                
056140,000534: 
056141,000535: 13,3135           66214        INTEGRVS           SET      SSP                                   
056142,000536: 13,3136           01467                                    PRECIFLG                              
056143,000537: 13,3137           02151                                    PBODY                                 
056144,000538: 13,3140           00000                                    0                                     
056145,000539: 13,3141           66214                           BOF      SSP                                   
056146,000540: 13,3142           00343                                    MOONFLAG                              
056147,000541: 13,3143           27146                                    +3                                    
056148,000542: 13,3144           02151                                    PBODY                                 
056149,000543: 13,3145           00002                                    2                                     
056150,000544: 13,3146           77220                           STQ      VLOAD                                 
056151,000545: 13,3147           02214                                    IRETURN                               
056152,000546: 13,3150           11563                                    ZEROVEC                               
056153,000547: 13,3151           01521                           STORE    TDELTAV                               
056154,000548: 13,3152           35527                           STCALL   TNUV                                  
056155,000549: 13,3153           23421                                    RECTIFY                               
056156,000550: 13,3154           43014                           CLEAR    SET                                   
056157,000551: 13,3155           01676                                    DIM0FLAG                              
056158,000552: 13,3156           04062                                    NEWIFLG                               
056159,000553: 13,3157           77614                           SETGO                                          
056160,000554: 13,3160           04020                                    RPQFLAG                               
056161,000555: 13,3161           22363                                    ALOADED                               
056162,000556: 
056163,000557:                                                                                                  #  INTEGRV IS AN ENTRY TO ORBIT INTEGRATION WHICH PERMITS THE CALLER,
056164,000558:                                                                                                  #  NORMALLY THE NAVIGATION PROGRAM, TO SET THE INTEG. FLAGS.  THE ROUTINE
056165,000559:                                                                                                  #  IS ENTERED AT INTEGRV1 BY CSMPREC ET. AL. AND AT ALOADED BY INTEGRVS.
056166,000560:                                                                                                  #  THE ROUTINE SETS UP A-MEMORY IF ENTERED AT INTEGRV,1 AND SETS THE INTEG.
056167,000561:                                                                                                  #  PROGRAM FOR PRECISION OR CONIC
056168,000562: 
056169,000563:                                                                                                  #  THE CALLER MUST FIRST CALL INTSTALL TO CHECK IF INTEG. IS IN USE BEFORE
056170,000564:                                                                                                  #  SETTING ANY FLAGS.
056171,000565: 
056172,000566:                                                                                                  #  THE FLAGS WHICH SHOULD BE SET OR CLEARED ARE
056173,000567:                                                                                                  #        VINTFLAG        (IGNORED WHEN ENTERED FROM INTEGRVS)
056174,000568:                                                                                                  #        INTYPFLG
056175,000569:                                                                                                  #        DIM0FLAG
056176,000570:                                                                                                  #        D6OR9FLG
056177,000571: 
056178,000572:                                                                                                  #  CALLING SEQUENCE
056179,000573:                                                                                                  #        L-X     CALL
056180,000574:                                                                                                  #        L-Y             INTSTALL
056181,000575:                                                                                                  #        L-1     SET OR CLEAR ALL FOUR FLAGS.  ALSO CAN SET STATEFLG IF DESIRED
056182,000576:                                                                                                  #                AND DIM0FLAG IS CLEAR.
056183,000577:                                                                                                  #        L       CALL
056184,000578:                                                                                                  #        L+1             INTEGRV
056185,000579: 
056186,000580:                                                                                                  #  INITIALIZATION
056187,000581:                                                                                                  #        FLAGS AS ABOVE
056188,000582:                                                                                                  #        STORE TIME TO INTEGRATE TO IN TDEC1
056189,000583: 

Page 1320

056191,000585:                                                                                                  #  OUTPUT
056192,000586:                                                                                                  #        RATT    AS
056193,000587:                                                                                                  #        VATT          DEFINED
056194,000588:                                                                                                  #        TAT                     BEFORE
056195,000589: 
056196,000590: 13,3162           77620        INTEGRV            STQ                                            
056197,000591: 13,3163           02214                                    IRETURN                               
056198,000592: 13,3164           43014        INTEGRV1           SET      SET                                   
056199,000593: 13,3165           04060                                    RPQFLAG                               
056200,000594: 13,3166           04062                                    NEWIFLG                               
056201,000595: 13,3167           77731        INTEGRV2           SSP                                            
056202,000596: 13,3170           00053                                    QPRET                                 
056203,000597: 13,3171           22363                                    ALOADED                               
056204,000598: 13,3172           52014                           BON      GOTO                                  
056205,000599: 13,3173           01714                                    VINTFLAG                              
056206,000600: 13,3174           26731                                    PTOACSM                               
056207,000601: 13,3175           27004                                    PTOALEM                               
056208,000602: 11,2000                                           SETLOC   INTINIT1                              
056209,000603: 11,2000                                           BANK                                           
056210,000604: 11,2363           77745        ALOADED            DLOAD                                          
056211,000605: 11,2364           00041                                    TDEC1                                 
056212,000606: 11,2365           01101                           STORE    TDEC                                  
056213,000607: 11,2366           52014                           BOFF     GOTO                                  
056214,000608: 11,2367           01753                                    INTYPFLG                              
056215,000609: 11,2370           27305                                    TESTLOOP                              
056216,000610: 11,2371           27271                                    RVCON                                 
056217,000611: 13,2000                                           SETLOC   INTINIT                               
056218,000612: 13,2000                                           BANK                                           
056219,000613: 13,3176           45014        A-PCHK             BOF      CALL                                  
056220,000614: 13,3177           00342                                    MIDFLAG                               
056221,000615: 13,3200           27205                                    ANDOUT                                #  DONT MAKE ORIGIN CHANGE CHECK
056222,000616: 13,3201           23320                                    CHKSWTCH                              
056223,000617: 13,3202           45044                           BPL      CALL                                  
056224,000618: 13,3203           27205                                    ANDOUT                                #  NO ORIGIN CHANGE
056225,000619: 13,3204           23361                                    ORIGCHNG                              #  MAKE THE SWITCH
056226,000620: 13,3205           77414        ANDOUT             BOFCLR   EXIT                                  
056227,000621: 13,3206           01652                                    STATEFLG                              
056228,000622: 13,3207           27226                                    RECTOUT                               
056229,000623: 13,3210           05412                           TC       PHASCHNG                              
056230,000624: 13,3211           04022                           OCT      04022                                 
056231,000625: 13,3212           05546                           TC       UPFLAG                                #  PHASE CHANGE HAS OCCURRED BETWEEN
056232,000626: 13,3213           00236                           ADRES    REINTFLG                              #  INTSTALL AND INTWAKE
056233,000627: 13,3214           06006                           TC       INTPRET                               
056234,000628: 13,3215           77731                           SSP                                            
056235,000629: 13,3216           00053                                    QPRET                                 
056236,000630: 13,3217           27224                                    PHEXIT                                
056237,000631: 13,3220           52014                           BON      GOTO                                  
056238,000632: 13,3221           01714                                    VINTFLAG                              
056239,000633: 13,3222           26705                                    ATOPCSM                               

Page 1321

056241,000635: 13,3223           26760                                    ATOPLEM                               
056242,000636: 13,3224           77624        PHEXIT             CALL                                           
056243,000637: 13,3225           56750                                    GRP2PC                                
056244,000638: 13,3226           45001        RECTOUT            SETPD    CALL                                  
056245,000639: 13,3227           00001                                    0                                     
056246,000640: 13,3230           23421                                    RECTIFY                               
056247,000641: 13,3231           53775                           VLOAD    VSL*                                  
056248,000642: 13,3232           01503                                    RRECT                                 
056249,000643: 13,3233           57576                                    0,2                                   
056250,000644: 13,3234           53715                           PDVL     VSL*                                  #  RATT TO PD0
056251,000645: 13,3235           01511                                    VRECT                                 
056252,000646: 13,3236           57576                                    0,2                                   
056253,000647: 13,3237           63325                           PDDL     PDVL                                  #  VATT TO PD6   TAT TO PD12
056254,000648: 13,3240           01517                                    TET                                   
056255,000649: 13,3241           01503                                    RRECT                                 
056256,000650: 13,3242           64715                           PDVL     PDDL*                                 
056257,000651: 13,3243           01511                                    VRECT                                 
056258,000652: 13,3244           50042                                    MUEARTH,2                             
056259,000653: 13,3245           76006                           PUSH     AXT,1                                 
056260,000654: 13,3246           77765                           DEC      -10        B-14                       
056261,000655: 13,3247           76014                           BON      AXT,1                                 
056262,000656: 13,3250           00303                                    MOONFLAG                              
056263,000657: 13,3251           27253                                    +2                                    
056264,000658: 13,3252           77775                           DEC      -2         B-14                       
056265,000659: 13,3253           40001        INTEXIT            SETPD    BOV                                   
056266,000660: 13,3254           00001                                    0                                     
056267,000661: 13,3255           27256                                    +1                                    
056268,000662: 13,3256           77614                           CLEAR                                          
056269,000663: 13,3257           04675                                    MIDAVFLG                              
056270,000664: 13,3260           43014                           CLEAR    CLEAR                                 
056271,000665: 13,3261           04676                                    AVEMIDSW                              #  ALLOW UPDATE OF DOWNLINK STATE VECTOR
056272,000666: 13,3262           01667                                    PRECIFLG                              
056273,000667: 13,3263           77535                           SLOAD    EXIT                                  
056274,000668: 13,3264           02215                                    IRETURN                               
056275,000669: 13,3265           30154                           CA       MPAC                                  
056276,000670: 13,3266           50120                           INDEX    FIXLOC                                
056277,000671: 13,3267           54052                           TS       QPRET                                 
056278,000672: 13,3270           03457                           TC       INTWAKE                               
056279,000673: 
056280,000674:                                                                                                  #  RVCON SETS UP ORBIT INTEGRATION TO DO A CONIC SOLUTION FOR POSITION AND
056281,000675:                                                                                                  #  VELOCITY FOR THE INTERVAL (TET-TDEC)
056282,000676: 
056283,000677: 13,3271           45345        RVCON              DLOAD    DSU                                   
056284,000678: 13,3272           01101                                    TDEC                                  
056285,000679: 13,3273           01517                                    TET                                   
056286,000680: 13,3274           36312                           STCALL   TAU.                                  
056287,000681: 13,3275           23421                                    RECTIFY                               
056288,000682: 13,3276           77624                           CALL                                           
056289,000683: 13,3277           22372                                    KEPPREP                               
056290,000684: 13,3300           43345                           DLOAD    DAD                                   
056291,000685: 13,3301           01551                                    TC                                    

Page 1322

056293,000687: 13,3302           01517                                    TET                                   
056294,000688: 13,3303           35517                           STCALL   TET                                   
056295,000689: 13,3304           27226                                    RECTOUT                               
056296,000690: 

Page 1323

056298,000692:                                                                                                  #  TESTLOOP
056299,000693: 
056300,000694: 13,3305           43014        TESTLOOP           BOF      CLRGO                                 
056301,000695: 13,3306           04752                                    QUITFLAG                              
056302,000696: 13,3307           27312                                    +3                                    
056303,000697: 13,3310           01632                                    STATEFLG                              
056304,000698: 13,3311           27253                                    INTEXIT                               #  STOP INTEGRATION
056305,000699: 13,3312           73001                 +3        SETPD    LXA,2                                 
056306,000700: 13,3313           00013                                    10D                                   
056307,000701: 13,3314           02150                                    PBODY                                 
056308,000702: 13,3315           51575                           VLOAD    ABVAL                                 
056309,000703: 13,3316           01535                                    RCV                                   
056310,000704: 13,3317           43006                           PUSH     CLEAR                                 #  RC TO 10D
056311,000705: 13,3320           00262                                    MIDFLAG                               
056312,000706: 13,3321           50023                           DSU*     BMN                                   #  MIDFLAG=0 IF R G.T. RMP
056313,000707: 13,3322           67212                                    RME,2                                 
056314,000708: 13,3323           27326                                    +3                                    
056315,000709: 13,3324           77614                           SET                                            
056316,000710: 13,3325           00062                                    MIDFLAG                               
056317,000711: 13,3326           41345        NORFINAL           DLOAD    DMP                                   
056318,000712: 13,3327           00013                                    10D                                   
056319,000713: 13,3330           00043                                    34D                                   
056320,000714: 13,3331           55762                           SR1R     DDV*                                  
056321,000715: 13,3332           50042                                    MUEARTH,2                             
056322,000716: 13,3333           41366                           SQRT     DMP                                   
056323,000717: 13,3334           23752                                    .3D                                   
056324,000718: 13,3335           40442                           SR3      SR4                                   #  DT IS TRUNCATED TO A MULTIPLE
056325,000719: 13,3336           54345                           DLOAD    SL                                    
056326,000720: 13,3337           00155                                    MPAC                                  
056327,000721: 13,3340           20220                                    15D                                   #        OF 128 CSECS.
056328,000722: 13,3341           40006                           PUSH     BOV                                   
056329,000723: 13,3342           27367                                    MAXDT                                 
056330,000724: 13,3343           50021                           BDSU     BMN                                   
056331,000725: 13,3344           27441                                    DT/2MAX                               
056332,000726: 13,3345           27367                                    MAXDT                                 
056333,000727: 13,3346           45345        DT/2COMP           DLOAD    DSU                                   
056334,000728: 13,3347           01101                                    TDEC                                  
056335,000729: 13,3350           01517                                    TET                                   
056336,000730: 13,3351           54234                           RTB      SL                                    
056337,000731: 13,3352           45544                                    SGNAGREE                              
056338,000732: 13,3353           20211                                    8D                                    
056339,000733: 13,3354           02314                           STORE    DT/2                                  #  B-19
056340,000734: 13,3355           51400                           BOV      ABS                                   
056341,000735: 13,3356           27373                                    GETMAXDT                              
056342,000736: 13,3357           50025                           DSU      BMN                                   #  IS TIME TO INTEG. TO GR THAN MAXTIME
056343,000737: 13,3360           00015                                    12D                                   
056344,000738: 13,3361           27377                                    P00HCHK                               
056345,000739: 13,3362           75345        USEMAXDT           DLOAD    SIGN                                  
056346,000740: 13,3363           00015                                    12D                                   
056347,000741: 13,3364           02314                                    DT/2                                  

Page 1324

056349,000743: 13,3365           36314                           STCALL   DT/2                                  
056350,000744: 13,3366           27377                                    P00HCHK                               
056351,000745: 13,3367           65345        MAXDT              DLOAD    PDDL                                  #  EXCHANGE DT/2MAX WITH COMPUTED MAX.
056352,000746: 13,3370           27441                                    DT/2MAX                               
056353,000747: 13,3371           77650                           GOTO                                           
056354,000748: 13,3372           27346                                    DT/2COMP                              
056355,000749: 13,3373           77634        GETMAXDT           RTB                                            
056356,000750: 13,3374           45712                                    SIGNMPAC                              
056357,000751: 13,3375           36314                           STCALL   DT/2                                  
056358,000752: 13,3376           27362                                    USEMAXDT                              
056359,000753: 13,3377           51545        P00HCHK            DLOAD    ABS                                   
056360,000754: 13,3400           02314                                    DT/2                                  
056361,000755: 13,3401           50025                           DSU      BMN                                   
056362,000756: 13,3402           27437                                    DT/2MIN                               
056363,000757: 13,3403           27176                                    A-PCHK                                
056364,000758: 13,3404           46135                           SLOAD    BHIZ                                  
056365,000759: 13,3405           01012                                    MODREG                                
056366,000760: 13,3406           27411                                    +3                                    
056367,000761: 13,3407           77650                           GOTO                                           
056368,000762: 13,3410           23240                                    TIMESTEP                              
056369,000763: 13,3411           77614                           BON                                            #  WAS THIS CALL VIA CSM(LEM)PREC
056370,000764: 13,3412           01707                                    PRECIFLG                              
056371,000765: 13,3413           23240                                    TIMESTEP                              #  YES
056372,000766: 13,3414           45345                           DLOAD    DSU                                   
056373,000767: 13,3415           02314                                    DT/2                                  
056374,000768: 13,3416           00015                                    12D                                   
056375,000769: 13,3417           43040                           BMN      BOFCLR                                
056376,000770: 13,3420           27176                                    A-PCHK                                
056377,000771: 13,3421           04242                                    NEWIFLG                               
056378,000772: 13,3422           23240                                    TIMESTEP                              
056379,000773: 13,3423           45345                           DLOAD    DSU                                   
056380,000774: 13,3424           01101                                    TDEC                                  
056381,000775: 13,3425           01517                                    TET                                   
056382,000776: 13,3426           77640                           BMN                                            #  NO BACKWARD INTEGRATION
056383,000777: 13,3427           27253                                    INTEXIT                               
056384,000778: 13,3430           40525                           PDDL     SR4                                   
056385,000779: 13,3431           02314                                    DT/2                                  #  IS 4(DT) LS (TDEC - TET)
056386,000780: 13,3432           44322                           SR2R     BDSU                                  #  NO
056387,000781: 13,3433           52040                           BMN      GOTO                                  
056388,000782: 13,3434           27253                                    INTEXIT                               
056389,000783: 13,3435           23240                                    TIMESTEP                              
056390,000784: 13,3436           00000 01400  DT/2MIN            2DEC     3          B-20                       
056391,000785: 
056392,000786: 13,3440           14152 00000  DT/2MAX            2DEC     4000       E2         B-20            
056393,000787: 
056394,000788: 13,3442           77776        INTSTALL           EXIT                                           
056395,000789: 13,3443           35021                           CAF      ZERO                                  
056396,000790: 13,3444           54001        ALLSTALL           TS       L                                     
056397,000791: 13,3445           30106                           CA       RASFLAG                               
056398,000792: 13,3446           50001                           INDEX    L                                     

Page 1325

056400,000794: 13,3447           73540                           MASK     INTBITAB                              #  IS THIS STALL AREA FREE
056401,000795: 13,3450           00006                           EXTEND                                         
056402,000796: 13,3451           13516                           BZF      OKTOGRAB                              #  YES
056403,000797: 13,3452           50001                           INDEX    L                                     
056404,000798: 13,3453           33535                           CAF      WAKESTAL                              
056405,000799: 13,3454           05175                           TC       JOBSLEEP                              
056406,000800: 13,3455           77776        INTWAKE0           EXIT                                           
056407,000801: 13,3456           13477                           TCF      INTWAKE1                              
056408,000802: 
056409,000803: 13,3457           40106        INTWAKE            CS       RASFLAG                               #  IS THIS INTSTALLED ROUTINE TO BE
056410,000804: 13,3460           75011                           MASK     REINTBIT                              #        RESTARTED
056411,000805: 13,3461           10000                           CCS      A                                     
056412,000806: 13,3462           03477                           TC       INTWAKE1                              #  NO
056413,000807: 
056414,000808: 13,3463           50120                           INDEX    FIXLOC                                
056415,000809: 13,3464           30052                           CA       QPRET                                 
056416,000810: 13,3465           55055                           TS       TBASE2                                #  YES, DONT RESTART WITH SOMEONE ELSES Q
056417,000811: 
056418,000812: 13,3466           05412                           TC       PHASCHNG                              
056419,000813: 13,3467           04022                           OCT      04022                                 
056420,000814: 
056421,000815: 13,3470           31055                           CA       TBASE2                                
056422,000816: 13,3471           50120                           INDEX    FIXLOC                                
056423,000817: 13,3472           54052                           TS       QPRET                                 
056424,000818: 
056425,000819: 13,3473           35011                           CAF      REINTBIT                              
056426,000820: 13,3474           70106                           MASK     RASFLAG                               
056427,000821: 13,3475           00006                           EXTEND                                         
056428,000822: 13,3476           13521                           BZF      GOBAC                                 #  DONT INTWAKE IF WE CAME HERE VIA RESTART
056429,000823: 
056430,000824: 13,3477           35021        INTWAKE1           CAF      ZERO                                  
056431,000825: 13,3500           54154        WAKE               TS       STALTEM                               #  INDEX OF ANY STALL USER
056432,000826: 13,3501           50154        WAKE1              INDEX    STALTEM                               
056433,000827: 13,3502           33535                           CAF      WAKESTAL                              
056434,000828: 13,3503           00004                           INHINT                                         
056435,000829: 13,3504           05201                           TC       JOBWAKE                               
056436,000830: 13,3505           10064                           CCS      LOCCTR                                
056437,000831: 13,3506           13501                           TCF      WAKE1                                 #  MAY BE MORE TO WAKE UP
056438,000832: 13,3507           00051        FORTYONE           DEC      41         B-14                       
056439,000833: 13,3510           50154                           INDEX    STALTEM                               
056440,000834: 13,3511           43540                           CS       INTBITAB                              
056441,000835: 13,3512           70106                           MASK     RASFLAG                               
056442,000836: 13,3513           54106                           TS       RASFLAG                               #  RELEASE STALL AREA
056443,000837: 13,3514           00003                           RELINT                                         
056444,000838: 13,3515           13521                           TCF      GOBAC                                 
056445,000839: 13,3516           50001        OKTOGRAB           INDEX    L                                     #  NO, WAIT UNTIL AVAILABLE
056446,000840: 13,3517           35002                           CAF      INTFLBIT                              
056447,000841: 13,3520           26106                           ADS      RASFLAG                               
056448,000842: 13,3521           06006        GOBAC              TC       INTPRET                               
056449,000843: 13,3522           77616                           RVQ                                            

Page 1326

056451,000845: 13,3523           77776        ERASTAL1           EXIT                                           
056452,000846: 13,3524           35017                           CAF      ONE                                   
056453,000847: 13,3525           13444                           TCF      ALLSTALL                              
056454,000848: 13,3526           77776        ERASTAL2           EXIT                                           
056455,000849: 13,3527           35016                           CAF      TWO                                   
056456,000850: 13,3530           13444                           TCF      ALLSTALL                              
056457,000851: 13,3531           35017        ERASWAK1           CAF      ONE                                   
056458,000852: 13,3532           13500                           TCF      WAKE                                  
056459,000853: 13,3533           35016        ERASWAK2           CAF      TWO                                   
056460,000854: 13,3534           13500                           TCF      WAKE                                  
056461,000855: 13,3535           27443        WAKESTAL           CADR     INTSTALL   +1                         
056462,000856: 13,3536           27524                           CADR     ERASTAL1   +1                         
056463,000857: 13,3537           27527                           CADR     ERASTAL2   +1                         
056464,000858: 13,3540     0154               STALTEM            EQUALS   MPAC                                  
056465,000859: 13,3540           20100        INTBITAB           OCT      20100                                 
056466,000860: 13,3541           10040                           OCT      10040                                 
056467,000861: 13,3542           04020                           OCT      04020                                 
056468,000862: 

Page 1327

056470,000864:                                                                                                  #  AVETOMID
056471,000865: 
056472,000866:                                                                                                  #  THIS ROUTINE PERFORMS THE TRANSITION FROM A THRUSTING PHASE TO THE COAST
056473,000867:                                                                                                  #  PHASE BY INITIALIZING THIS VEHICLES PERMANENT STATE VECTOR WITH THE
056474,000868:                                                                                                  #  VALUES LEFT BY THE AVERAGEG ROUTINE IN RN,VN,PIPTIME.
056475,000869: 
056476,000870:                                                                                                  #  BEFORE THIS IS DONE THE W-MATRIX, IF ITS VALID (ORWFLAG OR RENDWFLG IS
056477,000871:                                                                                                  #  SET) IS INTEGRATED FORWARD TO PIPTIME WITH THE PRE-THRUST STATE VECTOR.
056478,000872: 
056479,000873:                                                                                                  #  IN ADDITION, THE OTHER VEHICLE IS INTEGRATED (PERMANENT) TO PIPTIME.
056480,000874: 
056481,000875:                                                                                                  #  FINALLY TRKMKCNT IS ZEROED
056482,000876: 
056483,000877: 35,2000                                           SETLOC   INTINIT2                              
056484,000878: 35,2000                                           BANK                                           
056485,000879: 
056486,000880: 35,3702                                           COUNT*   $$/INTIN                              
056487,000881: 35,3702           43020        AVETOMID           STQ      BON                                   
056488,000882: 35,3703           02317                                    EGRESS                                
056489,000883: 35,3704           02716                                    RENDWFLG                              
056490,000884: 35,3705           73760                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
056491,000885: 35,3706           77614                           BON                                            
056492,000886: 35,3707           01711                                    ORBWFLAG                              
056493,000887: 35,3710           73760                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
056494,000888: 
056495,000889: 35,3711           45174        SETCOAST           AXT,2    CALL                                  #  NOW MOVE PROPERLY SCALED RN,VN AND
056496,000890: 35,3712           00002                                    2                                     #  PIPTIME TO INTEGRATION ERASABLES.
056497,000891: 35,3713           27442                                    INTSTALL                              
056498,000892: 35,3714           77014                           BON      AXT,2                                 
056499,000893: 35,3715           00315                                    AMOONFLG                              
056500,000894: 35,3716           73720                                    +2                                    
056501,000895: 35,3717           00000                                    0                                     
056502,000896: 35,3720           53775                           VLOAD    VSR*                                  
056503,000897: 35,3721           01171                                    RN                                    
056504,000898: 35,3722           57176                                    0,2                                   
056505,000899: 35,3723           01503                           STORE    RRECT                                 
056506,000900: 35,3724           15535                           STODL    RCV                                   
056507,000901: 35,3725           01205                                    PIPTIME                               
056508,000902: 35,3726           25517                           STOVL    TET                                   
056509,000903: 35,3727           01177                                    VN                                    
056510,000904: 35,3730           45057                           VSR*     CALL                                  
056511,000905: 35,3731           57176                                    0,2                                   
056512,000906: 35,3732           23435                                    MINIRECT                              #  FINISH SETTING UP STATE VECTOR
056513,000907: 35,3733           66234                           RTB      SSP                                   
056514,000908: 35,3734           26720                                    MOVATHIS                              #  PUT TEMP STATE VECTOR INTO PERMANENT
056515,000909: 35,3735           01127                                    TRKMKCNT                              
056516,000910: 35,3736           00000                                    0                                     
056517,000911: 35,3737           43014                           SET      BON                                   
056518,000912: 35,3740           04063                                    CMOONFLG                              

Page 1328

056520,000914: 35,3741           00315                                    AMOONFLG                              
056521,000915: 35,3742           73745                                    +3                                    
056522,000916: 35,3743           77614                           CLEAR                                          
056523,000917: 35,3744           04263                                    CMOONFLG                              
056524,000918: 
056525,000919: 35,3745           71214                           BON      DLOAD                                 #  NOW DO LM
056526,000920: 35,3746           04307                                    SURFFLAG                              
056527,000921: 35,3747           75737                                    FAZAB5                                #  NO COASTING LM
056528,000922: 35,3750           01205                                    PIPTIME                               
056529,000923: 35,3751           34041                           STCALL   TDEC1                                 
056530,000924: 35,3752           26670                                    SETIFLGS                              
056531,000925: 35,3753           45014                           CLEAR    CALL                                  
056532,000926: 35,3754           01674                                    VINTFLAG                              
056533,000927: 35,3755           27162                                    INTEGRV                               
056534,000928: 35,3756           77650                           GOTO                                           
056535,000929: 35,3757           02317                                    EGRESS                                
056536,000930: 35,3760           45145        INT/W              DLOAD    CALL                                  
056537,000931: 35,3761           01205                                    PIPTIME                               #  INTEGRATE W THRU BURN
056538,000932: 35,3762           27442                                    INTSTALL                              
056539,000933: 35,3763           43014                           SET      SET                                   
056540,000934: 35,3764           01476                                    DIM0FLAG                              #  DO W-MATRIX
056541,000935: 35,3765           04476                                    AVEMIDSW                              #  SO WONT CLOBBER RN,VN,PIPTIME
056542,000936: 35,3766           43014                           CLEAR    SET                                   
056543,000937: 35,3767           01675                                    D6OR9FLG                              
056544,000938: 35,3770           01474                                    VINTFLAG                              
056545,000939: 35,3771           34041                           STCALL   TDEC1                                 
056546,000940: 35,3772           27162                                    INTEGRV                               
056547,000941: 35,3773           77650                           GOTO                                           
056548,000942: 35,3774           73711                                    SETCOAST                              
056549,000943: 

Page 1329

056551,000945:                                                                                                  #  MIDTOAV1
056552,000946: 
056553,000947:                                                                                                  #  THIS ROUTINE INTEGRATES (PRECISION) TO THE TIME SPECIFIED IN TDEC1.
056554,000948:                                                                                                  #  IF, AT THE END OF AN INTEGRATION TIME STEP, CURRENT TIME PLUS A DELTA
056555,000949:                                                                                                  #  TIME (SEE TIMEDELT.....BASED ON THE COMPUTATUON TIME FOR ONE TIME STEP)
056556,000950:                                                                                                  #  IS GREATER THAN THE DESIRED TIME, ALARM 1703 IS SET AND THE INTEGRATION
056557,000951:                                                                                                  #  IS DONE AS IT IS FOR MIDTOAV2.
056558,000952:                                                                                                  #  RETURN IS IN BASIC TO THE RETURN ADDRESS PLUS ONE.
056559,000953: 
056560,000954:                                                                                                  #  IF THE INTEGRATION IS FINISHED TO THE DESIRED TIME, RETURN IS IN BASIC
056561,000955:                                                                                                  #  TO THE RETURN ADDRESS
056562,000956: 
056563,000957:                                                                                                  #  IN EITHER CASE, BEFORE RETURNING, THE EXTRAPOLATED STATE VECTOR IS TRAN
056564,000958:                                                                                                  #  FERRED FROM R,VATT TO R,VN1-PIPTIME1 IS SET TO THE FINISHING INTEGRA-
056565,000959:                                                                                                  #  TION TIME AND MPAC IS SET TO THE DELTA TIME---
056566,000960:                                                                                                  #                                    TAT MINUS CURRENT TIME.
056567,000961: 
056568,000962:                                                                                                  #  MIDTOAV2
056569,000963: 
056570,000964:                                                                                                  #  THIS ROUTINE INTEGRATES THE CSM STATE VECTOR TO CURRENT TIME PLUS
056571,000965:                                                                                                  #  INCREMENTS OF TIMEDELT SUCH THAT THE DIFFERENCE BETWEEN CURRENT TIME
056572,000966:                                                                                                  #  AND THE STATE VECTOR TIME AT THE END OF THE LAST STEP IS AT LEAST 5.6
056573,000967:                                                                                                  #  SECS.
056574,000968:                                                                                                  #  NO INPUTS ARE REQUIRED OF THE CALLER.  RETURN IS IN BASIC TO THE RETURN
056575,000969:                                                                                                  #  ADDRESS WITH THE ABOVE TRANSFERS TO R,VN1-PIPTIME1-AND MPAC DONE
056576,000970: 
056577,000971: 13,2000                                           SETLOC   INTINIT                               
056578,000972: 13,2000                                           BANK                                           
056579,000973: 13,3543     1127                                  EBANK=   IRETURN1                              
056580,000974: 13,3543           45020        MIDTOAV2           STQ      CALL                                  
056581,000975: 13,3544           01127                                    IRETURN1                              
056582,000976: 13,3545           27442                                    INTSTALL                              
056583,000977: 13,3546           43145                           DLOAD    CLEAR                                 
056584,000978: 13,3547           27711                                    TIMEDELT                              
056585,000979: 13,3550           04674                                    MID1FLAG                              
056586,000980: 13,3551           37732                           STCALL   T-TO-ADD                              
056587,000981: 13,3552           27567                                    ENTMID2                               
056588,000982: 
056589,000983: 13,3553           45020        MIDTOAV1           STQ      CALL                                  
056590,000984: 13,3554           01127                                    IRETURN1                              
056591,000985: 13,3555           27442                                    INTSTALL                              
056592,000986: 13,3556           47014                           SET      RTB                                   
056593,000987: 13,3557           04474                                    MID1FLAG                              
056594,000988: 13,3560           45510                                    LOADTIME                              
056595,000989: 13,3561           44215                           DAD      BDSU                                  #  INITIAL CHECK, IS TDEC1 IN THE FUTURE.
056596,000990: 13,3562           27711                                    TIMEDELT                              
056597,000991: 13,3563           00041                                    TDEC1                                 
056598,000992: 13,3564           45044                           BPL      CALL                                  
056599,000993: 13,3565           27573                                    ENTMID1                               

Page 1330

056601,000995: 13,3566           27674                                    NOTIME                                #  NO SET ALARM.SWITCH TO MIDTOAV2
056602,000996: 
056603,000997: 13,3567           43234        ENTMID2            RTB      DAD                                   
056604,000998: 13,3570           45510                                    LOADTIME                              
056605,000999: 13,3571           03732                                    T-TO-ADD                              
056606,001000: 13,3572           00041                           STORE    TDEC1                                 
056607,001001: 
056608,001002: 13,3573           45014        ENTMID1            CLEAR    CALL                                  
056609,001003: 13,3574           01676                                    DIM0FLAG                              #  NO W-MATRIX
056610,001004: 13,3575           26034                                    THISVINT                              
056611,001005: 13,3576           43014                           CLEAR    SET                                   
056612,001006: 13,3577           01673                                    INTYPFLG                              
056613,001007: 13,3600           04475                                    MIDAVFLG                              #  LET INTEG. KNOW THE CALL IS FOR MIDTOAV.
056614,001008: 13,3601           77624                           CALL                                           
056615,001009: 13,3602           27162                                    INTEGRV                               #  GO INTEGRATE
056616,001010: 13,3603           66134                           SXA,2    SXA,1                                 
056617,001011: 13,3604           03746                                    RTX2                                  
056618,001012: 13,3605           03745                                    RTX1                                  
056619,001013: 13,3606           67214                           CLEAR    SLOAD                                 
056620,001014: 13,3607           00275                                    AMOONFLG                              
056621,001015: 13,3610           03747                                    RTX2                                  
056622,001016: 13,3611           43054                           BZE      SET                                   
056623,001017: 13,3612           27614                                    +2                                    
056624,001018: 13,3613           00075                                    AMOONFLG                              
056625,001019: 13,3614           77775                           VLOAD                                          
056626,001020: 13,3615           00001                                    RATT                                  
056627,001021: 13,3616           25232                           STOVL    RN1                                   
056628,001022: 13,3617           00007                                    VATT                                  
056629,001023: 13,3620           15240                           STODL    VN1                                   
056630,001024: 13,3621           00015                                    TAT                                   
056631,001025: 13,3622           01246                           STORE    PIPTIME1                              
056632,001026: 13,3623           77776                           EXIT                                           
056633,001027: 
056634,001028: 13,3624           00004                           INHINT                                         
056635,001029: 13,3625           00006                           EXTEND                                         
056636,001030: 13,3626           40025                           DCS      TIME2                                 
056637,001031: 13,3627           20155                           DAS      MPAC                                  
056638,001032: 13,3630           07226                           TC       TPAGREE                               
056639,001033: 
056640,001034: 13,3631           31127                           CA       IRETURN1                              
056641,001035: 13,3632           04704                           TC       BANKJUMP                              
056642,001036: 13,3633           47014        CKMID2             BOF      RTB                                   
056643,001037: 13,3634           04754                                    MID1FLAG                              
056644,001038: 13,3635           27652                                    MID2                                  
056645,001039: 13,3636           45510                                    LOADTIME                              
056646,001040: 13,3637           44215                           DAD      BDSU                                  
056647,001041: 13,3640           27711                                    TIMEDELT                              
056648,001042: 13,3641           01101                                    TDEC                                  
056649,001043: 13,3642           45044                           BPL      CALL                                  
056650,001044: 13,3643           27305                                    TESTLOOP                              #  YES

Page 1331

056652,001046: 13,3644           27674                                    NOTIME                                
056653,001047: 
056654,001048: 13,3645           43234        TIMEINC            RTB      DAD                                   
056655,001049: 13,3646           45510                                    LOADTIME                              
056656,001050: 13,3647           03732                                    T-TO-ADD                              
056657,001051: 13,3650           35101                           STCALL   TDEC                                  
056658,001052: 13,3651           27305                                    TESTLOOP                              
056659,001053: 
056660,001054: 13,3652           45345        MID2               DLOAD    DSU                                   
056661,001055: 13,3653           01101                                    TDEC                                  
056662,001056: 13,3654           01517                                    TET                                   
056663,001057: 13,3655           45246                           ABS      DSU                                   
056664,001058: 13,3656           27707                                    3CSECS                                
056665,001059: 13,3657           77644                           BPL                                            
056666,001060: 13,3660           27645                                    TIMEINC                               
056667,001061: 
056668,001062: 13,3661           44234                           RTB      BDSU                                  #  SEE IF 5.6 SECS. AVAILABLE TO CALLER.
056669,001063: 13,3662           45510                                    LOADTIME                              
056670,001064: 13,3663           01517                                    TET                                   
056671,001065: 13,3664           51025                           DSU      BPL                                   
056672,001066: 13,3665           27713                                    5.6SECS                               
056673,001067: 13,3666           27176                                    A-PCHK                                #  YES,GET OUT.
056674,001068: 
056675,001069: 13,3667           43345                           DLOAD    DAD                                   #  NO,ADD TIMEDELT TO T-TO-ADD AND TRY
056676,001070: 13,3670           03732                                    T-TO-ADD                              #  AGAIN.
056677,001071: 13,3671           27711                                    TIMEDELT                              
056678,001072: 13,3672           37732                           STCALL   T-TO-ADD                              
056679,001073: 13,3673           27645                                    TIMEINC                               
056680,001074: 13,3674           77414        NOTIME             CLEAR    EXIT                                  #  TOO LATE
056681,001075: 13,3675           04674                                    MID1FLAG                              
056682,001076: 13,3676           25127                           INCR     IRETURN1                              #  SET ERROR EXIT (CALLOC +2)
056683,001077: 13,3677           05650                           TC       ALARM                                 #  INSUFFICIENT TIME FOR INTEGRATION --
056684,001078: 13,3700           01703                           OCT      1703                                  #        TIG WILL BE SLIPPED...
056685,001079: 13,3701           06006                           TC       INTPRET                               
056686,001080: 13,3702           77745                           DLOAD                                          
056687,001081: 13,3703           27711                                    TIMEDELT                              
056688,001082: 13,3704           03732                           STORE    T-TO-ADD                              
056689,001083: 13,3705           77616                           RVQ                                            
056690,001084: 
056691,001085: 13,3706           00000 00003  3CSECS             2DEC     3          B-28                       
056692,001086: 
056693,001087: 13,3710           00000 02342  TIMEDELT           2DEC     1250       B-28                       
056694,001088: 
056695,001089: 13,3712           00000 01060  5.6SECS            2DEC     560        B-28                       
056696,001090: 
056697,001091: 27,2671                                           BANK     27                                    
056698,001092: 27,2000                                           SETLOC   UPDATE2                               
056699,001093: 27,2000                                           BANK                                           
056700,001094: 27,2671     0330                                  EBANK=   INTWAKUQ                              
056701,001095: 

Page 1332

056703,001097: 27,2671                                           COUNT*   $$/INTIN                              
056704,001098: 
056705,001099: 27,2671     0330               INTWAKUQ           =        INTWAK1Q                              #  TEMPORARY UNTIL NAME OF INTWAK1Q IS CHNG
056706,001100: 
056707,001101: 27,2671           00003        INTWAKEU           RELINT                                         
056708,001102: 27,2672           00006                           EXTEND                                         
056709,001103: 27,2673           22330                           QXCH     INTWAKUQ                              #  SAVE Q FOR RETURN
056710,001104: 
056711,001105: 27,2674           06006                           TC       INTPRET                               
056712,001106: 
056713,001107: 27,2675           53135                           SLOAD    BZE                                   #  IS THIS A CSM/LEM STATE VECTOR UPDATE
056714,001108: 27,2676           01502                                    UPSVFLAG                              #  REQUEST.  IF NOT GO TO INTWAKUP.
056715,001109: 27,2677           56736                                    INTWAKUP                              
056716,001110: 
056717,001111: 27,2700           77775                           VLOAD                                          #  MOVE RRECT(6) AND VRECT(6) INTO
056718,001112: 27,2701           01503                                    RRECT                                 #        RCV(6) AND VCV(6) RESPECTIVELY.
056719,001113: 27,2702           25535                           STOVL    RCV                                   
056720,001114: 27,2703           01511                                    VRECT                                 #  NOW GO TO 'RECTIFY +13D' TO
056721,001115: 27,2704           77624                           CALL                                           #  STORE VRECT INTO VCV AND ZERO OUT
056722,001116: 27,2705           23436                                    RECTIFY    +13D                       #  TDELTAV(6),TNUV(6),TC(2) AND XKEP(2)
056723,001117: 27,2706           51535                           SLOAD    ABS                                   #  COMPARE ABSOLUTE VALUE OF 'UPSVFLAG'
056724,001118: 27,2707           01502                                    UPSVFLAG                              #  TO 'UPDATE MOON STATE VECTOR CODE'
056725,001119: 27,2710           53025                           DSU      BZE                                   #  TO DETERMINE WHETHER THE STATE VECTOR TO
056726,001120: 27,2711           16747                                    UPMNSVCD                              #  BE UPDATED IS IN THE EARTH OR LUNAR
056727,001121: 27,2712           56717                                    INTWAKEM                              #  SPHERE OF INFLUENCE.........
056728,001122: 27,2713           43174                           AXT,2    CLRGO                                 #  EARTH SPHERE OF INFLUENCE.
056729,001123: 27,2714           00000                           DEC      0          B-14                       
056730,001124: 27,2715           00223                                    MOONFLAG                              
056731,001125: 27,2716           56722                                    INTWAKEC                              
056732,001126: 27,2717           43174        INTWAKEM           AXT,2    SET                                   #  LUNAR SPHERE OF INFLUENCE.
056733,001127: 27,2720           00002                           DEC      2          B-14                       
056734,001128: 27,2721           00063                                    MOONFLAG                              
056735,001129: 27,2722           50135        INTWAKEC           SLOAD    BMN                                   #  COMMON CODING AFTER X2 INITIALIZED AND
056736,001130:                                                                                                  #  MOONFLAG SET (OR CLEARED).
056737,001131: 27,2723           01502                                    UPSVFLAG                              #  IS THIS A REQUEST FOR A LEM OR CSM
056738,001132: 27,2724           56732                                    INTWAKLM                              #        STATE VECTOR UPDATE......
056739,001133: 27,2725           77624                           CALL                                           #  UPDATE CSM STATE VECTOR
056740,001134: 27,2726           26705                                    ATOPCSM                               
056741,001135: 
056742,001136: 27,2727           52014                           CLEAR    GOTO                                  
056743,001137: 27,2730           01671                                    ORBWFLAG                              
056744,001138: 27,2731           56734                                    INTWAKEX                              
056745,001139: 
056746,001140: 27,2732           77624        INTWAKLM           CALL                                           #  UPDATE LM STATE VECTOR
056747,001141: 27,2733           26760                                    ATOPLEM                               
056748,001142: 
056749,001143: 27,2734           77614        INTWAKEX           CLEAR                                          
056750,001144: 27,2735           02676                                    RENDWFLG                              
056751,001145: 
056752,001146: 27,2736           45131        INTWAKUP           SSP      CALL                                  #  REMOVE :UPDATE STATE VECTOR INDICATOR:

Page 1333

056754,001148: 27,2737           01502                                    UPSVFLAG                              
056755,001149: 27,2740           00000                                    0                                     
056756,001150: 27,2741           27455                                    INTWAKE0                              #  RELEASE :GRAB: OF ORBIT INTEG
056757,001151: 27,2742           77776                           EXIT                                           
056758,001152: 
056759,001153: 27,2743           05412                           TC       PHASCHNG                              
056760,001154: 27,2744           04026                           OCT      04026                                 
056761,001155: 27,2745           00330                           TC       INTWAKUQ                              
056762,001156: 
056763,001157: 27,2746           00002        UPMNSVCD           OCT      2                                     
056764,001158: 27,2747           00000                           OCT      0                                     
056765,001159: 
056766,001160: 27,2750           77420        GRP2PC             STQ      EXIT                                  
056767,001161: 27,2751           03536                                    GRP2SVQ                               
056768,001162: 27,2752           05412                           TC       PHASCHNG                              
056769,001163: 27,2753           04022                           OCT      04022                                 
056770,001164: 27,2754           06006                           TC       INTPRET                               
056771,001165: 27,2755           77650                           GOTO                                           
056772,001166: 27,2756           03536                                    GRP2SVQ                               
056773,001167: 
056774,001168: 
056775,001169: 

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