Source Code

This is a reconstruction of the AGC program Luminary 99 Rev 0. It was the third release of the Lunar Module flight software targeted for use in Apollo 11, after Luminary 96 and 97. A bug (which had been around since at least Apollo 10, Luminary 69) was discovered in Rev 0 shortly before the Apollo 11 flight, resulting in a last minute revision into Rev 1, which is what actually flew rather than the Rev 0 presented here. A hardcopy of Rev 0 is known to exist — it belonged to AGC developer Allan Klumpp for many years — but unfortunately the Virtual AGC Project has not had access to that hardcopy. Thus the code you see here had been reconstructed (we believe accurately) rather than transcribed. The first step of the reconstruction of the Rev 0 source code was the transcription of the Rev 1 source code from a hardcopy in the MIT Museum collection. The process of reverting the active portion of the source code (i.e., other than program comments) from Rev 1 to Rev 0 was very minor, consisting only of moving the position of the STARTSB1 label in FRESH START AND RESTART. Allan had previously given us the checksums of the memory banks of Rev 0, and we have verified the program presented here has checksums identical to all banks of Allan's listing of Rev 0. The notations on Allan's Rev 0 program listing read, in part:

	GAP:  ASSEMBLE REVISION 099 OF AGC PROGRAM LUMINARY BY NASA 2021112-051

A single program comment is known to differ between Rev 0 and Rev 1, but these are harder to reconstruct and verify than changes to the active portion of the code. Thus it is possible that there are additional differences between the program comments in Rev 0 and Rev 1 that are unknown to us, and therefore are not reflected in the code presented here.

052377,000002:                                                                                                  ## Copyright:   Public domain.
052378,000003:                                                                                                  ## Filename:    INTEGRATION_INITIALIZATION.agc
052379,000004:                                                                                                  ## Purpose:     Part of the reconstructed source code for LMY99 Rev 0,
052380,000005:                                                                                                  ##              otherwise known as Luminary Rev 99, the third release
052381,000006:                                                                                                  ##              of the Apollo Guidance Computer (AGC) software for Apollo 11.
052382,000007:                                                                                                  ##              It differs from LMY99 Rev 1 (the flown version) only in the
052383,000008:                                                                                                  ##              placement of a single label. The corrections shown here have
052384,000009:                                                                                                  ##              been verified to have the same bank checksums as AGC developer
052385,000010:                                                                                                  ##              Allan Klumpp's copy of Luminary Rev 99, and so are believed
052386,000011:                                                                                                  ##              to be accurate. This file is intended to be a faithful 
052387,000012:                                                                                                  ##              recreation, except that the code format has been changed to 
052388,000013:                                                                                                  ##              conform to the requirements of the yaYUL assembler rather than 
052389,000014:                                                                                                  ##              the original YUL assembler.
052390,000015:                                                                                                  ##
052391,000016:                                                                                                  ## Assembler:   yaYUL
052392,000017:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
052393,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo.
052394,000019:                                                                                                  ## Pages:       1205-1226
052395,000020:                                                                                                  ## Mod history: 2009-05-26 RSB  Adapted from the corresponding 
052396,000021:                                                                                                  ##                              Luminary131 file, using page 
052397,000022:                                                                                                  ##                              images from Luminary 1A.
052398,000023:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
052399,000024:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
052400,000025:                                                                                                  ##                              and corrected the errors found.
052401,000026:                                                                                                  ##              2017-01-22 MAS  Fixed some lingering comment errors.
052402,000027:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
052403,000028:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
052404,000029:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
052405,000030:                                                                                                  ##              2017-08-01 MAS  Created from LMY99 Rev 1.
052406,000031: 
052407,000032:                                                                                                  ## This source code has been transcribed or otherwise adapted from
052408,000033:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
052409,000034:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
052410,000035:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
052411,000036:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
052412,000037:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
052413,000038:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
052414,000039:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
052415,000040:                                                                                                  ## actually created.
052416,000041:                                                                                                  ##
052417,000042:                                                                                                  ## The code has been modified to match LMY99 Revision 0, otherwise
052418,000043:                                                                                                  ## known as Luminary Revision 99, the Apollo 11 software release preceeding
052419,000044:                                                                                                  ## the listing from which it was transcribed. It has been verified to
052420,000045:                                                                                                  ## contain the same bank checksums as AGC developer Allan Klumpp's listing
052421,000046:                                                                                                  ## of Luminary Revision 99 (for which we do not have scans).
052422,000047:                                                                                                  ##
052423,000048:                                                                                                  ## Notations on Allan Klumpp's listing read, in part:
052424,000049:                                                                                                  ##
052425,000050:                                                                                                  ##      ASSEMBLE REVISION 099 OF AGC PROGRAM LUMINARY BY NASA 2021112-51
052426,000051: 

Page 1205

052428,000053:                                                                                                  #  1.0 INTRODUCTION
052429,000054:                                                                                                  #  ----------------
052430,000055: 
052431,000056:                                                                                                  #  FROM A USERS POINT OF VIEW, ORBITAL INTEGRATION IS ESSENTIALLY THE SAME AS THE 278 INTEGRATION
052432,000057:                                                                                                  #  PROGRAM.  THE SAME ENTRANCES TO THE PROGRAM WILL BE MAINTAINED, THE SAME STALLING ROUTINE WILL BE USED AND
052433,000058:                                                                                                  #  OUTPUT WILL STILL BE VIA THE PUSHLIST.  THE PRIMARY DIFFERENCES TO A USER INVOLVE THE ADDED CAPABILITY OF
052434,000059:                                                                                                  #  TERMINATING INTEGRATION AT A SPECIFIC FINAL RADIUS AND THE DIFFERENCE IN STATE VECTOR SCALING INSIDE AND OUT-
052435,000060:                                                                                                  #  SIDE THE LUNAR SPHERE OF INFLUENCE.
052436,000061: 
052437,000062:                                                                                                  #  IN ORDER TO MAKE THE CSM(LEM)PREC AND CSM(LEM)CONIC ENTRANCES SIMILAR TO FLIGHT 278, THE INTEGRATION PROGRAM
052438,000063:                                                                                                  #  WILL ITSELF SET THE FINAL RADIUS (RFINAL) TO 0 SO THAT REACHING THE DESIRED TIME ONLY WILL TERMINATE
052439,000064:                                                                                                  #  INTEGRATION.  THE DP REGISTER RFINAL MUST BE SET BY USERS OF INTEGRVS AND INTEGRV, AND MUST BE DONE AFTER THE
052440,000065:                                                                                                  #  CALL TC INTSTALL.
052441,000066: 
052442,000067:                                                                                                  #  WHEN THE LM IS ON THE LUNAR SURFACE (INDICATED BY LUNAR SURFACE FLAG SET) CALLS TO LEMCONIC, LEMPREC, AND
052443,000068:                                                                                                  #  INTEGRV WITH VINFLAG = 0 WILL RESULT IN THE USE OF THE PLANETARY INERTIAL ORIENTATION SUBROUTINES TO PROVIDE
052444,000069:                                                                                                  #  BOTH THE LMS POSITION AND VELOCITY IN THE REFERENCE COORDINATE SYSTEM.
052445,000070:                                                                                                  #  THE PROGRAM WILL PROVIDE OUTPUT AS IF INTEGRATION WAS USED.  THAT IS, THE PUSHLIST WILL BE SET AS NOTED BELOW AND
052446,000071:                                                                                                  #  THE PERMANENT STATE VECTOR UPDATED WHEN SPECIFIED BY AN INTEGRV CALL.
052447,000072: 
052448,000073:                                                                                                  #  USERS OF INTEGRVS DESIRING INTEGRATION (INTYPFLG = 0) SHOULD NOTE THAT THE OBLATENESS PERTURBATION COMPUTATION
052449,000074:                                                                                                  #  IN LUNAR ORBIT IS TIME DEPENDENT.  THEREFORE, THE USER SHOULD SUPPLY AN INITIAL STATE VECTOR VALID AT SOME REAL
052450,000075:                                                                                                  #  TIME AND THE DESIRED TIME (TDEC1) ALSO AT SOME REAL TIME.  FOR CONIC ,,INTEGRATION,, THE USER MAY STILL USE ZERO
052451,000076:                                                                                                  #  AS THE INITIAL TIME AND DELTA TIME AS THE DESIRED TIME.
052452,000077: 
052453,000078:                                                                                                  #  2.0 GENERAL DESCRIPTION
052454,000079:                                                                                                  #  -----------------------
052455,000080: 
052456,000081:                                                                                                  #  THE INTEGRATION PROGRAM OPERATES AS A CLOSED INTERPRETIVE SUBROUTINE AND PERFORMS THESE FUNCTIONS ---
052457,000082:                                                                                                  #        1) INTEGRATES (PRECISION OR CONIC) EITHER CSM OR LM STATE VECTOR
052458,000083:                                                                                                  #        2) INTEGRATES THE W-MATRIX
052459,000084:                                                                                                  #        3) PERMANENT OR TEMPORARY UPDATE OF THE STATE VECTOR
052460,000085: 
052461,000086:                                                                                                  #  THERE ARE SIX ENTRANCES TO THE INTEGRATION PROGRAM.  FOUR OF THESE (CSMPREC, LEMPREC, CSMCONIC, LEMCONIC) SET
052462,000087:                                                                                                  #  ALL THE FLAGS REQUIRED IN THE INTEGRATION PROGRAM ITSELF TO CAUSE THE PRECISION OR CONIC INTEGRATION (KEPLER) OF
052463,000088:                                                                                                  #  THE LM OR CSM STATE VECTOR, AS THE NAMES SUGGEST.  ONE ENTRANCE (INTEGRVS) PERMITS THE CALLING PROGRAM TO
052464,000089:                                                                                                  #  PROVIDE A STATE VECTOR TO BE INTEGRATED.  THE CALLING PROGRAM MUST SET THE FLAGS INDICATING (1) PRECISION OR
052465,000090:                                                                                                  #  CONIC INTEGRATION, (2) IN OR OUT OF LUNAR SPHERE, (3) MIDCOURSE OR NOT, AND THE INTEGRATION PROGRAM COMPLETES
052466,000091:                                                                                                  #  THE FLAG SETTING TO BYPASS W-MATRIX INTEGRATION.  THE LAST ENTRANCE (INTEGRV, USED IN GENERAL BY THE
052467,000092:                                                                                                  #  NAVIGATION PROGRAMS) PERMITS THE CALLER TO SET FIVE FLAGS (NOT MOONFLAG OR MIDFLAG) BUT NOT TO INPUT A STATE
052468,000093:                                                                                                  #  VECTOR.  ANY PROGRAM WHICH CALLS INTEGRVS OR INTEGRV MUST CALL INTSTALL BEFORE IT SETS THE INTEGRATION FLAGS
052469,000094:                                                                                                  #  AND/OR STATE VECTOR.
052470,000095: 
052471,000096:                                                                                                  #  THREE SETS OF 42 REGISTERS AND 2 FLAGS ARE USED FOR THE STATE VECTORS.  TWO SETS, WHICH MAY NOT BE OVERLAYED, ARE
052472,000097:                                                                                                  #  USED FOR THE PERMANENT STATE VECTORS FOR THE CSM AND LM.  THE THIRD SET, WHICH MAY BE OVERLAYED WHEN INTEGRATION
052473,000098:                                                                                                  #  IS NOT BEING DONE, IS USED IN THE COMPUTATIONS.
052474,000099: 
052475,000100:                                                                                                  #  THE PERMANENT STATE VECTORS WILL BE PERIODICALLY UPDATED SO THAT THE VECTORS WILL NOT BE OLDER THAN 4 TIMESTEPS.
052476,000101:                                                                                                  #  THE PERMANENT STATE VECTORS WILL ALSO BE UPDATED WHENEVER THE W-MATRIX IS INTEGRATED OR WHEN A CALLER OF INTEGRV
052477,000102:                                                                                                  #  SETS STATEFLG (THE NAVIGATION PROGRAMS P20, P22.)
052478,000103: 

