Source Code

These source-code files were derived from scans of the Colossus 237 (Apollo 8 Command Module) program listing from the private collection of original AGC developer Fred Martin. Scanning was by Ron Burkey. Pre-existing Colossus 249 (Apollo 9 CM) source files were used as a template, and changes between Colossus 249 and Colossus 237 were manually transcribed by a team of volunteers. Note that the page images presented online are of reduced quality, and that additional images are 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 237 OF AGC PROGRAM COLOSSUS 
	BY NASA 2021111-031  1:17 AUG. 24, 1968
Note that the date is the date of the printout, not the date of the program revision.

045945,000002:                                                                                                  ## Copyright:   Public domain.
045946,000003:                                                                                                  ## Filename:    DOWN-TELEMETRY_PROGRAM.agc
045947,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus build 237.  
045948,000005:                                                                                                  ##              This is for the Command Module's (CM) Apollo Guidance
045949,000006:                                                                                                  ##              Computer (AGC), for Apollo 8.
045950,000007:                                                                                                  ## Assembler:   yaYUL
045951,000008:                                                                                                  ## Contact:     Onno Hommes <ohommes@alumni.cmu.edu>
045952,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
045953,000010:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Colossus237/
045954,000011:                                                                                                  ## Mod history: 2010-05-22 OH   Adapted from corresponding Colossus 249 file.
045955,000012:                                                                                                  ##              2010-12-04 JL   Remove Colossus 249 header comments. Change to double-has page numbers.
045956,000013:                                                                                                  ##              2011-02-12 JL   Minor fixes.
045957,000014:                                                                                                  ##              2017-01-01 RSB  Proofed comment text using octopus/ProoferComments,
045958,000015:                                                                                                  ##                              and fixed errors found.
045959,000016:                                                                                                  ##              2017-01-08 RSB  Fixed comment errors detected in cross-diff vs
045960,000017:                                                                                                  ##                              Colossus 249.
045961,000018:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
045962,000019:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
045963,000020: 

Page 1060

045965,000022:                                                                                                  #  PROGRAM NAME- DOWN TELEMETRY PROGRAM
045966,000023:                                                                                                  #  MOD NO.- 0      TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
045967,000024:                                                                                                  #                  PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
045968,000025:                                                                                                  #                  THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS.REFER TO DOWNLINK
045969,000026:                                                                                                  #                  LISTS LOG SECTION FOR MORE DETAILS. HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
045970,000027:                                                                                                  #                  OF DOWN TELEMETRY DATA.
045971,000028:                                                                                                  #  MOD BY-  KILROY, SMITH, DEWITT
045972,000029:                                                                                                  #  DATE-    02OCT67
045973,000030:                                                                                                  #  AUTHORS- KILROY, SMITH, DEWITT, DEWOLF, FAGIN
045974,000031:                                                                                                  #  LOG SECTION- DOWN-TELEMETRY PROGRAM
045975,000032:                                                                                                  #  FUNCTIONAL DESCRIPTION- THIS ROUTINE IS INITIATED BY TELEMETRY END
045976,000033:                                                                                                  #           PULSE FROM THE DOWNLINK TELEMETRY CONVERTER. THIS PULSE OCCURS
045977,000034:                                                                                                  #           AT 50 TIMES PER SEC(EVERY 20 MS) THEREFORE DODOWNTM IS
045978,000035:                                                                                                  #           EXECUTED AT THESE RATES. THIS ROUTINE SELECTS THE APPROPRIATE
045979,000036:                                                                                                  #           AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
045980,000037:                                                                                                  #           CHANNELS 34 AND 35. THE INFORMATION IS THEN GATED OUT FROM THE
045981,000038:                                                                                                  #           LGC IN SERIAL FASHION.
045982,000039:                                                                                                  #           THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST. SINCE DOWNRUPTS
045983,000040:                                                                                                  #           OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
045984,000041:                                                                                                  #           CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
045985,000042:                                                                                                  #           OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
045986,000043:                                                                                                  #  CALLING SEQUENCE- NONE
045987,000044:                                                                                                  #           PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
045988,000045:                                                                                                  #           RESULT OF A DOWNRUPT. CONTROL IS RETURNED VIA TCF RESUME WHICH
045989,000046:                                                                                                  #           IN EFFECT IS A RESUME.
045990,000047:                                                                                                  #  SUBROUTINES CALLED- NONE
045991,000048:                                                                                                  #  NORMAL EXIT MODE- TCF RESUME
045992,000049:                                                                                                  #  ALARM OR ABORT EXIT MODE- NONE
045993,000050:                                                                                                  #  RESTART PROTECTION:
045994,000051:                                                                                                  #           ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER(ACTUALLY
045995,000052:                                                                                                  #           DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST(I.E. CURRENT CONTENTS OF DNLSTADR). THIS HAS THE
045996,000053:                                                                                                  #           EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
045997,000054:                                                                                                  #           THE RESTART(OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
045998,000055:                                                                                                  #           DOWNLIST.
045999,000056:                                                                                                  #           ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
046000,000057:                                                                                                  #  DOWNLINK LIST SELECTION:
046001,000058:                                                                                                  #           THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
046002,000059:                                                                                                  #           1. FRESH START
046003,000060:                                                                                                  #           2. V37EXXE  WHERE XX = THE MAJOR MODE BEING SELECTED. 
046004,000061:                                                                                                  #           3. UPDATE PROGRAM(P27)
046005,000062:                                                                                                  #           4.     NON-V37 SELECTABLE TYPE PROGRAMS(E.G. AGS INITIALIZATION(SUNDANCE,LUMINARY) AND P61-P62
046006,000063:                                                                                                  #                  TRANSITION(COLOSSUS) ETC.).
046007,000064:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
046008,000065:                                                                                                  #           READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
046009,000066:                                                                                                  #  OUTPUT-  EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS(I.E. 200 LGC
046010,000067:                                                                                                  #           COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
046011,000068:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED- NONE
046012,000069:                                                                                                  #           'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
046013,000070:                                                                                                  #  DEBRIS(ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM)-
046014,000071:                                                                                                  #           LDATALST,DNTMBUFF TO DNTMBUFF +21D,TMINDEX,DNQ.

