Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	16:27 JULY 14,1969
Note that the date is the date of the printout, not the date of the program revision.

059442,000002:                                                                                                  ## Copyright:   Public domain.
059443,000003:                                                                                                  ## Filename:    UPDATE_PROGRAM.agc
059444,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
059445,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
059446,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
059447,000007:                                                                                                  ## Assembler:   yaYUL
059448,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
059449,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
059450,000010:                                                                                                  ## Pages:       1386-1396
059451,000011:                                                                                                  ## Mod history: 2009-05-10 SN   (Sergio Navarro).  Started adapting
059452,000012:                                                                                                  ##                              from the Luminary131/ file of the same
059453,000013:                                                                                                  ##                              name, using Luminary099 page images.
059454,000014:                                                                                                  ##              2009-06-07 RSB  Added an SBANK= to account for incompatibilities
059455,000015:                                                                                                  ##                              between YUL and yaYUL.
059456,000016:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
059457,000017:                                                                                                  ##              2011-05-07 JL   Flag SBANK= workaround.
059458,000018:                                                                                                  ##              2016-12-18 RSB  Proofed text comments with octopus/ProoferComments
059459,000019:                                                                                                  ##                              and corrected the errors found.
059460,000020:                                                                                                  ##              2017-01-28 RSB  Comment-text fixes identified for Luminary 69.
059461,000021:                                                                                                  ##              2017-02-09 RSB  Comment-text fixes identified for Artemis 72.
059462,000022:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes noted in proofing Luminary 116.
059463,000023:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
059464,000024:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
059465,000025:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
059466,000026:                                                                                                  ##              2021-05-30 ABS  DELTAOK -> DELTATOK
059467,000027: 
059468,000028:                                                                                                  ## This source code has been transcribed or otherwise adapted from
059469,000029:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
059470,000030:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
059471,000031:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
059472,000032:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
059473,000033:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
059474,000034:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
059475,000035:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
059476,000036:                                                                                                  ## actually created.
059477,000037:                                                                                                  ##
059478,000038:                                                                                                  ## Notations on the hardcopy document read, in part:
059479,000039:                                                                                                  ##
059480,000040:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
059481,000041:                                                                                                  ##      16:27 JULY 14, 1969 
059482,000042: 

Page 1386

059484,000044:                                                                                                  #  PROGRAM NAME:         P27
059485,000045:                                                                                                  #  WRITTEN BY:           KILROY/ DE WOLF
059486,000046: 
059487,000047:                                                                                                  #  MOD NO:               6
059488,000048:                                                                                                  #  MOD BY:               KILROY
059489,000049:                                                                                                  #  DATE:                 01DEC67
059490,000050: 
059491,000051:                                                                                                  #  LOG SECTION:          UPDATE PROGRAM.
059492,000052: 
059493,000053:                                                                                                  #  FUNCT. DESCR:         P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
059494,000054:                                                                                                  #                        INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
059495,000055:                                                                                                  #                        THE P27 PROGRAM WILL ACCEPT UPDATES
059496,000056:                                                                                                  #                        ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
059497,000057:                                                                                                  #                        P02, AND FRESH START FOR THE CSM
059498,000058: 
059499,000059:                                                                                                  #  CALLING SEQ:          PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
059500,000060: 
059501,000061:                                                                                                  #  SUBROUTINES:          TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
059502,000062:                                                                                                  #                        INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
059503,000063: 
059504,000064:                                                                                                  #  NORMAL EXIT:          TC ENDEXT
059505,000065: 
059506,000066:                                                                                                  #  ALARM/ABORT:          TC FALTON FOLLOWED BY TC ENDEXT
059507,000067: 
059508,000068:                                                                                                  #  RESTARTS:             P27 IS RESTART PROTECTED IN TWO WAYS ...
059509,000069:                                                                                                  #                        1.      PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
059510,000070:                                                                                                  #                                DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
059511,000071:                                                                                                  #                                NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
059512,000072:                                                                                                  #                                ACTIVITY LIGHT IS TURNED OFF.  (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
059513,000073:                                                                                                  #                                V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
059514,000074:                                                                                                  #                        2.      AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
059515,000075:                                                                                                  #                                PROTECTED AGAINST RESTARTS.
059516,000076: 
059517,000077:                                                                                                  #  DEBRIS:               UPBUFF  (20D)   TEMP STORAGE FOR ADDRESSES AND CONTENTS.
059518,000078:                                                                                                  #                        UPVERB  (1)     VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
059519,000079:                                                                                                  #                        UPOLDMOD(1)     FOR MAJOR MODE INTERRUPTED BY P27.
059520,000080:                                                                                                  #                        COMPNUMB(1)     TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
059521,000081:                                                                                                  #                        UPCOUNT (1)     ACTUAL NUMBER OF COMPONENTS RECEIVED.
059522,000082:                                                                                                  #                        UPTEMP  (1)     SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
059523,000083: 
059524,000084:                                                                                                  #  INPUT:
059525,000085: 
059526,000086:                                                                                                  #        ENTRY:                  DESCRIPTION
059527,000087:                                                                                                  #        V70EXXXXXEXXXXXE        (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
059528,000088:                                                                                                  #                                IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
059529,000089:                                                                                                  #                                VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME(TETLEM).
059530,000090:                                                                                                  #                                THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).

Page 1387

