Source Code

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

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

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
Comments expected to have been present in the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC Project's GitHub repository.

055508,000002:                                                                                                  ## Copyright:   Public domain.
055509,000003:                                                                                                  ## Filename:    INTEGRATION_INITIALIZATION.agc
055510,000004:                                                                                                  ## Purpose:     A section of Manche45 revision 2.
055511,000005:                                                                                                  ##              It is part of the reconstructed source code for the
055512,000006:                                                                                                  ##              final, flown release of the flight software for the Command
055513,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
055514,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
055515,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
055516,000010:                                                                                                  ##              exactly match those specified for Manche 45/2 in NASA drawing
055517,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
055518,000012:                                                                                                  ##              reconstruction is correct.
055519,000013:                                                                                                  ## Assembler:   yaYUL
055520,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
055521,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
055522,000016:                                                                                                  ## Mod history: 2020-12-24 MAS  Created from Comanche 45.
055523,000017: 

Page 1309

055525,000019:                                                                                                  #  1.0 INTRODUCTION
055526,000020:                                                                                                  #  ----------------
055527,000021: 
055528,000022:                                                                                                  #  FROM A USERS POINT OF VIEW, ORBITAL INTEGRATION IS ESSENTIALLY THE SAME AS THE 278 INTEGRATION
055529,000023:                                                                                                  #  PROGRAM.  THE SAME ENTRANCES TO THE PROGRAM WILL BE MAINTAINED, THE SAME STALLING ROUTINE WILL BE USED AND
055530,000024:                                                                                                  #  OUTPUT WILL STILL BE VIA THE PUSHLIST.  THE PRIMARY DIFFERENCES TO A USER INVOLVE THE ADDED CAPABILITY OF
055531,000025:                                                                                                  #  TERMINATING INTEGRATION AT A SPECIFIC FINAL RADIUS AND THE DIFFERENCE IN STATE VECTOR SCALING INSIDE AND OUT-
055532,000026:                                                                                                  #  SIDE THE LUNAR SPHERE OF INFLUENCE.
055533,000027: 
055534,000028:                                                                                                  #  IN ORDER TO MAKE THE CSM(LEM)PREC AND CSM(LEM)CONIC ENTRANCES SIMILAR TO FLIGHT 278, THE INTEGRATION PROGRAM
055535,000029:                                                                                                  #  WILL ITSELF SET THE FINAL RADIUS (RFINAL) TO 0 SO THAT REACHING THE DESIRED TIME ONLY WILL TERMINATE
055536,000030:                                                                                                  #  INTEGRATION.  THE DP REGISTER RFINAL MUST BE SET BY USERS OF INTEGRVS AND INTEGRV, AND MUST BE DONE AFTER THE
055537,000031:                                                                                                  #  CALL TC INTSTALL.
055538,000032: 
055539,000033:                                                                                                  #  WHEN THE LM IS ON THE LUNAR SURFACE (INDICATED BY LUNAR SURFACE FLAG SET) CALLS TO LEMCONIC, LEMPREC, AND
055540,000034:                                                                                                  #  INTEGRV WITH VINFLAG = 0 WILL RESULT IN THE USE OF THE PLANETARY INERTIAL ORIENTATION SUBROUTINES TO PROVIDE
055541,000035:                                                                                                  #  BOTH THE LMS POSITION AND VELOCITY IN THE REFERENCE COORDINATE SYSTEM.
055542,000036:                                                                                                  #  THE PROGRAM WILL PROVIDE OUTPUT AS IF INTEGRATION WAS USED.  THAT IS, THE PUSHLIST WILL BE SET AS NOTED BELOW AND
055543,000037:                                                                                                  #  THE PERMANENT STATE VECTOR UPDATED WHEN SPECIFIED BY AN INTEGRV CALL.
055544,000038: 
055545,000039:                                                                                                  #  USERS OF INTEGRVS DESIRING INTEGRATION (INTYPFLG = 0) SHOULD NOTE THAT THE OBLATENESS PERTURBATION COMPUTATION
055546,000040:                                                                                                  #  IN LUNAR ORBIT IS TIME DEPENDENT.  THEREFORE, THE USER SHOULD SUPPLY AN INITIAL STATE VECTOR VALID AT SOME REAL
055547,000041:                                                                                                  #  TIME AND THE DESIRED TIME (TDEC1) ALSO AT SOME REAL TIME.  FOR CONIC ,,INTEGRATION,, THE USER MAY STILL USE ZERO
055548,000042:                                                                                                  #  AS THE INITIAL TIME AND DELTA TIME AS THE DESIRED TIME.
055549,000043: 
055550,000044:                                                                                                  #  2.0 GENERAL DESCRIPTION
055551,000045:                                                                                                  #  -----------------------
055552,000046: 
055553,000047:                                                                                                  #  THE INTEGRATION PROGRAM OPERATES AS A CLOSED INTERPRETIVE SUBROUTINE AND PERFORMS THESE FUNCTIONS ---
055554,000048:                                                                                                  #        1) INTEGRATES (PRECISION OR CONIC) EITHER CSM OR LM STATE VECTOR
055555,000049:                                                                                                  #        2) INTEGRATES THE W-MATRIX
055556,000050:                                                                                                  #        3) PERMANENT OR TEMPORARY UPDATE OF THE STATE VECTOR
055557,000051: 
055558,000052:                                                                                                  #  THERE ARE SIX ENTRANCES TO THE INTEGRATION PROGRAM.  FOUR OF THESE (CSMPREC, LEMPREC, CSMCONIC, LEMCONIC) SET
055559,000053:                                                                                                  #  ALL THE FLAGS REQUIRED IN THE INTEGRATION PROGRAM ITSELF TO CAUSE THE PRECISION OR CONIC INTEGRATION (KEPLER) OF
055560,000054:                                                                                                  #  THE LM OR CSM STATE VECTOR, AS THE NAMES SUGGEST.  ONE ENTRANCE (INTEGRVS) PERMITS THE CALLING PROGRAM TO
055561,000055:                                                                                                  #  PROVIDE A STATE VECTOR TO BE INTEGRATED.  THE CALLING PROGRAM MUST SET THE FLAGS INDICATING (1) PRECISION OR
055562,000056:                                                                                                  #  CONIC INTEGRATION, (2) IN OR OUT OF LUNAR SPHERE, (3) MIDCOURSE OR NOT, AND THE INTEGRATION PROGRAM COMPLETES
055563,000057:                                                                                                  #  THE FLAG SETTING TO BYPASS W-MATRIX INTEGRATION.  THE LAST ENTRANCE (INTEGRV, USED IN GENERAL BY THE
055564,000058:                                                                                                  #  NAVIGATION PROGRAMS) PERMITS THE CALLER TO SET FIVE FLAGS (NOT MOONFLAG OR MIDFLAG) BUT NOT TO INPUT A STATE
055565,000059:                                                                                                  #  VECTOR.  ANY PROGRAM WHICH CALLS INTEGRVS OR INTEGRV MUST CALL INTSTALL BEFORE IT SETS THE INTEGRATION FLAGS
055566,000060:                                                                                                  #  AND/OR STATE VECTOR.
055567,000061: 
055568,000062:                                                                                                  #  THREE SETS OF 42 REGISTERS AND 2 FLAGS ARE USED FOR THE STATE VECTORS.  TWO SETS, WHICH MAY NOT BE OVERLAYED, ARE
055569,000063:                                                                                                  #  USED FOR THE PERMANENT STATE VECTORS FOR THE CSM AND LM.  THE THIRD SET, WHICH MAY BE OVERLAYED WHEN INTEGRATION
055570,000064:                                                                                                  #  IS NOT BEING DONE, IS USED IN THE COMPUTATIONS.
055571,000065: 
055572,000066:                                                                                                  #  THE PERMANENT STATE VECTORS WILL BE PERIODICALLY UPDATED SO THAT THE VECTORS WILL NOT BE OLDER THAN 4 TIMESTEPS.
055573,000067:                                                                                                  #  THE PERMANENT STATE VECTORS WILL ALSO BE UPDATED WHENEVER THE W-MATRIX IS INTEGRATED OR WHEN A CALLER OF INTEGRV
055574,000068:                                                                                                  #  SETS STATEFLG (THE NAVIGATION PROGRAMS P20, P22.)
055575,000069: 

Page 1310

055577,000071:                                                                                                  #  APPENDIX B OF THE USERS GUIDE LISTS THE STATE VECTOR QUANTITIES.
055578,000072: 
055579,000073:                                                                                                  #  2.1 RESTARTS
055580,000074: 
055581,000075:                                                                                                  #  PHASE CHANGES WILL BE MADE IN THE INTEGRATION PROGRAM ONLY FOR THE INTEGRV ENTRANCE (I.E., WHEN THE W-MATRIX IS
055582,000076:                                                                                                  #  INTEGRATED OR PERMANENT STATE VECTOR IS UPDATED.)  THE GROUP NUMBER USED WILL BE THAT FOR THE P20-25 PROGRAMS
055583,000077:                                                                                                  #  (I.E., GROUP2) SINCE THE INTEGRV ENTRANCE WILL ONLY BE USED BY THESE PROGRAMS.  IF A RESTART OCCURS DURING AN
055584,000078:                                                                                                  #  INTEGRATION OF THE STATE VECTOR ONLY, THE RECOVERY WILL BE TO THE LAST PHASE IN THE CALLING PROGRAM.  CALLING
055585,000079:                                                                                                  #  PROGRAMS WHICH USE THE INTEGRV OR INTEGRVS ENTRANCE OF INTEGRATION SHOULD ENSURE THAT IF PHASE CHANGING IS DONE
055586,000080:                                                                                                  #  THAT IT IS PRIOR TO SETTING THE INTEGRATION INPUTS IN THE PUSHLIST.
055587,000081:                                                                                                  #  THIS IS BECAUSE THE PUSHLIST IS LOST DURING A RESTART.
055588,000082: 
055589,000083:                                                                                                  #  2.2 SCALING
055590,000084: 
055591,000085:                                                                                                  #  THE INTEGRATION ROUTINE WILL MAINTAIN THE PERMANENT MEMORY STATE VECTORS IN THE SCALING AND UNITS DEFINED IN
055592,000086:                                                                                                  #  APPENDIX B OF THE USERS GUIDE.  THE SCALING OF THE OUTPUT POSITION VECTOR DEPENDS ON THE ORIGIN OF THE COORDINATE
055593,000087:                                                                                                  #  SYSTEM AT THE DESIRED INTEGRATION TIME.  THE COORDINATE SYSTEM TRANSFORMATION WILL BE DONE AUTOMATICALLY ON
055594,000088:                                                                                                  #  MULTIPLE TIMESTEP ENCKE INTEGRATION ONLY.  THUS IT IS POSSIBLE TO HAVE OUTPUT FROM SUCCESSIVE INTEGRATIONS IN
055595,000089:                                                                                                  #  DIFFERENT SCALING.
055596,000090:                                                                                                  #  HOWEVER, RATT, VATT WILL ALWAYS BE SCALED THE SAME.
055597,000091: 
055598,000092:                                                                                                  #  3.0 INPUT/OUTPUT
055599,000093:                                                                                                  #  ----------------
055600,000094: 
055601,000095:                                                                                                  #  PROGRAM INPUTS ARE THE FLAGS DESCRIBED IN APPENDIX A AND THE PERMANENT STATE VECTOR QUANTITIES DESCRIBED IN AP-
055602,000096:                                                                                                  #  PENDIX B OF THE USERS GUIDE, PLUS THE DESIRED TIME TO INTEGRATE TO IN TDEC1 (A PUSH LIST LOCATION).
055603,000097:                                                                                                  #  FOR INTEGRVS, THE RCV,VCV,TET OF THE TEMPORARY STATE VECTOR MUST BE SET, PLUS MOONFLAG AND MIDFLAG
055604,000098: 
055605,000099:                                                                                                  #  FOR SIMULATION THE FOLLOWING QUANTITIES MUST BE PRESET ---
055606,000100:                                                                                                  #                                                                                EARTH   MOON
055607,000101:                                                                                                  #                                                                                 29      27
055608,000102:                                                                                                  #        RRECTCSM(LEM)   -       RECTIFIED POSITION VECTOR       METERS          2       2
055609,000103: 
055610,000104:                                                                                                  #                                                                                 7       5
055611,000105:                                                                                                  #        VRECTCSM(LEM)   -       RECTIFIED VELOCITY VECTOR       M/CSEC          2       2
055612,000106: 
055613,000107:                                                                                                  #                                                                                 28      28
055614,000108:                                                                                                  #        TETCSM(LEM)     -       TIME STATE VECTOR IS VALID      CSEC            2       2
055615,000109:                                                                                                  #                                CUSTOMARILY 0, BUT NOTE LUNAR
055616,000110:                                                                                                  #                                ORBIT DEPENDENCE ON REAL TIME.
055617,000111: 
055618,000112:                                                                                                  #                                                                                 22      18
055619,000113:                                                                                                  #        DELTAVCSM(LEM)  -       POSITION DEVIATION              METERS          2       2
055620,000114:                                                                                                  #                                0 IF TCCSM(LEM) = 0
055621,000115: 
055622,000116:                                                                                                  #                                                                                 3       -1
055623,000117:                                                                                                  #        NUVCSM(LEM)     -       VELOCITY DEVIATION              M/CSEC          2       2
055624,000118:                                                                                                  #                                0 IF TCCSM(LEM) = 0

