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, 1971
Note that the date is the date of the printout, not the date of the program revision.

047814,000002:                                                                                                  ## Copyright:   Public domain.
047815,000003:                                                                                                  ## Filename:    DOWN-TELEMETRY_PROGRAM.agc
047816,000004:                                                                                                  ## Purpose:     Part of the source code for Artemis (i.e., Colossus 3),
047817,000005:                                                                                                  ##              build 072.  This is for the Command Module's (CM) 
047818,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for 
047819,000007:                                                                                                  ##              Apollo 15-17.
047820,000008:                                                                                                  ## Assembler:   yaYUL
047821,000009:                                                                                                  ## Contact:     Sergio Navarro <sergionavarrog@gmail.com>
047822,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
047823,000011:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Artemis072/
047824,000012:                                                                                                  ## Mod history: 2009-08-27 SN   Adapted from corresponding Comanche 055 file.
047825,000013:                                                                                                  ##              2009-09-04 JL   Fixed typos. Fixed page comments.
047826,000014:                                                                                                  ##              2009-09-06 JL   Fixed typos.
047827,000015:                                                                                                  ##              2010-02-20 RSB  Un-##'d this header.
047828,000016:                                                                                                  ##              2017-01-21 RSB  Proofed comment text by diff'ing vs Comanche 55
047829,000017:                                                                                                  ##                              and corrected errors found.
047830,000018:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
047831,000019:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
047832,000020: 

Page 1093

047834,000022:                                                                                                  #  PROGRAM NAME- DOWN TELEMETRY PROGRAM
047835,000023:                                                                                                  #  MOD NO.- 0      TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
047836,000024:                                                                                                  #                  PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
047837,000025:                                                                                                  #                  THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS. REFER TO DOWNLINK
047838,000026:                                                                                                  #                  LISTS LOG SECTION FOR MORE DETAILS. HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
047839,000027:                                                                                                  #                  OF DOWN TELEMETRY DATA.
047840,000028:                                                                                                  #  MOD BY-  KILROY, SMITH, DEWITT
047841,000029:                                                                                                  #  MOD BY - DENSMORE - JUNE 1969 - ELIMINATE ERASABLE DUMP COUNT
047842,000030:                                                                                                  #  DATE-    02 OCT 67
047843,000031:                                                                                                  #  AUTHORS- KILROY, SMITH, DEWITT, DEWOLF, FAGIN
047844,000032:                                                                                                  #  LOG SECTION- DOWN-TELEMETRY PROGRAM
047845,000033:                                                                                                  #  FUNCTIONAL DESCRIPTION- THIS ROUTINE IS INITIATED BY TELEMETRY END
047846,000034:                                                                                                  #           PULSE FROM THE DOWNLINK TELEMETRY CONVERTER. THIS PULSE OCCURS
047847,000035:                                                                                                  #           AT 50 TIMES PER SEC (EVERY 20 MS) THEREFORE DODOWNTM IS
047848,000036:                                                                                                  #           EXECUTED AT THESE RATES. THIS ROUTINE SELECTS THE APPROPRIATE
047849,000037:                                                                                                  #           AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
047850,000038:                                                                                                  #           CHANNELS 34 AND 35. THE INFORMATION IS THEN GATED OUT FROM THE
047851,000039:                                                                                                  #           LGC IN SERIAL FASHION.
047852,000040:                                                                                                  #           THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST. SINCE DOWNRUPTS
047853,000041:                                                                                                  #           OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
047854,000042:                                                                                                  #           CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
047855,000043:                                                                                                  #           OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
047856,000044:                                                                                                  #  CALLING SEQUENCE- NONE
047857,000045:                                                                                                  #           PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
047858,000046:                                                                                                  #           RESULT OF A DOWNRUPT. CONTROL IS RETURNED VIA TCF RESUME WHICH
047859,000047:                                                                                                  #           IN EFFECT IS A RESUME.
047860,000048:                                                                                                  #  SUBROUTINES CALLED- NONE
047861,000049:                                                                                                  #  NORMAL EXIT MODE- TCF RESUME
047862,000050:                                                                                                  #  ALARM OR ABORT EXIT MODE- NONE
047863,000051:                                                                                                  #  RESTART PROTECTION:
047864,000052:                                                                                                  #           ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER (ACTUALLY
047865,000053:                                                                                                  #           DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST (I.E. CURRENT CONTENTS OF DNLSTADR). THIS HAS THE
047866,000054:                                                                                                  #           EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
047867,000055:                                                                                                  #           THE RESTART (OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
047868,000056:                                                                                                  #           DOWNLIST.
047869,000057:                                                                                                  #           ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
047870,000058:                                                                                                  #  DOWNLINK LIST SELECTION:
047871,000059:                                                                                                  #           THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
047872,000060:                                                                                                  #           1. FRESH START
047873,000061:                                                                                                  #           2. V37EXXE  WHERE XX = THE MAJOR MODE BEING SELECTED.
047874,000062:                                                                                                  #           3. UPDATE PROGRAM (P27)
047875,000063:                                                                                                  #           4.   NON-V37 SELECTABLE TYPE PROGRAMS (E.G. AGS INITIALIZATION (SUNDANCE, LUMINARY) AND P61-P62
047876,000064:                                                                                                  #                TRANSITION (COLOSSUS) ETC.).
047877,000065:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
047878,000066:                                                                                                  #           READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
047879,000067:                                                                                                  #  OUTPUT-  EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS (I.E. 200 LGC
047880,000068:                                                                                                  #           COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
047881,000069:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED- NONE
047882,000070:                                                                                                  #           'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
047883,000071:                                                                                                  #  DEBRIS (ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM)-

