Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Colossus 249 (Apollo 9) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality 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 055 OF AGC PROGRAM COMANCHE BY NASA 2021113-051
	10:28 APR.  1,1969
Note that the date is the date of the printout, not the date of the program revision.

048549,000002:                                                                                                  ## Copyright:   Public domain.
048550,000003:                                                                                                  ## Filename:    DOWN-TELEMETRY_PROGRAM.agc
048551,000004:                                                                                                  ## Purpose:     Part of the source code for Comanche, build 055. It
048552,000005:                                                                                                  ##              is part of the source code for the Command Module's
048553,000006:                                                                                                  ##              (CM) Apollo Guidance Computer (AGC), Apollo 11.
048554,000007:                                                                                                  ## Assembler:   yaYUL
048555,000008:                                                                                                  ## Reference:   pp. 1093-1102
048556,000009:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>
048557,000010:                                                                                                  ## Website:     http://www.ibiblio.org/apollo.
048558,000011:                                                                                                  ## Mod history: 2009-05-08 RSB  Adapted from Colossus249/ file of same name
048559,000012:                                                                                                  ##                              and page images. Corrected various typos
048560,000013:                                                                                                  ##                              in the transcription of program comments,
048561,000014:                                                                                                  ##                              and these should be back-ported to 
048562,000015:                                                                                                  ##                              Colossus249.
048563,000016:                                                                                                  ##              2010-08-28 JL   Fixed indentation.
048564,000017:                                                                                                  ##              2016-12-21 RSB  Proofed comment text using octopus/ProoferComments
048565,000018:                                                                                                  ##                              and corrected the errors found.
048566,000019:                                                                                                  ##              2017-01-08 RSB  Fixed comment errors detected in cross-diff vs
048567,000020:                                                                                                  ##                              Colossus 249.
048568,000021:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
048569,000022:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
048570,000023: 
048571,000024:                                                                                                  ## The contents of the "Comanche055" files, in general, are transcribed 
048572,000025:                                                                                                  ## from scanned documents. 
048573,000026:                                                                                                  ##
048574,000027:                                                                                                  ##       Assemble revision 055 of AGC program Comanche by NASA
048575,000028:                                                                                                  ##       2021113-051.  April 1, 1969.  
048576,000029:                                                                                                  ##
048577,000030:                                                                                                  ##       This AGC program shall also be referred to as Colossus 2A
048578,000031:                                                                                                  ##
048579,000032:                                                                                                  ##       Prepared by
048580,000033:                                                                                                  ##                       Massachusetts Institute of Technology
048581,000034:                                                                                                  ##                       75 Cambridge Parkway
048582,000035:                                                                                                  ##                       Cambridge, Massachusetts
048583,000036:                                                                                                  ##
048584,000037:                                                                                                  ##       under NASA contract NAS 9-4065.
048585,000038:                                                                                                  ##
048586,000039:                                                                                                  ## Refer directly to the online document mentioned above for further
048587,000040:                                                                                                  ## information.  Please report any errors to info@sandroid.org.
048588,000041: 

Page 1093