Page 1061 Empty page.

046017,000074: 

Page 1062

046019,000076:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
046020,000077:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
046021,000078: 
046022,000079:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
046023,000080:                                                                                                  #  1. DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
046024,000081:                                                                                                  #     DOWN-TELEMETRY PROGRAM. THIS IS DONE FOR EASE OF CODING, FASTER
046025,000082:                                                                                                  #     EXECUTION.
046026,000083:                                                                                                  #  2. EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
046027,000084:                                                                                                  #     SUBLISTS.
046028,000085:                                                                                                  #  3. A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
046029,000086:                                                                                                  #     DOWNLINK LISTS.  ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
046030,000087:                                                                                                  #     CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
046031,000088:                                                                                                  #  4. SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
046032,000089:                                                                                                  #     SAVED IN A BUFFER DURING ONE DOWNRUPT.
046033,000090:                                                                                                  #  5. THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
046034,000091:                                                                                                  #     OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
046035,000092:                                                                                                  #     IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
046036,000093:                                                                                                  #  6. ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
046037,000094:                                                                                                  #     CREATED FOR THE DOWNLIST PROGRAM.
046038,000095:                                                                                                  #     A. 1DNADR              1-WORD DOWNLIST ADDRESS.
046039,000096:                                                                                                  #         SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
046040,000097:                                                                                                  #         HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
046041,000098:                                                                                                  #     B. 2DNADR - 6DNADR     N-WORD DOWNLIST ADDRESS, N = 2 - 6.
046042,000099:                                                                                                  #         SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
046043,000100:                                                                                                  #         FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
046044,000101:                                                                                                  #         PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
046045,000102:                                                                                                  #     C. DNCHAN              DOWNLIST CHANNEL ADDRESS.
046046,000103:                                                                                                  #         SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
046047,000104:                                                                                                  #         A PAIR OF CHANNELS FOR DOWN TELEMETRY.
046048,000105:                                                                                                  #     D. DNPTR               DOWN TELEMETRY SUBLIST POINTER.
046049,000106:                                                                                                  #      SAME AS CAF BUT TAGGED AS A CONSTANT. USED IN CONTROL LIST TO POINT TO A SUBLIST.
046050,000107:                                                                                                  #      CAUTION--- A DNPTR CANNOT BE USED IN A SUBLIST.
046051,000108:                                                                                                  #  7. THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
046052,000109:                                                                                                  #     A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST(ONLY).
046053,000110:                                                                                                  #  8. IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
046054,000111: 
046055,000112:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
046056,000113:                                                                                                  #    (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO  IT IS CLEAR THAT THESE THINGS CANNOT BE
046057,000114:                                                                                                  #    DONE)
046058,000115: 
046059,000116:                                                                                                  #  1. SNAPSHOT DOWNLIST:
046060,000117:                                                                                                  #    (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
046061,000118:                                                                                                  #    (B) CAN CONTAIN ONLY 1DNADR'S
046062,000119:                                                                                                  #  2. ALL DOWNLINKED DATA(EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
046063,000120:                                                                                                  #     EQUIVALENT OF THE FOLLOWING ECADRS(I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
046064,000121: 
046065,000122:                                                                                                  #     (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR  TO 6DNADR  WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
046066,000123: 
046067,000124:                                                                                                  #  3. CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777