Page 1206

052480,000105:                                                                                                  #  APPENDIX B OF THE USERS GUIDE LISTS THE STATE VECTOR QUANTITIES.
052481,000106: 
052482,000107:                                                                                                  #  2.1 RESTARTS
052483,000108: 
052484,000109:                                                                                                  #  PHASE CHANGES WILL BE MADE IN THE INTEGRATION PROGRAM ONLY FOR THE INTEGRV ENTRANCE (I.E., WHEN THE W-MATRIX IS
052485,000110:                                                                                                  #  INTEGRATED OR PERMANENT STATE VECTOR IS UPDATED.)  THE GROUP NUMBER USED WILL BE THAT FOR THE P20-25 PROGRAMS
052486,000111:                                                                                                  #  (I.E., GROUP2) SINCE THE INTEGRV ENTRANCE WILL ONLY BE USED BY THESE PROGRAMS.  IF A RESTART OCCURS DURING AN
052487,000112:                                                                                                  #  INTEGRATION OF THE STATE VECTOR ONLY, THE RECOVERY WILL BE TO THE LAST PHASE IN THE CALLING PROGRAM.  CALLING
052488,000113:                                                                                                  #  PROGRAMS WHICH USE THE INTEGRV OR INTEGRVS ENTRANCE OF INTEGRATION SHOULD ENSURE THAT IF PHASE CHANGING IS DONE
052489,000114:                                                                                                  #  THAT IT IS PRIOR TO SETTING THE INTEGRATION INPUTS IN THE PUSHLIST.
052490,000115:                                                                                                  #  THIS IS BECAUSE THE PUSHLIST IS LOST DURING A RESTART.
052491,000116: 
052492,000117:                                                                                                  #  2.2 SCALING
052493,000118: 
052494,000119:                                                                                                  #  THE INTEGRATION ROUTINE WILL MAINTAIN THE PERMANENT MEMORY STATE VECTORS IN THE SCALING AND UNITS DEFINED IN
052495,000120:                                                                                                  #  APPENDIX B OF THE USERS GUIDE.  THE SCALING OF THE OUTPUT POSITION VECTOR DEPENDS ON THE ORIGIN OF THE COORDINATE
052496,000121:                                                                                                  #  SYSTEM AT THE DESIRED INTEGRATION TIME.  THE COORDINATE SYSTEM TRANSFORMATION WILL BE DONE AUTOMATICALLY ON
052497,000122:                                                                                                  #  MULTIPLE TIMESTEP ENCKE INTEGRATION ONLY.  THUS IT IS POSSIBLE TO HAVE OUTPUT FROM SUCCESSIVE INTEGRATIONS IN
052498,000123:                                                                                                  #  DIFFERENT SCALING.
052499,000124:                                                                                                  #  HOWEVER, RATT, VATT WILL ALWAYS BE SCALED THE SAME.
052500,000125: 
052501,000126:                                                                                                  #  3.0 INPUT/OUTPUT
052502,000127:                                                                                                  #  ----------------
052503,000128: 
052504,000129:                                                                                                  #  PROGRAM INPUTS ARE THE FLAGS DESCRIBED IN APPENDIX A AND THE PERMANENT STATE VECTOR QUANTITIES DESCRIBED IN AP-
052505,000130:                                                                                                  #  PENDIX B OF THE USERS GUIDE, PLUS THE DESIRED TIME TO INTEGRATE TO IN TDEC1 (A PUSH LIST LOCATION).
052506,000131:                                                                                                  #  FOR INTEGRVS, THE RCV,VCV,TET OF THE TEMPORARY STATE VECTOR MUST BE SET, PLUS MOONFLAG AND MIDFLAG
052507,000132: 
052508,000133:                                                                                                  #  FOR SIMULATION THE FOLLOWING QUANTITIES MUST BE PRESET ---
052509,000134:                                                                                                  #                                                                                EARTH   MOON
052510,000135:                                                                                                  #                                                                                 29      27
052511,000136:                                                                                                  #        RRECTCSM(LEM)   -       RECTIFIED POSITION VECTOR       METERS          2       2
052512,000137: 
052513,000138:                                                                                                  #                                                                                 7       5
052514,000139:                                                                                                  #        VRECTCSM(LEM)   -       RECTIFIED VELOCITY VECTOR       M/CSEC          2       2
052515,000140: 
052516,000141:                                                                                                  #                                                                                 28      28
052517,000142:                                                                                                  #        TETCSM(LEM)     -       TIME STATE VECTOR IS VALID      CSEC            2       2
052518,000143:                                                                                                  #                                CUSTOMARILY 0, BUT NOTE LUNAR
052519,000144:                                                                                                  #                                ORBIT DEPENDENCE ON REAL TIME.
052520,000145: 
052521,000146:                                                                                                  #                                                                                 22      18
052522,000147:                                                                                                  #        DELTAVCSM(LEM)  -       POSITION DEVIATION              METERS          2       2
052523,000148:                                                                                                  #                                0 IF TCCSM(LEM) = 0
052524,000149: 
052525,000150:                                                                                                  #                                                                                 3       -1
052526,000151:                                                                                                  #        NUVCSM(LEM)     -       VELOCITY DEVIATION              M/CSEC          2       2
052527,000152:                                                                                                  #                                0 IF TCCSM(LEM) = 0

Page 1207

052529,000154:                                                                                                  #                                                                                 29      27
052530,000155:                                                                                                  #        RCVCSM(LEM)     -       CONIC POSITION                  METERS          2       2
052531,000156:                                                                                                  #                                EQUALS RRECTCSM(LEM) IF
052532,000157:                                                                                                  #                                TCCSM(LEM) = 0
052533,000158: 
052534,000159:                                                                                                  #                                                                                 7       5
052535,000160:                                                                                                  #        VCVCSM(LEM)     -       CONIC VELOCITY                  M/CSEC          2       2
052536,000161:                                                                                                  #                                EQUALS VRECTCSM(LEM) IF
052537,000162:                                                                                                  #                                TCCSM(LEM) = 0
052538,000163: 
052539,000164:                                                                                                  #                                                                                 28      28
052540,000165:                                                                                                  #        TCCSM(LEM)      -       TIME SINCE RECTIFICATION        CSECS           2       2
052541,000166:                                                                                                  #                                CUSTOMARILY 0
052542,000167: 
052543,000168:                                                                                                  #                                                                 1/2             17      16
052544,000169:                                                                                                  #        XKEPCSM(LEM)    -       ROOT OF KEPLERS EQUATION        M               2       2
052545,000170:                                                                                                  #                                0 IF TCCSM(LEM) = 0
052546,000171: 
052547,000172:                                                                                                  #        CMOONFLG        -       PERMANENT FLAGS CORRESPONDING                   0       0
052548,000173:                                                                                                  #        CMIDFLAG                TO MOONFLAG AND MIDFLAG                         0,1     0,1
052549,000174:                                                                                                  #        LMOONFLG                C = CSM, L = LM                                 0       0
052550,000175:                                                                                                  #        LMIDFLG                                                                 0,1     0,1
052551,000176: 
052552,000177:                                                                                                  #        SURFFLAG        -       LUNAR SURFACE FLAG                              0,1     0,1
052553,000178: 
052554,000179:                                                                                                  #  IN ADDITION, IF (L)CMIDFLAG IS SET, THE INITIAL INPUT VALUES FOR LUNAR
052555,000180:                                                                                                  #  SOLAR EPHEMERIDES SUBROUTINE AND PLANETARY INERTIAL ORIENTATION SUB-
052556,000181:                                                                                                  #  ROUTINE MUST BE PRESET.
052557,000182: 
052558,000183:                                                                                                  #  OUTPUT
052559,000184:                                                                                                  #        AFTER EVERY CALL TO INTEGRATION
052560,000185:                                                                                                  #                                                                        EARTH   MOON
052561,000186:                                                                                                  #                                                                         29      29
052562,000187:                                                                                                  #        0D      RATT    POSITION                        METERS          2       2
052563,000188: 
052564,000189:                                                                                                  #                                                                         7       7
052565,000190:                                                                                                  #        6D      VATT    VELOCITY                        M/CSEC          2       2
052566,000191: 
052567,000192:                                                                                                  #                                                                         28      28
052568,000193:                                                                                                  #        12D     TAT     TIME                                            2       2
052569,000194: 
052570,000195:                                                                                                  #                                                                         29      27
052571,000196:                                                                                                  #        14D     RATT1   POSITION                        METERS          2       2
052572,000197: 
052573,000198:                                                                                                  #                                                                         7       5
052574,000199:                                                                                                  #        20D     VATT1   VELOCITY                        M/CSEC          2       2
052575,000200: 
052576,000201:                                                                                                  #                                                         3   2           36      30
052577,000202:                                                                                                  #        26D     MU(P)   MU                              M /CS           2       2
052578,000203: 
052579,000204:                                                                                                  #        X1              MUTABLE ENTRY                                   -2      -10D
052580,000205: 
052581,000206:                                                                                                  #        X2              COORDINT
052582,000207:                                                                                                  #        X2              COORDINATE SYSTEM ORIGEN                        0       2
052583,000208:                                                                                                  #                        (THIS, NOT MOONFLAG, SHOULD BE

Page 1208