048590,000043:                                                                                                  #  PROGRAM NAME - DOWN TELEMETRY PROGRAM
048591,000044:                                                                                                  #  MOD NO. - 0           TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
048592,000045:                                                                                                  #                        PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
048593,000046:                                                                                                  #                        THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS.  REFER TO DOWNLINK
048594,000047:                                                                                                  #                        LISTS LOG SECTION FOR MORE DETAILS.  HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
048595,000048:                                                                                                  #                        OF DOWN TELEMETRY DATA.
048596,000049:                                                                                                  #  MOD BY - KILROY, SMITH, DEWITT
048597,000050:                                                                                                  #  DATE - 02 OCT 67
048598,000051:                                                                                                  #  AUTHORS - KILROY, SMITH, DEWITT, DEWOLF, FAGIN
048599,000052:                                                                                                  #  LOG SECTION - DOWN-TELEMETRY PROGRAM
048600,000053: 
048601,000054:                                                                                                  #  FUNCTIONAL DESCRIPTION - THIS ROUTINE IS INITIATED BY TELEMETRY END
048602,000055:                                                                                                  #        PULSE FROM THE DOWNLINK TELEMETRY CONVERTER.  THIS PULSE OCCURS
048603,000056:                                                                                                  #        AT 50 TIMES PER SEC (EVERY 20 MS) THEREFORE DODOWNTM IS
048604,000057:                                                                                                  #        EXECUTED AT THESE RATES.  THIS ROUTINE SELECTS THE APPROPRIATE
048605,000058:                                                                                                  #        AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
048606,000059:                                                                                                  #        CHANNELS 34 AND 35.  THE INFORMATION IS THEN GATED OUT FROM THE
048607,000060:                                                                                                  #        LGC IN SERIAL FASHION.
048608,000061: 
048609,000062:                                                                                                  #        THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST.  SINCE DOWNRUPTS
048610,000063:                                                                                                  #        OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
048611,000064:                                                                                                  #        CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
048612,000065:                                                                                                  #        OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
048613,000066: 
048614,000067:                                                                                                  #  CALLING SEQUENCE - NONE
048615,000068:                                                                                                  #        PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
048616,000069:                                                                                                  #        RESULT OF A DOWNRUPT.  CONTROL IS RETURNED VIA TCF RESUME WHICH
048617,000070:                                                                                                  #        IN EFFECT IS A RESUME.
048618,000071: 
048619,000072:                                                                                                  #  SUBROUTINES CALLED - NONE
048620,000073: 
048621,000074:                                                                                                  #  NORMAL EXIT MODE - TCF RESUME
048622,000075: 
048623,000076:                                                                                                  #  ALARM OR ABORT EXIT MODE - NONE
048624,000077: 
048625,000078:                                                                                                  #  RESTART PROTECTION:
048626,000079:                                                                                                  #        ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER (ACTUALLY
048627,000080:                                                                                                  #        DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST (I.E. CURRENT CONTENTS OF DNLSTADR).  THIS HAS THE
048628,000081:                                                                                                  #        EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
048629,000082:                                                                                                  #        THE RESTART (OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
048630,000083:                                                                                                  #        DOWNLIST.
048631,000084: 
048632,000085:                                                                                                  #        ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
048633,000086: 
048634,000087:                                                                                                  #  DOWNLINK LIST SELECTION:
048635,000088:                                                                                                  #        THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
048636,000089:                                                                                                  #        1.      FRESH START
048637,000090:                                                                                                  #        2.      V37EXXE WHERE XX = THE MAJOR MODE BEING SELECTED.
048638,000091:                                                                                                  #        3.      UPDATE PROGRAM (P27)
048639,000092:                                                                                                  #        4.      NON-V37 SELECTABLE TYPE PROGRAMS (E.G. AGS INITIALIZATION (SUNDANCE, LUMINARY) AND P61-P62
048640,000093:                                                                                                  #                TRANSITION (COLOSSUS) ETC.).
048641,000094: 
048642,000095:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
048643,000096:                                                                                                  #        READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
048644,000097: 
048645,000098:                                                                                                  #  OUTPUT - EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS (I.E. 200 LGC
048646,000099:                                                                                                  #        COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
048647,000100: 
048648,000101:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED - NONE
048649,000102:                                                                                                  #        'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
048650,000103: 
048651,000104:                                                                                                  #  DEBRIS (ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM) -
048652,000105:                                                                                                  #        LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.

Page 1094 No source on this page of the original assembly listing.

048655,000108: 

Page 1095