Page 1063

046069,000126:                                                                                                  #  4. THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
046070,000127:                                                                                                  #     CONTROL SECTION OF THE DOWNLIST.
046071,000128: 
046072,000129:                                                                                                  #  5. 'DNCHAN 0' CANNOT BE USED.
046073,000130: 
046074,000131:                                                                                                  #  6. 'DNPTR 0' CANNOT BE USED.
046075,000132: 
046076,000133:                                                                                                  #  7. DNPTR CANNOT APPEAR IN A SUBLIST.
046077,000134: 
046078,000135: 
046079,000136: 
046080,000137: 
046081,000138:                                                                                                  #  EBANK SETTINGS
046082,000139:                                                                                                  #           IN THE PROCESS OF SETTING THE EBANK(WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
046083,000140:                                                                                                  #           'GARBAGE' INTO BITS15-12 OF EBANK. HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
046084,000141:                                                                                                  #           SIGNIFICANT SOMEDAY IN THE FUTURE. IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE(BY MASKING ETC.)
046085,000142:                                                                                                  #           THAT BITS 15-12 OF EBANK ARE ZERO.
046086,000143:                                                                                                  #  INITIALIZATION REQUIRED- TO INTERRUPT CURRENT LIST AND START A NEW ONE..
046087,000144:                                                                                                  #      1.   ADRES OF DOWNLINK LIST INTO DNLSTADR
046088,000145:                                                                                                  #      2.   NEGONE INTO SUBLIST
046089,000146:                                                                                                  #      3.   NEGONE INTO DNECADR
046090,000147: 
046091,000148: 22,3505                                           BANK     22                                    
046092,000149: 05,2000                                           SETLOC   DOWNTELM                              
046093,000150: 05,2000                                           BANK                                           
046094,000151: 
046095,000152: 05,3331     0340                                  EBANK=   DNTMBUFF                              
046096,000153: 
046097,000154: 05,3331                                           COUNT    05/DPROG                              
046098,000155: 
046099,000156: 05,3331           54016        DODOWNTM           TS       BANKRUPT                              
046100,000157: 05,3332           00006                           EXTEND                                         
046101,000158: 05,3333           22012                           QXCH     QRUPT                                 #  SAVE Q
046102,000159: 05,3334           34704                           CA       BIT7                                  #  SET WORD ORDER CODE TO 1. EXCEPTION- AT
046103,000160: 05,3335           00006                           EXTEND                                         #  THE BEGINNING OF EACH LIST THE WORD
046104,000161: 05,3336           05013                           WOR      CHAN13                                #  CODE WILL BE SET BACK TO 0.
046105,000162: 05,3337           00335                           TC       DNTMGOTO                              #  GOTO APPROPRIATE PHASE OF PROGRAM
046106,000163: 
046107,000164: 05,3340           37716        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
046108,000165: 05,3341           54337                           TS       SUBLIST                               #  WORDS TO MINUS ONE
046109,000166: 05,3342           54336                           TS       DNECADR                               
046110,000167: 05,3343           33463                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS
046111,000168: 05,3344           54335                           TS       DNTMGOTO                              #  GO TO DNPHASE2
046112,000169: 05,3345           13361                           TCF      NEWLIST                               
046113,000170: 05,3346           10336        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
046114,000171: 05,3347           03476        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
046115,000172: 05,3350           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
046116,000173: 05,3351           13352                           TCF      +1                                    #  (ECADR OF  3776 + 74001 = 77777)
046117,000174: 
046118,000175: 05,3352           10337                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL

