Source Code

This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure!

050466,000002:                                                                                                  ## Copyright:   Public domain.
050467,000003:                                                                                                  ## Filename:    INTEGRATION_INITIALIZATION.agc
050468,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
050469,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
050470,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
050471,000007:                                                                                                  ## Assembler:   yaYUL
050472,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
050473,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
050474,000010:                                                                                                  ## Pages:       1205-1226
050475,000011:                                                                                                  ## Mod history: 2009-05-26 RSB  Adapted from the corresponding 
050476,000012:                                                                                                  ##                              Luminary131 file, using page 
050477,000013:                                                                                                  ##                              images from Luminary 1A.
050478,000014:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
050479,000015:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
050480,000016:                                                                                                  ##                              and corrected the errors found.
050481,000017:                                                                                                  ##              2017-01-22 MAS  Fixed some lingering comment errors.
050482,000018:                                                                                                  ##              2017-03-03 RSB  Snapshot of Luminary 99 Rev 1. 
050483,000019:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
050484,000020:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
050485,000021:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
050486,000022: 

Page 1205

050488,000024:                                                                                                  #  1.0 INTRODUCTION
050489,000025:                                                                                                  #  ----------------
050490,000026: 
050491,000027:                                                                                                  #  FROM A USERS POINT OF VIEW, ORBITAL INTEGRATION IS ESSENTIALLY THE SAME AS THE 278 INTEGRATION
050492,000028:                                                                                                  #  PROGRAM.  THE SAME ENTRANCES TO THE PROGRAM WILL BE MAINTAINED, THE SAME STALLING ROUTINE WILL BE USED AND
050493,000029:                                                                                                  #  OUTPUT WILL STILL BE VIA THE PUSHLIST.  THE PRIMARY DIFFERENCES TO A USER INVOLVE THE ADDED CAPABILITY OF
050494,000030:                                                                                                  #  TERMINATING INTEGRATION AT A SPECIFIC FINAL RADIUS AND THE DIFFERENCE IN STATE VECTOR SCALING INSIDE AND OUT-
050495,000031:                                                                                                  #  SIDE THE LUNAR SPHERE OF INFLUENCE.
050496,000032: 
050497,000033:                                                                                                  #  IN ORDER TO MAKE THE CSM(LEM)PREC AND CSM(LEM)CONIC ENTRANCES SIMILAR TO FLIGHT 278, THE INTEGRATION PROGRAM
050498,000034:                                                                                                  #  WILL ITSELF SET THE FINAL RADIUS (RFINAL) TO 0 SO THAT REACHING THE DESIRED TIME ONLY WILL TERMINATE
050499,000035:                                                                                                  #  INTEGRATION.  THE DP REGISTER RFINAL MUST BE SET BY USERS OF INTEGRVS AND INTEGRV, AND MUST BE DONE AFTER THE
050500,000036:                                                                                                  #  CALL TC INTSTALL.
050501,000037: 
050502,000038:                                                                                                  #  WHEN THE LM IS ON THE LUNAR SURFACE (INDICATED BY LUNAR SURFACE FLAG SET) CALLS TO LEMCONIC, LEMPREC, AND
050503,000039:                                                                                                  #  INTEGRV WITH VINFLAG = 0 WILL RESULT IN THE USE OF THE PLANETARY INERTIAL ORIENTATION SUBROUTINES TO PROVIDE
050504,000040:                                                                                                  #  BOTH THE LMS POSITION AND VELOCITY IN THE REFERENCE COORDINATE SYSTEM.
050505,000041:                                                                                                  #  THE PROGRAM WILL PROVIDE OUTPUT AS IF INTEGRATION WAS USED.  THAT IS, THE PUSHLIST WILL BE SET AS NOTED BELOW AND
050506,000042:                                                                                                  #  THE PERMANENT STATE VECTOR UPDATED WHEN SPECIFIED BY AN INTEGRV CALL.
050507,000043: 
050508,000044:                                                                                                  #  USERS OF INTEGRVS DESIRING INTEGRATION (INTYPFLG = 0) SHOULD NOTE THAT THE OBLATENESS PERTURBATION COMPUTATION
050509,000045:                                                                                                  #  IN LUNAR ORBIT IS TIME DEPENDENT.  THEREFORE, THE USER SHOULD SUPPLY AN INITIAL STATE VECTOR VALID AT SOME REAL
050510,000046:                                                                                                  #  TIME AND THE DESIRED TIME (TDEC1) ALSO AT SOME REAL TIME.  FOR CONIC ,,INTEGRATION,, THE USER MAY STILL USE ZERO
050511,000047:                                                                                                  #  AS THE INITIAL TIME AND DELTA TIME AS THE DESIRED TIME.
050512,000048: 
050513,000049:                                                                                                  #  2.0 GENERAL DESCRIPTION
050514,000050:                                                                                                  #  -----------------------
050515,000051: 
050516,000052:                                                                                                  #  THE INTEGRATION PROGRAM OPERATES AS A CLOSED INTERPRETIVE SUBROUTINE AND PERFORMS THESE FUNCTIONS ---
050517,000053:                                                                                                  #        1) INTEGRATES (PRECISION OR CONIC) EITHER CSM OR LM STATE VECTOR
050518,000054:                                                                                                  #        2) INTEGRATES THE W-MATRIX
050519,000055:                                                                                                  #        3) PERMANENT OR TEMPORARY UPDATE OF THE STATE VECTOR
050520,000056: 
050521,000057:                                                                                                  #  THERE ARE SIX ENTRANCES TO THE INTEGRATION PROGRAM.  FOUR OF THESE (CSMPREC, LEMPREC, CSMCONIC, LEMCONIC) SET
050522,000058:                                                                                                  #  ALL THE FLAGS REQUIRED IN THE INTEGRATION PROGRAM ITSELF TO CAUSE THE PRECISION OR CONIC INTEGRATION (KEPLER) OF
050523,000059:                                                                                                  #  THE LM OR CSM STATE VECTOR, AS THE NAMES SUGGEST.  ONE ENTRANCE (INTEGRVS) PERMITS THE CALLING PROGRAM TO
050524,000060:                                                                                                  #  PROVIDE A STATE VECTOR TO BE INTEGRATED.  THE CALLING PROGRAM MUST SET THE FLAGS INDICATING (1) PRECISION OR
050525,000061:                                                                                                  #  CONIC INTEGRATION, (2) IN OR OUT OF LUNAR SPHERE, (3) MIDCOURSE OR NOT, AND THE INTEGRATION PROGRAM COMPLETES
050526,000062:                                                                                                  #  THE FLAG SETTING TO BYPASS W-MATRIX INTEGRATION.  THE LAST ENTRANCE (INTEGRV, USED IN GENERAL BY THE
050527,000063:                                                                                                  #  NAVIGATION PROGRAMS) PERMITS THE CALLER TO SET FIVE FLAGS (NOT MOONFLAG OR MIDFLAG) BUT NOT TO INPUT A STATE
050528,000064:                                                                                                  #  VECTOR.  ANY PROGRAM WHICH CALLS INTEGRVS OR INTEGRV MUST CALL INTSTALL BEFORE IT SETS THE INTEGRATION FLAGS
050529,000065:                                                                                                  #  AND/OR STATE VECTOR.
050530,000066: 
050531,000067:                                                                                                  #  THREE SETS OF 42 REGISTERS AND 2 FLAGS ARE USED FOR THE STATE VECTORS.  TWO SETS, WHICH MAY NOT BE OVERLAYED, ARE
050532,000068:                                                                                                  #  USED FOR THE PERMANENT STATE VECTORS FOR THE CSM AND LM.  THE THIRD SET, WHICH MAY BE OVERLAYED WHEN INTEGRATION
050533,000069:                                                                                                  #  IS NOT BEING DONE, IS USED IN THE COMPUTATIONS.
050534,000070: 
050535,000071:                                                                                                  #  THE PERMANENT STATE VECTORS WILL BE PERIODICALLY UPDATED SO THAT THE VECTORS WILL NOT BE OLDER THAN 4 TIMESTEPS.
050536,000072:                                                                                                  #  THE PERMANENT STATE VECTORS WILL ALSO BE UPDATED WHENEVER THE W-MATRIX IS INTEGRATED OR WHEN A CALLER OF INTEGRV
050537,000073:                                                                                                  #  SETS STATEFLG (THE NAVIGATION PROGRAMS P20, P22.)
050538,000074: 

Page 1206

