Source Code

These source-code files are part of a reconstructed copy of Luminary 96, the original release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 96 listing.

Comments from 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.

058117,000002:                                                                                                  ## Copyright:   Public domain.
058118,000003:                                                                                                  ## Filename:    UPDATE_PROGRAM.agc
058119,000004:                                                                                                  ## Purpose:     A section of Luminary revision 96.
058120,000005:                                                                                                  ##              It is part of the reconstructed source code for the
058121,000006:                                                                                                  ##              original release of the flight software for the Lunar 
058122,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
058123,000008:                                                                                                  ##              The code has been recreated from a previously reconstructed
058124,000009:                                                                                                  ##              copy of Luminary 97 by undoing changes described in anomaly
058125,000010:                                                                                                  ##              report LNY-59. The code has been adapted such that the
058126,000011:                                                                                                  ##              resulting bugger words exactly match those specified for
058127,000012:                                                                                                  ##              Luminary 96 in NASA drawing 2021152D, which gives relatively
058128,000013:                                                                                                  ##              high confidence that the reconstruction is correct.
058129,000014:                                                                                                  ## Reference:   pp. 1386-1396
058130,000015:                                                                                                  ## Assembler:   yaYUL
058131,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
058132,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
058133,000018:                                                                                                  ## Mod history: 2019-08-04 MAS  Created from Luminary 97.
058134,000019: 

Page 1386

058136,000021:                                                                                                  #  PROGRAM NAME:         P27
058137,000022:                                                                                                  #  WRITTEN BY:           KILROY/ DE WOLF
058138,000023: 
058139,000024:                                                                                                  #  MOD NO:               6
058140,000025:                                                                                                  #  MOD BY:               KILROY
058141,000026:                                                                                                  #  DATE:                 01DEC67
058142,000027: 
058143,000028:                                                                                                  #  LOG SECTION:          UPDATE PROGRAM.
058144,000029: 
058145,000030:                                                                                                  #  FUNCT. DESCR:         P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
058146,000031:                                                                                                  #                        INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
058147,000032:                                                                                                  #                        THE P27 PROGRAM WILL ACCEPT UPDATES
058148,000033:                                                                                                  #                        ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
058149,000034:                                                                                                  #                        P02, AND FRESH START FOR THE CSM
058150,000035: 
058151,000036:                                                                                                  #  CALLING SEQ:          PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
058152,000037: 
058153,000038:                                                                                                  #  SUBROUTINES:          TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
058154,000039:                                                                                                  #                        INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
058155,000040: 
058156,000041:                                                                                                  #  NORMAL EXIT:          TC ENDEXT
058157,000042: 
058158,000043:                                                                                                  #  ALARM/ABORT:          TC FALTON FOLLOWED BY TC ENDEXT
058159,000044: 
058160,000045:                                                                                                  #  RESTARTS:             P27 IS RESTART PROTECTED IN TWO WAYS ...
058161,000046:                                                                                                  #                        1.      PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
058162,000047:                                                                                                  #                                DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
058163,000048:                                                                                                  #                                NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
058164,000049:                                                                                                  #                                ACTIVITY LIGHT IS TURNED OFF.  (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
058165,000050:                                                                                                  #                                V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
058166,000051:                                                                                                  #                        2.      AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
058167,000052:                                                                                                  #                                PROTECTED AGAINST RESTARTS.
058168,000053: 
058169,000054:                                                                                                  #  DEBRIS:               UPBUFF  (20D)   TEMP STORAGE FOR ADDRESSES AND CONTENTS.
058170,000055:                                                                                                  #                        UPVERB  (1)     VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
058171,000056:                                                                                                  #                        UPOLDMOD(1)     FOR MAJOR MODE INTERRUPTED BY P27.
058172,000057:                                                                                                  #                        COMPNUMB(1)     TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
058173,000058:                                                                                                  #                        UPCOUNT (1)     ACTUAL NUMBER OF COMPONENTS RECEIVED.
058174,000059:                                                                                                  #                        UPTEMP  (1)     SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
058175,000060: 
058176,000061:                                                                                                  #  INPUT:
058177,000062: 
058178,000063:                                                                                                  #        ENTRY:                  DESCRIPTION
058179,000064:                                                                                                  #        V70EXXXXXEXXXXXE        (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
058180,000065:                                                                                                  #                                IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
058181,000066:                                                                                                  #                                VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME(TETLEM).
058182,000067:                                                                                                  #                                THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).

Page 1387

