Source Code

This is a reconstructed version of Luminary 130, the initial AGC program released in November 1969 for the Apollo 13 LM. Three more releases followed before the flown revision was finally manufactured in February 1970.

This reconstruction was created from a previous transcription of the original listing of Luminary 131, combined with Luminary memo #129 which describes the small difference between the Luminary 130 and 131. The reconstructed source code was verified by matching memory-bank checksums to those listed for Luminary 130 in drawing 2021152G.

In this source code, program comments from the original (Luminary 131) code are prefixed with '#', while those added later by the Virtual AGC project are prefixed with '##'.

058427,000002:                                                                                                  ## Copyright:   Public domain.
058428,000003:                                                                                                  ## Filename:    UPDATE_PROGRAM.agc
058429,000004:                                                                                                  ## Purpose:     A section of the reconstructed source code for Luminary 130.
058430,000005:                                                                                                  ##              This was the original program released for the Apollo 13 LM,
058431,000006:                                                                                                  ##              although several more revisions would follow. It has been
058432,000007:                                                                                                  ##              reconstructed from a listing of Luminary 131, from which it
058433,000008:                                                                                                  ##              differs on only two lines in P70-P71. The difference is
058434,000009:                                                                                                  ##              described in detail in Luminary memo #129, which was used
058435,000010:                                                                                                  ##              to perform the reconstruction. This file is intended to be a
058436,000011:                                                                                                  ##              faithful reconstruction, except that the code format has been
058437,000012:                                                                                                  ##              changed to conform to the requirements of the yaYUL assembler
058438,000013:                                                                                                  ##              rather than the original YUL assembler.
058439,000014:                                                                                                  ## Reference:   pp. 1378-1388
058440,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
058441,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
058442,000017:                                                                                                  ## Mod history: 06/07/03 RSB.   Began transcribing.
058443,000018:                                                                                                  ##              05/14/05 RSB    Corrected website reference above.
058444,000019:                                                                                                  ##              2010-10-25 JL   Indentation fixes.
058445,000020:                                                                                                  ##              2011-05-07 JL   Flagged SBANK= workaround for future removal.
058446,000021:                                                                                                  ##              2017-01-06 RSB  Page numbers now agree with those on the
058447,000022:                                                                                                  ##                              original hardcopy, as opposed to the PDF page
058448,000023:                                                                                                  ##                              numbers in 1701.pdf.
058449,000024:                                                                                                  ##              2017-01-28 RSB  Comment-text fixes identified for Luminary 69.
058450,000025:                                                                                                  ##              2017-02-09 RSB  Comment-text fixes identified for Artemis 72.
058451,000026:                                                                                                  ##              2017-02-28 RSB  Proofed comment text using octopus/ProoferComments.
058452,000027:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
058453,000028:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
058454,000029:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
058455,000030:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
058456,000031:                                                                                                  ##              2018-09-04 MAS  Copied from Luminary 131 for Luminary 130.
058457,000032:                                                                                                  ##              2021-05-30 ABS  DELTAOK -> DELTATOK
058458,000033: 

Page 1378

058460,000035:                                                                                                  #  PROGRAM NAME:         P27
058461,000036:                                                                                                  #  WRITTEN BY:           KILROY/ DE WOLF
058462,000037: 
058463,000038:                                                                                                  #  MOD NO:               6
058464,000039:                                                                                                  #  MOD BY:               KILROY
058465,000040:                                                                                                  #  DATE:                 01DEC67
058466,000041: 
058467,000042:                                                                                                  #  LOG SECTION:          UPDATE PROGRAM.
058468,000043: 
058469,000044:                                                                                                  #  FUNCT. DESCR:         P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
058470,000045:                                                                                                  #                            INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
058471,000046:                                                                                                  #                            THE P27 PROGRAM WILL ACCEPT UPDATES
058472,000047:                                                                                                  #                            ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
058473,000048:                                                                                                  #                        P02, AND FRESH START FOR THE CSM
058474,000049: 
058475,000050:                                                                                                  #  CALLING SEQ:          PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
058476,000051: 
058477,000052:                                                                                                  #  SUBROUTINES:          TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
058478,000053:                                                                                                  #                        INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
058479,000054: 
058480,000055:                                                                                                  #  NORMAL EXIT:          TC ENDEXT
058481,000056: 
058482,000057:                                                                                                  #  ALARM/ABORT:          TC FALTON FOLLOWED BY TC ENDEXT
058483,000058: 
058484,000059:                                                                                                  #  RESTARTS:             P27 IS RESTART PROTECTED IN TWO WAYS ...
058485,000060:                                                                                                  #                        1.      PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
058486,000061:                                                                                                  #                                DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
058487,000062:                                                                                                  #                                NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
058488,000063:                                                                                                  #                                ACTIVITY LIGHT IS TURNED OFF.  (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
058489,000064:                                                                                                  #                                V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
058490,000065:                                                                                                  #                        2.      AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
058491,000066:                                                                                                  #                                PROTECTED AGAINST RESTARTS.
058492,000067: 
058493,000068:                                                                                                  #  DEBRIS:               UPBUFF  (20D)   TEMP STORAGE FOR ADDRESSES AND CONTENTS.
058494,000069:                                                                                                  #                        UPVERB  (1)     VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
058495,000070:                                                                                                  #                        UPOLDMOD(1)     FOR MAJOR MODE INTERRUPTED BY P27.
058496,000071:                                                                                                  #                        COMPNUMB(1)     TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
058497,000072:                                                                                                  #                        UPCOUNT (1)     ACTUAL NUMBER OF COMPONENTS RECEIVED.
058498,000073:                                                                                                  #                        UPTEMP  (1)     SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
058499,000074: 
058500,000075:                                                                                                  #  INPUT:
058501,000076: 
058502,000077:                                                                                                  #        ENTRY:                  DESCRIPTION
058503,000078:                                                                                                  #        V70EXXXXXEXXXXXE        (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
058504,000079:                                                                                                  #                                IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
058505,000080:                                                                                                  #                                VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME(TETLEM).
058506,000081:                                                                                                  #                                THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).