052585,000210:                                                                                                  #                        USED TO DETERMINE ORIGIN.)
052586,000211: 
052587,000212:                                                                                                  #  IN ADDITION TO THE ABOVE, THE PERMANENT STATE VECTOR IS UPDATED WHENEVER
052588,000213:                                                                                                  #  STATEFLG WAS SET AND WHENEVER A W-MATRIX IS TO BE INTEGRATED.  THE PUSH
052589,000214:                                                                                                  #  COUNTER IS SET TO 0 AND OVERFLOW IS CLEARED BEFORE RETURNING TO THE
052590,000215:                                                                                                  #  CALLING PROGRAM.
052591,000216: 
052592,000217:                                                                                                  #  4.0 CALLING SEQUENCES AND SAMPLE CODE
052593,000218:                                                                                                  #  -------------------------------------
052594,000219: 
052595,000220:                                                                                                  #        A) PRECISION ORBITAL INTEGRATION.  CSMPREC, LEMPREC ENTRANCES
052596,000221:                                                                                                  #                L-X     STORE TIME TO 95T5791T5 T 95 PUS L9ST (T4531)
052597,000222:                                                                                                  #                L       CALL
052598,000223:                                                                                                  #                L+1             CSMPREC (OR LEMPREC)
052599,000224:                                                                                                  #                L+2     RETURN
052600,000225:                                                                                                  #           INPUT                                                           28
052601,000226:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO...CENTISECONDS SCALED 2
052602,000227:                                                                                                  #           OUTPUT
052603,000228:                                                                                                  #                THE DATA LISTED IN SECTION 3.0 PLUS
052604,000229:                                                                                                  #                RQVV    POSITION VECTOR OF VEHICLE WITH RESPECT TO SECONDARY
052605,000230:                                                                                                  #                BODY... METERS B-29 ONLY IF MIDFLAG = DIMOFLAG = 1
052606,000231:                                                                                                  #        B) CONIC INTEGRATION.  CSMCONIC, LEMCONIC ENTRANCES
052607,000232:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1)
052608,000233:                                                                                                  #                L       CALL
052609,000234:                                                                                                  #                L+1             CSMCONIC (OR LEMCONIC)
052610,000235:                                                                                                  #           INPUT/OUTPUT
052611,000236:                                                                                                  #                SAME AS PRECISION INTEGRATION, EXCEPT RQVV NOT SET
052612,000237:                                                                                                  #        C) INTEGRATE GIVEN STATE VECTOR.  INTEGRVS ENTRANCE
052613,000238:                                                                                                  #                CALL
052614,000239:                                                                                                  #                                INTSTALL
052615,000240:                                                                                                  #                VLOAD
052616,000241:                                                                                                  #                                POSITION VECTOR
052617,000242:                                                                                                  #                STOVL           RCV
052618,000243:                                                                                                  #                                VELOCITY VECTOR
052619,000244:                                                                                                  #                STODL           VCV
052620,000245:                                                                                                  #                                TIME STATE VECTOR VALID
052621,000246:                                                                                                  #                STODL           TET
052622,000247:                                                                                                  #                                FINAL RADIUS
052623,000248:                                                                                                  #                STORE           RFINAL
052624,000249:                                                                                                  #                SET(CLEAR)      SET(CLEAR)
052625,000250:                                                                                                  #                                INTYPFLAG
052626,000251:                                                                                                  #                                MOONFLAG
052627,000252:                                                                                                  #                SET(CLEAR)      DLOAD
052628,000253:                                                                                                  #                                DESIRED TIME
052629,000254:                                                                                                  #                STCALL          TDEC1
052630,000255:                                                                                                  #                                INTEGRVS
052631,000256:                                                                                                  #          INPUT
052632,000257:                                                                                                  #                RCV     POSITION VECTOR                 METERS
052633,000258:                                                                                                  #                VCV     VELOCITY VECTOR                 M/CSEC
052634,000259:                                                                                                  #                TET     TIME OF STATE VECTOR (MAY = 0)  CSEC B-28

Page 1209

052636,000261:                                                                                                  #                TDEC1   TIME TO INTEGRATE TO            CSEC B-28 (PD 32D)
052637,000262:                                                                                                  #                        (MAY BE INCREMENT IF TET=0)
052638,000263:                                                                                                  #          OUTPUT
052639,000264:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION,
052640,000265:                                                                                                  #                DEPENDING ON INTYPFLG.
052641,000266:                                                                                                  #        D) INTEGRATE STATE VECTOR.  INTGRV ENTRANCE
052642,000267:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1) (MAY BE DONE AFTER CALL TO INTSTALL)
052643,000268:                                                                                                  #                L-8     CALL
052644,000269:                                                                                                  #                L-7
052645,000270:                                                                                                  #                L-6     SET(CLEAR)      SET(CLEAR)
052646,000271:                                                                                                  #                L-5                     VINTFLAG        1=CSM, 0=LM
052647,000272:                                                                                                  #                L-4                     INTYPFLAG       1=CONIC, 0=PRECISION
052648,000273:                                                                                                  #                L-3     SET(CLEAR)      SET(CLEAR)
052649,000274:                                                                                                  #                L-2                     DIMOFLAG        1=W-MATRIX, 0=NO W-MATRIX
052650,000275:                                                                                                  #                L-1                     D6OR9FLG        1=9X9, 0=6X6
052651,000276:                                                                                                  #                L       SET             DLOAD
052652,000277:                                                                                                  #                L+1                     STATEFLG        DESIRE PERMANENT UPDATE
052653,000278:                                                                                                  #                L+2                     FINAL RAD.      OF STATE VECTOR
052654,000279:                                                                                                  #                L+3     STCALL          RFINAL
052655,000280:                                                                                                  #                L+4                     INTEGRV
052656,000281:                                                                                                  #                L       CALL                            NORMAL USE -- WILL UPDATE STATE
052657,000282:                                                                                                  #                L+1                     INTEGRV         VECTOR IF DIMOFLAG=1. (STATEFLG IS
052658,000283:                                                                                                  #                L+2     RETURN                          ALWAYS RESET IN INTEGRATION AFTER
052659,000284:                                                                                                  #                                                        IT IS USED.)
052660,000285:                                                                                                  #          INPUT
052661,000286:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO     CSEC B-28
052662,000287:                                                                                                  #          OUTPUT
052663,000288:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION
052664,000289:                                                                                                  #          THE PROGRAM WILL SET MOONFLAG, MIDFLAG DEPENDING ON
052665,000290:                                                                                                  #          THE PERMANENT STATE VECTOR REPRESENTATION.
052666,000291: 
052667,000292: 11,2376                                           BANK     11                                    
052668,000293: 13,2000                                           SETLOC   INTINIT                               
052669,000294: 13,2000                                           BANK                                           
052670,000295: 13,2604  E3,1554                                  EBANK=   RRECTCSM                              
052671,000296: 13,2604                                           COUNT*   $$/INTIN                              
052672,000297: 13,2604           05353        STATEINT           TC       PHASCHNG                              
052673,000298: 13,2605           00052                           OCT      00052                                 
052674,000299: 13,2606           35017                           CAF      PRIO5                                 
052675,000300: 13,2607           05105                           TC       FINDVAC                               
052676,000301: 13,2610  E3,1554                                  EBANK=   RRECTCSM                              
052677,000302: 13,2610           02613 26063                     2CADR    STATINT1                              
052678,000303: 
052679,000304: 13,2612           05261                           TC       TASKOVER                              
052680,000305: 13,2613           06037        STATINT1           TC       INTPRET                               
052681,000306: 13,2614           47014                           BON      RTB                                   
052682,000307: 13,2615           04712                                    QUITFLAG                              #  KILL INTEGRATION UNTIL NEXT POO.
052683,000308: 13,2616           26653                                    NOINT                                 
052684,000309: 13,2617           21573                                    LOADTIME                              
052685,000310: 13,2620           00041                           STORE    TDEC1                                 

Page 1210

052687,000312: 13,2621           77624                           CALL                                           
052688,000313: 13,2622           27414                                    INTSTALL                              
052689,000314: 13,2623           45014                           SET      CALL                                  
052690,000315: 13,2624           01076                                    NODOFLAG                              
052691,000316: 13,2625           26644                                    SETIFLGS                              
052692,000317: 13,2626           77650                           GOTO                                           
052693,000318: 13,2627           26026                                    STATEUP                               
052694,000319: 13,2630           00003 25140  600SECS            2DEC     60000      B-28                       
052695,000320: 
052696,000321: 13,2632           77414        ENDINT             CLEAR    EXIT                                  
052697,000322: 13,2633           01672                                    STATEFLG                              
052698,000323: 13,2634           05353                           TC       PHASCHNG                              
052699,000324: 13,2635           20032                           OCT      20032                                 
052700,000325: 13,2636           00006                           EXTEND                                         
052701,000326: 13,2637           32631                           DCA      600SECS                               
052702,000327: 13,2640           05277                           TC       LONGCALL                              
052703,000328: 13,2641  E3,1626                                  EBANK=   RRECTHIS                              
052704,000329: 13,2641           02604 26063                     2CADR    STATEINT                              
052705,000330: 
052706,000331: 13,2643           05155                           TC       ENDOFJOB                              
052707,000332: 13,2644           43014        SETIFLGS           SET      CLEAR                                 
052708,000333: 13,2645           01472                                    STATEFLG                              
052709,000334: 13,2646           01673                                    INTYPFLG                              
052710,000335: 13,2647           43014                           CLEAR    CLEAR                                 
052711,000336: 13,2650           01676                                    DIM0FLAG                              
052712,000337: 13,2651           01675                                    D6OR9FLG                              
052713,000338: 13,2652           77616                           RVQ                                            
052714,000339: 13,2653           77776        NOINT              EXIT                                           
052715,000340: 13,2654           05353                           TC       PHASCHNG                              
052716,000341: 13,2655           00002                           OCT      00002                                 
052717,000342: 
052718,000343: 13,2656           05516                           TC       DOWNFLAG                              
052719,000344: 13,2657           00221                           ADRES    QUITFLAG                              
052720,000345: 13,2660           05155                           TC       ENDOFJOB                              
052721,000346: 
052722,000347:                                                                                                  #  ATOPCSM TRANSFERS RRECT TO RRECT +41 TO RRECTCSM TO RRECTCSM +41
052723,000348: 
052724,000349:                                                                                                  #  CALLING SEQUENCE
052725,000350:                                                                                                  #        L       CALL
052726,000351:                                                                                                  #        L+1             ATOPCSM
052727,000352: 
052728,000353:                                                                                                  #  NORMAL EXIT AT L+2
052729,000354: 
052730,000355: 13,2661           47020        ATOPCSM            STQ      RTB                                   
052731,000356: 13,2662           00051                                    S2                                    
052732,000357: 13,2663           26674                                    MOVEACSM                              
052733,000358: 13,2664           45014                           SET      CALL                                  
052734,000359: 13,2665           04063                                    CMOONFLG                              
052735,000360: 13,2666           26114                                    SVDWN1                                
052736,000361: 13,2667           43014                           BON      CLRGO                                 

Page 1211

