Source Code

These source-code files are part of a reconstructed copy of Comanche 51, the initial release (though not the final mission release) of the Apollo 11 Command Module (CM) Apollo Guidance Computer (AGC) software. The flown, final release was Comanche 55. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 51, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 55, whose original source code is available. Comanche 55 source code was then modified by undoing changes known to have been made between revisions 51 and 55. The most-significant steps involved reverting changes related to the R-2 lunar potential model, the details of which were known from the previous, separate, independent reconstruction of the Apollo 10 Lunar Module software Luminary 69/2. The now-reconstructed Comanche 51 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code match those on the Comanche 55 or Luminary 69 printouts, although the source code would likely have different page numbers in a contemporary Comanche 51 listing.

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 55. Here's a guide to some of the Apollo documentation relevant to those annotations:
Among documentation not actually referenced in the annotations, there is a short writeup about the reconstruction process in our software repository that may be helpful in understanding it from a different perspective. There's also a handy table that lists what the number of memory-words should be for each routine in Comanche 51, which could make a nice double-check; however, we've not performed that double-check ourselves.

Comments expected to have been present in the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC Project's GitHub repository.

035735,000002:                                                                                                  ## Copyright:   Public domain.
035736,000003:                                                                                                  ## Filename:    SERVICER207.agc
035737,000004:                                                                                                  ## Purpose:     A section of Comanche revision 051.
035738,000005:                                                                                                  ##              It is part of the reconstructed source code for the
035739,000006:                                                                                                  ##              original release of the flight software for the Command
035740,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 11.
035741,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
035742,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
035743,000010:                                                                                                  ##              exactly match those specified for Comanche 51 in NASA drawing
035744,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
035745,000012:                                                                                                  ##              reconstruction is correct.
035746,000013:                                                                                                  ## Reference:   pp. 819-836
035747,000014:                                                                                                  ## Assembler:   yaYUL
035748,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
035749,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
035750,000017:                                                                                                  ## Mod history: 2019-07-30 MAS  Created from Comanche 55.
035751,000018: 

Page 819

035753,000020:                                                                                                  #  PROGRAM NAME -        PREREAD, READACCS, SERVICER, AVERAGE G.
035754,000021:                                                                                                  #  MOD NO. 00 BY M. HAMILTON     DEC. 12, 1966
035755,000022: 
035756,000023:                                                                                                  #  FUNCTIONAL DESCRIPTION
035757,000024: 
035758,000025:                                                                                                  #  THE ROUTINES DESCRIBED BELOW ARE USED TO CALCULATE VALUES OF RN, VN, AND GDT/2 DURING ACCELERATED FLIGHT.
035759,000026:                                                                                                  #  THE SEVERAL ROUTINES COMPRISE A PACKAGE AND ARE NOT MEANT TO BE USED AS SEPARATE SUBROUTINES.
035760,000027: 
035761,000028:                                                                                                  #  GENERAL REFERENCES TO  SERVICER  OR  AVERAGE G  ARE UNDERSTOOD TO REFER TO THE ENTIRE SET OF ROUTINES INCLUDING
035762,000029:                                                                                                  #  READACCS, SERVICER, AVERAGE G, INTEREAD, SMOOTHER, AND ANY ADDITIONAL ROUTINES ATTACHED AT AVGEXIT (SEE BELOW).
035763,000030: 
035764,000031:                                                                                                  #  PROGRAMS INITIATING SERVICER ARE REQUIRED TO MAKE A WAITLIST CALL FOR PREREAD (OR, IF LIFTOFF, FOR BIBIBIAS)
035765,000032:                                                                                                  #  AT 2 SECONDS BEFORE THE FIRST AVERAGE G UPDATE IN ORDER TO INITIALIZE THE SEQUENCE, WHICH WILL RECUR EVERY
035766,000033:                                                                                                  #  2 SECONDS FROM THAT TIME ON AS LONG AS AVEGFLAG REMAINS SET.
035767,000034: 
035768,000035:                                                                                                  #  THE USE OF ERASABLE AVGEXIT ALLOWS VARIOUS ROUTINES TO BE PERFORMED AS PART OF THE NORMAL CYCLE (SEE
035769,000036:                                                                                                  #  EXPLANATION OF AVGEXIT BELOW).
035770,000037: 
035771,000038:                                                                                                  #  DESCRIPTIONS OF INDIVIDUAL ROUTINES FOLLOW.
035772,000039: 
035773,000040:                                                                                                  #        PREREAD
035774,000041: 
035775,000042:                                                                                                  #                PREVIOUSLY EXTRAPOLATED VALUES COPIED FROM RN1, VN1, AND PIPTIME1 INTO RN, VN, AND PIPTIME.
035776,000043:                                                                                                  #                LASTBIAS JOB SCHEDULED.
035777,000044:                                                                                                  #                PIPS READ AND CLEARED VIA PIPASR SUBROUTINE.
035778,000045:                                                                                                  #                AVERAGE G FLAG SET ON.
035779,000046:                                                                                                  #                DRIFT FLAG SET OFF.
035780,000047:                                                                                                  #                V37 FLAG SET ON.
035781,000048:                                                                                                  #                INITIALIZATION OF       1) THRUST MONITOR (DVMON) - DVCNTR SET TO ONE.
035782,000049:                                                                                                  #                                        2) TOTAL ACCUMULATED DELV VALUE (DVTOTAL) - SET TO ZERO.
035783,000050:                                                                                                  #                                        3) AXIS VECTOR (AXIS) - SET TO (.5,0,0).
035784,000051:                                                                                                  #                NORMLIZE JOB SCHEDULED.
035785,000052:                                                                                                  #                READACCS TASK CALLED IN 2 SECONDS.
035786,000053: 
035787,000054:                                                                                                  #        NORMLIZE
035788,000055: 
035789,000056:                                                                                                  #                GDT/2 INITIALIZED VIA CALCGRAV SUBROUTINE.
035790,000057: 
035791,000058:                                                                                                  #        READACCS
035792,000059: 
035793,000060:                                                                                                  #                IF ONMON FLAG SET QUIKREAD ROUTINE IS PERFORMED BEFORE PIPASR ZEROS THE PIPA REGISTERS, AND THE 1/2 SEC
035794,000061:                                                                                                  #                ONMONITOR LOOP IS INITIATED TO PROVIDE DOWNLINK INFORMATION DURING ENTRY.
035795,000062:                                                                                                  #                PIPS READ AND CLEARED BY PIPASR SUBROUTINE.
035796,000063:                                                                                                  #                IF CM/DSTBY IS ON, ENTRY VARIABLES INITIALIZED AND SETJTAG TASK CALLED.

Page 820