Page 1379

058508,000083:                                                                                                  #        V71EIIEAAAAE            (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
058509,000084:                                                                                                  #        XXXXXE                  ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
058510,000085:                                                                                                  #        XXXXXE                  IT IS .GE. 3 .AND. .LE. 20D.,
058511,000086:                                                                                                  #                                AND (AAAA + II -3) DOES NOT PRODUCE AN ADDRESS IN THE
058512,000087:                                                                                                  #        9 NEXT BANK
058513,000088:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
058514,000089: 
058515,000090:                                                                                                  #        V72EIIE                 (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
058516,000091:                                                                                                  #        AAAAEXXXXXE             LOADED INTO ERASABLE LOCATIONS, AAAA.
058517,000092:                                                                                                  #        AAAAEXXXXXE             II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
058518,000093:                                                                                                  #         .                      SCALING IS SAME AS INTERNAL REGISTERS.
058519,000094: 
058520,000095:                                                                                                  #        V73EXXXXXEXXXXXE        (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
058521,000096:                                                                                                  #                                INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
058522,000097:                                                                                                  #                                CENTISECONDS SCALED AT (2)28.
058523,000098:                                                                                                  #                                THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
058524,000099: 
058525,000100:                                                                                                  #  OUTPUT:               IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
058526,000101:                                                                                                  #                        COMPLEMENT BIT3 OF FLAGWORD7.
058527,000102: 
058528,000103:                                                                                                  #  ADDITIONAL NOTES:     VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
058529,000104:                                                                                                  #                        1.  CSM/LM STATE VECTOR UPDATE
058530,000105:                                                                                                  #                        2.  REFSMMAT UPDATE
058531,000106: 
058532,000107:                                                                                                  #        THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE----
058533,000108: 
058534,000109:                                                                                                  #        1.  CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
058535,000110:                                                                                                  #                ENTRIES:        DATA DEFINITION:                                SCALE FACTORS:
058536,000111:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
058537,000112:                                                                                                  #                   21E          NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
058538,000113:                                                                                                  #                 AAAAE          ECADR OF 'UPSVFLAG'
058539,000114:                                                                                                  #                XXXXXE          STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
058540,000115:                                                                                                  #                                                         00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
058541,000116:                                                                                                  #                XXXXXEXXXXXE    X POSITION
058542,000117:                                                                                                  #                XXXXXEXXXXXE    Y POSITION
058543,000118:                                                                                                  #                XXXXXEXXXXXE    Z POSITION
058544,000119:                                                                                                  #                XXXXXEXXXXXE    X VELOCITY
058545,000120:                                                                                                  #                XXXXXEXXXXXE    Y VELOCITY
058546,000121:                                                                                                  #                XXXXXEXXXXXE    Z VELOCITY
058547,000122:                                                                                                  #                XXXXXEXXXXXE    TIME FROM AGC CLOCK ZERO
058548,000123:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
058549,000124: 
058550,000125:                                                                                                  #        2.  REFSMMAT (ALL DATA ENTRIES IN OCTAL)
058551,000126:                                                                                                  #                ENTRIES:        DATA DEFINITIONS:                               SCALE FACTORS:

Page 1380