052738,000363: 13,2670           00303                                    MOONFLAG                              
052739,000364: 13,2671           00051                                    S2                                    
052740,000365: 13,2672           04223                                    CMOONFLG                              
052741,000366: 13,2673           00051                                    S2                                    
052742,000367: 13,2674           03036        MOVEACSM           TC       SETBANK                               
052743,000368: 13,2675           55500                           TS       DIFEQCNT                              #  INITIALIZE INDEX
052744,000369: 13,2676           51500                           INDEX    DIFEQCNT                              
052745,000370: 13,2677           31502                           CA       RRECT                                 
052746,000371: 13,2700           51500                           INDEX    DIFEQCNT                              
052747,000372: 13,2701           55554                           TS       RRECTCSM                              
052748,000373: 13,2702           11500                           CCS      DIFEQCNT                              #  IS TRANSFER COMPLETE
052749,000374: 13,2703           12675                           TCF      MOVEACSM   +1                         #  NO-LOOP
052750,000375: 13,2704           06061                           TC       DANZIG                                #  COMPLETE - RETURN
052751,000376: 
052752,000377:                                                                                                  #  PTOACSM TRANSFERS RRECTCSM TO RRECTCSM +41 TO RRECT TO RRECT +41
052753,000378: 
052754,000379:                                                                                                  #  CALLING SEQUENCE
052755,000380:                                                                                                  #        L       CALL
052756,000381:                                                                                                  #                        PTOACSM
052757,000382: 
052758,000383:                                                                                                  #  NORMAL EXIT AT L+2
052759,000384: 
052760,000385: 13,2705           43034        PTOACSM            RTB      BON                                   
052761,000386: 13,2706           26723                                    MOVEPCSM                              
052762,000387: 13,2707           04303                                    CMOONFLG                              
052763,000388: 13,2710           26716                                    SETMOON                               
052764,000389: 13,2711           66214        CLRMOON            CLEAR    SSP                                   
052765,000390: 13,2712           00263                                    MOONFLAG                              
052766,000391: 13,2713           02031                                    PBODY                                 
052767,000392: 13,2714           00000                                    0                                     
052768,000393: 13,2715           77616                           RVQ                                            
052769,000394: 13,2716           66214        SETMOON            SET      SSP                                   
052770,000395: 13,2717           00063                                    MOONFLAG                              
052771,000396: 13,2720           02031                                    PBODY                                 
052772,000397: 13,2721           00002                                    2                                     
052773,000398: 13,2722           77616                           RVQ                                            
052774,000399: 13,2723           03036        MOVEPCSM           TC       SETBANK                               
052775,000400: 13,2724           55500                           TS       DIFEQCNT                              
052776,000401: 13,2725           51500                           INDEX    DIFEQCNT                              
052777,000402: 13,2726           31554                           CA       RRECTCSM                              
052778,000403: 13,2727           51500                           INDEX    DIFEQCNT                              
052779,000404: 13,2730           55502                           TS       RRECT                                 
052780,000405: 13,2731           11500                           CCS      DIFEQCNT                              
052781,000406: 13,2732           12724                           TCF      MOVEPCSM   +1                         
052782,000407: 13,2733           06061                           TC       DANZIG                                
052783,000408: 
052784,000409:                                                                                                  #  ATOPLEM TRANSFERS RRECT TO RRECT +41 TO RRECTLEM TO RRECTLEM +41
052785,000410: 13,2734           47020        ATOPLEM            STQ      RTB                                   

Page 1212

052787,000412: 13,2735           00051                                    S2                                    
052788,000413: 13,2736           26747                                    MOVEALEM                              
052789,000414: 13,2737           45014                           SET      CALL                                  
052790,000415: 13,2740           04064                                    LMOONFLG                              
052791,000416: 13,2741           26070                                    SVDWN2                                
052792,000417: 13,2742           43014                           BON      CLRGO                                 
052793,000418: 13,2743           00303                                    MOONFLAG                              
052794,000419: 13,2744           00051                                    S2                                    
052795,000420: 13,2745           04224                                    LMOONFLG                              
052796,000421: 13,2746           00051                                    S2                                    
052797,000422: 13,2747           03036        MOVEALEM           TC       SETBANK                               
052798,000423: 13,2750           55500                           TS       DIFEQCNT                              
052799,000424: 13,2751           51500                           INDEX    DIFEQCNT                              
052800,000425: 13,2752           31502                           CA       RRECT                                 
052801,000426: 13,2753           51500                           INDEX    DIFEQCNT                              
052802,000427: 13,2754           55626                           TS       RRECTLEM                              
052803,000428: 13,2755           11500                           CCS      DIFEQCNT                              
052804,000429: 13,2756           12750                           TCF      MOVEALEM   +1                         
052805,000430: 13,2757           06061                           TC       DANZIG                                
052806,000431: 
052807,000432:                                                                                                  #  PTOALEM TRANSFERS RRECTLEM TO RRECTLEM +41 TO RRECT TO RRECT +41
052808,000433: 
052809,000434: 13,2760           47014        PTOALEM            BON      RTB                                   
052810,000435: 13,2761           04307                                    SURFFLAG                              
052811,000436: 13,2762           27001                                    USEPIOS                               
052812,000437: 13,2763           26770                                    MOVEPLEM                              
052813,000438: 13,2764           52014                           BON      GOTO                                  
052814,000439: 13,2765           04304                                    LMOONFLG                              
052815,000440: 13,2766           26716                                    SETMOON                               
052816,000441: 13,2767           26711                                    CLRMOON                               
052817,000442: 13,2770           03036        MOVEPLEM           TC       SETBANK                               
052818,000443: 13,2771           55500                           TS       DIFEQCNT                              
052819,000444: 13,2772           51500                           INDEX    DIFEQCNT                              
052820,000445: 13,2773           31626                           CA       RRECTLEM                              
052821,000446: 13,2774           51500                           INDEX    DIFEQCNT                              
052822,000447: 13,2775           55502                           TS       RRECT                                 
052823,000448: 13,2776           11500                           CCS      DIFEQCNT                              
052824,000449: 13,2777           12771                           TCF      MOVEPLEM   +1                         
052825,000450: 13,3000           06061                           TC       DANZIG                                
052826,000451: 
052827,000452: 13,3001           77201        USEPIOS            SETPD    VLOAD                                 
052828,000453: 13,3002           00001                                    0                                     
052829,000454: 13,3003           02023                                    RLS                                   
052830,000455: 13,3004           41525                           PDDL     PUSH                                  
052831,000456: 13,3005           00041                                    TDEC1                                 
052832,000457: 13,3006           15517                           STODL    TET                                   
052833,000458: 13,3007           27712                                    5/8                                   
052834,000459: 13,3010           77624                           CALL                                           

Page 1213

052836,000461: 13,3011           55716                                    RP-TO-R                               
052837,000462: 13,3012           25535                           STOVL    RCV                                   
052838,000463: 13,3013           24001                                    ZUNIT                                 
052839,000464: 13,3014           14001                           STODL    0D                                    
052840,000465: 13,3015           01517                                    TET                                   
052841,000466: 13,3016           14007                           STODL    6D                                    
052842,000467: 13,3017           27712                                    5/8                                   
052843,000468: 13,3020           45014                           SET      CALL                                  #  NEEDED FOR SETTING X1 ON EXIT
052844,000469: 13,3021           00063                                    MOONFLAG                              
052845,000470: 13,3022           55716                                    RP-TO-R                               
052846,000471: 13,3023           74235                           VXV      VXSC                                  
052847,000472: 13,3024           01535                                    RCV                                   
052848,000473: 13,3025           26001                                    OMEGMOON                              
052849,000474: 13,3026           25543                           STOVL    VCV                                   
052850,000475: 13,3027           24007                                    ZEROVEC                               
052851,000476: 13,3030           01521                           STORE    TDELTAV                               
052852,000477: 13,3031           67174                           AXT,2    SXA,2                                 
052853,000478: 13,3032           00002                                    2                                     
052854,000479: 13,3033           02030                                    PBODY                                 
052855,000480: 13,3034           35527                           STCALL   TNUV                                  
052856,000481: 13,3035           27157                                    A-PCHK                                
052857,000482: 13,3036           33042        SETBANK            CAF      INTBANK                               
052858,000483: 13,3037           54006                           TS       BBANK                                 
052859,000484: 13,3040           33452                           CAF      FORTYONE                              
052860,000485: 13,3041           00002                           TC       Q                                     
052861,000486: 13,3042  E3,1554                                  EBANK=   RRECTCSM                              
052862,000487: 13,3042           26063        INTBANK            BBCON    INTEGRV                               
052863,000488: 
052864,000489:                                                                                                  #  SPECIAL PURPOSE ENTRIES TO ORBITAL INTEGRATION.  THESE ROUTINES PROVIDE ENTRANCES TO INTEGRATION WITH
052865,000490:                                                                                                  #  APPROPRIATE SWITCHES SET OR CLEARED FOR THE DESIRED INTEGRATION.
052866,000491: 
052867,000492:                                                                                                  #  CSMPREC AND LEMPREC PERFORM ORBIT INTEGRATION BY THE ENCKE METHOD TO THE TIME INDICATED IN TDEC1
052868,000493:                                                                                                  #  ACCELERATIONS DUE TO OBLATENESS ARE INCLUDED.  NO W-MATRIX INT. IS DONE.
052869,000494:                                                                                                  #  THE PERMANENT STATE VECTOR IS NOT UPDATED.
052870,000495: 
052871,000496:                                                                                                  #  CSMCONIC AND LEMCONIC PERFORM ORBIT INTEG. BY KEPLERS METHOD TO THE TIME INDICATED IN TDEC1
052872,000497:                                                                                                  #  NO DISTURBING ACCELERATIONS ARE INCLUDED.  IN THE PROGRAM FLOW THE GIVEN
052873,000498:                                                                                                  #  STATE VECTOR IS RECTIFIED BEFORE SOLUTION OF KEPLERS EQUATION
052874,000499: 
052875,000500:                                                                                                  #  THE ROUTINES ASSUME THAT THE CSM (LEM) STATE VECTOR IN P-MEM IS VALID.
052876,000501:                                                                                                  #  SWITCHES SET PRIOR TO ENTRY TO THE MAIN INTEG. PROG ARE AS FOLLOWS
052877,000502:                                                                                                  #                        CSMPREC         CSMCONIC        LEMPREC         LEMCONIC
052878,000503:                                                                                                  #        VINTFLAG        SET             SET             CLEAR           CLEAR
052879,000504:                                                                                                  #        INTYPFLG        CLEAR           SET             CLEAR           SET
052880,000505:                                                                                                  #        DIM0FLAG        CLEAR           CLEAR           CLEAR           CLEAR
052881,000506: 
052882,000507:                                                                                                  #  CALLING SEQUENCE
052883,000508:                                                                                                  #        L-X     STORE   TDEC1
052884,000509:                                                                                                  #        L       CALL                    (STCALL TDEC1)

Page 1214