Page 1094

047885,000073:                                                                                                  #           LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.
047886,000074: 

Page 1095

047888,000076:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
047889,000077:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
047890,000078: 
047891,000079:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
047892,000080:                                                                                                  #  1. DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
047893,000081:                                                                                                  #     DOWN-TELEMETRY PROGRAM. THIS IS DONE FOR EASE OF CODING, FASTER
047894,000082:                                                                                                  #     EXECUTION.
047895,000083:                                                                                                  #  2. EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
047896,000084:                                                                                                  #     SUBLISTS.
047897,000085:                                                                                                  #  3. A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
047898,000086:                                                                                                  #     DOWNLINK LISTS. ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
047899,000087:                                                                                                  #     CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
047900,000088:                                                                                                  #  4. SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
047901,000089:                                                                                                  #     SAVED IN A BUFFER DURING ONE DOWNRUPT.
047902,000090:                                                                                                  #  5. THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
047903,000091:                                                                                                  #     OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
047904,000092:                                                                                                  #     IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
047905,000093:                                                                                                  #  6. ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
047906,000094:                                                                                                  #     CREATED FOR THE DOWNLIST PROGRAM.
047907,000095:                                                                                                  #     A. 1DNADR                  1-WORD DOWNLIST ADDRESS.
047908,000096:                                                                                                  #         SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
047909,000097:                                                                                                  #         HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
047910,000098:                                                                                                  #     B. 2DNADR - 6DNADR         N-WORD DOWNLIST ADDRESS, N = 2 - 6.
047911,000099:                                                                                                  #         SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
047912,000100:                                                                                                  #         FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
047913,000101:                                                                                                  #         PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
047914,000102:                                                                                                  #     C. DNCHAN                  DOWNLIST CHANNEL ADDRESS.
047915,000103:                                                                                                  #         SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
047916,000104:                                                                                                  #         A PAIR OF CHANNELS FOR DOWN TELEMETRY.
047917,000105:                                                                                                  #     D. DNPTR                   DOWN TELEMETRY SUBLIST POINTER.
047918,000106:                                                                                                  #         SAME AS CAF BUT TAGGED AS A CONSTANT. USED IN CONTROL LIST TO POINT TO A SUBLIST.
047919,000107:                                                                                                  #         CAUTION--- A DNPTR CANNOT BE USED IN A SUBLIST.
047920,000108:                                                                                                  #  7. THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
047921,000109:                                                                                                  #     A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST (ONLY).
047922,000110:                                                                                                  #  8. IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
047923,000111: 
047924,000112:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
047925,000113:                                                                                                  #    (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO IT IS CLEAR THAT THESE THINGS CANNOT BE
047926,000114:                                                                                                  #    DONE)
047927,000115: 
047928,000116:                                                                                                  #  1. SNAPSHOT DOWNLIST:
047929,000117:                                                                                                  #    (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
047930,000118:                                                                                                  #    (B) CAN CONTAIN ONLY 1DNADR'S
047931,000119: 
047932,000120:                                                                                                  #  2. ALL DOWNLINKED DATA (EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
047933,000121:                                                                                                  #     EQUIVALENT OF THE FOLLOWING ECADRS (I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
047934,000122: 
047935,000123:                                                                                                  #     (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR TO 6DNADR WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
047936,000124: 
047937,000125:                                                                                                  #  3. CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777