Page 1311

055626,000120:                                                                                                  #                                                                                 29      27
055627,000121:                                                                                                  #        RCVCSM(LEM)     -       CONIC POSITION                  METERS          2       2
055628,000122:                                                                                                  #                                EQUALS RRECTCSM(LEM) IF
055629,000123:                                                                                                  #                                TCCSM(LEM) = 0
055630,000124: 
055631,000125:                                                                                                  #                                                                                 7       5
055632,000126:                                                                                                  #        VCVCSM(LEM)     -       CONIC VELOCITY                  M/CSEC          2       2
055633,000127:                                                                                                  #                                EQUALS VRECTCSM(LEM) IF
055634,000128:                                                                                                  #                                TCCSM(LEM) = 0
055635,000129: 
055636,000130:                                                                                                  #                                                                                 28      28
055637,000131:                                                                                                  #        TCCSM(LEM)      -       TIME SINCE RECTIFICATION        CSECS           2       2
055638,000132:                                                                                                  #                                CUSTOMARILY 0
055639,000133: 
055640,000134:                                                                                                  #                                                                 1/2             17      16
055641,000135:                                                                                                  #        XKEPCSM(LEM)    -       ROOT OF KEPLERS EQUATION        M               2       2
055642,000136:                                                                                                  #                                0 IF TCCSM(LEM) = 0
055643,000137: 
055644,000138:                                                                                                  #        CMOONFLG        -       PERMANENT FLAGS CORRESPONDING                   0       0
055645,000139:                                                                                                  #        CMIDFLAG                TO MOONFLAG AND MIDFLAG                         0,1     0,1
055646,000140:                                                                                                  #        LMOONFLG                C = CSM, L = LM                                 0       0
055647,000141:                                                                                                  #        LMIDFLG                                                                 0,1     0,1
055648,000142: 
055649,000143:                                                                                                  #        SURFFLAG        -       LUNAR SURFACE FLAG                              0,1     0,1
055650,000144: 
055651,000145:                                                                                                  #  IN ADDITION, IF (L)CMIDFLAG IS SET, THE INITIAL INPUT VALUES FOR LUNAR
055652,000146:                                                                                                  #  SOLAR EPHEMERIDES SUBROUTINE AND PLANETARY INERTIAL ORIENTATION SUB-
055653,000147:                                                                                                  #  ROUTINE MUST BE PRESET.
055654,000148: 
055655,000149:                                                                                                  #  OUTPUT
055656,000150:                                                                                                  #        AFTER EVERY CALL TO INTEGRATION
055657,000151:                                                                                                  #                                                                        EARTH   MOON
055658,000152:                                                                                                  #                                                                         29      29
055659,000153:                                                                                                  #        0D      RATT    POSITION                        METERS          2       2
055660,000154: 
055661,000155:                                                                                                  #                                                                         7       7
055662,000156:                                                                                                  #        6D      VATT    VELOCITY                        M/CSEC          2       2
055663,000157: 
055664,000158:                                                                                                  #                                                                         28      28
055665,000159:                                                                                                  #        12D     TAT     TIME                                            2       2
055666,000160: 
055667,000161:                                                                                                  #                                                                         29      27
055668,000162:                                                                                                  #        14D     RATT1   POSITION                        METERS          2       2
055669,000163: 
055670,000164:                                                                                                  #                                                                         7       5
055671,000165:                                                                                                  #        20D     VATT1   VELOCITY                        M/CSEC          2       2
055672,000166: 
055673,000167:                                                                                                  #                                                         3   2           36      30
055674,000168:                                                                                                  #        26D     MU(P)   MU                              M /CS           2       2
055675,000169: 
055676,000170:                                                                                                  #        X1              MUTABLE ENTRY                                   -2      -10D
055677,000171: 
055678,000172:                                                                                                  #        X2              COORDINT
055679,000173:                                                                                                  #        X2              COORDINATE SYSTEM ORIGEN                        0       2
055680,000174:                                                                                                  #                        (THIS, NOT MOONFLAG, SHOULD BE

Page 1312

055682,000176:                                                                                                  #                        USED TO DETERMINE ORIGIN.)
055683,000177: 
055684,000178:                                                                                                  #  IN ADDITION TO THE ABOVE, THE PERMANENT STATE VECTOR IS UPDATED WHENEVER
055685,000179:                                                                                                  #  STATEFLG WAS SET AND WHENEVER A W-MATRIX IS TO BE INTEGRATED.  THE PUSH
055686,000180:                                                                                                  #  COUNTER IS SET TO 0 AND OVERFLOW IS CLEARED BEFORE RETURNING TO THE
055687,000181:                                                                                                  #  CALLING PROGRAM.
055688,000182: 
055689,000183:                                                                                                  #  4.0 CALLING SEQUENCES AND SAMPLE CODE
055690,000184:                                                                                                  #  -------------------------------------
055691,000185: 
055692,000186:                                                                                                  #        A) PRECISION ORBITAL INTEGRATION.  CSMPREC, LEMPREC ENTRANCES
055693,000187:                                                                                                  #                L-X     STORE TIME TO 95T5791T5 T 95 PUS L9ST (T4531)
055694,000188:                                                                                                  #                L       CALL
055695,000189:                                                                                                  #                L+1             CSMPREC (OR LEMPREC)
055696,000190:                                                                                                  #                L+2     RETURN
055697,000191:                                                                                                  #           INPUT                                                           28
055698,000192:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO...CENTISECONDS SCALED 2
055699,000193:                                                                                                  #           OUTPUT
055700,000194:                                                                                                  #                THE DATA LISTED IN SECTION 3.0 PLUS
055701,000195:                                                                                                  #                RQVV    POSITION VECTOR OF VEHICLE WITH RESPECT TO SECONDARY
055702,000196:                                                                                                  #                BODY... METERS B-29 ONLY IF MIDFLAG = DIMOFLAG = 1
055703,000197:                                                                                                  #        B) CONIC INTEGRATION.  CSMCONIC, LEMCONIC ENTRANCES
055704,000198:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1)
055705,000199:                                                                                                  #                L       CALL
055706,000200:                                                                                                  #                L+1             CSMCONIC (OR LEMCONIC)
055707,000201:                                                                                                  #           INPUT/OUTPUT
055708,000202:                                                                                                  #                SAME AS PRECISION INTEGRATION, EXCEPT RQVV NOT SET
055709,000203:                                                                                                  #        C) INTEGRATE GIVEN STATE VECTOR.  INTEGRVS ENTRANCE
055710,000204:                                                                                                  #                CALL
055711,000205:                                                                                                  #                                INTSTALL
055712,000206:                                                                                                  #                VLOAD
055713,000207:                                                                                                  #                                POSITION VECTOR
055714,000208:                                                                                                  #                STOVL           RCV
055715,000209:                                                                                                  #                                VELOCITY VECTOR
055716,000210:                                                                                                  #                STODL           VCV
055717,000211:                                                                                                  #                                TIME STATE VECTOR VALID
055718,000212:                                                                                                  #                STODL           TET
055719,000213:                                                                                                  #                                FINAL RADIUS
055720,000214:                                                                                                  #                STORE           RFINAL
055721,000215:                                                                                                  #                SET(CLEAR)      SET(CLEAR)
055722,000216:                                                                                                  #                                INTYPFLAG
055723,000217:                                                                                                  #                                MOONFLAG
055724,000218:                                                                                                  #                SET(CLEAR)      DLOAD
055725,000219:                                                                                                  #                                DESIRED TIME
055726,000220:                                                                                                  #                STCALL          TDEC1
055727,000221:                                                                                                  #                                INTEGRVS
055728,000222:                                                                                                  #          INPUT
055729,000223:                                                                                                  #                RCV     POSITION VECTOR                 METERS
055730,000224:                                                                                                  #                VCV     VELOCITY VECTOR                 M/CSEC
055731,000225:                                                                                                  #                TET     TIME OF STATE VECTOR (MAY = 0)  CSEC B-28

Page 1313