058184,000069:                                                                                                  #        V71EIIEAAAAE            (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
058185,000070:                                                                                                  #        XXXXXE                  ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
058186,000071:                                                                                                  #        XXXXXE                  IT IS .GE. 3 .AND. .LE. 20D.,
058187,000072:                                                                                                  #                                AND (AAAA + II -3) DOES NOT PRODUCE AN ADDRESS IN THE
058188,000073:                                                                                                  #        9 NEXT BANK
058189,000074:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
058190,000075:                                                                                                  #        V72EIIE                 (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
058191,000076:                                                                                                  #        AAAAEXXXXXE             LOADED INTO ERASABLE LOCATIONS, AAAA.
058192,000077:                                                                                                  #        AAAAEXXXXXE             II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
058193,000078:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
058194,000079: 
058195,000080:                                                                                                  #        V73EXXXXXEXXXXXE        (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
058196,000081:                                                                                                  #                                INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
058197,000082:                                                                                                  #                                CENTISECONDS SCALED AT (2)28.
058198,000083:                                                                                                  #                                THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
058199,000084: 
058200,000085:                                                                                                  #  OUTPUT:               IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
058201,000086:                                                                                                  #                        COMPLEMENT BIT3 OF FLAGWORD7.
058202,000087: 
058203,000088:                                                                                                  #  ADDITIONAL NOTES:     VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
058204,000089:                                                                                                  #                        1.  CSM/LM STATE VECTOR UPDATE
058205,000090:                                                                                                  #                        2.  REFSMMAT UPDATE
058206,000091: 
058207,000092:                                                                                                  #        THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE ----
058208,000093: 
058209,000094:                                                                                                  #        1.  CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
058210,000095:                                                                                                  #                ENTRIES:        DATA DEFINITION:                                SCALE FACTORS:
058211,000096:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
058212,000097:                                                                                                  #                   21E          NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
058213,000098:                                                                                                  #                 AAAAE          ECADR OF 'UPSVFLAG'
058214,000099:                                                                                                  #                XXXXXE          STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
058215,000100:                                                                                                  #                                                         00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
058216,000101:                                                                                                  #                XXXXXEXXXXXE    X POSITION
058217,000102:                                                                                                  #                XXXXXEXXXXXE    Y POSITION
058218,000103:                                                                                                  #                XXXXXEXXXXXE    Z POSITION
058219,000104:                                                                                                  #                XXXXXEXXXXXE    X VELOCITY
058220,000105:                                                                                                  #                XXXXXEXXXXXE    Y VELOCITY
058221,000106:                                                                                                  #                XXXXXEXXXXXE    Z VELOCITY
058222,000107:                                                                                                  #                XXXXXEXXXXXE    TIME FROM AGC CLOCK ZERO
058223,000108:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
058224,000109: 
058225,000110:                                                                                                  #        2.  REFSMMAT (ALL DATA ENTRIES IN OCTAL)
058226,000111:                                                                                                  #                ENTRIES:        DATA DEFINITIONS:                               SCALE FACTORS:

Page 1388

058228,000113:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
058229,000114:                                                                                                  #                   24E          NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
058230,000115:                                                                                                  #                 AAAAE          ECADR OF 'REFSMMAT'
058231,000116:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 1                                  2(-1)
058232,000117:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 2                                  2(-1)
058233,000118:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 3                                  2(-1)
058234,000119:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 1                                  2(-1)
058235,000120:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 2                                  2(-1)
058236,000121:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 3                                  2(-1)
058237,000122:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 1                                  2(-1)
058238,000123:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 2                                  2(-1)
058239,000124:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 3                                  2(-1)
058240,000125:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
058241,000126: 
058242,000127: 
058243,000128: 
058244,000129: 07,3773                                           BANK     07                                    
058245,000130: 43,2000                                           SETLOC   EXTVERBS                              
058246,000131: 43,2000                                           BANK                                           
058247,000132: 
058248,000133: 43,3724  E3,1706                                  EBANK=   TEPHEM                                
058249,000134: 
058250,000135: 43,3724                                           COUNT*   $$/P27                                
058251,000136: 43,3724           34755        V70UPDAT           CAF      UP70                                  #  COMES HERE ON V70E
058252,000137: 43,3725           13733                           TCF      V73UPDAT   +1                         
058253,000138: 
058254,000139: 43,3726           34753        V71UPDAT           CAF      UP71                                  #  COMES HERE ON V71E
058255,000140: 43,3727           13733                           TCF      V73UPDAT   +1                         
058256,000141: 
058257,000142: 43,3730           34752        V72UPDAT           CAF      UP72                                  #  COMES HERE ON V72E
058258,000143: 43,3731           13733                           TCF      V73UPDAT   +1                         
058259,000144: 
058260,000145: 43,3732           36245        V73UPDAT           CAF      UP73                                  #  COMES HERE ON V73E
058261,000146: 
058262,000147: 43,3733           55166                 +1        TS       UPVERBSV                              #  SAVE UPVERB UNTIL IT'S OK TO ENTER P27
058263,000148: 
058264,000149: 43,3734           02076                           TC       TESTXACT                              #  GRAB DISPLAY IF AVAILABLE, OTHERWISE
058265,000150:                                                                                                  #  TURN*OPERATOR ERROR* ON AND TERMINATEJOB
058266,000151: 
058267,000152: 43,3735           31011                           CA       MODREG                                #  CHECK IF UPDATE ALLOWED
058268,000153: 43,3736           00006                           EXTEND                                         #  FIRST CHECK FOR MODREG = +0, -0
058269,000154: 43,3737           13742                           BZF      +3                                    #  (+0 = P00, -0 = FRESHSTART)
058270,000155: 43,3740           04635        UPERROR            TC       POSTJUMP                              #  TURN ON 'OPERATOR ERROR' LIGHT
058271,000156: 43,3741           11762                           CADR     UPERROUT   +2                         #  GO TO COMMON UPDATE PROGRAM EXIT
058272,000157: 
058273,000158: 43,3742           31011                           CAE      MODREG                                #  UPDATE ALLOWED.
058274,000159: 43,3743  43,3740               CKMDMORE           =        UPERROR                               
058275,000160: 43,3743           55171                           TS       UPOLDMOD                              #  SAVE CURRENT MAJOR MODE

