Source Code
These source-code files are part of a reconstructed copy of Artemis 071, the
first release of the Apollo 15 through 17 Command Module (CM) Apollo Guidance
Computer (AGC) software.
The reconstruction began with source code of Artemis 072 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes between the two versions. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021154-. Note that page numbers in the reconstructed code match those on the Artemis 072 printout, although the changed code would likely have changed page numbers for a real Artemis 071 listing. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. |
047674,000002: ## Copyright: Public domain.
047675,000003: ## Filename: DOWN-TELEMETRY_PROGRAM.agc
047676,000004: ## Purpose: A section of Artemis revision 071.
047677,000005: ## It is part of the reconstructed source code for the first
047678,000006: ## release of the flight software for the Command Module's
047679,000007: ## (CM) Apollo Guidance Computer (AGC) for Apollo 15 through
047680,000008: ## 17. The code has been recreated from a copy of Artemis 072.
047681,000009: ## It has been adapted such that the resulting bugger words
047682,000010: ## exactly match those specified for Artemis 071 in NASA
047683,000011: ## drawing 2021154-, which gives relatively high confidence
047684,000012: ## that the reconstruction is correct.
047685,000013: ## Reference: 1093
047686,000014: ## Assembler: yaYUL
047687,000015: ## Contact: Ron Burkey <info@sandroid.org>.
047688,000016: ## Website: www.ibiblio.org/apollo/index.html
047689,000017: ## Mod history: 2019-08-14 MAS Created from Artemis 072.
047690,000018:
Page 1093 |
047692,000020: # PROGRAM NAME- DOWN TELEMETRY PROGRAM
047693,000021: # MOD NO.- 0 TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
047694,000022: # PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
047695,000023: # THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS. REFER TO DOWNLINK
047696,000024: # LISTS LOG SECTION FOR MORE DETAILS. HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
047697,000025: # OF DOWN TELEMETRY DATA.
047698,000026: # MOD BY- KILROY, SMITH, DEWITT
047699,000027: # MOD BY - DENSMORE - JUNE 1969 - ELIMINATE ERASABLE DUMP COUNT
047700,000028: # DATE- 02 OCT 67
047701,000029: # AUTHORS- KILROY, SMITH, DEWITT, DEWOLF, FAGIN
047702,000030: # LOG SECTION- DOWN-TELEMETRY PROGRAM
047703,000031: # FUNCTIONAL DESCRIPTION- THIS ROUTINE IS INITIATED BY TELEMETRY END
047704,000032: # PULSE FROM THE DOWNLINK TELEMETRY CONVERTER. THIS PULSE OCCURS
047705,000033: # AT 50 TIMES PER SEC (EVERY 20 MS) THEREFORE DODOWNTM IS
047706,000034: # EXECUTED AT THESE RATES. THIS ROUTINE SELECTS THE APPROPRIATE
047707,000035: # AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
047708,000036: # CHANNELS 34 AND 35. THE INFORMATION IS THEN GATED OUT FROM THE
047709,000037: # LGC IN SERIAL FASHION.
047710,000038: # THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST. SINCE DOWNRUPTS
047711,000039: # OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
047712,000040: # CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
047713,000041: # OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
047714,000042: # CALLING SEQUENCE- NONE
047715,000043: # PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
047716,000044: # RESULT OF A DOWNRUPT. CONTROL IS RETURNED VIA TCF RESUME WHICH
047717,000045: # IN EFFECT IS A RESUME.
047718,000046: # SUBROUTINES CALLED- NONE
047719,000047: # NORMAL EXIT MODE- TCF RESUME
047720,000048: # ALARM OR ABORT EXIT MODE- NONE
047721,000049: # RESTART PROTECTION:
047722,000050: # ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER (ACTUALLY
047723,000051: # DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST (I.E. CURRENT CONTENTS OF DNLSTADR). THIS HAS THE
047724,000052: # EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
047725,000053: # THE RESTART (OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
047726,000054: # DOWNLIST.
047727,000055: # ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
047728,000056: # DOWNLINK LIST SELECTION:
047729,000057: # THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
047730,000058: # 1. FRESH START
047731,000059: # 2. V37EXXE WHERE XX = THE MAJOR MODE BEING SELECTED.
047732,000060: # 3. UPDATE PROGRAM (P27)
047733,000061: # 4. NON-V37 SELECTABLE TYPE PROGRAMS (E.G. AGS INITIALIZATION (SUNDANCE, LUMINARY) AND P61-P62
047734,000062: # TRANSITION (COLOSSUS) ETC.).
047735,000063: # DOWNLINK LIST RULES AND LIMITATIONS:
047736,000064: # READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
047737,000065: # OUTPUT- EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS (I.E. 200 LGC
047738,000066: # COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
047739,000067: # ERASABLE INITIALIZATION REQUIRED- NONE
047740,000068: # 'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
047741,000069: # DEBRIS (ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM)-
Page 1094 |
047743,000071: # LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.
047744,000072:
Page 1095 |
047746,000074: # DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
047747,000075: # RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
047748,000076:
047749,000077: # NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
047750,000078: # 1. DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
047751,000079: # DOWN-TELEMETRY PROGRAM. THIS IS DONE FOR EASE OF CODING, FASTER
047752,000080: # EXECUTION.
047753,000081: # 2. EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
047754,000082: # SUBLISTS.
047755,000083: # 3. A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
047756,000084: # DOWNLINK LISTS. ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
047757,000085: # CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
047758,000086: # 4. SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
047759,000087: # SAVED IN A BUFFER DURING ONE DOWNRUPT.
047760,000088: # 5. THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
047761,000089: # OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
047762,000090: # IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
047763,000091: # 6. ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
047764,000092: # CREATED FOR THE DOWNLIST PROGRAM.
047765,000093: # A. 1DNADR 1-WORD DOWNLIST ADDRESS.
047766,000094: # SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
047767,000095: # HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
047768,000096: # B. 2DNADR - 6DNADR N-WORD DOWNLIST ADDRESS, N = 2 - 6.
047769,000097: # SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
047770,000098: # FILLED IN WITH 0001-0101. USED TO POINT TO A LIST OF N DOUBLE-
047771,000099: # PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
047772,000100: # C. DNCHAN DOWNLIST CHANNEL ADDRESS.
047773,000101: # SAME AS 1DNADR, BUT WITH PREFIX BITS 0111. USED TO POINT TO
047774,000102: # A PAIR OF CHANNELS FOR DOWN TELEMETRY.
047775,000103: # D. DNPTR DOWN TELEMETRY SUBLIST POINTER.
047776,000104: # SAME AS CAF BUT TAGGED AS A CONSTANT. USED IN CONTROL LIST TO POINT TO A SUBLIST.
047777,000105: # CAUTION--- A DNPTR CANNOT BE USED IN A SUBLIST.
047778,000106: # 7. THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
047779,000107: # A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST (ONLY).
047780,000108: # 8. IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
047781,000109:
047782,000110: # DOWNLINK LIST RESTRICTIONS:
047783,000111: # (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO IT IS CLEAR THAT THESE THINGS CANNOT BE
047784,000112: # DONE)
047785,000113:
047786,000114: # 1. SNAPSHOT DOWNLIST:
047787,000115: # (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
047788,000116: # (B) CAN CONTAIN ONLY 1DNADR'S
047789,000117:
047790,000118: # 2. ALL DOWNLINKED DATA (EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
047791,000119: # EQUIVALENT OF THE FOLLOWING ECADRS (I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
047792,000120:
047793,000121: # (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR TO 6DNADR WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
047794,000122:
047795,000123: # 3. CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777
Page 1096 |
047797,000125: # 4. THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
047798,000126: # CONTROL SECTION OF THE DOWNLIST.
047799,000127:
047800,000128: # 5. 'DNCHAN 0' CANNOT BE USED.
047801,000129:
047802,000130: # 6. 'DNPTR 0' CANNOT BE USED.
047803,000131:
047804,000132: # 7. DNPTR CANNOT APPEAR IN A SUBLIST.
047805,000133:
047806,000134: # EBANK SETTINGS
047807,000135: # IN THE PROCESS OF SETTING THE EBANK (WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
047808,000136: # 'GARBAGE' INTO BITS15-12 OF EBANK. HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
047809,000137: # SIGNIFICANT SOMEDAY IN THE FUTURE. IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE (BY MASKING ETC.)
047810,000138: # THAT BITS 15-12 OF EBANK ARE ZERO.
047811,000139: # INITIALIZATION REQUIRED- TO INTERRUPT CURRENT LIST AND START A NEW ONE..
047812,000140: # 1. ADRES OF DOWNLINK LIST INTO DNLSTADR
047813,000141: # 2. NEGONE INTO SUBLIST
047814,000142: # 3. NEGONE INTO DNECADR
047815,000143:
047816,000144: 4000 SETLOC FFTAG12
047817,000145: 4000 BANK
047818,000146:
047819,000147: 4621 0337 EBANK= DNTMBUFF
047820,000148:
047821,000149: 4621 COUNT* $$/DPROG
047822,000150: 4621 54016 DODOWNTM TS BANKRUPT
047823,000151: 4622 00006 EXTEND
047824,000152: 4623 22012 QXCH QRUPT # SAVE Q
047825,000153: 4624 34762 CA BIT7 # SET WORD ORDER CODE TO 1. EXCEPTION- AT
047826,000154: 4625 00006 EXTEND
047827,000155: 4626 02013 RAND CHAN13
047828,000156: 4627 10000 CCS A
047829,000157: 4630 00334 TC DNTMGOTO
047830,000158: 4631 04542 TC C13STALL
047831,000159: 4632 34762 CA BIT7
047832,000160: 4633 00006 EXTEND # THE BEGINNING OF EACH LIST THE WORD
047833,000161: 4634 05013 WOR CHAN13 # CODE WILL BE SET BACK TO 0.
047834,000162: 4635 00334 TC DNTMGOTO # GOTO APPROPRIATE PHASE OF PROGRAM
047835,000163:
047836,000164: 05,2000 SETLOC DOWNTELM
047837,000165: 05,2000 BANK
047838,000166:
047839,000167: 05,3446 COUNT* $$/DPROG
047840,000168: 05,3446 37702 DNPHASE1 CA NEGONE # INITIALIZE ALL CONTROL WORDS
047841,000169: 05,3447 54336 TS SUBLIST # WORDS TO MINUS ONE
047842,000170: 05,3450 54335 TS DNECADR
047843,000171: 05,3451 33574 CA LDNPHAS2 # SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS
Page 1097 |
047845,000173: 05,3452 54334 TS DNTMGOTO # GO TO DNPHASE2
047846,000174: 05,3453 13467 TCF NEWLIST
047847,000175: 05,3454 10335 DNPHASE2 CCS DNECADR # SENDING OF DATA IN PROGRESS
047848,000176: 05,3455 03607 DODNADR TC FETCH2WD # YES - THEN FETCH THE NEXT 2 SP WORDS
047849,000177: 05,3456 77753 MINTIME2 -1DNADR TIME2 # NEGATIVE OF TIME2 1DNADR
047850,000178: 05,3457 13460 TCF +1 # (ECADR OF 3776 + 74001 = 77777)
047851,000179:
047852,000180: 05,3460 10336 CCS SUBLIST # IS THE SUBLIST IN CONTROL
047853,000181: 05,3461 13622 TCF NEXTINSL # YES
047854,000182: 05,3462 74001 DNADRDCR OCT 74001 # DNADR COUNT AND ECADR DECREMENTER
047855,000183:
047856,000184: 05,3463 30333 CHKLIST CA CTLIST
047857,000185: 05,3464 00006 EXTEND
047858,000186: 05,3465 63467 BZMF NEWLIST # IT WILL BE NEGATIVE AT END OF LIST
047859,000187: 05,3466 13474 TCF NEXTINCL
047860,000188: 05,3467 50332 NEWLIST INDEX DNLSTCOD
047861,000189: 05,3470 32362 CA DNTABLE # INITIALIZE CTLIST WITH
047862,000190: 05,3471 54333 TS CTLIST # STARTING ADDRESS OF NEW LIST
047863,000191: 05,3472 40332 CS DNLSTCOD
047864,000192: 05,3473 13711 TCF SENDID +3
047865,000193: 05,3474 50333 NEXTINCL INDEX CTLIST
047866,000194: 05,3475 30000 CA 0
047867,000195: 05,3476 10000 CCS A
047868,000196: 05,3477 24333 INCR CTLIST # SET POINTER TO PICK UP NEXT CTLIST WORD
047869,000197: 05,3500 13504 TCF +4 # ON NEXT ENTRY TO PROG. (A SHOULD NOT =0)
047870,000198: 05,3501 56333 XCH CTLIST # SET CTLIST TO NEGATIVE AND PLACE(CODING)
047871,000199: 05,3502 40000 COM # UNCOMPLEMENTED DNADR INTO A. (FOR LA)
047872,000200: 05,3503 56333 XCH CTLIST # (ST IN )
047873,000201: 05,3504 24000 +4 INCR A # (CTLIST)
047874,000202: 05,3505 54335 TS DNECADR # SAVE DNADR
047875,000203: 05,3506 63456 AD MINTIME2 # TEST FOR TIME2 (NEG. OF ECADR)
047876,000204: 05,3507 10000 CCS A
047877,000205: 05,3510 13514 TCF SETWO +1 # DON'T SET WORD ORDER CODE
047878,000206: 05,3511 47777 MINB1314 OCT 47777 # MINUS BIT 13 AND 14 (CAN'T GET HERE)
047879,000207: 05,3512 13514 TCF SETWO +1 # DON'T SET WORD ORDER CODE
047880,000208: 05,3513 03536 SETWO TC WOZERO # GO SET WORD ORDER CODE TO ZERO.
047881,000209: 05,3514 30335 +1 CA DNECADR # RELOAD A WITH THE DNADR.
047882,000210: 05,3515 63511 +2 AD MINB1314 # IS THIS A REGULAR DNADR?
047883,000211: 05,3516 00006 EXTEND
047884,000212: 05,3517 63607 BZMF FETCH2WD # YES. (A MUST NEVER BE ZERO)
047885,000213: 05,3520 67674 AD MINB12 # NO- IS IT A POINTER (DNPTR) OR A
047886,000214: 05,3521 00006 EXTEND # CHANNEL(DNCHAN)
047887,000215: 05,3522 63545 BZMF DODNPTR # IT'S A POINTER. (A MUST NEVER BE ZERO)
047888,000216:
047889,000217: 05,3523 00006 DODNCHAN TC 6 # (EXECUTED AS EXTEND) IT S A CHANNEL
047890,000218: 05,3524 50335 INDEX DNECADR
047891,000219: 05,3525 44000 INDEX 0 -4000 # (EXECUTED AS READ)
047892,000220: 05,3526 54001 TS L
047893,000221: 05,3527 00006 TC 6 # (EXECUTED AS EXTEND)
047894,000222: 05,3530 50335 INDEX DNECADR
Page 1098 |
047896,000224: 05,3531 43777 INDEX 0 -4001 # (EXECUTED AS READ)
047897,000225: 05,3532 54335 TS DNECADR # SET DNECADR
047898,000226: 05,3533 37702 CA NEGONE # TO MINUS
047899,000227: 05,3534 56335 XCH DNECADR # WHILE PRESERVING A.
047900,000228: 05,3535 13635 TCF DNTMEXIT # GO SEND CHANNELS
047901,000229:
047902,000230: 05,3536 00006 WOZERO EXTEND
047903,000231: 05,3537 22070 QXCH RUPTREG1
047904,000232: 05,3540 04542 TC C13STALL
047905,000233: 05,3541 44762 CS BIT7
047906,000234: 05,3542 00006 EXTEND
047907,000235: 05,3543 03013 WAND CHAN13 # SET WORD ORDER CODE TO ZERO
047908,000236: 05,3544 00070 TC RUPTREG1 # RETURN TO CALLER
047909,000237:
047910,000238: 05,3545 50335 DODNPTR INDEX DNECADR # DNECADR CONTAINS ADRES OF SUBLIST
047911,000239: 05,3546 00000 0 0 # CLEAR AND ADD LIST ENTRY INTO A.
047912,000240: 05,3547 10000 CCS A # IS THIS A SNAPSHOT SUBLIST
047913,000241: 05,3550 30335 CA DNECADR # NO, IT IS A REGULAR SUBLIST.
047914,000242: 05,3551 13621 TCF DOSUBLST # A MUST NOT BE ZERO.
047915,000243:
047916,000244: 05,3552 56335 XCH DNECADR # YES, IT IS A SNAPSHOT SUBLIST.
047917,000245: 05,3553 54336 TS SUBLIST # C(DNECADR) INTO SUBLIST
047918,000246: 05,3554 34772 CAF ZERO # A INTO A
047919,000247: 05,3555 56335 XCH TMINDEX # (NOTE.. TMINDEX = DNECADR)
047920,000248:
047921,000249: # THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND) IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
047922,000250: # THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
047923,000251: # THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
047924,000252: # TO MINIMIZE TIME. THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
047925,000253: # THESE RULES ARE......
047926,000254: # 1. ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
047927,000255: # 2. THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY BANK.
047928,000256:
047929,000257: 05,3556 54003 SNAPLOOP TS EBANK # SET EBANK
047930,000258: 05,3557 74350 MASK LOW8 # ISOLATE RELATIVE ADDRESS
047931,000259: 05,3560 00006 EXTEND
047932,000260: 05,3561 50000 INDEX A
047933,000261: 05,3562 E3,1401 EBANK= 1401
047934,000262: 05,3562 31402 DCA 1401 # PICK UP 2 SNAPSHOT WORDS.
047935,000263: 05,3563 0337 EBANK= DNTMBUFF
047936,000264: 05,3563 50335 INDEX TMINDEX
047937,000265: 05,3564 52340 DXCH DNTMBUFF # STORE 2 SNAPSHOT WORDS IN BUFFER
047938,000266: 05,3565 24335 INCR TMINDEX # SET BUFFER INDEX FOR NEXT 2 WORDS.
047939,000267: 05,3566 24335 INCR TMINDEX
047940,000268: 05,3567 24336 SNAPAGN INCR SUBLIST # SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
047941,000269: 05,3570 50336 INDEX SUBLIST
047942,000270: 05,3571 00000 0 0 # = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
047943,000271: 05,3572 10000 CCS A # TEST FOR LAST TWO WORDS OF SNAPSHOT.
Page 1099 |
047945,000273: 05,3573 13556 TCF SNAPLOOP # NOT LAST TWO.
047946,000274: 05,3574 03454 LDNPHAS2 GENADR DNPHASE2
047947,000275: 05,3575 54336 TS SUBLIST # YES, LAST. SAVE A.
047948,000276: 05,3576 37702 CA NEGONE # SET DNECADR AND
047949,000277: 05,3577 54335 TS DNECADR # SUBLIST POINTERS
047950,000278: 05,3600 56336 XCH SUBLIST # TO NEGATIVE VALUES.
047951,000279: 05,3601 54003 TS EBANK
047952,000280: 05,3602 74350 MASK LOW8
047953,000281: 05,3603 00006 EXTEND
047954,000282: 05,3604 50000 INDEX A
047955,000283: 05,3605 E3,1401 EBANK= 1401
047956,000284: 05,3605 31402 DCA 1401 # PICK UP FIRST 2 WORDS OF SNAPSHOT.
047957,000285: 05,3606 0337 EBANK= DNTMBUFF
047958,000286: 05,3606 13635 SNAPEND TCF DNTMEXIT # NOW GO SEND THEM.
047959,000287:
047960,000288: 05,3607 30335 FETCH2WD CA DNECADR
047961,000289: 05,3610 54003 TS EBANK # SET EBANK
047962,000290: 05,3611 74350 MASK LOW8 # ISOLATE RELATIVE ADDRESS
047963,000291: 05,3612 54001 TS L
047964,000292: 05,3613 33462 CA DNADRDCR # DECREMENT COUNT AND ECADR
047965,000293: 05,3614 26335 ADS DNECADR
047966,000294: 05,3615 00006 EXTEND
047967,000295: 05,3616 50001 INDEX L
047968,000296: 05,3617 E3,1400 EBANK= 1400
047969,000297: 05,3617 31401 DCA 1400 # PICK UP 2 DATA WORDS
047970,000298: 05,3620 0337 EBANK= DNTMBUFF
047971,000299: 05,3620 13635 TCF DNTMEXIT # NOW GO SEND THEM.
047972,000300:
047973,000301: 05,3621 54336 DOSUBLST TS SUBLIST # SET SUBLIST POINTER
047974,000302: 05,3622 50336 NEXTINSL INDEX SUBLIST
047975,000303: 05,3623 00000 0 0 # = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
047976,000304: 05,3624 10000 CCS A # IS IT THE END OF THE SUBLIST
047977,000305: 05,3625 24336 INCR SUBLIST # NO-
047978,000306: 05,3626 13632 TCF +4
047979,000307: 05,3627 54336 TS SUBLIST # SAVE A.
047980,000308: 05,3630 37702 CA NEGONE # SET SUBLIST TO MINUS
047981,000309: 05,3631 56336 XCH SUBLIST # RETRIEVE A.
047982,000310: 05,3632 24000 +4 INCR A
047983,000311: 05,3633 54335 TS DNECADR # SAVE DNADR
047984,000312: 05,3634 13515 TCF SETWO +2 # GO USE COMMON CODING (PROBLEMS WOULD
047985,000313: # OCCUR IF THE PROGRAM ENCOUNTERED A
047986,000314: # DNPTR NOW)
047987,000315:
047988,000316: 05,3635 00006 DNTMEXIT EXTEND # DOWN-TELEMETRY EXIT
047989,000317: 05,3636 01034 WRITE DNTM1 # TO SEND A + L TO CHANNELS 34 + 35
047990,000318: 05,3637 30001 CA L # RESPECTIVELY
047991,000319: 05,3640 00006 TMEXITL EXTEND
047992,000320: 05,3641 01035 WRITE DNTM2
047993,000321: 05,3642 15323 TMRESUME TCF RESUME # EXIT TELEMETRY PROGRAM VIA RESUME.
Page 1100 |
047995,000323: 05,3643 7674 MINB12 EQUALS -1/8
047996,000324:
Page 1101 |
047998,000326: # SUBROUTINE NAME- DNDUMP
047999,000327: # FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL 8 BANKS OF ERASABLE STORAGE TWICE. BANKS ARE SENT ONE AT A TIME
048000,000328: # EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
048001,000329: # EBANK. EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
048002,000330: # CALLING SEQUENCE- THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
048003,000331: # AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
048004,000332: # WILL BEGIN.
048005,000333: # ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
048006,000334: # BY THE FOLLOWING:
048007,000335: # 1. A FRESH START
048008,000336: # 2. COMPLETION OF BOTH COMPLETE DUMPS
048009,000337: # 3. AND INVOLUNTARILY BY A RESTART.
048010,000338: # NORMAL EXIT MODE- TCF DNPHASE1
048011,000339: # ALARM OR ABORT MODE- NONE
048012,000340: # *SUBROUTINES CALLED- NONE.
048013,000341: # ERASABLE INITIALIZATION REQUIRED-
048014,000342: # NONE
048015,000343: # DEBRIS- DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
048016,000344: # TIMING- TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)* (WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
048017,000345: # TIME (IN SECS) = ( 4 )*( 8 )* ( 256 + 4 ) / 100
048018,000346: # THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
048019,000347:
048020,000348: # STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM-
048021,000349: # (REMINDER- THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
048022,000350: # DOWNLIST W
048023,000351: # WORD TAKEN FROM CONTENTS OF EXAMPLE O COMMENTS
048024,000352:
048025,000353: # 1 ERASID 0177X 0 DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
048026,000354: # 2 LOWIDCOD 77340 1 DOWNLINK SYNCH BITS. (SAME ONE USED IN ALL OTHER DOWNLISTS)
048027,000355: # 3 DUMPLOC 13400 1 (SEE NOTES ON DUMPLOC) 1 = 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
048028,000356: # 4 TIME1 14120 1 TIME IN CENTISECONDS
048029,000357: # 5 FIRST WORD OF EBANK X 03400 1 IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
048030,000358: # 6 2ND WORD OF EBANK X 00142 1 IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
048031,000359: # 7 3RD WORD OF EBANK X 00142 1 IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
048032,000360: # . 1
048033,000361: # . 1
048034,000362: # . 1
048035,000363: # 260D 256TH WORD OF EBANK X 03777 1 IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
048036,000364:
048037,000365: # NOTE- DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
048038,000366: # THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
048039,000367: # X = NOT USED
048040,000368: # X ABC EEE RRRRRRRR ABC = ERASABLE DUMP COUNTER (I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
048041,000369: # COMPLETE ERASABLE DUMP NUMBER 1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
048042,000370: # EEE = EBANK BITS
048043,000371: # RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
048044,000372:
048045,000373: 05,3643 34772 DNDUMPI CA ZERO # INITIALIZE DOWNLINK
048046,000374: 05,3644 54335 TS DUMPLOC # ERASABLE DUMP
048047,000375: 05,3645 03706 +2 TC SENDID # GO SEND ID AND SYNCH BITS
Page 1102 |
048049,000377: 05,3646 33655 CA LDNDUMP1 # SET DNTMGOTO
048050,000378: 05,3647 54334 TS DNTMGOTO # TO LOCATION FOR NEXT PASS
048051,000379: 05,3650 30025 CA TIME1 # PLACE TIME1
048052,000380: 05,3651 56001 XCH L # INTO L
048053,000381: 05,3652 30335 CA DUMPLOC # AND ECADR OF THIS EBANK INTO A
048054,000382: 05,3653 13635 TCF DNTMEXIT # SEND DUMPLOC AND TIME1
048055,000383:
048056,000384: 05,3654 03656 LDNDUMP ADRES DNDUMP
048057,000385: 05,3655 03670 LDNDUMP1 ADRES DNDUMP1
048058,000386:
048059,000387: 05,3656 34767 DNDUMP CA TWO # INCREMENT ECADR IN DUMPLOC
048060,000388: 05,3657 26335 ADS DUMPLOC # TO NEXT DP WORD TO BE
048061,000389: 05,3660 74350 MASK LOW8 # DUMPED AND SAVE IT.
048062,000390: 05,3661 10000 CCS A # IS THIS THE BEGINNING OF A NEW EBANK
048063,000391: 05,3662 13672 TCF DNDUMP2 # NO- THEN CONTINUE DUMPING
048064,000392: 05,3663 30335 CA DUMPLOC # YES- IS THIS THE END OF THE
048065,000393: 05,3664 74754 MASK BIT13 # SECOND COMPLETE ERASABLE DUMP?
048066,000394: 05,3665 00006 EXTEND
048067,000395: 05,3666 13645 BZF DNDUMPI +2 # NO - GO BACK AND INITIALIZE NEXT BANK
048068,000396: 05,3667 13446 TCF DNPHASE1 # YES - SEND DOWNLIST AGAIN
048069,000397: 05,3670 33654 DNDUMP1 CA LDNDUMP # SET DNTMGOTO
048070,000398: 05,3671 54334 TS DNTMGOTO # FOR WORDS 3 TO 256D OF CURRENT EBANK
048071,000399:
048072,000400: 05,3672 30335 DNDUMP2 CA DUMPLOC
048073,000401: 05,3673 54003 TS EBANK # SET EBANK
048074,000402: 05,3674 74350 MASK LOW8 # ISOLATE RELATIVE ADDRESS.
048075,000403: 05,3675 54002 TS Q # (NOTE: MASK INSTRUCTION IS USED TO PICK
048076,000404: 05,3676 34771 CA NEG0 # UP ERASABLE REGISTERS SO THAT EDITING
048077,000405: 05,3677 54001 TS L # REGISTERS 20-23 WILL NOT BE ALTERED.)
048078,000406: 05,3700 50002 INDEX Q
048079,000407: 05,3701 E3,1400 EBANK= 1400 # PICK UP LOW ORDER REGISTER OF PAIR
048080,000408: 05,3701 71401 MASK 1401 # OF ERASABLE REGISTERS.
048081,000409: 05,3702 56001 XCH L
048082,000410: 05,3703 50002 INDEX Q # PICK UP HIGH ORDER REGISTER OF PAIR
048083,000411: 05,3704 71400 MASK 1400 # OF ERASABLE REGISTERS.
048084,000412: 05,3705 0337 EBANK= DNTMBUFF
048085,000413: 05,3705 13635 TCF DNTMEXIT # GO SEND THEM
048086,000414:
048087,000415: 05,3706 00006 SENDID EXTEND # **ENTRANCE USED BY ERASABLE DUMP PROG.**
048088,000416: 05,3707 22334 QXCH DNTMGOTO # SET DNTMGOTO SO NEXT TIME PROG WILL GO
048089,000417: 05,3710 35041 CAF ERASID # TO LOCATION FOLLOWING :TC SENDID:
048090,000418:
048091,000419: 05,3711 54061 +3 TS ITEMP1 # ** ENTRANCE USED BY REGULAR DOWNLINK
048092,000420: # PROGRAM **
048093,000421: 05,3712 03536 TC WOZERO # GO SET WORD ORDER CODE TO ZERO
048094,000422: 05,3713 32000 CAF LOWIDCOD # PLACE SPECIAL ID CODE INTO L
048095,000423: 05,3714 56001 XCH L # AND ID BACK INTO A
048096,000424: 05,3715 30061 CA ITEMP1
048097,000425: 05,3716 13635 TCF DNTMEXIT # SEND DOWNLIST ID CODE(S).
048098,000426:
Page 1103 (empty page) |
048100,000428:
End of include-file DOWN-TELEMETRY_PROGRAM.agc. Parent file is MAIN.agc