055733,000227:                                                                                                  #                TDEC1   TIME TO INTEGRATE TO            CSEC B-28 (PD 32D)
055734,000228:                                                                                                  #                        (MAY BE INCREMENT IF TET=0)
055735,000229:                                                                                                  #          OUTPUT
055736,000230:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION,
055737,000231:                                                                                                  #                DEPENDING ON INTYPFLG.
055738,000232:                                                                                                  #        D) INTEGRATE STATE VECTOR.  INTGRV ENTRANCE
055739,000233:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1) (MAY BE DONE AFTER CALL TO INTSTALL)
055740,000234:                                                                                                  #                L-8     CALL
055741,000235:                                                                                                  #                L-7
055742,000236:                                                                                                  #                L-6     SET(CLEAR)      SET(CLEAR)
055743,000237:                                                                                                  #                L-5                     VINTFLAG        1=CSM, 0=LM
055744,000238:                                                                                                  #                L-4                     INTYPFLAG       1=CONIC, 0=PRECISION
055745,000239:                                                                                                  #                L-3     SET(CLEAR)      SET(CLEAR)
055746,000240:                                                                                                  #                L-2                     DIMOFLAG        1=W-MATRIX, 0=NO W-MATRIX
055747,000241:                                                                                                  #                L-1                     D6OR9FLG        1=9X9, 0=6X6
055748,000242:                                                                                                  #                L       SET             DLOAD
055749,000243:                                                                                                  #                L+1                     STATEFLG        DESIRE PERMANENT UPDATE
055750,000244:                                                                                                  #                L+2                     FINAL RAD.      OF STATE VECTOR
055751,000245:                                                                                                  #                L+3     STCALL          RFINAL
055752,000246:                                                                                                  #                L+4                     INTEGRV
055753,000247:                                                                                                  #                L       CALL                            NORMAL USE -- WILL UPDATE STATE
055754,000248:                                                                                                  #                L+1                     INTEGRV         VECTOR IF DIMOFLAG=1. (STATEFLG IS
055755,000249:                                                                                                  #                L+2     RETURN                          ALWAYS RESET IN INTEGRATION AFTER
055756,000250:                                                                                                  #                                                        IT IS USED.)
055757,000251:                                                                                                  #          INPUT
055758,000252:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO     CSEC B-28
055759,000253:                                                                                                  #          OUTPUT
055760,000254:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION
055761,000255:                                                                                                  #          THE PROGRAM WILL SET MOONFLAG, MIDFLAG DEPENDING ON
055762,000256:                                                                                                  #          THE PERMANENT STATE VECTOR REPRESENTATION.
055763,000257: 
055764,000258: 11,2363                                           BANK     11                                    
055765,000259: 13,2000                                           SETLOC   INTINIT                               
055766,000260: 13,2000                                           BANK                                           
055767,000261: 13,2627  E3,1554                                  EBANK=   RRECTCSM                              
055768,000262: 13,2627                                           COUNT    13/INTIN                              
055769,000263: 
055770,000264: 13,2627           05412        STATEINT           TC       PHASCHNG                              
055771,000265: 13,2630           00052                           OCT      00052                                 
055772,000266: 13,2631           35061                           CAF      PRIO5                                 
055773,000267: 13,2632           05147                           TC       FINDVAC                               
055774,000268: 13,2633  E3,1554                                  EBANK=   RRECTCSM                              
055775,000269: 13,2633           02636 26063                     2CADR    STATINT1                              
055776,000270: 
055777,000271: 13,2635           05324                           TC       TASKOVER                              
055778,000272: 13,2636           06006        STATINT1           TC       INTPRET                               
055779,000273: 13,2637           47014                           BON      RTB                                   
055780,000274: 13,2640           04712                                    QUITFLAG                              
055781,000275: 13,2641           26677                                    NOINT                                 #  NO STATEINT IF V96
055782,000276: 13,2642           45510                                    LOADTIME                              

Page 1314

055784,000278: 13,2643           00041                           STORE    TDEC1                                 
055785,000279: 13,2644           45014                           CLEAR    CALL                                  
055786,000280: 13,2645           04274                                    V96ONFLG                              
055787,000281: 13,2646           27442                                    INTSTALL                              
055788,000282: 13,2647           45014                           SET      CALL                                  
055789,000283: 13,2650           01076                                    NODOFLAG                              
055790,000284: 13,2651           26670                                    SETIFLGS                              
055791,000285: 13,2652           77650                           GOTO                                           
055792,000286: 13,2653           26000                                    STATEUP                               
055793,000287: 13,2654           00003 25140  600SECS            2DEC     60000      B-28                       
055794,000288: 
055795,000289: 13,2656           77414        ENDINT             CLEAR    EXIT                                  
055796,000290: 13,2657           01672                                    STATEFLG                              
055797,000291: 13,2660           05412                           TC       PHASCHNG                              
055798,000292: 13,2661           20032                           OCT      20032                                 
055799,000293: 13,2662           00006                           EXTEND                                         
055800,000294: 13,2663           32655                           DCA      600SECS                               
055801,000295: 13,2664           05342                           TC       LONGCALL                              
055802,000296: 13,2665  E3,1554                                  EBANK=   RRECTHIS                              
055803,000297: 13,2665           02627 26063                     2CADR    STATEINT                              
055804,000298: 
055805,000299: 13,2667           05217                           TC       ENDOFJOB                              
055806,000300: 13,2670           43014        SETIFLGS           SET      CLEAR                                 
055807,000301: 13,2671           01472                                    STATEFLG                              
055808,000302: 13,2672           01673                                    INTYPFLG                              
055809,000303: 13,2673           43014                           CLEAR    CLEAR                                 
055810,000304: 13,2674           01676                                    DIM0FLAG                              
055811,000305: 13,2675           01675                                    D6OR9FLG                              
055812,000306: 13,2676           77616                           RVQ                                            
055813,000307: 13,2677           77776        NOINT              EXIT                                           
055814,000308: 13,2700           05412                           TC       PHASCHNG                              
055815,000309: 13,2701           00002                           OCT      2                                     
055816,000310: 
055817,000311: 13,2702           05560                           TC       DOWNFLAG                              
055818,000312: 13,2703           00221                           ADRES    QUITFLAG                              
055819,000313: 
055820,000314: 13,2704           05217                           TC       ENDOFJOB                              
055821,000315: 
055822,000316:                                                                                                  #  ATOPCSM TRANSFERS RRECT TO RRECT +41 TO RRECTCSM TO RRECTCSM +41
055823,000317: 
055824,000318:                                                                                                  #  CALLING SEQUENCE
055825,000319:                                                                                                  #        L       CALL
055826,000320:                                                                                                  #        L+1             ATOPCSM
055827,000321: 
055828,000322:                                                                                                  #  NORMAL EXIT AT L+2
055829,000323: 
055830,000324: 13,2705           47020        ATOPCSM            STQ      RTB                                   
055831,000325: 13,2706           00051                                    S2                                    
055832,000326: 13,2707           26720                                    MOVEACSM                              
055833,000327: 13,2710           45014                           SET      CALL                                  

Page 1315

055835,000329: 13,2711           04063                                    CMOONFLG                              
055836,000330: 13,2712           20237                                    SVDWN1                                
055837,000331: 13,2713           43014                           BON      CLRGO                                 
055838,000332: 13,2714           00303                                    MOONFLAG                              
055839,000333: 13,2715           00051                                    S2                                    
055840,000334: 13,2716           04223                                    CMOONFLG                              
055841,000335: 13,2717           00051                                    S2                                    
055842,000336: 13,2720           03064        MOVEACSM           TC       SETBANK                               
055843,000337: 13,2721           55500                           TS       DIFEQCNT                              #  INITIALIZE INDEX
055844,000338: 13,2722           51500                           INDEX    DIFEQCNT                              
055845,000339: 13,2723           31502                           CA       RRECT                                 
055846,000340: 13,2724           51500                           INDEX    DIFEQCNT                              
055847,000341: 13,2725           55554                           TS       RRECTCSM                              
055848,000342: 13,2726           11500                           CCS      DIFEQCNT                              #  IS TRANSFER COMPLETE
055849,000343: 13,2727           12721                           TCF      MOVEACSM   +1                         #  NO-LOOP
055850,000344: 13,2730           06030                           TC       DANZIG                                #  COMPLETE - RETURN
055851,000345: 
055852,000346:                                                                                                  #  PTOACSM TRANSFERS RRECTCSM TO RRECTCSM +41 TO RRECT TO RRECT +41
055853,000347: 
055854,000348:                                                                                                  #  CALLING SEQUENCE
055855,000349:                                                                                                  #        L       CALL
055856,000350:                                                                                                  #                        PTOACSM
055857,000351: 
055858,000352:                                                                                                  #  NORMAL EXIT AT L+2
055859,000353: 
055860,000354: 13,2731           43034        PTOACSM            RTB      BON                                   
055861,000355: 13,2732           26747                                    MOVEPCSM                              
055862,000356: 13,2733           04303                                    CMOONFLG                              
055863,000357: 13,2734           26742                                    SETMOON                               
055864,000358: 13,2735           66214        CLRMOON            CLEAR    SSP                                   
055865,000359: 13,2736           00263                                    MOONFLAG                              
055866,000360: 13,2737           02151                                    PBODY                                 
055867,000361: 13,2740           00000                                    0                                     
055868,000362: 13,2741           77616                           RVQ                                            
055869,000363: 13,2742           66214        SETMOON            SET      SSP                                   
055870,000364: 13,2743           00063                                    MOONFLAG                              
055871,000365: 13,2744           02151                                    PBODY                                 
055872,000366: 13,2745           00002                                    2                                     
055873,000367: 13,2746           77616                           RVQ                                            
055874,000368: 13,2747           03064        MOVEPCSM           TC       SETBANK                               
055875,000369: 13,2750           55500                           TS       DIFEQCNT                              
055876,000370: 13,2751           51500                           INDEX    DIFEQCNT                              
055877,000371: 13,2752           31554                           CA       RRECTCSM                              
055878,000372: 13,2753           51500                           INDEX    DIFEQCNT                              
055879,000373: 13,2754           55502                           TS       RRECT                                 
055880,000374: 13,2755           11500                           CCS      DIFEQCNT                              
055881,000375: 13,2756           12750                           TCF      MOVEPCSM   +1                         
055882,000376: 13,2757           06030                           TC       DANZIG                                
055883,000377: 

Page 1316

