Source Code

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

The starting point was the source code of Comanche 51 (separately previously reconstructed from an Apollo-era listing of Comanche 55, flown on Apollo 11). Comanche 51 source code was then modified by undoing changes known to have been made between revisions 44 and 51. The now-reconstructed Comanche 44 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 printout, although the source code would likely have different page numbers in a contemporary Comanche 44 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 51. Here's a guide to the Apollo documentation referenced in those annotations:
In most cases, only the titles (rather than the full texts) of PCRs are known. In addition to the explanatory annotations, there is also a step-by-step commentary about the reconstruction process.

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.

064083,000002:                                                                                                  ## Copyright:   Public domain.
064084,000003:                                                                                                  ## Filename:    UPDATE_PROGRAM.agc
064085,000004:                                                                                                  ## Purpose:     A section of Comanche revision 044.
064086,000005:                                                                                                  ##              It is part of the reconstructed source code for the
064087,000006:                                                                                                  ##              original release of the flight software for the Command
064088,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
064089,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
064090,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
064091,000010:                                                                                                  ##              exactly match those specified for Comanche 44 in NASA drawing
064092,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
064093,000012:                                                                                                  ##              reconstruction is correct.
064094,000013:                                                                                                  ## Assembler:   yaYUL
064095,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
064096,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
064097,000016:                                                                                                  ## Mod history: 2020-12-03 MAS  Created from Comanche 51.
064098,000017: 

Page 1497

064100,000019:                                                                                                  #  PROGRAM NAME:         P27
064101,000020:                                                                                                  #  WRITTEN BY:           KILROY/ DE WOLF
064102,000021: 
064103,000022:                                                                                                  #  MOD NO:               6
064104,000023:                                                                                                  #  MOD BY:               KILROY
064105,000024:                                                                                                  #  DATE:                 01DEC67
064106,000025: 
064107,000026:                                                                                                  #  LOG SECTION:          UPDATE PROGRAM.
064108,000027: 
064109,000028:                                                                                                  #  FUNCT. DESCR: P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
064110,000029:                                                                                                  #                        INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
064111,000030:                                                                                                  #                        THE P27 PROGRAM WILL ACCEPT UPDATES
064112,000031:                                                                                                  #                        ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
064113,000032:                                                                                                  #                        P02, AND FRESH START FOR THE CSM
064114,000033: 
064115,000034:                                                                                                  #  CALLING SEQ:          PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
064116,000035: 
064117,000036:                                                                                                  #  SUBROUTINES:          TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
064118,000037:                                                                                                  #                        INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
064119,000038: 
064120,000039:                                                                                                  #  NORMAL EXIT:          TC ENDEXT
064121,000040: 
064122,000041:                                                                                                  #  ALARM/ABORT:          TC FALTON FOLLOWED BY TC ENDEXT
064123,000042: 
064124,000043:                                                                                                  #  RESTARTS:             P27 IS RESTART PROTECTED IN TWO WAYS ...
064125,000044:                                                                                                  #                        1.      PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
064126,000045:                                                                                                  #                                DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
064127,000046:                                                                                                  #                                NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
064128,000047:                                                                                                  #                                ACTIVITY LIGHT IS TURNED OFF.  (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
064129,000048:                                                                                                  #                                V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
064130,000049:                                                                                                  #                        2.      AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
064131,000050:                                                                                                  #                                PROTECTED AGAINST RESTARTS.
064132,000051: 
064133,000052:                                                                                                  #  DEBRIS:               UPBUFF  (20D)   TEMP STORAGE FOR ADDRESSES AND CONTENTS.
064134,000053:                                                                                                  #                        UPVERB  (1)     VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
064135,000054:                                                                                                  #                        UPOLDMOD(1)     FOR MAJOR MODE INTERRUPTED BY P27.
064136,000055:                                                                                                  #                        COMPNUMB(1)     TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
064137,000056:                                                                                                  #                        UPCOUNT (1)     ACTUAL NUMBER OF COMPONENTS RECEIVED.
064138,000057:                                                                                                  #                        UPTEMP  (1)     SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
064139,000058: 
064140,000059:                                                                                                  #  INPUT:
064141,000060: 
064142,000061:                                                                                                  #        ENTRY:                  DESCRIPTION
064143,000062:                                                                                                  #        V70EXXXXXEXXXXXE        (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
064144,000063:                                                                                                  #                                IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
064145,000064:                                                                                                  #                                VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME(TETLEM).
064146,000065:                                                                                                  #                                THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).

Page 1498