058553,000128:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
058554,000129:                                                                                                  #                   24E          NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
058555,000130:                                                                                                  #                 AAAAE          ECADR OF 'REFSMMAT'
058556,000131:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 1                                  2(-1)
058557,000132:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 2                                  2(-1)
058558,000133:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 3                                  2(-1)
058559,000134:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 1                                  2(-1)
058560,000135:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 2                                  2(-1)
058561,000136:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 3                                  2(-1)
058562,000137:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 1                                  2(-1)
058563,000138:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 2                                  2(-1)
058564,000139:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 3                                  2(-1)
058565,000140:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
058566,000141: 
058567,000142: 07,3763                                           BANK     07                                    
058568,000143: 43,2000                                           SETLOC   EXTVERBS                              
058569,000144: 43,2000                                           BANK                                           
058570,000145: 
058571,000146: 43,3751  E3,1706                                  EBANK=   TEPHEM                                
058572,000147: 
058573,000148: 43,3751                                           COUNT*   $$/P27                                
058574,000149: 43,3751           34755        V70UPDAT           CAF      UP70                                  #  COMES HERE ON V70E
058575,000150: 43,3752           13760                           TCF      V73UPDAT   +1                         
058576,000151: 
058577,000152: 43,3753           34753        V71UPDAT           CAF      UP71                                  #  COMES HERE ON V71E
058578,000153: 43,3754           13760                           TCF      V73UPDAT   +1                         
058579,000154: 
058580,000155: 43,3755           34752        V72UPDAT           CAF      UP72                                  #  COMES HERE ON V72E
058581,000156: 43,3756           13760                           TCF      V73UPDAT   +1                         
058582,000157: 
058583,000158: 43,3757           36250        V73UPDAT           CAF      UP73                                  #  COMES HERE ON V73E
058584,000159: 
058585,000160: 43,3760           55165                 +1        TS       UPVERBSV                              #  SAVE UPVERB UNTIL IT'S OK TO ENTER P27
058586,000161: 
058587,000162: 43,3761           02076                           TC       TESTXACT                              #  GRAB DISPLAY IF AVAILABLE, OTHERWISE
058588,000163:                                                                                                  #  TURN *OPERATOR ERROR* ON AND TERMINATEJOB
058589,000164: 
058590,000165: 43,3762           31010                           CA       MODREG                                #  CHECK IF UPDATE ALLOWED
058591,000166: 43,3763           00006                           EXTEND                                         #  FIRST CHECK FOR MODREG = +0, -0
058592,000167: 43,3764           13767                           BZF      +3                                    #  (+0 = P00, -0 = FRESHSTART)
058593,000168: 43,3765           04635        UPERROR            TC       POSTJUMP                              #  TURN ON 'OPERATOR ERROR' LIGHT
058594,000169: 43,3766           11740                           CADR     UPERROUT   +2                         #  GO TO COMMON UPDATE PROGRAM EXIT
058595,000170: 
058596,000171: 43,3767  43,3765               CKMDMORE           =        UPERROR                               
058597,000172: 43,3767           55170                 +3        TS       UPOLDMOD                              #  SET UPOLDMOD TO ZERO.
058598,000173: 43,3770           31165                           CAE      UPVERBSV                              #  SET UPVERB TO INDICATE TO P27

Page 1381

058600,000175: 43,3771           55171                           TS       UPVERB                                #  WHICH EXTENDED VERB CALLED IT.
058601,000176: 
058602,000177: 43,3772           34753                           CAF      ONE                                   
058603,000178: 43,3773           55172                           TS       UPCOUNT                               #  INITIALIZE UPCOUNT TO 1
058604,000179: 
058605,000180: 43,3774           04635                           TC       POSTJUMP                              #  LEAVE EXTENDED VERB BANK AND
058606,000181: 43,3775           11357                           CADR     UPPART2                               #  GO TO UPDATE PROGRAM (P27) BANK.
058607,000182: 
058608,000183: 43,3776     4755               UP70               EQUALS   ZERO                                  
058609,000184: 43,3776     4753               UP71               EQUALS   ONE                                   
058610,000185: 43,3776     4752               UP72               EQUALS   TWO                                   
058611,000186: 43,3776     6250               UP73               EQUALS   THREE                                 
058612,000187: 
058613,000188: 04,3357                                           BANK     04                                    
058614,000189: 04,2000                                           SETLOC   UPDATE2                               
058615,000190: 04,2000                                           BANK                                           
058616,000191: 
058617,000192: 04,3357                                           COUNT*   $$/P27                                
058618,000193: 
058619,000194: 04,3357                        UPPART2            EQUALS                                         #  UPDATE PROGRAM - PART 2
058620,000195: 
058621,000196: 04,3357           05353                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO RESTORE OLD MODE
058622,000197: 04,3360           07026                           OCT      07026                                 #  AND DOWNLIST AND EXIT IF RESTART OCCURS.
058623,000198: 04,3361           30000                           OCT      30000                                 #  PRIORITY SAME AS CHRPRIO
058624,000199: 04,3362     1173                                  EBANK=   UPBUFF                                
058625,000200: 04,3362           03670 10102                     2CADR    UPOUT      +1                         
058626,000201: 
058627,000202: 04,3364           34753                           CAF      ONE                                   
058628,000203: 04,3365           54333                           TS       DNLSTCOD                              #  DOWNLIST
058629,000204: 
058630,000205: 04,3366           05311                           TC       NEWMODEX                              #  SET MAJOR MODE = 27
058631,000206: 04,3367           00033                           DEC      27         B-14                       
058632,000207: 
058633,000208: 04,3370           51171                           INDEX    UPVERB                                #  BRANCH DEPENDING ON WHETHER THE UPDATE
058634,000209: 04,3371           13372                           TCF      +1                                    #  VERB REQUIRES A FIXED OR VARIABLE NUMBER
058635,000210: 04,3372           13375                           TCF      +3                                    #  V70 FIXED.               (OF COMPONENTS.
058636,000211: 04,3373           13400                           TCF      OHWELL1                               #  V71 VARIABLE - GO GET NO. OF COMPONENTS
058637,000212: 04,3374           13400                           TCF      OHWELL1                               #  V72 VARIABLE - GO GET NO. OF COMPONENTS
058638,000213: 04,3375           34752                           CA       TWO                                   #  V73 (AND V70) FIXED
058639,000214: 04,3376           55167                           TS       COMPNUMB                              #  SET NUMBER OF COMPONENTS TO 2.
058640,000215: 04,3377           13423                           TCF      OHWELL2                               #  GO GET THE TWO UPDATE COMPONENTS
058641,000216: 
058642,000217: 04,3400           33473        OHWELL1            CAF      ADUPBUFF                              #  * REQUEST USER TO SEND NUMBER  *
058643,000218: 04,3401           54156                           TS       MPAC       +2                         #  * OF COMPONENTS PARAMETER(II). *
058644,000219: 04,3402           33474                 +2        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
058645,000220: 04,3403           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
058646,000221: 04,3404           20334                           CADR     GOXDSPF                               #  TO REQUEST II.