055885,000379:                                                                                                  #  ATOPLEM TRANSFERS RRECT TO RRECT +41 TO RRECTLEM TO RRECTLEM +41
055886,000380: 13,2760           47020        ATOPLEM            STQ      RTB                                   
055887,000381: 13,2761           00051                                    S2                                    
055888,000382: 13,2762           26773                                    MOVEALEM                              
055889,000383: 13,2763           45014                           SET      CALL                                  
055890,000384: 13,2764           04064                                    LMOONFLG                              
055891,000385: 13,2765           20263                                    SVDWN2                                
055892,000386: 13,2766           43014                           BON      CLRGO                                 
055893,000387: 13,2767           00303                                    MOONFLAG                              
055894,000388: 13,2770           00051                                    S2                                    
055895,000389: 13,2771           04224                                    LMOONFLG                              
055896,000390: 13,2772           00051                                    S2                                    
055897,000391: 13,2773           03064        MOVEALEM           TC       SETBANK                               
055898,000392: 13,2774           55500                           TS       DIFEQCNT                              
055899,000393: 13,2775           51500                           INDEX    DIFEQCNT                              
055900,000394: 13,2776           31502                           CA       RRECT                                 
055901,000395: 13,2777           51500                           INDEX    DIFEQCNT                              
055902,000396: 13,3000           55626                           TS       RRECTLEM                              
055903,000397: 13,3001           11500                           CCS      DIFEQCNT                              
055904,000398: 13,3002           12774                           TCF      MOVEALEM   +1                         
055905,000399: 13,3003           06030                           TC       DANZIG                                
055906,000400: 
055907,000401:                                                                                                  #  PTOALEM TRANSFERS RRECTLEM TO RRECTLEM +41 TO RRECT TO RRECT +41
055908,000402: 
055909,000403: 13,3004           47014        PTOALEM            BON      RTB                                   
055910,000404: 13,3005           04307                                    SURFFLAG                              
055911,000405: 13,3006           27025                                    USEPIOS                               
055912,000406: 13,3007           27014                                    MOVEPLEM                              
055913,000407: 13,3010           52014                           BON      GOTO                                  
055914,000408: 13,3011           04304                                    LMOONFLG                              
055915,000409: 13,3012           26742                                    SETMOON                               
055916,000410: 13,3013           26735                                    CLRMOON                               
055917,000411: 13,3014           03064        MOVEPLEM           TC       SETBANK                               
055918,000412: 13,3015           55500                           TS       DIFEQCNT                              
055919,000413: 13,3016           51500                           INDEX    DIFEQCNT                              
055920,000414: 13,3017           31626                           CA       RRECTLEM                              
055921,000415: 13,3020           51500                           INDEX    DIFEQCNT                              
055922,000416: 13,3021           55502                           TS       RRECT                                 
055923,000417: 13,3022           11500                           CCS      DIFEQCNT                              
055924,000418: 13,3023           13015                           TCF      MOVEPLEM   +1                         
055925,000419: 13,3024           06030                           TC       DANZIG                                
055926,000420: 
055927,000421: 13,3025           77201        USEPIOS            SETPD    VLOAD                                 
055928,000422: 13,3026           00001                                    0                                     
055929,000423: 13,3027           02026                                    RLS                                   
055930,000424: 13,3030           41525                           PDDL     PUSH                                  
055931,000425: 13,3031           00041                                    TDEC1                                 

Page 1317

055933,000427: 13,3032           15517                           STODL    TET                                   
055934,000428: 13,3033           27755                                    5/8                                   
055935,000429: 13,3034           77624                           CALL                                           
055936,000430: 13,3035           55344                                    RP-TO-R                               
055937,000431: 13,3036           25535                           STOVL    RCV                                   
055938,000432: 13,3037           11555                                    ZUNIT                                 
055939,000433: 13,3040           14001                           STODL    0D                                    
055940,000434: 13,3041           01517                                    TET                                   
055941,000435: 13,3042           14007                           STODL    6D                                    
055942,000436: 13,3043           27755                                    5/8                                   
055943,000437: 13,3044           45014                           SET      CALL                                  #  NEEDED FOR SETTING X1 ON EXIT
055944,000438: 13,3045           00063                                    MOONFLAG                              
055945,000439: 13,3046           55344                                    RP-TO-R                               
055946,000440: 13,3047           74235                           VXV      VXSC                                  
055947,000441: 13,3050           01535                                    RCV                                   
055948,000442: 13,3051           27063                                    OMEGMOON                              
055949,000443: 13,3052           25543                           STOVL    VCV                                   
055950,000444: 13,3053           11563                                    ZEROVEC                               
055951,000445: 13,3054           01521                           STORE    TDELTAV                               
055952,000446: 13,3055           67174                           AXT,2    SXA,2                                 
055953,000447: 13,3056           00002                                    2                                     
055954,000448: 13,3057           02150                                    PBODY                                 
055955,000449: 13,3060           35527                           STCALL   TNUV                                  
055956,000450: 13,3061           27176                                    A-PCHK                                
055957,000451: 13,3062           07112 06620  OMEGMOON           2DEC*    2.66169947 E-8        B+23*           
055958,000452: 
055959,000453: 13,3064           33070        SETBANK            CAF      INTBANK                               
055960,000454: 13,3065           54006                           TS       BBANK                                 
055961,000455: 13,3066           33507                           CAF      FORTYONE                              
055962,000456: 13,3067           00002                           TC       Q                                     
055963,000457: 13,3070  E3,1554                                  EBANK=   RRECTCSM                              
055964,000458: 13,3070           26063        INTBANK            BBCON    INTEGRV                               
055965,000459: 
055966,000460:                                                                                                  #  SPECIAL PURPOSE ENTRIES TO ORBITAL INTEGRATION.  THESE ROUTINES PROVIDE ENTRANCES TO INTEGRATION WITH
055967,000461:                                                                                                  #  APPROPRIATE SWITCHES SET OR CLEARED FOR THE DESIRED INTEGRATION.
055968,000462: 
055969,000463:                                                                                                  #  CSMPREC AND LEMPREC PERFORM ORBIT INTEGRATION BY THE ENCKE METHOD TO THE TIME INDICATED IN TDEC1
055970,000464:                                                                                                  #  ACCELERATIONS DUE TO OBLATENESS ARE INCLUDED.  NO W-MATRIX INT. IS DONE.
055971,000465:                                                                                                  #  THE PERMANENT STATE VECTOR IS NOT UPDATED.
055972,000466:                                                                                                  #  CSMCONIC AND LEMCONIC PERFORM ORBIT INTEG. BY KEPLERS METHOD TO THE TIME INDICATED IN TDEC1
055973,000467:                                                                                                  #  NO DISTURBING ACCELERATIONS ARE INCLUDED.  IN THE PROGRAM FLOW THE GIVEN
055974,000468:                                                                                                  #  STATE VECTOR IS RECTIFIED BEFORE SOLUTION OF KEPLERS EQUATION
055975,000469: 
055976,000470:                                                                                                  #  THE ROUTINES ASSUME THAT THE CSM (LEM) STATE VECTOR IN P-MEM IS VALID.
055977,000471:                                                                                                  #  SWITCHES SET PRIOR TO ENTRY TO THE MAIN INTEG. PROG ARE AS FOLLOWS
055978,000472:                                                                                                  #                        CSMPREC         CSMCONIC        LEMPREC         LEMCONIC
055979,000473:                                                                                                  #        VINTFLAG        SET             SET             CLEAR           CLEAR
055980,000474:                                                                                                  #        INTYPFLG        CLEAR           SET             CLEAR           SET
055981,000475:                                                                                                  #        DIM0FLAG        CLEAR           CLEAR           CLEAR           CLEAR

Page 1318

055983,000477: 
055984,000478:                                                                                                  #  CALLING SEQUENCE
055985,000479:                                                                                                  #        L-X     STORE   TDEC1
055986,000480:                                                                                                  #        L       CALL                    (STCALL TDEC1)
055987,000481:                                                                                                  #        L+1             CSMPREC         (CSMCONIC, LEMPREC, LEMCONIC)
055988,000482: 
055989,000483:                                                                                                  #  NORMAL EXIT TO L+2
055990,000484: 
055991,000485:                                                                                                  #  SUBROUTINES CALLED
055992,000486:                                                                                                  #        INTEGRV1
055993,000487:                                                                                                  #        PRECOUT FOR CSMPREC AND LEMPREC
055994,000488:                                                                                                  #        CONICOUT FOR CSMCONIC AND LEMCONIC
055995,000489: 
055996,000490:                                                                                                  #  OUTPUT - SEE PAGE 2 OF THIS LOG SECTION
055997,000491: 
055998,000492:                                                                                                  #  INPUT
055999,000493:                                                                                                  #        TDEC1           TIME TO INTEGRATE TO.  CSECS B-28
056000,000494: 
056001,000495: 13,3071           45020        CSMPREC            STQ      CALL                                  
056002,000496: 13,3072           00046                                    X1                                    
056003,000497: 13,3073           27442                                    INTSTALL                              
056004,000498: 13,3074           43130                           SXA,1    SET                                   
056005,000499: 13,3075           02214                                    IRETURN                               
056006,000500: 13,3076           01474                                    VINTFLAG                              
056007,000501: 
056008,000502: 13,3077           43014        IFLAGP             SET      CLEAR                                 
056009,000503: 13,3100           01467                                    PRECIFLG                              
056010,000504: 13,3101           01676                                    DIM0FLAG                              
056011,000505: 13,3102           77614                           CLRGO                                          
056012,000506: 13,3103           01633                                    INTYPFLG                              
056013,000507: 13,3104           27164                                    INTEGRV1                              
056014,000508: 13,3105           45020        LEMPREC            STQ      CALL                                  
056015,000509: 13,3106           00046                                    X1                                    
056016,000510: 13,3107           27442                                    INTSTALL                              
056017,000511: 13,3110           43130                           SXA,1    CLRGO                                 
056018,000512: 13,3111           02214                                    IRETURN                               
056019,000513: 13,3112           01634                                    VINTFLAG                              
056020,000514: 13,3113           27077                                    IFLAGP                                
056021,000515: 
056022,000516: 13,3114           45020        CSMCONIC           STQ      CALL                                  
056023,000517: 13,3115           00046                                    X1                                    
056024,000518: 13,3116           27442                                    INTSTALL                              
056025,000519: 13,3117           43130                           SXA,1    SET                                   
056026,000520: 13,3120           02214                                    IRETURN                               
056027,000521: 13,3121           01474                                    VINTFLAG                              
056028,000522: 13,3122           43014        IFLAGC             CLEAR    SETGO                                 
056029,000523: 13,3123           01676                                    DIM0FLAG                              
056030,000524: 13,3124           01433                                    INTYPFLG                              
056031,000525: 13,3125           27164                                    INTEGRV1                              
056032,000526: 13,3126           45020        LEMCONIC           STQ      CALL                                  
056033,000527: 13,3127           00046                                    X1                                    

Page 1319