059532,000092:                                                                                                  #        V71EIIEAAAAE            (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
059533,000093:                                                                                                  #        XXXXXE                  ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
059534,000094:                                                                                                  #        XXXXXE                  IT IS .GE. 3 .AND. .LE. 20D.,
059535,000095:                                                                                                  #                                AND (AAAA + II -3) DOES NOT PRODUCE AN ADDRESS IN THE
059536,000096:                                                                                                  #        9 NEXT BANK
059537,000097:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
059538,000098:                                                                                                  #        V72EIIE                 (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
059539,000099:                                                                                                  #        AAAAEXXXXXE             LOADED INTO ERASABLE LOCATIONS, AAAA.
059540,000100:                                                                                                  #        AAAAEXXXXXE             II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
059541,000101:                                                                                                  #          .                     SCALING IS SAME AS INTERNAL REGISTERS.
059542,000102: 
059543,000103:                                                                                                  #        V73EXXXXXEXXXXXE        (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
059544,000104:                                                                                                  #                                INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
059545,000105:                                                                                                  #                                CENTISECONDS SCALED AT (2)28.
059546,000106:                                                                                                  #                                THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
059547,000107: 
059548,000108:                                                                                                  #  OUTPUT:               IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
059549,000109:                                                                                                  #                        COMPLEMENT BIT3 OF FLAGWORD7.
059550,000110: 
059551,000111:                                                                                                  #  ADDITIONAL NOTES:     VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
059552,000112:                                                                                                  #                        1.  CSM/LM STATE VECTOR UPDATE
059553,000113:                                                                                                  #                        2.  REFSMMAT UPDATE
059554,000114: 
059555,000115:                                                                                                  #        THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE ----
059556,000116: 
059557,000117:                                                                                                  #        1.  CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
059558,000118:                                                                                                  #                ENTRIES:        DATA DEFINITION:                                SCALE FACTORS:
059559,000119:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
059560,000120:                                                                                                  #                   21E          NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
059561,000121:                                                                                                  #                 AAAAE          ECADR OF 'UPSVFLAG'
059562,000122:                                                                                                  #                XXXXXE          STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
059563,000123:                                                                                                  #                                                         00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
059564,000124:                                                                                                  #                XXXXXEXXXXXE    X POSITION
059565,000125:                                                                                                  #                XXXXXEXXXXXE    Y POSITION
059566,000126:                                                                                                  #                XXXXXEXXXXXE    Z POSITION
059567,000127:                                                                                                  #                XXXXXEXXXXXE    X VELOCITY
059568,000128:                                                                                                  #                XXXXXEXXXXXE    Y VELOCITY
059569,000129:                                                                                                  #                XXXXXEXXXXXE    Z VELOCITY
059570,000130:                                                                                                  #                XXXXXEXXXXXE    TIME FROM AGC CLOCK ZERO
059571,000131:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
059572,000132: 
059573,000133:                                                                                                  #        2.  REFSMMAT (ALL DATA ENTRIES IN OCTAL)
059574,000134:                                                                                                  #                ENTRIES:        DATA DEFINITIONS:                               SCALE FACTORS:

Page 1388

059576,000136:                                                                                                  #                V71E            CONTIGUOUS BLOCK UPDATE VERB
059577,000137:                                                                                                  #                   24E          NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
059578,000138:                                                                                                  #                 AAAAE          ECADR OF 'REFSMMAT'
059579,000139:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 1                                  2(-1)
059580,000140:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 2                                  2(-1)
059581,000141:                                                                                                  #                XXXXXEXXXXXE    ROW 1 COLUMN 3                                  2(-1)
059582,000142:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 1                                  2(-1)
059583,000143:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 2                                  2(-1)
059584,000144:                                                                                                  #                XXXXXEXXXXXE    ROW 2 COLUMN 3                                  2(-1)
059585,000145:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 1                                  2(-1)
059586,000146:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 2                                  2(-1)
059587,000147:                                                                                                  #                XXXXXEXXXXXE    ROW 3 COLUMN 3                                  2(-1)
059588,000148:                                                                                                  #                V33E            VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
059589,000149: 
059590,000150: 
059591,000151: 
059592,000152: 07,3773                                           BANK     07                                    
059593,000153: 43,2000                                           SETLOC   EXTVERBS                              
059594,000154: 43,2000                                           BANK                                           
059595,000155: 
059596,000156: 43,3724  E3,1706                                  EBANK=   TEPHEM                                
059597,000157: 
059598,000158: 43,3724                                           COUNT*   $$/P27                                
059599,000159: 43,3724           34755        V70UPDAT           CAF      UP70                                  #  COMES HERE ON V70E
059600,000160: 43,3725           13733                           TCF      V73UPDAT   +1                         
059601,000161: 
059602,000162: 43,3726           34753        V71UPDAT           CAF      UP71                                  #  COMES HERE ON V71E
059603,000163: 43,3727           13733                           TCF      V73UPDAT   +1                         
059604,000164: 
059605,000165: 43,3730           34752        V72UPDAT           CAF      UP72                                  #  COMES HERE ON V72E
059606,000166: 43,3731           13733                           TCF      V73UPDAT   +1                         
059607,000167: 
059608,000168: 43,3732           36245        V73UPDAT           CAF      UP73                                  #  COMES HERE ON V73E
059609,000169: 
059610,000170: 43,3733           55166                 +1        TS       UPVERBSV                              #  SAVE UPVERB UNTIL IT'S OK TO ENTER P27
059611,000171: 
059612,000172: 43,3734           02076                           TC       TESTXACT                              #  GRAB DISPLAY IF AVAILABLE, OTHERWISE
059613,000173:                                                                                                  #  TURN*OPERATOR ERROR* ON AND TERMINATEJOB
059614,000174: 
059615,000175: 43,3735           31011                           CA       MODREG                                #  CHECK IF UPDATE ALLOWED
059616,000176: 43,3736           00006                           EXTEND                                         #  FIRST CHECK FOR MODREG = +0, -0
059617,000177: 43,3737           13742                           BZF      +3                                    #  (+0 = P00, -0 = FRESHSTART)
059618,000178: 43,3740           04635        UPERROR            TC       POSTJUMP                              #  TURN ON 'OPERATOR ERROR' LIGHT
059619,000179: 43,3741           11762                           CADR     UPERROUT   +2                         #  GO TO COMMON UPDATE PROGRAM EXIT
059620,000180: 
059621,000181: 43,3742           31011                           CAE      MODREG                                #  UPDATE ALLOWED.
059622,000182: 43,3743  43,3740               CKMDMORE           =        UPERROR                               
059623,000183: 43,3743           55171                           TS       UPOLDMOD                              #  SAVE CURRENT MAJOR MODE