Page 1382

058648,000223: 04,3405           13670                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
058649,000224: 04,3406           13402                           TCF      OHWELL1    +2                         
058650,000225: 04,3407           03464                           TC       CK4V32                                #  DATA OR V32 RETURN
058651,000226: 04,3410           44752                           CS       BIT2                                  
058652,000227: 04,3411           61173                           AD       UPBUFF                                #  IS II (NUMBER OF COMPONENTS PARAMETER)
058653,000228: 04,3412           00006                           EXTEND                                         #  .GE. 3 AND .LE. 20D.
058654,000229: 04,3413           63402                           BZMF     OHWELL1    +2                         
058655,000230: 04,3414           41173                           CS       UPBUFF                                
058656,000231: 04,3415           64362                           AD       UP21                                  
058657,000232: 04,3416           00006                           EXTEND                                         
058658,000233: 04,3417           63402                           BZMF     OHWELL1    +2                         
058659,000234: 04,3420           31173                           CAE      UPBUFF                                
058660,000235: 04,3421           55167                           TS       COMPNUMB                              #  SAVE II IN COMPNUMB
058661,000236: 
058662,000237:                                                                                                  #  UPBUFF LOADING SEQUENCE
058663,000238: 
058664,000239: 04,3422           25172                           INCR     UPCOUNT                               #  INCREMENT COUNT OF COMPONENTS RECEIVED.
058665,000240: 04,3423           33640        OHWELL2            CAF      ADUPBFM1                              #  CALCULATE LOCATION (ECADR) IN UPBUFF
058666,000241: 04,3424           61172                           AD       UPCOUNT                               #  WHERE NEXT COMPONENT SHOULD BE STORED.
058667,000242: 04,3425           54156                 +2        TS       MPAC       +2                         #  PLACE ECADR INTO R3.
058668,000243: 04,3426           33474                 +3        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
058669,000244: 04,3427           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
058670,000245: 04,3430           20334                           CADR     GOXDSPF                               #  TO REQUEST DATA.
058671,000246: 04,3431           13670                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN.
058672,000247: 04,3432           13426                           TCF      OHWELL2    +3                         #  V33 PROCEED RETURN
058673,000248: 04,3433           03464                           TC       CK4V32                                #  DATA OR V32 RETURN
058674,000249: 04,3434           41172                           CS       UPCOUNT                               #  HAVE WE FINISHED RECEIVING ALL
058675,000250: 04,3435           61167                           AD       COMPNUMB                              #  THE DATA WE EXPECTED.
058676,000251: 04,3436           00006                           EXTEND                                         
058677,000252: 04,3437           63441                           BZMF     UPVERIFY                              #  YES - GO TO VERIFICATION SEQUENCE
058678,000253: 04,3440           13422                           TCF      OHWELL2    -1                         #  NO - REQUEST ADDITIONAL DATA.
058679,000254: 
058680,000255:                                                                                                  #  VERIFY SEQUENCE
058681,000256: 
058682,000257: 04,3441           33472        UPVERIFY           CAF      ADUPTEMP                              #  PLACE ECADR WHERE COMPONENT NO. INDEX
058683,000258: 04,3442           54156                           TS       MPAC       +2                         #  IS TO BE STORED INTO R3.
058684,000259: 04,3443           33475                           CAF      UPVRFYNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
058685,000260: 04,3444           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N02 TO REQUEST
058686,000261: 04,3445           20334                           CADR     GOXDSPF                               #  DATA CORRECTION OR VERIFICATION.
058687,000262: 04,3446           13670                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
058688,000263: 04,3447           13476                           TCF      UPSTORE                               #  V33 DATA SENT IS GOOD.  GO STORE IT.
058689,000264: 04,3450           03464                           TC       CK4V32                                #  COMPONENT NO. INDEX OR V32 RETURN
058690,000265: 04,3451           31166                           CA       UPTEMP                                #  DOES THE COMPONENT NO. INDEX JUST SENT
058691,000266: 04,3452           00006                           EXTEND                                         #  SPECIFY A LEGAL COMPONENT NUMBER?
058692,000267: 04,3453           63441                           BZMF     UPVERIFY                              #  NO, IT IS NOT POSITIVE NONZERO
058693,000268: 04,3454           41166                           CS       UPTEMP                                
058694,000269: 04,3455           61167                           AD       COMPNUMB                              
058695,000270: 04,3456           64753                           AD       BIT1                                  

Page 1383