064148,000067:                                                                                                  #        V71EIIEAAAAE            (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
064149,000068:                                                                                                  #        XXXXXE                  ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
064150,000069:                                                                                                  #        XXXXXE                  IT IS .GE. 3 .AND. .LE. 20D.,
064151,000070:                                                                                                  #                                AND (AAAA + II -3) DOES NOT PRODUCE AN ADDRESS IN THE
064152,000071:                                                                                                  #        9 NEXT BANK
064153,000072:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
064154,000073:                                                                                                  #        V72EIIE                 (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
064155,000074:                                                                                                  #        AAAAEXXXXXE             LOADED INTO ERASABLE LOCATIONS, AAAA.
064156,000075:                                                                                                  #        AAAAEXXXXXE             II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
064157,000076:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
064158,000077: 
064159,000078:                                                                                                  #        V73EXXXXXEXXXXXE        (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
064160,000079:                                                                                                  #                                INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
064161,000080:                                                                                                  #                                CENTISECONDS SCALED AT (2)28.
064162,000081:                                                                                                  #                                THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
064163,000082: 
064164,000083:                                                                                                  #  OUTPUT:               IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
064165,000084:                                                                                                  #                        COMPLEMENT BIT3 OF FLAGWORD7.
064166,000085: 
064167,000086:                                                                                                  #  ADDITIONAL NOTES:     VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
064168,000087:                                                                                                  #                        1.  CSM/LM STATE VECTOR UPDATE
064169,000088:                                                                                                  #                        2.  REFSMMAT UPDATE
064170,000089: 
064171,000090:                                                                                                  #        THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE ----
064172,000091: 
064173,000092:                                                                                                  #        1.  CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
064174,000093:                                                                                                  #                ENTRIES:        DATA DEFINITION:                                SCALE FACTORS:
064175,000094:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
064176,000095:                                                                                                  #                   21E          NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
064177,000096:                                                                                                  #                 AAAAE          ECADR OF 'UPSVFLAG'
064178,000097:                                                                                                  #                XXXXXE          STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
064179,000098:                                                                                                  #                                                         00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
064180,000099:                                                                                                  #                XXXXXEXXXXXE    X POSITION
064181,000100:                                                                                                  #                XXXXXEXXXXXE    Y POSITION
064182,000101:                                                                                                  #                XXXXXEXXXXXE    Z POSITION
064183,000102:                                                                                                  #                XXXXXEXXXXXE    X VELOCITY
064184,000103:                                                                                                  #                XXXXXEXXXXXE    Y VELOCITY
064185,000104:                                                                                                  #                XXXXXEXXXXXE    Z VELOCITY
064186,000105:                                                                                                  #                XXXXXEXXXXXE    TIME FROM AGC CLOCK ZERO
064187,000106:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
064188,000107: 
064189,000108:                                                                                                  #        2.  REFSMMAT (ALL DATA ENTRIES IN OCTAL)
064190,000109:                                                                                                  #                ENTRIES:                DATA DEFINITIONS:                               SCALE FACTORS:

Page 1499

064192,000111:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
064193,000112:                                                                                                  #                   24E          NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
064194,000113:                                                                                                  #                 AAAAE          ECADR OF 'REFSMMAT'
064195,000114:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 1                                  2(-1)
064196,000115:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 2                                  2(-1)
064197,000116:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 3                                  2(-1)
064198,000117:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 1                                  2(-1)
064199,000118:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 2                                  2(-1)
064200,000119:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 3                                  2(-1)
064201,000120:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 1                                  2(-1)
064202,000121:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 2                                  2(-1)
064203,000122:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 3                                  2(-1)
064204,000123:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
064205,000124: 
064206,000125: 07,3777                                           BANK     07                                    
064207,000126: 43,2000                                           SETLOC   EXTVERBS                              
064208,000127: 43,2000                                           BANK                                           
064209,000128: 
064210,000129: 43,3726  E3,1706                                  EBANK=   TEPHEM                                
064211,000130: 
064212,000131: 43,3726                                           COUNT*   $$/P27                                
064213,000132: 43,3726           35021        V70UPDAT           CAF      UP70                                  #  COMES HERE ON V70E
064214,000133: 43,3727           13735                           TCF      V73UPDAT   +1                         
064215,000134: 
064216,000135: 43,3730           35017        V71UPDAT           CAF      UP71                                  #  COMES HERE ON V71E
064217,000136: 43,3731           13735                           TCF      V73UPDAT   +1                         
064218,000137: 
064219,000138: 43,3732           35016        V72UPDAT           CAF      UP72                                  #  COMES HERE ON V72E
064220,000139: 43,3733           13735                           TCF      V73UPDAT   +1                         
064221,000140: 
064222,000141: 43,3734           36214        V73UPDAT           CAF      UP73                                  #  COMES HERE ON V73E
064223,000142: 
064224,000143: 43,3735           54331                 +1        TS       UPVERBSV                              #  SAVE UPVERB UNTIL IT'S OK TO ENTER P27
064225,000144: 
064226,000145: 43,3736           02076                           TC       TESTXACT                              #  GRAB DISPLAY IF AVAILABLE, OTHERWISE
064227,000146:                                                                                                  #  TURN *OPERATOR ERROR* ON AND TERMINATE JOB
064228,000147: 
064229,000148: 43,3737           31011                           CA       MODREG                                #  CHECK IF UPDATE ALLOWED
064230,000149: 43,3740           00006                           EXTEND                                         #  FIRST CHECK FOR MODREG = +0, -0
064231,000150: 43,3741           13743                           BZF      +2                                    #  (+0 = P00, -0 = FRESHSTART)
064232,000151: 43,3742           03753                           TC       CKMDMORE                              #  NOW CHECK FOR PROGRAM WHICH CAN BE
064233,000152:                                                                                                  #  INTERRUPTED BY P27.
064234,000153: 
064235,000154: 43,3743           31011                           CAE      MODREG                                #  UPDATE ALLOWED.
064236,000155: 43,3744           54301                           TS       UPOLDMOD                              #  SAVE CURRENT MAJOR MODE