Page 1389

059625,000185: 43,3744           31166                           CAE      UPVERBSV                              #  SET UPVERB TO INDICATE TO P27
059626,000186: 
059627,000187: 43,3745           55172                           TS       UPVERB                                #  WHICH EXTENDED VERB CALLED IT.
059628,000188: 
059629,000189: 43,3746           34753                           CAF      ONE                                   
059630,000190: 43,3747           55173                           TS       UPCOUNT                               #  INITIALIZE UPCOUNT TO 1
059631,000191: 
059632,000192: 43,3750           04635                           TC       POSTJUMP                              #  LEAVE EXTENDED VERB BANK AND
059633,000193: 43,3751           11401                           CADR     UPPART2                               #  GO TO UPDATE PROGRAM (P27) BANK.
059634,000194: 
059635,000195: 43,3752     4755               UP70               EQUALS   ZERO                                  
059636,000196: 43,3752     4753               UP71               EQUALS   ONE                                   
059637,000197: 43,3752     4752               UP72               EQUALS   TWO                                   
059638,000198: 43,3752     6245               UP73               EQUALS   THREE                                 
059639,000199: 
059640,000200: 04,3401                                           BANK     04                                    
059641,000201: 04,2000                                           SETLOC   UPDATE2                               
059642,000202: 04,2000                                           BANK                                           
059643,000203: 
059644,000204: 04,3401                                           COUNT*   $$/P27                                
059645,000205: 
059646,000206: 04,3401                        UPPART2            EQUALS                                         #  UPDATE PROGRAM - PART 2
059647,000207: 
059648,000208: 04,3401           05353                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO RESTORE OLD MODE
059649,000209: 04,3402           07026                           OCT      07026                                 #  AND DOWNLIST AND EXIT IF RESTART OCCURS.
059650,000210: 04,3403           30000                           OCT      30000                                 #  PRIORITY SAME AS CHRPRIO
059651,000211: 04,3404     1174                                  EBANK=   UPBUFF                                
059652,000212: 04,3404           03712 10102                     2CADR    UPOUT      +1                         
059653,000213: 
059654,000214: 04,3406           34753                           CAF      ONE                                   
059655,000215: 04,3407           54332                           TS       DNLSTCOD                              #  DOWNLIST
059656,000216: 
059657,000217: 04,3410           05311                           TC       NEWMODEX                              #  SET MAJOR MODE = 27
059658,000218: 04,3411           00033                           DEC      27         B-14                       
059659,000219: 
059660,000220: 04,3412           51172                           INDEX    UPVERB                                #  BRANCH DEPENDING ON WHETHER THE UPDATE
059661,000221: 04,3413           13414                           TCF      +1                                    #  VERB REQUIRES A FIXED OR VARIABLE NUMBER
059662,000222: 04,3414           13417                           TCF      +3                                    #  V70 FIXED.               (OF COMPONENTS.
059663,000223: 04,3415           13422                           TCF      OHWELL1                               #  V71 VARIABLE - GO GET NO. OF COMPONENTS
059664,000224: 04,3416           13422                           TCF      OHWELL1                               #  V72 VARIABLE - GO GET NO. OF COMPONENTS
059665,000225: 04,3417           34752                           CA       TWO                                   #  V73 (AND V70) FIXED
059666,000226: 04,3420           55170                           TS       COMPNUMB                              #  SET NUMBER OF COMPONENTS TO 2.
059667,000227: 04,3421           13445                           TCF      OHWELL2                               #  GO GET THE TWO UPDATE COMPONENTS
059668,000228: 
059669,000229: 04,3422           33515        OHWELL1            CAF      ADUPBUFF                              #  * REQUEST USER TO SEND NUMBER *
059670,000230: 04,3423           54156                           TS       MPAC       +2                         #  * OF COMPONENTS PARAMETER(II).*
059671,000231: 04,3424           33516                 +2        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
059672,000232: 04,3425           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01

Page 1390