058697,000272: 04,3457           00006                           EXTEND                                         
058698,000273: 04,3460           63441                           BZMF     UPVERIFY                              #  NO
058699,000274: 04,3461           33640                           CAF      ADUPBFM1                              #  YES - BASED ON THE COMPONENT NO. INDEX
058700,000275: 04,3462           61166                           AD       UPTEMP                                #  CALCULATE THE ECADR OF LOCATION IN
058701,000276: 04,3463           13425                           TCF      OHWELL2    +2                         #  UPBUFF WHICH USER WANTS TO CHANGE.
058702,000277: 
058703,000278: 04,3464  04,3670               UPOUT4             EQUALS   UPOUT      +1                         #  COMES HERE ON V34 TO TERMINATE UPDATE
058704,000279: 
058705,000280:                                                                                                  #  CHECK FOR VERB 32 SEQUENCE
058706,000281: 
058707,000282: 04,3464           40154        CK4V32             CS       MPAC                                  #  ON DATA RETURN FROM 'GOXDSPF'
058708,000283: 04,3465           74746                           MASK     BIT6                                  #  ON DATA RETURN FROM "GOXDSP" & THE CON-
058709,000284: 04,3466           10000                           CCS      A                                     #  TENTS OF MPAC = VERB.  SO TEST FOR V32.
058710,000285: 04,3467           00002                           TC       Q                                     #  IT'S NOT A V32, IT'S DATA.  PROCEED.
058711,000286: 04,3470           50002                           INDEX    Q                                     
058712,000287: 04,3471           77771                           TC       0          -6                         #  V32 ENCOUNTERED - GO BACK AND GET DATA
058713,000288: 
058714,000289: 04,3472           01166        ADUPTEMP           ADRES    UPTEMP                                #  ADDRESS OF TEMP STORAGE FOR CORRECTIONS
058715,000290: 04,3473           01173        ADUPBUFF           ADRES    UPBUFF                                #  ADDRESS OF UPDATE DATA STORAGE BUFFER
058716,000291: 04,3474           05201        UPLOADNV           VN       2101                                  #  VERB 21 NOUN 01
058717,000292: 04,3475           05202        UPVRFYNV           VN       2102                                  #  VERB 21 NOUN 02
058718,000293: 04,3476     4362               UP21               =        MD1                                   #  DEC 21 = MAX NO OF COMPONENTS +1
058719,000294: 04,3476     4756               UPDTPHAS           EQUALS   FIVE                                  
058720,000295: 
058721,000296:                                                                                                  #  PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
058722,000297: 
058723,000298: 04,3476                        UPSTORE            EQUALS                                         #  GROUND HAS VERIFIED UPDATE.  STORE DATA.
058724,000299: 
058725,000300: 04,3476           00004                           INHINT                                         
058726,000301: 
058727,000302: 04,3477           30103                           CAE      FLAGWRD7                              #  INVERT VERIFLAG (BIT 3 OF FLAGWRD7) TO
058728,000303: 04,3500           56001                           XCH      L                                     #  INDICATE TO THE GROUND (VIA DOWNLINK)
058729,000304: 04,3501           34751                           CAF      VERIFBIT                              #  THAT THE V33 (WHICH THE GROUND SENT TO
058730,000305: 04,3502           00006                           EXTEND                                         #  VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
058731,000306: 04,3503           06001                           RXOR     LCHAN                                 #  RECEIVED BY THE UPDATE PROGRAM
058732,000307: 04,3504           54103                           TS       FLAGWRD7                              
058733,000308: 
058734,000309: 04,3505           05353                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO REDO THE UPDATE
058735,000310: 04,3506           04026                           OCT      04026                                 #  DATA STORE IF A RESTART OCCURS.
058736,000311: 04,3507           00004                           INHINT                                         #  (BECAUSE PHASCHNG DID A RELINT)
058737,000312: 
058738,000313: 04,3510           44752                           CS       TWO                                   #  GO TO UPFNDVAC IF INSTALL IS REQUIRED,
058739,000314: 04,3511           61171                           AD       UPVERB                                #  THAT IS, IF IT'S A V70 - V72.
058740,000315: 04,3512           00006                           EXTEND                                         #  GO TO UPEND73 IF IT'S A V73.
058741,000316: 04,3513           63522                           BZMF     UPFNDVAC                              
058742,000317: 
058743,000318:                                                                                                  #  VERB 73 BRANCH
058744,000319: 
058745,000320: 04,3514           00006        UPEND73            EXTEND                                         #  V73 - PERFORM DP OCTAL AGC CLOCK INCREMENT

Page 1384