Page 1500

064238,000157: 43,3745           30331                           CAE      UPVERBSV                              #  SET UPVERB TO INDICATE TO P27
064239,000158: 43,3746           54302                           TS       UPVERB                                #  WHICH EXTENDED VERB CALLED IT.
064240,000159: 
064241,000160: 43,3747           35017                           CAF      ONE                                   
064242,000161: 43,3750           54303                           TS       UPCOUNT                               #  INITIALIZE UPCOUNT TO 1
064243,000162: 
064244,000163: 43,3751           04701                           TC       POSTJUMP                              #  LEAVE EXTENDED VERB BANK AND
064245,000164: 43,3752           57373                           CADR     UPPART2                               #  GO TO UPDATE PROGRAM (P27) BANK.
064246,000165: 
064247,000166: 43,3753           40101        CKMDMORE           CS       FLAGWRD5                              
064248,000167: 43,3754           75010                           MASK     BIT8                                  #  CHECK IF COMPUTER IS LGC
064249,000168: 43,3755           10000                           CCS      A                                     #  IS COMPUTER LGC OR AGC
064250,000169: 43,3756           13764        UPERLEM            TCF      UPERROR                               #  ERROR- IT'S THE LEM + MODE IS NOT POO.
064251,000170: 43,3757           45016                           CS       TWO                                   
064252,000171: 43,3760           71011                           MASK     MODREG                                
064253,000172: 43,3761           10000                           CCS      A                                     
064254,000173: 43,3762           13764        UPERCMC            TCF      UPERROR                               #  ERROR- IT'S THE CMC AND MODE IS NOT
064255,000174:                                                                                                  #  P00 OR P02.
064256,000175: 43,3763           00002                           TC       Q                                     #  ALLOW UPDATE TO PROCEED
064257,000176: 
064258,000177: 43,3764           04701        UPERROR            TC       POSTJUMP                              #  TURN ON 'OPERATOR ERROR' LIGHT
064259,000178: 43,3765           57754                           CADR     UPERROUT   +2                         #  GO TO COMMON UPDATE PROGRAM EXIT
064260,000179: 
064261,000180: 43,3766  30,2000                                  SBANK=   LOWSUPER                              
064262,000181: 43,3766     5021               UP70               EQUALS   ZERO                                  
064263,000182: 43,3766     5017               UP71               EQUALS   ONE                                   
064264,000183: 43,3766     5016               UP72               EQUALS   TWO                                   
064265,000184: 43,3766     6214               UP73               EQUALS   THREE                                 
064266,000185: 
064267,000186: 04,3754                                           BANK     04                                    
064268,000187: 27,2000                                           SETLOC   UPDATE2                               
064269,000188: 27,2000                                           BANK                                           
064270,000189: 
064271,000190: 27,3373                                           COUNT*   $$/P27                                
064272,000191: 
064273,000192: 27,3373                        UPPART2            EQUALS                                         #  UPDATE PROGRAM - PART 2
064274,000193: 
064275,000194: 27,3373           05412                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO RESTORE OLD MODE
064276,000195: 27,3374           07026                           OCT      07026                                 #  AND DOWNLIST AND EXIT IF RESTART OCCURS.
064277,000196: 27,3375           30000                           OCT      30000                                 #  PRIORITY SAME AS CHRPRIO
064278,000197: 27,3376     0304                                  EBANK=   UPBUFF                                
064279,000198: 27,3376           03704 56060                     2CADR    UPOUT      +1                         
064280,000199: 
064281,000200: 27,3400           35017                           CAF      ONE                                   
064282,000201: 27,3401           54332                           TS       DNLSTCOD                              #  DOWNLIST
064283,000202: 
064284,000203: 27,3402           05354                           TC       NEWMODEX                              #  SET MAJOR MODE = 27

Page 1501

