Source Code

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

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

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

063470,000002:                                                                                                  ## Copyright:   Public domain.
063471,000003:                                                                                                  ## Filename:    UPDATE_PROGRAM.agc
063472,000004:                                                                                                  ## Purpose:     A section of Manche45 revision 2.
063473,000005:                                                                                                  ##              It is part of the reconstructed source code for the
063474,000006:                                                                                                  ##              final, flown release of the flight software for the Command
063475,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
063476,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
063477,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
063478,000010:                                                                                                  ##              exactly match those specified for Manche 45/2 in NASA drawing
063479,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
063480,000012:                                                                                                  ##              reconstruction is correct.
063481,000013:                                                                                                  ## Assembler:   yaYUL
063482,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
063483,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
063484,000016:                                                                                                  ## Mod history: 2020-12-24 MAS  Created from Comanche 45.
063485,000017: 

Page 1497

063487,000019:                                                                                                  #  PROGRAM NAME:         P27
063488,000020:                                                                                                  #  WRITTEN BY:           KILROY/ DE WOLF
063489,000021: 
063490,000022:                                                                                                  #  MOD NO:               6
063491,000023:                                                                                                  #  MOD BY:               KILROY
063492,000024:                                                                                                  #  DATE:                 01DEC67
063493,000025: 
063494,000026:                                                                                                  #  LOG SECTION:          UPDATE PROGRAM.
063495,000027: 
063496,000028:                                                                                                  #  FUNCT. DESCR: P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
063497,000029:                                                                                                  #                        INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
063498,000030:                                                                                                  #                        THE P27 PROGRAM WILL ACCEPT UPDATES
063499,000031:                                                                                                  #                        ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
063500,000032:                                                                                                  #                        P02, AND FRESH START FOR THE CSM
063501,000033: 
063502,000034:                                                                                                  #  CALLING SEQ:          PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
063503,000035: 
063504,000036:                                                                                                  #  SUBROUTINES:          TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
063505,000037:                                                                                                  #                        INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
063506,000038: 
063507,000039:                                                                                                  #  NORMAL EXIT:          TC ENDEXT
063508,000040: 
063509,000041:                                                                                                  #  ALARM/ABORT:          TC FALTON FOLLOWED BY TC ENDEXT
063510,000042: 
063511,000043:                                                                                                  #  RESTARTS:             P27 IS RESTART PROTECTED IN TWO WAYS ...
063512,000044:                                                                                                  #                        1.      PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
063513,000045:                                                                                                  #                                DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
063514,000046:                                                                                                  #                                NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
063515,000047:                                                                                                  #                                ACTIVITY LIGHT IS TURNED OFF.  (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
063516,000048:                                                                                                  #                                V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
063517,000049:                                                                                                  #                        2.      AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
063518,000050:                                                                                                  #                                PROTECTED AGAINST RESTARTS.
063519,000051: 
063520,000052:                                                                                                  #  DEBRIS:               UPBUFF  (20D)   TEMP STORAGE FOR ADDRESSES AND CONTENTS.
063521,000053:                                                                                                  #                        UPVERB  (1)     VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
063522,000054:                                                                                                  #                        UPOLDMOD(1)     FOR MAJOR MODE INTERRUPTED BY P27.
063523,000055:                                                                                                  #                        COMPNUMB(1)     TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
063524,000056:                                                                                                  #                        UPCOUNT (1)     ACTUAL NUMBER OF COMPONENTS RECEIVED.
063525,000057:                                                                                                  #                        UPTEMP  (1)     SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
063526,000058: 
063527,000059:                                                                                                  #  INPUT:
063528,000060: 
063529,000061:                                                                                                  #        ENTRY:                  DESCRIPTION
063530,000062:                                                                                                  #        V70EXXXXXEXXXXXE        (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
063531,000063:                                                                                                  #                                IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
063532,000064:                                                                                                  #                                VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME(TETLEM).
063533,000065:                                                                                                  #                                THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).

Page 1498