058747,000322: 04,3515           31174                           DCA      UPBUFF                                
058748,000323: 04,3516           53204                           DXCH     UPBUFF     +8D                        
058749,000324: 04,3517           03545                           TC       TIMEDIDL                              
058750,000325: 04,3520           04364                           TC       FALTON                                #  ERROR - TURN ON *OPERATOR ERROR* LIGHT
058751,000326: 04,3521           03670                           TC       UPOUT      +1                         #  GO TO COMMON UPDATE PROGRAM EXIT
058752,000327: 
058753,000328: 04,3522           34355        UPFNDVAC           CAF      CHRPRIO                               #  (USE EXTENDED VERB PRIORITY)
058754,000329: 04,3523           05105                           TC       FINDVAC                               #  GET VAC AREA FOR 'CALL INTSTALL'
058755,000330: 04,3524  E3,1706                                  EBANK=   TEPHEM                                
058756,000331: 04,3524           03527 10103                     2CADR    UPJOB                                 #  (NOTE:  THIS WILL ALSO SET EBANK FOR
058757,000332: 04,3526           05155                           TC       ENDOFJOB                              #  'TEPHEM' UPDATE BY V70)
058758,000333: 
058759,000334: 04,3527           06042        UPJOB              TC       INTPRET                               #  THIS COULD BE A STATE VECTOR UPDATE -- SO
058760,000335: 04,3530           77624                           CALL                                           #  WAIT (PUT JOB TO SLEEP) IF ORBIT INT(OI)
058761,000336: 04,3531           27410                                    INTSTALL                              #  IS IN PROGRESS -- OR -- GRAB OI AND RETURN
058762,000337:                                                                                                  #  TO UPWAKE IF OI IS NOT IN PROGRESS.
058763,000338: 
058764,000339: 04,3532           77776        UPWAKE             EXIT                                           
058765,000340: 
058766,000341: 04,3533           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058767,000342: 04,3534           04026                           OCT      04026                                 
058768,000343: 
058769,000344: 04,3535           05504                           TC       UPFLAG                                #  SET INTEGRATION RESTART BIT
058770,000345: 04,3536           00236                           ADRES    REINTFLG                              
058771,000346: 04,3537           00004                           INHINT                                         
058772,000347: 04,3540                        UPPART3            EQUALS                                         
058773,000348: 
058774,000349: 04,3540           51171                           INDEX    UPVERB                                #  BRANCH TO THE APPROPRIATE UPDATE VERB
058775,000350: 04,3541           13542                           TCF      +1                                    #  ROUTINE TO ACTUALLY PERFORM THE UPDATE
058776,000351: 04,3542           13701                           TCF      UPEND70                               #  V70
058777,000352: 04,3543           13610                           TCF      UPEND71                               #  V71
058778,000353: 04,3544           13642                           TCF      UPEND72                               #  V72
058779,000354: 
058780,000355:                                                                                                  #  ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
058781,000356: 
058782,000357: 04,3545           00006        TIMEDIDL           EXTEND                                         
058783,000358: 04,3546           23166                           QXCH     UPTEMP                                #  SAVE Q FOR RETURN
058784,000359: 04,3547           34755                           CAF      ZERO                                  #  ZERO AND SAVE TIME2,TIME1
058785,000360: 04,3550           22007                           ZL                                             
058786,000361: 04,3551           52025                           DXCH     TIME2                                 
058787,000362: 04,3552           53216                           DXCH     UPBUFF     +18D                       #  STORE IN CASE OF OVERFLOW
058788,000363: 
058789,000364: 04,3553           34756                           CAF      UPDTPHAS                              #  DO
058790,000365: 04,3554           54001                           TS       L                                     #  A
058791,000366: 04,3555           40000                           COM                                            #  QUICK
058792,000367: 04,3556           52764                           DXCH     -PHASE6                               #  PHASCHNG
058793,000368: 
058794,000369: 04,3557           00004        TIMEDIDR           INHINT                                         

Page 1385

058796,000371: 04,3560           34755                           CAF      ZERO                                  
058797,000372: 04,3561           22007                           ZL                                             #  PICK UP INCREMENTER(AND ZERO
058798,000373: 04,3562           54156                           TS       MPAC       +2                         #  IT IN CASE OF RESTARTS) AND
058799,000374: 04,3563           53204                           DXCH     UPBUFF     +8D                        #  STORE IT
058800,000375: 04,3564           52155                           DXCH     MPAC                                  #  INTO MPAC FOR TPAGREE.
058801,000376: 
058802,000377: 04,3565           00006                           EXTEND                                         
058803,000378: 04,3566           31216                           DCA      UPBUFF     +18D                       
058804,000379: 04,3567           20155                           DAS      MPAC                                  #  FORM SUM IN MPAC
058805,000380: 04,3570           00006                           EXTEND                                         
058806,000381: 04,3571           13600                           BZF      DELTATOK                              #  TEST FOR OVERFLOW
058807,000382: 04,3572           34755                           CAF      ZERO                                  
058808,000383: 04,3573           53216                           DXCH     UPBUFF     +18D                       #  OVERFLOW, RESTORE OLD VALUE OF CLOCK
058809,000384: 04,3574           20025                           DAS      TIME2                                 #  AND TURN ON OPERATOR ERROR
058810,000385: 
058811,000386: 04,3575           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058812,000387: 04,3576           04026                           OCT      04026                                 
058813,000388: 
058814,000389: 04,3577           01166                           TC       UPTEMP                                #  GO TO ERROR EXIT
058815,000390: 
058816,000391: 04,3600           07262        DELTATOK           TC       TPAGREE                               #  FORCE SIGN AGREEMENT
058817,000392: 04,3601           52155                           DXCH     MPAC                                  
058818,000393: 04,3602           20025                           DAS      TIME2                                 #  INCREMENT TIME2,TIME1
058819,000394: 
058820,000395: 04,3603           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058821,000396: 04,3604           04026                           OCT      04026                                 
058822,000397: 
058823,000398: 04,3605           00004                           INHINT                                         
058824,000399: 04,3606           51166                           INDEX    UPTEMP                                #  (CODED THIS WAY FOR RESTART PROTECTION)
058825,000400: 04,3607           00001                           TC       1                                     #  NORMAL RETURN
058826,000401: 
058827,000402:                                                                                                  #  VERB 71 BRANCH
058828,000403: 
058829,000404: 04,3610           31174        UPEND71            CAE      UPBUFF     +1                         #  SET EBANK
058830,000405: 04,3611           54003                           TS       EBANK                                 #        AND
058831,000406: 04,3612           74357                           MASK     LOW8                                  #  CALCULATE
058832,000407: 04,3613           55166                           TS       UPTEMP                                #  S-REG VALUE OF RECEIVING AREA
058833,000408: 
058834,000409: 04,3614           67750                           AD       NEG3                                  #  IN THE PROCESS OF
058835,000410: 04,3615           61167                           AD       COMPNUMB                              #  PERFORMING
058836,000411: 04,3616           00006                           EXTEND                                         #  THIS UPDATE
058837,000412: 04,3617           13625                           BZF      STORLP71                              #  WILL WE
058838,000413: 04,3620           74743                           MASK     BIT9                                  #  OVERFLOW
058839,000414: 04,3621           10000                           CCS      A                                     #  INTO THE NEXT EBANK....
058840,000415: 04,3622           13736                           TCF      UPERROUT                              #  YES
058841,000416: 
058842,000417: 04,3623           37750                           CA       NEG3                                  #  NO - CALCULATE NUMBER OF
058843,000418: 04,3624           61167                           AD       COMPNUMB                              #  WORDS TO BE STORED MINUS ONE
058844,000419: 04,3625           54154        STORLP71           TS       MPAC                                  #  SAVE NO. OF WORDS REMAINING MINUS ONE
058845,000420: 04,3626           50000                           INDEX    A                                     #  TAKE NEXT UPDATE WORD FROM
058846,000421: 04,3627           31175                           CA       UPBUFF     +2                         #  UPBUFF AND