064286,000205: 27,3403           00033                           DEC      27         B-14                       
064287,000206: 
064288,000207: 27,3404           50302                           INDEX    UPVERB                                #  BRANCH DEPENDING ON WHETHER THE UPDATE
064289,000208: 27,3405           13406                           TCF      +1                                    #  VERB REQUIRES A FIXED OR VARIABLE NUMBER
064290,000209: 27,3406           13411                           TCF      +3                                    #  V70 FIXED.               (OF COMPONENTS.
064291,000210: 27,3407           13414                           TCF      OHWELL1                               #  V71 VARIABLE - GO GET NO. OF COMPONENTS
064292,000211: 27,3410           13414                           TCF      OHWELL1                               #  V72 VARIABLE - GO GET NO. OF COMPONENTS
064293,000212: 27,3411           35016                           CA       TWO                                   #  V73 (AND V70) FIXED
064294,000213: 27,3412           54300                           TS       COMPNUMB                              #  SET NUMBER OF COMPONENTS TO 2.
064295,000214: 27,3413           13437                           TCF      OHWELL2                               #  GO GET THE TWO UPDATE COMPONENTS
064296,000215: 
064297,000216: 27,3414           33507        OHWELL1            CAF      ADUPBUFF                              #  * REQUEST USER TO SEND NUMBER  *
064298,000217: 27,3415           54156                           TS       MPAC       +2                         #  * OF COMPONENTS PARAMETER(II). *
064299,000218: 27,3416           33510                 +2        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
064300,000219: 27,3417           04662                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
064301,000220: 27,3420           20561                           CADR     GOXDSPF                               #  TO REQUEST II.
064302,000221: 27,3421           13704                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
064303,000222: 27,3422           13416                           TCF      OHWELL1    +2                         
064304,000223: 27,3423           03500                           TC       CK4V32                                #  DATA OR V32 RETURN
064305,000224: 27,3424           45016                           CS       BIT2                                  
064306,000225: 27,3425           60304                           AD       UPBUFF                                #  IS II (NUMBER OF COMPONENTS PARAMETER)
064307,000226: 27,3426           00006                           EXTEND                                         #  .GE. 3 AND .LE. 20D.
064308,000227: 27,3427           63416                           BZMF     OHWELL1    +2                         
064309,000228: 27,3430           40304                           CS       UPBUFF                                
064310,000229: 27,3431           64376                           AD       UP21                                  
064311,000230: 27,3432           00006                           EXTEND                                         
064312,000231: 27,3433           63416                           BZMF     OHWELL1    +2                         
064313,000232: 27,3434           30304                           CAE      UPBUFF                                
064314,000233: 27,3435           54300                           TS       COMPNUMB                              #  SAVE II IN COMPNUMB
064315,000234: 
064316,000235:                                                                                                  #  UPBUFF LOADING SEQUENCE
064317,000236: 
064318,000237: 27,3436           24303                           INCR     UPCOUNT                               #  INCREMENT COUNT OF COMPONENTS RECEIVED.
064319,000238: 27,3437           33654        OHWELL2            CAF      ADUPBFM1                              #  CALCULATE LOCATION (ECADR) IN UPBUFF
064320,000239: 27,3440           60303                           AD       UPCOUNT                               #  WHERE NEXT COMPONENT SHOULD BE STORED.
064321,000240: 27,3441           54156                 +2        TS       MPAC       +2                         #  PLACE ECADR INTO R3.
064322,000241: 27,3442           33510                 +3        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
064323,000242: 27,3443           04662                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
064324,000243: 27,3444           20561                           CADR     GOXDSPF                               #  TO REQUEST DATA.
064325,000244: 27,3445           13704                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN.
064326,000245: 27,3446           13442                           TCF      OHWELL2    +3                         #  V33 PROCEED RETURN
064327,000246: 27,3447           03500                           TC       CK4V32                                #  DATA OR V32 RETURN
064328,000247: 27,3450           40303                           CS       UPCOUNT                               #  HAVE WE FINISHED RECEIVING ALL
064329,000248: 27,3451           60300                           AD       COMPNUMB                              #  THE DATA WE EXPECTED.
064330,000249: 27,3452           00006                           EXTEND                                         
064331,000250: 27,3453           63455                           BZMF     UPVERIFY                              #  YES- GO TO VERIFICATION SEQUENCE
064332,000251: 27,3454           13436                           TCF      OHWELL2    -1                         #  NO- REQUEST ADDITIONAL DATA.
064333,000252: 

Page 1502