048657,000110:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
048658,000111:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
048659,000112: 
048660,000113:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
048661,000114:                                                                                                  #  1.    DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
048662,000115:                                                                                                  #        DOWN-TELEMETRY PROGRAM.  THIS IS DONE FOR EASE OF CODING, FASTER
048663,000116:                                                                                                  #        EXECUTION.
048664,000117:                                                                                                  #  2.    EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
048665,000118:                                                                                                  #        SUBLISTS.
048666,000119:                                                                                                  #  3.    A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
048667,000120:                                                                                                  #        DOWNLINK LISTS.  ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
048668,000121:                                                                                                  #        CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
048669,000122:                                                                                                  #  4.    SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
048670,000123:                                                                                                  #        SAVED IN A BUFFER DURING ONE DOWNRUPT.
048671,000124:                                                                                                  #  5.    THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
048672,000125:                                                                                                  #        OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
048673,000126:                                                                                                  #        IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
048674,000127:                                                                                                  #  6.    ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
048675,000128:                                                                                                  #        CREATED FOR THE DOWNLIST PROGRAM.
048676,000129:                                                                                                  #        A.      1DNADR                  1-WORD DOWNLIST ADDRESS.
048677,000130:                                                                                                  #                SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
048678,000131:                                                                                                  #                HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
048679,000132:                                                                                                  #        B.      2DNADR - 6DNADR         N-WORD DOWNLIST ADDRESS, N = 2 - 6.
048680,000133:                                                                                                  #                SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
048681,000134:                                                                                                  #                FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
048682,000135:                                                                                                  #                PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
048683,000136:                                                                                                  #        C.      DNCHAN                  DOWNLIST CHANNEL ADDRESS.
048684,000137:                                                                                                  #                SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
048685,000138:                                                                                                  #                A PAIR OF CHANNELS FOR DOWN TELEMETRY.
048686,000139:                                                                                                  #        D.      DNPTR                   DOWN TELEMETRY SUBLIST POINTER.
048687,000140:                                                                                                  #                SAME AS CAF BUT TAGGED AS A CONSTANT.  USED IN CONTROL LIST TO POINT TO A SUBLIST.
048688,000141:                                                                                                  #                CAUTION --- A DNPTR CANNOT BE USED IN A SUBLIST.
048689,000142:                                                                                                  #  7.    THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
048690,000143:                                                                                                  #        A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST (ONLY).
048691,000144:                                                                                                  #  8.    IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
048692,000145: 
048693,000146:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
048694,000147:                                                                                                  #  (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO IT IS CLEAR THAT THESE THINGS CANNOT BE
048695,000148:                                                                                                  #  DONE)
048696,000149:                                                                                                  #  1.    SNAPSHOT DOWNLIST:
048697,000150:                                                                                                  #        (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
048698,000151:                                                                                                  #        (B) CAN CONTAIN ONLY 1DNADR'S
048699,000152:                                                                                                  #  2.    ALL DOWNLINKED DATA (EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
048700,000153:                                                                                                  #        EQUIVALENT OF THE FOLLOWING ECADRS (I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
048701,000154:                                                                                                  #        (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR TO 6DNADR WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
048702,000155:                                                                                                  #  3.    CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777

Page 1096