Page 1389

058277,000162: 43,3744           31166                           CAE      UPVERBSV                              #  SET UPVERB TO INDICATE TO P27
058278,000163: 
058279,000164: 43,3745           55172                           TS       UPVERB                                #  WHICH EXTENDED VERB CALLED IT.
058280,000165: 
058281,000166: 43,3746           34753                           CAF      ONE                                   
058282,000167: 43,3747           55173                           TS       UPCOUNT                               #  INITIALIZE UPCOUNT TO 1
058283,000168: 
058284,000169: 43,3750           04635                           TC       POSTJUMP                              #  LEAVE EXTENDED VERB BANK AND
058285,000170: 43,3751           11401                           CADR     UPPART2                               #  GO TO UPDATE PROGRAM (P27) BANK.
058286,000171: 
058287,000172: 43,3752     4755               UP70               EQUALS   ZERO                                  
058288,000173: 43,3752     4753               UP71               EQUALS   ONE                                   
058289,000174: 43,3752     4752               UP72               EQUALS   TWO                                   
058290,000175: 43,3752     6245               UP73               EQUALS   THREE                                 
058291,000176: 
058292,000177: 04,3401                                           BANK     04                                    
058293,000178: 04,2000                                           SETLOC   UPDATE2                               
058294,000179: 04,2000                                           BANK                                           
058295,000180: 
058296,000181: 04,3401                                           COUNT*   $$/P27                                
058297,000182: 
058298,000183: 04,3401                        UPPART2            EQUALS                                         #  UPDATE PROGRAM - PART 2
058299,000184: 
058300,000185: 04,3401           05353                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO RESTORE OLD MODE
058301,000186: 04,3402           07026                           OCT      07026                                 #  AND DOWNLIST AND EXIT IF RESTART OCCURS.
058302,000187: 04,3403           30000                           OCT      30000                                 #  PRIORITY SAME AS CHRPRIO
058303,000188: 04,3404     1174                                  EBANK=   UPBUFF                                
058304,000189: 04,3404           03712 10102                     2CADR    UPOUT      +1                         
058305,000190: 
058306,000191: 04,3406           34753                           CAF      ONE                                   
058307,000192: 04,3407           54332                           TS       DNLSTCOD                              #  DOWNLIST
058308,000193: 
058309,000194: 04,3410           05311                           TC       NEWMODEX                              #  SET MAJOR MODE = 27
058310,000195: 04,3411           00033                           DEC      27         B-14                       
058311,000196: 
058312,000197: 04,3412           51172                           INDEX    UPVERB                                #  BRANCH DEPENDING ON WHETHER THE UPDATE
058313,000198: 04,3413           13414                           TCF      +1                                    #  VERB REQUIRES A FIXED OR VARIABLE NUMBER
058314,000199: 04,3414           13417                           TCF      +3                                    #  V70 FIXED.               (OF COMPONENTS.
058315,000200: 04,3415           13422                           TCF      OHWELL1                               #  V71 VARIABLE - GO GET NO. OF COMPONENTS
058316,000201: 04,3416           13422                           TCF      OHWELL1                               #  V72 VARIABLE - GO GET NO. OF COMPONENTS
058317,000202: 04,3417           34752                           CA       TWO                                   #  V73 (AND V70) FIXED
058318,000203: 04,3420           55170                           TS       COMPNUMB                              #  SET NUMBER OF COMPONENTS TO 2.
058319,000204: 04,3421           13445                           TCF      OHWELL2                               #  GO GET THE TWO UPDATE COMPONENTS
058320,000205: 
058321,000206: 04,3422           33515        OHWELL1            CAF      ADUPBUFF                              #  * REQUEST USER TO SEND NUMBER *
058322,000207: 04,3423           54156                           TS       MPAC       +2                         #  * OF COMPONENTS PARAMETER(II).*
058323,000208: 04,3424           33516                 +2        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
058324,000209: 04,3425           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01

Page 1390