064335,000254:                                                                                                  #  VERIFY SEQUENCE
064336,000255: 27,3455           33506        UPVERIFY           CAF      ADUPTEMP                              #  PLACE ECADR WHERE COMPONENT NO. INDEX
064337,000256: 27,3456           54156                           TS       MPAC       +2                         #  IS TO BE STORED INTO R3.
064338,000257: 27,3457           33511                           CAF      UPVRFYNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
064339,000258: 27,3460           04662                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N02 TO REQUEST
064340,000259: 27,3461           20561                           CADR     GOXDSPF                               #  DATA CORRECTION OR VERIFICATION.
064341,000260: 27,3462           13704                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
064342,000261: 27,3463           13512                           TCF      UPSTORE                               #  V33 DATA SENT IS GOOD.  GO STORE IT.
064343,000262: 27,3464           03500                           TC       CK4V32                                #  COMPONENT NO. INDEX OR V32 RETURN
064344,000263: 27,3465           30330                           CA       UPTEMP                                #  DOES THE COMPONENT NO. INDEX JUST SENT
064345,000264: 27,3466           00006                           EXTEND                                         #  SPECIFY A LEGAL COMPONENT NUMBER?
064346,000265: 27,3467           63455                           BZMF     UPVERIFY                              #  NO, IT IS NOT POSITIVE NONZERO
064347,000266: 27,3470           40330                           CS       UPTEMP                                
064348,000267: 27,3471           60300                           AD       COMPNUMB                              
064349,000268: 27,3472           65017                           AD       BIT1                                  
064350,000269: 27,3473           00006                           EXTEND                                         
064351,000270: 27,3474           63455                           BZMF     UPVERIFY                              #  NO
064352,000271: 27,3475           33654                           CAF      ADUPBFM1                              #  YES- BASED ON THE COMPONENT NO. INDEX
064353,000272: 27,3476           60330                           AD       UPTEMP                                #  CALCULATE THE ECADR OF LOCATION IN
064354,000273: 27,3477           13441                           TCF      OHWELL2    +2                         #  UPBUFF WHICH USER WANTS TO CHANGE.
064355,000274: 
064356,000275: 27,3500  27,3704               UPOUT4             EQUALS   UPOUT      +1                         #  COMES HERE ON V34 TO TERMINATE UPDATE
064357,000276: 
064358,000277:                                                                                                  #  CHECK FOR VERB 32 SEQUENCE
064359,000278: 
064360,000279: 27,3500           40154        CK4V32             CS       MPAC                                  #  ON DATA RETURN FROM 'GOXDSPF'
064361,000280: 27,3501           75012                           MASK     BIT6                                  #  ON DATA RETURN FROM "GOXDSP"& THE CON-
064362,000281: 27,3502           10000                           CCS      A                                     #  TENTS OF MPAC = VERB.  SO TEST FOR V32.
064363,000282: 27,3503           00002                           TC       Q                                     #  IT'S NOT A V32, IT'S DATA.  PROCEED.
064364,000283: 27,3504           50002                           INDEX    Q                                     
064365,000284: 27,3505           77771                           TC       0          -6                         #  V32 ENCOUNTERED - GO BACK AND GET DATA
064366,000285: 
064367,000286: 27,3506           00330        ADUPTEMP           ADRES    UPTEMP                                #  ADDRESS OF TEMP STORAGE FOR CORRECTIONS
064368,000287: 27,3507           00304        ADUPBUFF           ADRES    UPBUFF                                #  ADDRESS OF UPDATE DATA STORAGE BUFFER
064369,000288: 27,3510           05201        UPLOADNV           VN       2101                                  #  VERB 21 NOUN 01
064370,000289: 27,3511           05202        UPVRFYNV           VN       2102                                  #  VERB 21 NOUN 02
064371,000290: 27,3512     4376               UP21               =        MD1                                   #  DEC 21 = MAX NO OF COMPONENTS +1
064372,000291: 27,3512     5022               UPDTPHAS           EQUALS   FIVE                                  
064373,000292: 
064374,000293:                                                                                                  #  PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
064375,000294: 
064376,000295: 27,3512                        UPSTORE            EQUALS                                         #  GROUND HAS VERIFIED UPDATE.  STORE DATA.
064377,000296: 
064378,000297: 27,3512           00004                           INHINT                                         
064379,000298: 
064380,000299: 27,3513           30103                           CAE      FLAGWRD7                              #  INVERT VERIFLAG (BIT 3 OF FLAGWRD7) TO
064381,000300: 27,3514           56001                           XCH      L                                     #  INDICATE TO THE GROUND (VIA DOWNLINK)
064382,000301: 27,3515           35015                           CAF      BIT3                                  #  THAT THE V33 (WHICH THE GROUND SENT TO

Page 1503

064384,000303: 27,3516           00006                           EXTEND                                         #  VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
064385,000304: 27,3517           06001                           RXOR     LCHAN                                 #  RECEIVED BY THE UPDATE PROGRAM
064386,000305: 27,3520           54103                           TS       FLAGWRD7                              
064387,000306: 
064388,000307: 27,3521           05412                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO REDO THE UPDATE
064389,000308: 27,3522           04026                           OCT      04026                                 #  DATA STORE IF A RESTART OCCURS.
064390,000309: 27,3523           00004                           INHINT                                         #  (BECAUSE PHASCHNG DID A RELINT)
064391,000310: 
064392,000311: 27,3524           45016                           CS       TWO                                   #  GO TO UPFNDVAC IF INSTALL IS REQUIRED,
064393,000312: 27,3525           60302                           AD       UPVERB                                #  THAT IS, IF IT'S A V70 - V72.
064394,000313: 27,3526           00006                           EXTEND                                         #  GO TO UPEND73 IF IT'S A V73.
064395,000314: 27,3527           63536                           BZMF     UPFNDVAC                              
064396,000315: 
064397,000316:                                                                                                  #  VERB 73 BRANCH
064398,000317: 
064399,000318: 27,3530           00006        UPEND73            EXTEND                                         #  V73-PERFORM DP OCTAL AGC CLOCK INCREMENT
064400,000319: 27,3531           30305                           DCA      UPBUFF                                
064401,000320: 27,3532           52315                           DXCH     UPBUFF     +8D                        
064402,000321: 27,3533           03561                           TC       TIMEDIDL                              
064403,000322: 27,3534           04400                           TC       FALTON                                #  ERROR- TURN ON *OPERATOR ERROR* LIGHT
064404,000323: 27,3535           03704                           TC       UPOUT      +1                         #  GO TO COMMON UPDATE PROGRAM EXIT
064405,000324: 
064406,000325: 27,3536           34371        UPFNDVAC           CAF      CHRPRIO                               #  (USE EXTENDED VERB PRIORITY)
064407,000326: 27,3537           05147                           TC       FINDVAC                               #  GET VAC AREA FOR 'CALL INTSTALL'
064408,000327: 27,3540  E3,1706                                  EBANK=   TEPHEM                                
064409,000328: 27,3540           03543 56063                     2CADR    UPJOB                                 #  (NOTE:  THIS WILL ALSO SET EBANK FOR
064410,000329: 27,3542           05217                           TC       ENDOFJOB                              #  'TEPHEM' UPDATE BY V70)
064411,000330: 
064412,000331: 27,3543           06006        UPJOB              TC       INTPRET                               #  THIS COULD BE A STATE VECTOR UPDATE -- SO
064413,000332: 27,3544           77624                           CALL                                           #  WAIT (PUT JOB TO SLEEP) IF ORBIT INT(OI)
064414,000333: 27,3545           27442                                    INTSTALL                              #  IS IN PROGRESS -- OR -- GRAB OI AND RETURN
064415,000334:                                                                                                  #  TO UPWAKE IF OI IS NOT IN PROGRESS.
064416,000335: 
064417,000336: 27,3546           77776        UPWAKE             EXIT                                           
064418,000337: 
064419,000338: 27,3547           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
064420,000339: 27,3550           04026                           OCT      04026                                 
064421,000340: 
064422,000341: 27,3551           05546                           TC       UPFLAG                                #  SET INTEGRATION RESTART BIT
064423,000342: 27,3552           00236                           ADRES    REINTFLG                              
064424,000343: 27,3553           00004                           INHINT                                         
064425,000344: 27,3554                        UPPART3            EQUALS                                         
064426,000345: 
064427,000346: 27,3554           50302                           INDEX    UPVERB                                #  BRANCH TO THE APPROPRIATE UPDATE VERB
064428,000347: 27,3555           13556                           TCF      +1                                    #  ROUTINE TO ACTUALLY PERFORM THE UPDATE
064429,000348: 27,3556           13715                           TCF      UPEND70                               #  V70
064430,000349: 27,3557           13624                           TCF      UPEND71                               #  V71
064431,000350: 27,3560           13656                           TCF      UPEND72                               #  V72
064432,000351: 