056035,000529: 13,3130           27442                                    INTSTALL                              
056036,000530: 13,3131           43130                           SXA,1    CLRGO                                 
056037,000531: 13,3132           02214                                    IRETURN                               
056038,000532: 13,3133           01634                                    VINTFLAG                              
056039,000533: 13,3134           27122                                    IFLAGC                                
056040,000534: 
056041,000535: 13,3135           66214        INTEGRVS           SET      SSP                                   
056042,000536: 13,3136           01467                                    PRECIFLG                              
056043,000537: 13,3137           02151                                    PBODY                                 
056044,000538: 13,3140           00000                                    0                                     
056045,000539: 13,3141           66214                           BOF      SSP                                   
056046,000540: 13,3142           00343                                    MOONFLAG                              
056047,000541: 13,3143           27146                                    +3                                    
056048,000542: 13,3144           02151                                    PBODY                                 
056049,000543: 13,3145           00002                                    2                                     
056050,000544: 13,3146           77220                           STQ      VLOAD                                 
056051,000545: 13,3147           02214                                    IRETURN                               
056052,000546: 13,3150           11563                                    ZEROVEC                               
056053,000547: 13,3151           01521                           STORE    TDELTAV                               
056054,000548: 13,3152           35527                           STCALL   TNUV                                  
056055,000549: 13,3153           23421                                    RECTIFY                               
056056,000550: 13,3154           43014                           CLEAR    SET                                   
056057,000551: 13,3155           01676                                    DIM0FLAG                              
056058,000552: 13,3156           04062                                    NEWIFLG                               
056059,000553: 13,3157           77614                           SETGO                                          
056060,000554: 13,3160           04020                                    RPQFLAG                               
056061,000555: 13,3161           22363                                    ALOADED                               
056062,000556: 
056063,000557:                                                                                                  #  INTEGRV IS AN ENTRY TO ORBIT INTEGRATION WHICH PERMITS THE CALLER,
056064,000558:                                                                                                  #  NORMALLY THE NAVIGATION PROGRAM, TO SET THE INTEG. FLAGS.  THE ROUTINE
056065,000559:                                                                                                  #  IS ENTERED AT INTEGRV1 BY CSMPREC ET. AL. AND AT ALOADED BY INTEGRVS.
056066,000560:                                                                                                  #  THE ROUTINE SETS UP A-MEMORY IF ENTERED AT INTEGRV,1 AND SETS THE INTEG.
056067,000561:                                                                                                  #  PROGRAM FOR PRECISION OR CONIC
056068,000562: 
056069,000563:                                                                                                  #  THE CALLER MUST FIRST CALL INTSTALL TO CHECK IF INTEG. IS IN USE BEFORE
056070,000564:                                                                                                  #  SETTING ANY FLAGS.
056071,000565: 
056072,000566:                                                                                                  #  THE FLAGS WHICH SHOULD BE SET OR CLEARED ARE
056073,000567:                                                                                                  #        VINTFLAG        (IGNORED WHEN ENTERED FROM INTEGRVS)
056074,000568:                                                                                                  #        INTYPFLG
056075,000569:                                                                                                  #        DIM0FLAG
056076,000570:                                                                                                  #        D6OR9FLG
056077,000571: 
056078,000572:                                                                                                  #  CALLING SEQUENCE
056079,000573:                                                                                                  #        L-X     CALL
056080,000574:                                                                                                  #        L-Y             INTSTALL
056081,000575:                                                                                                  #        L-1     SET OR CLEAR ALL FOUR FLAGS.  ALSO CAN SET STATEFLG IF DESIRED
056082,000576:                                                                                                  #                AND DIM0FLAG IS CLEAR.
056083,000577:                                                                                                  #        L       CALL
056084,000578:                                                                                                  #        L+1             INTEGRV
056085,000579: 
056086,000580:                                                                                                  #  INITIALIZATION
056087,000581:                                                                                                  #        FLAGS AS ABOVE
056088,000582:                                                                                                  #        STORE TIME TO INTEGRATE TO IN TDEC1
056089,000583: 

Page 1320

056091,000585:                                                                                                  #  OUTPUT
056092,000586:                                                                                                  #        RATT    AS
056093,000587:                                                                                                  #        VATT          DEFINED
056094,000588:                                                                                                  #        TAT                     BEFORE
056095,000589: 
056096,000590: 13,3162           77620        INTEGRV            STQ                                            
056097,000591: 13,3163           02214                                    IRETURN                               
056098,000592: 13,3164           43014        INTEGRV1           SET      SET                                   
056099,000593: 13,3165           04060                                    RPQFLAG                               
056100,000594: 13,3166           04062                                    NEWIFLG                               
056101,000595: 13,3167           77731        INTEGRV2           SSP                                            
056102,000596: 13,3170           00053                                    QPRET                                 
056103,000597: 13,3171           22363                                    ALOADED                               
056104,000598: 13,3172           52014                           BON      GOTO                                  
056105,000599: 13,3173           01714                                    VINTFLAG                              
056106,000600: 13,3174           26731                                    PTOACSM                               
056107,000601: 13,3175           27004                                    PTOALEM                               
056108,000602: 11,2000                                           SETLOC   INTINIT1                              
056109,000603: 11,2000                                           BANK                                           
056110,000604: 11,2363           77745        ALOADED            DLOAD                                          
056111,000605: 11,2364           00041                                    TDEC1                                 
056112,000606: 11,2365           01101                           STORE    TDEC                                  
056113,000607: 11,2366           52014                           BOFF     GOTO                                  
056114,000608: 11,2367           01753                                    INTYPFLG                              
056115,000609: 11,2370           27305                                    TESTLOOP                              
056116,000610: 11,2371           27271                                    RVCON                                 
056117,000611: 13,2000                                           SETLOC   INTINIT                               
056118,000612: 13,2000                                           BANK                                           
056119,000613: 13,3176           45014        A-PCHK             BOF      CALL                                  
056120,000614: 13,3177           00342                                    MIDFLAG                               
056121,000615: 13,3200           27205                                    ANDOUT                                #  DONT MAKE ORIGIN CHANGE CHECK
056122,000616: 13,3201           23320                                    CHKSWTCH                              
056123,000617: 13,3202           45044                           BPL      CALL                                  
056124,000618: 13,3203           27205                                    ANDOUT                                #  NO ORIGIN CHANGE
056125,000619: 13,3204           23361                                    ORIGCHNG                              #  MAKE THE SWITCH
056126,000620: 13,3205           77414        ANDOUT             BOFCLR   EXIT                                  
056127,000621: 13,3206           01652                                    STATEFLG                              
056128,000622: 13,3207           27226                                    RECTOUT                               
056129,000623: 13,3210           05412                           TC       PHASCHNG                              
056130,000624: 13,3211           04022                           OCT      04022                                 
056131,000625: 13,3212           05546                           TC       UPFLAG                                #  PHASE CHANGE HAS OCCURRED BETWEEN
056132,000626: 13,3213           00236                           ADRES    REINTFLG                              #  INTSTALL AND INTWAKE
056133,000627: 13,3214           06006                           TC       INTPRET                               
056134,000628: 13,3215           77731                           SSP                                            
056135,000629: 13,3216           00053                                    QPRET                                 
056136,000630: 13,3217           27224                                    PHEXIT                                
056137,000631: 13,3220           52014                           BON      GOTO                                  
056138,000632: 13,3221           01714                                    VINTFLAG                              
056139,000633: 13,3222           26705                                    ATOPCSM                               

Page 1321

056141,000635: 13,3223           26760                                    ATOPLEM                               
056142,000636: 13,3224           77624        PHEXIT             CALL                                           
056143,000637: 13,3225           56750                                    GRP2PC                                
056144,000638: 13,3226           45001        RECTOUT            SETPD    CALL                                  
056145,000639: 13,3227           00001                                    0                                     
056146,000640: 13,3230           23421                                    RECTIFY                               
056147,000641: 13,3231           53775                           VLOAD    VSL*                                  
056148,000642: 13,3232           01503                                    RRECT                                 
056149,000643: 13,3233           57576                                    0,2                                   
056150,000644: 13,3234           53715                           PDVL     VSL*                                  #  RATT TO PD0
056151,000645: 13,3235           01511                                    VRECT                                 
056152,000646: 13,3236           57576                                    0,2                                   
056153,000647: 13,3237           63325                           PDDL     PDVL                                  #  VATT TO PD6   TAT TO PD12
056154,000648: 13,3240           01517                                    TET                                   
056155,000649: 13,3241           01503                                    RRECT                                 
056156,000650: 13,3242           64715                           PDVL     PDDL*                                 
056157,000651: 13,3243           01511                                    VRECT                                 
056158,000652: 13,3244           50042                                    MUEARTH,2                             
056159,000653: 13,3245           76006                           PUSH     AXT,1                                 
056160,000654: 13,3246           77765                           DEC      -10        B-14                       
056161,000655: 13,3247           76014                           BON      AXT,1                                 
056162,000656: 13,3250           00303                                    MOONFLAG                              
056163,000657: 13,3251           27253                                    +2                                    
056164,000658: 13,3252           77775                           DEC      -2         B-14                       
056165,000659: 13,3253           40001        INTEXIT            SETPD    BOV                                   
056166,000660: 13,3254           00001                                    0                                     
056167,000661: 13,3255           27256                                    +1                                    
056168,000662: 13,3256           77614                           CLEAR                                          
056169,000663: 13,3257           04675                                    MIDAVFLG                              
056170,000664: 13,3260           43014                           CLEAR    CLEAR                                 
056171,000665: 13,3261           04676                                    AVEMIDSW                              #  ALLOW UPDATE OF DOWNLINK STATE VECTOR
056172,000666: 13,3262           01667                                    PRECIFLG                              
056173,000667: 13,3263           77535                           SLOAD    EXIT                                  
056174,000668: 13,3264           02215                                    IRETURN                               
056175,000669: 13,3265           30154                           CA       MPAC                                  
056176,000670: 13,3266           50120                           INDEX    FIXLOC                                
056177,000671: 13,3267           54052                           TS       QPRET                                 
056178,000672: 13,3270           03457                           TC       INTWAKE                               
056179,000673: 
056180,000674:                                                                                                  #  RVCON SETS UP ORBIT INTEGRATION TO DO A CONIC SOLUTION FOR POSITION AND
056181,000675:                                                                                                  #  VELOCITY FOR THE INTERVAL (TET-TDEC)
056182,000676: 
056183,000677: 13,3271           45345        RVCON              DLOAD    DSU                                   
056184,000678: 13,3272           01101                                    TDEC                                  
056185,000679: 13,3273           01517                                    TET                                   
056186,000680: 13,3274           36312                           STCALL   TAU.                                  
056187,000681: 13,3275           23421                                    RECTIFY                               
056188,000682: 13,3276           77624                           CALL                                           
056189,000683: 13,3277           22372                                    KEPPREP                               
056190,000684: 13,3300           43345                           DLOAD    DAD                                   
056191,000685: 13,3301           01551                                    TC                                    

Page 1322

056193,000687: 13,3302           01517                                    TET                                   
056194,000688: 13,3303           35517                           STCALL   TET                                   
056195,000689: 13,3304           27226                                    RECTOUT                               
056196,000690: 

Page 1323