048704,000157:                                                                                                  #  4.    THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
048705,000158:                                                                                                  #        CONTROL SECTION OF THE DOWNLIST.
048706,000159:                                                                                                  #  5.    'DNCHAN 0' CANNOT BE USED.
048707,000160:                                                                                                  #  6.    'DNPTR 0' CANNOT BE USED.
048708,000161:                                                                                                  #  7.    DNPTR CANNOT APPEAR IN A SUBLIST.
048709,000162: 
048710,000163:                                                                                                  #  EBANK SETTINGS
048711,000164:                                                                                                  #        IN THE PROCESS OF SETTING THE EBANK (WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
048712,000165:                                                                                                  #        'GARBAGE' INTO BITS15-12 OF EBANK.  HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
048713,000166:                                                                                                  #        SIGNIFICANT SOMEDAY IN THE FUTURE.  IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE (BY MASKING ETC.)
048714,000167:                                                                                                  #        THAT BITS 15-12 OF EBANK ARE ZERO.
048715,000168: 
048716,000169:                                                                                                  #  INITIALIZATION REQUIRED - TO INTERRUPT CURRENT LIST AND START A NEW ONE..
048717,000170:                                                                                                  #        1. ADRES OF DOWNLINK LIST INTO DNLSTADR
048718,000171:                                                                                                  #        2. NEGONE INTO SUBLIST
048719,000172:                                                                                                  #        3. NEGONE INTO DNECADR
048720,000173: 
048721,000174: 22,3510                                           BANK     22                                    
048722,000175: 05,2000                                           SETLOC   DOWNTELM                              
048723,000176: 05,2000                                           BANK                                           
048724,000177: 
048725,000178: 05,3521     0340                                  EBANK=   DNTMBUFF                              
048726,000179: 
048727,000180: 05,3521                                           COUNT    05/DPROG                              
048728,000181: 
048729,000182: 05,3521           54016        DODOWNTM           TS       BANKRUPT                              
048730,000183: 05,3522           00006                           EXTEND                                         
048731,000184: 05,3523           22012                           QXCH     QRUPT                                 #  SAVE Q
048732,000185: 05,3524           35011                           CA       BIT7                                  #  SET WORD ORDER CODE TO 1.  EXCEPTION- AT
048733,000186: 05,3525           00006                           EXTEND                                         #  THE BEGINNING OF EACH LIST THE WORD
048734,000187: 05,3526           05013                           WOR      CHAN13                                #  CODE WILL BE SET BACK TO 0.
048735,000188: 05,3527           00335                           TC       DNTMGOTO                              #  GOTO APPROPRIATE PHASE OF PROGRAM
048736,000189: 
048737,000190: 05,3530           37716        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
048738,000191: 05,3531           54337                           TS       SUBLIST                               #  WORDS TO MINUS ONE
048739,000192: 05,3532           54336                           TS       DNECADR                               
048740,000193: 05,3533           33653                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS
048741,000194: 05,3534           54335                           TS       DNTMGOTO                              #  GO TO DNPHASE2
048742,000195: 05,3535           13551                           TCF      NEWLIST                               
048743,000196: 05,3536           10336        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
048744,000197: 05,3537           03666        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
048745,000198: 05,3540           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
048746,000199: 05,3541           13542                           TCF      +1                                    #  (ECADR OF 3776 + 74001 = 77777)
048747,000200: 
048748,000201: 05,3542           10337                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL

Page 1097