Page 1504

064434,000353:                                                                                                  #  ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
064435,000354: 27,3561           00006        TIMEDIDL           EXTEND                                         
064436,000355: 27,3562           22330                           QXCH     UPTEMP                                #  SAVE Q FOR RETURN
064437,000356: 27,3563           35021                           CAF      ZERO                                  #  ZERO AND SAVE TIME2,TIME1
064438,000357: 27,3564           22007                           ZL                                             
064439,000358: 27,3565           52025                           DXCH     TIME2                                 
064440,000359: 27,3566           52327                           DXCH     UPBUFF     +18D                       #  STORE IN CASE OF OVERFLOW
064441,000360: 
064442,000361: 27,3567           35022                           CAF      UPDTPHAS                              #  DO
064443,000362: 27,3570           54001                           TS       L                                     #  A
064444,000363: 27,3571           40000                           COM                                            #  QUICK
064445,000364: 27,3572           52765                           DXCH     -PHASE6                               #  PHASCHNG
064446,000365: 
064447,000366: 27,3573           00004        TIMEDIDR           INHINT                                         
064448,000367: 27,3574           35021                           CAF      ZERO                                  
064449,000368: 27,3575           22007                           ZL                                             #  PICK UP INCREMENTER(AND ZERO
064450,000369: 27,3576           54156                           TS       MPAC       +2                         #  IT IN CASE OF RESTARTS) AND
064451,000370: 27,3577           52315                           DXCH     UPBUFF     +8D                        #  STORE IT
064452,000371: 27,3600           52155                           DXCH     MPAC                                  #  INTO MPAC FOR TPAGREE.
064453,000372: 
064454,000373: 27,3601           00006                           EXTEND                                         
064455,000374: 27,3602           30327                           DCA      UPBUFF     +18D                       
064456,000375: 27,3603           20155                           DAS      MPAC                                  #  FORM SUM IN MPAC
064457,000376: 27,3604           00006                           EXTEND                                         
064458,000377: 27,3605           13614                           BZF      DELTAOK                               #  TEST FOR OVERFLOW
064459,000378: 27,3606           35021                           CAF      ZERO                                  
064460,000379: 27,3607           52327                           DXCH     UPBUFF     +18D                       #  OVERFLOW, RESTORE OLD VALUE OF CLOCK
064461,000380: 27,3610           20025                           DAS      TIME2                                 #  AND TURN ON OPERATOR ERROR
064462,000381: 
064463,000382: 27,3611           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
064464,000383: 27,3612           04026                           OCT      04026                                 
064465,000384: 
064466,000385: 27,3613           00330                           TC       UPTEMP                                #  GO TO ERROR EXIT
064467,000386: 
064468,000387: 27,3614           07226        DELTAOK            TC       TPAGREE                               #  FORCE SIGN AGREEMENT
064469,000388: 27,3615           52155                           DXCH     MPAC                                  
064470,000389: 27,3616           20025                           DAS      TIME2                                 #  INCREMENT TIME2,TIME1
064471,000390: 
064472,000391: 27,3617           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
064473,000392: 27,3620           04026                           OCT      04026                                 
064474,000393: 
064475,000394: 27,3621           00004                           INHINT                                         
064476,000395: 27,3622           50330                           INDEX    UPTEMP                                #  (CODED THIS WAY FOR RESTART PROTECTION)
064477,000396: 27,3623           00001                           TC       1                                     #  NORMAL RETURN
064478,000397: 
064479,000398:                                                                                                  #  VERB 71 BRANCH
064480,000399: 
064481,000400: 27,3624           30305        UPEND71            CAE      UPBUFF     +1                         #  SET EBANK
064482,000401: 27,3625           54003                           TS       EBANK                                 #        AND

Page 1505

