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.

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

Page 1093

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

Page 1094

047875,000073:                                                                                                  #           LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.
047876,000074: 

Page 1095

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

Page 1096

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

Page 1097

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

Page 1098

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

Page 1099

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

Page 1100

048127,000325: 05,3643     7674               MINB12             EQUALS   -1/8                                  
048128,000326: 

Page 1101

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

Page 1102

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

Page 1103 (empty page)

048232,000430: 

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