050540,000076:                                                                                                  #  APPENDIX B OF THE USERS GUIDE LISTS THE STATE VECTOR QUANTITIES.
050541,000077: 
050542,000078:                                                                                                  #  2.1 RESTARTS
050543,000079: 
050544,000080:                                                                                                  #  PHASE CHANGES WILL BE MADE IN THE INTEGRATION PROGRAM ONLY FOR THE INTEGRV ENTRANCE (I.E., WHEN THE W-MATRIX IS
050545,000081:                                                                                                  #  INTEGRATED OR PERMANENT STATE VECTOR IS UPDATED.)  THE GROUP NUMBER USED WILL BE THAT FOR THE P20-25 PROGRAMS
050546,000082:                                                                                                  #  (I.E., GROUP2) SINCE THE INTEGRV ENTRANCE WILL ONLY BE USED BY THESE PROGRAMS.  IF A RESTART OCCURS DURING AN
050547,000083:                                                                                                  #  INTEGRATION OF THE STATE VECTOR ONLY, THE RECOVERY WILL BE TO THE LAST PHASE IN THE CALLING PROGRAM.  CALLING
050548,000084:                                                                                                  #  PROGRAMS WHICH USE THE INTEGRV OR INTEGRVS ENTRANCE OF INTEGRATION SHOULD ENSURE THAT IF PHASE CHANGING IS DONE
050549,000085:                                                                                                  #  THAT IT IS PRIOR TO SETTING THE INTEGRATION INPUTS IN THE PUSHLIST.
050550,000086:                                                                                                  #  THIS IS BECAUSE THE PUSHLIST IS LOST DURING A RESTART.
050551,000087: 
050552,000088:                                                                                                  #  2.2 SCALING
050553,000089: 
050554,000090:                                                                                                  #  THE INTEGRATION ROUTINE WILL MAINTAIN THE PERMANENT MEMORY STATE VECTORS IN THE SCALING AND UNITS DEFINED IN
050555,000091:                                                                                                  #  APPENDIX B OF THE USERS GUIDE.  THE SCALING OF THE OUTPUT POSITION VECTOR DEPENDS ON THE ORIGIN OF THE COORDINATE
050556,000092:                                                                                                  #  SYSTEM AT THE DESIRED INTEGRATION TIME.  THE COORDINATE SYSTEM TRANSFORMATION WILL BE DONE AUTOMATICALLY ON
050557,000093:                                                                                                  #  MULTIPLE TIMESTEP ENCKE INTEGRATION ONLY.  THUS IT IS POSSIBLE TO HAVE OUTPUT FROM SUCCESSIVE INTEGRATIONS IN
050558,000094:                                                                                                  #  DIFFERENT SCALING.
050559,000095:                                                                                                  #  HOWEVER, RATT, VATT WILL ALWAYS BE SCALED THE SAME.
050560,000096: 
050561,000097:                                                                                                  #  3.0 INPUT/OUTPUT
050562,000098:                                                                                                  #  ----------------
050563,000099: 
050564,000100:                                                                                                  #  PROGRAM INPUTS ARE THE FLAGS DESCRIBED IN APPENDIX A AND THE PERMANENT STATE VECTOR QUANTITIES DESCRIBED IN AP-
050565,000101:                                                                                                  #  PENDIX B OF THE USERS GUIDE, PLUS THE DESIRED TIME TO INTEGRATE TO IN TDEC1 (A PUSH LIST LOCATION).
050566,000102:                                                                                                  #  FOR INTEGRVS, THE RCV,VCV,TET OF THE TEMPORARY STATE VECTOR MUST BE SET, PLUS MOONFLAG AND MIDFLAG
050567,000103: 
050568,000104:                                                                                                  #  FOR SIMULATION THE FOLLOWING QUANTITIES MUST BE PRESET ---
050569,000105:                                                                                                  #                                                                                EARTH   MOON
050570,000106:                                                                                                  #                                                                                 29      27
050571,000107:                                                                                                  #        RRECTCSM(LEM)   -       RECTIFIED POSITION VECTOR       METERS          2       2
050572,000108: 
050573,000109:                                                                                                  #                                                                                 7       5
050574,000110:                                                                                                  #        VRECTCSM(LEM)   -       RECTIFIED VELOCITY VECTOR       M/CSEC          2       2
050575,000111: 
050576,000112:                                                                                                  #                                                                                 28      28
050577,000113:                                                                                                  #        TETCSM(LEM)     -       TIME STATE VECTOR IS VALID      CSEC            2       2
050578,000114:                                                                                                  #                                CUSTOMARILY 0, BUT NOTE LUNAR
050579,000115:                                                                                                  #                                ORBIT DEPENDENCE ON REAL TIME.
050580,000116: 
050581,000117:                                                                                                  #                                                                                 22      18
050582,000118:                                                                                                  #        DELTAVCSM(LEM)  -       POSITION DEVIATION              METERS          2       2
050583,000119:                                                                                                  #                                0 IF TCCSM(LEM) = 0
050584,000120: 
050585,000121:                                                                                                  #                                                                                 3       -1
050586,000122:                                                                                                  #        NUVCSM(LEM)     -       VELOCITY DEVIATION              M/CSEC          2       2
050587,000123:                                                                                                  #                                0 IF TCCSM(LEM) = 0

Page 1207

050589,000125:                                                                                                  #                                                                                 29      27
050590,000126:                                                                                                  #        RCVCSM(LEM)     -       CONIC POSITION                  METERS          2       2
050591,000127:                                                                                                  #                                EQUALS RRECTCSM(LEM) IF
050592,000128:                                                                                                  #                                TCCSM(LEM) = 0
050593,000129: 
050594,000130:                                                                                                  #                                                                                 7       5
050595,000131:                                                                                                  #        VCVCSM(LEM)     -       CONIC VELOCITY                  M/CSEC          2       2
050596,000132:                                                                                                  #                                EQUALS VRECTCSM(LEM) IF
050597,000133:                                                                                                  #                                TCCSM(LEM) = 0
050598,000134: 
050599,000135:                                                                                                  #                                                                                 28      28
050600,000136:                                                                                                  #        TCCSM(LEM)      -       TIME SINCE RECTIFICATION        CSECS           2       2
050601,000137:                                                                                                  #                                CUSTOMARILY 0
050602,000138: 
050603,000139:                                                                                                  #                                                                 1/2             17      16
050604,000140:                                                                                                  #        XKEPCSM(LEM)    -       ROOT OF KEPLERS EQUATION        M               2       2
050605,000141:                                                                                                  #                                0 IF TCCSM(LEM) = 0
050606,000142: 
050607,000143:                                                                                                  #        CMOONFLG        -       PERMANENT FLAGS CORRESPONDING                   0       0
050608,000144:                                                                                                  #        CMIDFLAG                TO MOONFLAG AND MIDFLAG                         0,1     0,1
050609,000145:                                                                                                  #        LMOONFLG                C = CSM, L = LM                                 0       0
050610,000146:                                                                                                  #        LMIDFLG                                                                 0,1     0,1
050611,000147: 
050612,000148:                                                                                                  #        SURFFLAG        -       LUNAR SURFACE FLAG                              0,1     0,1
050613,000149: 
050614,000150:                                                                                                  #  IN ADDITION, IF (L)CMIDFLAG IS SET, THE INITIAL INPUT VALUES FOR LUNAR
050615,000151:                                                                                                  #  SOLAR EPHEMERIDES SUBROUTINE AND PLANETARY INERTIAL ORIENTATION SUB-
050616,000152:                                                                                                  #  ROUTINE MUST BE PRESET.
050617,000153: 
050618,000154:                                                                                                  #  OUTPUT
050619,000155:                                                                                                  #        AFTER EVERY CALL TO INTEGRATION
050620,000156:                                                                                                  #                                                                        EARTH   MOON
050621,000157:                                                                                                  #                                                                         29      29
050622,000158:                                                                                                  #        0D      RATT    POSITION                        METERS          2       2
050623,000159: 
050624,000160:                                                                                                  #                                                                         7       7
050625,000161:                                                                                                  #        6D      VATT    VELOCITY                        M/CSEC          2       2
050626,000162: 
050627,000163:                                                                                                  #                                                                         28      28
050628,000164:                                                                                                  #        12D     TAT     TIME                                            2       2
050629,000165: 
050630,000166:                                                                                                  #                                                                         29      27
050631,000167:                                                                                                  #        14D     RATT1   POSITION                        METERS          2       2
050632,000168: 
050633,000169:                                                                                                  #                                                                         7       5
050634,000170:                                                                                                  #        20D     VATT1   VELOCITY                        M/CSEC          2       2
050635,000171: 
050636,000172:                                                                                                  #                                                         3   2           36      30
050637,000173:                                                                                                  #        26D     MU(P)   MU                              M /CS           2       2
050638,000174: 
050639,000175:                                                                                                  #        X1              MUTABLE ENTRY                                   -2      -10D
050640,000176: 
050641,000177:                                                                                                  #        X2              COORDINT
050642,000178:                                                                                                  #        X2              COORDINATE SYSTEM ORIGEN                        0       2
050643,000179:                                                                                                  #                        (THIS, NOT MOONFLAG, SHOULD BE

Page 1208

050645,000181:                                                                                                  #                        USED TO DETERMINE ORIGIN.)
050646,000182: 
050647,000183:                                                                                                  #  IN ADDITION TO THE ABOVE, THE PERMANENT STATE VECTOR IS UPDATED WHENEVER
050648,000184:                                                                                                  #  STATEFLG WAS SET AND WHENEVER A W-MATRIX IS TO BE INTEGRATED.  THE PUSH
050649,000185:                                                                                                  #  COUNTER IS SET TO 0 AND OVERFLOW IS CLEARED BEFORE RETURNING TO THE
050650,000186:                                                                                                  #  CALLING PROGRAM.
050651,000187: 
050652,000188:                                                                                                  #  4.0 CALLING SEQUENCES AND SAMPLE CODE
050653,000189:                                                                                                  #  -------------------------------------
050654,000190: 
050655,000191:                                                                                                  #        A) PRECISION ORBITAL INTEGRATION.  CSMPREC, LEMPREC ENTRANCES
050656,000192:                                                                                                  #                L-X     STORE TIME TO 95T5791T5 T 95 PUS L9ST (T4531)
050657,000193:                                                                                                  #                L       CALL
050658,000194:                                                                                                  #                L+1             CSMPREC (OR LEMPREC)
050659,000195:                                                                                                  #                L+2     RETURN
050660,000196:                                                                                                  #           INPUT                                                           28
050661,000197:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO...CENTISECONDS SCALED 2
050662,000198:                                                                                                  #           OUTPUT
050663,000199:                                                                                                  #                THE DATA LISTED IN SECTION 3.0 PLUS
050664,000200:                                                                                                  #                RQVV    POSITION VECTOR OF VEHICLE WITH RESPECT TO SECONDARY
050665,000201:                                                                                                  #                BODY... METERS B-29 ONLY IF MIDFLAG = DIMOFLAG = 1
050666,000202:                                                                                                  #        B) CONIC INTEGRATION.  CSMCONIC, LEMCONIC ENTRANCES
050667,000203:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1)
050668,000204:                                                                                                  #                L       CALL
050669,000205:                                                                                                  #                L+1             CSMCONIC (OR LEMCONIC)
050670,000206:                                                                                                  #           INPUT/OUTPUT
050671,000207:                                                                                                  #                SAME AS PRECISION INTEGRATION, EXCEPT RQVV NOT SET
050672,000208:                                                                                                  #        C) INTEGRATE GIVEN STATE VECTOR.  INTEGRVS ENTRANCE
050673,000209:                                                                                                  #                CALL
050674,000210:                                                                                                  #                                INTSTALL
050675,000211:                                                                                                  #                VLOAD
050676,000212:                                                                                                  #                                POSITION VECTOR
050677,000213:                                                                                                  #                STOVL           RCV
050678,000214:                                                                                                  #                                VELOCITY VECTOR
050679,000215:                                                                                                  #                STODL           VCV
050680,000216:                                                                                                  #                                TIME STATE VECTOR VALID
050681,000217:                                                                                                  #                STODL           TET
050682,000218:                                                                                                  #                                FINAL RADIUS
050683,000219:                                                                                                  #                STORE           RFINAL
050684,000220:                                                                                                  #                SET(CLEAR)      SET(CLEAR)
050685,000221:                                                                                                  #                                INTYPFLAG
050686,000222:                                                                                                  #                                MOONFLAG
050687,000223:                                                                                                  #                SET(CLEAR)      DLOAD
050688,000224:                                                                                                  #                                DESIRED TIME
050689,000225:                                                                                                  #                STCALL          TDEC1
050690,000226:                                                                                                  #                                INTEGRVS
050691,000227:                                                                                                  #          INPUT
050692,000228:                                                                                                  #                RCV     POSITION VECTOR                 METERS
050693,000229:                                                                                                  #                VCV     VELOCITY VECTOR                 M/CSEC
050694,000230:                                                                                                  #                TET     TIME OF STATE VECTOR (MAY = 0)  CSEC B-28