056198,000692:                                                                                                  #  TESTLOOP
056199,000693: 
056200,000694: 13,3305           43014        TESTLOOP           BOF      CLRGO                                 
056201,000695: 13,3306           04752                                    QUITFLAG                              
056202,000696: 13,3307           27312                                    +3                                    
056203,000697: 13,3310           01632                                    STATEFLG                              
056204,000698: 13,3311           27253                                    INTEXIT                               #  STOP INTEGRATION
056205,000699: 13,3312           73001                 +3        SETPD    LXA,2                                 
056206,000700: 13,3313           00013                                    10D                                   
056207,000701: 13,3314           02150                                    PBODY                                 
056208,000702: 13,3315           51575                           VLOAD    ABVAL                                 
056209,000703: 13,3316           01535                                    RCV                                   
056210,000704: 13,3317           43006                           PUSH     CLEAR                                 #  RC TO 10D
056211,000705: 13,3320           00262                                    MIDFLAG                               
056212,000706: 13,3321           50023                           DSU*     BMN                                   #  MIDFLAG=0 IF R G.T. RMP
056213,000707: 13,3322           67212                                    RME,2                                 
056214,000708: 13,3323           27326                                    +3                                    
056215,000709: 13,3324           77614                           SET                                            
056216,000710: 13,3325           00062                                    MIDFLAG                               
056217,000711: 13,3326           41345        NORFINAL           DLOAD    DMP                                   
056218,000712: 13,3327           00013                                    10D                                   
056219,000713: 13,3330           00043                                    34D                                   
056220,000714: 13,3331           55762                           SR1R     DDV*                                  
056221,000715: 13,3332           50042                                    MUEARTH,2                             
056222,000716: 13,3333           41366                           SQRT     DMP                                   
056223,000717: 13,3334           23752                                    .3D                                   
056224,000718: 13,3335           40442                           SR3      SR4                                   #  DT IS TRUNCATED TO A MULTIPLE
056225,000719: 13,3336           54345                           DLOAD    SL                                    
056226,000720: 13,3337           00155                                    MPAC                                  
056227,000721: 13,3340           20220                                    15D                                   #        OF 128 CSECS.
056228,000722: 13,3341           40006                           PUSH     BOV                                   
056229,000723: 13,3342           27367                                    MAXDT                                 
056230,000724: 13,3343           50021                           BDSU     BMN                                   
056231,000725: 13,3344           27441                                    DT/2MAX                               
056232,000726: 13,3345           27367                                    MAXDT                                 
056233,000727: 13,3346           45345        DT/2COMP           DLOAD    DSU                                   
056234,000728: 13,3347           01101                                    TDEC                                  
056235,000729: 13,3350           01517                                    TET                                   
056236,000730: 13,3351           54234                           RTB      SL                                    
056237,000731: 13,3352           45544                                    SGNAGREE                              
056238,000732: 13,3353           20211                                    8D                                    
056239,000733: 13,3354           02314                           STORE    DT/2                                  #  B-19
056240,000734: 13,3355           51400                           BOV      ABS                                   
056241,000735: 13,3356           27373                                    GETMAXDT                              
056242,000736: 13,3357           50025                           DSU      BMN                                   #  IS TIME TO INTEG. TO GR THAN MAXTIME
056243,000737: 13,3360           00015                                    12D                                   
056244,000738: 13,3361           27377                                    P00HCHK                               
056245,000739: 13,3362           75345        USEMAXDT           DLOAD    SIGN                                  
056246,000740: 13,3363           00015                                    12D                                   
056247,000741: 13,3364           02314                                    DT/2                                  

Page 1324

056249,000743: 13,3365           36314                           STCALL   DT/2                                  
056250,000744: 13,3366           27377                                    P00HCHK                               
056251,000745: 13,3367           65345        MAXDT              DLOAD    PDDL                                  #  EXCHANGE DT/2MAX WITH COMPUTED MAX.
056252,000746: 13,3370           27441                                    DT/2MAX                               
056253,000747: 13,3371           77650                           GOTO                                           
056254,000748: 13,3372           27346                                    DT/2COMP                              
056255,000749: 13,3373           77634        GETMAXDT           RTB                                            
056256,000750: 13,3374           45712                                    SIGNMPAC                              
056257,000751: 13,3375           36314                           STCALL   DT/2                                  
056258,000752: 13,3376           27362                                    USEMAXDT                              
056259,000753: 13,3377           51545        P00HCHK            DLOAD    ABS                                   
056260,000754: 13,3400           02314                                    DT/2                                  
056261,000755: 13,3401           50025                           DSU      BMN                                   
056262,000756: 13,3402           27437                                    DT/2MIN                               
056263,000757: 13,3403           27176                                    A-PCHK                                
056264,000758: 13,3404           46135                           SLOAD    BHIZ                                  
056265,000759: 13,3405           01012                                    MODREG                                
056266,000760: 13,3406           27411                                    +3                                    
056267,000761: 13,3407           77650                           GOTO                                           
056268,000762: 13,3410           23240                                    TIMESTEP                              
056269,000763: 13,3411           77614                           BON                                            #  WAS THIS CALL VIA CSM(LEM)PREC
056270,000764: 13,3412           01707                                    PRECIFLG                              
056271,000765: 13,3413           23240                                    TIMESTEP                              #  YES
056272,000766: 13,3414           45345                           DLOAD    DSU                                   
056273,000767: 13,3415           02314                                    DT/2                                  
056274,000768: 13,3416           00015                                    12D                                   
056275,000769: 13,3417           43040                           BMN      BOFCLR                                
056276,000770: 13,3420           27176                                    A-PCHK                                
056277,000771: 13,3421           04242                                    NEWIFLG                               
056278,000772: 13,3422           23240                                    TIMESTEP                              
056279,000773: 13,3423           45345                           DLOAD    DSU                                   
056280,000774: 13,3424           01101                                    TDEC                                  
056281,000775: 13,3425           01517                                    TET                                   
056282,000776: 13,3426           77640                           BMN                                            #  NO BACKWARD INTEGRATION
056283,000777: 13,3427           27253                                    INTEXIT                               
056284,000778: 13,3430           40525                           PDDL     SR4                                   
056285,000779: 13,3431           02314                                    DT/2                                  #  IS 4(DT) LS (TDEC - TET)
056286,000780: 13,3432           44322                           SR2R     BDSU                                  #  NO
056287,000781: 13,3433           52040                           BMN      GOTO                                  
056288,000782: 13,3434           27253                                    INTEXIT                               
056289,000783: 13,3435           23240                                    TIMESTEP                              
056290,000784: 13,3436           00000 01400  DT/2MIN            2DEC     3          B-20                       
056291,000785: 
056292,000786: 13,3440           14152 00000  DT/2MAX            2DEC     4000       E2         B-20            
056293,000787: 
056294,000788: 13,3442           77776        INTSTALL           EXIT                                           
056295,000789: 13,3443           35021                           CAF      ZERO                                  
056296,000790: 13,3444           54001        ALLSTALL           TS       L                                     
056297,000791: 13,3445           30106                           CA       RASFLAG                               
056298,000792: 13,3446           50001                           INDEX    L                                     

Page 1325

056300,000794: 13,3447           73540                           MASK     INTBITAB                              #  IS THIS STALL AREA FREE
056301,000795: 13,3450           00006                           EXTEND                                         
056302,000796: 13,3451           13516                           BZF      OKTOGRAB                              #  YES
056303,000797: 13,3452           50001                           INDEX    L                                     
056304,000798: 13,3453           33535                           CAF      WAKESTAL                              
056305,000799: 13,3454           05175                           TC       JOBSLEEP                              
056306,000800: 13,3455           77776        INTWAKE0           EXIT                                           
056307,000801: 13,3456           13477                           TCF      INTWAKE1                              
056308,000802: 
056309,000803: 13,3457           40106        INTWAKE            CS       RASFLAG                               #  IS THIS INTSTALLED ROUTINE TO BE
056310,000804: 13,3460           75011                           MASK     REINTBIT                              #        RESTARTED
056311,000805: 13,3461           10000                           CCS      A                                     
056312,000806: 13,3462           03477                           TC       INTWAKE1                              #  NO
056313,000807: 
056314,000808: 13,3463           50120                           INDEX    FIXLOC                                
056315,000809: 13,3464           30052                           CA       QPRET                                 
056316,000810: 13,3465           55055                           TS       TBASE2                                #  YES, DONT RESTART WITH SOMEONE ELSES Q
056317,000811: 
056318,000812: 13,3466           05412                           TC       PHASCHNG                              
056319,000813: 13,3467           04022                           OCT      04022                                 
056320,000814: 
056321,000815: 13,3470           31055                           CA       TBASE2                                
056322,000816: 13,3471           50120                           INDEX    FIXLOC                                
056323,000817: 13,3472           54052                           TS       QPRET                                 
056324,000818: 
056325,000819: 13,3473           35011                           CAF      REINTBIT                              
056326,000820: 13,3474           70106                           MASK     RASFLAG                               
056327,000821: 13,3475           00006                           EXTEND                                         
056328,000822: 13,3476           13521                           BZF      GOBAC                                 #  DONT INTWAKE IF WE CAME HERE VIA RESTART
056329,000823: 
056330,000824: 13,3477           35021        INTWAKE1           CAF      ZERO                                  
056331,000825: 13,3500           54154        WAKE               TS       STALTEM                               #  INDEX OF ANY STALL USER
056332,000826: 13,3501           50154        WAKE1              INDEX    STALTEM                               
056333,000827: 13,3502           33535                           CAF      WAKESTAL                              
056334,000828: 13,3503           00004                           INHINT                                         
056335,000829: 13,3504           05201                           TC       JOBWAKE                               
056336,000830: 13,3505           10064                           CCS      LOCCTR                                
056337,000831: 13,3506           13501                           TCF      WAKE1                                 #  MAY BE MORE TO WAKE UP
056338,000832: 13,3507           00051        FORTYONE           DEC      41         B-14                       
056339,000833: 13,3510           50154                           INDEX    STALTEM                               
056340,000834: 13,3511           43540                           CS       INTBITAB                              
056341,000835: 13,3512           70106                           MASK     RASFLAG                               
056342,000836: 13,3513           54106                           TS       RASFLAG                               #  RELEASE STALL AREA
056343,000837: 13,3514           00003                           RELINT                                         
056344,000838: 13,3515           13521                           TCF      GOBAC                                 
056345,000839: 13,3516           50001        OKTOGRAB           INDEX    L                                     #  NO, WAIT UNTIL AVAILABLE
056346,000840: 13,3517           35002                           CAF      INTFLBIT                              
056347,000841: 13,3520           26106                           ADS      RASFLAG                               
056348,000842: 13,3521           06006        GOBAC              TC       INTPRET                               
056349,000843: 13,3522           77616                           RVQ                                            

Page 1326

056351,000845: 13,3523           77776        ERASTAL1           EXIT                                           
056352,000846: 13,3524           35017                           CAF      ONE                                   
056353,000847: 13,3525           13444                           TCF      ALLSTALL                              
056354,000848: 13,3526           77776        ERASTAL2           EXIT                                           
056355,000849: 13,3527           35016                           CAF      TWO                                   
056356,000850: 13,3530           13444                           TCF      ALLSTALL                              
056357,000851: 13,3531           35017        ERASWAK1           CAF      ONE                                   
056358,000852: 13,3532           13500                           TCF      WAKE                                  
056359,000853: 13,3533           35016        ERASWAK2           CAF      TWO                                   
056360,000854: 13,3534           13500                           TCF      WAKE                                  
056361,000855: 13,3535           27443        WAKESTAL           CADR     INTSTALL   +1                         
056362,000856: 13,3536           27524                           CADR     ERASTAL1   +1                         
056363,000857: 13,3537           27527                           CADR     ERASTAL2   +1                         
056364,000858: 13,3540     0154               STALTEM            EQUALS   MPAC                                  
056365,000859: 13,3540           20100        INTBITAB           OCT      20100                                 
056366,000860: 13,3541           10040                           OCT      10040                                 
056367,000861: 13,3542           04020                           OCT      04020                                 
056368,000862: 

Page 1327