Page 1064

046120,000177: 05,3353           13511                           TCF      NEXTINSL                              #  YES
046121,000178: 05,3354           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
046122,000179: 
046123,000180: 05,3355           30334        CHKLIST            CA       CTLIST                                
046124,000181: 05,3356           00006                           EXTEND                                         
046125,000182: 05,3357           63361                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
046126,000183: 05,3360           13366                           TCF      NEXTINCL                              
046127,000184: 05,3361           50332        NEWLIST            INDEX    DNLSTCOD                              
046128,000185: 05,3362           32342                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
046129,000186: 05,3363           54334                           TS       CTLIST                                #    STARTING ADDRESS OF NEW LIST
046130,000187: 05,3364           40332                           CS       DNLSTCOD                              
046131,000188: 05,3365           13601                           TCF      SENDID     +3                         
046132,000189: 05,3366           50334        NEXTINCL           INDEX    CTLIST                                
046133,000190: 05,3367           30000                           CA       0                                     
046134,000191: 05,3370           10000                           CCS      A                                     
046135,000192: 05,3371           24334                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
046136,000193: 05,3372           13376                           TCF      +4                                    #  ON NEXT ENTRY TO PROG. (A SHOULD NOT =0)
046137,000194: 05,3373           56334                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
046138,000195: 05,3374           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
046139,000196: 05,3375           56334                           XCH      CTLIST                                #                                  (ST IN )
046140,000197: 05,3376           24000                 +4        INCR     A                                     #                                  (CTLIST)
046141,000198: 05,3377           54336                           TS       DNECADR                               #  SAVE DNADR
046142,000199: 05,3400           63350                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
046143,000200: 05,3401           10000                           CCS      A                                     
046144,000201: 05,3402           13406                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
046145,000202: 05,3403           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14  (CAN'T GET HERE)
046146,000203: 05,3404           13406                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
046147,000204: 05,3405           03430        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
046148,000205: 05,3406           30336                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
046149,000206: 05,3407           63403                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
046150,000207: 05,3410           00006                           EXTEND                                         
046151,000208: 05,3411           63476                           BZMF     FETCH2WD                              #  YES. (A MUST NEVER BE ZERO)
046152,000209: 05,3412           67710                           AD       MINB12                                #  NO- IS IT A POINTER (DNPTR) OR A
046153,000210: 05,3413           00006                           EXTEND                                         #      CHANNEL(DNCHAN)
046154,000211: 05,3414           63434                           BZMF     DODNPTR                               #  IT'S A POINTER. (A MUST NEVER BE ZERO)
046155,000212: 
046156,000213: 05,3415           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND) IT S A CHANNEL
046157,000214: 05,3416           50336                           INDEX    DNECADR                               
046158,000215: 05,3417           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
046159,000216: 05,3420           54001                           TS       L                                     
046160,000217: 05,3421           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
046161,000218: 05,3422           50336                           INDEX    DNECADR                               
046162,000219: 05,3423           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
046163,000220: 05,3424           54336                           TS       DNECADR                               #  SET DNECADR
046164,000221: 05,3425           37716                           CA       NEGONE                                #      TO MINUS
046165,000222: 05,3426           56336                           XCH      DNECADR                               #          WHILE PRESERVING A.
046166,000223: 05,3427           13524                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
046167,000224: 
046168,000225: 05,3430           44704        WOZERO             CS       BIT7                                  
046169,000226: 05,3431           00006                           EXTEND                                         

Page 1065