Page 1209

050696,000232:                                                                                                  #                TDEC1   TIME TO INTEGRATE TO            CSEC B-28 (PD 32D)
050697,000233:                                                                                                  #                        (MAY BE INCREMENT IF TET=0)
050698,000234:                                                                                                  #          OUTPUT
050699,000235:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION,
050700,000236:                                                                                                  #                DEPENDING ON INTYPFLG.
050701,000237:                                                                                                  #        D) INTEGRATE STATE VECTOR.  INTGRV ENTRANCE
050702,000238:                                                                                                  #                L-X     STORE TIME IN PUSH LIST (TDEC1) (MAY BE DONE AFTER CALL TO INTSTALL)
050703,000239:                                                                                                  #                L-8     CALL
050704,000240:                                                                                                  #                L-7
050705,000241:                                                                                                  #                L-6     SET(CLEAR)      SET(CLEAR)
050706,000242:                                                                                                  #                L-5                     VINTFLAG        1=CSM, 0=LM
050707,000243:                                                                                                  #                L-4                     INTYPFLAG       1=CONIC, 0=PRECISION
050708,000244:                                                                                                  #                L-3     SET(CLEAR)      SET(CLEAR)
050709,000245:                                                                                                  #                L-2                     DIMOFLAG        1=W-MATRIX, 0=NO W-MATRIX
050710,000246:                                                                                                  #                L-1                     D6OR9FLG        1=9X9, 0=6X6
050711,000247:                                                                                                  #                L       SET             DLOAD
050712,000248:                                                                                                  #                L+1                     STATEFLG        DESIRE PERMANENT UPDATE
050713,000249:                                                                                                  #                L+2                     FINAL RAD.      OF STATE VECTOR
050714,000250:                                                                                                  #                L+3     STCALL          RFINAL
050715,000251:                                                                                                  #                L+4                     INTEGRV
050716,000252:                                                                                                  #                L       CALL                            NORMAL USE -- WILL UPDATE STATE
050717,000253:                                                                                                  #                L+1                     INTEGRV         VECTOR IF DIMOFLAG=1. (STATEFLG IS
050718,000254:                                                                                                  #                L+2     RETURN                          ALWAYS RESET IN INTEGRATION AFTER
050719,000255:                                                                                                  #                                                        IT IS USED.)
050720,000256:                                                                                                  #          INPUT
050721,000257:                                                                                                  #                TDEC1 (PD 32D) TIME TO INTEGRATE TO     CSEC B-28
050722,000258:                                                                                                  #          OUTPUT
050723,000259:                                                                                                  #                SAME AS FOR PRECISION OR CONIC INTEGRATION
050724,000260:                                                                                                  #          THE PROGRAM WILL SET MOONFLAG, MIDFLAG DEPENDING ON
050725,000261:                                                                                                  #          THE PERMANENT STATE VECTOR REPRESENTATION.
050726,000262: 
050727,000263: 11,2376                                           BANK     11                                    
050728,000264: 13,2000                                           SETLOC   INTINIT                               
050729,000265: 13,2000                                           BANK                                           
050730,000266: 13,2604  E3,1554                                  EBANK=   RRECTCSM                              
050731,000267: 13,2604                                           COUNT*   $$/INTIN                              
050732,000268: 13,2604           05353        STATEINT           TC       PHASCHNG                              
050733,000269: 13,2605           00052                           OCT      00052                                 
050734,000270: 13,2606           35017                           CAF      PRIO5                                 
050735,000271: 13,2607           05105                           TC       FINDVAC                               
050736,000272: 13,2610  E3,1554                                  EBANK=   RRECTCSM                              
050737,000273: 13,2610           02613 26063                     2CADR    STATINT1                              
050738,000274: 
050739,000275: 13,2612           05261                           TC       TASKOVER                              
050740,000276: 13,2613           06037        STATINT1           TC       INTPRET                               
050741,000277: 13,2614           47014                           BON      RTB                                   
050742,000278: 13,2615           04712                                    QUITFLAG                              #  KILL INTEGRATION UNTIL NEXT POO.
050743,000279: 13,2616           26653                                    NOINT                                 
050744,000280: 13,2617           21573                                    LOADTIME                              
050745,000281: 13,2620           00041                           STORE    TDEC1                                 

Page 1210

050747,000283: 13,2621           77624                           CALL                                           
050748,000284: 13,2622           27414                                    INTSTALL                              
050749,000285: 13,2623           45014                           SET      CALL                                  
050750,000286: 13,2624           01076                                    NODOFLAG                              
050751,000287: 13,2625           26644                                    SETIFLGS                              
050752,000288: 13,2626           77650                           GOTO                                           
050753,000289: 13,2627           26026                                    STATEUP                               
050754,000290: 13,2630           00003 25140  600SECS            2DEC     60000      B-28                       
050755,000291: 
050756,000292: 13,2632           77414        ENDINT             CLEAR    EXIT                                  
050757,000293: 13,2633           01672                                    STATEFLG                              
050758,000294: 13,2634           05353                           TC       PHASCHNG                              
050759,000295: 13,2635           20032                           OCT      20032                                 
050760,000296: 13,2636           00006                           EXTEND                                         
050761,000297: 13,2637           32631                           DCA      600SECS                               
050762,000298: 13,2640           05277                           TC       LONGCALL                              
050763,000299: 13,2641  E3,1626                                  EBANK=   RRECTHIS                              
050764,000300: 13,2641           02604 26063                     2CADR    STATEINT                              
050765,000301: 
050766,000302: 13,2643           05155                           TC       ENDOFJOB                              
050767,000303: 13,2644           43014        SETIFLGS           SET      CLEAR                                 
050768,000304: 13,2645           01472                                    STATEFLG                              
050769,000305: 13,2646           01673                                    INTYPFLG                              
050770,000306: 13,2647           43014                           CLEAR    CLEAR                                 
050771,000307: 13,2650           01676                                    DIM0FLAG                              
050772,000308: 13,2651           01675                                    D6OR9FLG                              
050773,000309: 13,2652           77616                           RVQ                                            
050774,000310: 13,2653           77776        NOINT              EXIT                                           
050775,000311: 13,2654           05353                           TC       PHASCHNG                              
050776,000312: 13,2655           00002                           OCT      00002                                 
050777,000313: 
050778,000314: 13,2656           05516                           TC       DOWNFLAG                              
050779,000315: 13,2657           00221                           ADRES    QUITFLAG                              
050780,000316: 13,2660           05155                           TC       ENDOFJOB                              
050781,000317: 
050782,000318:                                                                                                  #  ATOPCSM TRANSFERS RRECT TO RRECT +41 TO RRECTCSM TO RRECTCSM +41
050783,000319: 
050784,000320:                                                                                                  #  CALLING SEQUENCE
050785,000321:                                                                                                  #        L       CALL
050786,000322:                                                                                                  #        L+1             ATOPCSM
050787,000323: 
050788,000324:                                                                                                  #  NORMAL EXIT AT L+2
050789,000325: 
050790,000326: 13,2661           47020        ATOPCSM            STQ      RTB                                   
050791,000327: 13,2662           00051                                    S2                                    
050792,000328: 13,2663           26674                                    MOVEACSM                              
050793,000329: 13,2664           45014                           SET      CALL                                  
050794,000330: 13,2665           04063                                    CMOONFLG                              
050795,000331: 13,2666           26114                                    SVDWN1                                
050796,000332: 13,2667           43014                           BON      CLRGO                                 

Page 1211

050798,000334: 13,2670           00303                                    MOONFLAG                              
050799,000335: 13,2671           00051                                    S2                                    
050800,000336: 13,2672           04223                                    CMOONFLG                              
050801,000337: 13,2673           00051                                    S2                                    
050802,000338: 13,2674           03036        MOVEACSM           TC       SETBANK                               
050803,000339: 13,2675           55500                           TS       DIFEQCNT                              #  INITIALIZE INDEX
050804,000340: 13,2676           51500                           INDEX    DIFEQCNT                              
050805,000341: 13,2677           31502                           CA       RRECT                                 
050806,000342: 13,2700           51500                           INDEX    DIFEQCNT                              
050807,000343: 13,2701           55554                           TS       RRECTCSM                              
050808,000344: 13,2702           11500                           CCS      DIFEQCNT                              #  IS TRANSFER COMPLETE
050809,000345: 13,2703           12675                           TCF      MOVEACSM   +1                         #  NO-LOOP
050810,000346: 13,2704           06061                           TC       DANZIG                                #  COMPLETE - RETURN
050811,000347: 
050812,000348:                                                                                                  #  PTOACSM TRANSFERS RRECTCSM TO RRECTCSM +41 TO RRECT TO RRECT +41
050813,000349: 
050814,000350:                                                                                                  #  CALLING SEQUENCE
050815,000351:                                                                                                  #        L       CALL
050816,000352:                                                                                                  #                        PTOACSM
050817,000353: 
050818,000354:                                                                                                  #  NORMAL EXIT AT L+2
050819,000355: 
050820,000356: 13,2705           43034        PTOACSM            RTB      BON                                   
050821,000357: 13,2706           26723                                    MOVEPCSM                              
050822,000358: 13,2707           04303                                    CMOONFLG                              
050823,000359: 13,2710           26716                                    SETMOON                               
050824,000360: 13,2711           66214        CLRMOON            CLEAR    SSP                                   
050825,000361: 13,2712           00263                                    MOONFLAG                              
050826,000362: 13,2713           02031                                    PBODY                                 
050827,000363: 13,2714           00000                                    0                                     
050828,000364: 13,2715           77616                           RVQ                                            
050829,000365: 13,2716           66214        SETMOON            SET      SSP                                   
050830,000366: 13,2717           00063                                    MOONFLAG                              
050831,000367: 13,2720           02031                                    PBODY                                 
050832,000368: 13,2721           00002                                    2                                     
050833,000369: 13,2722           77616                           RVQ                                            
050834,000370: 13,2723           03036        MOVEPCSM           TC       SETBANK                               
050835,000371: 13,2724           55500                           TS       DIFEQCNT                              
050836,000372: 13,2725           51500                           INDEX    DIFEQCNT                              
050837,000373: 13,2726           31554                           CA       RRECTCSM                              
050838,000374: 13,2727           51500                           INDEX    DIFEQCNT                              
050839,000375: 13,2730           55502                           TS       RRECT                                 
050840,000376: 13,2731           11500                           CCS      DIFEQCNT                              
050841,000377: 13,2732           12724                           TCF      MOVEPCSM   +1                         
050842,000378: 13,2733           06061                           TC       DANZIG                                
050843,000379: 
050844,000380:                                                                                                  #  ATOPLEM TRANSFERS RRECT TO RRECT +41 TO RRECTLEM TO RRECTLEM +41
050845,000381: 13,2734           47020        ATOPLEM            STQ      RTB                                   