058326,000211: 04,3426           20334                           CADR     GOXDSPF                               #  TO REQUEST II.
058327,000212: 
058328,000213: 04,3427           13712                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
058329,000214: 04,3430           13424                           TCF      OHWELL1    +2                         
058330,000215: 04,3431           03506                           TC       CK4V32                                #  DATA OR V32 RETURN
058331,000216: 04,3432           44752                           CS       BIT2                                  
058332,000217: 04,3433           61174                           AD       UPBUFF                                #  IS II (NUMBER OF COMPONENTS PARAMETER)
058333,000218: 04,3434           00006                           EXTEND                                         #  .GE. 3 AND .LE. 20D.
058334,000219: 04,3435           63424                           BZMF     OHWELL1    +2                         
058335,000220: 04,3436           41174                           CS       UPBUFF                                
058336,000221: 04,3437           64362                           AD       UP21                                  
058337,000222: 04,3440           00006                           EXTEND                                         
058338,000223: 04,3441           63424                           BZMF     OHWELL1    +2                         
058339,000224: 04,3442           31174                           CAE      UPBUFF                                
058340,000225: 04,3443           55170                           TS       COMPNUMB                              #  SAVE II IN COMPNUMB
058341,000226: 
058342,000227:                                                                                                  #  UPBUFF LOADING SEQUENCE
058343,000228: 
058344,000229: 04,3444           25173                           INCR     UPCOUNT                               #  INCREMENT COUNT OF COMPONENTS RECEIVED.
058345,000230: 04,3445           33662        OHWELL2            CAF      ADUPBFM1                              #  CALCULATE LOCATION (ECADR) IN UPBUFF
058346,000231: 04,3446           61173                           AD       UPCOUNT                               #  WHERE NEXT COMPONENT SHOULD BE STORED.
058347,000232: 04,3447           54156                 +2        TS       MPAC       +2                         #  PLACE ECADR INTO R3.
058348,000233: 04,3450           33516                 +3        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
058349,000234: 04,3451           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
058350,000235: 04,3452           20334                           CADR     GOXDSPF                               #  TO REQUEST DATA.
058351,000236: 04,3453           13712                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN.
058352,000237: 04,3454           13450                           TCF      OHWELL2    +3                         #  V33 PROCEED RETURN
058353,000238: 04,3455           03506                           TC       CK4V32                                #  DATA OR V32 RETURN
058354,000239: 04,3456           41173                           CS       UPCOUNT                               #  HAVE WE FINISHED RECEIVING ALL
058355,000240: 04,3457           61170                           AD       COMPNUMB                              #  THE DATA WE EXPECTED.
058356,000241: 04,3460           00006                           EXTEND                                         
058357,000242: 04,3461           63463                           BZMF     UPVERIFY                              #  YES - GO TO VERIFICATION SEQUENCE
058358,000243: 04,3462           13444                           TCF      OHWELL2    -1                         #  NO - REQUEST ADDITIONAL DATA.
058359,000244: 
058360,000245:                                                                                                  #  VERIFY SEQUENCE
058361,000246: 
058362,000247: 04,3463           33514        UPVERIFY           CAF      ADUPTEMP                              #  PLACE ECADR WHERE COMPONENT NO. INDEX
058363,000248: 04,3464           54156                           TS       MPAC       +2                         #  IS TO BE STORED INTO R3.
058364,000249: 04,3465           33517                           CAF      UPVRFYNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
058365,000250: 04,3466           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N02 TO REQUEST
058366,000251: 04,3467           20334                           CADR     GOXDSPF                               #  DATA CORRECTION OR VERIFICATION.
058367,000252: 04,3470           13712                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
058368,000253: 04,3471           13520                           TCF      UPSTORE                               #  V33 DATA SENT IS GOOD.  GO STORE IT.
058369,000254: 04,3472           03506                           TC       CK4V32                                #  COMPONENT NO. INDEX OR V32 RETURN
058370,000255: 04,3473           31167                           CA       UPTEMP                                #  DOES THE COMPONENT NO. INDEX JUST SENT
058371,000256: 04,3474           00006                           EXTEND                                         #  SPECIFY A LEGAL COMPONENT NUMBER?
058372,000257: 04,3475           63463                           BZMF     UPVERIFY                              #  NO, IT IS NOT POSITIVE NONZERO
058373,000258: 04,3476           41167                           CS       UPTEMP                                
058374,000259: 04,3477           61170                           AD       COMPNUMB                              

Page 1391