046171,000228: 05,3432           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO
046172,000229: 05,3433           00002                           TC       Q                                     #  RETURN TO CALLER
046173,000230: 
046174,000231: 05,3434           50336        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
046175,000232: 05,3435           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
046176,000233: 05,3436           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
046177,000234: 05,3437           30336                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
046178,000235: 05,3440           13510                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
046179,000236: 
046180,000237: 05,3441           56336                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
046181,000238: 05,3442           54337                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
046182,000239: 05,3443           34714                           CAF      ZERO                                  #       A    INTO    A
046183,000240: 05,3444           56336                           XCH      TMINDEX                               #  (NOTE.. TMINDEX = DNECADR)
046184,000241: 
046185,000242: 
046186,000243:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND)IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
046187,000244:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
046188,000245:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
046189,000246:                                                                                                  #  TO MINIMIZE TIME. THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
046190,000247:                                                                                                  #  THESE RULES ARE......
046191,000248:                                                                                                  #            1.    ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
046192,000249:                                                                                                  #            2.    THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY  BANK.
046193,000250: 
046194,000251: 
046195,000252: 05,3445           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
046196,000253: 05,3446           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
046197,000254: 05,3447           00006                           EXTEND                                         
046198,000255: 05,3450           50000                           INDEX    A                                     
046199,000256: 05,3451  E3,1401                                  EBANK=   1401                                  
046200,000257: 05,3451           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
046201,000258: 05,3452     0340                                  EBANK=   DNTMBUFF                              
046202,000259: 05,3452           50336                           INDEX    TMINDEX                               
046203,000260: 05,3453           52341                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
046204,000261: 05,3454           24336                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
046205,000262: 05,3455           24336                           INCR     TMINDEX                               
046206,000263: 05,3456           24337        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
046207,000264: 05,3457           50337                           INDEX    SUBLIST                               
046208,000265: 05,3460           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
046209,000266: 05,3461           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.
046210,000267: 05,3462           13445                           TCF      SNAPLOOP                              #  NOT LAST TWO.
046211,000268: 05,3463           03346        LDNPHAS2           GENADR   DNPHASE2                              
046212,000269: 05,3464           54337                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
046213,000270: 05,3465           37716                           CA       NEGONE                                #  SET DNECADR AND
046214,000271: 05,3466           54336                           TS       DNECADR                               #      SUBLIST POINTERS
046215,000272: 05,3467           56337                           XCH      SUBLIST                               #          TO NEGATIVE VALUES.
046216,000273: 05,3470           54003                           TS       EBANK                                 
046217,000274: 05,3471           74373                           MASK     LOW8                                  
046218,000275: 05,3472           00006                           EXTEND                                         
046219,000276: 05,3473           50000                           INDEX    A                                     
046220,000277: 05,3474  E3,1401                                  EBANK=   1401                                  

Page 1066

046222,000279: 05,3474           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.
046223,000280: 05,3475     0340                                  EBANK=   DNTMBUFF                              
046224,000281: 05,3475           13524        SNAPEND            TCF      DNTMEXIT                              #     NOW GO SEND THEM.
046225,000282: 
046226,000283: 05,3476           30336        FETCH2WD           CA       DNECADR                               
046227,000284: 05,3477           54003                           TS       EBANK                                 #  SET EBANK
046228,000285: 05,3500           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
046229,000286: 05,3501           54001                           TS       L                                     
046230,000287: 05,3502           33354                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
046231,000288: 05,3503           26336                           ADS      DNECADR                               
046232,000289: 05,3504           00006                           EXTEND                                         
046233,000290: 05,3505           50001                           INDEX    L                                     
046234,000291: 05,3506  E3,1400                                  EBANK=   1400                                  
046235,000292: 05,3506           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
046236,000293: 05,3507     0340                                  EBANK=   DNTMBUFF                              
046237,000294: 05,3507           13524                           TCF      DNTMEXIT                              #     NOW GO SEND THEM.
046238,000295: 
046239,000296: 05,3510           54337        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
046240,000297: 05,3511           50337        NEXTINSL           INDEX    SUBLIST                               
046241,000298: 05,3512           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
046242,000299: 05,3513           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
046243,000300: 05,3514           24337                           INCR     SUBLIST                               #  NO-
046244,000301: 05,3515           13521                           TCF      +4                                    
046245,000302: 05,3516           54337                           TS       SUBLIST                               #  SAVE A.
046246,000303: 05,3517           37716                           CA       NEGONE                                #  SET SUBLIST TO MINUS
046247,000304: 05,3520           56337                           XCH      SUBLIST                               #  RETRIEVE A.
046248,000305: 05,3521           24000                 +4        INCR     A                                     
046249,000306: 05,3522           54336                           TS       DNECADR                               #  SAVE DNADR
046250,000307: 05,3523           13407                           TCF      SETWO      +2                         #  GO USE COMMON CODING(PROBLEMS WOULD
046251,000308:                                                                                                  #                                          OCCUR IF THE PROGRAM ENCOUNTERED A
046252,000309:                                                                                                  #                                          DNPTR NOW)
046253,000310: 
046254,000311: 05,3524           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
046255,000312: 05,3525           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
046256,000313: 05,3526           30001                           CA       L                                     #  RESPECTIVELY
046257,000314: 05,3527           00006        TMEXITL            EXTEND                                         
046258,000315: 05,3530           01035                           WRITE    DNTM2                                 
046259,000316: 05,3531           15222        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
046260,000317: 
046261,000318: 05,3532     7710               MINB12             EQUALS   -1/8                                  
046262,000319: 05,3532     0336               DNECADR            EQUALS   TMINDEX                               
046263,000320: 05,3532     0334               CTLIST             EQUALS   LDATALST                              
046264,000321: 05,3532     0337               SUBLIST            EQUALS   DNQ                                   
046265,000322: 