Page 1212

050847,000383: 13,2735           00051                                    S2                                    
050848,000384: 13,2736           26747                                    MOVEALEM                              
050849,000385: 13,2737           45014                           SET      CALL                                  
050850,000386: 13,2740           04064                                    LMOONFLG                              
050851,000387: 13,2741           26070                                    SVDWN2                                
050852,000388: 13,2742           43014                           BON      CLRGO                                 
050853,000389: 13,2743           00303                                    MOONFLAG                              
050854,000390: 13,2744           00051                                    S2                                    
050855,000391: 13,2745           04224                                    LMOONFLG                              
050856,000392: 13,2746           00051                                    S2                                    
050857,000393: 13,2747           03036        MOVEALEM           TC       SETBANK                               
050858,000394: 13,2750           55500                           TS       DIFEQCNT                              
050859,000395: 13,2751           51500                           INDEX    DIFEQCNT                              
050860,000396: 13,2752           31502                           CA       RRECT                                 
050861,000397: 13,2753           51500                           INDEX    DIFEQCNT                              
050862,000398: 13,2754           55626                           TS       RRECTLEM                              
050863,000399: 13,2755           11500                           CCS      DIFEQCNT                              
050864,000400: 13,2756           12750                           TCF      MOVEALEM   +1                         
050865,000401: 13,2757           06061                           TC       DANZIG                                
050866,000402: 
050867,000403:                                                                                                  #  PTOALEM TRANSFERS RRECTLEM TO RRECTLEM +41 TO RRECT TO RRECT +41
050868,000404: 
050869,000405: 13,2760           47014        PTOALEM            BON      RTB                                   
050870,000406: 13,2761           04307                                    SURFFLAG                              
050871,000407: 13,2762           27001                                    USEPIOS                               
050872,000408: 13,2763           26770                                    MOVEPLEM                              
050873,000409: 13,2764           52014                           BON      GOTO                                  
050874,000410: 13,2765           04304                                    LMOONFLG                              
050875,000411: 13,2766           26716                                    SETMOON                               
050876,000412: 13,2767           26711                                    CLRMOON                               
050877,000413: 13,2770           03036        MOVEPLEM           TC       SETBANK                               
050878,000414: 13,2771           55500                           TS       DIFEQCNT                              
050879,000415: 13,2772           51500                           INDEX    DIFEQCNT                              
050880,000416: 13,2773           31626                           CA       RRECTLEM                              
050881,000417: 13,2774           51500                           INDEX    DIFEQCNT                              
050882,000418: 13,2775           55502                           TS       RRECT                                 
050883,000419: 13,2776           11500                           CCS      DIFEQCNT                              
050884,000420: 13,2777           12771                           TCF      MOVEPLEM   +1                         
050885,000421: 13,3000           06061                           TC       DANZIG                                
050886,000422: 
050887,000423: 13,3001           77201        USEPIOS            SETPD    VLOAD                                 
050888,000424: 13,3002           00001                                    0                                     
050889,000425: 13,3003           02023                                    RLS                                   
050890,000426: 13,3004           41525                           PDDL     PUSH                                  
050891,000427: 13,3005           00041                                    TDEC1                                 
050892,000428: 13,3006           15517                           STODL    TET                                   
050893,000429: 13,3007           27712                                    5/8                                   
050894,000430: 13,3010           77624                           CALL                                           

Page 1213

050896,000432: 13,3011           55716                                    RP-TO-R                               
050897,000433: 13,3012           25535                           STOVL    RCV                                   
050898,000434: 13,3013           24001                                    ZUNIT                                 
050899,000435: 13,3014           14001                           STODL    0D                                    
050900,000436: 13,3015           01517                                    TET                                   
050901,000437: 13,3016           14007                           STODL    6D                                    
050902,000438: 13,3017           27712                                    5/8                                   
050903,000439: 13,3020           45014                           SET      CALL                                  #  NEEDED FOR SETTING X1 ON EXIT
050904,000440: 13,3021           00063                                    MOONFLAG                              
050905,000441: 13,3022           55716                                    RP-TO-R                               
050906,000442: 13,3023           74235                           VXV      VXSC                                  
050907,000443: 13,3024           01535                                    RCV                                   
050908,000444: 13,3025           26001                                    OMEGMOON                              
050909,000445: 13,3026           25543                           STOVL    VCV                                   
050910,000446: 13,3027           24007                                    ZEROVEC                               
050911,000447: 13,3030           01521                           STORE    TDELTAV                               
050912,000448: 13,3031           67174                           AXT,2    SXA,2                                 
050913,000449: 13,3032           00002                                    2                                     
050914,000450: 13,3033           02030                                    PBODY                                 
050915,000451: 13,3034           35527                           STCALL   TNUV                                  
050916,000452: 13,3035           27157                                    A-PCHK                                
050917,000453: 13,3036           33042        SETBANK            CAF      INTBANK                               
050918,000454: 13,3037           54006                           TS       BBANK                                 
050919,000455: 13,3040           33452                           CAF      FORTYONE                              
050920,000456: 13,3041           00002                           TC       Q                                     
050921,000457: 13,3042  E3,1554                                  EBANK=   RRECTCSM                              
050922,000458: 13,3042           26063        INTBANK            BBCON    INTEGRV                               
050923,000459: 
050924,000460:                                                                                                  #  SPECIAL PURPOSE ENTRIES TO ORBITAL INTEGRATION.  THESE ROUTINES PROVIDE ENTRANCES TO INTEGRATION WITH
050925,000461:                                                                                                  #  APPROPRIATE SWITCHES SET OR CLEARED FOR THE DESIRED INTEGRATION.
050926,000462: 
050927,000463:                                                                                                  #  CSMPREC AND LEMPREC PERFORM ORBIT INTEGRATION BY THE ENCKE METHOD TO THE TIME INDICATED IN TDEC1
050928,000464:                                                                                                  #  ACCELERATIONS DUE TO OBLATENESS ARE INCLUDED.  NO W-MATRIX INT. IS DONE.
050929,000465:                                                                                                  #  THE PERMANENT STATE VECTOR IS NOT UPDATED.
050930,000466: 
050931,000467:                                                                                                  #  CSMCONIC AND LEMCONIC PERFORM ORBIT INTEG. BY KEPLERS METHOD TO THE TIME INDICATED IN TDEC1
050932,000468:                                                                                                  #  NO DISTURBING ACCELERATIONS ARE INCLUDED.  IN THE PROGRAM FLOW THE GIVEN
050933,000469:                                                                                                  #  STATE VECTOR IS RECTIFIED BEFORE SOLUTION OF KEPLERS EQUATION
050934,000470: 
050935,000471:                                                                                                  #  THE ROUTINES ASSUME THAT THE CSM (LEM) STATE VECTOR IN P-MEM IS VALID.
050936,000472:                                                                                                  #  SWITCHES SET PRIOR TO ENTRY TO THE MAIN INTEG. PROG ARE AS FOLLOWS
050937,000473:                                                                                                  #                        CSMPREC         CSMCONIC        LEMPREC         LEMCONIC
050938,000474:                                                                                                  #        VINTFLAG        SET             SET             CLEAR           CLEAR
050939,000475:                                                                                                  #        INTYPFLG        CLEAR           SET             CLEAR           SET
050940,000476:                                                                                                  #        DIM0FLAG        CLEAR           CLEAR           CLEAR           CLEAR
050941,000477: 
050942,000478:                                                                                                  #  CALLING SEQUENCE
050943,000479:                                                                                                  #        L-X     STORE   TDEC1
050944,000480:                                                                                                  #        L       CALL                    (STCALL TDEC1)

Page 1214

050946,000482:                                                                                                  #        L+1             CSMPREC         (CSMCONIC, LEMPREC, LEMCONIC)
050947,000483: 
050948,000484:                                                                                                  #  NORMAL EXIT TO L+2
050949,000485: 
050950,000486:                                                                                                  #  SUBROUTINES CALLED
050951,000487:                                                                                                  #        INTEGRV1
050952,000488:                                                                                                  #        PRECOUT FOR CSMPREC AND LEMPREC
050953,000489:                                                                                                  #        CONICOUT FOR CSMCONIC AND LEMCONIC
050954,000490: 
050955,000491:                                                                                                  #  OUTPUT - SEE PAGE 2 OF THIS LOG SECTION
050956,000492: 
050957,000493:                                                                                                  #  INPUT
050958,000494:                                                                                                  #        TDEC1           TIME TO INTEGRATE TO.  CSECS B-28
050959,000495: 
050960,000496: 13,3043           45020        CSMPREC            STQ      CALL                                  
050961,000497: 13,3044           00046                                    X1                                    
050962,000498: 13,3045           27414                                    INTSTALL                              
050963,000499: 13,3046           43130                           SXA,1    SET                                   
050964,000500: 13,3047           02102                                    IRETURN                               
050965,000501: 13,3050           01474                                    VINTFLAG                              
050966,000502: 
050967,000503: 13,3051           43014        IFLAGP             SET      CLEAR                                 
050968,000504: 13,3052           01467                                    PRECIFLG                              
050969,000505: 13,3053           01676                                    DIM0FLAG                              
050970,000506: 13,3054           77614                           CLRGO                                          
050971,000507: 13,3055           01633                                    INTYPFLG                              
050972,000508: 13,3056           27136                                    INTEGRV1                              
050973,000509: 13,3057           45020        LEMPREC            STQ      CALL                                  
050974,000510: 13,3060           00046                                    X1                                    
050975,000511: 13,3061           27414                                    INTSTALL                              
050976,000512: 13,3062           43130                           SXA,1    CLRGO                                 
050977,000513: 13,3063           02102                                    IRETURN                               
050978,000514: 13,3064           01634                                    VINTFLAG                              
050979,000515: 13,3065           27051                                    IFLAGP                                
050980,000516: 
050981,000517: 13,3066           45020        CSMCONIC           STQ      CALL                                  
050982,000518: 13,3067           00046                                    X1                                    
050983,000519: 13,3070           27414                                    INTSTALL                              
050984,000520: 13,3071           43130                           SXA,1    SET                                   
050985,000521: 13,3072           02102                                    IRETURN                               
050986,000522: 13,3073           01474                                    VINTFLAG                              
050987,000523: 13,3074           43014        IFLAGC             CLEAR    SETGO                                 
050988,000524: 13,3075           01676                                    DIM0FLAG                              
050989,000525: 13,3076           01433                                    INTYPFLG                              
050990,000526: 13,3077           27136                                    INTEGRV1                              
050991,000527: 13,3100           45020        LEMCONIC           STQ      CALL                                  
050992,000528: 13,3101           00046                                    X1                                    
050993,000529: 13,3102           27414                                    INTSTALL                              
050994,000530: 13,3103           43130                           SXA,1    CLRGO                                 
050995,000531: 13,3104           02102                                    IRETURN                               