058376,000261: 04,3500           64753                           AD       BIT1                                  
058377,000262: 04,3501           00006                           EXTEND                                         
058378,000263: 04,3502           63463                           BZMF     UPVERIFY                              #  NO
058379,000264: 04,3503           33662                           CAF      ADUPBFM1                              #  YES - BASED ON THE COMPONENT NO. INDEX
058380,000265: 04,3504           61167                           AD       UPTEMP                                #  CALCULATE THE ECADR OF LOCATION IN
058381,000266: 04,3505           13447                           TCF      OHWELL2    +2                         #  UPBUFF WHICH USER WANTS TO CHANGE.
058382,000267: 
058383,000268: 04,3506  04,3712               UPOUT4             EQUALS   UPOUT      +1                         #  COMES HERE ON V34 TO TERMINATE UPDATE
058384,000269: 
058385,000270:                                                                                                  #  CHECK FOR VERB 32 SEQUENCE
058386,000271: 
058387,000272: 04,3506           40154        CK4V32             CS       MPAC                                  #  ON DATA RETURN FROM 'GOXDSPF'
058388,000273: 04,3507           74746                           MASK     BIT6                                  #  ON DATA RETURN FROM "GOXDSP" & THE CON-
058389,000274: 04,3510           10000                           CCS      A                                     #  TENTS OF MPAC = VERB.  SO TEST FOR V32.
058390,000275: 04,3511           00002                           TC       Q                                     #  IT'S NOT A V32, IT'S DATA.  PROCEED.
058391,000276: 04,3512           50002                           INDEX    Q                                     
058392,000277: 04,3513           77771                           TC       0          -6                         #  V32 ENCOUNTERED - GO BACK AND GET DATA
058393,000278: 
058394,000279: 04,3514           01167        ADUPTEMP           ADRES    UPTEMP                                #  ADDRESS OF TEMP STORAGE FOR CORRECTIONS
058395,000280: 04,3515           01174        ADUPBUFF           ADRES    UPBUFF                                #  ADDRESS OF UPDATE DATA STORAGE BUFFER
058396,000281: 04,3516           05201        UPLOADNV           VN       2101                                  #  VERB 21 NOUN 01
058397,000282: 04,3517           05202        UPVRFYNV           VN       2102                                  #  VERB 21 NOUN 02
058398,000283: 04,3520     4362               UP21               =        MD1                                   #  DEC 21 = MAX NO OF COMPONENTS +1
058399,000284: 04,3520     4756               UPDTPHAS           EQUALS   FIVE                                  
058400,000285: 
058401,000286:                                                                                                  #  PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
058402,000287: 
058403,000288: 04,3520                        UPSTORE            EQUALS                                         #  GROUND HAS VERIFIED UPDATE.  STORE DATA.
058404,000289: 
058405,000290: 04,3520           00004                           INHINT                                         
058406,000291: 
058407,000292: 04,3521           30103                           CAE      FLAGWRD7                              #  INVERT VERIFLAG (BIT 3 OF FLAGWRD7) TO
058408,000293: 04,3522           56001                           XCH      L                                     #  INDICATE TO THE GROUND (VIA DOWNLINK)
058409,000294: 04,3523           34751                           CAF      VERIFBIT                              #  THAT THE V33 (WHICH THE GROUND SENT TO
058410,000295: 04,3524           00006                           EXTEND                                         #  VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
058411,000296: 04,3525           06001                           RXOR     LCHAN                                 #  RECEIVED BY THE UPDATE PROGRAM
058412,000297: 04,3526           54103                           TS       FLAGWRD7                              
058413,000298: 
058414,000299: 04,3527           05353                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO REDO THE UPDATE
058415,000300: 04,3530           04026                           OCT      04026                                 #  DATA STORE IF A RESTART OCCURS.
058416,000301: 04,3531           00004                           INHINT                                         #  (BECAUSE PHASCHNG DID A RELINT)
058417,000302: 
058418,000303: 04,3532           44752                           CS       TWO                                   #  GO TO UPFNDVAC IF INSTALL IS REQUIRED,
058419,000304: 04,3533           61172                           AD       UPVERB                                #  THAT IS, IF IT'S A V70 - V72.
058420,000305: 04,3534           00006                           EXTEND                                         #  GO TO UPEND73 IF IT'S A V73.
058421,000306: 04,3535           63544                           BZMF     UPFNDVAC                              
058422,000307: 
058423,000308:                                                                                                  #  VERB 73 BRANCH

Page 1392

058425,000310: 04,3536           00006        UPEND73            EXTEND                                         #  V73 - PERFORM DP OCTAL AGC CLOCK INCREMENT
058426,000311: 
058427,000312: 04,3537           31175                           DCA      UPBUFF                                
058428,000313: 04,3540           53205                           DXCH     UPBUFF     +8D                        
058429,000314: 04,3541           03567                           TC       TIMEDIDL                              
058430,000315: 04,3542           04364                           TC       FALTON                                #  ERROR - TURN ON *OPERATOR ERROR* LIGHT
058431,000316: 04,3543           03712                           TC       UPOUT      +1                         #  GO TO COMMON UPDATE PROGRAM EXIT
058432,000317: 
058433,000318: 04,3544           34355        UPFNDVAC           CAF      CHRPRIO                               #  (USE EXTENDED VERB PRIORITY)
058434,000319: 04,3545           05105                           TC       FINDVAC                               #  GET VAC AREA FOR 'CALL INTSTALL'
058435,000320: 04,3546  E3,1706                                  EBANK=   TEPHEM                                
058436,000321: 04,3546           03551 10103                     2CADR    UPJOB                                 #  (NOTE:  THIS WILL ALSO SET EBANK FOR
058437,000322: 04,3550           05155                           TC       ENDOFJOB                              #  'TEPHEM' UPDATE BY V70)
058438,000323: 
058439,000324: 04,3551           06037        UPJOB              TC       INTPRET                               #  THIS COULD BE A STATE VECTOR UPDATE -- SO
058440,000325: 04,3552           77624                           CALL                                           #  WAIT (PUT JOB TO SLEEP) IF ORBIT INT(OI)
058441,000326: 04,3553           27414                                    INTSTALL                              #  IS IN PROGRESS -- OR -- GRAB OI AND RETURN
058442,000327:                                                                                                  #  TO UPWAKE IF OI IS NOT IN PROGRESS.
058443,000328: 
058444,000329: 04,3554           77776        UPWAKE             EXIT                                           
058445,000330: 
058446,000331: 04,3555           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058447,000332: 04,3556           04026                           OCT      04026                                 
058448,000333: 
058449,000334: 04,3557           05504                           TC       UPFLAG                                #  SET INTEGRATION RESTART BIT
058450,000335: 04,3560           00236                           ADRES    REINTFLG                              
058451,000336: 04,3561           00004                           INHINT                                         
058452,000337: 04,3562                        UPPART3            EQUALS                                         
058453,000338: 
058454,000339: 04,3562           51172                           INDEX    UPVERB                                #  BRANCH TO THE APPROPRIATE UPDATE VERB
058455,000340: 04,3563           13564                           TCF      +1                                    #  ROUTINE TO ACTUALLY PERFORM THE UPDATE
058456,000341: 04,3564           13723                           TCF      UPEND70                               #  V70
058457,000342: 04,3565           13632                           TCF      UPEND71                               #  V71
058458,000343: 04,3566           13664                           TCF      UPEND72                               #  V72
058459,000344: 
058460,000345:                                                                                                  #  ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
058461,000346: 
058462,000347: 04,3567           00006        TIMEDIDL           EXTEND                                         
058463,000348: 04,3570           23167                           QXCH     UPTEMP                                #  SAVE Q FOR RETURN
058464,000349: 04,3571           34755                           CAF      ZERO                                  #  ZERO AND SAVE TIME2,TIME1
058465,000350: 04,3572           22007                           ZL                                             
058466,000351: 04,3573           52025                           DXCH     TIME2                                 
058467,000352: 04,3574           53217                           DXCH     UPBUFF     +18D                       #  STORE IN CASE OF OVERFLOW
058468,000353: 
058469,000354: 04,3575           34756                           CAF      UPDTPHAS                              #  DO
058470,000355: 04,3576           54001                           TS       L                                     #  A
058471,000356: 04,3577           40000                           COM                                            #  QUICK
058472,000357: 04,3600           52765                           DXCH     -PHASE6                               #  PHASCHNG