063535,000067:                                                                                                  #        V71EIIEAAAAE            (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
063536,000068:                                                                                                  #        XXXXXE                  ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
063537,000069:                                                                                                  #        XXXXXE                  IT IS .GE. 3 .AND. .LE. 20D.,
063538,000070:                                                                                                  #                                AND (AAAA + II -3) DOES NOT PRODUCE AN ADDRESS IN THE
063539,000071:                                                                                                  #        9 NEXT BANK
063540,000072:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
063541,000073:                                                                                                  #        V72EIIE                 (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
063542,000074:                                                                                                  #        AAAAEXXXXXE             LOADED INTO ERASABLE LOCATIONS, AAAA.
063543,000075:                                                                                                  #        AAAAEXXXXXE             II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
063544,000076:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
063545,000077: 
063546,000078:                                                                                                  #        V73EXXXXXEXXXXXE        (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
063547,000079:                                                                                                  #                                INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
063548,000080:                                                                                                  #                                CENTISECONDS SCALED AT (2)28.
063549,000081:                                                                                                  #                                THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
063550,000082: 
063551,000083:                                                                                                  #  OUTPUT:               IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
063552,000084:                                                                                                  #                        COMPLEMENT BIT3 OF FLAGWORD7.
063553,000085: 
063554,000086:                                                                                                  #  ADDITIONAL NOTES:     VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
063555,000087:                                                                                                  #                        1.  CSM/LM STATE VECTOR UPDATE
063556,000088:                                                                                                  #                        2.  REFSMMAT UPDATE
063557,000089: 
063558,000090:                                                                                                  #        THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE ----
063559,000091: 
063560,000092:                                                                                                  #        1.  CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
063561,000093:                                                                                                  #                ENTRIES:        DATA DEFINITION:                                SCALE FACTORS:
063562,000094:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
063563,000095:                                                                                                  #                   21E          NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
063564,000096:                                                                                                  #                 AAAAE          ECADR OF 'UPSVFLAG'
063565,000097:                                                                                                  #                XXXXXE          STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
063566,000098:                                                                                                  #                                                         00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
063567,000099:                                                                                                  #                XXXXXEXXXXXE    X POSITION
063568,000100:                                                                                                  #                XXXXXEXXXXXE    Y POSITION
063569,000101:                                                                                                  #                XXXXXEXXXXXE    Z POSITION
063570,000102:                                                                                                  #                XXXXXEXXXXXE    X VELOCITY
063571,000103:                                                                                                  #                XXXXXEXXXXXE    Y VELOCITY
063572,000104:                                                                                                  #                XXXXXEXXXXXE    Z VELOCITY
063573,000105:                                                                                                  #                XXXXXEXXXXXE    TIME FROM AGC CLOCK ZERO
063574,000106:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
063575,000107: 
063576,000108:                                                                                                  #        2.  REFSMMAT (ALL DATA ENTRIES IN OCTAL)
063577,000109:                                                                                                  #                ENTRIES:                DATA DEFINITIONS:                               SCALE FACTORS:

Page 1499

063579,000111:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
063580,000112:                                                                                                  #                   24E          NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
063581,000113:                                                                                                  #                 AAAAE          ECADR OF 'REFSMMAT'
063582,000114:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 1                                  2(-1)
063583,000115:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 2                                  2(-1)
063584,000116:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 3                                  2(-1)
063585,000117:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 1                                  2(-1)
063586,000118:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 2                                  2(-1)
063587,000119:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 3                                  2(-1)
063588,000120:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 1                                  2(-1)
063589,000121:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 2                                  2(-1)
063590,000122:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 3                                  2(-1)
063591,000123:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
063592,000124: 
063593,000125: 07,3777                                           BANK     07                                    
063594,000126: 43,2000                                           SETLOC   EXTVERBS                              
063595,000127: 43,2000                                           BANK                                           
063596,000128: 
063597,000129: 43,3726  E3,1706                                  EBANK=   TEPHEM                                
063598,000130: 
063599,000131: 43,3726                                           COUNT*   $$/P27                                
063600,000132: 43,3726           35021        V70UPDAT           CAF      UP70                                  #  COMES HERE ON V70E
063601,000133: 43,3727           13735                           TCF      V73UPDAT   +1                         
063602,000134: 
063603,000135: 43,3730           35017        V71UPDAT           CAF      UP71                                  #  COMES HERE ON V71E
063604,000136: 43,3731           13735                           TCF      V73UPDAT   +1                         
063605,000137: 
063606,000138: 43,3732           35016        V72UPDAT           CAF      UP72                                  #  COMES HERE ON V72E
063607,000139: 43,3733           13735                           TCF      V73UPDAT   +1                         
063608,000140: 
063609,000141: 43,3734           36214        V73UPDAT           CAF      UP73                                  #  COMES HERE ON V73E
063610,000142: 
063611,000143: 43,3735           54331                 +1        TS       UPVERBSV                              #  SAVE UPVERB UNTIL IT'S OK TO ENTER P27
063612,000144: 
063613,000145: 43,3736           02076                           TC       TESTXACT                              #  GRAB DISPLAY IF AVAILABLE, OTHERWISE
063614,000146:                                                                                                  #  TURN *OPERATOR ERROR* ON AND TERMINATE JOB
063615,000147: 
063616,000148: 43,3737           31011                           CA       MODREG                                #  CHECK IF UPDATE ALLOWED
063617,000149: 43,3740           00006                           EXTEND                                         #  FIRST CHECK FOR MODREG = +0, -0
063618,000150: 43,3741           13743                           BZF      +2                                    #  (+0 = P00, -0 = FRESHSTART)
063619,000151: 43,3742           03753                           TC       CKMDMORE                              #  NOW CHECK FOR PROGRAM WHICH CAN BE
063620,000152:                                                                                                  #  INTERRUPTED BY P27.
063621,000153: 
063622,000154: 43,3743           31011                           CAE      MODREG                                #  UPDATE ALLOWED.
063623,000155: 43,3744           54301                           TS       UPOLDMOD                              #  SAVE CURRENT MAJOR MODE

Page 1500