048750,000203: 05,3543           13701                           TCF      NEXTINSL                              #  YES
048751,000204: 05,3544           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
048752,000205: 
048753,000206: 05,3545           30334        CHKLIST            CA       CTLIST                                
048754,000207: 05,3546           00006                           EXTEND                                         
048755,000208: 05,3547           63551                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
048756,000209: 05,3550           13556                           TCF      NEXTINCL                              
048757,000210: 05,3551           50332        NEWLIST            INDEX    DNLSTCOD                              
048758,000211: 05,3552           32335                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
048759,000212: 05,3553           54334                           TS       CTLIST                                #        STARTING ADDRESS OF NEW LIST
048760,000213: 05,3554           40332                           CS       DNLSTCOD                              
048761,000214: 05,3555           13771                           TCF      SENDID     +3                         
048762,000215: 05,3556           50334        NEXTINCL           INDEX    CTLIST                                
048763,000216: 05,3557           30000                           CA       0                                     
048764,000217: 05,3560           10000                           CCS      A                                     
048765,000218: 05,3561           24334                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
048766,000219: 05,3562           13566                           TCF      +4                                    #  ON NEXT ENTRY TO PROG.  (A SHOULD NOT =0)
048767,000220: 05,3563           56334                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
048768,000221: 05,3564           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
048769,000222: 05,3565           56334                           XCH      CTLIST                                #                                  (ST IN )
048770,000223: 05,3566           24000                 +4        INCR     A                                     #                                  (CTLIST)
048771,000224: 05,3567           54336                           TS       DNECADR                               #  SAVE DNADR
048772,000225: 05,3570           63540                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
048773,000226: 05,3571           10000                           CCS      A                                     
048774,000227: 05,3572           13576                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
048775,000228: 05,3573           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14 (CAN'T GET HERE)
048776,000229: 05,3574           13576                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
048777,000230: 05,3575           03620        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
048778,000231: 05,3576           30336                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
048779,000232: 05,3577           63573                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
048780,000233: 05,3600           00006                           EXTEND                                         
048781,000234: 05,3601           63666                           BZMF     FETCH2WD                              #  YES.  (A MUST NEVER BE ZERO)
048782,000235: 05,3602           67710                           AD       MINB12                                #  NO-  IS IT A POINTER (DNPTR) OR A
048783,000236: 05,3603           00006                           EXTEND                                         #        CHANNEL(DNCHAN)
048784,000237: 05,3604           63624                           BZMF     DODNPTR                               #  IT'S A POINTER.  (A MUST NEVER BE ZERO)
048785,000238: 
048786,000239: 05,3605           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND)  IT S A CHANNEL
048787,000240: 05,3606           50336                           INDEX    DNECADR                               
048788,000241: 05,3607           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
048789,000242: 05,3610           54001                           TS       L                                     
048790,000243: 05,3611           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
048791,000244: 05,3612           50336                           INDEX    DNECADR                               
048792,000245: 05,3613           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
048793,000246: 05,3614           54336                           TS       DNECADR                               #  SET DNECADR
048794,000247: 05,3615           37716                           CA       NEGONE                                #        TO MINUS
048795,000248: 05,3616           56336                           XCH      DNECADR                               #                WHILE PRESERVING A.
048796,000249: 05,3617           13714                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
048797,000250: 
048798,000251: 05,3620           45011        WOZERO             CS       BIT7                                  
048799,000252: 05,3621           00006                           EXTEND                                         

Page 1098

048801,000254: 05,3622           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO
048802,000255: 05,3623           00002                           TC       Q                                     #  RETURN TO CALLER
048803,000256: 
048804,000257: 05,3624           50336        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
048805,000258: 05,3625           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
048806,000259: 05,3626           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
048807,000260: 05,3627           30336                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
048808,000261: 05,3630           13700                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
048809,000262: 
048810,000263: 05,3631           56336                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
048811,000264: 05,3632           54337                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
048812,000265: 05,3633           35021                           CAF      ZERO                                  #        A    INTO     A
048813,000266: 05,3634           56336                           XCH      TMINDEX                               #  (NOTE.. TMINDEX = DNECADR)
048814,000267: 
048815,000268:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND) IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
048816,000269:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
048817,000270:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
048818,000271:                                                                                                  #  TO MINIMIZE TIME.  THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
048819,000272:                                                                                                  #  THESE RULES ARE ......
048820,000273:                                                                                                  #        1.      ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
048821,000274:                                                                                                  #        2.      THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY BANK.
048822,000275: 
048823,000276: 05,3635           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
048824,000277: 05,3636           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
048825,000278: 05,3637           00006                           EXTEND                                         
048826,000279: 05,3640           50000                           INDEX    A                                     
048827,000280: 05,3641  E3,1401                                  EBANK=   1401                                  
048828,000281: 05,3641           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
048829,000282: 05,3642     0340                                  EBANK=   DNTMBUFF                              
048830,000283: 05,3642           50336                           INDEX    TMINDEX                               
048831,000284: 05,3643           52341                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
048832,000285: 05,3644           24336                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
048833,000286: 05,3645           24336                           INCR     TMINDEX                               
048834,000287: 05,3646           24337        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
048835,000288: 05,3647           50337                           INDEX    SUBLIST                               
048836,000289: 05,3650           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
048837,000290: 05,3651           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.
048838,000291: 05,3652           13635                           TCF      SNAPLOOP                              #  NOT LAST TWO.
048839,000292: 05,3653           03536        LDNPHAS2           GENADR   DNPHASE2                              
048840,000293: 05,3654           54337                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
048841,000294: 05,3655           37716                           CA       NEGONE                                #  SET DNECADR AND
048842,000295: 05,3656           54336                           TS       DNECADR                               #        SUBLIST POINTERS
048843,000296: 05,3657           56337                           XCH      SUBLIST                               #                TO NEGATIVE VALUES.
048844,000297: 05,3660           54003                           TS       EBANK                                 
048845,000298: 05,3661           74373                           MASK     LOW8                                  
048846,000299: 05,3662           00006                           EXTEND                                         
048847,000300: 05,3663           50000                           INDEX    A                                     
048848,000301: 05,3664  E3,1401                                  EBANK=   1401                                  