Page 1393

058474,000359: 04,3601           00004        TIMEDIDR           INHINT                                         
058475,000360: 
058476,000361: 04,3602           34755                           CAF      ZERO                                  
058477,000362: 04,3603           22007                           ZL                                             #  PICK UP INCREMENTER(AND ZERO
058478,000363: 04,3604           54156                           TS       MPAC       +2                         #  IT IN CASE OF RESTARTS) AND
058479,000364: 04,3605           53205                           DXCH     UPBUFF     +8D                        #  STORE IT
058480,000365: 04,3606           52155                           DXCH     MPAC                                  #  INTO MPAC FOR TPAGREE.
058481,000366: 
058482,000367: 04,3607           00006                           EXTEND                                         
058483,000368: 04,3610           31217                           DCA      UPBUFF     +18D                       
058484,000369: 04,3611           20155                           DAS      MPAC                                  #  FORM SUM IN MPAC
058485,000370: 04,3612           00006                           EXTEND                                         
058486,000371: 04,3613           13622                           BZF      DELTAOK                               #  TEST FOR OVERFLOW
058487,000372: 04,3614           34755                           CAF      ZERO                                  
058488,000373: 04,3615           53217                           DXCH     UPBUFF     +18D                       #  OVERFLOW, RESTORE OLD VALUE OF CLOCK
058489,000374: 04,3616           20025                           DAS      TIME2                                 #  AND TURN ON OPERATOR ERROR
058490,000375: 
058491,000376: 04,3617           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058492,000377: 04,3620           04026                           OCT      04026                                 
058493,000378: 
058494,000379: 04,3621           01167                           TC       UPTEMP                                #  GO TO ERROR EXIT
058495,000380: 
058496,000381: 04,3622           07257        DELTAOK            TC       TPAGREE                               #  FORCE SIGN AGREEMENT
058497,000382: 04,3623           52155                           DXCH     MPAC                                  
058498,000383: 04,3624           20025                           DAS      TIME2                                 #  INCREMENT TIME2,TIME1
058499,000384: 
058500,000385: 04,3625           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058501,000386: 04,3626           04026                           OCT      04026                                 
058502,000387: 
058503,000388: 04,3627           00004                           INHINT                                         
058504,000389: 04,3630           51167                           INDEX    UPTEMP                                #  (CODED THIS WAY FOR RESTART PROTECTION)
058505,000390: 04,3631           00001                           TC       1                                     #  NORMAL RETURN
058506,000391: 
058507,000392:                                                                                                  #  VERB 71 BRANCH
058508,000393: 
058509,000394: 04,3632           31175        UPEND71            CAE      UPBUFF     +1                         #  SET EBANK
058510,000395: 04,3633           54003                           TS       EBANK                                 #        AND
058511,000396: 04,3634           74357                           MASK     LOW8                                  #  CALCULATE
058512,000397: 04,3635           55167                           TS       UPTEMP                                #  S-REG VALUE OF RECEIVING AREA
058513,000398: 
058514,000399: 04,3636           67745                           AD       NEG3                                  #  IN THE PROCESS OF
058515,000400: 04,3637           61170                           AD       COMPNUMB                              #  PERFORMING
058516,000401: 04,3640           00006                           EXTEND                                         #  THIS UPDATE
058517,000402: 04,3641           13647                           BZF      STORLP71                              #  WILL WE
058518,000403: 04,3642           74743                           MASK     BIT9                                  #  OVERFLOW
058519,000404: 04,3643           10000                           CCS      A                                     #  INTO THE NEXT EBANK....
058520,000405: 04,3644           13760                           TCF      UPERROUT                              #  YES
058521,000406: 
058522,000407: 04,3645           37745                           CA       NEG3                                  #  NO - CALCULATE NUMBER OF
058523,000408: 04,3646           61170                           AD       COMPNUMB                              #  WORDS TO BE STORED MINUS ONE
058524,000409: 04,3647           54154        STORLP71           TS       MPAC                                  #  SAVE NO. OF WORDS REMAINING MINUS ONE