Page 1096

047939,000127:                                                                                                  #  4. THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
047940,000128:                                                                                                  #     CONTROL SECTION OF THE DOWNLIST.
047941,000129: 
047942,000130:                                                                                                  #  5. 'DNCHAN 0' CANNOT BE USED.
047943,000131: 
047944,000132:                                                                                                  #  6. 'DNPTR 0' CANNOT BE USED.
047945,000133: 
047946,000134:                                                                                                  #  7. DNPTR CANNOT APPEAR IN A SUBLIST.
047947,000135: 
047948,000136:                                                                                                  #  EBANK SETTINGS
047949,000137:                                                                                                  #        IN THE PROCESS OF SETTING THE EBANK (WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
047950,000138:                                                                                                  #        'GARBAGE' INTO BITS15-12 OF EBANK. HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
047951,000139:                                                                                                  #        SIGNIFICANT SOMEDAY IN THE FUTURE. IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE (BY MASKING ETC.)
047952,000140:                                                                                                  #        THAT BITS 15-12 OF EBANK ARE ZERO.
047953,000141:                                                                                                  #  INITIALIZATION REQUIRED- TO INTERRUPT CURRENT LIST AND START A NEW ONE..
047954,000142:                                                                                                  #        1.      ADRES OF DOWNLINK LIST INTO DNLSTADR
047955,000143:                                                                                                  #        2.      NEGONE INTO SUBLIST
047956,000144:                                                                                                  #        3.      NEGONE INTO DNECADR
047957,000145: 
047958,000146:    4000                                           SETLOC   FFTAG12                               
047959,000147:    4000                                           BANK                                           
047960,000148: 
047961,000149:    4621     0337                                  EBANK=   DNTMBUFF                              
047962,000150: 
047963,000151:    4621                                           COUNT*   $$/DPROG                              
047964,000152:    4621           54016        DODOWNTM           TS       BANKRUPT                              
047965,000153:    4622           00006                           EXTEND                                         
047966,000154:    4623           22012                           QXCH     QRUPT                                 #  SAVE Q
047967,000155:    4624           34762                           CA       BIT7                                  #  SET WORD ORDER CODE TO 1. EXCEPTION- AT
047968,000156:    4625           00006                           EXTEND                                         
047969,000157:    4626           02013                           RAND     CHAN13                                
047970,000158:    4627           10000                           CCS      A                                     
047971,000159:    4630           00334                           TC       DNTMGOTO                              
047972,000160:    4631           04542                           TC       C13STALL                              
047973,000161:    4632           34762                           CA       BIT7                                  
047974,000162:    4633           00006                           EXTEND                                         #  THE BEGINNING OF EACH LIST THE WORD
047975,000163:    4634           05013                           WOR      CHAN13                                #  CODE WILL BE SET BACK TO 0.
047976,000164:    4635           00334                           TC       DNTMGOTO                              #  GOTO APPROPRIATE PHASE OF PROGRAM
047977,000165: 
047978,000166: 05,2000                                           SETLOC   DOWNTELM                              
047979,000167: 05,2000                                           BANK                                           
047980,000168: 
047981,000169: 05,3446                                           COUNT*   $$/DPROG                              
047982,000170: 05,3446           37702        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
047983,000171: 05,3447           54336                           TS       SUBLIST                               #  WORDS TO MINUS ONE
047984,000172: 05,3450           54335                           TS       DNECADR                               
047985,000173: 05,3451           33574                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS

Page 1097