063625,000157: 43,3745           30331                           CAE      UPVERBSV                              #  SET UPVERB TO INDICATE TO P27
063626,000158: 43,3746           54302                           TS       UPVERB                                #  WHICH EXTENDED VERB CALLED IT.
063627,000159: 
063628,000160: 43,3747           35017                           CAF      ONE                                   
063629,000161: 43,3750           54303                           TS       UPCOUNT                               #  INITIALIZE UPCOUNT TO 1
063630,000162: 
063631,000163: 43,3751           04701                           TC       POSTJUMP                              #  LEAVE EXTENDED VERB BANK AND
063632,000164: 43,3752           57373                           CADR     UPPART2                               #  GO TO UPDATE PROGRAM (P27) BANK.
063633,000165: 
063634,000166: 43,3753           40101        CKMDMORE           CS       FLAGWRD5                              
063635,000167: 43,3754           75010                           MASK     BIT8                                  #  CHECK IF COMPUTER IS LGC
063636,000168: 43,3755           10000                           CCS      A                                     #  IS COMPUTER LGC OR AGC
063637,000169: 43,3756           13764        UPERLEM            TCF      UPERROR                               #  ERROR- IT'S THE LEM + MODE IS NOT POO.
063638,000170: 43,3757           45016                           CS       TWO                                   
063639,000171: 43,3760           71011                           MASK     MODREG                                
063640,000172: 43,3761           10000                           CCS      A                                     
063641,000173: 43,3762           13764        UPERCMC            TCF      UPERROR                               #  ERROR- IT'S THE CMC AND MODE IS NOT
063642,000174:                                                                                                  #  P00 OR P02.
063643,000175: 43,3763           00002                           TC       Q                                     #  ALLOW UPDATE TO PROCEED
063644,000176: 
063645,000177: 43,3764           04701        UPERROR            TC       POSTJUMP                              #  TURN ON 'OPERATOR ERROR' LIGHT
063646,000178: 43,3765           57754                           CADR     UPERROUT   +2                         #  GO TO COMMON UPDATE PROGRAM EXIT
063647,000179: 
063648,000180: 43,3766  30,2000                                  SBANK=   LOWSUPER                              
063649,000181: 43,3766     5021               UP70               EQUALS   ZERO                                  
063650,000182: 43,3766     5017               UP71               EQUALS   ONE                                   
063651,000183: 43,3766     5016               UP72               EQUALS   TWO                                   
063652,000184: 43,3766     6214               UP73               EQUALS   THREE                                 
063653,000185: 
063654,000186: 04,3754                                           BANK     04                                    
063655,000187: 27,2000                                           SETLOC   UPDATE2                               
063656,000188: 27,2000                                           BANK                                           
063657,000189: 
063658,000190: 27,3373                                           COUNT*   $$/P27                                
063659,000191: 
063660,000192: 27,3373                        UPPART2            EQUALS                                         #  UPDATE PROGRAM - PART 2
063661,000193: 
063662,000194: 27,3373           05412                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO RESTORE OLD MODE
063663,000195: 27,3374           07026                           OCT      07026                                 #  AND DOWNLIST AND EXIT IF RESTART OCCURS.
063664,000196: 27,3375           30000                           OCT      30000                                 #  PRIORITY SAME AS CHRPRIO
063665,000197: 27,3376     0304                                  EBANK=   UPBUFF                                
063666,000198: 27,3376           03704 56060                     2CADR    UPOUT      +1                         
063667,000199: 
063668,000200: 27,3400           35017                           CAF      ONE                                   
063669,000201: 27,3401           54332                           TS       DNLSTCOD                              #  DOWNLIST
063670,000202: 
063671,000203: 27,3402           05354                           TC       NEWMODEX                              #  SET MAJOR MODE = 27

Page 1501