Page 1099

048850,000303: 05,3664           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.
048851,000304: 05,3665     0340                                  EBANK=   DNTMBUFF                              
048852,000305: 05,3665           13714        SNAPEND            TCF      DNTMEXIT                              #  NOW GO SEND THEM.
048853,000306: 
048854,000307: 05,3666           30336        FETCH2WD           CA       DNECADR                               
048855,000308: 05,3667           54003                           TS       EBANK                                 #  SET EBANK
048856,000309: 05,3670           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
048857,000310: 05,3671           54001                           TS       L                                     
048858,000311: 05,3672           33544                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
048859,000312: 05,3673           26336                           ADS      DNECADR                               
048860,000313: 05,3674           00006                           EXTEND                                         
048861,000314: 05,3675           50001                           INDEX    L                                     
048862,000315: 05,3676  E3,1400                                  EBANK=   1400                                  
048863,000316: 05,3676           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
048864,000317: 05,3677     0340                                  EBANK=   DNTMBUFF                              
048865,000318: 05,3677           13714                           TCF      DNTMEXIT                              #  NOW GO SEND THEM.
048866,000319: 
048867,000320: 05,3700           54337        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
048868,000321: 05,3701           50337        NEXTINSL           INDEX    SUBLIST                               
048869,000322: 05,3702           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
048870,000323: 05,3703           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
048871,000324: 05,3704           24337                           INCR     SUBLIST                               #  NO-
048872,000325: 05,3705           13711                           TCF      +4                                    
048873,000326: 05,3706           54337                           TS       SUBLIST                               #  SAVE A.
048874,000327: 05,3707           37716                           CA       NEGONE                                #  SET SUBLIST TO MINUS
048875,000328: 05,3710           56337                           XCH      SUBLIST                               #  RETRIEVE A.
048876,000329: 05,3711           24000                 +4        INCR     A                                     
048877,000330: 05,3712           54336                           TS       DNECADR                               #  SAVE DNADR
048878,000331: 05,3713           13577                           TCF      SETWO      +2                         #  GO USE COMMON CODING (PROBLEMS WOULD
048879,000332:                                                                                                  #  OCCUR IF THE PROGRAM ENCOUNTERED A
048880,000333:                                                                                                  #  DNPTR NOW)
048881,000334: 
048882,000335: 05,3714           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
048883,000336: 05,3715           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
048884,000337: 05,3716           30001                           CA       L                                     #  RESPECTIVELY
048885,000338: 05,3717           00006        TMEXITL            EXTEND                                         
048886,000339: 05,3720           01035                           WRITE    DNTM2                                 
048887,000340: 05,3721           15333        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
048888,000341: 
048889,000342: 05,3722     7710               MINB12             EQUALS   -1/8                                  
048890,000343: 05,3722     0336               DNECADR            EQUALS   TMINDEX                               
048891,000344: 05,3722     0334               CTLIST             EQUALS   LDATALST                              
048892,000345: 05,3722     0337               SUBLIST            EQUALS   DNQ                                   
048893,000346: 

Page 1100