Page 1394

058526,000411: 04,3650           50000                           INDEX    A                                     #  TAKE NEXT UPDATE WORD FROM
058527,000412: 04,3651           31176                           CA       UPBUFF     +2                         #  UPBUFF AND
058528,000413: 
058529,000414: 04,3652           54001                           TS       L                                     #  SAVE IT IN L
058530,000415: 04,3653           30154                           CA       MPAC                                  #  CALCULATE NEXT
058531,000416: 04,3654           61167                           AD       UPTEMP                                #  RECEIVING ADDRESS
058532,000417: 04,3655           50000                           INDEX    A                                     
058533,000418: 04,3656  E3,1400                                  EBANK=   1400                                  
058534,000419: 04,3656           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
058535,000420: 04,3657  E3,1706                                  EBANK=   TEPHEM                                
058536,000421: 04,3657           10154                           CCS      MPAC                                  #  ARE THERE ANY WORDS LEFT TO BE STORED
058537,000422: 04,3660           13647                           TCF      STORLP71                              #  YES
058538,000423: 04,3661           13711                           TCF      UPOUT                                 #  NO - THEN EXIT UPDATE PROGRAM
058539,000424: 04,3662           01173        ADUPBFM1           ADRES    UPBUFF     -1                         #  SAME AS ADUPBUFF BUT LESS 1 (DON'T MOVE)
058540,000425: 04,3663           13711                           TCF      UPOUT                                 #  NO - EXIT UPDATE (HERE WHEN COMPNUMB = 3)
058541,000426: 
058542,000427:                                                                                                  #  VERB 72 BRANCH
058543,000428: 
058544,000429: 04,3664           34753        UPEND72            CAF      BIT1                                  #  HAVE AN ODD NO. OF COMPONENTS
058545,000430: 04,3665           71170                           MASK     COMPNUMB                              #  BEEN SENT FOR A V72 UPDATE ...
058546,000431: 04,3666           10000                           CCS      A                                     
058547,000432: 04,3667           13671                           TCF      +2                                    #  YES
058548,000433: 04,3670           13760                           TCF      UPERROUT                              #  ERROR - SHOULD BE ODD NO. OF COMPONENTS
058549,000434: 04,3671           44752                           CS       BIT2                                  
058550,000435: 04,3672           61170                           AD       COMPNUMB                              
058551,000436: 04,3673           54154        LDLOOP72           TS       MPAC                                  #  NOW PERFORM THE UPDATE
058552,000437: 04,3674           50000                           INDEX    A                                     
058553,000438: 04,3675           31175                           CAE      UPBUFF     +1                         #  PICK UP NEXT UPDATE WORD
058554,000439: 04,3676           22000                           LXCH     A                                     
058555,000440: 04,3677           10154                           CCS      MPAC                                  #  SET POINTER TO ECADR (MUST BE CCS)
058556,000441: 04,3700           54154                           TS       MPAC                                  
058557,000442: 04,3701           50000                           INDEX    A                                     
058558,000443: 04,3702           31175                           CAE      UPBUFF     +1                         #  PICK UP NEXT ECADR OF REG TO BE UPDATED
058559,000444: 04,3703           54003                           TS       EBANK                                 #  SET EBANK
058560,000445: 04,3704           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
058561,000446: 04,3705           50000                           INDEX    A                                     
058562,000447: 04,3706  E3,1400                                  EBANK=   1400                                  
058563,000448: 04,3706           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
058564,000449: 04,3707  E3,1706                                  EBANK=   TEPHEM                                
058565,000450: 04,3707           10154                           CCS      MPAC                                  #  ARE WE THROUGH THE V72 UPDATE...
058566,000451: 04,3710           13673                           TCF      LDLOOP72                              #  NO
058567,000452: 
058568,000453:                                                                                                  #  NORMAL FINISH OF P27
058569,000454: 
058570,000455: 04,3711                        UPOUT              EQUALS                                         
058571,000456: 04,3711           03165                           TC       INTWAKEU                              #  RELEASE GRAB OF ORBITAL INTEGRATION
058572,000457: 04,3712           31171                 +1        CAE      UPOLDMOD                              #  RESTORE PRIOR P27 MODE
058573,000458: 04,3713           05314                           TC       NEWMODEX   +3                         
058574,000459: 04,3714           34755                           CAF      ZERO                                  

Page 1395