035798,000065: 
035799,000066:                                                                                                  #                IF AVERAGEG FLAG ON     READACCS CALLED TO RECYCLE IN 2 SECONDS.
035800,000067:                                                                                                  #                IF AVERAGEG FLAG OFF    AVERAGE G EXIT (AVGEXIT) SET TO 2CADR AVGEND FOR FINAL PASS.
035801,000068:                                                                                                  #                SERVICER JOB SCHEDULED.
035802,000069:                                                                                                  #                TEST CONNECTOR OUTBIT TURNED ON.
035803,000070: 
035804,000071:                                                                                                  #        ONMNITOR
035805,000072: 
035806,000073:                                                                                                  #                A SEQUENCE OF THREE PASSES THROUGH QUICKREAD FOLLOWING A CALL TO READACCS WITH ONMONFLG SET AT 1/2 
035807,000074:                                                                                                  #                SEC INTERVALS.  INTERVALS ARE COUNTED OUT BY PIPCTR, INITIALISED AT 3 BY READACCS
035808,000075: 
035809,000076:                                                                                                  #        QUIKREAD
035810,000077: 
035811,000078:                                                                                                  #                READS CURRENT PIPS INTO X,Y,ZPIPBUF.  READS OLD X,Y,ZPIPBUF INTO X,Y,ZOLDBUF.  VALUES ARE SENT TO
035812,000079:                                                                                                  #                DOWNLIST DURING ENTRY.
035813,000080: 
035814,000081:                                                                                                  #        SERVICER
035815,000082: 
035816,000083:                                                                                                  #                DELV VALUES CHECKED TO DETECT RUNAWAY PIP -
035817,000084:                                                                                                  #                        IF BAD PIP      1) ALARM SENT.
035818,000085:                                                                                                  #                                        2) COMPENSATION, DVTOTAL ACCUMULATION, AND DVMON BYPASSED.  CONTROL
035819,000086:                                                                                                  #                                           TRANSFERRED TO AVERAGE G.
035820,000087:                                                                                                  #                PIPS COMPENSATED VIA 1/PIPA SUBROUTINE.
035821,000088:                                                                                                  #                DVTOTAL INCREMENTED BY ABSOLUTE VALUE OF DELV.
035822,000089:                                                                                                  #                THRUST MONITOR (DVMON) PERFORMED UNLESS IDLE FLAG IS ON.
035823,000090:                                                                                                  #                CONTROL TRANSFERRED TO AVERAGE G.
035824,000091: 
035825,000092:                                                                                                  #        DVMON
035826,000093: 
035827,000094:                                                                                                  #                THRESHOLD VALUE (PLACED IN DVTHRUSH BY USER) CHECKED AGAINST ABSOLUTE VALUE OF DELV TO CHECK
035828,000095:                                                                                                  #                THRUST LEVEL.
035829,000096: 
035830,000097:                                                                                                  #                        IF THRUST       1) ULLAGE OFF ROUTINE PERFORMED.
035831,000098:                                                                                                  #                                        2) STEERING FLAG TURNED ON AT FIRST DETECTION OF THRUST.
035832,000099:                                                                                                  #                                        3) CONTROL TRANSFERRED TO AVERAGE G.
035833,000100:                                                                                                  #                        IF NO THRUST    1) ON FIRST PASS THROUGH MONITOR, CONTROL TRANSFERRED TO AVERAGE G.
035834,000101:                                                                                                  #                                        2) ON SUBSEQUENT PASSES, CONTROL TRANSFERRED TO ENGINE FAIL ROUTINE IF THRUST
035835,000102:                                                                                                  #                                           HAS FAILED FOR 3 CONSECUTIVE PASSES.
035836,000103: 
035837,000104:                                                                                                  #        ENGINE FAIL
035838,000105: 
035839,000106:                                                                                                  #                ENGFAIL1 TASK CALLED IN 2.5 SECONDS.  THIS WILL RETURN CONTROL TO TIG-5 SO THAT THE IGNITION
035840,000107:                                                                                                  #                        SEQUENCE MAY BE REPEATED.
035841,000108:                                                                                                  #                ENGINOF3 PERFORMED.
035842,000109:                                                                                                  #                DAP SET UP FOR RCS.
035843,000110:                                                                                                  #        
035844,000111:                                                                                                  #        AVERAGE G

Page 821

035846,000113:                                                                                                  #                RN1, VN1, GDT1/2 CALCULATED VIA CALCRVG ROUTINE BY UPDATING RN, VN WITH DELV AND AN AVERAGED VALUE
035847,000114:                                                                                                  #                        OF GDT/2.
035848,000115:                                                                                                  #                RN1, VN1, GDT1/2, PIPTIME1 COPIED INTO RN, VN, GDT/2, PIPTIME FOR RESTART PROTECTION.
035849,000116:                                                                                                  #                CONTROL TRANSFERRED TO ADDRESS SPECIFIED BY USER (OR BY READACCS FOR LAST PASS) IN AVGEXIT.
035850,000117:                                                                                                  #                LAST PASS (AVGEND)      1) FREE FALL GYRO COMPENSATION SET UP.
035851,000118:                                                                                                  #                                        2) DRIFT FLAG TURNED ON.
035852,000119:                                                                                                  #                                        3) STATE VECTOR TRANSFERRED VIA AVETOMID ROUTINE.
035853,000120:                                                                                                  #                                        4) ONMONITOR FLAG RESET.
035854,000121:                                                                                                  #                                        5) V37 FLAG RESET.
035855,000122:                                                                                                  #                                        6) TEST CONNECTOR OUTBIT RESET.
035856,000123:                                                                                                  #                                        7) CONTROL TRANSFERRED TO CANV37 TO CONTINUE MM CHANGE ROUTINE (R00).
035857,000124: 
035858,000125:                                                                                                  #  CALLING SEQUENCE
035859,000126: 
035860,000127:                                                                                                  #        PREREAD ENTERED DIRECTLY FROM TIG-30 VIA POSTJUMP.
035861,000128:                                                                                                  #        READACCS CALLED AS WAITLIST TASK.                                          .
035862,000129: 
035863,000130:                                                                                                  #  SUBROUTINES CALLED
035864,000131: 
035865,000132:                                                                                                  #        UTILITY ROUTINES - PHASCHNG FLAGUP FLAGDOWN NOVAC FINDVAC WAITLIST ALARM NEWPHASE 2PHSCHNG
035866,000133: 
035867,000134:                                                                                                  #        OTHER - PIPASR 1/PIPA CALCGRAV CALCRVG AVETOMID
035868,000135: 
035869,000136:                                                                                                  #  NORMAL EXIT MODES
035870,000137: 
035871,000138:                                                                                                  #        ENDOFJOB        TASKOVER        CANV37
035872,000139: 
035873,000140:                                                                                                  #        AVGEXIT -       THIS IS A DOUBLE PRECISION ERASABLE LOCATION BY WHICH CONTROL IS TRANSFERRED AT THE END
035874,000141:                                                                                                  #                                OF EACH CYCLE OF AVERAGE G.
035875,000142:                                                                                                  #                        THE 2CADR OF A ROUTINE TO BE PERFORMED AT THAT TIME (E.G., STEERING EQUATIONS TO BE PERFORMED
035876,000143:                                                                                                  #                                AT 2 SECOND INTERVALS) MAY BE SET BY THE USER INTO AVGEXIT.
035877,000144:                                                                                                  #                        ALL SUCH ROUTINES SHOULD RETURN TO SERVEXIT, WHICH IS THE NORMAL EXIT FROM AVERAGE G.
035878,000145: 
035879,000146:                                                                                                  #        SERVEXIT -      DOES A PHASE CHANGE FOR RESTART PROTECTION AND GOES TO ENDOFJOB.
035880,000147:                                                                                                  #                        THE 2CADR OF SERVEXIT IS SET INTO AVGEXIT BY THE USER IF NO OTHER ROUTINE (SEE ABOVE).
035881,000148: 
035882,000149:                                                                                                  #        AVGEND -        LAST PASS OF AVERAGE G EXITS HERE, BYPASSING SPECIAL ROUTINE (SEE ABOVE UNDER READACCS).
035883,000150:                                                                                                  #                        FINAL EXIT IS TO CANV37.                                F AVERAGE G).
035884,000151: 
035885,000152:                                                                                                  #  OUTPUT
035886,000153: 
035887,000154:                                                                                                  #        DVTOTAL(2)  PIPTIME(2)  XPIPBUF(2)  YPIPBUF(2)  ZPIPBUF(2)
035888,000155:                                                                                                  #        RN(6)           REFERENCE COORD.        SCALED AT 2(+29) M/CS
035889,000156:                                                                                                  #        VN(6)           REFERENCE COORD.        SCALED AT 2(+7) M/CS
035890,000157:                                                                                                  #        GDT/2(6)        REFERENCE COORD.        SCALED AT 2(+7) M/CS
035891,000158:                                                                                                  #        DELV(6)         STABLE MEMB. COORD.     SCALED AT 2(+14)*5.85*10(-4) M/CS (KPIP1 USED TO GET DV/2 AT 2(+7))