048895,000348:                                                                                                  #  SUBROUTINE NAME - DNDUMP
048896,000349: 
048897,000350:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL ERASABLE STORAGE 'N' TIMES.(N = 1 TO 4). BANKS ARE SENT ONE AT A TIME
048898,000351:                                                                                                  #        EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
048899,000352:                                                                                                  #        EBANK.  EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
048900,000353: 
048901,000354:                                                                                                  #  CALLING SEQUENCE- THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
048902,000355:                                                                                                  #        AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
048903,000356:                                                                                                  #        WILL BEGIN.
048904,000357: 
048905,000358:                                                                                                  #        ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
048906,000359:                                                                                                  #        BY THE FOLLOWING:
048907,000360: 
048908,000361:                                                                                                  #        1.      A FRESH START
048909,000362:                                                                                                  #        2.      COMPLETION OF ALL DOWNLINK DUMPS REQUESTED (ACCORDING TO BITS SET IN DUMPCNT).  NOTE THAT DUMPCNT
048910,000363:                                                                                                  #                CAN BE ALTERED BY A V21N01.
048911,000364:                                                                                                  #        3.      AND INVOLUNTARILY BY A RESTART.
048912,000365: 
048913,000366:                                                                                                  #  NORMAL EXIT MODE- TCF DNPHASE1
048914,000367: 
048915,000368:                                                                                                  #  ALARM OR ABORT MODE- NONE
048916,000369: 
048917,000370:                                                                                                  #  *SUBROUTINES CALLED- NONE.
048918,000371: 
048919,000372:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED-
048920,000373:                                                                                                  #        DUMPCNT OCT 20000       IF 4 COMPLETE ERASABLE DUMPS ARE DESIRED
048921,000374:                                                                                                  #        DUMPCNT OCT 10000       IF 2 COMPLETE ERASABLE DUMPS ARE DESIRED
048922,000375:                                                                                                  #        DUMPCNT OCT 04000       IF 1 COMPLETE ERASABLE DUMP  IS  DESIRED
048923,000376: 
048924,000377:                                                                                                  #  DEBRIS- DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
048925,000378: 
048926,000379:                                                                                                  #  TIMING-       TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)*(WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
048927,000380:                                                                                                  #                TIME (IN SECS) =  (   4    )*(    8    )*(    256     +     4   )  /     100
048928,000381:                                                                                                  #           THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
048929,000382: 
048930,000383:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM-
048931,000384:                                                                                                  #        (REMINDER-THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
048932,000385: 
048933,000386:                                                                                                  #        DOWNLIST                                W
048934,000387:                                                                                                  #          WORD  TAKEN FROM CONTENTS OF  EXAMPLE O       COMMENTS
048935,000388:                                                                                                  #            1   ERASID                   0177X  0       DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
048936,000389:                                                                                                  #            2   LOWIDCOD                 77340  1       DOWNLINK SYNCH BITS.  (SAME ONE USED IN ALL OTHER DOWNLISTS)
048937,000390:                                                                                                  #            3   DUMPLOC                  13400  1       (SEE NOTES ON DUMPLOC) 1 = 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
048938,000391:                                                                                                  #            4   TIME1                    14120  1       TIME IN CENTISECONDS
048939,000392:                                                                                                  #            5   FIRST WORD OF EBANK X    03400  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
048940,000393:                                                                                                  #            6   2ND   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
048941,000394:                                                                                                  #            7   3RD   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
048942,000395:                                                                                                  #            .                                   1
048943,000396:                                                                                                  #            .                                   1
048944,000397:                                                                                                  #            .                                   1
048945,000398:                                                                                                  #         260D   256TH WORD OF EBANK X    03777  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
048946,000399: 
048947,000400:                                                                                                  #  NOTE-         DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
048948,000401:                                                                                                  #                THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
048949,000402:                                                                                                  #                                                X = NOT USED
048950,000403:                                                                                                  #                X ABC EEE RRRRRRRR            ABC = ERASABLE DUMP COUNTER (I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
048951,000404:                                                                                                  #                                                    COMPLETE ERASABLE DUMP NUMBER 1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
048952,000405:                                                                                                  #                                              EEE = EBANK BITS
048953,000406:                                                                                                  #                                         RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
048954,000407: 