063673,000205: 27,3403           00033                           DEC      27         B-14                       
063674,000206: 
063675,000207: 27,3404           50302                           INDEX    UPVERB                                #  BRANCH DEPENDING ON WHETHER THE UPDATE
063676,000208: 27,3405           13406                           TCF      +1                                    #  VERB REQUIRES A FIXED OR VARIABLE NUMBER
063677,000209: 27,3406           13411                           TCF      +3                                    #  V70 FIXED.               (OF COMPONENTS.
063678,000210: 27,3407           13414                           TCF      OHWELL1                               #  V71 VARIABLE - GO GET NO. OF COMPONENTS
063679,000211: 27,3410           13414                           TCF      OHWELL1                               #  V72 VARIABLE - GO GET NO. OF COMPONENTS
063680,000212: 27,3411           35016                           CA       TWO                                   #  V73 (AND V70) FIXED
063681,000213: 27,3412           54300                           TS       COMPNUMB                              #  SET NUMBER OF COMPONENTS TO 2.
063682,000214: 27,3413           13437                           TCF      OHWELL2                               #  GO GET THE TWO UPDATE COMPONENTS
063683,000215: 
063684,000216: 27,3414           33507        OHWELL1            CAF      ADUPBUFF                              #  * REQUEST USER TO SEND NUMBER  *
063685,000217: 27,3415           54156                           TS       MPAC       +2                         #  * OF COMPONENTS PARAMETER(II). *
063686,000218: 27,3416           33510                 +2        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
063687,000219: 27,3417           04662                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
063688,000220: 27,3420           20561                           CADR     GOXDSPF                               #  TO REQUEST II.
063689,000221: 27,3421           13704                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
063690,000222: 27,3422           13416                           TCF      OHWELL1    +2                         
063691,000223: 27,3423           03500                           TC       CK4V32                                #  DATA OR V32 RETURN
063692,000224: 27,3424           45016                           CS       BIT2                                  
063693,000225: 27,3425           60304                           AD       UPBUFF                                #  IS II (NUMBER OF COMPONENTS PARAMETER)
063694,000226: 27,3426           00006                           EXTEND                                         #  .GE. 3 AND .LE. 20D.
063695,000227: 27,3427           63416                           BZMF     OHWELL1    +2                         
063696,000228: 27,3430           40304                           CS       UPBUFF                                
063697,000229: 27,3431           64376                           AD       UP21                                  
063698,000230: 27,3432           00006                           EXTEND                                         
063699,000231: 27,3433           63416                           BZMF     OHWELL1    +2                         
063700,000232: 27,3434           30304                           CAE      UPBUFF                                
063701,000233: 27,3435           54300                           TS       COMPNUMB                              #  SAVE II IN COMPNUMB
063702,000234: 
063703,000235:                                                                                                  #  UPBUFF LOADING SEQUENCE
063704,000236: 
063705,000237: 27,3436           24303                           INCR     UPCOUNT                               #  INCREMENT COUNT OF COMPONENTS RECEIVED.
063706,000238: 27,3437           33654        OHWELL2            CAF      ADUPBFM1                              #  CALCULATE LOCATION (ECADR) IN UPBUFF
063707,000239: 27,3440           60303                           AD       UPCOUNT                               #  WHERE NEXT COMPONENT SHOULD BE STORED.
063708,000240: 27,3441           54156                 +2        TS       MPAC       +2                         #  PLACE ECADR INTO R3.
063709,000241: 27,3442           33510                 +3        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
063710,000242: 27,3443           04662                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
063711,000243: 27,3444           20561                           CADR     GOXDSPF                               #  TO REQUEST DATA.
063712,000244: 27,3445           13704                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN.
063713,000245: 27,3446           13442                           TCF      OHWELL2    +3                         #  V33 PROCEED RETURN
063714,000246: 27,3447           03500                           TC       CK4V32                                #  DATA OR V32 RETURN
063715,000247: 27,3450           40303                           CS       UPCOUNT                               #  HAVE WE FINISHED RECEIVING ALL
063716,000248: 27,3451           60300                           AD       COMPNUMB                              #  THE DATA WE EXPECTED.
063717,000249: 27,3452           00006                           EXTEND                                         
063718,000250: 27,3453           63455                           BZMF     UPVERIFY                              #  YES- GO TO VERIFICATION SEQUENCE
063719,000251: 27,3454           13436                           TCF      OHWELL2    -1                         #  NO- REQUEST ADDITIONAL DATA.
063720,000252: 

Page 1502

063722,000254:                                                                                                  #  VERIFY SEQUENCE
063723,000255: 27,3455           33506        UPVERIFY           CAF      ADUPTEMP                              #  PLACE ECADR WHERE COMPONENT NO. INDEX
063724,000256: 27,3456           54156                           TS       MPAC       +2                         #  IS TO BE STORED INTO R3.
063725,000257: 27,3457           33511                           CAF      UPVRFYNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
063726,000258: 27,3460           04662                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N02 TO REQUEST
063727,000259: 27,3461           20561                           CADR     GOXDSPF                               #  DATA CORRECTION OR VERIFICATION.
063728,000260: 27,3462           13704                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
063729,000261: 27,3463           13512                           TCF      UPSTORE                               #  V33 DATA SENT IS GOOD.  GO STORE IT.
063730,000262: 27,3464           03500                           TC       CK4V32                                #  COMPONENT NO. INDEX OR V32 RETURN
063731,000263: 27,3465           30330                           CA       UPTEMP                                #  DOES THE COMPONENT NO. INDEX JUST SENT
063732,000264: 27,3466           00006                           EXTEND                                         #  SPECIFY A LEGAL COMPONENT NUMBER?
063733,000265: 27,3467           63455                           BZMF     UPVERIFY                              #  NO, IT IS NOT POSITIVE NONZERO
063734,000266: 27,3470           40330                           CS       UPTEMP                                
063735,000267: 27,3471           60300                           AD       COMPNUMB                              
063736,000268: 27,3472           65017                           AD       BIT1                                  
063737,000269: 27,3473           00006                           EXTEND                                         
063738,000270: 27,3474           63455                           BZMF     UPVERIFY                              #  NO
063739,000271: 27,3475           33654                           CAF      ADUPBFM1                              #  YES- BASED ON THE COMPONENT NO. INDEX
063740,000272: 27,3476           60330                           AD       UPTEMP                                #  CALCULATE THE ECADR OF LOCATION IN
063741,000273: 27,3477           13441                           TCF      OHWELL2    +2                         #  UPBUFF WHICH USER WANTS TO CHANGE.
063742,000274: 
063743,000275: 27,3500  27,3704               UPOUT4             EQUALS   UPOUT      +1                         #  COMES HERE ON V34 TO TERMINATE UPDATE
063744,000276: 
063745,000277:                                                                                                  #  CHECK FOR VERB 32 SEQUENCE
063746,000278: 
063747,000279: 27,3500           40154        CK4V32             CS       MPAC                                  #  ON DATA RETURN FROM 'GOXDSPF'
063748,000280: 27,3501           75012                           MASK     BIT6                                  #  ON DATA RETURN FROM "GOXDSP"& THE CON-
063749,000281: 27,3502           10000                           CCS      A                                     #  TENTS OF MPAC = VERB.  SO TEST FOR V32.
063750,000282: 27,3503           00002                           TC       Q                                     #  IT'S NOT A V32, IT'S DATA.  PROCEED.
063751,000283: 27,3504           50002                           INDEX    Q                                     
063752,000284: 27,3505           77771                           TC       0          -6                         #  V32 ENCOUNTERED - GO BACK AND GET DATA
063753,000285: 
063754,000286: 27,3506           00330        ADUPTEMP           ADRES    UPTEMP                                #  ADDRESS OF TEMP STORAGE FOR CORRECTIONS
063755,000287: 27,3507           00304        ADUPBUFF           ADRES    UPBUFF                                #  ADDRESS OF UPDATE DATA STORAGE BUFFER
063756,000288: 27,3510           05201        UPLOADNV           VN       2101                                  #  VERB 21 NOUN 01
063757,000289: 27,3511           05202        UPVRFYNV           VN       2102                                  #  VERB 21 NOUN 02
063758,000290: 27,3512     4376               UP21               =        MD1                                   #  DEC 21 = MAX NO OF COMPONENTS +1
063759,000291: 27,3512     5022               UPDTPHAS           EQUALS   FIVE                                  
063760,000292: 
063761,000293:                                                                                                  #  PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
063762,000294: 
063763,000295: 27,3512                        UPSTORE            EQUALS                                         #  GROUND HAS VERIFIED UPDATE.  STORE DATA.
063764,000296: 
063765,000297: 27,3512           00004                           INHINT                                         
063766,000298: 
063767,000299: 27,3513           30103                           CAE      FLAGWRD7                              #  INVERT VERIFLAG (BIT 3 OF FLAGWRD7) TO
063768,000300: 27,3514           56001                           XCH      L                                     #  INDICATE TO THE GROUND (VIA DOWNLINK)
063769,000301: 27,3515           35015                           CAF      BIT3                                  #  THAT THE V33 (WHICH THE GROUND SENT TO