059674,000234: 04,3426           20334                           CADR     GOXDSPF                               #  TO REQUEST II.
059675,000235: 
059676,000236: 04,3427           13712                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
059677,000237: 04,3430           13424                           TCF      OHWELL1    +2                         
059678,000238: 04,3431           03506                           TC       CK4V32                                #  DATA OR V32 RETURN
059679,000239: 04,3432           44752                           CS       BIT2                                  
059680,000240: 04,3433           61174                           AD       UPBUFF                                #  IS II (NUMBER OF COMPONENTS PARAMETER)
059681,000241: 04,3434           00006                           EXTEND                                         #  .GE. 3 AND .LE. 20D.
059682,000242: 04,3435           63424                           BZMF     OHWELL1    +2                         
059683,000243: 04,3436           41174                           CS       UPBUFF                                
059684,000244: 04,3437           64362                           AD       UP21                                  
059685,000245: 04,3440           00006                           EXTEND                                         
059686,000246: 04,3441           63424                           BZMF     OHWELL1    +2                         
059687,000247: 04,3442           31174                           CAE      UPBUFF                                
059688,000248: 04,3443           55170                           TS       COMPNUMB                              #  SAVE II IN COMPNUMB
059689,000249: 
059690,000250:                                                                                                  #  UPBUFF LOADING SEQUENCE
059691,000251: 
059692,000252: 04,3444           25173                           INCR     UPCOUNT                               #  INCREMENT COUNT OF COMPONENTS RECEIVED.
059693,000253: 04,3445           33662        OHWELL2            CAF      ADUPBFM1                              #  CALCULATE LOCATION (ECADR) IN UPBUFF
059694,000254: 04,3446           61173                           AD       UPCOUNT                               #  WHERE NEXT COMPONENT SHOULD BE STORED.
059695,000255: 04,3447           54156                 +2        TS       MPAC       +2                         #  PLACE ECADR INTO R3.
059696,000256: 04,3450           33516                 +3        CAF      UPLOADNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
059697,000257: 04,3451           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N01
059698,000258: 04,3452           20334                           CADR     GOXDSPF                               #  TO REQUEST DATA.
059699,000259: 04,3453           13712                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN.
059700,000260: 04,3454           13450                           TCF      OHWELL2    +3                         #  V33 PROCEED RETURN
059701,000261: 04,3455           03506                           TC       CK4V32                                #  DATA OR V32 RETURN
059702,000262: 04,3456           41173                           CS       UPCOUNT                               #  HAVE WE FINISHED RECEIVING ALL
059703,000263: 04,3457           61170                           AD       COMPNUMB                              #  THE DATA WE EXPECTED.
059704,000264: 04,3460           00006                           EXTEND                                         
059705,000265: 04,3461           63463                           BZMF     UPVERIFY                              #  YES - GO TO VERIFICATION SEQUENCE
059706,000266: 04,3462           13444                           TCF      OHWELL2    -1                         #  NO - REQUEST ADDITIONAL DATA.
059707,000267: 
059708,000268:                                                                                                  #  VERIFY SEQUENCE
059709,000269: 
059710,000270: 04,3463           33514        UPVERIFY           CAF      ADUPTEMP                              #  PLACE ECADR WHERE COMPONENT NO. INDEX
059711,000271: 04,3464           54156                           TS       MPAC       +2                         #  IS TO BE STORED INTO R3.
059712,000272: 04,3465           33517                           CAF      UPVRFYNV                              #  (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
059713,000273: 04,3466           04616                           TC       BANKCALL                              #  DISPLAY A FLASHING V21N02 TO REQUEST
059714,000274: 04,3467           20334                           CADR     GOXDSPF                               #  DATA CORRECTION OR VERIFICATION.
059715,000275: 04,3470           13712                           TCF      UPOUT4                                #  V34 TERMINATE UPDATE (P27) RETURN
059716,000276: 04,3471           13520                           TCF      UPSTORE                               #  V33 DATA SENT IS GOOD.  GO STORE IT.
059717,000277: 04,3472           03506                           TC       CK4V32                                #  COMPONENT NO. INDEX OR V32 RETURN
059718,000278: 04,3473           31167                           CA       UPTEMP                                #  DOES THE COMPONENT NO. INDEX JUST SENT
059719,000279: 04,3474           00006                           EXTEND                                         #  SPECIFY A LEGAL COMPONENT NUMBER?
059720,000280: 04,3475           63463                           BZMF     UPVERIFY                              #  NO, IT IS NOT POSITIVE NONZERO
059721,000281: 04,3476           41167                           CS       UPTEMP                                
059722,000282: 04,3477           61170                           AD       COMPNUMB                              

Page 1391