047987,000175: 05,3452           54334                           TS       DNTMGOTO                              #  GO TO DNPHASE2
047988,000176: 05,3453           13467                           TCF      NEWLIST                               
047989,000177: 05,3454           10335        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
047990,000178: 05,3455           03607        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
047991,000179: 05,3456           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
047992,000180: 05,3457           13460                           TCF      +1                                    #  (ECADR OF 3776 + 74001 = 77777)
047993,000181: 
047994,000182: 05,3460           10336                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL
047995,000183: 05,3461           13622                           TCF      NEXTINSL                              #  YES
047996,000184: 05,3462           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
047997,000185: 
047998,000186: 05,3463           30333        CHKLIST            CA       CTLIST                                
047999,000187: 05,3464           00006                           EXTEND                                         
048000,000188: 05,3465           63467                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
048001,000189: 05,3466           13474                           TCF      NEXTINCL                              
048002,000190: 05,3467           50332        NEWLIST            INDEX    DNLSTCOD                              
048003,000191: 05,3470           32362                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
048004,000192: 05,3471           54333                           TS       CTLIST                                #    STARTING ADDRESS OF NEW LIST
048005,000193: 05,3472           40332                           CS       DNLSTCOD                              
048006,000194: 05,3473           13711                           TCF      SENDID     +3                         
048007,000195: 05,3474           50333        NEXTINCL           INDEX    CTLIST                                
048008,000196: 05,3475           30000                           CA       0                                     
048009,000197: 05,3476           10000                           CCS      A                                     
048010,000198: 05,3477           24333                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
048011,000199: 05,3500           13504                           TCF      +4                                    #  ON NEXT ENTRY TO PROG. (A SHOULD NOT =0)
048012,000200: 05,3501           56333                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
048013,000201: 05,3502           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
048014,000202: 05,3503           56333                           XCH      CTLIST                                #                                  (ST IN )
048015,000203: 05,3504           24000                 +4        INCR     A                                     #                                  (CTLIST)
048016,000204: 05,3505           54335                           TS       DNECADR                               #  SAVE DNADR
048017,000205: 05,3506           63456                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
048018,000206: 05,3507           10000                           CCS      A                                     
048019,000207: 05,3510           13514                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
048020,000208: 05,3511           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14  (CAN'T GET HERE)
048021,000209: 05,3512           13514                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
048022,000210: 05,3513           03536        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
048023,000211: 05,3514           30335                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
048024,000212: 05,3515           63511                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
048025,000213: 05,3516           00006                           EXTEND                                         
048026,000214: 05,3517           63607                           BZMF     FETCH2WD                              #  YES. (A MUST NEVER BE ZERO)
048027,000215: 05,3520           67674                           AD       MINB12                                #  NO- IS IT A POINTER (DNPTR) OR A
048028,000216: 05,3521           00006                           EXTEND                                         #      CHANNEL(DNCHAN)
048029,000217: 05,3522           63545                           BZMF     DODNPTR                               #  IT'S A POINTER. (A MUST NEVER BE ZERO)
048030,000218: 
048031,000219: 05,3523           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND) IT S A CHANNEL
048032,000220: 05,3524           50335                           INDEX    DNECADR                               
048033,000221: 05,3525           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
048034,000222: 05,3526           54001                           TS       L                                     
048035,000223: 05,3527           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
048036,000224: 05,3530           50335                           INDEX    DNECADR                               

Page 1098