052886,000511:                                                                                                  #        L+1             CSMPREC         (CSMCONIC, LEMPREC, LEMCONIC)
052887,000512: 
052888,000513:                                                                                                  #  NORMAL EXIT TO L+2
052889,000514: 
052890,000515:                                                                                                  #  SUBROUTINES CALLED
052891,000516:                                                                                                  #        INTEGRV1
052892,000517:                                                                                                  #        PRECOUT FOR CSMPREC AND LEMPREC
052893,000518:                                                                                                  #        CONICOUT FOR CSMCONIC AND LEMCONIC
052894,000519: 
052895,000520:                                                                                                  #  OUTPUT - SEE PAGE 2 OF THIS LOG SECTION
052896,000521: 
052897,000522:                                                                                                  #  INPUT
052898,000523:                                                                                                  #        TDEC1           TIME TO INTEGRATE TO.  CSECS B-28
052899,000524: 
052900,000525: 13,3043           45020        CSMPREC            STQ      CALL                                  
052901,000526: 13,3044           00046                                    X1                                    
052902,000527: 13,3045           27414                                    INTSTALL                              
052903,000528: 13,3046           43130                           SXA,1    SET                                   
052904,000529: 13,3047           02102                                    IRETURN                               
052905,000530: 13,3050           01474                                    VINTFLAG                              
052906,000531: 
052907,000532: 13,3051           43014        IFLAGP             SET      CLEAR                                 
052908,000533: 13,3052           01467                                    PRECIFLG                              
052909,000534: 13,3053           01676                                    DIM0FLAG                              
052910,000535: 13,3054           77614                           CLRGO                                          
052911,000536: 13,3055           01633                                    INTYPFLG                              
052912,000537: 13,3056           27136                                    INTEGRV1                              
052913,000538: 13,3057           45020        LEMPREC            STQ      CALL                                  
052914,000539: 13,3060           00046                                    X1                                    
052915,000540: 13,3061           27414                                    INTSTALL                              
052916,000541: 13,3062           43130                           SXA,1    CLRGO                                 
052917,000542: 13,3063           02102                                    IRETURN                               
052918,000543: 13,3064           01634                                    VINTFLAG                              
052919,000544: 13,3065           27051                                    IFLAGP                                
052920,000545: 
052921,000546: 13,3066           45020        CSMCONIC           STQ      CALL                                  
052922,000547: 13,3067           00046                                    X1                                    
052923,000548: 13,3070           27414                                    INTSTALL                              
052924,000549: 13,3071           43130                           SXA,1    SET                                   
052925,000550: 13,3072           02102                                    IRETURN                               
052926,000551: 13,3073           01474                                    VINTFLAG                              
052927,000552: 13,3074           43014        IFLAGC             CLEAR    SETGO                                 
052928,000553: 13,3075           01676                                    DIM0FLAG                              
052929,000554: 13,3076           01433                                    INTYPFLG                              
052930,000555: 13,3077           27136                                    INTEGRV1                              
052931,000556: 13,3100           45020        LEMCONIC           STQ      CALL                                  
052932,000557: 13,3101           00046                                    X1                                    
052933,000558: 13,3102           27414                                    INTSTALL                              
052934,000559: 13,3103           43130                           SXA,1    CLRGO                                 
052935,000560: 13,3104           02102                                    IRETURN                               

Page 1215

052937,000562: 13,3105           01634                                    VINTFLAG                              
052938,000563: 13,3106           27074                                    IFLAGC                                
052939,000564: 
052940,000565: 13,3107           66214        INTEGRVS           SET      SSP                                   
052941,000566: 13,3110           01467                                    PRECIFLG                              
052942,000567: 13,3111           02031                                    PBODY                                 
052943,000568: 13,3112           00000                                    0                                     
052944,000569: 13,3113           66214                           BOF      SSP                                   
052945,000570: 13,3114           00343                                    MOONFLAG                              
052946,000571: 13,3115           27120                                    +3                                    
052947,000572: 13,3116           02031                                    PBODY                                 
052948,000573: 13,3117           00002                                    2                                     
052949,000574: 13,3120           77220                           STQ      VLOAD                                 
052950,000575: 13,3121           02102                                    IRETURN                               
052951,000576: 13,3122           24007                                    ZEROVEC                               
052952,000577: 13,3123           01521                           STORE    TDELTAV                               
052953,000578: 13,3124           35527                           STCALL   TNUV                                  
052954,000579: 13,3125           23441                                    RECTIFY                               
052955,000580: 13,3126           43014                           CLEAR    SET                                   
052956,000581: 13,3127           01676                                    DIM0FLAG                              
052957,000582: 13,3130           04062                                    NEWIFLG                               
052958,000583: 13,3131           77614                           SETGO                                          
052959,000584: 13,3132           04020                                    RPQFLAG                               
052960,000585: 13,3133           27150                                    ALOADED                               
052961,000586: 
052962,000587:                                                                                                  #  INTEGRV IS AN ENTRY TO ORBIT INTEGRATION WHICH PERMITS THE CALLER,
052963,000588:                                                                                                  #  NORMALLY THE NAVIGATION PROGRAM, TO SET THE INTEG. FLAGS.  THE ROUTINE
052964,000589:                                                                                                  #  IS ENTERED AT INTEGRV1 BY CSMPREC ET. AL. AND AT ALOADED BY INTEGRVS.
052965,000590:                                                                                                  #  THE ROUTINE SETS UP A-MEMORY IF ENTERED AT INTEGRV,1 AND SETS THE INTEG.
052966,000591:                                                                                                  #  PROGRAM FOR PRECISION OR CONIC
052967,000592: 
052968,000593:                                                                                                  #  THE CALLER MUST FIRST CALL INTSTALL TO CHECK IF INTEG. IS IN USE BEFORE
052969,000594:                                                                                                  #  SETTING ANY FLAGS.
052970,000595: 
052971,000596:                                                                                                  #  THE FLAGS WHICH SHOULD BE SET OR CLEARED ARE
052972,000597:                                                                                                  #        VINTFLAG        (IGNORED WHEN ENTERED FROM INTEGRVS)
052973,000598:                                                                                                  #        INTYPFLG
052974,000599:                                                                                                  #        DIM0FLAG
052975,000600:                                                                                                  #        D6OR9FLG
052976,000601: 
052977,000602:                                                                                                  #  CALLING SEQUENCE
052978,000603:                                                                                                  #        L-X     CALL
052979,000604:                                                                                                  #        L-Y             INTSTALL
052980,000605:                                                                                                  #        L-1     SET OR CLEAR ALL FOUR FLAGS.  ALSO CAN SET STATEFLG IF DESIRED
052981,000606:                                                                                                  #                AND DIM0FLAG IS CLEAR.
052982,000607:                                                                                                  #        L       CALL
052983,000608:                                                                                                  #        L+1             INTEGRV
052984,000609: 
052985,000610:                                                                                                  #  INITIALIZATION
052986,000611:                                                                                                  #        FLAGS AS ABOVE
052987,000612:                                                                                                  #        STORE TIME TO INTEGRATE TO IN TDEC1
052988,000613: 
052989,000614:                                                                                                  #  OUTPUT
052990,000615:                                                                                                  #        RATT    AS
052991,000616:                                                                                                  #        VATT          DEFINED

Page 1216

052993,000618:                                                                                                  #        TAT                     BEFORE
052994,000619: 
052995,000620: 13,3134           77620        INTEGRV            STQ                                            
052996,000621: 13,3135           02102                                    IRETURN                               
052997,000622: 13,3136           43014        INTEGRV1           SET      SET                                   
052998,000623: 13,3137           04060                                    RPQFLAG                               
052999,000624: 13,3140           04062                                    NEWIFLG                               
053000,000625: 13,3141           77731        INTEGRV2           SSP                                            
053001,000626: 13,3142           00053                                    QPRET                                 
053002,000627: 13,3143           27150                                    ALOADED                               
053003,000628: 13,3144           52014                           BON      GOTO                                  
053004,000629: 13,3145           01714                                    VINTFLAG                              
053005,000630: 13,3146           26705                                    PTOACSM                               
053006,000631: 13,3147           26760                                    PTOALEM                               
053007,000632: 13,3150           77745        ALOADED            DLOAD                                          
053008,000633: 13,3151           00041                                    TDEC1                                 
053009,000634: 13,3152           01116                           STORE    TDEC                                  
053010,000635: 13,3153           52014                           BOFF     GOTO                                  
053011,000636: 13,3154           01753                                    INTYPFLG                              
053012,000637: 13,3155           27257                                    TESTLOOP                              
053013,000638: 13,3156           27243                                    RVCON                                 
053014,000639: 13,3157           77414        A-PCHK             BOF      EXIT                                  
053015,000640: 13,3160           01752                                    STATEFLG                              
053016,000641: 13,3161           27200                                    RECTOUT                               
053017,000642: 13,3162           05353                           TC       PHASCHNG                              
053018,000643: 13,3163           04022                           OCT      04022                                 
053019,000644: 13,3164           05504                           TC       UPFLAG                                #  PHASE CHANGE HAS OCCURRED BETWEEN
053020,000645: 13,3165           00236                           ADRES    REINTFLG                              #  INTSTALL AND INTWAKE
053021,000646: 13,3166           06037                           TC       INTPRET                               
053022,000647: 13,3167           77731                           SSP                                            
053023,000648: 13,3170           00053                                    QPRET                                 
053024,000649: 13,3171           27176                                    PHEXIT                                
053025,000650: 13,3172           52014                           BON      GOTO                                  
053026,000651: 13,3173           01714                                    VINTFLAG                              
053027,000652: 13,3174           26661                                    ATOPCSM                               
053028,000653: 13,3175           26734                                    ATOPLEM                               
053029,000654: 13,3176           77624        PHEXIT             CALL                                           
053030,000655: 13,3177           11244                                    GRP2PC                                
053031,000656: 13,3200           45001        RECTOUT            SETPD    CALL                                  
053032,000657: 13,3201           00001                                    0                                     
053033,000658: 13,3202           23441                                    RECTIFY                               
053034,000659: 13,3203           53775                           VLOAD    VSL*                                  
053035,000660: 13,3204           01503                                    RRECT                                 
053036,000661: 13,3205           57576                                    0,2                                   
053037,000662: 13,3206           53715                           PDVL     VSL*                                  #  RATT TO PD0
053038,000663: 13,3207           01511                                    VRECT                                 
053039,000664: 13,3210           57576                                    0,2                                   
053040,000665: 13,3211           63325                           PDDL     PDVL                                  #  VATT TO PD6   TAT TO PD12
053041,000666: 13,3212           01517                                    TET                                   

Page 1217