064484,000403: 27,3626           74373                           MASK     LOW8                                  #  CALCULATE
064485,000404: 27,3627           54330                           TS       UPTEMP                                #  S-REG VALUE OF RECEIVING AREA
064486,000405: 27,3630           67714                           AD       NEG3                                  #  IN THE PROCESS OF
064487,000406: 27,3631           60300                           AD       COMPNUMB                              #  PERFORMING
064488,000407: 27,3632           00006                           EXTEND                                         #  THIS UPDATE
064489,000408: 27,3633           13641                           BZF      STORLP71                              #  WILL WE
064490,000409: 27,3634           75007                           MASK     BIT9                                  #  OVERFLOW
064491,000410: 27,3635           10000                           CCS      A                                     #  INTO THE NEXT EBANK....
064492,000411: 27,3636           13752                           TCF      UPERROUT                              #  YES
064493,000412: 
064494,000413: 27,3637           37714                           CA       NEG3                                  #  NO- CALCULATE NUMBER OF
064495,000414: 27,3640           60300                           AD       COMPNUMB                              #  WORDS TO BE STORED MINUS ONE
064496,000415: 27,3641           54154        STORLP71           TS       MPAC                                  #  SAVE NO. OF WORDS REMAINING MINUS ONE
064497,000416: 27,3642           50000                           INDEX    A                                     #  TAKE NEXT UPDATE WORD FROM
064498,000417: 27,3643           30306                           CA       UPBUFF     +2                         #  UPBUFF AND
064499,000418: 27,3644           54001                           TS       L                                     #  SAVE IT IN L
064500,000419: 27,3645           30154                           CA       MPAC                                  #  CALCULATE NEXT
064501,000420: 27,3646           60330                           AD       UPTEMP                                #  RECEIVING ADDRESS
064502,000421: 27,3647           50000                           INDEX    A                                     
064503,000422: 27,3650  E3,1400                                  EBANK=   1400                                  
064504,000423: 27,3650           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
064505,000424: 27,3651  E3,1706                                  EBANK=   TEPHEM                                
064506,000425: 27,3651           10154                           CCS      MPAC                                  #  ARE THERE ANY WORDS LEFT TO BE STORED
064507,000426: 27,3652           13641                           TCF      STORLP71                              #  YES
064508,000427: 27,3653           13703                           TCF      UPOUT                                 #  NO- THEN EXIT UPDATE PROGRAM
064509,000428: 27,3654           00303        ADUPBFM1           ADRES    UPBUFF     -1                         #  SAME AS ADUPBUFF BUT LESS 1 (DON'T MOVE)
064510,000429: 27,3655           13703                           TCF      UPOUT                                 #  NO- EXIT UPDATE (HERE WHEN COMPNUMB = 3)
064511,000430: 
064512,000431:                                                                                                  #  VERB 72 BRANCH
064513,000432: 
064514,000433: 27,3656           35017        UPEND72            CAF      BIT1                                  #  HAVE AN ODD NO. OF COMPONENTS
064515,000434: 27,3657           70300                           MASK     COMPNUMB                              #  BEEN SENT FOR A V72 UPDATE ...
064516,000435: 27,3660           10000                           CCS      A                                     
064517,000436: 27,3661           13663                           TCF      +2                                    #  YES
064518,000437: 27,3662           13752                           TCF      UPERROUT                              #  ERROR- SHOULD BE ODD NO. OF COMPONENTS
064519,000438: 27,3663           45016                           CS       BIT2                                  
064520,000439: 27,3664           60300                           AD       COMPNUMB                              
064521,000440: 27,3665           54154        LDLOOP72           TS       MPAC                                  #  NOW PERFORM THE UPDATE
064522,000441: 27,3666           50000                           INDEX    A                                     
064523,000442: 27,3667           30305                           CAE      UPBUFF     +1                         #  PICK UP NEXT UPDATE WORD
064524,000443: 27,3670           22000                           LXCH     A                                     
064525,000444: 27,3671           10154                           CCS      MPAC                                  #  SET POINTER TO ECADR (MUST BE CCS)
064526,000445: 27,3672           54154                           TS       MPAC                                  
064527,000446: 27,3673           50000                           INDEX    A                                     
064528,000447: 27,3674           30305                           CAE      UPBUFF     +1                         #  PICK UP NEXT ECADR OF REG TO BE UPDATED
064529,000448: 27,3675           54003                           TS       EBANK                                 #  SET EBANK
064530,000449: 27,3676           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
064531,000450: 27,3677           50000                           INDEX    A                                     
064532,000451: 

Page 1506

