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.

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

Page 1060

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

Page 1061 Empty page.

046025,000074: 

Page 1062

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

Page 1063

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

Page 1064

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

Page 1065

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

Page 1066

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

Page 1067

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

Page 1068

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

Page 1069

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

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