053043,000668: 13,3213           01503                                    RRECT                                 
053044,000669: 13,3214           64715                           PDVL     PDDL*                                 
053045,000670: 13,3215           01511                                    VRECT                                 
053046,000671: 13,3216           51770                                    MUEARTH,2                             
053047,000672: 13,3217           76006                           PUSH     AXT,1                                 
053048,000673: 13,3220           77765                           DEC      -10        B-14                       
053049,000674: 13,3221           76014                           BON      AXT,1                                 
053050,000675: 13,3222           00303                                    MOONFLAG                              
053051,000676: 13,3223           27225                                    +2                                    
053052,000677: 13,3224           77775                           DEC      -2         B-14                       
053053,000678: 13,3225           40001        INTEXIT            SETPD    BOV                                   
053054,000679: 13,3226           00001                                    0                                     
053055,000680: 13,3227           27230                                    +1                                    
053056,000681: 13,3230           43014                           CLEAR    CLEAR                                 
053057,000682: 13,3231           04676                                    AVEMIDSW                              #  ALLOW UPDATE OF DOWNLINK STATE VECTOR
053058,000683: 13,3232           01667                                    PRECIFLG                              
053059,000684: 13,3233           77614                           CLEAR                                          
053060,000685: 13,3234           01672                                    STATEFLG                              
053061,000686: 13,3235           77535                           SLOAD    EXIT                                  
053062,000687: 13,3236           02103                                    IRETURN                               
053063,000688: 13,3237           30154                           CA       MPAC                                  
053064,000689: 13,3240           50120                           INDEX    FIXLOC                                
053065,000690: 13,3241           54052                           TS       QPRET                                 
053066,000691: 13,3242           03425                           TC       INTWAKE                               
053067,000692: 
053068,000693:                                                                                                  #  RVCON SETS UP ORBIT INTEGRATION TO DO A CONIC SOLUTION FOR POSITION AND
053069,000694:                                                                                                  #  VELOCITY FOR THE INTERVAL (TET-TDEC)
053070,000695: 
053071,000696: 13,3243           45345        RVCON              DLOAD    DSU                                   
053072,000697: 13,3244           01116                                    TDEC                                  
053073,000698: 13,3245           01517                                    TET                                   
053074,000699: 13,3246           36074                           STCALL   TAU.                                  
053075,000700: 13,3247           23441                                    RECTIFY                               
053076,000701: 13,3250           77624                           CALL                                           
053077,000702: 13,3251           22376                                    KEPPREP                               
053078,000703: 13,3252           43345                           DLOAD    DAD                                   
053079,000704: 13,3253           01551                                    TC                                    
053080,000705: 13,3254           01517                                    TET                                   
053081,000706: 13,3255           35517                           STCALL   TET                                   
053082,000707: 13,3256           27200                                    RECTOUT                               
053083,000708: 

Page 1218

053085,000710:                                                                                                  #  TESTLOOP
053086,000711: 
053087,000712: 13,3257           43014        TESTLOOP           BOF      CLRGO                                 
053088,000713: 13,3260           04752                                    QUITFLAG                              
053089,000714: 13,3261           27264                                    +3                                    
053090,000715: 13,3262           01632                                    STATEFLG                              
053091,000716: 13,3263           27225                                    INTEXIT                               #  STOP INTEGRATION
053092,000717: 13,3264           73001                 +3        SETPD    LXA,2                                 
053093,000718: 13,3265           00013                                    10D                                   
053094,000719: 13,3266           02030                                    PBODY                                 
053095,000720: 13,3267           51575                           VLOAD    ABVAL                                 
053096,000721: 13,3270           01535                                    RCV                                   
053097,000722: 13,3271           43006                           PUSH     CLEAR                                 #  RC TO 10D
053098,000723: 13,3272           00262                                    MIDFLAG                               
053099,000724: 13,3273           50023                           DSU*     BMN                                   #  MIDFLAG=0 IF R G.T. RMP
053100,000725: 13,3274           53755                                    RME,2                                 
053101,000726: 13,3275           27300                                    +3                                    
053102,000727: 13,3276           77614                           SET                                            
053103,000728: 13,3277           00062                                    MIDFLAG                               
053104,000729: 13,3300           41345        NORFINAL           DLOAD    DMP                                   
053105,000730: 13,3301           00013                                    10D                                   
053106,000731: 13,3302           00043                                    34D                                   
053107,000732: 13,3303           55762                           SR1R     DDV*                                  
053108,000733: 13,3304           51770                                    MUEARTH,2                             
053109,000734: 13,3305           41366                           SQRT     DMP                                   
053110,000735: 13,3306           25752                                    .3D                                   
053111,000736: 13,3307           40442                           SR3      SR4                                   #  DT IS TRUNCATED TO A MULTIPLE
053112,000737: 13,3310           54345                           DLOAD    SL                                    
053113,000738: 13,3311           00155                                    MPAC                                  
053114,000739: 13,3312           20220                                    15D                                   #        OF 128 CSECS.
053115,000740: 13,3313           40006                           PUSH     BOV                                   
053116,000741: 13,3314           27341                                    MAXDT                                 
053117,000742: 13,3315           50021                           BDSU     BMN                                   
053118,000743: 13,3316           27413                                    DT/2MAX                               
053119,000744: 13,3317           27341                                    MAXDT                                 
053120,000745: 13,3320           45345        DT/2COMP           DLOAD    DSU                                   
053121,000746: 13,3321           01116                                    TDEC                                  
053122,000747: 13,3322           01517                                    TET                                   
053123,000748: 13,3323           54234                           RTB      SL                                    
053124,000749: 13,3324           21612                                    SGNAGREE                              
053125,000750: 13,3325           20211                                    8D                                    
053126,000751: 13,3326           02076                           STORE    DT/2                                  #  B-19
053127,000752: 13,3327           51400                           BOV      ABS                                   
053128,000753: 13,3330           27345                                    GETMAXDT                              
053129,000754: 13,3331           50025                           DSU      BMN                                   #  IS TIME TO INTEG. TO GR THAN MAXTIME
053130,000755: 13,3332           00015                                    12D                                   
053131,000756: 13,3333           27351                                    P00HCHK                               
053132,000757: 13,3334           75345        USEMAXDT           DLOAD    SIGN                                  
053133,000758: 13,3335           00015                                    12D                                   
053134,000759: 13,3336           02076                                    DT/2                                  

Page 1219

053136,000761: 13,3337           36076                           STCALL   DT/2                                  
053137,000762: 13,3340           27351                                    P00HCHK                               
053138,000763: 13,3341           65345        MAXDT              DLOAD    PDDL                                  #  EXCHANGE DT/2MAX WITH COMPUTED MAX.
053139,000764: 13,3342           27413                                    DT/2MAX                               
053140,000765: 13,3343           77650                           GOTO                                           
053141,000766: 13,3344           27320                                    DT/2COMP                              
053142,000767: 13,3345           77634        GETMAXDT           RTB                                            
053143,000768: 13,3346           21712                                    SIGNMPAC                              
053144,000769: 13,3347           36076                           STCALL   DT/2                                  
053145,000770: 13,3350           27334                                    USEMAXDT                              
053146,000771: 13,3351           51545        P00HCHK            DLOAD    ABS                                   
053147,000772: 13,3352           02076                                    DT/2                                  
053148,000773: 13,3353           50025                           DSU      BMN                                   
053149,000774: 13,3354           27411                                    DT/2MIN                               
053150,000775: 13,3355           27157                                    A-PCHK                                
053151,000776: 13,3356           46135                           SLOAD    BHIZ                                  
053152,000777: 13,3357           01012                                    MODREG                                
053153,000778: 13,3360           27363                                    +3                                    
053154,000779: 13,3361           77650                           GOTO                                           
053155,000780: 13,3362           23252                                    TIMESTEP                              
053156,000781: 13,3363           77614                           BON                                            #  WAS THIS CALL VIA CSM(LEM)PREC
053157,000782: 13,3364           01707                                    PRECIFLG                              
053158,000783: 13,3365           23252                                    TIMESTEP                              #  YES
053159,000784: 13,3366           45345                           DLOAD    DSU                                   
053160,000785: 13,3367           02076                                    DT/2                                  
053161,000786: 13,3370           00015                                    12D                                   
053162,000787: 13,3371           43040                           BMN      BOFCLR                                
053163,000788: 13,3372           27157                                    A-PCHK                                
053164,000789: 13,3373           04242                                    NEWIFLG                               
053165,000790: 13,3374           23252                                    TIMESTEP                              
053166,000791: 13,3375           45345                           DLOAD    DSU                                   
053167,000792: 13,3376           01116                                    TDEC                                  
053168,000793: 13,3377           01517                                    TET                                   
053169,000794: 13,3400           77640                           BMN                                            #  NO BACKWARD INTEGRATION
053170,000795: 13,3401           27225                                    INTEXIT                               
053171,000796: 13,3402           40525                           PDDL     SR4                                   
053172,000797: 13,3403           02076                                    DT/2                                  #  IS 4(DT) LS (TDEC - TET)
053173,000798: 13,3404           44322                           SR2R     BDSU                                  #  NO
053174,000799: 13,3405           52040                           BMN      GOTO                                  
053175,000800: 13,3406           27225                                    INTEXIT                               
053176,000801: 13,3407           23252                                    TIMESTEP                              
053177,000802: 13,3410           00000 01400  DT/2MIN            2DEC     3          B-20                       
053178,000803: 
053179,000804: 13,3412           14152 00000  DT/2MAX            2DEC     4000       E2         B-20            
053180,000805: 
053181,000806: 13,3414           77776        INTSTALL           EXIT                                           
053182,000807: 13,3415           30106                           CA       RASFLAG                               
053183,000808: 13,3416           73466                           MASK     INTBITAB                              #  IS THIS STALL AREA FREE
053184,000809: 13,3417           00006                           EXTEND                                         
053185,000810: 13,3420           13460                           BZF      OKTOGRAB                              #  YES

Page 1220