048038,000226: 05,3531           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
048039,000227: 05,3532           54335                           TS       DNECADR                               #  SET DNECADR
048040,000228: 05,3533           37702                           CA       NEGONE                                #      TO MINUS
048041,000229: 05,3534           56335                           XCH      DNECADR                               #          WHILE PRESERVING A.
048042,000230: 05,3535           13635                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
048043,000231: 
048044,000232: 05,3536           00006        WOZERO             EXTEND                                         
048045,000233: 05,3537           22070                           QXCH     RUPTREG1                              
048046,000234: 05,3540           04542                           TC       C13STALL                              
048047,000235: 05,3541           44762                           CS       BIT7                                  
048048,000236: 05,3542           00006                           EXTEND                                         
048049,000237: 05,3543           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO
048050,000238: 05,3544           00070                           TC       RUPTREG1                              #  RETURN TO CALLER
048051,000239: 
048052,000240: 05,3545           50335        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
048053,000241: 05,3546           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
048054,000242: 05,3547           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
048055,000243: 05,3550           30335                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
048056,000244: 05,3551           13621                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
048057,000245: 
048058,000246: 05,3552           56335                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
048059,000247: 05,3553           54336                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
048060,000248: 05,3554           34772                           CAF      ZERO                                  #       A     INTO   A
048061,000249: 05,3555           56335                           XCH      TMINDEX                               #  (NOTE.. TMINDEX = DNECADR)
048062,000250: 
048063,000251:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND) IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
048064,000252:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
048065,000253:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
048066,000254:                                                                                                  #  TO MINIMIZE TIME. THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
048067,000255:                                                                                                  #  THESE RULES ARE......
048068,000256:                                                                                                  #        1.      ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
048069,000257:                                                                                                  #        2.      THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY BANK.
048070,000258: 
048071,000259: 05,3556           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
048072,000260: 05,3557           74350                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
048073,000261: 05,3560           00006                           EXTEND                                         
048074,000262: 05,3561           50000                           INDEX    A                                     
048075,000263: 05,3562  E3,1401                                  EBANK=   1401                                  
048076,000264: 05,3562           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
048077,000265: 05,3563     0337                                  EBANK=   DNTMBUFF                              
048078,000266: 05,3563           50335                           INDEX    TMINDEX                               
048079,000267: 05,3564           52340                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
048080,000268: 05,3565           24335                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
048081,000269: 05,3566           24335                           INCR     TMINDEX                               
048082,000270: 05,3567           24336        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
048083,000271: 05,3570           50336                           INDEX    SUBLIST                               
048084,000272: 05,3571           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
048085,000273: 05,3572           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.

Page 1099

048087,000275: 05,3573           13556                           TCF      SNAPLOOP                              #  NOT LAST TWO.
048088,000276: 05,3574           03454        LDNPHAS2           GENADR   DNPHASE2                              
048089,000277: 05,3575           54336                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
048090,000278: 05,3576           37702                           CA       NEGONE                                #  SET DNECADR AND
048091,000279: 05,3577           54335                           TS       DNECADR                               #      SUBLIST POINTERS
048092,000280: 05,3600           56336                           XCH      SUBLIST                               #          TO NEGATIVE VALUES.
048093,000281: 05,3601           54003                           TS       EBANK                                 
048094,000282: 05,3602           74350                           MASK     LOW8                                  
048095,000283: 05,3603           00006                           EXTEND                                         
048096,000284: 05,3604           50000                           INDEX    A                                     
048097,000285: 05,3605  E3,1401                                  EBANK=   1401                                  
048098,000286: 05,3605           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.
048099,000287: 05,3606     0337                                  EBANK=   DNTMBUFF                              
048100,000288: 05,3606           13635        SNAPEND            TCF      DNTMEXIT                              #     NOW GO SEND THEM.
048101,000289: 
048102,000290: 05,3607           30335        FETCH2WD           CA       DNECADR                               
048103,000291: 05,3610           54003                           TS       EBANK                                 #  SET EBANK
048104,000292: 05,3611           74350                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
048105,000293: 05,3612           54001                           TS       L                                     
048106,000294: 05,3613           33462                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
048107,000295: 05,3614           26335                           ADS      DNECADR                               
048108,000296: 05,3615           00006                           EXTEND                                         
048109,000297: 05,3616           50001                           INDEX    L                                     
048110,000298: 05,3617  E3,1400                                  EBANK=   1400                                  
048111,000299: 05,3617           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
048112,000300: 05,3620     0337                                  EBANK=   DNTMBUFF                              
048113,000301: 05,3620           13635                           TCF      DNTMEXIT                              #     NOW GO SEND THEM.
048114,000302: 
048115,000303: 05,3621           54336        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
048116,000304: 05,3622           50336        NEXTINSL           INDEX    SUBLIST                               
048117,000305: 05,3623           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
048118,000306: 05,3624           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
048119,000307: 05,3625           24336                           INCR     SUBLIST                               #  NO-
048120,000308: 05,3626           13632                           TCF      +4                                    
048121,000309: 05,3627           54336                           TS       SUBLIST                               #  SAVE A.
048122,000310: 05,3630           37702                           CA       NEGONE                                #  SET SUBLIST TO MINUS
048123,000311: 05,3631           56336                           XCH      SUBLIST                               #  RETRIEVE A.
048124,000312: 05,3632           24000                 +4        INCR     A                                     
048125,000313: 05,3633           54335                           TS       DNECADR                               #  SAVE DNADR
048126,000314: 05,3634           13515                           TCF      SETWO      +2                         #  GO USE COMMON CODING (PROBLEMS WOULD
048127,000315:                                                                                                  #  OCCUR IF THE PROGRAM ENCOUNTERED A
048128,000316:                                                                                                  #  DNPTR NOW)
048129,000317: 
048130,000318: 05,3635           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
048131,000319: 05,3636           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
048132,000320: 05,3637           30001                           CA       L                                     #  RESPECTIVELY
048133,000321: 05,3640           00006        TMEXITL            EXTEND                                         
048134,000322: 05,3641           01035                           WRITE    DNTM2                                 
048135,000323: 05,3642           15323        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.