Page 822

035893,000160:                                                                                                  #        DELVREF(6)      REFERENCE COORD.        SCALED AT 2(+7) M/CS
035894,000161: 
035895,000162:                                                                                                  #  INITIALIZATION
035896,000163: 
035897,000164:                                                                                                  #        ONMONITOR FLAG SET BY ENTRY TO SHOW PIPBUF VALUES REQUIRED.
035898,000165:                                                                                                  #        IDLE FLAG ON IF DVMON TO BE BYPASSED.
035899,000166:                                                                                                  #        DVTHRUSH SET TO APPROPRIATE VALUE FOR DVMON.
035900,000167:                                                                                                  #        AVGEXIT SET TO 2CADR OF ROUTINE, IF ANY, TO BE PERFORMED AFTER EACH CYCLE OF AVERAGE G.  IF NO ROUTINE
035901,000168:                                                                                                  #                TO BE DONE, AVGEXIT SET TO SERVEXIT.
035902,000169:                                                                                                  #        VALUES NEEDED
035903,000170:                                                                                                  #                REFSMMAT
035904,000171:                                                                                                  #                UNITW -  FULL UNIT VECTOR, IN REFERENCE COORD., OF EARTH S ROTATIONAL VECTOR
035905,000172:                                                                                                  #                RN1, VN1, PIPTIME1 -  IN REFERENCE COORD., CONSISTENT WITH TIME OF EXECUTION OF PREREAD
035906,000173: 
035907,000174:                                                                                                  #  DEBRIS
035908,000175: 
035909,000176:                                                                                                  #        CENTRALS        A, L, Q
035910,000177:                                                                                                  #        OTHER           INTERNAL - DVCNTR(1)  PIPAGE(1)  PIPCTR(1)  AVGEXIT(2)
035911,000178:                                                                                                  #                        EXTERNAL - ITEMP1(1)  ITEMP2(1)  RUPTREG1(1)  TEMX(1)  TEMY(1)  TEMZ(1)
035912,000179:                                                                                                  #                        USEFUL DEBRIS
035913,000180:                                                                                                  #                                RN1(6)  VN1(6)  GDT1/2  PIPTIME1(2)
035914,000181:                                                                                                  #                                        THESE LOCATIONS USED AS BUFFER STORAGE FOR NEWLY CALCULATED VALUES OF RN, VN, GDT/2,
035915,000182:                                                                                                  #                                        AND PIPTIME DURING PERFORMANCE OF SERVICER ROUTINES.
035916,000183:                                                                                                  #                                UNITR - HALF UNIT VECTOR OF RN, REFERENCE COORD.
035917,000184:                                                                                                  #                                RMAG SCALED AT 2(+58) IN 36D.
035918,000185:                                                                                                  #                                RMAGSQ SCALED AT 2(+58) IN 34D.
035919,000186:                                                                                                  #                                (RE/RMAG)SQ IN 32D.
035920,000187: 
035921,000188: 27,2671                                           BANK     27                                    
035922,000189: 37,2000                                           SETLOC   SERVICES                              
035923,000190: 37,2000                                           BANK                                           
035924,000191: 
035925,000192: 37,2701  E7,1431                                  EBANK=   DVCNTR                                
035926,000193:                                                                                                  #  *************************************   PREREAD   **************************************************************
035927,000194: 
035928,000195: 37,2701                                           COUNT    37/SERV                               
035929,000196: 
035930,000197: 37,2701           35073        PREREAD            CAF      PRIO21                                #  CALLER MUST PROTECT PREREAD
035931,000198: 37,2702           05134                           TC       NOVAC                                 
035932,000199: 37,2703  E3,1460                                  EBANK=   NBDX                                  
035933,000200: 37,2703           03636 14063                     2CADR    LASTBIAS                              #  DO LAST GYRO COMPENSATION IN FREE FALL
035934,000201: 
035935,000202:                                                                                                  #  CALL-TO AND LASTBIAS ITSELF ARE NOT
035936,000203:                                                                                                  #        PROTECTED. REREADAC SETS 1/PIPADT
035937,000204:                                                                                                  #        TO 2.0 SECS IN CASE LASTBIAS LOST.
035938,000205:                                                                                                  #        (REDUNDANT IF LASTBIAS IS AOK)

Page 823

035940,000207: 37,2705           02722        REDO5.31           TC       PREREAD1                              
035941,000208: 
035942,000209: 37,2706           37667                           CAF      PRIO32                                
035943,000210: 37,2707           05147                           TC       FINDVAC                               #  SET UP NORMLIZE JOB REQUIRED PRIOR TO
035944,000211: 37,2710  E7,1431                                  EBANK=   DVCNTR                                #  FIRST AVERAGE G PASS
035945,000212: 37,2710           03236 76067                     2CADR    NORMLIZE                              
035946,000213: 
035947,000214: 37,2712           35042                           CAF      2SECS                                 
035948,000215: 37,2713           05245                           TC       WAITLIST                              
035949,000216: 37,2714  E6,1661                                  EBANK=   AOG                                   
035950,000217: 37,2714           02744 76066                     2CADR    READACCS                              
035951,000218: 
035952,000219: 37,2716           45016                           CS       TWO                                   
035953,000220: 37,2717           04114                           TC       NEWPHASE                              
035954,000221: 37,2720           00005                           OCT      5                                     
035955,000222: 
035956,000223: 37,2721           15324                           TCF      TASKOVER                              
035957,000224: 
035958,000225: 37,2722           00006        PREREAD1           EXTEND                                         
035959,000226: 37,2723           22070                           QXCH     RUPTREG1                              
035960,000227: 
035961,000228: 37,2724           03254                           TC       PIPASR                                #  CLEAR + READ PIPS LAST TIME IN FREE FALL
035962,000229: 
035963,000230: 37,2725           35017                           CAF      ONE                                   #  SET UP PIPAGE FOR REREADAC IN CASE A
035964,000231: 37,2726           55230                           TS       PIPAGE                                #        RESTART OCCURS BEFORE READACCS
035965,000232: 
035966,000233: 37,2727           40075                           CS       FLAGWRD1                              #  SET AVEG FLAG
035967,000234: 37,2730           75017                           MASK     BIT1                                  
035968,000235: 37,2731           26075                           ADS      FLAGWRD1                              
035969,000236: 
035970,000237: 37,2732           34777                           CA       POSMAX                                
035971,000238: 37,2733           70076                           MASK     FLAGWRD2                              
035972,000239: 37,2734           54076                           TS       FLAGWRD2                              #  KNOCK DOWN DRIFT FLAG
035973,000240: 
035974,000241: 37,2735           40103                           CS       FLAGWRD7                              #  SET V37 FLAG
035975,000242: 37,2736           75012                           MASK     BIT6                                  
035976,000243: 37,2737           26103                           ADS      FLAGWRD7                              
035977,000244: 
035978,000245: 37,2740           35021                           CAF      ZERO                                  
035979,000246: 37,2741           55425                           TS       DVTOTAL                               #  CLEAR DVTOTAL
035980,000247: 37,2742           55426                           TS       DVTOTAL    +1                         
035981,000248: 
035982,000249: 37,2743           00070                           TC       RUPTREG1                              
035983,000250: 

Page 824