Page 1215

050997,000533: 13,3105           01634                                    VINTFLAG                              
050998,000534: 13,3106           27074                                    IFLAGC                                
050999,000535: 
051000,000536: 13,3107           66214        INTEGRVS           SET      SSP                                   
051001,000537: 13,3110           01467                                    PRECIFLG                              
051002,000538: 13,3111           02031                                    PBODY                                 
051003,000539: 13,3112           00000                                    0                                     
051004,000540: 13,3113           66214                           BOF      SSP                                   
051005,000541: 13,3114           00343                                    MOONFLAG                              
051006,000542: 13,3115           27120                                    +3                                    
051007,000543: 13,3116           02031                                    PBODY                                 
051008,000544: 13,3117           00002                                    2                                     
051009,000545: 13,3120           77220                           STQ      VLOAD                                 
051010,000546: 13,3121           02102                                    IRETURN                               
051011,000547: 13,3122           24007                                    ZEROVEC                               
051012,000548: 13,3123           01521                           STORE    TDELTAV                               
051013,000549: 13,3124           35527                           STCALL   TNUV                                  
051014,000550: 13,3125           23441                                    RECTIFY                               
051015,000551: 13,3126           43014                           CLEAR    SET                                   
051016,000552: 13,3127           01676                                    DIM0FLAG                              
051017,000553: 13,3130           04062                                    NEWIFLG                               
051018,000554: 13,3131           77614                           SETGO                                          
051019,000555: 13,3132           04020                                    RPQFLAG                               
051020,000556: 13,3133           27150                                    ALOADED                               
051021,000557: 
051022,000558:                                                                                                  #  INTEGRV IS AN ENTRY TO ORBIT INTEGRATION WHICH PERMITS THE CALLER,
051023,000559:                                                                                                  #  NORMALLY THE NAVIGATION PROGRAM, TO SET THE INTEG. FLAGS.  THE ROUTINE
051024,000560:                                                                                                  #  IS ENTERED AT INTEGRV1 BY CSMPREC ET. AL. AND AT ALOADED BY INTEGRVS.
051025,000561:                                                                                                  #  THE ROUTINE SETS UP A-MEMORY IF ENTERED AT INTEGRV,1 AND SETS THE INTEG.
051026,000562:                                                                                                  #  PROGRAM FOR PRECISION OR CONIC
051027,000563: 
051028,000564:                                                                                                  #  THE CALLER MUST FIRST CALL INTSTALL TO CHECK IF INTEG. IS IN USE BEFORE
051029,000565:                                                                                                  #  SETTING ANY FLAGS.
051030,000566: 
051031,000567:                                                                                                  #  THE FLAGS WHICH SHOULD BE SET OR CLEARED ARE
051032,000568:                                                                                                  #        VINTFLAG        (IGNORED WHEN ENTERED FROM INTEGRVS)
051033,000569:                                                                                                  #        INTYPFLG
051034,000570:                                                                                                  #        DIM0FLAG
051035,000571:                                                                                                  #        D6OR9FLG
051036,000572: 
051037,000573:                                                                                                  #  CALLING SEQUENCE
051038,000574:                                                                                                  #        L-X     CALL
051039,000575:                                                                                                  #        L-Y             INTSTALL
051040,000576:                                                                                                  #        L-1     SET OR CLEAR ALL FOUR FLAGS.  ALSO CAN SET STATEFLG IF DESIRED
051041,000577:                                                                                                  #                AND DIM0FLAG IS CLEAR.
051042,000578:                                                                                                  #        L       CALL
051043,000579:                                                                                                  #        L+1             INTEGRV
051044,000580: 
051045,000581:                                                                                                  #  INITIALIZATION
051046,000582:                                                                                                  #        FLAGS AS ABOVE
051047,000583:                                                                                                  #        STORE TIME TO INTEGRATE TO IN TDEC1
051048,000584: 
051049,000585:                                                                                                  #  OUTPUT
051050,000586:                                                                                                  #        RATT    AS
051051,000587:                                                                                                  #        VATT          DEFINED

Page 1216

051053,000589:                                                                                                  #        TAT                     BEFORE
051054,000590: 
051055,000591: 13,3134           77620        INTEGRV            STQ                                            
051056,000592: 13,3135           02102                                    IRETURN                               
051057,000593: 13,3136           43014        INTEGRV1           SET      SET                                   
051058,000594: 13,3137           04060                                    RPQFLAG                               
051059,000595: 13,3140           04062                                    NEWIFLG                               
051060,000596: 13,3141           77731        INTEGRV2           SSP                                            
051061,000597: 13,3142           00053                                    QPRET                                 
051062,000598: 13,3143           27150                                    ALOADED                               
051063,000599: 13,3144           52014                           BON      GOTO                                  
051064,000600: 13,3145           01714                                    VINTFLAG                              
051065,000601: 13,3146           26705                                    PTOACSM                               
051066,000602: 13,3147           26760                                    PTOALEM                               
051067,000603: 13,3150           77745        ALOADED            DLOAD                                          
051068,000604: 13,3151           00041                                    TDEC1                                 
051069,000605: 13,3152           01116                           STORE    TDEC                                  
051070,000606: 13,3153           52014                           BOFF     GOTO                                  
051071,000607: 13,3154           01753                                    INTYPFLG                              
051072,000608: 13,3155           27257                                    TESTLOOP                              
051073,000609: 13,3156           27243                                    RVCON                                 
051074,000610: 13,3157           77414        A-PCHK             BOF      EXIT                                  
051075,000611: 13,3160           01752                                    STATEFLG                              
051076,000612: 13,3161           27200                                    RECTOUT                               
051077,000613: 13,3162           05353                           TC       PHASCHNG                              
051078,000614: 13,3163           04022                           OCT      04022                                 
051079,000615: 13,3164           05504                           TC       UPFLAG                                #  PHASE CHANGE HAS OCCURRED BETWEEN
051080,000616: 13,3165           00236                           ADRES    REINTFLG                              #  INTSTALL AND INTWAKE
051081,000617: 13,3166           06037                           TC       INTPRET                               
051082,000618: 13,3167           77731                           SSP                                            
051083,000619: 13,3170           00053                                    QPRET                                 
051084,000620: 13,3171           27176                                    PHEXIT                                
051085,000621: 13,3172           52014                           BON      GOTO                                  
051086,000622: 13,3173           01714                                    VINTFLAG                              
051087,000623: 13,3174           26661                                    ATOPCSM                               
051088,000624: 13,3175           26734                                    ATOPLEM                               
051089,000625: 13,3176           77624        PHEXIT             CALL                                           
051090,000626: 13,3177           11244                                    GRP2PC                                
051091,000627: 13,3200           45001        RECTOUT            SETPD    CALL                                  
051092,000628: 13,3201           00001                                    0                                     
051093,000629: 13,3202           23441                                    RECTIFY                               
051094,000630: 13,3203           53775                           VLOAD    VSL*                                  
051095,000631: 13,3204           01503                                    RRECT                                 
051096,000632: 13,3205           57576                                    0,2                                   
051097,000633: 13,3206           53715                           PDVL     VSL*                                  #  RATT TO PD0
051098,000634: 13,3207           01511                                    VRECT                                 
051099,000635: 13,3210           57576                                    0,2                                   
051100,000636: 13,3211           63325                           PDDL     PDVL                                  #  VATT TO PD6   TAT TO PD12
051101,000637: 13,3212           01517                                    TET                                   

Page 1217

051103,000639: 13,3213           01503                                    RRECT                                 
051104,000640: 13,3214           64715                           PDVL     PDDL*                                 
051105,000641: 13,3215           01511                                    VRECT                                 
051106,000642: 13,3216           51770                                    MUEARTH,2                             
051107,000643: 13,3217           76006                           PUSH     AXT,1                                 
051108,000644: 13,3220           77765                           DEC      -10        B-14                       
051109,000645: 13,3221           76014                           BON      AXT,1                                 
051110,000646: 13,3222           00303                                    MOONFLAG                              
051111,000647: 13,3223           27225                                    +2                                    
051112,000648: 13,3224           77775                           DEC      -2         B-14                       
051113,000649: 13,3225           40001        INTEXIT            SETPD    BOV                                   
051114,000650: 13,3226           00001                                    0                                     
051115,000651: 13,3227           27230                                    +1                                    
051116,000652: 13,3230           43014                           CLEAR    CLEAR                                 
051117,000653: 13,3231           04676                                    AVEMIDSW                              #  ALLOW UPDATE OF DOWNLINK STATE VECTOR
051118,000654: 13,3232           01667                                    PRECIFLG                              
051119,000655: 13,3233           77614                           CLEAR                                          
051120,000656: 13,3234           01672                                    STATEFLG                              
051121,000657: 13,3235           77535                           SLOAD    EXIT                                  
051122,000658: 13,3236           02103                                    IRETURN                               
051123,000659: 13,3237           30154                           CA       MPAC                                  
051124,000660: 13,3240           50120                           INDEX    FIXLOC                                
051125,000661: 13,3241           54052                           TS       QPRET                                 
051126,000662: 13,3242           03425                           TC       INTWAKE                               
051127,000663: 
051128,000664:                                                                                                  #  RVCON SETS UP ORBIT INTEGRATION TO DO A CONIC SOLUTION FOR POSITION AND
051129,000665:                                                                                                  #  VELOCITY FOR THE INTERVAL (TET-TDEC)
051130,000666: 
051131,000667: 13,3243           45345        RVCON              DLOAD    DSU                                   
051132,000668: 13,3244           01116                                    TDEC                                  
051133,000669: 13,3245           01517                                    TET                                   
051134,000670: 13,3246           36074                           STCALL   TAU.                                  
051135,000671: 13,3247           23441                                    RECTIFY                               
051136,000672: 13,3250           77624                           CALL                                           
051137,000673: 13,3251           22376                                    KEPPREP                               
051138,000674: 13,3252           43345                           DLOAD    DAD                                   
051139,000675: 13,3253           01551                                    TC                                    
051140,000676: 13,3254           01517                                    TET                                   
051141,000677: 13,3255           35517                           STCALL   TET                                   
051142,000678: 13,3256           27200                                    RECTOUT                               
051143,000679: 