058576,000461: 04,3715           54332                           TS       DNLSTCOD                              
058577,000462: 04,3716           03765                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
058578,000463: 
058579,000464: 04,3717           00006                           EXTEND                                         #  KILL GROUP 6.
058580,000465: 04,3720           34755                           DCA      NEG0                                  
058581,000466: 04,3721           52765                           DXCH     -PHASE6                               
058582,000467: 
058583,000468: 04,3722           05472                           TC       ENDEXT                                #  EXTENDED VERB EXIT
058584,000469: 
058585,000470:                                                                                                  #  VERB 70 BRANCH
058586,000471: 
058587,000472: 04,3723           00006        UPEND70            EXTEND                                         #  V70 DOES THE FOLLOWING WITH DP DELTA
058588,000473: 04,3724           41175                           DCS      UPBUFF                                #  TIME IN UPBUFF
058589,000474: 04,3725           53205                           DXCH     UPBUFF     +8D                        
058590,000475: 04,3726           03567                           TC       TIMEDIDL                              #  DECREMENT AGC CLOCK
058591,000476: 
058592,000477: 04,3727           03760                           TC       UPERROUT                              #  ERROR WHILE DECREMENTING CLOCK -- EXIT
058593,000478: 
058594,000479: 04,3730  E3,1706                                  EBANK=   TEPHEM                                
058595,000480: 04,3730           00006                           EXTEND                                         
058596,000481: 04,3731           41175                           DCS      UPBUFF                                #  COPY DECREMENTERS FOR
058597,000482: 04,3732           53207                           DXCH     UPBUFF     +10D                       #  RESTART PROTECTION
058598,000483: 04,3733           00006                           EXTEND                                         
058599,000484: 04,3734           41175                           DCS      UPBUFF                                
058600,000485: 04,3735           53211                           DXCH     UPBUFF     +12D                       
058601,000486: 
058602,000487: 04,3736           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058603,000488: 04,3737           04026                           OCT      04026                                 
058604,000489: 
058605,000490: 04,3740           34755                           CAF      ZERO                                  
058606,000491: 04,3741           22007                           ZL                                             
058607,000492: 04,3742           53207                           DXCH     UPBUFF     +10D                       #  DECREMENT CSM STATE VECTOR TIME
058608,000493: 04,3743           21571                           DAS      TETCSM                                
058609,000494: 
058610,000495: 04,3744           34755                           CAF      ZERO                                  
058611,000496: 04,3745           22007                           ZL                                             
058612,000497: 04,3746           53211                           DXCH     UPBUFF     +12D                       #  DECREMENT LEM STATE VECTOR TIME
058613,000498: 04,3747           21643                           DAS      TETLEM                                
058614,000499: 
058615,000500: 04,3750           34755                           CAF      ZERO                                  
058616,000501: 04,3751           22007                           ZL                                             
058617,000502: 04,3752           53175                           DXCH     UPBUFF                                
058618,000503: 04,3753           21710                           DAS      TEPHEM     +1                         #  INCREMENT TP TEPHEM
058619,000504: 04,3754           27706                           ADS      TEPHEM                                
058620,000505: 
058621,000506: 04,3755           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058622,000507: 04,3756           04026                           OCT      04026                                 
058623,000508: 
058624,000509: 04,3757     1174                                  EBANK=   UPBUFF                                

Page 1396

058626,000511: 04,3757           03711                           TC       UPOUT                                 #  GO TO STANDARD UPDATE PROGRAM EXIT
058627,000512: 
058628,000513: 
058629,000514:                                                                                                  #  ERROR SEQUENCE
058630,000515: 
058631,000516: 04,3760           04364        UPERROUT           TC       FALTON                                #  TURN ON *OPERATOR ERROR* LIGHT
058632,000517: 04,3761           13711                           TCF      UPOUT                                 #  GO TO COMMON UPDATE PROGRAM EXIT
058633,000518: 
058634,000519: 04,3762           04364                 +2        TC       FALTON                                #  TURN ON 'OPERATOR ERROR' LIGHT
058635,000520: 04,3763           03765                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
058636,000521: 04,3764           05472                           TC       ENDEXT                                #  EXTENDED VERB EXIT
058637,000522:                                                                                                  #  (THE PURPOSE OF UPERROUT +2 EXIT IS
058638,000523:                                                                                                  #  TO PROVIDE AN ERROR EXIT WHICH DOES NOT
058639,000524:                                                                                                  #  RESET ANY RESTART GROUPS)
058640,000525: 
058641,000526:                                                                                                  #  :UPACTOFF: IS A ROUTINE TO TURN OFF UPLINK ACTIVITY LIGHT ON ALL EXITS FROM UPDATE PROGRAM (P27).
058642,000527: 
058643,000528: 04,3765           44751        UPACTOFF           CS       BIT3                                  
058644,000529: 04,3766           00006                           EXTEND                                         #  TURN OFF UPLINK ACTIVITY LIGHT
058645,000530: 04,3767           03011                           WAND     DSALMOUT                              #  (BIT 3 OF CHANNEL 11)
058646,000531: 04,3770           00002                           TC       Q                                     
058647,000532: 

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