059724,000284: 04,3500           64753                           AD       BIT1                                  
059725,000285: 04,3501           00006                           EXTEND                                         
059726,000286: 04,3502           63463                           BZMF     UPVERIFY                              #  NO
059727,000287: 04,3503           33662                           CAF      ADUPBFM1                              #  YES - BASED ON THE COMPONENT NO. INDEX
059728,000288: 04,3504           61167                           AD       UPTEMP                                #  CALCULATE THE ECADR OF LOCATION IN
059729,000289: 04,3505           13447                           TCF      OHWELL2    +2                         #  UPBUFF WHICH USER WANTS TO CHANGE.
059730,000290: 
059731,000291: 04,3506  04,3712               UPOUT4             EQUALS   UPOUT      +1                         #  COMES HERE ON V34 TO TERMINATE UPDATE
059732,000292: 
059733,000293:                                                                                                  #  CHECK FOR VERB 32 SEQUENCE
059734,000294: 
059735,000295: 04,3506           40154        CK4V32             CS       MPAC                                  #  ON DATA RETURN FROM 'GOXDSPF'
059736,000296: 04,3507           74746                           MASK     BIT6                                  #  ON DATA RETURN FROM "GOXDSP" & THE CON-
059737,000297: 04,3510           10000                           CCS      A                                     #  TENTS OF MPAC = VERB.  SO TEST FOR V32.
059738,000298: 04,3511           00002                           TC       Q                                     #  IT'S NOT A V32, IT'S DATA.  PROCEED.
059739,000299: 04,3512           50002                           INDEX    Q                                     
059740,000300: 04,3513           77771                           TC       0          -6                         #  V32 ENCOUNTERED - GO BACK AND GET DATA
059741,000301: 
059742,000302: 04,3514           01167        ADUPTEMP           ADRES    UPTEMP                                #  ADDRESS OF TEMP STORAGE FOR CORRECTIONS
059743,000303: 04,3515           01174        ADUPBUFF           ADRES    UPBUFF                                #  ADDRESS OF UPDATE DATA STORAGE BUFFER
059744,000304: 04,3516           05201        UPLOADNV           VN       2101                                  #  VERB 21 NOUN 01
059745,000305: 04,3517           05202        UPVRFYNV           VN       2102                                  #  VERB 21 NOUN 02
059746,000306: 04,3520     4362               UP21               =        MD1                                   #  DEC 21 = MAX NO OF COMPONENTS +1
059747,000307: 04,3520     4756               UPDTPHAS           EQUALS   FIVE                                  
059748,000308: 
059749,000309:                                                                                                  #  PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
059750,000310: 
059751,000311: 04,3520                        UPSTORE            EQUALS                                         #  GROUND HAS VERIFIED UPDATE.  STORE DATA.
059752,000312: 
059753,000313: 04,3520           00004                           INHINT                                         
059754,000314: 
059755,000315: 04,3521           30103                           CAE      FLAGWRD7                              #  INVERT VERIFLAG (BIT 3 OF FLAGWRD7) TO
059756,000316: 04,3522           56001                           XCH      L                                     #  INDICATE TO THE GROUND (VIA DOWNLINK)
059757,000317: 04,3523           34751                           CAF      VERIFBIT                              #  THAT THE V33 (WHICH THE GROUND SENT TO
059758,000318: 04,3524           00006                           EXTEND                                         #  VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
059759,000319: 04,3525           06001                           RXOR     LCHAN                                 #  RECEIVED BY THE UPDATE PROGRAM
059760,000320: 04,3526           54103                           TS       FLAGWRD7                              
059761,000321: 
059762,000322: 04,3527           05353                           TC       PHASCHNG                              #  SET RESTART GROUP 6 TO REDO THE UPDATE
059763,000323: 04,3530           04026                           OCT      04026                                 #  DATA STORE IF A RESTART OCCURS.
059764,000324: 04,3531           00004                           INHINT                                         #  (BECAUSE PHASCHNG DID A RELINT)
059765,000325: 
059766,000326: 04,3532           44752                           CS       TWO                                   #  GO TO UPFNDVAC IF INSTALL IS REQUIRED,
059767,000327: 04,3533           61172                           AD       UPVERB                                #  THAT IS, IF IT'S A V70 - V72.
059768,000328: 04,3534           00006                           EXTEND                                         #  GO TO UPEND73 IF IT'S A V73.
059769,000329: 04,3535           63544                           BZMF     UPFNDVAC                              
059770,000330: 
059771,000331:                                                                                                  #  VERB 73 BRANCH

Page 1392