035985,000252:                                                                                                  #  *************************************   READACCS   *************************************************************
035986,000253: 37,2744  E6,1661                                  EBANK=   AOG                                   
035987,000254: 37,2744           03254        READACCS           TC       PIPASR                                
035988,000255: 
035989,000256: 37,2745           35022        PIPSDONE           CAF      FIVE                                  
035990,000257: 37,2746           54001                           TS       L                                     
035991,000258: 37,2747           40000                           COM                                            
035992,000259: 37,2750           52763                           DXCH     -PHASE5                               
035993,000260: 
035994,000261: 37,2751           35017        REDO5.5            CAF      ONE                                   #  SHOW PIPS HAVE BEEN READ
035995,000262: 37,2752           55230                           TS       PIPAGE                                
035996,000263: 
035997,000264: 37,2753           35016                           CA       TWO                                   #  SET PIPCTR FOR ONMINTOR
035998,000265: 37,2754           55227                           TS       PIPCTR                                #  AFTER ABOVE PHASCHNG
035999,000266: 
036000,000267: 37,2755           40102                           CS       CM/FLAGS                              
036001,000268: 37,2756           75016                           MASK     BIT2                                  #  CM/DSTBY
036002,000269: 37,2757           10000                           CCS      A                                     
036003,000270: 37,2760           03033                           TC       CHEKAVEG                              
036004,000271: 
036005,000272: 37,2761           41246                           CS       PIPTIME1   +1                         
036006,000273: 37,2762           55065                           TS       TBASE6                                #  FOR RESTARTS
036007,000274: 37,2763           00006                           EXTEND                                         #  CONTINUE FOR ENTRY DAP
036008,000275: 37,2764           31662                           DCA      AOG                                   
036009,000276: 37,2765           53670                           DXCH     AOG/PIP                               
036010,000277: 37,2766           31663                           CA       AMG                                   
036011,000278: 37,2767           57671                           XCH      AMG/PIP                               
036012,000279: 37,2770           00006                           EXTEND                                         
036013,000280: 37,2771           31665                           DCA      ROLL/180                              
036014,000281: 37,2772           53673                           DXCH     ROLL/PIP                              
036015,000282: 37,2773           31666                           CA       BETA/180                              
036016,000283: 37,2774           57674                           XCH      BETA/PIP                              
036017,000284: 37,2775           30102                           CA       CM/FLAGS                              
036018,000285: 37,2776           75004                           MASK     BIT12                                 #  CM/DAPARM 93D BIT12
036019,000286: 37,2777           00006                           EXTEND                                         #  DURING ENTRY, WHEN RCS DAP IS INACTIVE,
036020,000287: 37,3000           13016                           BZF      NOSAVPIP                              #  SAVE PIPAS EACH 0.5 SEC FOR TM.
036021,000288: 
036022,000289: 37,3001           33066                           CA       0.5SEC                                
036023,000290: 37,3002           05245                           TC       WAITLIST                              
036024,000291: 37,3003  E6,1533                                  EBANK=   XPIPBUF                               
036025,000292: 37,3003           03067 76066                     2CADR    QUIKREAD                              
036026,000293: 
036027,000294:                                                                                                  #  NO NEED TO RESTART PROTECT THIS.
036028,000295: 37,3005           31162                           CA       DELVX                                 #  SAVE PIPAS AS READ (BUT NOT COMPENSATED)
036029,000296: 37,3006           57533                           XCH      XPIPBUF                               
036030,000297: 37,3007           55536                           TS       XOLDBUF                               
036031,000298: 
036032,000299: 37,3010           31164                           CA       DELVY                                 
036033,000300: 37,3011           57534                           XCH      YPIPBUF                               
036034,000301: 37,3012           55537                           TS       YOLDBUF                               

Page 825

036036,000303: 37,3013           31166                           CA       DELVZ                                 
036037,000304: 37,3014           57535                           XCH      ZPIPBUF                               
036038,000305: 37,3015           55540                           TS       ZOLDBUF                               
036039,000306: 
036040,000307: 37,3016           35022        NOSAVPIP           CA       FIVE                                  
036041,000308: 37,3017           55725                           TS       CM/GYMDT                              
036042,000309: 
036043,000310: 37,3020           33233                           CA       JTAGTIME                              #  ACTIVATE CM/RCS AFTER PIPUP TO GO
036044,000311:                                                                                                  #  IN JTAGTIME +5 CS.
036045,000312: 37,3021           05245                           TC       WAITLIST                              
036046,000313: 37,3022  E6,1661                                  EBANK=   AOG                                   
036047,000314: 37,3022           03207 32066                     2CADR    SETJTAG                               
036048,000315: 
036049,000316: 37,3024           46214                           CS       THREE                                 #  1.3SPOT FOR SETJTAG
036050,000317: 37,3025           04114                           TC       NEWPHASE                              
036051,000318: 37,3026           00001                           OCT      1                                     
036052,000319: 
036053,000320: 37,3027           34362                           CAF      OCT37                                 
036054,000321: 37,3030           54001                           TS       L                                     
036055,000322: 37,3031           40000                           COM                                            
036056,000323: 37,3032           52763                           DXCH     -PHASE5                               
036057,000324: 
036058,000325: 37,3033           40075        CHEKAVEG           CS       FLAGWRD1                              
036059,000326: 37,3034           75017                           MASK     BIT1                                  
036060,000327: 37,3035           10000                           CCS      A                                     #  IF AVEG FLAG DOWN SET FINAL EXIT AVEG
036061,000328: 37,3036           03056                           TC       AVEGOUT                               
036062,000329: 
036063,000330: 37,3037           35042                           CAF      2SECS                                 
036064,000331: 37,3040           05245                           TC       WAITLIST                              
036065,000332: 37,3041  E6,1661                                  EBANK=   AOG                                   
036066,000333: 37,3041           02744 76066                     2CADR    READACCS                              
036067,000334: 
036068,000335: 37,3043           35002        MAKESERV           CAF      PRIO20                                #  ESTABLISH SERVICER ROUTINE
036069,000336: 37,3044           05147                           TC       FINDVAC                               
036070,000337: 37,3045  E7,1431                                  EBANK=   DVCNTR                                
036071,000338: 37,3045           03104 76067                     2CADR    SERVICER                              
036072,000339: 
036073,000340: 37,3047           45015                           CS       FOUR                                  #  RESTART SERVICER AND READACCS
036074,000341: 37,3050           04114                           TC       NEWPHASE                              
036075,000342: 37,3051           00005                           OCT      5                                     
036076,000343: 
036077,000344: 37,3052           35007                           CAF      BIT9                                  
036078,000345: 37,3053           00006                           EXTEND                                         
036079,000346: 37,3054           05011                           WOR      DSALMOUT                              #  TURN TEST CONNECTOR OUTBIT ON
036080,000347: 
036081,000348: 37,3055           15324                           TCF      TASKOVER                              #  END PREVIOUS READACCS WAITLIST TASK
036082,000349: 

Page 826

036084,000351: 37,3056           00006        AVEGOUT            EXTEND                                         
036085,000352: 37,3057           33063                           DCA      AVOUTCAD                              
036086,000353: 37,3060           53223                           DXCH     AVGEXIT                               
036087,000354: 37,3061           13043                           TCF      MAKESERV                              
036088,000355: 
036089,000356: 37,3062  E7,1431                                  EBANK=   DVCNTR                                
036090,000357: 37,3062           03165 76067  AVOUTCAD           2CADR    AVGEND                                
036091,000358: 

Page 827