Page 1503

063771,000303: 27,3516           00006                           EXTEND                                         #  VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
063772,000304: 27,3517           06001                           RXOR     LCHAN                                 #  RECEIVED BY THE UPDATE PROGRAM
063773,000305: 27,3520           54103                           TS       FLAGWRD7                              
063774,000306: 
063775,000307: 27,3521           05412                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO REDO THE UPDATE
063776,000308: 27,3522           04026                           OCT      04026                                 #  DATA STORE IF A RESTART OCCURS.
063777,000309: 27,3523           00004                           INHINT                                         #  (BECAUSE PHASCHNG DID A RELINT)
063778,000310: 
063779,000311: 27,3524           45016                           CS       TWO                                   #  GO TO UPFNDVAC IF INSTALL IS REQUIRED,
063780,000312: 27,3525           60302                           AD       UPVERB                                #  THAT IS, IF IT'S A V70 - V72.
063781,000313: 27,3526           00006                           EXTEND                                         #  GO TO UPEND73 IF IT'S A V73.
063782,000314: 27,3527           63536                           BZMF     UPFNDVAC                              
063783,000315: 
063784,000316:                                                                                                  #  VERB 73 BRANCH
063785,000317: 
063786,000318: 27,3530           00006        UPEND73            EXTEND                                         #  V73-PERFORM DP OCTAL AGC CLOCK INCREMENT
063787,000319: 27,3531           30305                           DCA      UPBUFF                                
063788,000320: 27,3532           52315                           DXCH     UPBUFF     +8D                        
063789,000321: 27,3533           03561                           TC       TIMEDIDL                              
063790,000322: 27,3534           04400                           TC       FALTON                                #  ERROR- TURN ON *OPERATOR ERROR* LIGHT
063791,000323: 27,3535           03704                           TC       UPOUT      +1                         #  GO TO COMMON UPDATE PROGRAM EXIT
063792,000324: 
063793,000325: 27,3536           34371        UPFNDVAC           CAF      CHRPRIO                               #  (USE EXTENDED VERB PRIORITY)
063794,000326: 27,3537           05147                           TC       FINDVAC                               #  GET VAC AREA FOR 'CALL INTSTALL'
063795,000327: 27,3540  E3,1706                                  EBANK=   TEPHEM                                
063796,000328: 27,3540           03543 56063                     2CADR    UPJOB                                 #  (NOTE:  THIS WILL ALSO SET EBANK FOR
063797,000329: 27,3542           05217                           TC       ENDOFJOB                              #  'TEPHEM' UPDATE BY V70)
063798,000330: 
063799,000331: 27,3543           06006        UPJOB              TC       INTPRET                               #  THIS COULD BE A STATE VECTOR UPDATE -- SO
063800,000332: 27,3544           77624                           CALL                                           #  WAIT (PUT JOB TO SLEEP) IF ORBIT INT(OI)
063801,000333: 27,3545           27442                                    INTSTALL                              #  IS IN PROGRESS -- OR -- GRAB OI AND RETURN
063802,000334:                                                                                                  #  TO UPWAKE IF OI IS NOT IN PROGRESS.
063803,000335: 
063804,000336: 27,3546           77776        UPWAKE             EXIT                                           
063805,000337: 
063806,000338: 27,3547           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
063807,000339: 27,3550           04026                           OCT      04026                                 
063808,000340: 
063809,000341: 27,3551           05546                           TC       UPFLAG                                #  SET INTEGRATION RESTART BIT
063810,000342: 27,3552           00236                           ADRES    REINTFLG                              
063811,000343: 27,3553           00004                           INHINT                                         
063812,000344: 27,3554                        UPPART3            EQUALS                                         
063813,000345: 
063814,000346: 27,3554           50302                           INDEX    UPVERB                                #  BRANCH TO THE APPROPRIATE UPDATE VERB
063815,000347: 27,3555           13556                           TCF      +1                                    #  ROUTINE TO ACTUALLY PERFORM THE UPDATE
063816,000348: 27,3556           13715                           TCF      UPEND70                               #  V70
063817,000349: 27,3557           13624                           TCF      UPEND71                               #  V71
063818,000350: 27,3560           13656                           TCF      UPEND72                               #  V72
063819,000351: 