059773,000333: 04,3536           00006        UPEND73            EXTEND                                         #  V73 - PERFORM DP OCTAL AGC CLOCK INCREMENT
059774,000334: 
059775,000335: 04,3537           31175                           DCA      UPBUFF                                
059776,000336: 04,3540           53205                           DXCH     UPBUFF     +8D                        
059777,000337: 04,3541           03567                           TC       TIMEDIDL                              
059778,000338: 04,3542           04364                           TC       FALTON                                #  ERROR - TURN ON *OPERATOR ERROR* LIGHT
059779,000339: 04,3543           03712                           TC       UPOUT      +1                         #  GO TO COMMON UPDATE PROGRAM EXIT
059780,000340: 
059781,000341: 04,3544           34355        UPFNDVAC           CAF      CHRPRIO                               #  (USE EXTENDED VERB PRIORITY)
059782,000342: 04,3545           05105                           TC       FINDVAC                               #  GET VAC AREA FOR 'CALL INTSTALL'
059783,000343: 04,3546  E3,1706                                  EBANK=   TEPHEM                                
059784,000344: 04,3546           03551 10103                     2CADR    UPJOB                                 #  (NOTE:  THIS WILL ALSO SET EBANK FOR
059785,000345: 04,3550           05155                           TC       ENDOFJOB                              #  'TEPHEM' UPDATE BY V70)
059786,000346: 
059787,000347: 04,3551           06037        UPJOB              TC       INTPRET                               #  THIS COULD BE A STATE VECTOR UPDATE -- SO
059788,000348: 04,3552           77624                           CALL                                           #  WAIT (PUT JOB TO SLEEP) IF ORBIT INT(OI)
059789,000349: 04,3553           27414                                    INTSTALL                              #  IS IN PROGRESS -- OR -- GRAB OI AND RETURN
059790,000350:                                                                                                  #  TO UPWAKE IF OI IS NOT IN PROGRESS.
059791,000351: 
059792,000352: 04,3554           77776        UPWAKE             EXIT                                           
059793,000353: 
059794,000354: 04,3555           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
059795,000355: 04,3556           04026                           OCT      04026                                 
059796,000356: 
059797,000357: 04,3557           05504                           TC       UPFLAG                                #  SET INTEGRATION RESTART BIT
059798,000358: 04,3560           00236                           ADRES    REINTFLG                              
059799,000359: 04,3561           00004                           INHINT                                         
059800,000360: 04,3562                        UPPART3            EQUALS                                         
059801,000361: 
059802,000362: 04,3562           51172                           INDEX    UPVERB                                #  BRANCH TO THE APPROPRIATE UPDATE VERB
059803,000363: 04,3563           13564                           TCF      +1                                    #  ROUTINE TO ACTUALLY PERFORM THE UPDATE
059804,000364: 04,3564           13723                           TCF      UPEND70                               #  V70
059805,000365: 04,3565           13632                           TCF      UPEND71                               #  V71
059806,000366: 04,3566           13664                           TCF      UPEND72                               #  V72
059807,000367: 
059808,000368:                                                                                                  #  ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
059809,000369: 
059810,000370: 04,3567           00006        TIMEDIDL           EXTEND                                         
059811,000371: 04,3570           23167                           QXCH     UPTEMP                                #  SAVE Q FOR RETURN
059812,000372: 04,3571           34755                           CAF      ZERO                                  #  ZERO AND SAVE TIME2,TIME1
059813,000373: 04,3572           22007                           ZL                                             
059814,000374: 04,3573           52025                           DXCH     TIME2                                 
059815,000375: 04,3574           53217                           DXCH     UPBUFF     +18D                       #  STORE IN CASE OF OVERFLOW
059816,000376: 
059817,000377: 04,3575           34756                           CAF      UPDTPHAS                              #  DO
059818,000378: 04,3576           54001                           TS       L                                     #  A
059819,000379: 04,3577           40000                           COM                                            #  QUICK
059820,000380: 04,3600           52765                           DXCH     -PHASE6                               #  PHASCHNG

Page 1393

059822,000382: 04,3601           00004        TIMEDIDR           INHINT                                         
059823,000383: 
059824,000384: 04,3602           34755                           CAF      ZERO                                  
059825,000385: 04,3603           22007                           ZL                                             #  PICK UP INCREMENTER(AND ZERO
059826,000386: 04,3604           54156                           TS       MPAC       +2                         #  IT IN CASE OF RESTARTS) AND
059827,000387: 04,3605           53205                           DXCH     UPBUFF     +8D                        #  STORE IT
059828,000388: 04,3606           52155                           DXCH     MPAC                                  #  INTO MPAC FOR TPAGREE.
059829,000389: 
059830,000390: 04,3607           00006                           EXTEND                                         
059831,000391: 04,3610           31217                           DCA      UPBUFF     +18D                       
059832,000392: 04,3611           20155                           DAS      MPAC                                  #  FORM SUM IN MPAC
059833,000393: 04,3612           00006                           EXTEND                                         
059834,000394: 04,3613           13622                           BZF      DELTATOK                              #  TEST FOR OVERFLOW
059835,000395: 04,3614           34755                           CAF      ZERO                                  
059836,000396: 04,3615           53217                           DXCH     UPBUFF     +18D                       #  OVERFLOW, RESTORE OLD VALUE OF CLOCK
059837,000397: 04,3616           20025                           DAS      TIME2                                 #  AND TURN ON OPERATOR ERROR
059838,000398: 
059839,000399: 04,3617           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
059840,000400: 04,3620           04026                           OCT      04026                                 
059841,000401: 
059842,000402: 04,3621           01167                           TC       UPTEMP                                #  GO TO ERROR EXIT
059843,000403: 
059844,000404: 04,3622           07257        DELTATOK           TC       TPAGREE                               #  FORCE SIGN AGREEMENT
059845,000405: 04,3623           52155                           DXCH     MPAC                                  
059846,000406: 04,3624           20025                           DAS      TIME2                                 #  INCREMENT TIME2,TIME1
059847,000407: 
059848,000408: 04,3625           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
059849,000409: 04,3626           04026                           OCT      04026                                 
059850,000410: 
059851,000411: 04,3627           00004                           INHINT                                         
059852,000412: 04,3630           51167                           INDEX    UPTEMP                                #  (CODED THIS WAY FOR RESTART PROTECTION)
059853,000413: 04,3631           00001                           TC       1                                     #  NORMAL RETURN
059854,000414: 
059855,000415:                                                                                                  #  VERB 71 BRANCH
059856,000416: 
059857,000417: 04,3632           31175        UPEND71            CAE      UPBUFF     +1                         #  SET EBANK
059858,000418: 04,3633           54003                           TS       EBANK                                 #        AND
059859,000419: 04,3634           74357                           MASK     LOW8                                  #  CALCULATE
059860,000420: 04,3635           55167                           TS       UPTEMP                                #  S-REG VALUE OF RECEIVING AREA
059861,000421: 
059862,000422: 04,3636           67745                           AD       NEG3                                  #  IN THE PROCESS OF
059863,000423: 04,3637           61170                           AD       COMPNUMB                              #  PERFORMING
059864,000424: 04,3640           00006                           EXTEND                                         #  THIS UPDATE
059865,000425: 04,3641           13647                           BZF      STORLP71                              #  WILL WE
059866,000426: 04,3642           74743                           MASK     BIT9                                  #  OVERFLOW
059867,000427: 04,3643           10000                           CCS      A                                     #  INTO THE NEXT EBANK....
059868,000428: 04,3644           13760                           TCF      UPERROUT                              #  YES
059869,000429: 
059870,000430: 04,3645           37745                           CA       NEG3                                  #  NO - CALCULATE NUMBER OF
059871,000431: 04,3646           61170                           AD       COMPNUMB                              #  WORDS TO BE STORED MINUS ONE
059872,000432: 04,3647           54154        STORLP71           TS       MPAC                                  #  SAVE NO. OF WORDS REMAINING MINUS ONE