036093,000360:                                                                                                  #  ROUTINE NAME: ONMNITOR
036094,000361:                                                                                                  #  MOD 04 BY BAIRNSFATHER 30 APR 1968    REDO ONMNITOR TO SAVE PIPS EACH 0.5 SEC FOR TM,ENTRY.
036095,000362:                                                                                                  #  MOD 03 BY FISHER DECEMBER 1967
036096,000363:                                                                                                  #  MOD 02 BY RYE SEPT 1967
036097,000364:                                                                                                  #  MOD 01 BY KOSMALA 23 MAR 1967
036098,000365:                                                                                                  #  MOD 00 BY KOSMALA 27 FEB 1967
036099,000366: 
036100,000367:                                                                                                  #  FUNCTIONAL DESCRIPTION
036101,000368: 
036102,000369:                                                                                                  #        THE PURPOSE OF ONMONITOR IS TO PROVIDE 1/2 SEC. READING OF PIPAS FOR DOWNLIST DURING ENTRY.
036103,000370:                                                                                                  #        X,Y,ZPIPBUF CONTAIN PRESENT VALUES X,Y,ZOLDBUF CONTAIN VALUES FROM PREVIOUS READING.
036104,000371: 
036105,000372:                                                                                                  #  CALLING SEQUENCE
036106,000373: 
036107,000374:                                                                                                  #        CALL AS WAITLIST TASK. TERMINATES ITSELF IN TASKOVER
036108,000375: 
036109,000376:                                                                                                  #  INITIALISATION
036110,000377: 
036111,000378:                                                                                                  #        PIPCTR = 2 (FOR DT = 0.5 SEC)
036112,000379:                                                                                                  #        X,Y,ZPIPBUF SET TO PREVIOUS PIPAX,Y,Z
036113,000380: 
036114,000381:                                                                                                  #  OUTPUT
036115,000382: 
036116,000383:                                                                                                  #        X,Y,ZPIPBUF, X,Y,ZOLDBUF
036117,000384: 
036118,000385:                                                                                                  #  DEBRIS
036119,000386: 
036120,000387:                                                                                                  #        X,Y,ZPIPBUF CONTAIN LAST PIPAX,Y,Z VALUES
036121,000388:                                                                                                  #                X,Y,ZOLDBUF CONTAIN LAST-BUT-ONE PIPAX,Y,Z VALUES
036122,000389:                                                                                                  #        RUPTREG1
036123,000390:                                                                                                  #        PIPCTR
036124,000391: 
036125,000392: 37,3064           55227        ONMNITOR           TS       PIPCTR                                
036126,000393: 
036127,000394: 37,3065           05267                           TC       FIXDELAY                              #  WAIT
036128,000395: 37,3066           00062        0.5SEC             DEC      50         B-14                       
036129,000396: 
036130,000397: 37,3067           35016        QUIKREAD           CAF      TWO                                   
036131,000398: 37,3070           54070                           TS       RUPTREG1                              
036132,000399: 37,3071           50000                           INDEX    A                                     
036133,000400: 37,3072           30037                           CA       PIPAX                                 #  SAVE ACTUAL PIPAS FOR TM.
036134,000401: 37,3073           50070                           INDEX    RUPTREG1                              
036135,000402: 37,3074           57533                           XCH      XPIPBUF                               #  UPDATE X,Y,ZPIPBUF
036136,000403: 37,3075           50070                           INDEX    RUPTREG1                              
036137,000404: 37,3076           55536                           TS       XOLDBUF                               #  AND X,Y,ZOLDBUF
036138,000405: 37,3077           10070        CHKCTR             CCS      RUPTREG1                              
036139,000406: 37,3100           13070                           TCF      QUIKREAD   +1                         #  LOOP AGAIN
036140,000407: 37,3101           11227                           CCS      PIPCTR                                
036141,000408: 37,3102           13064                           TCF      ONMNITOR                              
036142,000409: 37,3103           05324                           TC       TASKOVER                              
036143,000410: 

Page 828

036145,000412:                                                                                                  #  *************************************   SERVICER   *************************************************************
036146,000413: 
036147,000414: 37,3104  E7,1431                                  EBANK=   DVCNTR                                
036148,000415: 
036149,000416: 37,3104           35016        SERVICER           CAF      TWO                                   
036150,000417: 37,3105           00004                           INHINT                                         
036151,000418: 37,3106           54070        PIPCHECK           TS       RUPTREG1                              
036152,000419: 
036153,000420: 37,3107           60000                           DOUBLE                                         
036154,000421: 37,3110           50000                           INDEX    A                                     
036155,000422: 37,3111           11162                           CCS      DELVX                                 
036156,000423: 37,3112           03114                           TC       +2                                    
036157,000424: 37,3113           03122                           TC       PIPLOOP                               
036158,000425: 
036159,000426: 37,3114           63232                           AD       -MAXDELV                              #  DO PIPA-SATURATION TEST BEFORE
036160,000427: 37,3115           00006                           EXTEND                                         
036161,000428: 37,3116           63122                           BZMF     PIPLOOP                               #  COMPENSATION.
036162,000429: 
036163,000430: 37,3117           05650                           TC       ALARM                                 
036164,000431: 37,3120           00205                           OCT      00205                                 #  SATURATED-PIPA ALARM   ***CHANGE LATER
036165,000432: 37,3121           03143                           TC       AVERAGEG                              
036166,000433: 
036167,000434: 37,3122           10070        PIPLOOP            CCS      RUPTREG1                              
036168,000435: 37,3123           13106                           TCF      PIPCHECK                              
036169,000436: 
036170,000437: 37,3124           05412                           TC       PHASCHNG                              #  RESTART REREADAC + SERVICER
036171,000438: 37,3125           16035                           OCT      16035                                 
036172,000439: 37,3126           20000                           OCT      20000                                 
036173,000440: 37,3127  E7,1431                                  EBANK=   DVCNTR                                
036174,000441: 37,3127           03133 76067                     2CADR    DVTOTUP                               
036175,000442: 
036176,000443: 37,3131           04662                           TC       BANKCALL                              #  PIPA COMPENSATION CALL
036177,000444: 37,3132           15262                           CADR     1/PIPA                                
036178,000445: 
036179,000446: 37,3133           06006        DVTOTUP            TC       INTPRET                               
036180,000447: 37,3134           51575                           VLOAD    ABVAL                                 #  GET ABS VALUE OF DELV
036181,000448: 37,3135           01163                                    DELV                                  
036182,000449: 37,3136           77405                           DMP      EXIT                                  
036183,000450: 37,3137           37451                                    KPIP1                                 #  SCALE AT 2(+7)
036184,000451: 
036185,000452: 37,3140           00006                           EXTEND                                         
036186,000453: 37,3141           30155                           DCA      MPAC                                  
036187,000454: 37,3142           21426                           DAS      DVTOTAL                               #  ACCUMULATE DVTOTAL
036188,000455: 37,3143           05412        AVERAGEG           TC       PHASCHNG                              
036189,000456: 37,3144           10035                           OCT      10035                                 
036190,000457: 
036191,000458: 37,3145           06006                           TC       INTPRET                               
036192,000459: 37,3146           77624                           CALL                                           

Page 829