Page 1218

051145,000681:                                                                                                  #  TESTLOOP
051146,000682: 
051147,000683: 13,3257           43014        TESTLOOP           BOF      CLRGO                                 
051148,000684: 13,3260           04752                                    QUITFLAG                              
051149,000685: 13,3261           27264                                    +3                                    
051150,000686: 13,3262           01632                                    STATEFLG                              
051151,000687: 13,3263           27225                                    INTEXIT                               #  STOP INTEGRATION
051152,000688: 13,3264           73001                 +3        SETPD    LXA,2                                 
051153,000689: 13,3265           00013                                    10D                                   
051154,000690: 13,3266           02030                                    PBODY                                 
051155,000691: 13,3267           51575                           VLOAD    ABVAL                                 
051156,000692: 13,3270           01535                                    RCV                                   
051157,000693: 13,3271           43006                           PUSH     CLEAR                                 #  RC TO 10D
051158,000694: 13,3272           00262                                    MIDFLAG                               
051159,000695: 13,3273           50023                           DSU*     BMN                                   #  MIDFLAG=0 IF R G.T. RMP
051160,000696: 13,3274           53755                                    RME,2                                 
051161,000697: 13,3275           27300                                    +3                                    
051162,000698: 13,3276           77614                           SET                                            
051163,000699: 13,3277           00062                                    MIDFLAG                               
051164,000700: 13,3300           41345        NORFINAL           DLOAD    DMP                                   
051165,000701: 13,3301           00013                                    10D                                   
051166,000702: 13,3302           00043                                    34D                                   
051167,000703: 13,3303           55762                           SR1R     DDV*                                  
051168,000704: 13,3304           51770                                    MUEARTH,2                             
051169,000705: 13,3305           41366                           SQRT     DMP                                   
051170,000706: 13,3306           25752                                    .3D                                   
051171,000707: 13,3307           40442                           SR3      SR4                                   #  DT IS TRUNCATED TO A MULTIPLE
051172,000708: 13,3310           54345                           DLOAD    SL                                    
051173,000709: 13,3311           00155                                    MPAC                                  
051174,000710: 13,3312           20220                                    15D                                   #        OF 128 CSECS.
051175,000711: 13,3313           40006                           PUSH     BOV                                   
051176,000712: 13,3314           27341                                    MAXDT                                 
051177,000713: 13,3315           50021                           BDSU     BMN                                   
051178,000714: 13,3316           27413                                    DT/2MAX                               
051179,000715: 13,3317           27341                                    MAXDT                                 
051180,000716: 13,3320           45345        DT/2COMP           DLOAD    DSU                                   
051181,000717: 13,3321           01116                                    TDEC                                  
051182,000718: 13,3322           01517                                    TET                                   
051183,000719: 13,3323           54234                           RTB      SL                                    
051184,000720: 13,3324           21612                                    SGNAGREE                              
051185,000721: 13,3325           20211                                    8D                                    
051186,000722: 13,3326           02076                           STORE    DT/2                                  #  B-19
051187,000723: 13,3327           51400                           BOV      ABS                                   
051188,000724: 13,3330           27345                                    GETMAXDT                              
051189,000725: 13,3331           50025                           DSU      BMN                                   #  IS TIME TO INTEG. TO GR THAN MAXTIME
051190,000726: 13,3332           00015                                    12D                                   
051191,000727: 13,3333           27351                                    P00HCHK                               
051192,000728: 13,3334           75345        USEMAXDT           DLOAD    SIGN                                  
051193,000729: 13,3335           00015                                    12D                                   
051194,000730: 13,3336           02076                                    DT/2                                  

Page 1219

051196,000732: 13,3337           36076                           STCALL   DT/2                                  
051197,000733: 13,3340           27351                                    P00HCHK                               
051198,000734: 13,3341           65345        MAXDT              DLOAD    PDDL                                  #  EXCHANGE DT/2MAX WITH COMPUTED MAX.
051199,000735: 13,3342           27413                                    DT/2MAX                               
051200,000736: 13,3343           77650                           GOTO                                           
051201,000737: 13,3344           27320                                    DT/2COMP                              
051202,000738: 13,3345           77634        GETMAXDT           RTB                                            
051203,000739: 13,3346           21712                                    SIGNMPAC                              
051204,000740: 13,3347           36076                           STCALL   DT/2                                  
051205,000741: 13,3350           27334                                    USEMAXDT                              
051206,000742: 13,3351           51545        P00HCHK            DLOAD    ABS                                   
051207,000743: 13,3352           02076                                    DT/2                                  
051208,000744: 13,3353           50025                           DSU      BMN                                   
051209,000745: 13,3354           27411                                    DT/2MIN                               
051210,000746: 13,3355           27157                                    A-PCHK                                
051211,000747: 13,3356           46135                           SLOAD    BHIZ                                  
051212,000748: 13,3357           01012                                    MODREG                                
051213,000749: 13,3360           27363                                    +3                                    
051214,000750: 13,3361           77650                           GOTO                                           
051215,000751: 13,3362           23252                                    TIMESTEP                              
051216,000752: 13,3363           77614                           BON                                            #  WAS THIS CALL VIA CSM(LEM)PREC
051217,000753: 13,3364           01707                                    PRECIFLG                              
051218,000754: 13,3365           23252                                    TIMESTEP                              #  YES
051219,000755: 13,3366           45345                           DLOAD    DSU                                   
051220,000756: 13,3367           02076                                    DT/2                                  
051221,000757: 13,3370           00015                                    12D                                   
051222,000758: 13,3371           43040                           BMN      BOFCLR                                
051223,000759: 13,3372           27157                                    A-PCHK                                
051224,000760: 13,3373           04242                                    NEWIFLG                               
051225,000761: 13,3374           23252                                    TIMESTEP                              
051226,000762: 13,3375           45345                           DLOAD    DSU                                   
051227,000763: 13,3376           01116                                    TDEC                                  
051228,000764: 13,3377           01517                                    TET                                   
051229,000765: 13,3400           77640                           BMN                                            #  NO BACKWARD INTEGRATION
051230,000766: 13,3401           27225                                    INTEXIT                               
051231,000767: 13,3402           40525                           PDDL     SR4                                   
051232,000768: 13,3403           02076                                    DT/2                                  #  IS 4(DT) LS (TDEC - TET)
051233,000769: 13,3404           44322                           SR2R     BDSU                                  #  NO
051234,000770: 13,3405           52040                           BMN      GOTO                                  
051235,000771: 13,3406           27225                                    INTEXIT                               
051236,000772: 13,3407           23252                                    TIMESTEP                              
051237,000773: 13,3410           00000 01400  DT/2MIN            2DEC     3          B-20                       
051238,000774: 
051239,000775: 13,3412           14152 00000  DT/2MAX            2DEC     4000       E2         B-20            
051240,000776: 
051241,000777: 13,3414           77776        INTSTALL           EXIT                                           
051242,000778: 13,3415           30106                           CA       RASFLAG                               
051243,000779: 13,3416           73466                           MASK     INTBITAB                              #  IS THIS STALL AREA FREE
051244,000780: 13,3417           00006                           EXTEND                                         
051245,000781: 13,3420           13460                           BZF      OKTOGRAB                              #  YES

Page 1220

051247,000783: 13,3421           33465                           CAF      WAKESTAL                              
051248,000784: 13,3422           05133                           TC       JOBSLEEP                              
051249,000785: 13,3423           77776        INTWAKE0           EXIT                                           
051250,000786: 13,3424           13445                           TCF      INTWAKE1                              
051251,000787: 
051252,000788: 13,3425           40106        INTWAKE            CS       RASFLAG                               #  IS THIS INTSTALLED ROUTINE TO BE
051253,000789: 13,3426           74745                           MASK     REINTBIT                              #        RESTARTED
051254,000790: 13,3427           10000                           CCS      A                                     
051255,000791: 13,3430           03445                           TC       INTWAKE1                              #  NO
051256,000792: 
051257,000793: 13,3431           50120                           INDEX    FIXLOC                                
051258,000794: 13,3432           30052                           CA       QPRET                                 
051259,000795: 13,3433           55055                           TS       TBASE2                                #  YES, DONT RESTART WITH SOMEONE ELSES Q
051260,000796: 
051261,000797: 13,3434           05353                           TC       PHASCHNG                              
051262,000798: 13,3435           04022                           OCT      04022                                 
051263,000799: 
051264,000800: 13,3436           31055                           CA       TBASE2                                
051265,000801: 13,3437           50120                           INDEX    FIXLOC                                
051266,000802: 13,3440           54052                           TS       QPRET                                 
051267,000803: 
051268,000804: 13,3441           34745                           CAF      REINTBIT                              
051269,000805: 13,3442           70106                           MASK     RASFLAG                               
051270,000806: 13,3443           00006                           EXTEND                                         
051271,000807: 13,3444           13463                           BZF      GOBAC                                 #  DONT INTWAKE IF WE CAME HERE VIA RESTART
051272,000808: 
051273,000809: 13,3445           33465        INTWAKE1           CAF      WAKESTAL                              
051274,000810: 13,3446           00004                           INHINT                                         
051275,000811: 13,3447           05137                           TC       JOBWAKE                               
051276,000812: 13,3450           10064                           CCS      LOCCTR                                
051277,000813: 13,3451           13445                           TCF      INTWAKE1                              
051278,000814: 13,3452           00051        FORTYONE           DEC      41         B-14                       
051279,000815: 13,3453           43466                           CS       INTBITAB                              
051280,000816: 13,3454           70106                           MASK     RASFLAG                               
051281,000817: 13,3455           54106                           TS       RASFLAG                               #  RELEASE STALL AREA
051282,000818: 13,3456           00003                           RELINT                                         
051283,000819: 13,3457           13463                           TCF      GOBAC                                 
051284,000820: 13,3460           34736        OKTOGRAB           CAF      INTFLBIT                              
051285,000821: 13,3461           00004                           INHINT                                         
051286,000822: 13,3462           26106                           ADS      RASFLAG                               
051287,000823: 13,3463           06037        GOBAC              TC       INTPRET                               
051288,000824: 13,3464           77616                           RVQ                                            
051289,000825: 13,3465           27415        WAKESTAL           CADR     INTSTALL   +1                         
051290,000826: 13,3466           20100        INTBITAB           OCT      20100                                 
051291,000827: 