053187,000812: 13,3421           33465                           CAF      WAKESTAL                              
053188,000813: 13,3422           05133                           TC       JOBSLEEP                              
053189,000814: 13,3423           77776        INTWAKE0           EXIT                                           
053190,000815: 13,3424           13445                           TCF      INTWAKE1                              
053191,000816: 
053192,000817: 13,3425           40106        INTWAKE            CS       RASFLAG                               #  IS THIS INTSTALLED ROUTINE TO BE
053193,000818: 13,3426           74745                           MASK     REINTBIT                              #        RESTARTED
053194,000819: 13,3427           10000                           CCS      A                                     
053195,000820: 13,3430           03445                           TC       INTWAKE1                              #  NO
053196,000821: 
053197,000822: 13,3431           50120                           INDEX    FIXLOC                                
053198,000823: 13,3432           30052                           CA       QPRET                                 
053199,000824: 13,3433           55055                           TS       TBASE2                                #  YES, DONT RESTART WITH SOMEONE ELSES Q
053200,000825: 
053201,000826: 13,3434           05353                           TC       PHASCHNG                              
053202,000827: 13,3435           04022                           OCT      04022                                 
053203,000828: 
053204,000829: 13,3436           31055                           CA       TBASE2                                
053205,000830: 13,3437           50120                           INDEX    FIXLOC                                
053206,000831: 13,3440           54052                           TS       QPRET                                 
053207,000832: 
053208,000833: 13,3441           34745                           CAF      REINTBIT                              
053209,000834: 13,3442           70106                           MASK     RASFLAG                               
053210,000835: 13,3443           00006                           EXTEND                                         
053211,000836: 13,3444           13463                           BZF      GOBAC                                 #  DONT INTWAKE IF WE CAME HERE VIA RESTART
053212,000837: 
053213,000838: 13,3445           33465        INTWAKE1           CAF      WAKESTAL                              
053214,000839: 13,3446           00004                           INHINT                                         
053215,000840: 13,3447           05137                           TC       JOBWAKE                               
053216,000841: 13,3450           10064                           CCS      LOCCTR                                
053217,000842: 13,3451           13445                           TCF      INTWAKE1                              
053218,000843: 13,3452           00051        FORTYONE           DEC      41         B-14                       
053219,000844: 13,3453           43466                           CS       INTBITAB                              
053220,000845: 13,3454           70106                           MASK     RASFLAG                               
053221,000846: 13,3455           54106                           TS       RASFLAG                               #  RELEASE STALL AREA
053222,000847: 13,3456           00003                           RELINT                                         
053223,000848: 13,3457           13463                           TCF      GOBAC                                 
053224,000849: 13,3460           34736        OKTOGRAB           CAF      INTFLBIT                              
053225,000850: 13,3461           00004                           INHINT                                         
053226,000851: 13,3462           26106                           ADS      RASFLAG                               
053227,000852: 13,3463           06037        GOBAC              TC       INTPRET                               
053228,000853: 13,3464           77616                           RVQ                                            
053229,000854: 13,3465           27415        WAKESTAL           CADR     INTSTALL   +1                         
053230,000855: 13,3466           20100        INTBITAB           OCT      20100                                 
053231,000856: 

Page 1221

053233,000858:                                                                                                  #  AVETOMID
053234,000859: 
053235,000860:                                                                                                  #  THIS ROUTINE PERFORMS THE TRANSITION FROM A THRUSTING PHASE TO THE COAST
053236,000861:                                                                                                  #  PHASE BY INITIALIZING THIS VEHICLES PERMANENT STATE VECTOR WITH THE
053237,000862:                                                                                                  #  VALUES LEFT BY THE AVERAGEG ROUTINE IN RN,VN,PIPTIME.
053238,000863: 
053239,000864:                                                                                                  #  BEFORE THIS IS DONE THE W-MATRIX, IF ITS VALID (OR WFLAG OR RENDWFLG IS
053240,000865:                                                                                                  #  SET) IS INTEGRATED FORWARD TO PIPTIME WITH THE PRE-THRUST STATE VECTOR.
053241,000866: 
053242,000867:                                                                                                  #  IN ADDITION, THE OTHER VEHICLE IS INTEGRATED (PERMANENT) TO PIPTIME.
053243,000868: 
053244,000869:                                                                                                  #  FINALLY TRKMKCNT IS ZEROED
053245,000870: 
053246,000871: 13,2000                                           SETLOC   INTINIT                               
053247,000872: 13,2000                                           BANK                                           
053248,000873: 
053249,000874: 13,3467                                           COUNT*   $$/INTIN                              
053250,000875: 13,3467           43020        AVETOMID           STQ      BON                                   
053251,000876: 13,3470           02772                                    EGRESS                                
053252,000877: 13,3471           02716                                    RENDWFLG                              
053253,000878: 13,3472           27536                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
053254,000879: 13,3473           77614                           BON                                            
053255,000880: 13,3474           01711                                    ORBWFLAG                              
053256,000881: 13,3475           27536                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
053257,000882: 
053258,000883: 13,3476           45145        OTHERS             DLOAD    CALL                                  #  GET SET FOR OTHER VEHICLE INTEGRATION
053259,000884: 13,3477           01235                                    PIPTIME                               #  DESIRED TIME
053260,000885: 13,3500           27414                                    INTSTALL                              
053261,000886: 13,3501           45014                           SET      CALL                                  
053262,000887: 13,3502           01474                                    VINTFLAG                              #  CM
053263,000888: 13,3503           26644                                    SETIFLGS                              #  SETS UP NONE W-MAT. PERMANENT INTEG.
053264,000889: 13,3504           34041                           STCALL   TDEC1                                 
053265,000890: 13,3505           27134                                    INTEGRV                               
053266,000891: 
053267,000892: 13,3506           45174                           AXT,2    CALL                                  #  NOW MOVE PROPERLY SCALE RN,UN AS WELL AS
053268,000893: 13,3507           00002                                    2                                     #  PIPTIME TO INTEGRATION ERASABLES.
053269,000894: 13,3510           27414                                    INTSTALL                              
053270,000895: 13,3511           77014                           BON      AXT,2                                 
053271,000896: 13,3512           04304                                    MOONTHIS                              
053272,000897: 13,3513           27515                                    +2                                    
053273,000898: 13,3514           00000                                    0                                     
053274,000899: 13,3515           53775                           VLOAD    VSR*                                  
053275,000900: 13,3516           01221                                    RN                                    
053276,000901: 13,3517           57176                                    0,2                                   
053277,000902: 13,3520           01503                           STORE    RRECT                                 
053278,000903: 13,3521           15535                           STODL    RCV                                   
053279,000904: 13,3522           01235                                    PIPTIME                               
053280,000905: 13,3523           25517                           STOVL    TET                                   
053281,000906: 13,3524           01227                                    VN                                    

Page 1222

053283,000908: 13,3525           45057                           VSR*     CALL                                  
053284,000909: 13,3526           57176                                    0,2                                   
053285,000910: 13,3527           23455                                    MINIRECT                              #  FINISH SETTING UP STATE VECTOR
053286,000911: 13,3530           66234                           RTB      SSP                                   
053287,000912: 13,3531           26747                                    MOVATHIS                              #  PUT TEMP STATE VECTOR INTO PERMANENT
053288,000913: 13,3532           03463                                    TRKMKCNT                              
053289,000914: 13,3533           00000                                    0                                     
053290,000915: 13,3534           77650                           GOTO                                           
053291,000916: 13,3535           47226                                    FAZAB5                                
053292,000917: 
053293,000918: 13,3536           45145        INT/W              DLOAD    CALL                                  
053294,000919: 13,3537           01235                                    PIPTIME                               #  INTEGRATE W THRU BURN
053295,000920: 13,3540           27414                                    INTSTALL                              
053296,000921: 13,3541           43014                           SET      SET                                   
053297,000922: 13,3542           01476                                    DIM0FLAG                              #  DO W-MATRIX
053298,000923: 13,3543           04476                                    AVEMIDSW                              #  SO WONT CLOBBER RN,VN,PIPTIME
053299,000924: 13,3544           43014                           SET      CLEAR                                 
053300,000925: 13,3545           01475                                    D6OR9FLG                              #  9X9 FOR LM
053301,000926: 13,3546           01674                                    VINTFLAG                              #  LM
053302,000927: 13,3547           34041                           STCALL   TDEC1                                 
053303,000928: 13,3550           27134                                    INTEGRV                               
053304,000929: 13,3551           77650                           GOTO                                           
053305,000930: 13,3552           27476                                    OTHERS                                #  NOW GO DO THE OTHER VEHICLE
053306,000931: 

Page 1223

053308,000933:                                                                                                  #  MIDTOAV1
053309,000934: 
053310,000935:                                                                                                  #  THIS ROUTINE INTEGRATES (PRECISION) TO THE TIME SPECIFIED IN TDEC1.
053311,000936:                                                                                                  #  IF, AT THE END OF AN INTEGRATION TIME STEP, CURRENT TIME PLUS A DELTA
053312,000937:                                                                                                  #  TIME (SEE TIMEDELT.....BASED ON THE COMPUTATUON TIME FOR ONE TIME STEP)
053313,000938:                                                                                                  #  IS GREATER THAN THE DESIRED TIME, ALARM 1703 IS SET AND THE INTEGRATION
053314,000939:                                                                                                  #  IS DONE TO THE CURRENT TIME.
053315,000940:                                                                                                  #  RETURN IS IN BASIC TO THE RETURN ADDRESS PLUS ONE.
053316,000941: 
053317,000942:                                                                                                  #  IF THE INTEGRATION IS FINISHED TO THE DESIRED TIME, RETURN IS IN BASIC
053318,000943:                                                                                                  #  TO THE RETURN ADDRESS
053319,000944: 
053320,000945:                                                                                                  #  IN EITHER CASE, BEFORE RETURNING, THE EXTRAPOLATED STATE VECTOR IS TRAN
053321,000946:                                                                                                  #  FERRED FROM R,VATT TO R,VN1-PIPTIME1 IS SET TO THE FINISHING INTEGRA-
053322,000947:                                                                                                  #  TION TIME AND MPAC IS SET TO THE DELTA TIME ---
053323,000948:                                                                                                  #                        TAT MINUS CURRENT TIME.
053324,000949: 
053325,000950:                                                                                                  #  MIDTOAV2
053326,000951: 
053327,000952:                                                                                                  #  THIS ROUTINE INTEGRATES THIS VEHICLES STATE VECTOR TO THE CURRENT TIME.
053328,000953:                                                                                                  #  NO INPUTS ARE REQUIRED OF THE CALLER.  RETURN IS IN BASIC TO THE RETURN
053329,000954:                                                                                                  #  ADDRESS WITH THE ABOVE TRANSFERS TO R,VN1-PIPTIME1-AND MPAC DONE
053330,000955: 
053331,000956: 13,3553  E7,1744                                  EBANK=   IRETURN1                              
053332,000957: 13,3553           43020        MIDTOAV2           STQ      CLRGO                                 #  INTEGRATE TO PRESENT TIME PLUS TIMEDELT
053333,000958: 13,3554           03744                                    IRETURN1                              
053334,000959: 13,3555           04634                                    MID1FLAG                              
053335,000960: 13,3556           27572                                    ENTMID2                               
053336,000961: 
053337,000962: 13,3557           43020        MIDTOAV1           STQ      SET                                   #  INTEGRATE TO TDEC1
053338,000963: 13,3560           03744                                    IRETURN1                              
053339,000964: 13,3561           04474                                    MID1FLAG                              
053340,000965: 13,3562           43234                           RTB      DAD                                   #  INITIAL CHECK, IS TDEC1 IN THE FUTURE
053341,000966: 13,3563           21573                                    LOADTIME                              
053342,000967: 13,3564           27674                                    TIMEDELT                              
053343,000968: 13,3565           51021                           BDSU     BPL                                   
053344,000969: 13,3566           00041                                    TDEC1                                 
053345,000970: 13,3567           27576                                    ENTMID1                               #  Y5S
053346,000971: 13,3570           77624                           CALL                                           
053347,000972: 13,3571           27662                                    NOTIME                                #  NO, SET ALARM, SWITCH TO MIDTOAV2
053348,000973: 
053349,000974: 13,3572           43234        ENTMID2            RTB      DAD                                   
053350,000975: 13,3573           21573                                    LOADTIME                              
053351,000976: 13,3574           27674                                    TIMEDELT                              
053352,000977: 13,3575           00041                           STORE    TDEC1                                 
053353,000978: 
053354,000979: 13,3576           77624        ENTMID1            CALL                                           
053355,000980: 13,3577           27414                                    INTSTALL                              
053356,000981: 13,3600           45014                           CLEAR    CALL                                  