Page 1504

063821,000353:                                                                                                  #  ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
063822,000354: 27,3561           00006        TIMEDIDL           EXTEND                                         
063823,000355: 27,3562           22330                           QXCH     UPTEMP                                #  SAVE Q FOR RETURN
063824,000356: 27,3563           35021                           CAF      ZERO                                  #  ZERO AND SAVE TIME2,TIME1
063825,000357: 27,3564           22007                           ZL                                             
063826,000358: 27,3565           52025                           DXCH     TIME2                                 
063827,000359: 27,3566           52327                           DXCH     UPBUFF     +18D                       #  STORE IN CASE OF OVERFLOW
063828,000360: 
063829,000361: 27,3567           35022                           CAF      UPDTPHAS                              #  DO
063830,000362: 27,3570           54001                           TS       L                                     #  A
063831,000363: 27,3571           40000                           COM                                            #  QUICK
063832,000364: 27,3572           52765                           DXCH     -PHASE6                               #  PHASCHNG
063833,000365: 
063834,000366: 27,3573           00004        TIMEDIDR           INHINT                                         
063835,000367: 27,3574           35021                           CAF      ZERO                                  
063836,000368: 27,3575           22007                           ZL                                             #  PICK UP INCREMENTER(AND ZERO
063837,000369: 27,3576           54156                           TS       MPAC       +2                         #  IT IN CASE OF RESTARTS) AND
063838,000370: 27,3577           52315                           DXCH     UPBUFF     +8D                        #  STORE IT
063839,000371: 27,3600           52155                           DXCH     MPAC                                  #  INTO MPAC FOR TPAGREE.
063840,000372: 
063841,000373: 27,3601           00006                           EXTEND                                         
063842,000374: 27,3602           30327                           DCA      UPBUFF     +18D                       
063843,000375: 27,3603           20155                           DAS      MPAC                                  #  FORM SUM IN MPAC
063844,000376: 27,3604           00006                           EXTEND                                         
063845,000377: 27,3605           13614                           BZF      DELTAOK                               #  TEST FOR OVERFLOW
063846,000378: 27,3606           35021                           CAF      ZERO                                  
063847,000379: 27,3607           52327                           DXCH     UPBUFF     +18D                       #  OVERFLOW, RESTORE OLD VALUE OF CLOCK
063848,000380: 27,3610           20025                           DAS      TIME2                                 #  AND TURN ON OPERATOR ERROR
063849,000381: 
063850,000382: 27,3611           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
063851,000383: 27,3612           04026                           OCT      04026                                 
063852,000384: 
063853,000385: 27,3613           00330                           TC       UPTEMP                                #  GO TO ERROR EXIT
063854,000386: 
063855,000387: 27,3614           07226        DELTAOK            TC       TPAGREE                               #  FORCE SIGN AGREEMENT
063856,000388: 27,3615           52155                           DXCH     MPAC                                  
063857,000389: 27,3616           20025                           DAS      TIME2                                 #  INCREMENT TIME2,TIME1
063858,000390: 
063859,000391: 27,3617           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
063860,000392: 27,3620           04026                           OCT      04026                                 
063861,000393: 
063862,000394: 27,3621           00004                           INHINT                                         
063863,000395: 27,3622           50330                           INDEX    UPTEMP                                #  (CODED THIS WAY FOR RESTART PROTECTION)
063864,000396: 27,3623           00001                           TC       1                                     #  NORMAL RETURN
063865,000397: 
063866,000398:                                                                                                  #  VERB 71 BRANCH
063867,000399: 
063868,000400: 27,3624           30305        UPEND71            CAE      UPBUFF     +1                         #  SET EBANK
063869,000401: 27,3625           54003                           TS       EBANK                                 #        AND

Page 1505