056370,000864:                                                                                                  #  AVETOMID
056371,000865: 
056372,000866:                                                                                                  #  THIS ROUTINE PERFORMS THE TRANSITION FROM A THRUSTING PHASE TO THE COAST
056373,000867:                                                                                                  #  PHASE BY INITIALIZING THIS VEHICLES PERMANENT STATE VECTOR WITH THE
056374,000868:                                                                                                  #  VALUES LEFT BY THE AVERAGEG ROUTINE IN RN,VN,PIPTIME.
056375,000869: 
056376,000870:                                                                                                  #  BEFORE THIS IS DONE THE W-MATRIX, IF ITS VALID (ORWFLAG OR RENDWFLG IS
056377,000871:                                                                                                  #  SET) IS INTEGRATED FORWARD TO PIPTIME WITH THE PRE-THRUST STATE VECTOR.
056378,000872: 
056379,000873:                                                                                                  #  IN ADDITION, THE OTHER VEHICLE IS INTEGRATED (PERMANENT) TO PIPTIME.
056380,000874: 
056381,000875:                                                                                                  #  FINALLY TRKMKCNT IS ZEROED
056382,000876: 
056383,000877: 35,2000                                           SETLOC   INTINIT2                              
056384,000878: 35,2000                                           BANK                                           
056385,000879: 
056386,000880: 35,3702                                           COUNT*   $$/INTIN                              
056387,000881: 35,3702           43020        AVETOMID           STQ      BON                                   
056388,000882: 35,3703           02317                                    EGRESS                                
056389,000883: 35,3704           02716                                    RENDWFLG                              
056390,000884: 35,3705           73760                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
056391,000885: 35,3706           77614                           BON                                            
056392,000886: 35,3707           01711                                    ORBWFLAG                              
056393,000887: 35,3710           73760                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
056394,000888: 
056395,000889: 35,3711           45174        SETCOAST           AXT,2    CALL                                  #  NOW MOVE PROPERLY SCALED RN,VN AND
056396,000890: 35,3712           00002                                    2                                     #  PIPTIME TO INTEGRATION ERASABLES.
056397,000891: 35,3713           27442                                    INTSTALL                              
056398,000892: 35,3714           77014                           BON      AXT,2                                 
056399,000893: 35,3715           00315                                    AMOONFLG                              
056400,000894: 35,3716           73720                                    +2                                    
056401,000895: 35,3717           00000                                    0                                     
056402,000896: 35,3720           53775                           VLOAD    VSR*                                  
056403,000897: 35,3721           01171                                    RN                                    
056404,000898: 35,3722           57176                                    0,2                                   
056405,000899: 35,3723           01503                           STORE    RRECT                                 
056406,000900: 35,3724           15535                           STODL    RCV                                   
056407,000901: 35,3725           01205                                    PIPTIME                               
056408,000902: 35,3726           25517                           STOVL    TET                                   
056409,000903: 35,3727           01177                                    VN                                    
056410,000904: 35,3730           45057                           VSR*     CALL                                  
056411,000905: 35,3731           57176                                    0,2                                   
056412,000906: 35,3732           23435                                    MINIRECT                              #  FINISH SETTING UP STATE VECTOR
056413,000907: 35,3733           66234                           RTB      SSP                                   
056414,000908: 35,3734           26720                                    MOVATHIS                              #  PUT TEMP STATE VECTOR INTO PERMANENT
056415,000909: 35,3735           01127                                    TRKMKCNT                              
056416,000910: 35,3736           00000                                    0                                     
056417,000911: 35,3737           43014                           SET      BON                                   
056418,000912: 35,3740           04063                                    CMOONFLG                              

Page 1328

056420,000914: 35,3741           00315                                    AMOONFLG                              
056421,000915: 35,3742           73745                                    +3                                    
056422,000916: 35,3743           77614                           CLEAR                                          
056423,000917: 35,3744           04263                                    CMOONFLG                              
056424,000918: 
056425,000919: 35,3745           71214                           BON      DLOAD                                 #  NOW DO LM
056426,000920: 35,3746           04307                                    SURFFLAG                              
056427,000921: 35,3747           75737                                    FAZAB5                                #  NO COASTING LM
056428,000922: 35,3750           01205                                    PIPTIME                               
056429,000923: 35,3751           34041                           STCALL   TDEC1                                 
056430,000924: 35,3752           26670                                    SETIFLGS                              
056431,000925: 35,3753           45014                           CLEAR    CALL                                  
056432,000926: 35,3754           01674                                    VINTFLAG                              
056433,000927: 35,3755           27162                                    INTEGRV                               
056434,000928: 35,3756           77650                           GOTO                                           
056435,000929: 35,3757           02317                                    EGRESS                                
056436,000930: 35,3760           45145        INT/W              DLOAD    CALL                                  
056437,000931: 35,3761           01205                                    PIPTIME                               #  INTEGRATE W THRU BURN
056438,000932: 35,3762           27442                                    INTSTALL                              
056439,000933: 35,3763           43014                           SET      SET                                   
056440,000934: 35,3764           01476                                    DIM0FLAG                              #  DO W-MATRIX
056441,000935: 35,3765           04476                                    AVEMIDSW                              #  SO WONT CLOBBER RN,VN,PIPTIME
056442,000936: 35,3766           43014                           CLEAR    SET                                   
056443,000937: 35,3767           01675                                    D6OR9FLG                              
056444,000938: 35,3770           01474                                    VINTFLAG                              
056445,000939: 35,3771           34041                           STCALL   TDEC1                                 
056446,000940: 35,3772           27162                                    INTEGRV                               
056447,000941: 35,3773           77650                           GOTO                                           
056448,000942: 35,3774           73711                                    SETCOAST                              
056449,000943: 

Page 1329

056451,000945:                                                                                                  #  MIDTOAV1
056452,000946: 
056453,000947:                                                                                                  #  THIS ROUTINE INTEGRATES (PRECISION) TO THE TIME SPECIFIED IN TDEC1.
056454,000948:                                                                                                  #  IF, AT THE END OF AN INTEGRATION TIME STEP, CURRENT TIME PLUS A DELTA
056455,000949:                                                                                                  #  TIME (SEE TIMEDELT.....BASED ON THE COMPUTATUON TIME FOR ONE TIME STEP)
056456,000950:                                                                                                  #  IS GREATER THAN THE DESIRED TIME, ALARM 1703 IS SET AND THE INTEGRATION
056457,000951:                                                                                                  #  IS DONE AS IT IS FOR MIDTOAV2.
056458,000952:                                                                                                  #  RETURN IS IN BASIC TO THE RETURN ADDRESS PLUS ONE.
056459,000953: 
056460,000954:                                                                                                  #  IF THE INTEGRATION IS FINISHED TO THE DESIRED TIME, RETURN IS IN BASIC
056461,000955:                                                                                                  #  TO THE RETURN ADDRESS
056462,000956: 
056463,000957:                                                                                                  #  IN EITHER CASE, BEFORE RETURNING, THE EXTRAPOLATED STATE VECTOR IS TRAN
056464,000958:                                                                                                  #  FERRED FROM R,VATT TO R,VN1-PIPTIME1 IS SET TO THE FINISHING INTEGRA-
056465,000959:                                                                                                  #  TION TIME AND MPAC IS SET TO THE DELTA TIME---
056466,000960:                                                                                                  #                                    TAT MINUS CURRENT TIME.
056467,000961: 
056468,000962:                                                                                                  #  MIDTOAV2
056469,000963: 
056470,000964:                                                                                                  #  THIS ROUTINE INTEGRATES THE CSM STATE VECTOR TO CURRENT TIME PLUS
056471,000965:                                                                                                  #  INCREMENTS OF TIMEDELT SUCH THAT THE DIFFERENCE BETWEEN CURRENT TIME
056472,000966:                                                                                                  #  AND THE STATE VECTOR TIME AT THE END OF THE LAST STEP IS AT LEAST 5.6
056473,000967:                                                                                                  #  SECS.
056474,000968:                                                                                                  #  NO INPUTS ARE REQUIRED OF THE CALLER.  RETURN IS IN BASIC TO THE RETURN
056475,000969:                                                                                                  #  ADDRESS WITH THE ABOVE TRANSFERS TO R,VN1-PIPTIME1-AND MPAC DONE
056476,000970: 
056477,000971: 13,2000                                           SETLOC   INTINIT                               
056478,000972: 13,2000                                           BANK                                           
056479,000973: 13,3543     1127                                  EBANK=   IRETURN1                              
056480,000974: 13,3543           45020        MIDTOAV2           STQ      CALL                                  
056481,000975: 13,3544           01127                                    IRETURN1                              
056482,000976: 13,3545           27442                                    INTSTALL                              
056483,000977: 13,3546           43145                           DLOAD    CLEAR                                 
056484,000978: 13,3547           27711                                    TIMEDELT                              
056485,000979: 13,3550           04674                                    MID1FLAG                              
056486,000980: 13,3551           37732                           STCALL   T-TO-ADD                              
056487,000981: 13,3552           27567                                    ENTMID2                               
056488,000982: 
056489,000983: 13,3553           45020        MIDTOAV1           STQ      CALL                                  
056490,000984: 13,3554           01127                                    IRETURN1                              
056491,000985: 13,3555           27442                                    INTSTALL                              
056492,000986: 13,3556           47014                           SET      RTB                                   
056493,000987: 13,3557           04474                                    MID1FLAG                              
056494,000988: 13,3560           45510                                    LOADTIME                              
056495,000989: 13,3561           44215                           DAD      BDSU                                  #  INITIAL CHECK, IS TDEC1 IN THE FUTURE.
056496,000990: 13,3562           27711                                    TIMEDELT                              
056497,000991: 13,3563           00041                                    TDEC1                                 
056498,000992: 13,3564           45044                           BPL      CALL                                  
056499,000993: 13,3565           27573                                    ENTMID1                               

Page 1330