Page 1394

059874,000434: 04,3650           50000                           INDEX    A                                     #  TAKE NEXT UPDATE WORD FROM
059875,000435: 04,3651           31176                           CA       UPBUFF     +2                         #  UPBUFF AND
059876,000436: 
059877,000437: 04,3652           54001                           TS       L                                     #  SAVE IT IN L
059878,000438: 04,3653           30154                           CA       MPAC                                  #  CALCULATE NEXT
059879,000439: 04,3654           61167                           AD       UPTEMP                                #  RECEIVING ADDRESS
059880,000440: 04,3655           50000                           INDEX    A                                     
059881,000441: 04,3656  E3,1400                                  EBANK=   1400                                  
059882,000442: 04,3656           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
059883,000443: 04,3657  E3,1706                                  EBANK=   TEPHEM                                
059884,000444: 04,3657           10154                           CCS      MPAC                                  #  ARE THERE ANY WORDS LEFT TO BE STORED
059885,000445: 04,3660           13647                           TCF      STORLP71                              #  YES
059886,000446: 04,3661           13711                           TCF      UPOUT                                 #  NO - THEN EXIT UPDATE PROGRAM
059887,000447: 04,3662           01173        ADUPBFM1           ADRES    UPBUFF     -1                         #  SAME AS ADUPBUFF BUT LESS 1 (DON'T MOVE)
059888,000448: 04,3663           13711                           TCF      UPOUT                                 #  NO - EXIT UPDATE (HERE WHEN COMPNUMB = 3)
059889,000449: 
059890,000450:                                                                                                  #  VERB 72 BRANCH
059891,000451: 
059892,000452: 04,3664           34753        UPEND72            CAF      BIT1                                  #  HAVE AN ODD NO. OF COMPONENTS
059893,000453: 04,3665           71170                           MASK     COMPNUMB                              #  BEEN SENT FOR A V72 UPDATE ...
059894,000454: 04,3666           10000                           CCS      A                                     
059895,000455: 04,3667           13671                           TCF      +2                                    #  YES
059896,000456: 04,3670           13760                           TCF      UPERROUT                              #  ERROR - SHOULD BE ODD NO. OF COMPONENTS
059897,000457: 04,3671           44752                           CS       BIT2                                  
059898,000458: 04,3672           61170                           AD       COMPNUMB                              
059899,000459: 04,3673           54154        LDLOOP72           TS       MPAC                                  #  NOW PERFORM THE UPDATE
059900,000460: 04,3674           50000                           INDEX    A                                     
059901,000461: 04,3675           31175                           CAE      UPBUFF     +1                         #  PICK UP NEXT UPDATE WORD
059902,000462: 04,3676           22000                           LXCH     A                                     
059903,000463: 04,3677           10154                           CCS      MPAC                                  #  SET POINTER TO ECADR (MUST BE CCS)
059904,000464: 04,3700           54154                           TS       MPAC                                  
059905,000465: 04,3701           50000                           INDEX    A                                     
059906,000466: 04,3702           31175                           CAE      UPBUFF     +1                         #  PICK UP NEXT ECADR OF REG TO BE UPDATED
059907,000467: 04,3703           54003                           TS       EBANK                                 #  SET EBANK
059908,000468: 04,3704           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
059909,000469: 04,3705           50000                           INDEX    A                                     
059910,000470: 04,3706  E3,1400                                  EBANK=   1400                                  
059911,000471: 04,3706           23400                           LXCH     1400                                  #  UPDATE THE REGISTER BY CONTENTS OF L
059912,000472: 04,3707  E3,1706                                  EBANK=   TEPHEM                                
059913,000473: 04,3707           10154                           CCS      MPAC                                  #  ARE WE THROUGH THE V72 UPDATE...
059914,000474: 04,3710           13673                           TCF      LDLOOP72                              #  NO
059915,000475: 
059916,000476:                                                                                                  #  NORMAL FINISH OF P27
059917,000477: 
059918,000478: 04,3711                        UPOUT              EQUALS                                         
059919,000479: 04,3711           03165                           TC       INTWAKEU                              #  RELEASE GRAB OF ORBITAL INTEGRATION
059920,000480: 04,3712           31171                 +1        CAE      UPOLDMOD                              #  RESTORE PRIOR P27 MODE
059921,000481: 04,3713           05314                           TC       NEWMODEX   +3                         
059922,000482: 04,3714           34755                           CAF      ZERO                                  