063871,000403: 27,3626           74373                           MASK     LOW8                                  #  CALCULATE
063872,000404: 27,3627           54330                           TS       UPTEMP                                #  S-REG VALUE OF RECEIVING AREA
063873,000405: 27,3630           67714                           AD       NEG3                                  #  IN THE PROCESS OF
063874,000406: 27,3631           60300                           AD       COMPNUMB                              #  PERFORMING
063875,000407: 27,3632           00006                           EXTEND                                         #  THIS UPDATE
063876,000408: 27,3633           13641                           BZF      STORLP71                              #  WILL WE
063877,000409: 27,3634           75007                           MASK     BIT9                                  #  OVERFLOW
063878,000410: 27,3635           10000                           CCS      A                                     #  INTO THE NEXT EBANK....
063879,000411: 27,3636           13752                           TCF      UPERROUT                              #  YES
063880,000412: 
063881,000413: 27,3637           37714                           CA       NEG3                                  #  NO- CALCULATE NUMBER OF
063882,000414: 27,3640           60300                           AD       COMPNUMB                              #  WORDS TO BE STORED MINUS ONE
063883,000415: 27,3641           54154        STORLP71           TS       MPAC                                  #  SAVE NO. OF WORDS REMAINING MINUS ONE
063884,000416: 27,3642           50000                           INDEX    A                                     #  TAKE NEXT UPDATE WORD FROM
063885,000417: 27,3643           30306                           CA       UPBUFF     +2                         #  UPBUFF AND
063886,000418: 27,3644           54001                           TS       L                                     #  SAVE IT IN L
063887,000419: 27,3645           30154                           CA       MPAC                                  #  CALCULATE NEXT
063888,000420: 27,3646           60330                           AD       UPTEMP                                #  RECEIVING ADDRESS
063889,000421: 27,3647           50000                           INDEX    A                                     
063890,000422: 27,3650  E3,1400                                  EBANK=   1400                                  
063891,000423: 27,3650           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
063892,000424: 27,3651  E3,1706                                  EBANK=   TEPHEM                                
063893,000425: 27,3651           10154                           CCS      MPAC                                  #  ARE THERE ANY WORDS LEFT TO BE STORED
063894,000426: 27,3652           13641                           TCF      STORLP71                              #  YES
063895,000427: 27,3653           13703                           TCF      UPOUT                                 #  NO- THEN EXIT UPDATE PROGRAM
063896,000428: 27,3654           00303        ADUPBFM1           ADRES    UPBUFF     -1                         #  SAME AS ADUPBUFF BUT LESS 1 (DON'T MOVE)
063897,000429: 27,3655           13703                           TCF      UPOUT                                 #  NO- EXIT UPDATE (HERE WHEN COMPNUMB = 3)
063898,000430: 
063899,000431:                                                                                                  #  VERB 72 BRANCH
063900,000432: 
063901,000433: 27,3656           35017        UPEND72            CAF      BIT1                                  #  HAVE AN ODD NO. OF COMPONENTS
063902,000434: 27,3657           70300                           MASK     COMPNUMB                              #  BEEN SENT FOR A V72 UPDATE ...
063903,000435: 27,3660           10000                           CCS      A                                     
063904,000436: 27,3661           13663                           TCF      +2                                    #  YES
063905,000437: 27,3662           13752                           TCF      UPERROUT                              #  ERROR- SHOULD BE ODD NO. OF COMPONENTS
063906,000438: 27,3663           45016                           CS       BIT2                                  
063907,000439: 27,3664           60300                           AD       COMPNUMB                              
063908,000440: 27,3665           54154        LDLOOP72           TS       MPAC                                  #  NOW PERFORM THE UPDATE
063909,000441: 27,3666           50000                           INDEX    A                                     
063910,000442: 27,3667           30305                           CAE      UPBUFF     +1                         #  PICK UP NEXT UPDATE WORD
063911,000443: 27,3670           22000                           LXCH     A                                     
063912,000444: 27,3671           10154                           CCS      MPAC                                  #  SET POINTER TO ECADR (MUST BE CCS)
063913,000445: 27,3672           54154                           TS       MPAC                                  
063914,000446: 27,3673           50000                           INDEX    A                                     
063915,000447: 27,3674           30305                           CAE      UPBUFF     +1                         #  PICK UP NEXT ECADR OF REG TO BE UPDATED
063916,000448: 27,3675           54003                           TS       EBANK                                 #  SET EBANK
063917,000449: 27,3676           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
063918,000450: 27,3677           50000                           INDEX    A                                     
063919,000451: 

Page 1506