Page 1221

051293,000829:                                                                                                  #  AVETOMID
051294,000830: 
051295,000831:                                                                                                  #  THIS ROUTINE PERFORMS THE TRANSITION FROM A THRUSTING PHASE TO THE COAST
051296,000832:                                                                                                  #  PHASE BY INITIALIZING THIS VEHICLES PERMANENT STATE VECTOR WITH THE
051297,000833:                                                                                                  #  VALUES LEFT BY THE AVERAGEG ROUTINE IN RN,VN,PIPTIME.
051298,000834: 
051299,000835:                                                                                                  #  BEFORE THIS IS DONE THE W-MATRIX, IF ITS VALID (OR WFLAG OR RENDWFLG IS
051300,000836:                                                                                                  #  SET) IS INTEGRATED FORWARD TO PIPTIME WITH THE PRE-THRUST STATE VECTOR.
051301,000837: 
051302,000838:                                                                                                  #  IN ADDITION, THE OTHER VEHICLE IS INTEGRATED (PERMANENT) TO PIPTIME.
051303,000839: 
051304,000840:                                                                                                  #  FINALLY TRKMKCNT IS ZEROED
051305,000841: 
051306,000842: 13,2000                                           SETLOC   INTINIT                               
051307,000843: 13,2000                                           BANK                                           
051308,000844: 
051309,000845: 13,3467                                           COUNT*   $$/INTIN                              
051310,000846: 13,3467           43020        AVETOMID           STQ      BON                                   
051311,000847: 13,3470           02772                                    EGRESS                                
051312,000848: 13,3471           02716                                    RENDWFLG                              
051313,000849: 13,3472           27536                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
051314,000850: 13,3473           77614                           BON                                            
051315,000851: 13,3474           01711                                    ORBWFLAG                              
051316,000852: 13,3475           27536                                    INT/W                                 #  W-MATRIX VALID, GO INTEGRATE IT
051317,000853: 
051318,000854: 13,3476           45145        OTHERS             DLOAD    CALL                                  #  GET SET FOR OTHER VEHICLE INTEGRATION
051319,000855: 13,3477           01235                                    PIPTIME                               #  DESIRED TIME
051320,000856: 13,3500           27414                                    INTSTALL                              
051321,000857: 13,3501           45014                           SET      CALL                                  
051322,000858: 13,3502           01474                                    VINTFLAG                              #  CM
051323,000859: 13,3503           26644                                    SETIFLGS                              #  SETS UP NONE W-MAT. PERMANENT INTEG.
051324,000860: 13,3504           34041                           STCALL   TDEC1                                 
051325,000861: 13,3505           27134                                    INTEGRV                               
051326,000862: 
051327,000863: 13,3506           45174                           AXT,2    CALL                                  #  NOW MOVE PROPERLY SCALE RN,UN AS WELL AS
051328,000864: 13,3507           00002                                    2                                     #  PIPTIME TO INTEGRATION ERASABLES.
051329,000865: 13,3510           27414                                    INTSTALL                              
051330,000866: 13,3511           77014                           BON      AXT,2                                 
051331,000867: 13,3512           04304                                    MOONTHIS                              
051332,000868: 13,3513           27515                                    +2                                    
051333,000869: 13,3514           00000                                    0                                     
051334,000870: 13,3515           53775                           VLOAD    VSR*                                  
051335,000871: 13,3516           01221                                    RN                                    
051336,000872: 13,3517           57176                                    0,2                                   
051337,000873: 13,3520           01503                           STORE    RRECT                                 
051338,000874: 13,3521           15535                           STODL    RCV                                   
051339,000875: 13,3522           01235                                    PIPTIME                               
051340,000876: 13,3523           25517                           STOVL    TET                                   
051341,000877: 13,3524           01227                                    VN                                    

Page 1222

051343,000879: 13,3525           45057                           VSR*     CALL                                  
051344,000880: 13,3526           57176                                    0,2                                   
051345,000881: 13,3527           23455                                    MINIRECT                              #  FINISH SETTING UP STATE VECTOR
051346,000882: 13,3530           66234                           RTB      SSP                                   
051347,000883: 13,3531           26747                                    MOVATHIS                              #  PUT TEMP STATE VECTOR INTO PERMANENT
051348,000884: 13,3532           03463                                    TRKMKCNT                              
051349,000885: 13,3533           00000                                    0                                     
051350,000886: 13,3534           77650                           GOTO                                           
051351,000887: 13,3535           47226                                    FAZAB5                                
051352,000888: 
051353,000889: 13,3536           45145        INT/W              DLOAD    CALL                                  
051354,000890: 13,3537           01235                                    PIPTIME                               #  INTEGRATE W THRU BURN
051355,000891: 13,3540           27414                                    INTSTALL                              
051356,000892: 13,3541           43014                           SET      SET                                   
051357,000893: 13,3542           01476                                    DIM0FLAG                              #  DO W-MATRIX
051358,000894: 13,3543           04476                                    AVEMIDSW                              #  SO WONT CLOBBER RN,VN,PIPTIME
051359,000895: 13,3544           43014                           SET      CLEAR                                 
051360,000896: 13,3545           01475                                    D6OR9FLG                              #  9X9 FOR LM
051361,000897: 13,3546           01674                                    VINTFLAG                              #  LM
051362,000898: 13,3547           34041                           STCALL   TDEC1                                 
051363,000899: 13,3550           27134                                    INTEGRV                               
051364,000900: 13,3551           77650                           GOTO                                           
051365,000901: 13,3552           27476                                    OTHERS                                #  NOW GO DO THE OTHER VEHICLE
051366,000902: 

Page 1223

051368,000904:                                                                                                  #  MIDTOAV1
051369,000905: 
051370,000906:                                                                                                  #  THIS ROUTINE INTEGRATES (PRECISION) TO THE TIME SPECIFIED IN TDEC1.
051371,000907:                                                                                                  #  IF, AT THE END OF AN INTEGRATION TIME STEP, CURRENT TIME PLUS A DELTA
051372,000908:                                                                                                  #  TIME (SEE TIMEDELT.....BASED ON THE COMPUTATUON TIME FOR ONE TIME STEP)
051373,000909:                                                                                                  #  IS GREATER THAN THE DESIRED TIME, ALARM 1703 IS SET AND THE INTEGRATION
051374,000910:                                                                                                  #  IS DONE TO THE CURRENT TIME.
051375,000911:                                                                                                  #  RETURN IS IN BASIC TO THE RETURN ADDRESS PLUS ONE.
051376,000912: 
051377,000913:                                                                                                  #  IF THE INTEGRATION IS FINISHED TO THE DESIRED TIME, RETURN IS IN BASIC
051378,000914:                                                                                                  #  TO THE RETURN ADDRESS
051379,000915: 
051380,000916:                                                                                                  #  IN EITHER CASE, BEFORE RETURNING, THE EXTRAPOLATED STATE VECTOR IS TRAN
051381,000917:                                                                                                  #  FERRED FROM R,VATT TO R,VN1-PIPTIME1 IS SET TO THE FINISHING INTEGRA-
051382,000918:                                                                                                  #  TION TIME AND MPAC IS SET TO THE DELTA TIME ---
051383,000919:                                                                                                  #                        TAT MINUS CURRENT TIME.
051384,000920: 
051385,000921:                                                                                                  #  MIDTOAV2
051386,000922: 
051387,000923:                                                                                                  #  THIS ROUTINE INTEGRATES THIS VEHICLES STATE VECTOR TO THE CURRENT TIME.
051388,000924:                                                                                                  #  NO INPUTS ARE REQUIRED OF THE CALLER.  RETURN IS IN BASIC TO THE RETURN
051389,000925:                                                                                                  #  ADDRESS WITH THE ABOVE TRANSFERS TO R,VN1-PIPTIME1-AND MPAC DONE
051390,000926: 
051391,000927: 13,3553  E7,1744                                  EBANK=   IRETURN1                              
051392,000928: 13,3553           43020        MIDTOAV2           STQ      CLRGO                                 #  INTEGRATE TO PRESENT TIME PLUS TIMEDELT
051393,000929: 13,3554           03744                                    IRETURN1                              
051394,000930: 13,3555           04634                                    MID1FLAG                              
051395,000931: 13,3556           27572                                    ENTMID2                               
051396,000932: 
051397,000933: 13,3557           43020        MIDTOAV1           STQ      SET                                   #  INTEGRATE TO TDEC1
051398,000934: 13,3560           03744                                    IRETURN1                              
051399,000935: 13,3561           04474                                    MID1FLAG                              
051400,000936: 13,3562           43234                           RTB      DAD                                   #  INITIAL CHECK, IS TDEC1 IN THE FUTURE
051401,000937: 13,3563           21573                                    LOADTIME                              
051402,000938: 13,3564           27674                                    TIMEDELT                              
051403,000939: 13,3565           51021                           BDSU     BPL                                   
051404,000940: 13,3566           00041                                    TDEC1                                 
051405,000941: 13,3567           27576                                    ENTMID1                               #  Y5S
051406,000942: 13,3570           77624                           CALL                                           
051407,000943: 13,3571           27662                                    NOTIME                                #  NO, SET ALARM, SWITCH TO MIDTOAV2
051408,000944: 
051409,000945: 13,3572           43234        ENTMID2            RTB      DAD                                   
051410,000946: 13,3573           21573                                    LOADTIME                              
051411,000947: 13,3574           27674                                    TIMEDELT                              
051412,000948: 13,3575           00041                           STORE    TDEC1                                 
051413,000949: 
051414,000950: 13,3576           77624        ENTMID1            CALL                                           
051415,000951: 13,3577           27414                                    INTSTALL                              
051416,000952: 13,3600           45014                           CLEAR    CALL                                  