036194,000461: 37,3147           77420                                    CALCRVG                               
036195,000462: 37,3150           77776                           EXIT                                           
036196,000463: 
036197,000464: 37,3151           05412                           TC       PHASCHNG                              
036198,000465: 37,3152           10035                           OCT      10035                                 
036199,000466: 
036200,000467: 37,3153           34113                           CAF      OCT31                                 #  COPY RN1,VN1,GOT102,GOBL1/2,PIPTIME1
036201,000468: 37,3154           05606                           TC       GENTRAN                               #  INTO RN, VN, GDT/12, GOBL/2,PIPTIME
036202,000469: 37,3155           01231                           ADRES    RN1                                   
036203,000470: 37,3156           01170                           ADRES    RN                                    
036204,000471: 37,3157           00003                           RELINT                                         #  GENTRAN DOES AN INHINT
036205,000472: 37,3160           05412                           TC       PHASCHNG                              
036206,000473: 37,3161           10035                           OCT      10035                                 
036207,000474: 
036208,000475: 37,3162           00006                           EXTEND                                         
036209,000476: 37,3163           31223                           DCA      AVGEXIT                               
036210,000477: 37,3164           52006                           DXCH     Z                                     #  AVERAGEG EXIT
036211,000478: 
036212,000479: 37,3165           31205        AVGEND             CA       PIPTIME    +1                         #  FINAL AVERAGE G EXIT
036213,000480: 37,3166           55074                           TS       OLDBT1                                #  SET UP FREE FALL GYRO COMPENSATION
036214,000481: 
036215,000482: 37,3167           05546                           TC       UPFLAG                                #  SET DRIFTFLG
036216,000483: 37,3170           00036                           ADRES    DRIFTFLG                              #  BIT 15 FLAG 2
036217,000484: 37,3171           05372                           TC       2PHSCHNG                              
036218,000485: 37,3172           00005                           OCT      5                                     #  GROUP 5 OFF
036219,000486: 37,3173           05022                           OCT      05022                                 #  GROUP 2 ON FOR AVETOMID
036220,000487: 37,3174           20000                           OCT      20000                                 
036221,000488: 
036222,000489: 37,3175           06006                           TC       INTPRET                               
036223,000490: 37,3176           77624                           CALL                                           
036224,000491: 37,3177           73675                                    AVETOMID                              #  CONVERT STATE VECTOR TO REFERENCE SCALE.
036225,000492: 37,3200           77776                           EXIT                                           
036226,000493: 
036227,000494: 37,3201           35021                           CAF      ZERO                                  #  ZERO MARK COUNTERS.
036228,000495: 37,3202           55125                           TS       VHFCNT                                
036229,000496: 37,3203           55126                           TS       TRKMKCNT                              
036230,000497: 
036231,000498: 37,3204           04662                           TC       BANKCALL                              
036232,000499: 37,3205           17173                           CADR     PIPFREE                               
036233,000500: 
036234,000501: 37,3206           45007                           CS       BIT9                                  
036235,000502: 37,3207           55734                           TS       MRKBUF2                               #  INVALIDATE MARK BUFFER
036236,000503: 37,3210           00006                           EXTEND                                         
036237,000504: 37,3211           03011                           WAND     DSALMOUT                              
036238,000505: 
036239,000506: 37,3212           05560                           TC       DOWNFLAG                              
036240,000507: 37,3213           00147                           ADRES    CM/DSTBY                              
036241,000508: 
036242,000509: 37,3214           05560                           TC       DOWNFLAG                              
036243,000510: 37,3215           00162                           ADRES    V37FLAG                               
036244,000511: 

Page 830

036246,000513: 37,3216           35011                           CAF      BIT7                                  #  RESTORE GROUP 1 + 2 IF P20 IS RUNNING.
036247,000514: 37,3217           70074                           MASK     FLAGWRD0                              
036248,000515: 37,3220           00006                           EXTEND                                         
036249,000516: 37,3221           13225                           BZF      +4                                    
036250,000517: 
036251,000518: 37,3222           05372                           TC       2PHSCHNG                              
036252,000519: 37,3223           00111                           OCT      111                                   #  1.11SPOT
036253,000520: 37,3224           00132                           OCT      132                                   #  2.13SPOT
036254,000521: 
036255,000522: 37,3225           04701                           TC       POSTJUMP                              
036256,000523: 37,3226           10124                           CADR     CANV37                                
036257,000524: 
036258,000525: 37,3227           05412        SERVEXIT           TC       PHASCHNG                              
036259,000526: 37,3230           00035                           OCT      00035                                 #  A, 5.3 = REREADAC     (ONLY)
036260,000527: 
036261,000528: 37,3231           15217                           TCF      ENDOFJOB                              
036262,000529: 
036263,000530: 37,3232     5024               DVTHRUSH           EQUALS   ELEVEN                                #  15 PERCENT OF 2SEC PIPA ACCUMULATION,
036264,000531:                                                                                                  #        FOR 503-FULL CSM/LEM....DELV SC.AT
036265,000532:                                                                                                  #        5.85 CM/SEC.
036266,000533: 
036267,000534: 37,3232           63401        -MAXDELV           DEC      -6398      B-14                       #  3200 PPS FOR 2 SEC CCS TAKES 1
036268,000535: 
036269,000536: 37,3233           00170        JTAGTIME           DEC      120        B-14                       #  = 1 SEC + T CDU, T CDU = .1 SEC
036270,000537: 
036271,000538: 37,3234           00372        2.5SEC             DEC      250        B-14                       
036272,000539: 37,3235           00044        MDOTFAIL           DEC      144.0      B-16                       #  5 SEC MASS LOSS AT 28.8 KG/SEC
036273,000540:                                                                                                  #  SHOULD BE 2-4 SECS FOR NO START
036274,000541:                                                                                                  #            6-8 SECS FOR FAILURE
036275,000542: 

Page 831

036277,000544:                                                                                                  #  NORMLIZE PERFORMS THE INITIALIZATION REQUIRED PRIOR TO THE FIRST ENTRY TO AVERAGEG, AND SCALES RN SO THAT IT
036278,000545:                                                                                                  #  HAS 1 LEADING BINARY ZERO.  IN MOST MISSIONS, RN WILL BE SCALED AT 2(+29), BUT IN THE 206 MISSION, RN WILL BE
036279,000546:                                                                                                  #  SCALED AT 2(+24) M.
036280,000547: 
036281,000548: 37,3236           35025        NORMLIZE           CAF      THIRTEEN                              #  SET UP TO COPY 14 REGS- RN1,VN1,PIPTIME1
036282,000549: 37,3237           05606                           TC       GENTRAN                               #  INTO RN,VN,PIPTIME
036283,000550: 37,3240           01231                           ADRES    RN1                                   #  FROM HERE
036284,000551: 37,3241           01170                           ADRES    RN                                    #  TO HERE
036285,000552: 
036286,000553: 37,3242           00003                           RELINT                                         
036287,000554: 37,3243           06006                           TC       INTPRET                               
036288,000555: 37,3244           45175                           VLOAD    CALL                                  #  LOAD RN FOR CALCGRAV
036289,000556: 37,3245           01171                                    RN                                    
036290,000557: 37,3246           77353                                    CALCGRAV                              #  INITIALISE UNITR RMAG GDT1
036291,000558: 
036292,000559: 37,3247           25207                           STOVL    GDT/2                                 
036293,000560: 37,3250           01256                                    GOBL1/2                               
036294,000561: 37,3251           01215                           STORE    GOBL/2                                
036295,000562: 37,3252           77776                           EXIT                                           
036296,000563: 37,3253           15217                           TCF      ENDOFJOB                              
036297,000564: 

Page 832