Page 1067

046267,000324:                                                                                                  #  SUBROUTINE NAME- DNDUMP
046268,000325:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND(DUMP) ALL ERASABLE STORAGE 'N' TIMES.(N = 1 TO 4). BANKS ARE SENT ONE AT A TIME
046269,000326:                                                                                                  #           EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
046270,000327:                                                                                                  #           EBANK. EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
046271,000328:                                                                                                  #  CALLING SEQUENCE- THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
046272,000329:                                                                                                  #           AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
046273,000330:                                                                                                  #           WILL BEGIN.
046274,000331:                                                                                                  #           ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
046275,000332:                                                                                                  #           BY THE FOLLOWING:
046276,000333:                                                                                                  #           1. A FRESH START
046277,000334:                                                                                                  #           2. COMPLETION OF ALL DOWNLINK DUMPS REQUESTED (ACCORDING TO BITS SET IN DUMPCNT). NOTE THAT DUMPCNT
046278,000335:                                                                                                  #              CAN BE ALTERED BY A V21N01.
046279,000336:                                                                                                  #           3. AND INVOLUNTARILY BY A RESTART.
046280,000337:                                                                                                  #  NORMAL EXIT MODE- TCF DNPHASE1
046281,000338:                                                                                                  #  ALARM OR ABORT MODE- NONE
046282,000339:                                                                                                  #  *SUBROUTINES CALLED- NONE.
046283,000340:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED-
046284,000341:                                                                                                  #           DUMPCNT   OCT 20000   IF 4 COMPLETE ERASABLE DUMPS ARE DESIRED
046285,000342:                                                                                                  #           DUMPCNT   OCT 10000   IF 2 COMPLETE ERASABLE DUMPS ARE DESIRED
046286,000343:                                                                                                  #           DUMPCNT   OCT 04000   IF 1 COMPLETE ERASABLE DUMP  IS  DESIRED
046287,000344:                                                                                                  #  DEBRIS- DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
046288,000345:                                                                                                  #  TIMING-   TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)* (WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
046289,000346:                                                                                                  #            TIME (IN SECS) =  (   4    )*(    8    )* (    256     +     4   )  /     100
046290,000347:                                                                                                  #       THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
046291,000348: 
046292,000349:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM-
046293,000350:                                                                                                  #     (REMINDER-THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
046294,000351:                                                                                                  #          DOWNLIST                                 W
046295,000352:                                                                                                  #           WORD   TAKEN FROM CONTENTS OF   EXAMPLE O  COMMENTS
046296,000353: 
046297,000354:                                                                                                  #             1    ERASID                    0177X  0  DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
046298,000355:                                                                                                  #             2    LOWIDCOD                  77340  1  DOWNLINK SYNCH BITS.(SAME ONE USED IN ALL OTHER DOWNLISTS)
046299,000356:                                                                                                  #             3    DUMPLOC                   13400  1  (SEE NOTES ON DUMPLOC)1= 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
046300,000357:                                                                                                  #             4    TIME1                     14120  1  TIME IN CENTISECONDS
046301,000358:                                                                                                  #             5    FIRST WORD OF EBANK X     03400  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
046302,000359:                                                                                                  #             6    2ND   WORD OF EBANK X     00142  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
046303,000360:                                                                                                  #             7    3RD   WORD OF EBANK X     00142  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
046304,000361:                                                                                                  #             .                                     1
046305,000362:                                                                                                  #             .                                     1
046306,000363:                                                                                                  #             .                                     1
046307,000364:                                                                                                  #            260D  256TH WORD OF EBANK X     03777  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
046308,000365: 
046309,000366:                                                                                                  #  NOTE- DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
046310,000367:                                                                                                  #        THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
046311,000368:                                                                                                  #                                        X = NOT USED
046312,000369:                                                                                                  #           X ABC EEE RRRRRRRR         ABC = ERASABLE DUMP COUNTER(I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
046313,000370:                                                                                                  #                                            COMPLETE ERASABLE DUMP NUMBER  1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
046314,000371:                                                                                                  #                                      EEE = EBANK BITS
046315,000372:                                                                                                  #                                 RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
046316,000373: 