Page 1100

048137,000325: 05,3643     7674               MINB12             EQUALS   -1/8                                  
048138,000326: 

Page 1101

048140,000328:                                                                                                  #  SUBROUTINE NAME- DNDUMP
048141,000329:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL 8 BANKS OF ERASABLE STORAGE TWICE.  BANKS ARE SENT ONE AT A TIME
048142,000330:                                                                                                  #        EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
048143,000331:                                                                                                  #        EBANK. EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
048144,000332:                                                                                                  #  CALLING SEQUENCE- THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
048145,000333:                                                                                                  #        AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
048146,000334:                                                                                                  #        WILL BEGIN.
048147,000335:                                                                                                  #        ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
048148,000336:                                                                                                  #        BY THE FOLLOWING:
048149,000337:                                                                                                  #        1. A FRESH START
048150,000338:                                                                                                  #        2. COMPLETION OF BOTH COMPLETE DUMPS
048151,000339:                                                                                                  #        3. AND INVOLUNTARILY BY A RESTART.
048152,000340:                                                                                                  #  NORMAL EXIT MODE- TCF DNPHASE1
048153,000341:                                                                                                  #  ALARM OR ABORT MODE- NONE
048154,000342:                                                                                                  #  *SUBROUTINES CALLED- NONE.
048155,000343:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED-
048156,000344:                                                                                                  #        NONE
048157,000345:                                                                                                  #  DEBRIS- DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
048158,000346:                                                                                                  #  TIMING-    TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)* (WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
048159,000347:                                                                                                  #             TIME (IN SECS) =  (   4    )*(    8    )* (    256     +     4   )  /     100
048160,000348:                                                                                                  #        THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
048161,000349: 
048162,000350:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM-
048163,000351:                                                                                                  #        (REMINDER- THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
048164,000352:                                                                                                  #        DOWNLIST                                W
048165,000353:                                                                                                  #          WORD  TAKEN FROM CONTENTS OF  EXAMPLE O       COMMENTS
048166,000354: 
048167,000355:                                                                                                  #            1   ERASID                   0177X  0       DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
048168,000356:                                                                                                  #            2   LOWIDCOD                 77340  1       DOWNLINK SYNCH BITS. (SAME ONE USED IN ALL OTHER DOWNLISTS)
048169,000357:                                                                                                  #            3   DUMPLOC                  13400  1       (SEE NOTES ON DUMPLOC) 1 = 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
048170,000358:                                                                                                  #            4   TIME1                    14120  1       TIME IN CENTISECONDS
048171,000359:                                                                                                  #            5   FIRST WORD OF EBANK X    03400  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
048172,000360:                                                                                                  #            6   2ND   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
048173,000361:                                                                                                  #            7   3RD   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
048174,000362:                                                                                                  #            .                                   1
048175,000363:                                                                                                  #            .                                   1
048176,000364:                                                                                                  #            .                                   1
048177,000365:                                                                                                  #           260D 256TH WORD OF EBANK X    03777  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
048178,000366: 
048179,000367:                                                                                                  #  NOTE- DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
048180,000368:                                                                                                  #        THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
048181,000369:                                                                                                  #                                               X = NOT USED
048182,000370:                                                                                                  #                X ABC EEE RRRRRRRR           ABC = ERASABLE DUMP COUNTER (I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
048183,000371:                                                                                                  #                                                   COMPLETE ERASABLE DUMP NUMBER 1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
048184,000372:                                                                                                  #                                             EEE = EBANK BITS
048185,000373:                                                                                                  #                                        RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
048186,000374: 
048187,000375: 05,3643           34772        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
048188,000376: 05,3644           54335                           TS       DUMPLOC                               #  ERASABLE DUMP
048189,000377: 05,3645           03706                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS

Page 1102

048191,000379: 05,3646           33655                           CA       LDNDUMP1                              #  SET DNTMGOTO
048192,000380: 05,3647           54334                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
048193,000381: 05,3650           30025                           CA       TIME1                                 #  PLACE TIME1
048194,000382: 05,3651           56001                           XCH      L                                     #  INTO L
048195,000383: 05,3652           30335                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
048196,000384: 05,3653           13635                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
048197,000385: 
048198,000386: 05,3654           03656        LDNDUMP            ADRES    DNDUMP                                
048199,000387: 05,3655           03670        LDNDUMP1           ADRES    DNDUMP1                               
048200,000388: 
048201,000389: 05,3656           34767        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
048202,000390: 05,3657           26335                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
048203,000391: 05,3660           74350                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
048204,000392: 05,3661           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
048205,000393: 05,3662           13672                           TCF      DNDUMP2                               #  NO- THEN CONTINUE DUMPING
048206,000394: 05,3663           30335                           CA       DUMPLOC                               #  YES- IS THIS THE END OF THE
048207,000395: 05,3664           74754                           MASK     BIT13                                 #  SECOND COMPLETE ERASABLE DUMP?
048208,000396: 05,3665           00006                           EXTEND                                         
048209,000397: 05,3666           13645                           BZF      DNDUMPI    +2                         #  NO - GO BACK AND INITIALIZE NEXT BANK
048210,000398: 05,3667           13446                           TCF      DNPHASE1                              #  YES - SEND DOWNLIST AGAIN
048211,000399: 05,3670           33654        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
048212,000400: 05,3671           54334                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
048213,000401: 
048214,000402: 05,3672           30335        DNDUMP2            CA       DUMPLOC                               
048215,000403: 05,3673           54003                           TS       EBANK                                 #  SET EBANK
048216,000404: 05,3674           74350                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
048217,000405: 05,3675           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
048218,000406: 05,3676           34771                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
048219,000407: 05,3677           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
048220,000408: 05,3700           50002                           INDEX    Q                                     
048221,000409: 05,3701  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
048222,000410: 05,3701           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
048223,000411: 05,3702           56001                           XCH      L                                     
048224,000412: 05,3703           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
048225,000413: 05,3704           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
048226,000414: 05,3705     0337                                  EBANK=   DNTMBUFF                              
048227,000415: 05,3705           13635                           TCF      DNTMEXIT                              #  GO SEND THEM
048228,000416: 
048229,000417: 05,3706           00006        SENDID             EXTEND                                         #  **ENTRANCE USED BY ERASABLE DUMP PROG.**
048230,000418: 05,3707           22334                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
048231,000419: 05,3710           35041                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
048232,000420: 
048233,000421: 05,3711           54061                 +3        TS       ITEMP1                                #  ** ENTRANCE USED BY REGULAR DOWNLINK
048234,000422:                                                                                                  #                              PROGRAM  **
048235,000423: 05,3712           03536                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
048236,000424: 05,3713           32000                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
048237,000425: 05,3714           56001                           XCH      L                                     #  AND ID BACK INTO A
048238,000426: 05,3715           30061                           CA       ITEMP1                                
048239,000427: 05,3716           13635                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).
048240,000428: 

Page 1103 (empty page)

048242,000430: 

End of include-file DOWN-TELEMETRY_PROGRAM.agc.  Parent file is MAIN.agc