063921,000453: 27,3700  E3,1400                                  EBANK=   1400                                  
063922,000454: 27,3700           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
063923,000455: 27,3701  E3,1706                                  EBANK=   TEPHEM                                
063924,000456: 27,3701           10154                           CCS      MPAC                                  #  ARE WE THROUGH THE V72 UPDATE...
063925,000457: 27,3702           13665                           TCF      LDLOOP72                              #  NO
063926,000458: 
063927,000459:                                                                                                  #  NORMAL FINISH OF P27
063928,000460: 
063929,000461: 27,3703                        UPOUT              EQUALS                                         
063930,000462: 27,3703           02671                           TC       INTWAKEU                              #  RELEASE GRAB OF ORBITAL INTEGRATION
063931,000463: 27,3704           30301                 +1        CAE      UPOLDMOD                              #  RESTORE PRIOR P27 MODE
063932,000464: 27,3705           05357                           TC       NEWMODEX   +3                         
063933,000465: 27,3706           35021                           CAF      ZERO                                  
063934,000466: 27,3707           54332                           TS       DNLSTCOD                              
063935,000467: 27,3710           03757                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
063936,000468: 27,3711           00006                           EXTEND                                         #  KILL GROUP 6.
063937,000469: 27,3712           35021                           DCA      NEG0                                  
063938,000470: 27,3713           52765                           DXCH     -PHASE6                               
063939,000471: 
063940,000472: 27,3714           05534                           TC       ENDEXT                                #  EXTENDED VERB EXIT
063941,000473: 
063942,000474:                                                                                                  #  VERB 70 BRANCH
063943,000475: 
063944,000476: 27,3715           00006        UPEND70            EXTEND                                         #  V70 DOES THE FOLLOWING WITH DP DELTA
063945,000477: 27,3716           40305                           DCS      UPBUFF                                #  TIME IN UPBUFF
063946,000478: 27,3717           52315                           DXCH     UPBUFF     +8D                        
063947,000479: 27,3720           03561                           TC       TIMEDIDL                              #  DECREMENT AGC CLOCK
063948,000480: 
063949,000481: 27,3721           03752                           TC       UPERROUT                              #  ERROR WHILE DECREMENTING CLOCK -- EXIT
063950,000482: 
063951,000483: 27,3722  E3,1706                                  EBANK=   TEPHEM                                
063952,000484: 27,3722           00006                           EXTEND                                         
063953,000485: 27,3723           40305                           DCS      UPBUFF                                #  COPY DECREMENTERS FOR
063954,000486: 27,3724           52317                           DXCH     UPBUFF     +10D                       #  RESTART PROTECTION
063955,000487: 27,3725           00006                           EXTEND                                         
063956,000488: 27,3726           40305                           DCS      UPBUFF                                
063957,000489: 27,3727           52321                           DXCH     UPBUFF     +12D                       
063958,000490: 
063959,000491: 27,3730           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
063960,000492: 27,3731           04026                           OCT      04026                                 
063961,000493: 
063962,000494: 27,3732           35021                           CAF      ZERO                                  
063963,000495: 27,3733           22007                           ZL                                             
063964,000496: 27,3734           52317                           DXCH     UPBUFF     +10D                       #  DECREMENT CSM STATE VECTOR TIME
063965,000497: 27,3735           21571                           DAS      TETCSM                                
063966,000498: 
063967,000499: 27,3736           35021                           CAF      ZERO                                  
063968,000500: 

Page 1507

063970,000502: 27,3737           22007                           ZL                                             
063971,000503: 27,3740           52321                           DXCH     UPBUFF     +12D                       #  DECREMENT LEM STATE VECTOR TIME
063972,000504: 27,3741           21643                           DAS      TETLEM                                
063973,000505: 27,3742           35021                           CAF      ZERO                                  
063974,000506: 27,3743           22007                           ZL                                             
063975,000507: 27,3744           52305                           DXCH     UPBUFF                                
063976,000508: 27,3745           21710                           DAS      TEPHEM     +1                         #  INCREMENT TP TEPHEM
063977,000509: 27,3746           27706                           ADS      TEPHEM                                
063978,000510: 
063979,000511: 27,3747           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
063980,000512: 27,3750           04026                           OCT      04026                                 
063981,000513: 
063982,000514: 27,3751     0304                                  EBANK=   UPBUFF                                
063983,000515: 
063984,000516: 27,3751           03703                           TC       UPOUT                                 #  GO TO STANDARD UPDATE PROGRAM EXIT
063985,000517: 
063986,000518:                                                                                                  #  ERROR SEQUENCE
063987,000519: 
063988,000520: 27,3752           04400        UPERROUT           TC       FALTON                                #  TURN ON *OPERATOR ERROR* LIGHT
063989,000521: 27,3753           13703                           TCF      UPOUT                                 #  GO TO COMMON UPDATE PROGRAM EXIT
063990,000522: 
063991,000523: 27,3754           04400                 +2        TC       FALTON                                #  TURN ON 'OPERATOR ERROR' LIGHT
063992,000524: 27,3755           03757                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
063993,000525: 27,3756           05534                           TC       ENDEXT                                #  EXTENDED VERB EXIT
063994,000526:                                                                                                  #  (THE PURPOSE OF UPERROUT +2 EXIT IS
063995,000527:                                                                                                  #  TO PROVIDE AN ERROR EXIT WHICH DOES NOT
063996,000528:                                                                                                  #  RESET ANY RESTART GROUPS)
063997,000529: 
063998,000530:                                                                                                  #  :UPACTOFF: IS A ROUTINE TO TURN OFF UPLINK ACTIVITY LIGHT ON ALL EXITS FROM UPDATE PROGRAM (P27).
063999,000531: 
064000,000532: 27,3757           45015        UPACTOFF           CS       BIT3                                  
064001,000533: 27,3760           00006                           EXTEND                                         #  TURN OFF UPLINK ACTIVITY LIGHT
064002,000534: 27,3761           03011                           WAND     DSALMOUT                              #  (BIT 3 OF CHANNEL 11)
064003,000535: 27,3762           00002                           TC       Q                                     

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