064534,000453: 27,3700  E3,1400                                  EBANK=   1400                                  
064535,000454: 27,3700           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
064536,000455: 27,3701  E3,1706                                  EBANK=   TEPHEM                                
064537,000456: 27,3701           10154                           CCS      MPAC                                  #  ARE WE THROUGH THE V72 UPDATE...
064538,000457: 27,3702           13665                           TCF      LDLOOP72                              #  NO
064539,000458: 
064540,000459:                                                                                                  #  NORMAL FINISH OF P27
064541,000460: 
064542,000461: 27,3703                        UPOUT              EQUALS                                         
064543,000462: 27,3703           02671                           TC       INTWAKEU                              #  RELEASE GRAB OF ORBITAL INTEGRATION
064544,000463: 27,3704           30301                 +1        CAE      UPOLDMOD                              #  RESTORE PRIOR P27 MODE
064545,000464: 27,3705           05357                           TC       NEWMODEX   +3                         
064546,000465: 27,3706           35021                           CAF      ZERO                                  
064547,000466: 27,3707           54332                           TS       DNLSTCOD                              
064548,000467: 27,3710           03757                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
064549,000468: 27,3711           00006                           EXTEND                                         #  KILL GROUP 6.
064550,000469: 27,3712           35021                           DCA      NEG0                                  
064551,000470: 27,3713           52765                           DXCH     -PHASE6                               
064552,000471: 
064553,000472: 27,3714           05534                           TC       ENDEXT                                #  EXTENDED VERB EXIT
064554,000473: 
064555,000474:                                                                                                  #  VERB 70 BRANCH
064556,000475: 
064557,000476: 27,3715           00006        UPEND70            EXTEND                                         #  V70 DOES THE FOLLOWING WITH DP DELTA
064558,000477: 27,3716           40305                           DCS      UPBUFF                                #  TIME IN UPBUFF
064559,000478: 27,3717           52315                           DXCH     UPBUFF     +8D                        
064560,000479: 27,3720           03561                           TC       TIMEDIDL                              #  DECREMENT AGC CLOCK
064561,000480: 
064562,000481: 27,3721           03752                           TC       UPERROUT                              #  ERROR WHILE DECREMENTING CLOCK -- EXIT
064563,000482: 
064564,000483: 27,3722  E3,1706                                  EBANK=   TEPHEM                                
064565,000484: 27,3722           00006                           EXTEND                                         
064566,000485: 27,3723           40305                           DCS      UPBUFF                                #  COPY DECREMENTERS FOR
064567,000486: 27,3724           52317                           DXCH     UPBUFF     +10D                       #  RESTART PROTECTION
064568,000487: 27,3725           00006                           EXTEND                                         
064569,000488: 27,3726           40305                           DCS      UPBUFF                                
064570,000489: 27,3727           52321                           DXCH     UPBUFF     +12D                       
064571,000490: 
064572,000491: 27,3730           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
064573,000492: 27,3731           04026                           OCT      04026                                 
064574,000493: 
064575,000494: 27,3732           35021                           CAF      ZERO                                  
064576,000495: 27,3733           22007                           ZL                                             
064577,000496: 27,3734           52317                           DXCH     UPBUFF     +10D                       #  DECREMENT CSM STATE VECTOR TIME
064578,000497: 27,3735           21571                           DAS      TETCSM                                
064579,000498: 
064580,000499: 27,3736           35021                           CAF      ZERO                                  
064581,000500: 

Page 1507

064583,000502: 27,3737           22007                           ZL                                             
064584,000503: 27,3740           52321                           DXCH     UPBUFF     +12D                       #  DECREMENT LEM STATE VECTOR TIME
064585,000504: 27,3741           21643                           DAS      TETLEM                                
064586,000505: 27,3742           35021                           CAF      ZERO                                  
064587,000506: 27,3743           22007                           ZL                                             
064588,000507: 27,3744           52305                           DXCH     UPBUFF                                
064589,000508: 27,3745           21710                           DAS      TEPHEM     +1                         #  INCREMENT TP TEPHEM
064590,000509: 27,3746           27706                           ADS      TEPHEM                                
064591,000510: 
064592,000511: 27,3747           05412                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
064593,000512: 27,3750           04026                           OCT      04026                                 
064594,000513: 
064595,000514: 27,3751     0304                                  EBANK=   UPBUFF                                
064596,000515: 
064597,000516: 27,3751           03703                           TC       UPOUT                                 #  GO TO STANDARD UPDATE PROGRAM EXIT
064598,000517: 
064599,000518:                                                                                                  #  ERROR SEQUENCE
064600,000519: 
064601,000520: 27,3752           04400        UPERROUT           TC       FALTON                                #  TURN ON *OPERATOR ERROR* LIGHT
064602,000521: 27,3753           13703                           TCF      UPOUT                                 #  GO TO COMMON UPDATE PROGRAM EXIT
064603,000522: 
064604,000523: 27,3754           04400                 +2        TC       FALTON                                #  TURN ON 'OPERATOR ERROR' LIGHT
064605,000524: 27,3755           03757                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
064606,000525: 27,3756           05534                           TC       ENDEXT                                #  EXTENDED VERB EXIT
064607,000526:                                                                                                  #  (THE PURPOSE OF UPERROUT +2 EXIT IS
064608,000527:                                                                                                  #  TO PROVIDE AN ERROR EXIT WHICH DOES NOT
064609,000528:                                                                                                  #  RESET ANY RESTART GROUPS)
064610,000529: 
064611,000530:                                                                                                  #  :UPACTOFF: IS A ROUTINE TO TURN OFF UPLINK ACTIVITY LIGHT ON ALL EXITS FROM UPDATE PROGRAM (P27).
064612,000531: 
064613,000532: 27,3757           45015        UPACTOFF           CS       BIT3                                  
064614,000533: 27,3760           00006                           EXTEND                                         #  TURN OFF UPLINK ACTIVITY LIGHT
064615,000534: 27,3761           03011                           WAND     DSALMOUT                              #  (BIT 3 OF CHANNEL 11)
064616,000535: 27,3762           00002                           TC       Q                                     

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