Source Code
These source-code files are part of a reconstructed copy of Comanche 45, the
second release, though not the final mission release, of the Apollo 10
Command Module (CM) Apollo Guidance Computer (AGC) software. Comanche 45 was
preceded by Comanche 44 and followed by Comanche 45/2 (the flown release). The reconstruction
is believed to be exactly accurate, but in the absence of an actual Apollo-era
listing of Comanche 45, some explanation of the reconstruction process is needed
to insure confidence in that accuracy.
The starting point was the source code of Comanche 44 (itself previously accurately reconstructed). Comanche 44 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 44 and 45. The now-reconstructed Comanche 45 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 listing. Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
Comments expected to have been present in the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC Project's GitHub repository. |
063532,000002: ## Copyright: Public domain.
063533,000003: ## Filename: UPDATE_PROGRAM.agc
063534,000004: ## Purpose: A section of Comanche revision 045.
063535,000005: ## It is part of the reconstructed source code for the
063536,000006: ## second release of the flight software for the Command
063537,000007: ## Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
063538,000008: ## The code has been recreated from a copy of Comanche 055. It
063539,000009: ## has been adapted such that the resulting bugger words
063540,000010: ## exactly match those specified for Comanche 45 in NASA drawing
063541,000011: ## 2021153D, which gives relatively high confidence that the
063542,000012: ## reconstruction is correct.
063543,000013: ## Assembler: yaYUL
063544,000014: ## Contact: Ron Burkey <info@sandroid.org>.
063545,000015: ## Website: www.ibiblio.org/apollo/index.html
063546,000016: ## Mod history: 2020-12-06 MAS Created from Comanche 44.
063547,000017:
Page 1497 |
063549,000019: # PROGRAM NAME: P27
063550,000020: # WRITTEN BY: KILROY/ DE WOLF
063551,000021:
063552,000022: # MOD NO: 6
063553,000023: # MOD BY: KILROY
063554,000024: # DATE: 01DEC67
063555,000025:
063556,000026: # LOG SECTION: UPDATE PROGRAM.
063557,000027:
063558,000028: # FUNCT. DESCR: P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
063559,000029: # INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
063560,000030: # THE P27 PROGRAM WILL ACCEPT UPDATES
063561,000031: # ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
063562,000032: # P02, AND FRESH START FOR THE CSM
063563,000033:
063564,000034: # CALLING SEQ: PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
063565,000035:
063566,000036: # SUBROUTINES: TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
063567,000037: # INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
063568,000038:
063569,000039: # NORMAL EXIT: TC ENDEXT
063570,000040:
063571,000041: # ALARM/ABORT: TC FALTON FOLLOWED BY TC ENDEXT
063572,000042:
063573,000043: # RESTARTS: P27 IS RESTART PROTECTED IN TWO WAYS ...
063574,000044: # 1. PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
063575,000045: # DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
063576,000046: # NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
063577,000047: # ACTIVITY LIGHT IS TURNED OFF. (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
063578,000048: # V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
063579,000049: # 2. AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
063580,000050: # PROTECTED AGAINST RESTARTS.
063581,000051:
063582,000052: # DEBRIS: UPBUFF (20D) TEMP STORAGE FOR ADDRESSES AND CONTENTS.
063583,000053: # UPVERB (1) VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
063584,000054: # UPOLDMOD(1) FOR MAJOR MODE INTERRUPTED BY P27.
063585,000055: # COMPNUMB(1) TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
063586,000056: # UPCOUNT (1) ACTUAL NUMBER OF COMPONENTS RECEIVED.
063587,000057: # UPTEMP (1) SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
063588,000058:
063589,000059: # INPUT:
063590,000060:
063591,000061: # ENTRY: DESCRIPTION
063592,000062: # V70EXXXXXEXXXXXE (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
063593,000063: # IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
063594,000064: # VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME(TETLEM).
063595,000065: # THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).
Page 1498 |
063597,000067: # V71EIIEAAAAE (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
063598,000068: # XXXXXE ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
063599,000069: # XXXXXE IT IS .GE. 3 .AND. .LE. 20D.,
063600,000070: # AND (AAAA + II -3) DOES NOT PRODUCE AN ADDRESS IN THE
063601,000071: # 9 NEXT BANK
063602,000072: # . SCALING IS SAME AS INTERNAL REGISTERS.
063603,000073: # V72EIIE (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
063604,000074: # AAAAEXXXXXE LOADED INTO ERASABLE LOCATIONS, AAAA.
063605,000075: # AAAAEXXXXXE II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
063606,000076: # . SCALING IS SAME AS INTERNAL REGISTERS.
063607,000077:
063608,000078: # V73EXXXXXEXXXXXE (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
063609,000079: # INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
063610,000080: # CENTISECONDS SCALED AT (2)28.
063611,000081: # THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
063612,000082:
063613,000083: # OUTPUT: IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
063614,000084: # COMPLEMENT BIT3 OF FLAGWORD7.
063615,000085:
063616,000086: # ADDITIONAL NOTES: VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
063617,000087: # 1. CSM/LM STATE VECTOR UPDATE
063618,000088: # 2. REFSMMAT UPDATE
063619,000089:
063620,000090: # THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE ----
063621,000091:
063622,000092: # 1. CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
063623,000093: # ENTRIES: DATA DEFINITION: SCALE FACTORS:
063624,000094: # V71E CONTIGUOUS BLOCK UPDATE VERB
063625,000095: # 21E NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
063626,000096: # AAAAE ECADR OF 'UPSVFLAG'
063627,000097: # XXXXXE STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
063628,000098: # 00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
063629,000099: # XXXXXEXXXXXE X POSITION
063630,000100: # XXXXXEXXXXXE Y POSITION
063631,000101: # XXXXXEXXXXXE Z POSITION
063632,000102: # XXXXXEXXXXXE X VELOCITY
063633,000103: # XXXXXEXXXXXE Y VELOCITY
063634,000104: # XXXXXEXXXXXE Z VELOCITY
063635,000105: # XXXXXEXXXXXE TIME FROM AGC CLOCK ZERO
063636,000106: # V33E VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
063637,000107:
063638,000108: # 2. REFSMMAT (ALL DATA ENTRIES IN OCTAL)
063639,000109: # ENTRIES: DATA DEFINITIONS: SCALE FACTORS:
Page 1499 |
063641,000111: # V71E CONTIGUOUS BLOCK UPDATE VERB
063642,000112: # 24E NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
063643,000113: # AAAAE ECADR OF 'REFSMMAT'
063644,000114: # XXXXXEXXXXXE ROW 1 COLUMN 1 2(-1)
063645,000115: # XXXXXEXXXXXE ROW 1 COLUMN 2 2(-1)
063646,000116: # XXXXXEXXXXXE ROW 1 COLUMN 3 2(-1)
063647,000117: # XXXXXEXXXXXE ROW 2 COLUMN 1 2(-1)
063648,000118: # XXXXXEXXXXXE ROW 2 COLUMN 2 2(-1)
063649,000119: # XXXXXEXXXXXE ROW 2 COLUMN 3 2(-1)
063650,000120: # XXXXXEXXXXXE ROW 3 COLUMN 1 2(-1)
063651,000121: # XXXXXEXXXXXE ROW 3 COLUMN 2 2(-1)
063652,000122: # XXXXXEXXXXXE ROW 3 COLUMN 3 2(-1)
063653,000123: # V33E VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
063654,000124:
063655,000125: 07,3777 BANK 07
063656,000126: 43,2000 SETLOC EXTVERBS
063657,000127: 43,2000 BANK
063658,000128:
063659,000129: 43,3726 E3,1706 EBANK= TEPHEM
063660,000130:
063661,000131: 43,3726 COUNT* $$/P27
063662,000132: 43,3726 35021 V70UPDAT CAF UP70 # COMES HERE ON V70E
063663,000133: 43,3727 13735 TCF V73UPDAT +1
063664,000134:
063665,000135: 43,3730 35017 V71UPDAT CAF UP71 # COMES HERE ON V71E
063666,000136: 43,3731 13735 TCF V73UPDAT +1
063667,000137:
063668,000138: 43,3732 35016 V72UPDAT CAF UP72 # COMES HERE ON V72E
063669,000139: 43,3733 13735 TCF V73UPDAT +1
063670,000140:
063671,000141: 43,3734 36214 V73UPDAT CAF UP73 # COMES HERE ON V73E
063672,000142:
063673,000143: 43,3735 54331 +1 TS UPVERBSV # SAVE UPVERB UNTIL IT'S OK TO ENTER P27
063674,000144:
063675,000145: 43,3736 02076 TC TESTXACT # GRAB DISPLAY IF AVAILABLE, OTHERWISE
063676,000146: # TURN *OPERATOR ERROR* ON AND TERMINATE JOB
063677,000147:
063678,000148: 43,3737 31011 CA MODREG # CHECK IF UPDATE ALLOWED
063679,000149: 43,3740 00006 EXTEND # FIRST CHECK FOR MODREG = +0, -0
063680,000150: 43,3741 13743 BZF +2 # (+0 = P00, -0 = FRESHSTART)
063681,000151: 43,3742 03753 TC CKMDMORE # NOW CHECK FOR PROGRAM WHICH CAN BE
063682,000152: # INTERRUPTED BY P27.
063683,000153:
063684,000154: 43,3743 31011 CAE MODREG # UPDATE ALLOWED.
063685,000155: 43,3744 54301 TS UPOLDMOD # SAVE CURRENT MAJOR MODE
Page 1500 |
063687,000157: 43,3745 30331 CAE UPVERBSV # SET UPVERB TO INDICATE TO P27
063688,000158: 43,3746 54302 TS UPVERB # WHICH EXTENDED VERB CALLED IT.
063689,000159:
063690,000160: 43,3747 35017 CAF ONE
063691,000161: 43,3750 54303 TS UPCOUNT # INITIALIZE UPCOUNT TO 1
063692,000162:
063693,000163: 43,3751 04701 TC POSTJUMP # LEAVE EXTENDED VERB BANK AND
063694,000164: 43,3752 57373 CADR UPPART2 # GO TO UPDATE PROGRAM (P27) BANK.
063695,000165:
063696,000166: 43,3753 40101 CKMDMORE CS FLAGWRD5
063697,000167: 43,3754 75010 MASK BIT8 # CHECK IF COMPUTER IS LGC
063698,000168: 43,3755 10000 CCS A # IS COMPUTER LGC OR AGC
063699,000169: 43,3756 13764 UPERLEM TCF UPERROR # ERROR- IT'S THE LEM + MODE IS NOT POO.
063700,000170: 43,3757 45016 CS TWO
063701,000171: 43,3760 71011 MASK MODREG
063702,000172: 43,3761 10000 CCS A
063703,000173: 43,3762 13764 UPERCMC TCF UPERROR # ERROR- IT'S THE CMC AND MODE IS NOT
063704,000174: # P00 OR P02.
063705,000175: 43,3763 00002 TC Q # ALLOW UPDATE TO PROCEED
063706,000176:
063707,000177: 43,3764 04701 UPERROR TC POSTJUMP # TURN ON 'OPERATOR ERROR' LIGHT
063708,000178: 43,3765 57754 CADR UPERROUT +2 # GO TO COMMON UPDATE PROGRAM EXIT
063709,000179:
063710,000180: 43,3766 30,2000 SBANK= LOWSUPER
063711,000181: 43,3766 5021 UP70 EQUALS ZERO
063712,000182: 43,3766 5017 UP71 EQUALS ONE
063713,000183: 43,3766 5016 UP72 EQUALS TWO
063714,000184: 43,3766 6214 UP73 EQUALS THREE
063715,000185:
063716,000186: 04,3754 BANK 04
063717,000187: 27,2000 SETLOC UPDATE2
063718,000188: 27,2000 BANK
063719,000189:
063720,000190: 27,3373 COUNT* $$/P27
063721,000191:
063722,000192: 27,3373 UPPART2 EQUALS # UPDATE PROGRAM - PART 2
063723,000193:
063724,000194: 27,3373 05412 TC PHASCHNG # SET RESTART GROUP 6 TO RESTORE OLD MODE
063725,000195: 27,3374 07026 OCT 07026 # AND DOWNLIST AND EXIT IF RESTART OCCURS.
063726,000196: 27,3375 30000 OCT 30000 # PRIORITY SAME AS CHRPRIO
063727,000197: 27,3376 0304 EBANK= UPBUFF
063728,000198: 27,3376 03704 56060 2CADR UPOUT +1
063729,000199:
063730,000200: 27,3400 35017 CAF ONE
063731,000201: 27,3401 54332 TS DNLSTCOD # DOWNLIST
063732,000202:
063733,000203: 27,3402 05354 TC NEWMODEX # SET MAJOR MODE = 27
Page 1501 |
063735,000205: 27,3403 00033 DEC 27 B-14
063736,000206:
063737,000207: 27,3404 50302 INDEX UPVERB # BRANCH DEPENDING ON WHETHER THE UPDATE
063738,000208: 27,3405 13406 TCF +1 # VERB REQUIRES A FIXED OR VARIABLE NUMBER
063739,000209: 27,3406 13411 TCF +3 # V70 FIXED. (OF COMPONENTS.
063740,000210: 27,3407 13414 TCF OHWELL1 # V71 VARIABLE - GO GET NO. OF COMPONENTS
063741,000211: 27,3410 13414 TCF OHWELL1 # V72 VARIABLE - GO GET NO. OF COMPONENTS
063742,000212: 27,3411 35016 CA TWO # V73 (AND V70) FIXED
063743,000213: 27,3412 54300 TS COMPNUMB # SET NUMBER OF COMPONENTS TO 2.
063744,000214: 27,3413 13437 TCF OHWELL2 # GO GET THE TWO UPDATE COMPONENTS
063745,000215:
063746,000216: 27,3414 33507 OHWELL1 CAF ADUPBUFF # * REQUEST USER TO SEND NUMBER *
063747,000217: 27,3415 54156 TS MPAC +2 # * OF COMPONENTS PARAMETER(II). *
063748,000218: 27,3416 33510 +2 CAF UPLOADNV # (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
063749,000219: 27,3417 04662 TC BANKCALL # DISPLAY A FLASHING V21N01
063750,000220: 27,3420 20561 CADR GOXDSPF # TO REQUEST II.
063751,000221: 27,3421 13704 TCF UPOUT4 # V34 TERMINATE UPDATE (P27) RETURN
063752,000222: 27,3422 13416 TCF OHWELL1 +2
063753,000223: 27,3423 03500 TC CK4V32 # DATA OR V32 RETURN
063754,000224: 27,3424 45016 CS BIT2
063755,000225: 27,3425 60304 AD UPBUFF # IS II (NUMBER OF COMPONENTS PARAMETER)
063756,000226: 27,3426 00006 EXTEND # .GE. 3 AND .LE. 20D.
063757,000227: 27,3427 63416 BZMF OHWELL1 +2
063758,000228: 27,3430 40304 CS UPBUFF
063759,000229: 27,3431 64376 AD UP21
063760,000230: 27,3432 00006 EXTEND
063761,000231: 27,3433 63416 BZMF OHWELL1 +2
063762,000232: 27,3434 30304 CAE UPBUFF
063763,000233: 27,3435 54300 TS COMPNUMB # SAVE II IN COMPNUMB
063764,000234:
063765,000235: # UPBUFF LOADING SEQUENCE
063766,000236:
063767,000237: 27,3436 24303 INCR UPCOUNT # INCREMENT COUNT OF COMPONENTS RECEIVED.
063768,000238: 27,3437 33654 OHWELL2 CAF ADUPBFM1 # CALCULATE LOCATION (ECADR) IN UPBUFF
063769,000239: 27,3440 60303 AD UPCOUNT # WHERE NEXT COMPONENT SHOULD BE STORED.
063770,000240: 27,3441 54156 +2 TS MPAC +2 # PLACE ECADR INTO R3.
063771,000241: 27,3442 33510 +3 CAF UPLOADNV # (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
063772,000242: 27,3443 04662 TC BANKCALL # DISPLAY A FLASHING V21N01
063773,000243: 27,3444 20561 CADR GOXDSPF # TO REQUEST DATA.
063774,000244: 27,3445 13704 TCF UPOUT4 # V34 TERMINATE UPDATE (P27) RETURN.
063775,000245: 27,3446 13442 TCF OHWELL2 +3 # V33 PROCEED RETURN
063776,000246: 27,3447 03500 TC CK4V32 # DATA OR V32 RETURN
063777,000247: 27,3450 40303 CS UPCOUNT # HAVE WE FINISHED RECEIVING ALL
063778,000248: 27,3451 60300 AD COMPNUMB # THE DATA WE EXPECTED.
063779,000249: 27,3452 00006 EXTEND
063780,000250: 27,3453 63455 BZMF UPVERIFY # YES- GO TO VERIFICATION SEQUENCE
063781,000251: 27,3454 13436 TCF OHWELL2 -1 # NO- REQUEST ADDITIONAL DATA.
063782,000252:
Page 1502 |
063784,000254: # VERIFY SEQUENCE
063785,000255: 27,3455 33506 UPVERIFY CAF ADUPTEMP # PLACE ECADR WHERE COMPONENT NO. INDEX
063786,000256: 27,3456 54156 TS MPAC +2 # IS TO BE STORED INTO R3.
063787,000257: 27,3457 33511 CAF UPVRFYNV # (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
063788,000258: 27,3460 04662 TC BANKCALL # DISPLAY A FLASHING V21N02 TO REQUEST
063789,000259: 27,3461 20561 CADR GOXDSPF # DATA CORRECTION OR VERIFICATION.
063790,000260: 27,3462 13704 TCF UPOUT4 # V34 TERMINATE UPDATE (P27) RETURN
063791,000261: 27,3463 13512 TCF UPSTORE # V33 DATA SENT IS GOOD. GO STORE IT.
063792,000262: 27,3464 03500 TC CK4V32 # COMPONENT NO. INDEX OR V32 RETURN
063793,000263: 27,3465 30330 CA UPTEMP # DOES THE COMPONENT NO. INDEX JUST SENT
063794,000264: 27,3466 00006 EXTEND # SPECIFY A LEGAL COMPONENT NUMBER?
063795,000265: 27,3467 63455 BZMF UPVERIFY # NO, IT IS NOT POSITIVE NONZERO
063796,000266: 27,3470 40330 CS UPTEMP
063797,000267: 27,3471 60300 AD COMPNUMB
063798,000268: 27,3472 65017 AD BIT1
063799,000269: 27,3473 00006 EXTEND
063800,000270: 27,3474 63455 BZMF UPVERIFY # NO
063801,000271: 27,3475 33654 CAF ADUPBFM1 # YES- BASED ON THE COMPONENT NO. INDEX
063802,000272: 27,3476 60330 AD UPTEMP # CALCULATE THE ECADR OF LOCATION IN
063803,000273: 27,3477 13441 TCF OHWELL2 +2 # UPBUFF WHICH USER WANTS TO CHANGE.
063804,000274:
063805,000275: 27,3500 27,3704 UPOUT4 EQUALS UPOUT +1 # COMES HERE ON V34 TO TERMINATE UPDATE
063806,000276:
063807,000277: # CHECK FOR VERB 32 SEQUENCE
063808,000278:
063809,000279: 27,3500 40154 CK4V32 CS MPAC # ON DATA RETURN FROM 'GOXDSPF'
063810,000280: 27,3501 75012 MASK BIT6 # ON DATA RETURN FROM "GOXDSP"& THE CON-
063811,000281: 27,3502 10000 CCS A # TENTS OF MPAC = VERB. SO TEST FOR V32.
063812,000282: 27,3503 00002 TC Q # IT'S NOT A V32, IT'S DATA. PROCEED.
063813,000283: 27,3504 50002 INDEX Q
063814,000284: 27,3505 77771 TC 0 -6 # V32 ENCOUNTERED - GO BACK AND GET DATA
063815,000285:
063816,000286: 27,3506 00330 ADUPTEMP ADRES UPTEMP # ADDRESS OF TEMP STORAGE FOR CORRECTIONS
063817,000287: 27,3507 00304 ADUPBUFF ADRES UPBUFF # ADDRESS OF UPDATE DATA STORAGE BUFFER
063818,000288: 27,3510 05201 UPLOADNV VN 2101 # VERB 21 NOUN 01
063819,000289: 27,3511 05202 UPVRFYNV VN 2102 # VERB 21 NOUN 02
063820,000290: 27,3512 4376 UP21 = MD1 # DEC 21 = MAX NO OF COMPONENTS +1
063821,000291: 27,3512 5022 UPDTPHAS EQUALS FIVE
063822,000292:
063823,000293: # PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
063824,000294:
063825,000295: 27,3512 UPSTORE EQUALS # GROUND HAS VERIFIED UPDATE. STORE DATA.
063826,000296:
063827,000297: 27,3512 00004 INHINT
063828,000298:
063829,000299: 27,3513 30103 CAE FLAGWRD7 # INVERT VERIFLAG (BIT 3 OF FLAGWRD7) TO
063830,000300: 27,3514 56001 XCH L # INDICATE TO THE GROUND (VIA DOWNLINK)
063831,000301: 27,3515 35015 CAF BIT3 # THAT THE V33 (WHICH THE GROUND SENT TO
Page 1503 |
063833,000303: 27,3516 00006 EXTEND # VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
063834,000304: 27,3517 06001 RXOR LCHAN # RECEIVED BY THE UPDATE PROGRAM
063835,000305: 27,3520 54103 TS FLAGWRD7
063836,000306:
063837,000307: 27,3521 05412 TC PHASCHNG # SET RESTART GROUP 6 TO REDO THE UPDATE
063838,000308: 27,3522 04026 OCT 04026 # DATA STORE IF A RESTART OCCURS.
063839,000309: 27,3523 00004 INHINT # (BECAUSE PHASCHNG DID A RELINT)
063840,000310:
063841,000311: 27,3524 45016 CS TWO # GO TO UPFNDVAC IF INSTALL IS REQUIRED,
063842,000312: 27,3525 60302 AD UPVERB # THAT IS, IF IT'S A V70 - V72.
063843,000313: 27,3526 00006 EXTEND # GO TO UPEND73 IF IT'S A V73.
063844,000314: 27,3527 63536 BZMF UPFNDVAC
063845,000315:
063846,000316: # VERB 73 BRANCH
063847,000317:
063848,000318: 27,3530 00006 UPEND73 EXTEND # V73-PERFORM DP OCTAL AGC CLOCK INCREMENT
063849,000319: 27,3531 30305 DCA UPBUFF
063850,000320: 27,3532 52315 DXCH UPBUFF +8D
063851,000321: 27,3533 03561 TC TIMEDIDL
063852,000322: 27,3534 04400 TC FALTON # ERROR- TURN ON *OPERATOR ERROR* LIGHT
063853,000323: 27,3535 03704 TC UPOUT +1 # GO TO COMMON UPDATE PROGRAM EXIT
063854,000324:
063855,000325: 27,3536 34371 UPFNDVAC CAF CHRPRIO # (USE EXTENDED VERB PRIORITY)
063856,000326: 27,3537 05147 TC FINDVAC # GET VAC AREA FOR 'CALL INTSTALL'
063857,000327: 27,3540 E3,1706 EBANK= TEPHEM
063858,000328: 27,3540 03543 56063 2CADR UPJOB # (NOTE: THIS WILL ALSO SET EBANK FOR
063859,000329: 27,3542 05217 TC ENDOFJOB # 'TEPHEM' UPDATE BY V70)
063860,000330:
063861,000331: 27,3543 06006 UPJOB TC INTPRET # THIS COULD BE A STATE VECTOR UPDATE -- SO
063862,000332: 27,3544 77624 CALL # WAIT (PUT JOB TO SLEEP) IF ORBIT INT(OI)
063863,000333: 27,3545 27442 INTSTALL # IS IN PROGRESS -- OR -- GRAB OI AND RETURN
063864,000334: # TO UPWAKE IF OI IS NOT IN PROGRESS.
063865,000335:
063866,000336: 27,3546 77776 UPWAKE EXIT
063867,000337:
063868,000338: 27,3547 05412 TC PHASCHNG # RESTART PROTECT (GROUP 6)
063869,000339: 27,3550 04026 OCT 04026
063870,000340:
063871,000341: 27,3551 05546 TC UPFLAG # SET INTEGRATION RESTART BIT
063872,000342: 27,3552 00236 ADRES REINTFLG
063873,000343: 27,3553 00004 INHINT
063874,000344: 27,3554 UPPART3 EQUALS
063875,000345:
063876,000346: 27,3554 50302 INDEX UPVERB # BRANCH TO THE APPROPRIATE UPDATE VERB
063877,000347: 27,3555 13556 TCF +1 # ROUTINE TO ACTUALLY PERFORM THE UPDATE
063878,000348: 27,3556 13715 TCF UPEND70 # V70
063879,000349: 27,3557 13624 TCF UPEND71 # V71
063880,000350: 27,3560 13656 TCF UPEND72 # V72
063881,000351:
Page 1504 |
063883,000353: # ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
063884,000354: 27,3561 00006 TIMEDIDL EXTEND
063885,000355: 27,3562 22330 QXCH UPTEMP # SAVE Q FOR RETURN
063886,000356: 27,3563 35021 CAF ZERO # ZERO AND SAVE TIME2,TIME1
063887,000357: 27,3564 22007 ZL
063888,000358: 27,3565 52025 DXCH TIME2
063889,000359: 27,3566 52327 DXCH UPBUFF +18D # STORE IN CASE OF OVERFLOW
063890,000360:
063891,000361: 27,3567 35022 CAF UPDTPHAS # DO
063892,000362: 27,3570 54001 TS L # A
063893,000363: 27,3571 40000 COM # QUICK
063894,000364: 27,3572 52765 DXCH -PHASE6 # PHASCHNG
063895,000365:
063896,000366: 27,3573 00004 TIMEDIDR INHINT
063897,000367: 27,3574 35021 CAF ZERO
063898,000368: 27,3575 22007 ZL # PICK UP INCREMENTER(AND ZERO
063899,000369: 27,3576 54156 TS MPAC +2 # IT IN CASE OF RESTARTS) AND
063900,000370: 27,3577 52315 DXCH UPBUFF +8D # STORE IT
063901,000371: 27,3600 52155 DXCH MPAC # INTO MPAC FOR TPAGREE.
063902,000372:
063903,000373: 27,3601 00006 EXTEND
063904,000374: 27,3602 30327 DCA UPBUFF +18D
063905,000375: 27,3603 20155 DAS MPAC # FORM SUM IN MPAC
063906,000376: 27,3604 00006 EXTEND
063907,000377: 27,3605 13614 BZF DELTAOK # TEST FOR OVERFLOW
063908,000378: 27,3606 35021 CAF ZERO
063909,000379: 27,3607 52327 DXCH UPBUFF +18D # OVERFLOW, RESTORE OLD VALUE OF CLOCK
063910,000380: 27,3610 20025 DAS TIME2 # AND TURN ON OPERATOR ERROR
063911,000381:
063912,000382: 27,3611 05412 TC PHASCHNG # RESTART PROTECT (GROUP 6)
063913,000383: 27,3612 04026 OCT 04026
063914,000384:
063915,000385: 27,3613 00330 TC UPTEMP # GO TO ERROR EXIT
063916,000386:
063917,000387: 27,3614 07226 DELTAOK TC TPAGREE # FORCE SIGN AGREEMENT
063918,000388: 27,3615 52155 DXCH MPAC
063919,000389: 27,3616 20025 DAS TIME2 # INCREMENT TIME2,TIME1
063920,000390:
063921,000391: 27,3617 05412 TC PHASCHNG # RESTART PROTECT (GROUP 6)
063922,000392: 27,3620 04026 OCT 04026
063923,000393:
063924,000394: 27,3621 00004 INHINT
063925,000395: 27,3622 50330 INDEX UPTEMP # (CODED THIS WAY FOR RESTART PROTECTION)
063926,000396: 27,3623 00001 TC 1 # NORMAL RETURN
063927,000397:
063928,000398: # VERB 71 BRANCH
063929,000399:
063930,000400: 27,3624 30305 UPEND71 CAE UPBUFF +1 # SET EBANK
063931,000401: 27,3625 54003 TS EBANK # AND
Page 1505 |
063933,000403: 27,3626 74373 MASK LOW8 # CALCULATE
063934,000404: 27,3627 54330 TS UPTEMP # S-REG VALUE OF RECEIVING AREA
063935,000405: 27,3630 67714 AD NEG3 # IN THE PROCESS OF
063936,000406: 27,3631 60300 AD COMPNUMB # PERFORMING
063937,000407: 27,3632 00006 EXTEND # THIS UPDATE
063938,000408: 27,3633 13641 BZF STORLP71 # WILL WE
063939,000409: 27,3634 75007 MASK BIT9 # OVERFLOW
063940,000410: 27,3635 10000 CCS A # INTO THE NEXT EBANK....
063941,000411: 27,3636 13752 TCF UPERROUT # YES
063942,000412:
063943,000413: 27,3637 37714 CA NEG3 # NO- CALCULATE NUMBER OF
063944,000414: 27,3640 60300 AD COMPNUMB # WORDS TO BE STORED MINUS ONE
063945,000415: 27,3641 54154 STORLP71 TS MPAC # SAVE NO. OF WORDS REMAINING MINUS ONE
063946,000416: 27,3642 50000 INDEX A # TAKE NEXT UPDATE WORD FROM
063947,000417: 27,3643 30306 CA UPBUFF +2 # UPBUFF AND
063948,000418: 27,3644 54001 TS L # SAVE IT IN L
063949,000419: 27,3645 30154 CA MPAC # CALCULATE NEXT
063950,000420: 27,3646 60330 AD UPTEMP # RECEIVING ADDRESS
063951,000421: 27,3647 50000 INDEX A
063952,000422: 27,3650 E3,1400 EBANK= 1400
063953,000423: 27,3650 23400 LXCH 1400 # UPDATE THE REGISTER BY CONTENTS OF L
063954,000424: 27,3651 E3,1706 EBANK= TEPHEM
063955,000425: 27,3651 10154 CCS MPAC # ARE THERE ANY WORDS LEFT TO BE STORED
063956,000426: 27,3652 13641 TCF STORLP71 # YES
063957,000427: 27,3653 13703 TCF UPOUT # NO- THEN EXIT UPDATE PROGRAM
063958,000428: 27,3654 00303 ADUPBFM1 ADRES UPBUFF -1 # SAME AS ADUPBUFF BUT LESS 1 (DON'T MOVE)
063959,000429: 27,3655 13703 TCF UPOUT # NO- EXIT UPDATE (HERE WHEN COMPNUMB = 3)
063960,000430:
063961,000431: # VERB 72 BRANCH
063962,000432:
063963,000433: 27,3656 35017 UPEND72 CAF BIT1 # HAVE AN ODD NO. OF COMPONENTS
063964,000434: 27,3657 70300 MASK COMPNUMB # BEEN SENT FOR A V72 UPDATE ...
063965,000435: 27,3660 10000 CCS A
063966,000436: 27,3661 13663 TCF +2 # YES
063967,000437: 27,3662 13752 TCF UPERROUT # ERROR- SHOULD BE ODD NO. OF COMPONENTS
063968,000438: 27,3663 45016 CS BIT2
063969,000439: 27,3664 60300 AD COMPNUMB
063970,000440: 27,3665 54154 LDLOOP72 TS MPAC # NOW PERFORM THE UPDATE
063971,000441: 27,3666 50000 INDEX A
063972,000442: 27,3667 30305 CAE UPBUFF +1 # PICK UP NEXT UPDATE WORD
063973,000443: 27,3670 22000 LXCH A
063974,000444: 27,3671 10154 CCS MPAC # SET POINTER TO ECADR (MUST BE CCS)
063975,000445: 27,3672 54154 TS MPAC
063976,000446: 27,3673 50000 INDEX A
063977,000447: 27,3674 30305 CAE UPBUFF +1 # PICK UP NEXT ECADR OF REG TO BE UPDATED
063978,000448: 27,3675 54003 TS EBANK # SET EBANK
063979,000449: 27,3676 74373 MASK LOW8 # ISOLATE RELATIVE ADDRESS
063980,000450: 27,3677 50000 INDEX A
063981,000451:
Page 1506 |
063983,000453: 27,3700 E3,1400 EBANK= 1400
063984,000454: 27,3700 23400 LXCH 1400 # UPDATE THE REGISTER BY CONTENTS OF L
063985,000455: 27,3701 E3,1706 EBANK= TEPHEM
063986,000456: 27,3701 10154 CCS MPAC # ARE WE THROUGH THE V72 UPDATE...
063987,000457: 27,3702 13665 TCF LDLOOP72 # NO
063988,000458:
063989,000459: # NORMAL FINISH OF P27
063990,000460:
063991,000461: 27,3703 UPOUT EQUALS
063992,000462: 27,3703 02671 TC INTWAKEU # RELEASE GRAB OF ORBITAL INTEGRATION
063993,000463: 27,3704 30301 +1 CAE UPOLDMOD # RESTORE PRIOR P27 MODE
063994,000464: 27,3705 05357 TC NEWMODEX +3
063995,000465: 27,3706 35021 CAF ZERO
063996,000466: 27,3707 54332 TS DNLSTCOD
063997,000467: 27,3710 03757 TC UPACTOFF # TURN OFF 'UPLINK ACTIVITY' LIGHT
063998,000468: 27,3711 00006 EXTEND # KILL GROUP 6.
063999,000469: 27,3712 35021 DCA NEG0
064000,000470: 27,3713 52765 DXCH -PHASE6
064001,000471:
064002,000472: 27,3714 05534 TC ENDEXT # EXTENDED VERB EXIT
064003,000473:
064004,000474: # VERB 70 BRANCH
064005,000475:
064006,000476: 27,3715 00006 UPEND70 EXTEND # V70 DOES THE FOLLOWING WITH DP DELTA
064007,000477: 27,3716 40305 DCS UPBUFF # TIME IN UPBUFF
064008,000478: 27,3717 52315 DXCH UPBUFF +8D
064009,000479: 27,3720 03561 TC TIMEDIDL # DECREMENT AGC CLOCK
064010,000480:
064011,000481: 27,3721 03752 TC UPERROUT # ERROR WHILE DECREMENTING CLOCK -- EXIT
064012,000482:
064013,000483: 27,3722 E3,1706 EBANK= TEPHEM
064014,000484: 27,3722 00006 EXTEND
064015,000485: 27,3723 40305 DCS UPBUFF # COPY DECREMENTERS FOR
064016,000486: 27,3724 52317 DXCH UPBUFF +10D # RESTART PROTECTION
064017,000487: 27,3725 00006 EXTEND
064018,000488: 27,3726 40305 DCS UPBUFF
064019,000489: 27,3727 52321 DXCH UPBUFF +12D
064020,000490:
064021,000491: 27,3730 05412 TC PHASCHNG # RESTART PROTECT (GROUP 6)
064022,000492: 27,3731 04026 OCT 04026
064023,000493:
064024,000494: 27,3732 35021 CAF ZERO
064025,000495: 27,3733 22007 ZL
064026,000496: 27,3734 52317 DXCH UPBUFF +10D # DECREMENT CSM STATE VECTOR TIME
064027,000497: 27,3735 21571 DAS TETCSM
064028,000498:
064029,000499: 27,3736 35021 CAF ZERO
064030,000500:
Page 1507 |
064032,000502: 27,3737 22007 ZL
064033,000503: 27,3740 52321 DXCH UPBUFF +12D # DECREMENT LEM STATE VECTOR TIME
064034,000504: 27,3741 21643 DAS TETLEM
064035,000505: 27,3742 35021 CAF ZERO
064036,000506: 27,3743 22007 ZL
064037,000507: 27,3744 52305 DXCH UPBUFF
064038,000508: 27,3745 21710 DAS TEPHEM +1 # INCREMENT TP TEPHEM
064039,000509: 27,3746 27706 ADS TEPHEM
064040,000510:
064041,000511: 27,3747 05412 TC PHASCHNG # RESTART PROTECT (GROUP 6)
064042,000512: 27,3750 04026 OCT 04026
064043,000513:
064044,000514: 27,3751 0304 EBANK= UPBUFF
064045,000515:
064046,000516: 27,3751 03703 TC UPOUT # GO TO STANDARD UPDATE PROGRAM EXIT
064047,000517:
064048,000518: # ERROR SEQUENCE
064049,000519:
064050,000520: 27,3752 04400 UPERROUT TC FALTON # TURN ON *OPERATOR ERROR* LIGHT
064051,000521: 27,3753 13703 TCF UPOUT # GO TO COMMON UPDATE PROGRAM EXIT
064052,000522:
064053,000523: 27,3754 04400 +2 TC FALTON # TURN ON 'OPERATOR ERROR' LIGHT
064054,000524: 27,3755 03757 TC UPACTOFF # TURN OFF 'UPLINK ACTIVITY' LIGHT
064055,000525: 27,3756 05534 TC ENDEXT # EXTENDED VERB EXIT
064056,000526: # (THE PURPOSE OF UPERROUT +2 EXIT IS
064057,000527: # TO PROVIDE AN ERROR EXIT WHICH DOES NOT
064058,000528: # RESET ANY RESTART GROUPS)
064059,000529:
064060,000530: # :UPACTOFF: IS A ROUTINE TO TURN OFF UPLINK ACTIVITY LIGHT ON ALL EXITS FROM UPDATE PROGRAM (P27).
064061,000531:
064062,000532: 27,3757 45015 UPACTOFF CS BIT3
064063,000533: 27,3760 00006 EXTEND # TURN OFF UPLINK ACTIVITY LIGHT
064064,000534: 27,3761 03011 WAND DSALMOUT # (BIT 3 OF CHANNEL 11)
064065,000535: 27,3762 00002 TC Q
End of include-file UPDATE_PROGRAM.agc. Parent file is MAIN.agc