056501,000995: 13,3566           27674                                    NOTIME                                #  NO SET ALARM.SWITCH TO MIDTOAV2
056502,000996: 
056503,000997: 13,3567           43234        ENTMID2            RTB      DAD                                   
056504,000998: 13,3570           45510                                    LOADTIME                              
056505,000999: 13,3571           03732                                    T-TO-ADD                              
056506,001000: 13,3572           00041                           STORE    TDEC1                                 
056507,001001: 
056508,001002: 13,3573           45014        ENTMID1            CLEAR    CALL                                  
056509,001003: 13,3574           01676                                    DIM0FLAG                              #  NO W-MATRIX
056510,001004: 13,3575           26034                                    THISVINT                              
056511,001005: 13,3576           43014                           CLEAR    SET                                   
056512,001006: 13,3577           01673                                    INTYPFLG                              
056513,001007: 13,3600           04475                                    MIDAVFLG                              #  LET INTEG. KNOW THE CALL IS FOR MIDTOAV.
056514,001008: 13,3601           77624                           CALL                                           
056515,001009: 13,3602           27162                                    INTEGRV                               #  GO INTEGRATE
056516,001010: 13,3603           66134                           SXA,2    SXA,1                                 
056517,001011: 13,3604           03746                                    RTX2                                  
056518,001012: 13,3605           03745                                    RTX1                                  
056519,001013: 13,3606           67214                           CLEAR    SLOAD                                 
056520,001014: 13,3607           00275                                    AMOONFLG                              
056521,001015: 13,3610           03747                                    RTX2                                  
056522,001016: 13,3611           43054                           BZE      SET                                   
056523,001017: 13,3612           27614                                    +2                                    
056524,001018: 13,3613           00075                                    AMOONFLG                              
056525,001019: 13,3614           77775                           VLOAD                                          
056526,001020: 13,3615           00001                                    RATT                                  
056527,001021: 13,3616           25232                           STOVL    RN1                                   
056528,001022: 13,3617           00007                                    VATT                                  
056529,001023: 13,3620           15240                           STODL    VN1                                   
056530,001024: 13,3621           00015                                    TAT                                   
056531,001025: 13,3622           01246                           STORE    PIPTIME1                              
056532,001026: 13,3623           77776                           EXIT                                           
056533,001027: 
056534,001028: 13,3624           00004                           INHINT                                         
056535,001029: 13,3625           00006                           EXTEND                                         
056536,001030: 13,3626           40025                           DCS      TIME2                                 
056537,001031: 13,3627           20155                           DAS      MPAC                                  
056538,001032: 13,3630           07226                           TC       TPAGREE                               
056539,001033: 
056540,001034: 13,3631           31127                           CA       IRETURN1                              
056541,001035: 13,3632           04704                           TC       BANKJUMP                              
056542,001036: 13,3633           47014        CKMID2             BOF      RTB                                   
056543,001037: 13,3634           04754                                    MID1FLAG                              
056544,001038: 13,3635           27652                                    MID2                                  
056545,001039: 13,3636           45510                                    LOADTIME                              
056546,001040: 13,3637           44215                           DAD      BDSU                                  
056547,001041: 13,3640           27711                                    TIMEDELT                              
056548,001042: 13,3641           01101                                    TDEC                                  
056549,001043: 13,3642           45044                           BPL      CALL                                  
056550,001044: 13,3643           27305                                    TESTLOOP                              #  YES

Page 1331

056552,001046: 13,3644           27674                                    NOTIME                                
056553,001047: 
056554,001048: 13,3645           43234        TIMEINC            RTB      DAD                                   
056555,001049: 13,3646           45510                                    LOADTIME                              
056556,001050: 13,3647           03732                                    T-TO-ADD                              
056557,001051: 13,3650           35101                           STCALL   TDEC                                  
056558,001052: 13,3651           27305                                    TESTLOOP                              
056559,001053: 
056560,001054: 13,3652           45345        MID2               DLOAD    DSU                                   
056561,001055: 13,3653           01101                                    TDEC                                  
056562,001056: 13,3654           01517                                    TET                                   
056563,001057: 13,3655           45246                           ABS      DSU                                   
056564,001058: 13,3656           27707                                    3CSECS                                
056565,001059: 13,3657           77644                           BPL                                            
056566,001060: 13,3660           27645                                    TIMEINC                               
056567,001061: 
056568,001062: 13,3661           44234                           RTB      BDSU                                  #  SEE IF 5.6 SECS. AVAILABLE TO CALLER.
056569,001063: 13,3662           45510                                    LOADTIME                              
056570,001064: 13,3663           01517                                    TET                                   
056571,001065: 13,3664           51025                           DSU      BPL                                   
056572,001066: 13,3665           27713                                    5.6SECS                               
056573,001067: 13,3666           27176                                    A-PCHK                                #  YES,GET OUT.
056574,001068: 
056575,001069: 13,3667           43345                           DLOAD    DAD                                   #  NO,ADD TIMEDELT TO T-TO-ADD AND TRY
056576,001070: 13,3670           03732                                    T-TO-ADD                              #  AGAIN.
056577,001071: 13,3671           27711                                    TIMEDELT                              
056578,001072: 13,3672           37732                           STCALL   T-TO-ADD                              
056579,001073: 13,3673           27645                                    TIMEINC                               
056580,001074: 13,3674           77414        NOTIME             CLEAR    EXIT                                  #  TOO LATE
056581,001075: 13,3675           04674                                    MID1FLAG                              
056582,001076: 13,3676           25127                           INCR     IRETURN1                              #  SET ERROR EXIT (CALLOC +2)
056583,001077: 13,3677           05650                           TC       ALARM                                 #  INSUFFICIENT TIME FOR INTEGRATION --
056584,001078: 13,3700           01703                           OCT      1703                                  #        TIG WILL BE SLIPPED...
056585,001079: 13,3701           06006                           TC       INTPRET                               
056586,001080: 13,3702           77745                           DLOAD                                          
056587,001081: 13,3703           27711                                    TIMEDELT                              
056588,001082: 13,3704           03732                           STORE    T-TO-ADD                              
056589,001083: 13,3705           77616                           RVQ                                            
056590,001084: 
056591,001085: 13,3706           00000 00003  3CSECS             2DEC     3          B-28                       
056592,001086: 
056593,001087: 13,3710           00000 02342  TIMEDELT           2DEC     1250       B-28                       
056594,001088: 
056595,001089: 13,3712           00000 01060  5.6SECS            2DEC     560        B-28                       
056596,001090: 
056597,001091: 27,2671                                           BANK     27                                    
056598,001092: 27,2000                                           SETLOC   UPDATE2                               
056599,001093: 27,2000                                           BANK                                           
056600,001094: 27,2671     0330                                  EBANK=   INTWAKUQ                              
056601,001095: 

Page 1332

056603,001097: 27,2671                                           COUNT*   $$/INTIN                              
056604,001098: 
056605,001099: 27,2671     0330               INTWAKUQ           =        INTWAK1Q                              #  TEMPORARY UNTIL NAME OF INTWAK1Q IS CHNG
056606,001100: 
056607,001101: 27,2671           00003        INTWAKEU           RELINT                                         
056608,001102: 27,2672           00006                           EXTEND                                         
056609,001103: 27,2673           22330                           QXCH     INTWAKUQ                              #  SAVE Q FOR RETURN
056610,001104: 
056611,001105: 27,2674           06006                           TC       INTPRET                               
056612,001106: 
056613,001107: 27,2675           53135                           SLOAD    BZE                                   #  IS THIS A CSM/LEM STATE VECTOR UPDATE
056614,001108: 27,2676           01502                                    UPSVFLAG                              #  REQUEST.  IF NOT GO TO INTWAKUP.
056615,001109: 27,2677           56736                                    INTWAKUP                              
056616,001110: 
056617,001111: 27,2700           77775                           VLOAD                                          #  MOVE RRECT(6) AND VRECT(6) INTO
056618,001112: 27,2701           01503                                    RRECT                                 #        RCV(6) AND VCV(6) RESPECTIVELY.
056619,001113: 27,2702           25535                           STOVL    RCV                                   
056620,001114: 27,2703           01511                                    VRECT                                 #  NOW GO TO 'RECTIFY +13D' TO
056621,001115: 27,2704           77624                           CALL                                           #  STORE VRECT INTO VCV AND ZERO OUT
056622,001116: 27,2705           23436                                    RECTIFY    +13D                       #  TDELTAV(6),TNUV(6),TC(2) AND XKEP(2)
056623,001117: 27,2706           51535                           SLOAD    ABS                                   #  COMPARE ABSOLUTE VALUE OF 'UPSVFLAG'
056624,001118: 27,2707           01502                                    UPSVFLAG                              #  TO 'UPDATE MOON STATE VECTOR CODE'
056625,001119: 27,2710           53025                           DSU      BZE                                   #  TO DETERMINE WHETHER THE STATE VECTOR TO
056626,001120: 27,2711           16747                                    UPMNSVCD                              #  BE UPDATED IS IN THE EARTH OR LUNAR
056627,001121: 27,2712           56717                                    INTWAKEM                              #  SPHERE OF INFLUENCE.........
056628,001122: 27,2713           43174                           AXT,2    CLRGO                                 #  EARTH SPHERE OF INFLUENCE.
056629,001123: 27,2714           00000                           DEC      0          B-14                       
056630,001124: 27,2715           00223                                    MOONFLAG                              
056631,001125: 27,2716           56722                                    INTWAKEC                              
056632,001126: 27,2717           43174        INTWAKEM           AXT,2    SET                                   #  LUNAR SPHERE OF INFLUENCE.
056633,001127: 27,2720           00002                           DEC      2          B-14                       
056634,001128: 27,2721           00063                                    MOONFLAG                              
056635,001129: 27,2722           50135        INTWAKEC           SLOAD    BMN                                   #  COMMON CODING AFTER X2 INITIALIZED AND
056636,001130:                                                                                                  #  MOONFLAG SET (OR CLEARED).
056637,001131: 27,2723           01502                                    UPSVFLAG                              #  IS THIS A REQUEST FOR A LEM OR CSM
056638,001132: 27,2724           56732                                    INTWAKLM                              #        STATE VECTOR UPDATE......
056639,001133: 27,2725           77624                           CALL                                           #  UPDATE CSM STATE VECTOR
056640,001134: 27,2726           26705                                    ATOPCSM                               
056641,001135: 
056642,001136: 27,2727           52014                           CLEAR    GOTO                                  
056643,001137: 27,2730           01671                                    ORBWFLAG                              
056644,001138: 27,2731           56734                                    INTWAKEX                              
056645,001139: 
056646,001140: 27,2732           77624        INTWAKLM           CALL                                           #  UPDATE LM STATE VECTOR
056647,001141: 27,2733           26760                                    ATOPLEM                               
056648,001142: 
056649,001143: 27,2734           77614        INTWAKEX           CLEAR                                          
056650,001144: 27,2735           02676                                    RENDWFLG                              
056651,001145: 
056652,001146: 27,2736           45131        INTWAKUP           SSP      CALL                                  #  REMOVE :UPDATE STATE VECTOR INDICATOR:

Page 1333

056654,001148: 27,2737           01502                                    UPSVFLAG                              
056655,001149: 27,2740           00000                                    0                                     
056656,001150: 27,2741           27455                                    INTWAKE0                              #  RELEASE :GRAB: OF ORBIT INTEG
056657,001151: 27,2742           77776                           EXIT                                           
056658,001152: 
056659,001153: 27,2743           05412                           TC       PHASCHNG                              
056660,001154: 27,2744           04026                           OCT      04026                                 
056661,001155: 27,2745           00330                           TC       INTWAKUQ                              
056662,001156: 
056663,001157: 27,2746           00002        UPMNSVCD           OCT      2                                     
056664,001158: 27,2747           00000                           OCT      0                                     
056665,001159: 
056666,001160: 27,2750           77420        GRP2PC             STQ      EXIT                                  
056667,001161: 27,2751           03536                                    GRP2SVQ                               
056668,001162: 27,2752           05412                           TC       PHASCHNG                              
056669,001163: 27,2753           04022                           OCT      04022                                 
056670,001164: 27,2754           06006                           TC       INTPRET                               
056671,001165: 27,2755           77650                           GOTO                                           
056672,001166: 27,2756           03536                                    GRP2SVQ                               
056673,001167: 
056674,001168: 
056675,001169: 

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