Page 1224

051418,000954: 13,3601           01676                                    DIM0FLAG                              #  NO W-MATRIX
051419,000955: 13,3602           26066                                    THISVINT                              
051420,000956: 13,3603           43014                           CLEAR    SET                                   
051421,000957: 13,3604           01673                                    INTYPFLG                              
051422,000958: 13,3605           04475                                    MIDAVFLG                              #  LET INTEG. KNOW THE CALL IS FOR MIDTOAV.
051423,000959: 13,3606           77624                           CALL                                           
051424,000960: 13,3607           27134                                    INTEGRV                               #  GO INTEGRATE
051425,000961: 13,3610           77214                           CLEAR    VLOAD                                 
051426,000962: 13,3611           04675                                    MIDAVFLG                              
051427,000963: 13,3612           00001                                    RATT                                  
051428,000964: 13,3613           27545                           STOVL    RN1                                   
051429,000965: 13,3614           00007                                    VATT                                  
051430,000966: 13,3615           17553                           STODL    VN1                                   
051431,000967: 13,3616           00015                                    TAT                                   
051432,000968: 13,3617           03561                           STORE    PIPTIME1                              
051433,000969: 13,3620           66134                           SXA,2    SXA,1                                 
051434,000970: 13,3621           02777                                    RTX2                                  
051435,000971: 13,3622           02776                                    RTX1                                  
051436,000972: 13,3623           77776                           EXIT                                           
051437,000973: 
051438,000974: 13,3624           00004                           INHINT                                         
051439,000975: 13,3625           00006                           EXTEND                                         
051440,000976: 13,3626           40025                           DCS      TIME2                                 
051441,000977: 13,3627           20155                           DAS      MPAC                                  
051442,000978: 13,3630           07257                           TC       TPAGREE                               
051443,000979: 
051444,000980: 13,3631           31744                           CA       IRETURN1                              
051445,000981: 13,3632           04640                           TC       BANKJUMP                              
051446,000982: 13,3633           47014        CKMID2             BOF      RTB                                   
051447,000983: 13,3634           04754                                    MID1FLAG                              
051448,000984: 13,3635           27652                                    MID2                                  
051449,000985: 13,3636           21573                                    LOADTIME                              
051450,000986: 13,3637           44215                           DAD      BDSU                                  
051451,000987: 13,3640           27674                                    TIMEDELT                              
051452,000988: 13,3641           01116                                    TDEC                                  
051453,000989: 13,3642           45044                           BPL      CALL                                  
051454,000990: 13,3643           27257                                    TESTLOOP                              #  YES
051455,000991: 13,3644           27662                                    NOTIME                                
051456,000992: 
051457,000993: 13,3645           43234        TIMEINC            RTB      DAD                                   
051458,000994: 13,3646           21573                                    LOADTIME                              
051459,000995: 13,3647           27674                                    TIMEDELT                              
051460,000996: 13,3650           35116                           STCALL   TDEC                                  
051461,000997: 13,3651           27257                                    TESTLOOP                              
051462,000998: 
051463,000999: 13,3652           45345        MID2               DLOAD    DSU                                   
051464,001000: 13,3653           01116                                    TDEC                                  
051465,001001: 13,3654           01517                                    TET                                   
051466,001002: 13,3655           45246                           ABS      DSU                                   
051467,001003: 13,3656           27672                                    3CSECS                                
051468,001004: 

Page 1225

051470,001006: 13,3657           52040                           BMN      GOTO                                  
051471,001007: 13,3660           27157                                    A-PCHK                                
051472,001008: 13,3661           27645                                    TIMEINC                               
051473,001009: 
051474,001010: 13,3662           77414        NOTIME             CLEAR    EXIT                                  #  TOO LATE
051475,001011: 13,3663           04674                                    MID1FLAG                              
051476,001012: 13,3664           25744                           INCR     IRETURN1                              #  SET ERROR EXIT (CALLOC +2)
051477,001013: 13,3665           05567                           TC       ALARM                                 #  INSUFFICIENT TIME FOR INTEGRATION --
051478,001014: 13,3666           01703                           OCT      1703                                  #        TIG WILL BE SLIPPED...
051479,001015: 13,3667           06037                           TC       INTPRET                               
051480,001016: 13,3670           77616                           RVQ                                            
051481,001017: 
051482,001018: 13,3671           00000 00003  3CSECS             2DEC     3          B-28                       
051483,001019: 
051484,001020: 13,3673           00000 03720  TIMEDELT           2DEC     2000       B-28                       
051485,001021: 
051486,001022: 27,3360                                           BANK     27                                    
051487,001023: 04,2000                                           SETLOC   UPDATE2                               
051488,001024: 04,2000                                           BANK                                           
051489,001025: 04,3165     1167                                  EBANK=   INTWAKUQ                              
051490,001026: 
051491,001027: 04,3165                                           COUNT*   $$/INTIN                              
051492,001028: 
051493,001029: 04,3165     1167               INTWAKUQ           =        INTWAK1Q                              #  TEMPORARY UNTIL NAME OF INTWAK1Q IS CHNG
051494,001030: 
051495,001031: 04,3165           00003        INTWAKEU           RELINT                                         
051496,001032: 04,3166           00006                           EXTEND                                         
051497,001033: 04,3167           23167                           QXCH     INTWAKUQ                              #  SAVE Q FOR RETURN
051498,001034: 
051499,001035: 04,3170           06037                           TC       INTPRET                               
051500,001036: 
051501,001037: 04,3171           53135                           SLOAD    BZE                                   #  IS THIS A CSM/LEM STATE VECTOR UPDATE
051502,001038: 04,3172           01502                                    UPSVFLAG                              #  REQUEST.  IF NOT GO TO INTWAKUP.
051503,001039: 04,3173           11232                                    INTWAKUP                              
051504,001040: 
051505,001041: 04,3174           77775                           VLOAD                                          #  MOVE RRECT(6) AND VRECT(6) INTO
051506,001042: 04,3175           01503                                    RRECT                                 #        RCV(6) AND VCV(6) RESPECTIVELY.
051507,001043: 04,3176           25535                           STOVL    RCV                                   
051508,001044: 04,3177           01511                                    VRECT                                 #  NOW GO TO 'RECTIFY +13D' TO
051509,001045: 04,3200           77624                           CALL                                           #  STORE VRECT INTO VCV AND ZERO OUT
051510,001046: 04,3201           23456                                    RECTIFY    +13D                       #  TDELTAV(6),TNUV(6),TC(2) AND XKEP(2)
051511,001047: 04,3202           51535                           SLOAD    ABS                                   #  COMPARE ABSOLUTE VALUE OF 'UPSVFLAG'
051512,001048: 04,3203           01502                                    UPSVFLAG                              #  TO 'UPDATE MOON STATE VECTOR CODE'
051513,001049: 04,3204           53025                           DSU      BZE                                   #  TO DETERMINE WHETHER THE STATE VECTOR TO
051514,001050: 04,3205           11243                                    UPMNSVCD                              #  BE UPDATED IS IN THE EARTH OR LUNAR
051515,001051: 04,3206           11213                                    INTWAKEM                              #  SPHERE OF INFLUENCE.........
051516,001052: 04,3207           43174                           AXT,2    CLRGO                                 #  EARTH SPHERE OF INFLUENCE.
051517,001053: 04,3210           00000                           DEC      0          B-14                       
051518,001054: 04,3211           00223                                    MOONFLAG                              

Page 1226

051520,001056: 04,3212           11216                                    INTWAKEC                              
051521,001057: 04,3213           43174        INTWAKEM           AXT,2    SET                                   #  LUNAR SPHERE OF INFLUENCE.
051522,001058: 04,3214           00002                           DEC      2          B-14                       
051523,001059: 04,3215           00063                                    MOONFLAG                              
051524,001060: 04,3216           50135        INTWAKEC           SLOAD    BMN                                   #  COMMON CODING AFTER X2 INITIALIZED AND
051525,001061:                                                                                                  #  MOONFLAG SET (OR CLEARED).
051526,001062: 04,3217           01502                                    UPSVFLAG                              #  IS THIS A REQUEST FOR A LEM OR CSM
051527,001063: 04,3220           11226                                    INTWAKLM                              #        STATE VECTOR UPDATE......
051528,001064: 04,3221           77624                           CALL                                           #  UPDATE CSM STATE VECTOR
051529,001065: 04,3222           26661                                    ATOPCSM                               
051530,001066: 
051531,001067: 04,3223           52014                           CLEAR    GOTO                                  
051532,001068: 04,3224           01671                                    ORBWFLAG                              
051533,001069: 04,3225           11230                                    INTWAKEX                              
051534,001070: 
051535,001071: 04,3226           77624        INTWAKLM           CALL                                           #  UPDATE LM STATE VECTOR
051536,001072: 04,3227           26734                                    ATOPLEM                               
051537,001073: 
051538,001074: 04,3230           77614        INTWAKEX           CLEAR                                          
051539,001075: 04,3231           02676                                    RENDWFLG                              
051540,001076: 
051541,001077: 04,3232           45131        INTWAKUP           SSP      CALL                                  #  REMOVE :UPDATE STATE VECTOR INDICATOR:
051542,001078: 04,3233           01502                                    UPSVFLAG                              
051543,001079: 04,3234           00000                                    0                                     
051544,001080: 04,3235           27423                                    INTWAKE0                              #  RELEASE :GRAB: OF ORBIT INTEG
051545,001081: 04,3236           77776                           EXIT                                           
051546,001082: 
051547,001083: 04,3237           05353                           TC       PHASCHNG                              
051548,001084: 04,3240           04026                           OCT      04026                                 
051549,001085: 04,3241           01167                           TC       INTWAKUQ                              
051550,001086: 
051551,001087: 04,3242           00002        UPMNSVCD           OCT      2                                     
051552,001088: 04,3243           00000                           OCT      0                                     
051553,001089: 
051554,001090: 04,3244           77420        GRP2PC             STQ      EXIT                                  
051555,001091: 04,3245           02711                                    GRP2SVQ                               
051556,001092: 04,3246           05353                           TC       PHASCHNG                              
051557,001093: 04,3247           04022                           OCT      04022                                 
051558,001094: 04,3250           06037                           TC       INTPRET                               
051559,001095: 04,3251           77650                           GOTO                                           
051560,001096: 04,3252           02711                                    GRP2SVQ                               
051561,001097: 

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