Page 1068

046318,000375: 05,3532           34714        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
046319,000376: 05,3533           54336                           TS       DUMPLOC                               #  ERASABLE DUMP
046320,000377: 05,3534           03576                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS
046321,000378: 05,3535           33544                           CA       LDNDUMP1                              #  SET DNTMGOTO
046322,000379: 05,3536           54335                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
046323,000380: 05,3537           30025                           CA       TIME1                                 #  PLACE TIME1
046324,000381: 05,3540           56001                           XCH      L                                     #  INTO L
046325,000382: 05,3541           30336                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
046326,000383: 05,3542           13524                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
046327,000384: 
046328,000385: 05,3543           03545        LDNDUMP            ADRES    DNDUMP                                
046329,000386: 05,3544           03560        LDNDUMP1           ADRES    DNDUMP1                               
046330,000387: 
046331,000388: 05,3545           34711        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
046332,000389: 05,3546           26336                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
046333,000390: 05,3547           74373                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
046334,000391: 05,3550           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
046335,000392: 05,3551           13562                           TCF      DNDUMP2                               #  NO- THEN CONTINUE DUMPING
046336,000393: 05,3552           30336                           CA       DUMPLOC                               #  YES- IS THIS THE END OF THE
046337,000394: 05,3553           70333                           MASK     DUMPCNT                               #  N TH(N = 1 TO 4) COMPLETE ERASABLE
046338,000395: 05,3554           77671                           MASK     PRIO34                                #  DUMP(BIT14 FOR 4, BIT13 FOR 2 OR BIT12
046339,000396: 05,3555           10000                           CCS      A                                     #  FOR 1 COMPLETE ERASABLE DUMP(S)).
046340,000397: 05,3556           13340                           TCF      DNPHASE1                              #  YES- START SENDING INTERRUPTED DOWNLIST
046341,000398:                                                                                                  #                                          AGAIN
046342,000399: 05,3557           13534                           TCF      DNDUMPI    +2                         #  NO- GO BACK AND INITIALIZE NEXT BANK
046343,000400: 
046344,000401: 05,3560           33543        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
046345,000402: 05,3561           54335                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
046346,000403: 
046347,000404: 05,3562           30336        DNDUMP2            CA       DUMPLOC                               
046348,000405: 05,3563           54003                           TS       EBANK                                 #  SET EBANK
046349,000406: 05,3564           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
046350,000407: 05,3565           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
046351,000408: 05,3566           34713                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
046352,000409: 05,3567           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
046353,000410: 05,3570           50002                           INDEX    Q                                     
046354,000411: 05,3571  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
046355,000412: 05,3571           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
046356,000413: 05,3572           56001                           XCH      L                                     
046357,000414: 05,3573           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
046358,000415: 05,3574           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
046359,000416: 05,3575     0340                                  EBANK=   DNTMBUFF                              
046360,000417: 05,3575           13524                           TCF      DNTMEXIT                              #  GO SEND THEM
046361,000418: 
046362,000419: 
046363,000420: 05,3576           00006        SENDID             EXTEND                                         #  **ENTRANCE USED BY ERASABLE DUMP PROG.**
046364,000421: 05,3577           22335                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
046365,000422: 05,3600           34747                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
046366,000423: 
046367,000424: 05,3601           54001                           TS       L                                     #  **ENTRANCE USED BY REGULAR DOWNLINK PG**

Page 1069

046369,000426: 05,3602           03430                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
046370,000427: 05,3603           32000                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
046371,000428: 05,3604           56001                           XCH      L                                     #  AND ID BACK INTO A
046372,000429: 05,3605           13524                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).

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