036299,000566:                                                                                                  #  *****  PIPA READER *****
036300,000567:                                                                                                  #  MOD NO. 00 BY D. LICKLY DEC. 9 1966
036301,000568: 
036302,000569:                                                                                                  #  FUNCTIONAL DESCRIPTION
036303,000570: 
036304,000571:                                                                                                  #  SUBROUTINE TO READ PIPA COUNTERS, TRYING TO BE VERY CAREFUL SO THAT IT WILL BE RESTARTABLE.
036305,000572:                                                                                                  #  PIPA READINGS ARE STORED IN THE VECTOR DELV.  THE HIGH ORDER PART OF EACH COMPONENT CONTAINS THE PIPA READING,
036306,000573:                                                                                                  #  RESTARTS BEGIN AT REREADAC.
036307,000574: 
036308,000575:                                                                                                  #  AT THE END OF THE PIPA READER THE CDUS ARE READ AND STORED AS A
036309,000576:                                                                                                  #  VECTOR IN CDUTEMP.  THE HIGH ORDER PART OF EACH COMPONENT CONTAINS
036310,000577:                                                                                                  #  THE CDU READING IN 2S COMP IN THE ORDER CDUX,Y,Z.  THE THRUST
036311,000578:                                                                                                  #  VECTOR ESTIMATOR IN FINDCDUD REQUIRES THE CDUS BE READ AT PIPTIME.
036312,000579: 
036313,000580:                                                                                                  #  CALLING SEQUENCE AND EXIT
036314,000581: 
036315,000582:                                                                                                  #        CALL VIA TC, ISWCALL, ETC.
036316,000583: 
036317,000584:                                                                                                  #        EXIT IS VIA Q.
036318,000585: 
036319,000586:                                                                                                  #  INPUT
036320,000587: 
036321,000588:                                                                                                  #        INPUT IS THROUGH THE COUNTERS PIPAX, PIPAY, PIPAZ, AND TIME2.
036322,000589: 
036323,000590:                                                                                                  #  OUTPUT
036324,000591: 
036325,000592:                                                                                                  #        HIGH ORDER COMPONENTS OF THE VECTOR DELV CONTAIN THE PIPA READINGS.
036326,000593: 
036327,000594:                                                                                                  #        PIPTIME CONTAINS TIME OF PIPA READING.
036328,000595: 
036329,000596:                                                                                                  #  DEBRIS (ERASABLE LOCATIONS DESTROYED BY PROGRAM)
036330,000597: 
036331,000598:                                                                                                  #        LOW ORDER DELV'S ARE ZEROED FOR TM INDICATION.
036332,000599:                                                                                                  #        TEMX    TEMY    TEMZ    PIPAGE
036333,000600: 
036334,000601: 37,3254           00006        PIPASR             EXTEND                                         
036335,000602: 37,3255           30025                           DCA      TIME2                                 
036336,000603: 37,3256           53246                           DXCH     PIPTIME1                              #  CURRENT TIME  POSITIVE VALUE
036337,000604: 37,3257           45021                           CS       ZERO                                  #  INITIALIZE THESE AT NEG ZERO.
036338,000605: 37,3260           55224                           TS       TEMX                                  
036339,000606: 37,3261           55225                           TS       TEMY                                  
036340,000607: 37,3262           55226                           TS       TEMZ                                  

Page 833

036342,000609: 37,3263           35021                           CA       ZERO                                  
036343,000610: 37,3264           55166                           TS       DELVZ                                 #  OTHER DELVS OK INCLUDING LOW ORDER
036344,000611: 37,3265           55164                           TS       DELVY                                 
036345,000612: 
036346,000613: 37,3266           55163                           TS       DELVX      +1                         #  LOW ORDER DELV'S ARE ZEROED FOR TM:  THUS
036347,000614: 37,3267           55165                           TS       DELVY      +1                         #  IF DNLNK'D LOW ORDER DELVS ARE NZ, THEY
036348,000615: 37,3270           55167                           TS       DELVZ      +1                         #  CONTAIN PROPER COMPENSATION.  IF=0, THEN
036349,000616:                                                                                                  #  THE TM VALUES ARE BEFORE COMPENSATION.
036350,000617: 
036351,000618: 37,3271           55230                           TS       PIPAGE                                #  SHOW PIPA READING IN PROGRESS
036352,000619: 
036353,000620: 37,3272           00006        REPIP1             EXTEND                                         
036354,000621: 37,3273           40040                           DCS      PIPAX                                 #  X AND Y PIPS READ
036355,000622: 37,3274           53225                           DXCH     TEMX                                  
036356,000623: 37,3275           52040                           DXCH     PIPAX                                 #  PIPAS SET TO NEG ZERO AS READ.
036357,000624: 37,3276           55162                           TS       DELVX                                 
036358,000625: 37,3277           23164                           LXCH     DELVY                                 
036359,000626: 
036360,000627: 37,3300           40041        REPIP3             CS       PIPAZ                                 #  REPEAT PROCESS FOR Z PIP
036361,000628: 37,3301           57226                           XCH      TEMZ                                  
036362,000629: 37,3302           56041                           XCH      PIPAZ                                 
036363,000630: 37,3303           55166        DODELVZ            TS       DELVZ                                 
036364,000631: 
036365,000632: 37,3304           00002                           TC       Q                                     
036366,000633: 
036367,000634: 37,3305  E6,1661                                  EBANK=   AOG                                   
036368,000635: 
036369,000636: 37,3305           10763        REREADAC           CCS      PHASE5                                #  LAST PASS CHECK
036370,000637: 37,3306           13310                           TCF      +2                                    
036371,000638: 37,3307           15324                           TCF      TASKOVER                              
036372,000639: 
036373,000640: 37,3310           37665                           CAF      PRIO31                                #  RESTART MAY HAVE WIPED OUT LASTBIAS, AN
036374,000641: 37,3311           55074                           TS       1/PIPADT                              #        UNPROTECTED NOVAC FROM PREREAD,
036375,000642:                                                                                                  #        WHICH SET(S) UP 1/PIPADT (THUSLY)
036376,000643:                                                                                                  #        FOR NON-COASTING COMPENSATION....BE
036377,000644:                                                                                                  #        SURE 1/PIPADT IS AOK.  (PRIO31 IS
036378,000645:                                                                                                  #        2.0SEC SC.AT B+8CS)
036379,000646: 
036380,000647: 37,3312           11230                           CCS      PIPAGE                                
036381,000648: 37,3313           12744                           TCF      READACCS                              #  PIP READING NOT STARTED.  GO TO BEGINNING
036382,000649: 
036383,000650: 37,3314           33352                           CAF      DONEADR                               #  SET UP RETURN FROM PIPASR
036384,000651: 37,3315           54002                           TS       Q                                     
036385,000652: 
036386,000653: 37,3316           11166                           CCS      DELVZ                                 
036387,000654: 37,3317           00002                           TC       Q                                     #  Z DONE, GO DO CDUS
036388,000655: 37,3320           13323                           TCF      +3                                    #  Z NOT DONE, CHECK Y.
036389,000656: 37,3321           00002                           TC       Q                                     
036390,000657: 37,3322           00002                           TC       Q                                     

Page 834

036392,000659: 37,3323           22007                           ZL                                             
036393,000660: 37,3324           11164                           CCS      DELVY                                 
036394,000661: 37,3325           13330                           TCF      +3                                    
036395,000662: 37,3326           13337                           TCF      CHKTEMX                               #  Y NOT DONE, CHECK X.
036396,000663: 37,3327           13330                           TCF      +1                                    
036397,000664: 37,3330           22041                           LXCH     PIPAZ                                 #  Y DONE, ZERO Z PIP.
036398,000665: 
036399,000666: 37,3331           11226                           CCS      TEMZ                                  
036400,000667: 37,3332           41226                           CS       TEMZ                                  #  TEMZ NOT = -0, CONTAINS -PIPAZ VALUE.
036401,000668: 37,3333           13303                           TCF      DODELVZ                               
036402,000669: 37,3334           13332                           TCF      -2                                    
036403,000670: 37,3335           23166                           LXCH     DELVZ                                 #  TEMZ = -0, L HAS ZPIP VALUE.
036404,000671: 37,3336           00002                           TC       Q                                     
036405,000672: 
036406,000673: 37,3337           11224        CHKTEMX            CCS      TEMX                                  #  HAS THIS CHANGED
036407,000674: 37,3340           41224                           CS       TEMX                                  #  YES
036408,000675: 37,3341           13344                           TCF      +3                                    #  YES
036409,000676: 37,3342           13340                           TCF      -2                                    #  YES
036410,000677: 37,3343           13272                           TCF      REPIP1                                #  NO
036411,000678: 37,3344           55162                           TS       DELVX                                 
036412,000679: 
036413,000680: 37,3345           41225                           CS       TEMY                                  
036414,000681: 37,3346           55164                           TS       DELVY                                 
036415,000682: 
036416,000683: 37,3347           45021                           CS       ZERO                                  #  ZERO X AND Y PIPS
036417,000684: 37,3350           52040                           DXCH     PIPAX                                 #  L STILL ZERO FROM ABOVE
036418,000685: 
036419,000686: 37,3351           13300                           TCF      REPIP3                                
036420,000687: 
036421,000688: 37,3352           02745        DONEADR            GENADR   PIPSDONE                              
036422,000689: 

