Source Code
These source-code files were obtained by digitally photographing
an Artemis 72 (Apollo 15-17 Command Module) program listing from a private
collection and then
modifying pre-existing Comanche 55 (Apollo 11) source files to
incorporate changes. Photography was by Ron Burkey, and transcription
was performed by a team of volunteers. Note that the page images
presented online are of reduced quality, and that additional images
may be 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 072 OF AGC PROGRAM ARTEMIS BY NASA 2021114-011 11:40 FEB. 26, 1971Note that the date is the date of the printout, not the date of the program revision. |
063979,000002: ## Copyright: Public domain.
063980,000003: ## Filename: UPDATE_PROGRAM.agc
063981,000004: ## Purpose: Part of the source code for Artemis (i.e., Colossus 3),
063982,000005: ## build 072. This is for the Command Module's (CM)
063983,000006: ## Apollo Guidance Computer (AGC), for
063984,000007: ## Apollo 15-17.
063985,000008: ## Assembler: yaYUL
063986,000009: ## Contact: Jim Lawton <jim DOT lawton AT gmail DOT com>
063987,000010: ## Website: www.ibiblio.org/apollo/index.html
063988,000011: ## Page Scans: www.ibiblio.org/apollo/ScansForConversion/Artemis072/
063989,000012: ## Mod history: 2009-08-18 JL Adapted from corresponding Comanche 055 file.
063990,000013: ## 2009-09-05 JL Fixed typos.
063991,000014: ## 2010-02-16 JL Added SBANK= directive on page 1493.
063992,000015: ## 2010-02-20 RSB Un-##'d this header.
063993,000016: ## 2010-07-18 JL Fixed indentation.
063994,000017: ## 2011-05-07 JL Flagged SBANK= workarounds for future removal.
063995,000018: ## 2011-05-17 JL Removed all SBANK= workarounds.
063996,000019: ## 2017-01-28 RSB Comment-text fixes identified for Luminary 69.
063997,000020: ## 2017-02-09 RSB Proofed comment text by diff'ing vs Comanche 55
063998,000021: ## and/or octopus/ProoferComments as most-appropriate.
063999,000022:
Page 1490 |
064001,000024:
064002,000025: # PROGRAM NAME: P27
064003,000026: # WRITTEN BY: KILROY/ DE WOLF
064004,000027:
064005,000028: # MOD NO: 6
064006,000029: # MOD BY: KILROY
064007,000030: # DATE: 01DEC67
064008,000031:
064009,000032: # LOG SECTION: UPDATE PROGRAM.
064010,000033:
064011,000034: # FUNCT. DESCR: P27 (THE UPDATE PROGRAM) PROCESSES COMMANDS AND DATA
064012,000035: # INSERTIONS REQUESTED BY THE GROUND VIA UPLINK.
064013,000036: # THE P27 PROGRAM WILL ACCEPT UPDATES
064014,000037: # ONLY DURING P00 FOR THE LM, AND ONLY DURING P00,
064015,000038: # P02, AND FRESH START FOR THE CSM
064016,000039:
064017,000040: # CALLING SEQ: PROGRAM IS INITIATED BY UPLINK ENTRY OF VERBS 70, 71, 72 AND 73.
064018,000041:
064019,000042: # SUBROUTINES: TESTXACT, NEWMODEX, NEWMODEX +3, GOXDSPF, BANKCALL, FINDVAC, INTPRET, INTSTALL, TPAGREE,
064020,000043: # INTWAKEU, ENDEXT, POSTJUMP, FALTON, NEWPHASE, PHASCHNG
064021,000044:
064022,000045: # NORMAL EXIT: TC ENDEXT
064023,000046:
064024,000047: # ALARM/ABORT: TC FALTON FOLLOWED BY TC ENDEXT
064025,000048:
064026,000049: # RESTARTS: P27 IS RESTART PROTECTED IN TWO WAYS...
064027,000050: # 1. PRIOR TO VERIFLAG INVERSION (WHICH IS CAUSED BY THE GROUND/ASTRONAUT'S VERIFICATION OF UPDATE
064028,000051: # DATA BY SENDING A V33E WHEN V21N02 IS FLASHING)---
064029,000052: # NO PROTECTION EXCEPT PRE-P27 MODE IS RESTORED, COAST + ALIGN DOWNLIST IS SELECTED AND UPLINK
064030,000053: # ACTIVITY LIGHT IS TURNED OFF. (JUST AS IF A V34E WAS SENT DURING P27 DATA LOADS).
064031,000054: # V70,V71,V72 OR V73 WILL HAVE TO BE COMPLETELY RESENT BY USER.
064032,000055: # 2. AFTER VERIFLAG INVERSION (WHEN UPDATE OF THE SPECIFIED ERASABLES IS BEING PERFORMED)---
064033,000056: # PROTECTED AGAINST RESTARTS.
064034,000057:
064035,000058: # DEBRIS: UPBUFF (20D) TEMP STORAGE FOR ADDRESSES AND CONTENTS.
064036,000059: # UPVERB (1) VERB NUMBER MINUS 70D (E.G. FOR V72, UPVERB = 72D - 70D = 2)
064037,000060: # UPOLDMOD(1) FOR MAJOR MODE INTERRUPTED BY P27.
064038,000061: # COMPNUMB(1) TOTAL NUMBER OF COMPONENTS TO BE TRANSMITTED.
064039,000062: # UPCOUNT (1) ACTUAL NUMBER OF COMPONENTS RECEIVED.
064040,000063: # UPTEMP (1) SCRATCH, BUT USUALLY CONTAINS COMPONENT NUMBER TO BE CHANGED DURING VERIFY CYCLE
064041,000064:
064042,000065: # INPUT:
064043,000066:
064044,000067: # ENTRY: DESCRIPTION
064045,000068:
064046,000069: # V70EXXXXXEXXXXXE (LIFTOFF TIME INCREMENT) DOUBLE PRECISION OCTAL TIME INCREMENT, XXXXX XXXXX,
064047,000070: # IS ADDED TO TEPHEM, SUBTRACTED FROM AGC CLOCK(TIME2,TIME1), SUBTRACTED FROM CSM STATE
064048,000071: # VECTOR TIME(TETCSM) AND SUBTRACTED FROM LEM STATE VECTOR TIME (TETLEM).
064049,000072: # THE DP OCTAL TIME INCREMENT IS SCALED AT 2(28).
Page 1491 |
064051,000074:
064052,000075: # V71EIIEAAAAE (CONTIGUOUS BLOCK UPDATE) II-2 OCTAL COMPONENTS, XXXXX,
064053,000076: # XXXXXE ARE LOADED INTO ERASABLE STARTING AT ECADR, AAAA.
064054,000077: # XXXXXE IT IS .GE. 3 .AND. .LE. 20D.,
064055,000078: # AND (AAAA + II - 3) DOES NOT PRODUCE AN ADDRESS IN THE
064056,000079: # 9 NEXT BANK
064057,000080: # . SCALING IS SAME AS INTERNAL REGISTERS.
064058,000081:
064059,000082: # V72EIIE (SCATTER UPDATE) (II-1)/2 OCTAL COMPONENTS, XXXXX, ARE
064060,000083: # AAAAEXXXXXE LOADED INTO ERASABLE LOCATIONS, AAAA.
064061,000084: # AAAAEXXXXXE II IS .GE. 3 .AND. .LE. 19D, AND MUST BE ODD.
064062,000085: # . SCALING IS SAME AS INTERNAL REGISTERS.
064063,000086:
064064,000087: # V73EXXXXXEXXXXXE (OCTAL CLOCK INCREMENT) DOUBLE PRECISION OCTAL TIME
064065,000088: # INCREMENT XXXXX XXXXX, IS ADDED TO THE AGC CLOCK, IN
064066,000089: # CENTISECONDS SCALED AT (2)28.
064067,000090: # THIS LOAD IS THE OCTAL EQUIVALENT OF V55.
064068,000091:
064069,000092: # OUTPUT: IN ADDITION TO THE ABOVE REGISTER LOADS, ALL UPDATES
064070,000093: # COMPLEMENT BIT3 OF FLAGWORD7.
064071,000094:
064072,000095: # ADDITIONAL NOTES: VERB 71, JUST DEFINED ABOVE WILL BE USED TO PERFORM BUT NOT LIMITED TO THE FOLLOWING UPDATES --
064073,000096: # 1. CSM/LM STATE VECTOR UPDATE
064074,000097: # 2. REFSMMAT UPDATE
064075,000098:
064076,000099:
064077,000100: # THE FOLLOWING COMMENTS DELINEATE EACH SPECIAL UPDATE----
064078,000101:
064079,000102: # 1. CSM/LM STATE VECTOR UPDATE (ALL DATA ENTRIES IN OCTAL)
064080,000103:
064081,000104: # ENTRIES: DATA DEFINITION: SCALE FACTORS:
064082,000105: # V71E CONTIGUOUS BLOCK UPDATE VERB
064083,000106: # 21E NUMBER OF COMPONENTS FOR STATE VECTOR UPDATE
064084,000107: # AAAAE ECADR OF 'UPSVFLAG'
064085,000108: # XXXXXE STATE VECTOR IDENTIFIER: 00001 FOR CSM, 77776 FOR LEM - EARTH SPHERE OF INFLUENCE SCALING
064086,000109: # 00002 FOR CSM, 77775 FOR LEM - LUNAR SPHERE OF INFLUENCE SCALING
064087,000110: # XXXXXEXXXXXE X POSITION
064088,000111: # XXXXXEXXXXXE Y POSITION
064089,000112: # XXXXXEXXXXXE Z POSITION
064090,000113: # XXXXXEXXXXXE X VELOCITY
064091,000114: # XXXXXEXXXXXE Y VELOCITY
064092,000115: # XXXXXEXXXXXE Z VELOCITY
064093,000116: # XXXXXEXXXXXE TIME FROM AGC CLOCK ZERO
064094,000117: # V33E VERB 33 TO SIGNAL THAT THE STATE VECTOR IS READY TO BE STORED.
064095,000118:
064096,000119:
064097,000120: # 2. REFSMMAT (ALL DATA ENTRIES IN OCTAL)
064098,000121: # ENTRIES: DATA DEFINITIONS: SCALE FACTORS:
Page 1492 |
064100,000123: # V71E CONTIGUOUS BLOCK UPDATE VERB
064101,000124: # 24E NUMBER OF COMPONENTS FOR REFSMMAT UPDATE
064102,000125: # AAAAE ECADR OF 'REFSMMAT'
064103,000126: # XXXXXEXXXXXE ROW 1 COLUMN 1 2(-1)
064104,000127: # XXXXXEXXXXXE ROW 1 COLUMN 2 2(-1)
064105,000128: # XXXXXEXXXXXE ROW 1 COLUMN 3 2(-1)
064106,000129: # XXXXXEXXXXXE ROW 2 COLUMN 1 2(-1)
064107,000130: # XXXXXEXXXXXE ROW 2 COLUMN 2 2(-1)
064108,000131: # XXXXXEXXXXXE ROW 2 COLUMN 3 2(-1)
064109,000132: # XXXXXEXXXXXE ROW 3 COLUMN 1 2(-1)
064110,000133: # XXXXXEXXXXXE ROW 3 COLUMN 2 2(-1)
064111,000134: # XXXXXEXXXXXE ROW 3 COLUMN 3 2(-1)
064112,000135: # V33E VERB 33 TO SIGNAL THAT REFSMMAT IS READY TO BE STORED.
064113,000136:
064114,000137: 43,2000 SETLOC EXTVERBS
064115,000138: 43,2000 BANK
064116,000139:
064117,000140: 43,3656 E3,1706 EBANK= TEPHEM
064118,000141:
064119,000142: 43,3656 COUNT* $$/P27
064120,000143: 43,3656 34772 V70UPDAT CAF UP70 # COMES HERE ON V70E
064121,000144: 43,3657 13665 TCF V73UPDAT +1
064122,000145:
064123,000146: 43,3660 34770 V71UPDAT CAF UP71 # COMES HERE ON V71E
064124,000147: 43,3661 13665 TCF V73UPDAT +1
064125,000148:
064126,000149: 43,3662 34767 V72UPDAT CAF UP72 # COMES HERE ON V72E
064127,000150: 43,3663 13665 TCF V73UPDAT +1
064128,000151:
064129,000152: 43,3664 36214 V73UPDAT CAF UP73 # COMES HERE ON V73E
064130,000153:
064131,000154: 43,3665 54331 +1 TS UPVERBSV # SAVE UPVERB UNTIL IT'S OK TO ENTER P27
064132,000155:
064133,000156: 43,3666 02076 TC TESTXACT # GRAB DISPLAY IF AVAILABLE, OTHERWISE
064134,000157: # TURN *OPERATOR ERROR* ON AND TERMINATE JOB
064135,000158:
064136,000159: 43,3667 31214 CA MODREG # CHECK IF UPDATE ALLOWED
064137,000160: 43,3670 00006 EXTEND # FIRST CHECK FOR MODREG = +0, -0
064138,000161: 43,3671 13707 BZF UPDATEOK # FRESH START OR P00
064139,000162: 43,3672 40104 CS FLAGWRD8
064140,000163: 43,3673 74760 MASK UTBIT
064141,000164: 43,3674 10000 CCS A
064142,000165: 43,3675 13702 TCF +5
064143,000166:
064144,000167: 43,3676 41214 CS MODREG
064145,000168: 43,3677 64124 AD OCT24
Page 1493 |
064147,000170: 43,3700 00006 EXTEND
064148,000171: 43,3701 13707 BZF UPDATEOK
064149,000172:
064150,000173: 43,3702 44767 CS TWO
064151,000174: 43,3703 71214 MASK MODREG
064152,000175: 43,3704 00006 EXTEND
064153,000176: 43,3705 13707 BZF +2 # P02
064154,000177: 43,3706 13717 TCF UPERROR
064155,000178: 43,3707 31214 UPDATEOK CAE MODREG # UPDATE ALLOWED.
064156,000179: 43,3710 54301 TS UPOLDMOD # SAVE CURRENT MAJOR MODE
064157,000180:
064158,000181: 43,3711 30331 CAE UPVERBSV # SET UPVERB TO INDICATE TO P27
064159,000182: 43,3712 54302 TS UPVERB # WHICH EXTENDED VERB CALLED IT.
064160,000183:
064161,000184: 43,3713 34770 CAF ONE
064162,000185: 43,3714 54303 TS UPCOUNT # INITIALIZE UPCOUNT TO 1
064163,000186:
064164,000187: 43,3715 04655 TC POSTJUMP # LEAVE EXTENDED VERB BANK AND
064165,000188: 43,3716 65626 CADR UPPART2 # GO TO UPDATE PROGRAM (P27) BANK.
064166,000189:
064167,000190: 43,3717 04362 UPERROR TC FALTON # TURN ON OP. ERROR
064168,000191: 43,3720 04415 TC UPACTOFF # TURN OFF UPLINK ACT LITE
064169,000192: 43,3721 15524 TCF ENDEXT # (RESTART GROUP NOT ESTABLISHED YET)
064170,000193:
064171,000194: 43,3722 4772 UP70 EQUALS ZERO
064172,000195: 43,3722 4770 UP71 EQUALS ONE
064173,000196: 43,3722 4767 UP72 EQUALS TWO
064174,000197: 43,3722 6214 UP73 EQUALS THREE
064175,000198:
064176,000199: 42,2000 SETLOC UPDATE3
064177,000200: 42,2000 BANK
064178,000201:
064179,000202: 42,3626 COUNT* $$/P27
064180,000203:
064181,000204: 42,3626 UPPART2 EQUALS # UPDATE PROGRAM - PART 2
064182,000205:
064183,000206: 42,3626 05402 TC PHASCHNG # SET RESTART GROUP 6 TO RESTORE OLD MODE
064184,000207: 42,3627 07026 OCT 07026 # AND DOWNLIST AND EXIT IF RESTART OCCURS.
064185,000208: 42,3630 30000 OCT 30000 # PRIORITY SAME AS CHRPRIO
064186,000209: 42,3631 0304 EBANK= UPBUFF
064187,000210: 42,3631 03706 56100 2CADR UPOUT +1
064188,000211:
064189,000212: 42,3633 34770 CAF ONE
064190,000213: 42,3634 54332 TS DNLSTCOD # DOWNLIST
064191,000214:
064192,000215: 42,3635 05344 TC NEWMODEX # SET MAJOR MODE = 27
064193,000216: 42,3636 00033 DEC 27 B-14
Page 1494 |
064195,000218:
064196,000219: 42,3637 50302 INDEX UPVERB # BRANCH DEPENDING ON WHETHER THE UPDATE
064197,000220: 42,3640 13641 TCF +1 # VERB REQUIRES A FIXED OR VARIABLE NUMBER
064198,000221: 42,3641 13644 TCF +3 # V70 FIXED. (OF COMPONENTS.
064199,000222: 42,3642 13647 TCF OHWELL1 # V71 VARIABLE - GO GET NO. OF COMPONENTS
064200,000223: 42,3643 13647 TCF OHWELL1 # V72 VARIABLE - GO GET NO. OF COMPONENTS
064201,000224: 42,3644 34767 CA TWO # V73 (AND V70) FIXED
064202,000225: 42,3645 54300 TS COMPNUMB # SET NUMBER OF COMPONENTS TO 2.
064203,000226: 42,3646 13672 TCF OHWELL2 # GO GET THE TWO UPDATE COMPONENTS
064204,000227:
064205,000228: 42,3647 33744 OHWELL1 CAF ADUPBUFF # * REQUEST USER TO SEND NUMBER *
064206,000229: 42,3650 54156 TS MPAC +2 # * OF COMPONENTS PARAMETER(II). *
064207,000230: 42,3651 33746 +2 CAF UPLOADNV # (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
064208,000231: 42,3652 04636 TC BANKCALL # DISPLAY A FLASHING V21N01
064209,000232: 42,3653 20576 CADR GOXDSPF # TO REQUEST II.
064210,000233: 42,3654 13733 TCF UPOUT4 # V34 TERMINATE UPDATE (P27) RETURN
064211,000234: 42,3655 13651 TCF OHWELL1 +2
064212,000235: 42,3656 03735 TC CK4V32 # DATA OR V32 RETURN
064213,000236: 42,3657 44767 CS BIT2
064214,000237: 42,3660 60304 AD UPBUFF # IS II (NUMBER OF COMPONENTS PARAMETER)
064215,000238: 42,3661 00006 EXTEND # .GE. 3 AND .LE. 20D.
064216,000239: 42,3662 63651 BZMF OHWELL1 +2
064217,000240: 42,3663 40304 CS UPBUFF
064218,000241: 42,3664 64353 AD UP21
064219,000242: 42,3665 00006 EXTEND
064220,000243: 42,3666 63651 BZMF OHWELL1 +2
064221,000244: 42,3667 30304 CAE UPBUFF
064222,000245: 42,3670 54300 TS COMPNUMB # SAVE II IN COMPNUMB
064223,000246:
064224,000247: # UPBUFF LOADING SEQUENCE
064225,000248:
064226,000249: 42,3671 24303 -1 INCR UPCOUNT # INCREMENT COUNT OF COMPONENTS RECEIVED
064227,000250: 42,3672 33745 OHWELL2 CAF ADUPBFM1 # CALCULATE LOCATION (ECADR) IN UPBUFF
064228,000251: 42,3673 60303 AD UPCOUNT # WHERE NEXT COMPONENT SHOULD BE STORED.
064229,000252: 42,3674 54156 +2 TS MPAC +2 # PLACE ECADR INTO R3.
064230,000253: 42,3675 33746 +3 CAF UPLOADNV # (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
064231,000254: 42,3676 04636 TC BANKCALL # DISPLAY A FLASHING V21N01
064232,000255: 42,3677 20576 CADR GOXDSPF # TO REQUEST DATA.
064233,000256: 42,3700 13733 TCF UPOUT4 # V34 TERMINATE UPDATE (P27) RETURN.
064234,000257: 42,3701 13675 TCF OHWELL2 +3 # V33 PROCEED RETURN
064235,000258: 42,3702 03735 TC CK4V32 # DATA OR V32 RETURN
064236,000259: 42,3703 40303 CS UPCOUNT # HAVE WE FINISHED RECEIVING ALL
064237,000260: 42,3704 60300 AD COMPNUMB # THE DATA WE EXPECTED.
064238,000261: 42,3705 00006 EXTEND
064239,000262: 42,3706 63710 BZMF UPVERIFY # YES - GO TO VERIFICATION SEQUENCE
064240,000263: 42,3707 13671 TCF OHWELL2 -1 # NO - REQUEST ADDITIONAL DATA.
064241,000264:
064242,000265: # VERIFY SEQUENCE
Page 1495 |
064244,000267: 42,3710 33743 UPVERIFY CAF ADUPTEMP # PLACE ECADR WHERE COMPONENT NO. INDEX
064245,000268: 42,3711 54156 TS MPAC +2 # IS TO BE STORED INTO R3.
064246,000269: 42,3712 33747 CAF UPVRFYNV # (CK4V32 RETURNS HERE IF V32 ENCOUNTERED)
064247,000270: 42,3713 04636 TC BANKCALL # DISPLAY A FLASHING V21N02 TO REQUEST
064248,000271: 42,3714 20576 CADR GOXDSPF # DATA CORRECTION OR VERIFICATION.
064249,000272: 42,3715 13733 TCF UPOUT4 # V34 TERMINATE UPDATE(P27) RETURN
064250,000273: 42,3716 13750 TCF UPSTORE # V33 DATA SENT IS GOOD. GO STORE IT.
064251,000274: 42,3717 03735 TC CK4V32 # COMPONENT NO. INDEX OR V32 RETURN
064252,000275: 42,3720 30330 CA UPTEMP # DOES THE COMPONENT NO. INDEX JUST SENT
064253,000276: 42,3721 00006 EXTEND # SPECIFY A LEGAL COMPONENT NUMBER?
064254,000277: 42,3722 63710 BZMF UPVERIFY # NO, IT IS NOT POSITIVE NONZERO
064255,000278: 42,3723 40330 CS UPTEMP
064256,000279: 42,3724 60300 AD COMPNUMB
064257,000280: 42,3725 64770 AD BIT1
064258,000281: 42,3726 00006 EXTEND
064259,000282: 42,3727 63710 BZMF UPVERIFY # NO
064260,000283: 42,3730 33745 CAF ADUPBFM1 # YES - BASED ON THE COMPONENT NO. INDEX
064261,000284: 42,3731 60330 AD UPTEMP # CALCULATE THE ECADR OF LOCATION IN
064262,000285: 42,3732 13674 TCF OHWELL2 +2 # UPBUFF WHICH USER WANTS TO CHANGE.
064263,000286:
064264,000287: 42,3733 04655 UPOUT4 TC POSTJUMP # COMES HERE ON V34 TO TERMINATE UPDATE
064265,000288: 42,3734 57706 CADR UPOUT +1
064266,000289:
064267,000290: # CHECK FOR VERB 32 SEQUENCE
064268,000291:
064269,000292: 42,3735 40154 CK4V32 CS MPAC # ON DATA RETURN FROM 'GOXDSPF'
064270,000293: 42,3736 74763 MASK BIT6 # ON DATA RETURN FROM "GOXDSP"& THE CON-
064271,000294: 42,3737 10000 CCS A # TENTS OF MPAC = VERB. SO TEST FOR V32.
064272,000295: 42,3740 00002 TC Q # IT'S NOT A V32, IT'S DATA. PROCEED.
064273,000296: 42,3741 50002 INDEX Q
064274,000297: 42,3742 77771 TC 0 -6 # V32 ENCOUNTERED - GO BACK AND GET DATA
064275,000298:
064276,000299: 42,3743 00330 ADUPTEMP ADRES UPTEMP # ADDRESS OF TEMP STORAGE FOR CORRECTIONS
064277,000300: 42,3744 00304 ADUPBUFF ADRES UPBUFF # ADDRESS OF UPDATE DATA STORAGE BUFFER
064278,000301: 42,3745 00303 ADUPBFM1 ADRES UPBUFF -1 # SAME AS ADUPBUFF BUT LESS ONE
064279,000302: 42,3746 05201 UPLOADNV VN 2101 # VERB 21 NOUN 01
064280,000303: 42,3747 05202 UPVRFYNV VN 2102 # VERB 21 NOUN 02
064281,000304: 42,3750 4353 UP21 = MD1 # DEC 21 = MAX NO OF COMPONENTS +1
064282,000305: 42,3750 4773 UPDTPHAS EQUALS FIVE
064283,000306:
064284,000307: # PRE-STORE AND FAN TO APPROPRIATE BRANCH SEQUENCE
064285,000308:
064286,000309: 42,3750 UPSTORE EQUALS # GROUND HAS VERIFIED UPDATE. STORE DATA.
064287,000310:
064288,000311: 42,3750 00004 INHINT
064289,000312:
064290,000313: 42,3751 30103 CAE FLAGWRD7 # INVERT VERIFLAG(BIT3 OF FLAGWRD7) TO
064291,000314: 42,3752 56001 XCH L # INDICATE TO THE GROUND(VIA DOWNLINK)
064292,000315: 42,3753 34766 CAF VERIFBIT # THAT THE V33 (WHICH THE GROUND SENT TO
064293,000316: 42,3754 00006 EXTEND # VERIFY THE UPDATE) HAS BEEN SUCCESSFULLY
Page 1496 |
064295,000318: 42,3755 06001 RXOR LCHAN # RECEIVED BY THE UPDATE PROGRAM
064296,000319: 42,3756 54103 TS FLAGWRD7
064297,000320:
064298,000321: 42,3757 05402 TC PHASCHNG # SET RESTART GROUP 6 TO REDO THE UPDATE
064299,000322: 42,3760 04026 OCT 04026 # DATA STORE IF A RESTART OCCURS.
064300,000323: 42,3761 00004 INHINT # (BECAUSE PHASCHNG DID A RELINT)
064301,000324:
064302,000325: 42,3762 44767 CS TWO # GO TO UPFNDVAC IF INSTALL IS REQUIRED,
064303,000326: 42,3763 60302 AD UPVERB # THAT IS, IF IT'S A V70 - V72.
064304,000327: 42,3764 00006 EXTEND # GO TO UPEND73 IF IT'S A V73.
064305,000328: 42,3765 63770 BZMF UPFNDVAC
064306,000329:
064307,000330: 42,3766 04655 TC POSTJUMP
064308,000331: 42,3767 57757 CADR UPEND73
064309,000332:
064310,000333: 42,3770 34346 UPFNDVAC CAF CHRPRIO # (USE EXTENDED VERB PRIORITY)
064311,000334: 42,3771 05135 TC FINDVAC # GET VAC AREA FOR 'CALL INTSTALL'
064312,000335: 42,3772 E3,1706 EBANK= TEPHEM
064313,000336: 42,3772 03545 56103 2CADR UPJOB # (NOTE: THIS WILL ALSO SET EBANK FOR
064314,000337:
064315,000338: 42,3774 05205 TC ENDOFJOB # 'TEPHEM' UPDATE BY V70)
064316,000339:
064317,000340: 27,2000 SETLOC UPDATE2
064318,000341: 27,2000 BANK
064319,000342:
064320,000343: 27,3545 COUNT* $$/P27
064321,000344: 27,3545 06006 UPJOB TC INTPRET # THIS COULD BE A STATE VECTOR UPDATE--SO
064322,000345: 27,3546 77624 CALL # WAIT(PUT JOB TO SLEEP) IF ORBIT INT(OI)
064323,000346: 27,3547 27516 INTSTALL # IS IN PROGRESS--OR--GRAB OI AND RETURN
064324,000347: # TO UPWAKE IF OI IS NOT IN PROGRESS.
064325,000348:
064326,000349: 27,3550 77776 UPWAKE EXIT
064327,000350:
064328,000351: 27,3551 05402 TC PHASCHNG # RESTART PROTECT(GROUP 6)
064329,000352: 27,3552 04026 OCT 04026
064330,000353:
064331,000354: 27,3553 05547 TC UPFLAG # SET INTEGRATION RESTART BIT
064332,000355: 27,3554 00230 ADRES REINTFLG
064333,000356: 27,3555 00004 INHINT
064334,000357: 27,3556 UPPART3 EQUALS
064335,000358:
064336,000359: 27,3556 50302 INDEX UPVERB # BRANCH TO THE APPROPRIATE UPDATE VERB
064337,000360: 27,3557 13560 TCF +1 # ROUTINE TO ACTUALLY PERFORM THE UPDATE
064338,000361: 27,3560 13722 TCF UPEND70 # V70
064339,000362: 27,3561 13626 TCF UPEND71 # V71
064340,000363: 27,3562 13660 TCF UPEND72 # V72
064341,000364:
064342,000365: # ROUTINE TO INCREMENT CLOCK (TIME2,TIME1) WITH CONTENTS OF DP WORD AT UPBUFF.
Page 1497 |
064344,000367: 27,3563 00006 TIMEDIDL EXTEND
064345,000368: 27,3564 22330 QXCH UPTEMP # SAVE Q FOR RETURN
064346,000369: 27,3565 34772 CAF ZERO # ZERO AND SAVE TIME2,TIME1
064347,000370: 27,3566 22007 ZL
064348,000371: 27,3567 52025 DXCH TIME2
064349,000372: 27,3570 52327 DXCH UPBUFF +18D # STORE IN CASE OF OVERFLOW
064350,000373:
064351,000374: 27,3571 34773 CAF UPDTPHAS # DO
064352,000375: 27,3572 54001 TS L # A
064353,000376: 27,3573 40000 COM # QUICK
064354,000377: 27,3574 53170 DXCH -PHASE6 # PHASCHNG
064355,000378:
064356,000379: 27,3575 01,2330 6P5SPT1 = 6.5SPOT
064357,000380: 27,3575 00004 TIMEDIDR INHINT
064358,000381: 27,3576 34772 CAF ZERO
064359,000382: 27,3577 22007 ZL # PICK UP INCREMENTER(AND ZERO
064360,000383: 27,3600 54156 TS MPAC +2 # IT IN CASE OF RESTARTS) AND
064361,000384: 27,3601 52315 DXCH UPBUFF +8D # STORE IT
064362,000385: 27,3602 52155 DXCH MPAC # INTO MPAC FOR TPAGREE.
064363,000386:
064364,000387: 27,3603 00006 EXTEND
064365,000388: 27,3604 30327 DCA UPBUFF +18D
064366,000389: 27,3605 20155 DAS MPAC # FORM SUM IN MPAC
064367,000390: 27,3606 00006 EXTEND
064368,000391: 27,3607 13616 BZF DELTATOK # TEST FOR OVERFLOW
064369,000392: 27,3610 34772 CAF ZERO
064370,000393: 27,3611 52327 DXCH UPBUFF +18D # OVERFLOW, RESTORE OLD VALUE OF CLOCK
064371,000394: 27,3612 20025 DAS TIME2 # AND TURN ON OPERATOR ERROR
064372,000395:
064373,000396: 27,3613 05402 TC PHASCHNG # RESTART PROTECT (GROUP 6)
064374,000397: 27,3614 04026 OCT 04026
064375,000398:
064376,000399: 27,3615 00330 TC UPTEMP # GO TO ERROR EXIT
064377,000400:
064378,000401: 27,3616 07226 DELTATOK TC TPAGREE # FORCE SIGN AGREEMENT
064379,000402: 27,3617 52155 DXCH MPAC
064380,000403: 27,3620 20025 DAS TIME2 # INCREMENT TIME2,TIME1
064381,000404:
064382,000405: 27,3621 05402 TC PHASCHNG # RESTART PROTECT (GROUP 6)
064383,000406: 27,3622 04026 OCT 04026
064384,000407:
064385,000408: 27,3623 00004 INHINT
064386,000409: 27,3624 50330 INDEX UPTEMP # (CODED THIS WAY FOR RESTART PROTECTION)
064387,000410: 27,3625 00001 TC 1 # NORMAL RETURN
064388,000411:
064389,000412: # VERB 71 BRANCH
064390,000413:
064391,000414: 27,3626 30305 UPEND71 CAE UPBUFF +1 # SET EBANK
064392,000415: 27,3627 54003 TS EBANK # AND
064393,000416: 27,3630 74350 MASK LOW8 # CALCULATE
Page 1498 |
064395,000418: 27,3631 54330 TS UPTEMP # S-REG VALUE OF RECEIVING AREA
064396,000419:
064397,000420: 27,3632 67700 AD NEG3 # IN THE PROCESS OF
064398,000421: 27,3633 60300 AD COMPNUMB # PERFORMING
064399,000422: 27,3634 00006 EXTEND # THIS UPDATE
064400,000423: 27,3635 13643 BZF STORLP71 # WILL WE
064401,000424: 27,3636 74760 MASK BIT9 # OVERFLOW
064402,000425: 27,3637 10000 CCS A # INTO THE NEXT EBANK....
064403,000426: 27,3640 13656 TCF UPERROUT # YES
064404,000427:
064405,000428: 27,3641 37700 CA NEG3 # NO - CALCULATE NUMBER OF
064406,000429: 27,3642 60300 AD COMPNUMB # WORDS TO BE STORED MINUS ONE
064407,000430: 27,3643 54154 STORLP71 TS MPAC # SAVE NO. OF WORDS REMAINING MINUS ONE
064408,000431: 27,3644 50000 INDEX A # TAKE NEXT UPDATE WORD FROM
064409,000432: 27,3645 30306 CA UPBUFF +2 # UPBUFF AND
064410,000433: 27,3646 54001 TS L # SAVE IT IN L
064411,000434: 27,3647 30154 CA MPAC # CALCULATE NEXT
064412,000435: 27,3650 60330 AD UPTEMP # RECEIVING ADDRESS
064413,000436: 27,3651 50000 INDEX A
064414,000437: 27,3652 E3,1400 EBANK= 1400
064415,000438: 27,3652 23400 LXCH 1400 # UPDATE THE REGISTER BY CONTENTS OF L
064416,000439: 27,3653 E3,1706 EBANK= TEPHEM
064417,000440: 27,3653 10154 CCS MPAC # ARE THERE ANY WORDS LEFT TO BE STORED
064418,000441: 27,3654 13643 TCF STORLP71 # YES
064419,000442: 27,3655 13705 TCF UPOUT # NO - THEN EXIT UPDATE PROGRAM
064420,000443: 27,3656 04362 UPERROUT TC FALTON # TURN ON OP ERROR, CCS CANT GET HERE
064421,000444: 27,3657 13705 TCF UPOUT # NO - EXIT UPDATE (HERE WHEN COMPNUMB = 3)
064422,000445:
064423,000446: # VERB 72 BRANCH
064424,000447:
064425,000448: 27,3660 34770 UPEND72 CAF BIT1 # HAVE AN ODD NO. OF COMPONENTS
064426,000449: 27,3661 70300 MASK COMPNUMB # BEEN SENT FOR A V72 UPDATE...
064427,000450: 27,3662 10000 CCS A
064428,000451: 27,3663 13665 TCF +2 # YES
064429,000452: 27,3664 13656 TCF UPERROUT # ERROR - SHOULD BE ODD NO. OF COMPONENTS
064430,000453: 27,3665 44767 CS BIT2
064431,000454: 27,3666 60300 AD COMPNUMB
064432,000455: 27,3667 54154 LDLOOP72 TS MPAC # NOW PERFORM THE UPDATE
064433,000456: 27,3670 50000 INDEX A
064434,000457: 27,3671 30305 CAE UPBUFF +1 # PICK UP NEXT UPDATE WORD
064435,000458: 27,3672 22000 LXCH A
064436,000459: 27,3673 10154 CCS MPAC # SET POINTER TO ECADR (MUST BE CCS)
064437,000460: 27,3674 54154 TS MPAC
064438,000461: 27,3675 50000 INDEX A
064439,000462: 27,3676 30305 CAE UPBUFF +1 # PICK UP NEXT ECADR OF REG TO BE UPDATED
064440,000463: 27,3677 54003 TS EBANK # SET EBANK
064441,000464: 27,3700 74350 MASK LOW8 # ISOLATE RELATIVE ADDRESS
064442,000465: 27,3701 50000 INDEX A
064443,000466: 27,3702 E3,1400 EBANK= 1400
Page 1499 |
064445,000468: 27,3702 23400 LXCH 1400 # UPDATE THE REGISTER BY CONTENTS OF L
064446,000469: 27,3703 E3,1706 EBANK= TEPHEM
064447,000470: 27,3703 10154 CCS MPAC # ARE WE THROUGH THE V72 UPDATE...
064448,000471: 27,3704 13667 TCF LDLOOP72 # NO
064449,000472:
064450,000473: # NORMAL FINISH OF P27
064451,000474:
064452,000475: 27,3705 UPOUT EQUALS
064453,000476: 27,3705 03072 TC INTWAKEU # RELEASE GRAB OF ORBITAL INTEGRATION
064454,000477: 27,3706 30301 +1 CAE UPOLDMOD # RESTORE PRIOR P27 MODE
064455,000478: 27,3707 05347 TC NEWMODEA
064456,000479: 27,3710 44770 CS BIT1
064457,000480: 27,3711 61214 AD MODREG
064458,000481: 27,3712 10000 CCS A
064459,000482: 27,3713 10000 CCS A
064460,000483: 27,3714 34767 CAF TWO
064461,000484: 27,3715 54332 TS DNLSTCOD
064462,000485: 27,3716 04415 TC UPACTOFF # TURN OFF 'UPLINK ACTIVITY' LIGHT
064463,000486: 27,3717 04636 TC BANKCALL # KILL GROUP 6
064464,000487: 27,3720 12556 CADR UPKLEAN
064465,000488:
064466,000489: 27,3721 05524 TC ENDEXT # EXTENDED VERB EXIT
064467,000490:
064468,000491: # VERB 70 BRANCH
064469,000492:
064470,000493: 27,3722 00006 UPEND70 EXTEND # V70 DOES THE FOLLOWING WITH DP DELTA
064471,000494: 27,3723 40305 DCS UPBUFF # TIME IN UPBUFF
064472,000495: 27,3724 52315 DXCH UPBUFF +8D
064473,000496: 27,3725 03563 TC TIMEDIDL # DECREMENT AGC CLOCK
064474,000497:
064475,000498: 27,3726 03656 TC UPERROUT # ERROR WHILE DECREMENTING CLOCK -- EXIT
064476,000499:
064477,000500: 27,3727 E3,1706 EBANK= TEPHEM
064478,000501: 27,3727 00006 EXTEND
064479,000502: 27,3730 40305 DCS UPBUFF # COPY DECREMENTERS FOR
064480,000503: 27,3731 52317 DXCH UPBUFF +10D # RESTART PROTECTION
064481,000504: 27,3732 00006 EXTEND
064482,000505: 27,3733 40305 DCS UPBUFF
064483,000506: 27,3734 52321 DXCH UPBUFF +12D
064484,000507:
064485,000508: 27,3735 05402 TC PHASCHNG # RESTART PROTECT (GROUP 6)
064486,000509: 27,3736 04026 OCT 04026
064487,000510:
064488,000511: 27,3737 34772 CAF ZERO
064489,000512: 27,3740 22007 ZL
064490,000513: 27,3741 52317 DXCH UPBUFF +10D # DECREMENT CSM STATE VECTOR TIME
064491,000514: 27,3742 21571 DAS TETCSM
064492,000515:
Page 1500 |
064494,000517: 27,3743 34772 CAF ZERO
064495,000518: 27,3744 22007 ZL
064496,000519: 27,3745 52321 DXCH UPBUFF +12D # DECREMENT LEM STATE VECTOR TIME
064497,000520: 27,3746 21643 DAS TETLEM
064498,000521:
064499,000522: 27,3747 34772 CAF ZERO
064500,000523: 27,3750 22007 ZL
064501,000524: 27,3751 52305 DXCH UPBUFF
064502,000525: 27,3752 21710 DAS TEPHEM +1 # INCREMENT TP TEPHEM
064503,000526: 27,3753 27706 ADS TEPHEM
064504,000527:
064505,000528: 27,3754 05402 TC PHASCHNG # RESTART PROTECT (GROUP 6)
064506,000529: 27,3755 04026 OCT 04026
064507,000530:
064508,000531: 27,3756 0304 EBANK= UPBUFF
064509,000532:
064510,000533: 27,3756 03705 TC UPOUT # GO TO STANDARD UPDATE PROGRAM EXIT
064511,000534:
064512,000535: # VERB 73 BRANCH
064513,000536:
064514,000537: 27,3757 00006 UPEND73 EXTEND
064515,000538: 27,3760 30305 DCA UPBUFF
064516,000539: 27,3761 52315 DXCH UPBUFF +8D
064517,000540: 27,3762 03563 TC TIMEDIDL
064518,000541: 27,3763 04362 TC FALTON
064519,000542: 27,3764 03706 TC UPOUT +1
064520,000543:
064521,000544: # ERROR SEQUENCE
064522,000545:
064523,000546: 27,3765 30,2000 SBANK= LOWSUPER
End of include-file UPDATE_PROGRAM.agc. Parent file is MAIN.agc