Page 1224

053358,000983: 13,3601           01676                                    DIM0FLAG                              #  NO W-MATRIX
053359,000984: 13,3602           26066                                    THISVINT                              
053360,000985: 13,3603           43014                           CLEAR    SET                                   
053361,000986: 13,3604           01673                                    INTYPFLG                              
053362,000987: 13,3605           04475                                    MIDAVFLG                              #  LET INTEG. KNOW THE CALL IS FOR MIDTOAV.
053363,000988: 13,3606           77624                           CALL                                           
053364,000989: 13,3607           27134                                    INTEGRV                               #  GO INTEGRATE
053365,000990: 13,3610           77214                           CLEAR    VLOAD                                 
053366,000991: 13,3611           04675                                    MIDAVFLG                              
053367,000992: 13,3612           00001                                    RATT                                  
053368,000993: 13,3613           27545                           STOVL    RN1                                   
053369,000994: 13,3614           00007                                    VATT                                  
053370,000995: 13,3615           17553                           STODL    VN1                                   
053371,000996: 13,3616           00015                                    TAT                                   
053372,000997: 13,3617           03561                           STORE    PIPTIME1                              
053373,000998: 13,3620           66134                           SXA,2    SXA,1                                 
053374,000999: 13,3621           02777                                    RTX2                                  
053375,001000: 13,3622           02776                                    RTX1                                  
053376,001001: 13,3623           77776                           EXIT                                           
053377,001002: 
053378,001003: 13,3624           00004                           INHINT                                         
053379,001004: 13,3625           00006                           EXTEND                                         
053380,001005: 13,3626           40025                           DCS      TIME2                                 
053381,001006: 13,3627           20155                           DAS      MPAC                                  
053382,001007: 13,3630           07257                           TC       TPAGREE                               
053383,001008: 
053384,001009: 13,3631           31744                           CA       IRETURN1                              
053385,001010: 13,3632           04640                           TC       BANKJUMP                              
053386,001011: 13,3633           47014        CKMID2             BOF      RTB                                   
053387,001012: 13,3634           04754                                    MID1FLAG                              
053388,001013: 13,3635           27652                                    MID2                                  
053389,001014: 13,3636           21573                                    LOADTIME                              
053390,001015: 13,3637           44215                           DAD      BDSU                                  
053391,001016: 13,3640           27674                                    TIMEDELT                              
053392,001017: 13,3641           01116                                    TDEC                                  
053393,001018: 13,3642           45044                           BPL      CALL                                  
053394,001019: 13,3643           27257                                    TESTLOOP                              #  YES
053395,001020: 13,3644           27662                                    NOTIME                                
053396,001021: 
053397,001022: 13,3645           43234        TIMEINC            RTB      DAD                                   
053398,001023: 13,3646           21573                                    LOADTIME                              
053399,001024: 13,3647           27674                                    TIMEDELT                              
053400,001025: 13,3650           35116                           STCALL   TDEC                                  
053401,001026: 13,3651           27257                                    TESTLOOP                              
053402,001027: 
053403,001028: 13,3652           45345        MID2               DLOAD    DSU                                   
053404,001029: 13,3653           01116                                    TDEC                                  
053405,001030: 13,3654           01517                                    TET                                   
053406,001031: 13,3655           45246                           ABS      DSU                                   
053407,001032: 13,3656           27672                                    3CSECS                                
053408,001033: 

Page 1225

053410,001035: 13,3657           52040                           BMN      GOTO                                  
053411,001036: 13,3660           27157                                    A-PCHK                                
053412,001037: 13,3661           27645                                    TIMEINC                               
053413,001038: 
053414,001039: 13,3662           77414        NOTIME             CLEAR    EXIT                                  #  TOO LATE
053415,001040: 13,3663           04674                                    MID1FLAG                              
053416,001041: 13,3664           25744                           INCR     IRETURN1                              #  SET ERROR EXIT (CALLOC +2)
053417,001042: 13,3665           05567                           TC       ALARM                                 #  INSUFFICIENT TIME FOR INTEGRATION --
053418,001043: 13,3666           01703                           OCT      1703                                  #        TIG WILL BE SLIPPED...
053419,001044: 13,3667           06037                           TC       INTPRET                               
053420,001045: 13,3670           77616                           RVQ                                            
053421,001046: 
053422,001047: 13,3671           00000 00003  3CSECS             2DEC     3          B-28                       
053423,001048: 
053424,001049: 13,3673           00000 03720  TIMEDELT           2DEC     2000       B-28                       
053425,001050: 
053426,001051: 27,3360                                           BANK     27                                    
053427,001052: 04,2000                                           SETLOC   UPDATE2                               
053428,001053: 04,2000                                           BANK                                           
053429,001054: 04,3165     1167                                  EBANK=   INTWAKUQ                              
053430,001055: 
053431,001056: 04,3165                                           COUNT*   $$/INTIN                              
053432,001057: 
053433,001058: 04,3165     1167               INTWAKUQ           =        INTWAK1Q                              #  TEMPORARY UNTIL NAME OF INTWAK1Q IS CHNG
053434,001059: 
053435,001060: 04,3165           00003        INTWAKEU           RELINT                                         
053436,001061: 04,3166           00006                           EXTEND                                         
053437,001062: 04,3167           23167                           QXCH     INTWAKUQ                              #  SAVE Q FOR RETURN
053438,001063: 
053439,001064: 04,3170           06037                           TC       INTPRET                               
053440,001065: 
053441,001066: 04,3171           53135                           SLOAD    BZE                                   #  IS THIS A CSM/LEM STATE VECTOR UPDATE
053442,001067: 04,3172           01502                                    UPSVFLAG                              #  REQUEST.  IF NOT GO TO INTWAKUP.
053443,001068: 04,3173           11232                                    INTWAKUP                              
053444,001069: 
053445,001070: 04,3174           77775                           VLOAD                                          #  MOVE RRECT(6) AND VRECT(6) INTO
053446,001071: 04,3175           01503                                    RRECT                                 #        RCV(6) AND VCV(6) RESPECTIVELY.
053447,001072: 04,3176           25535                           STOVL    RCV                                   
053448,001073: 04,3177           01511                                    VRECT                                 #  NOW GO TO 'RECTIFY +13D' TO
053449,001074: 04,3200           77624                           CALL                                           #  STORE VRECT INTO VCV AND ZERO OUT
053450,001075: 04,3201           23456                                    RECTIFY    +13D                       #  TDELTAV(6),TNUV(6),TC(2) AND XKEP(2)
053451,001076: 04,3202           51535                           SLOAD    ABS                                   #  COMPARE ABSOLUTE VALUE OF 'UPSVFLAG'
053452,001077: 04,3203           01502                                    UPSVFLAG                              #  TO 'UPDATE MOON STATE VECTOR CODE'
053453,001078: 04,3204           53025                           DSU      BZE                                   #  TO DETERMINE WHETHER THE STATE VECTOR TO
053454,001079: 04,3205           11243                                    UPMNSVCD                              #  BE UPDATED IS IN THE EARTH OR LUNAR
053455,001080: 04,3206           11213                                    INTWAKEM                              #  SPHERE OF INFLUENCE.........
053456,001081: 04,3207           43174                           AXT,2    CLRGO                                 #  EARTH SPHERE OF INFLUENCE.
053457,001082: 04,3210           00000                           DEC      0          B-14                       
053458,001083: 04,3211           00223                                    MOONFLAG                              

Page 1226

053460,001085: 04,3212           11216                                    INTWAKEC                              
053461,001086: 04,3213           43174        INTWAKEM           AXT,2    SET                                   #  LUNAR SPHERE OF INFLUENCE.
053462,001087: 04,3214           00002                           DEC      2          B-14                       
053463,001088: 04,3215           00063                                    MOONFLAG                              
053464,001089: 04,3216           50135        INTWAKEC           SLOAD    BMN                                   #  COMMON CODING AFTER X2 INITIALIZED AND
053465,001090:                                                                                                  #  MOONFLAG SET (OR CLEARED).
053466,001091: 04,3217           01502                                    UPSVFLAG                              #  IS THIS A REQUEST FOR A LEM OR CSM
053467,001092: 04,3220           11226                                    INTWAKLM                              #        STATE VECTOR UPDATE......
053468,001093: 04,3221           77624                           CALL                                           #  UPDATE CSM STATE VECTOR
053469,001094: 04,3222           26661                                    ATOPCSM                               
053470,001095: 
053471,001096: 04,3223           52014                           CLEAR    GOTO                                  
053472,001097: 04,3224           01671                                    ORBWFLAG                              
053473,001098: 04,3225           11230                                    INTWAKEX                              
053474,001099: 
053475,001100: 04,3226           77624        INTWAKLM           CALL                                           #  UPDATE LM STATE VECTOR
053476,001101: 04,3227           26734                                    ATOPLEM                               
053477,001102: 
053478,001103: 04,3230           77614        INTWAKEX           CLEAR                                          
053479,001104: 04,3231           02676                                    RENDWFLG                              
053480,001105: 
053481,001106: 04,3232           45131        INTWAKUP           SSP      CALL                                  #  REMOVE :UPDATE STATE VECTOR INDICATOR:
053482,001107: 04,3233           01502                                    UPSVFLAG                              
053483,001108: 04,3234           00000                                    0                                     
053484,001109: 04,3235           27423                                    INTWAKE0                              #  RELEASE :GRAB: OF ORBIT INTEG
053485,001110: 04,3236           77776                           EXIT                                           
053486,001111: 
053487,001112: 04,3237           05353                           TC       PHASCHNG                              
053488,001113: 04,3240           04026                           OCT      04026                                 
053489,001114: 04,3241           01167                           TC       INTWAKUQ                              
053490,001115: 
053491,001116: 04,3242           00002        UPMNSVCD           OCT      2                                     
053492,001117: 04,3243           00000                           OCT      0                                     
053493,001118: 
053494,001119: 04,3244           77420        GRP2PC             STQ      EXIT                                  
053495,001120: 04,3245           02711                                    GRP2SVQ                               
053496,001121: 04,3246           05353                           TC       PHASCHNG                              
053497,001122: 04,3247           04022                           OCT      04022                                 
053498,001123: 04,3250           06037                           TC       INTPRET                               
053499,001124: 04,3251           77650                           GOTO                                           
053500,001125: 04,3252           02711                                    GRP2SVQ                               
053501,001126: 

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