Page 1395

059924,000484: 04,3715           54332                           TS       DNLSTCOD                              
059925,000485: 04,3716           03765                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
059926,000486: 
059927,000487: 04,3717           00006                           EXTEND                                         #  KILL GROUP 6.
059928,000488: 04,3720           34755                           DCA      NEG0                                  
059929,000489: 04,3721           52765                           DXCH     -PHASE6                               
059930,000490: 
059931,000491: 04,3722           05472                           TC       ENDEXT                                #  EXTENDED VERB EXIT
059932,000492: 
059933,000493:                                                                                                  #  VERB 70 BRANCH
059934,000494: 
059935,000495: 04,3723           00006        UPEND70            EXTEND                                         #  V70 DOES THE FOLLOWING WITH DP DELTA
059936,000496: 04,3724           41175                           DCS      UPBUFF                                #  TIME IN UPBUFF
059937,000497: 04,3725           53205                           DXCH     UPBUFF     +8D                        
059938,000498: 04,3726           03567                           TC       TIMEDIDL                              #  DECREMENT AGC CLOCK
059939,000499: 
059940,000500: 04,3727           03760                           TC       UPERROUT                              #  ERROR WHILE DECREMENTING CLOCK -- EXIT
059941,000501: 
059942,000502: 04,3730  E3,1706                                  EBANK=   TEPHEM                                
059943,000503: 04,3730           00006                           EXTEND                                         
059944,000504: 04,3731           41175                           DCS      UPBUFF                                #  COPY DECREMENTERS FOR
059945,000505: 04,3732           53207                           DXCH     UPBUFF     +10D                       #  RESTART PROTECTION
059946,000506: 04,3733           00006                           EXTEND                                         
059947,000507: 04,3734           41175                           DCS      UPBUFF                                
059948,000508: 04,3735           53211                           DXCH     UPBUFF     +12D                       
059949,000509: 
059950,000510: 04,3736           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
059951,000511: 04,3737           04026                           OCT      04026                                 
059952,000512: 
059953,000513: 04,3740           34755                           CAF      ZERO                                  
059954,000514: 04,3741           22007                           ZL                                             
059955,000515: 04,3742           53207                           DXCH     UPBUFF     +10D                       #  DECREMENT CSM STATE VECTOR TIME
059956,000516: 04,3743           21571                           DAS      TETCSM                                
059957,000517: 
059958,000518: 04,3744           34755                           CAF      ZERO                                  
059959,000519: 04,3745           22007                           ZL                                             
059960,000520: 04,3746           53211                           DXCH     UPBUFF     +12D                       #  DECREMENT LEM STATE VECTOR TIME
059961,000521: 04,3747           21643                           DAS      TETLEM                                
059962,000522: 
059963,000523: 04,3750           34755                           CAF      ZERO                                  
059964,000524: 04,3751           22007                           ZL                                             
059965,000525: 04,3752           53175                           DXCH     UPBUFF                                
059966,000526: 04,3753           21710                           DAS      TEPHEM     +1                         #  INCREMENT TP TEPHEM
059967,000527: 04,3754           27706                           ADS      TEPHEM                                
059968,000528: 
059969,000529: 04,3755           05353                           TC       PHASCHNG                              #  RESTART PROTECT (GROUP 6)
059970,000530: 04,3756           04026                           OCT      04026                                 
059971,000531: 
059972,000532: 04,3757     1174                                  EBANK=   UPBUFF                                

Page 1396

059974,000534: 04,3757           03711                           TC       UPOUT                                 #  GO TO STANDARD UPDATE PROGRAM EXIT
059975,000535: 
059976,000536: 
059977,000537:                                                                                                  #  ERROR SEQUENCE
059978,000538: 
059979,000539: 04,3760           04364        UPERROUT           TC       FALTON                                #  TURN ON *OPERATOR ERROR* LIGHT
059980,000540: 04,3761           13711                           TCF      UPOUT                                 #  GO TO COMMON UPDATE PROGRAM EXIT
059981,000541: 
059982,000542: 04,3762           04364                 +2        TC       FALTON                                #  TURN ON 'OPERATOR ERROR' LIGHT
059983,000543: 04,3763           03765                           TC       UPACTOFF                              #  TURN OFF 'UPLINK ACTIVITY' LIGHT
059984,000544: 04,3764           05472                           TC       ENDEXT                                #  EXTENDED VERB EXIT
059985,000545:                                                                                                  #  (THE PURPOSE OF UPERROUT +2 EXIT IS
059986,000546:                                                                                                  #  TO PROVIDE AN ERROR EXIT WHICH DOES NOT
059987,000547:                                                                                                  #  RESET ANY RESTART GROUPS)
059988,000548: 
059989,000549:                                                                                                  #  :UPACTOFF: IS A ROUTINE TO TURN OFF UPLINK ACTIVITY LIGHT ON ALL EXITS FROM UPDATE PROGRAM (P27).
059990,000550: 
059991,000551: 04,3765           44751        UPACTOFF           CS       BIT3                                  
059992,000552: 04,3766           00006                           EXTEND                                         #  TURN OFF UPLINK ACTIVITY LIGHT
059993,000553: 04,3767           03011                           WAND     DSALMOUT                              #  (BIT 3 OF CHANNEL 11)
059994,000554: 04,3770           00002                           TC       Q                                     
059995,000555: 

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