Page 1101

048956,000409: 05,3722           35021        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
048957,000410: 05,3723           54336                           TS       DUMPLOC                               #  ERASABLE DUMP
048958,000411: 05,3724           03766                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS
048959,000412: 05,3725           33734                           CA       LDNDUMP1                              #  SET DNTMGOTO
048960,000413: 05,3726           54335                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
048961,000414: 05,3727           30025                           CA       TIME1                                 #  PLACE TIME1
048962,000415: 05,3730           56001                           XCH      L                                     #  INTO L
048963,000416: 05,3731           30336                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
048964,000417: 05,3732           13714                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
048965,000418: 
048966,000419: 05,3733           03735        LDNDUMP            ADRES    DNDUMP                                
048967,000420: 05,3734           03750        LDNDUMP1           ADRES    DNDUMP1                               
048968,000421: 
048969,000422: 05,3735           35016        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
048970,000423: 05,3736           26336                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
048971,000424: 05,3737           74373                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
048972,000425: 05,3740           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
048973,000426: 05,3741           13752                           TCF      DNDUMP2                               #  NO- THEN CONTINUE DUMPING
048974,000427: 05,3742           30336                           CA       DUMPLOC                               #  YES- IS THIS THE END OF THE
048975,000428: 05,3743           70333                           MASK     DUMPCNT                               #  N TH(N = 1 TO 4) COMPLETE ERASABLE
048976,000429: 05,3744           77671                           MASK     PRIO34                                #  DUMP(BIT14 FOR 4, BIT13 FOR 2 OR BIT12
048977,000430: 05,3745           10000                           CCS      A                                     #  FOR 1 COMPLETE ERASABLE DUMP(S)).
048978,000431: 05,3746           13530                           TCF      DNPHASE1                              #  YES- START SENDING INTERRUPTED DOWNLIST
048979,000432:                                                                                                  #  AGAIN
048980,000433: 05,3747           13724                           TCF      DNDUMPI    +2                         #  NO- GO BACK AND INITIALIZE NEXT BANK
048981,000434: 
048982,000435: 05,3750           33733        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
048983,000436: 05,3751           54335                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
048984,000437: 
048985,000438: 05,3752           30336        DNDUMP2            CA       DUMPLOC                               
048986,000439: 05,3753           54003                           TS       EBANK                                 #  SET EBANK
048987,000440: 05,3754           74373                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
048988,000441: 05,3755           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
048989,000442: 05,3756           35020                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
048990,000443: 05,3757           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
048991,000444: 05,3760           50002                           INDEX    Q                                     
048992,000445: 05,3761  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
048993,000446: 05,3761           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
048994,000447: 05,3762           56001                           XCH      L                                     
048995,000448: 05,3763           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
048996,000449: 05,3764           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
048997,000450: 05,3765     0340                                  EBANK=   DNTMBUFF                              
048998,000451: 05,3765           13714                           TCF      DNTMEXIT                              #  GO SEND THEM
048999,000452: 
049000,000453: 05,3766           00006        SENDID             EXTEND                                         #  ** ENTRANCE USED BY ERASABLE DUMP PROG. **
049001,000454: 05,3767           22335                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
049002,000455: 05,3770           35054                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
049003,000456: 
049004,000457: 05,3771           54001                           TS       L                                     #  ** ENTRANCE USED BY REGULAR DOWNLINK PG **

Page 1102

049006,000459: 05,3772           03620                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
049007,000460: 05,3773           32000                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
049008,000461: 05,3774           56001                           XCH      L                                     #  AND ID BACK INTO A
049009,000462: 05,3775           13714                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).

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