Page 1386

058848,000423: 04,3630           54001                           TS       L                                     #  SAVE IT IN L
058849,000424: 04,3631           30154                           CA       MPAC                                  #  CALCULATE NEXT
058850,000425: 04,3632           61166                           AD       UPTEMP                                #  RECEIVING ADDRESS
058851,000426: 04,3633           50000                           INDEX    A                                     
058852,000427: 04,3634  E3,1400                                  EBANK=   1400                                  
058853,000428: 04,3634           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
058854,000429: 04,3635  E3,1706                                  EBANK=   TEPHEM                                
058855,000430: 04,3635           10154                           CCS      MPAC                                  #  ARE THERE ANY WORDS LEFT TO BE STORED
058856,000431: 04,3636           13625                           TCF      STORLP71                              #  YES
058857,000432: 04,3637           13667                           TCF      UPOUT                                 #  NO - THEN EXIT UPDATE PROGRAM
058858,000433: 04,3640           01172        ADUPBFM1           ADRES    UPBUFF     -1                         #  SAME AS ADUPBUFF BUT LESS 1 (DON'T MOVE)
058859,000434: 04,3641           13667                           TCF      UPOUT                                 #  NO - EXIT UPDATE (HERE WHEN COMPNUMB = 3)
058860,000435: 
058861,000436:                                                                                                  #  VERB 72 BRANCH
058862,000437: 
058863,000438: 04,3642           34753        UPEND72            CAF      BIT1                                  #  HAVE AN ODD NO. OF COMPONENTS
058864,000439: 04,3643           71167                           MASK     COMPNUMB                              #  BEEN SENT FOR A V72 UPDATE ...
058865,000440: 04,3644           10000                           CCS      A                                     
058866,000441: 04,3645           13647                           TCF      +2                                    #  YES
058867,000442: 04,3646           13736                           TCF      UPERROUT                              #  ERROR - SHOULD BE ODD NO. OF COMPONENTS
058868,000443: 04,3647           44752                           CS       BIT2                                  
058869,000444: 04,3650           61167                           AD       COMPNUMB                              
058870,000445: 04,3651           54154        LDLOOP72           TS       MPAC                                  #  NOW PERFORM THE UPDATE
058871,000446: 04,3652           50000                           INDEX    A                                     
058872,000447: 04,3653           31174                           CAE      UPBUFF     +1                         #  PICK UP NEXT UPDATE WORD
058873,000448: 04,3654           22000                           LXCH     A                                     
058874,000449: 04,3655           10154                           CCS      MPAC                                  #  SET POINTER TO ECADR (MUST BE CCS)
058875,000450: 04,3656           54154                           TS       MPAC                                  
058876,000451: 04,3657           50000                           INDEX    A                                     
058877,000452: 04,3660           31174                           CAE      UPBUFF     +1                         #  PICK UP NEXT ECADR OF REG TO BE UPDATED
058878,000453: 04,3661           54003                           TS       EBANK                                 #  SET EBANK
058879,000454: 04,3662           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
058880,000455: 04,3663           50000                           INDEX    A                                     
058881,000456: 04,3664  E3,1400                                  EBANK=   1400                                  
058882,000457: 04,3664           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
058883,000458: 04,3665  E3,1706                                  EBANK=   TEPHEM                                
058884,000459: 04,3665           10154                           CCS      MPAC                                  #  ARE WE THROUGH THE V72 UPDATE...
058885,000460: 04,3666           13651                           TCF      LDLOOP72                              #  NO
058886,000461: 
058887,000462:                                                                                                  #  NORMAL FINISH OF P27
058888,000463: 
058889,000464: 04,3667                        UPOUT              EQUALS                                         
058890,000465: 04,3667           03131                           TC       INTWAKEU                              #  RELEASE GRAB OF ORBITAL INTEGRATION
058891,000466: 04,3670           31170                 +1        CAE      UPOLDMOD                              #  RESTORE PRIOR P27 MODE
058892,000467: 04,3671           05314                           TC       NEWMODEX   +3                         
058893,000468: 04,3672           34755                           CAF      ZERO                                  
058894,000469: 04,3673           54333                           TS       DNLSTCOD                              
058895,000470: 04,3674           03743                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT

Page 1387

058897,000472: 04,3675           00006                           EXTEND                                         #  KILL GROUP 6.
058898,000473: 04,3676           34755                           DCA      NEG0                                  
058899,000474: 04,3677           52764                           DXCH     -PHASE6                               
058900,000475: 
058901,000476: 04,3700           05472                           TC       ENDEXT                                #  EXTENDED VERB EXIT
058902,000477: 
058903,000478:                                                                                                  #  VERB 70 BRANCH
058904,000479: 
058905,000480: 04,3701           00006        UPEND70            EXTEND                                         #  V70 DOES THE FOLLOWING WITH DP DELTA
058906,000481: 04,3702           41174                           DCS      UPBUFF                                #  TIME IN UPBUFF
058907,000482: 04,3703           53204                           DXCH     UPBUFF     +8D                        
058908,000483: 04,3704           03545                           TC       TIMEDIDL                              #  DECREMENT AGC CLOCK
058909,000484: 
058910,000485: 04,3705           03736                           TC       UPERROUT                              #  ERROR WHILE DECREMENTING CLOCK -- EXIT
058911,000486: 
058912,000487: 04,3706  E3,1706                                  EBANK=   TEPHEM                                
058913,000488: 04,3706           00006                           EXTEND                                         
058914,000489: 04,3707           41174                           DCS      UPBUFF                                #  COPY DECREMENTERS FOR
058915,000490: 04,3710           53206                           DXCH     UPBUFF     +10D                       #  RESTART PROTECTION
058916,000491: 04,3711           00006                           EXTEND                                         
058917,000492: 04,3712           41174                           DCS      UPBUFF                                
058918,000493: 04,3713           53210                           DXCH     UPBUFF     +12D                       
058919,000494: 
058920,000495: 04,3714           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058921,000496: 04,3715           04026                           OCT      04026                                 
058922,000497: 
058923,000498: 04,3716           34755                           CAF      ZERO                                  
058924,000499: 04,3717           22007                           ZL                                             
058925,000500: 04,3720           53206                           DXCH     UPBUFF     +10D                       #  DECREMENT CSM STATE VECTOR TIME
058926,000501: 04,3721           21571                           DAS      TETCSM                                
058927,000502: 
058928,000503: 04,3722           34755                           CAF      ZERO                                  
058929,000504: 04,3723           22007                           ZL                                             
058930,000505: 04,3724           53210                           DXCH     UPBUFF     +12D                       #  DECREMENT LEM STATE VECTOR TIME
058931,000506: 04,3725           21643                           DAS      TETLEM                                
058932,000507: 
058933,000508: 04,3726           34755                           CAF      ZERO                                  
058934,000509: 04,3727           22007                           ZL                                             
058935,000510: 04,3730           53174                           DXCH     UPBUFF                                
058936,000511: 04,3731           21710                           DAS      TEPHEM     +1                         #  INCREMENT TP TEPHEM
058937,000512: 04,3732           27706                           ADS      TEPHEM                                
058938,000513: 
058939,000514: 04,3733           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
058940,000515: 04,3734           04026                           OCT      04026                                 
058941,000516: 
058942,000517: 04,3735     1173                                  EBANK=   UPBUFF                                
058943,000518: 
058944,000519: 04,3735           03667                           TC       UPOUT                                 #  GO TO STANDARD UPDATE PROGRAM EXIT
058945,000520: 

Page 1388

058947,000522:                                                                                                  #  ERROR SEQUENCE
058948,000523: 
058949,000524: 04,3736           04364        UPERROUT           TC       FALTON                                #  TURN ON *OPERATOR ERROR* LIGHT
058950,000525: 04,3737           13667                           TCF      UPOUT                                 #  GO TO COMMON UPDATE PROGRAM EXIT
058951,000526: 
058952,000527: 04,3740           04364                 +2        TC       FALTON                                #  TURN ON 'OPERATOR ERROR' LIGHT
058953,000528: 04,3741           03743                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
058954,000529: 04,3742           05472                           TC       ENDEXT                                #  EXTENDED VERB EXIT
058955,000530:                                                                                                  #  (THE PURPOSE OF UPERROUT +2 EXIT IS
058956,000531:                                                                                                  #  TO PROVIDE AN ERROR EXIT WHICH DOES NOT
058957,000532:                                                                                                  #  RESET ANY RESTART GROUPS)
058958,000533: 
058959,000534:                                                                                                  #  :UPACTOFF: IS A ROUTINE TO TURN OFF UPLINK ACTIVITY LIGHT ON ALL EXITS FROM UPDATE PROGRAM (P27).
058960,000535: 
058961,000536: 04,3743           44751        UPACTOFF           CS       BIT3                                  
058962,000537: 04,3744           00006                           EXTEND                                         #  TURN OFF UPLINK ACTIVITY LIGHT
058963,000538: 04,3745           03011                           WAND     DSALMOUT                              #  (BIT 3 OF CHANNEL 11)
058964,000539: 04,3746           00002                           TC       Q                                     
058965,000540: 

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