Page 835

036424,000691:                                                                                                  #  *************************************************************************************************************
036425,000692: 
036426,000693:                                                                                                  #           ROUTINE CALCRVG INTEGRATES THE EQUATIONS OF MOTION BY AVERAGING THE THRUST AND GRAVITATIONAL
036427,000694:                                                                                                  #  ACCELERATIONS OVER A TIME INTERVAL OF 2 SECONDS.
036428,000695: 
036429,000696:                                                                                                  #           FOR THE EARTH-CENTERED GRAVITATIONAL FIELD, THE PERTURBATION DUE TO OBLATENESS IS COMPUTED TO THE FIRST
036430,000697:                                                                                                  #  HARMONIC COEFFICIENT J.
036431,000698: 
036432,000699:                                                                                                  #  ROUTINE CALCRVG REQUIRES...
036433,000700:                                                                                                  #        1) THRUST ACCELERATION INCREMENTS IN DELV SCALED SAME AS PIPAX,Y,Z IN STABLE MEMBER COORDS.
036434,000701:                                                                                                  #        2) VN SCALED 2(+7) M/CS IN REFERENCE COORDS.
036435,000702:                                                                                                  #        3) RN SCALED AT 2(+29) METERS IN REFERENCE COORDS.
036436,000703:                                                                                                  #        4) UNITW THE EARTH S UNIT ROTATIONAL VECTOR (SCALED AS A FULL UNIT VECTOR) IN REFERENCE COORDS.
036437,000704: 
036438,000705:                                                                                                  #  IT LEAVES RN1 UPDATED (SCALED AT 2(+29)M, VN1 (SCALED AT 2(+7)M/CS), AND GDT1/2 (SCALED AT 2(+7)M/CS). ALSO HALF
036439,000706:                                                                                                  #  UNIT VECTOR UNITR, RMAG IN 36D SCALED AT 2(+29)M, R MAG SQ. IN 34D SCALED AT 2(+58) M SQ.
036440,000707: 
036441,000708: 37,3353           41456        CALCGRAV           UNIT     PUSH                                  #  ENTER WITH RN IN MPAC
036442,000709: 37,3354           01760                           STORE    UNITR                                 
036443,000710: 37,3355           67340                           LXC,1    SLOAD                                 
036444,000711: 37,3356           03746                                    RTX2                                  
036445,000712: 37,3357           00047                                    X1                                    
036446,000713: 37,3360           77240                           BMN      VLOAD                                 
036447,000714: 37,3361           77407                                    ITISMOON                              
036448,000715: 37,3362           41441                           DOT      PUSH                                  
036449,000716: 37,3363           01714                                    UNITW                                 
036450,000717: 37,3364           44316                           DSQ      BDSU                                  
036451,000718: 37,3365           37461                                    DP1/20                                
036452,000719: 37,3366           56325                           PDDL     DDV                                   
036453,000720: 37,3367           37463                                    RESQ                                  
036454,000721: 37,3370           00043                                    34D                                   #  (RN)SQ
036455,000722: 37,3371           00041                           STORE    32D                                   #  TEMP FOR (RE/RN)SQ
036456,000723: 37,3372           41205                           DMP      DMP                                   
036457,000724: 37,3373           37465                                    20J                                   
036458,000725: 37,3374           65361                           VXSC     PDDL                                  
036459,000726: 37,3375           01760                                    UNITR                                 
036460,000727: 37,3376           41205                           DMP      DMP                                   
036461,000728: 37,3377           37467                                    2J                                    
036462,000729: 37,3400           00041                                    32D                                   
036463,000730: 37,3401           53361                           VXSC     VAD                                   
036464,000731: 37,3402           01714                                    UNITW                                 
036465,000732: 37,3403           77626                           STADR                                          
036466,000733: 37,3404           76521                           STORE    GOBL1/2                               
036467,000734: 37,3405           41455                           VAD      PUSH                                  
036468,000735: 37,3406           01760                                    UNITR                                 
036469,000736: 37,3407           60345        ITISMOON           DLOAD    NORM                                  
036470,000737: 37,3410           00043                                    34D                                   
036471,000738: 37,3411           00050                                    X2                                    
036472,000739: 37,3412           53663                           BDDV*    SLR*                                  

Page 836

036474,000741: 37,3413           37453                                    -MUDT(E),1                            
036475,000742: 37,3414           56623                                    0          -21D,2                     
036476,000743: 37,3415           45561                           VXSC     STADR                                 
036477,000744: 37,3416           76527                           STORE    GDT1/2                                #  SCALED AT 2(+7) M/CS
036478,000745: 37,3417           77616                           RVQ                                            
036479,000746: 
036480,000747: 37,3420           74375        CALCRVG            VLOAD    VXSC                                  
036481,000748: 37,3421           01163                                    DELV                                  
036482,000749: 37,3422           37451                                    KPIP1                                 
036483,000750: 37,3423           76505                           VXM      VSL1                                  
036484,000751: 37,3424           01736                                    REFSMMAT                              
036485,000752: 37,3425           03433                           STORE    DELVREF                               #  DELV IN REF COORDS AT 2(+7)
036486,000753: 37,3426           41562                           VSR1     PUSH                                  
036487,000754: 37,3427           41455                           VAD      PUSH                                  #  (DV-OLDGDT)/2 TO PD SCALED AT 2(+7)M/CS
036488,000755: 37,3430           01207                                    GDT/2                                 
036489,000756: 37,3431           74255                           VAD      VXSC                                  
036490,000757: 37,3432           01177                                    VN                                    
036491,000758: 37,3433           37457                                    2SEC(22)                              
036492,000759: 37,3434           44055                           VAD      STQ                                   
036493,000760: 37,3435           01171                                    RN                                    
036494,000761: 37,3436           00037                                    31D                                   
036495,000762: 37,3437           35232                           STCALL   RN1                                   #  TEMP STORAGE OF RN SCALED 2(+29)M
036496,000763: 37,3440           77353                                    CALCGRAV                              
036497,000764: 
036498,000765: 37,3441           53255                           VAD      VAD                                   
036499,000766: 37,3442           77655                           VAD                                            
036500,000767: 37,3443           01177                                    VN                                    
036501,000768: 37,3444           35240                           STCALL   VN1                                   #  TEMP STORAGE OF VN SCALED 2(+7) M/CS
036502,000769: 37,3445           00037                                    31D                                   
036503,000770: 
036504,000771: 37,3446           03215 27057  KPIP               2DEC     .1024                                 #  SCALES DELV TO 2(+4)
036505,000772: 
036506,000773: 37,3450           02312 32537  KPIP1              2DEC     0.074880                              #  207 DELV SCALING.  1 PULSE = 5.85 CM/SEC.
036507,000774: 
036508,000775: 37,3452           61377 55754  -MUDT(E)           2DEC*    -7.9720645 E+12       B-44*           
036509,000776: 
036510,000777: 37,3454           77644 65556  -MUDT(M)           2DEC*    -9.805556  E+10       B-44*           
036511,000778: 
036512,000779: 37,3456           00000 31000  2SEC(22)           2DEC     200        B-22                       
036513,000780: 
036514,000781: 37,3460           01463 06315  DP1/20             2DEC     0.05                                  
036515,000782: 
036516,000783: 37,3462           00001 05000  RESQ               2DEC*    40.6809913 E12        B-59*           
036517,000784: 
036518,000785: 37,3464           02047 36332  20J                2DEC*    3.24692010 E-2        B1*             
036519,000786: 
036520,000787: 37,3466           00152 14511  2J                 2DEC*    3.24692010 E-3        B1*             
036521,000788: 

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