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 Luminary 131 (Apollo 13) 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 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

043062,000002:                                                                                                  ## Copyright:   Public domain.
043063,000003:                                                                                                  ## Filename:    DOWN_TELEMETRY_PROGRAM.agc
043064,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
043065,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
043066,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
043067,000007:                                                                                                  ## Assembler:   yaYUL
043068,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
043069,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
043070,000010:                                                                                                  ## Pages:       988-997
043071,000011:                                                                                                  ## Mod history: 2009-05-24 RSB  Adapted from the corresponding 
043072,000012:                                                                                                  ##                              Luminary131 file, using page 
043073,000013:                                                                                                  ##                              images from Luminary 1A.
043074,000014:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
043075,000015:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
043076,000016:                                                                                                  ##                              and corrected the errors found.
043077,000017:                                                                                                  ##              2017-01-28 RSB  Back-ported some comment-text fixes
043078,000018:                                                                                                  ##                              identified from Luminary 69.
043079,000019:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
043080,000020:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
043081,000021:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
043082,000022: 
043083,000023:                                                                                                  ## This source code has been transcribed or otherwise adapted from
043084,000024:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
043085,000025:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
043086,000026:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
043087,000027:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
043088,000028:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
043089,000029:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
043090,000030:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
043091,000031:                                                                                                  ## actually created.
043092,000032:                                                                                                  ##
043093,000033:                                                                                                  ## Notations on the hardcopy document read, in part:
043094,000034:                                                                                                  ##
043095,000035:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
043096,000036:                                                                                                  ##      16:27 JULY 14, 1969 
043097,000037: 

Page 988

043099,000039:                                                                                                  #  PROGRAM NAME - DOWN TELEMETRY PROGRAM
043100,000040:                                                                                                  #  MOD NO. - 0           TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
043101,000041:                                                                                                  #                        PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
043102,000042:                                                                                                  #                        THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS.  REFER TO DOWNLINK
043103,000043:                                                                                                  #                        LISTS LOG SECTION FOR MORE DETAILS.  HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
043104,000044:                                                                                                  #                        OF DOWN TELEMETRY DATA.
043105,000045:                                                                                                  #  MOD BY - KILROY, SMITH, DEWITT
043106,000046:                                                                                                  #  DATE - 02 OCT 67
043107,000047:                                                                                                  #  AUTHORS - KILROY, SMITH, DEWITT, DEWOLF, FAGIN
043108,000048:                                                                                                  #  LOG SECTION - DOWN-TELEMETRY PROGRAM
043109,000049: 
043110,000050:                                                                                                  #  FUNCTIONAL DESCRIPTION - THIS ROUTINE IS INITIATED BY TELEMETRY END
043111,000051:                                                                                                  #        PULSE FROM THE DOWNLINK TELEMETRY CONVERTER.  THIS PULSE OCCURS
043112,000052:                                                                                                  #        AT 50 TIMES PER SEC (EVERY 20 MS) THEREFORE DODOWNTM IS
043113,000053:                                                                                                  #        EXECUTED AT THESE RATES.  THIS ROUTINE SELECTS THE APPROPRIATE
043114,000054:                                                                                                  #        AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
043115,000055:                                                                                                  #        CHANNELS 34 AND 35.  THE INFORMATION IS THEN GATED OUT FROM THE
043116,000056:                                                                                                  #        LGC IN SERIAL FASHION.
043117,000057: 
043118,000058:                                                                                                  #        THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST.  SINCE DOWNRUPTS
043119,000059:                                                                                                  #        OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
043120,000060:                                                                                                  #        CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
043121,000061:                                                                                                  #        OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
043122,000062: 
043123,000063:                                                                                                  #  CALLING SEQUENCE - NONE
043124,000064:                                                                                                  #        PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
043125,000065:                                                                                                  #        RESULT OF A DOWNRUPT.  CONTROL IS RETURNED VIA TCF RESUME WHICH
043126,000066:                                                                                                  #        IN EFFECT IS A RESUME.
043127,000067: 
043128,000068:                                                                                                  #  SUBROUTINES CALLED - NONE
043129,000069: 
043130,000070:                                                                                                  #  NORMAL EXIT MODE - TCF RESUME
043131,000071: 
043132,000072:                                                                                                  #  ALARM OR ABORT EXIT MODE - NONE
043133,000073: 
043134,000074:                                                                                                  #  RESTART PROTECTION:
043135,000075:                                                                                                  #        ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER (ACTUALLY
043136,000076:                                                                                                  #        DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST (I.E. CURRENT CONTENTS OF DNLSTADR).  THIS HAS THE
043137,000077:                                                                                                  #        EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
043138,000078:                                                                                                  #        THE RESTART (OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
043139,000079:                                                                                                  #        DOWNLIST.
043140,000080: 
043141,000081:                                                                                                  #        ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
043142,000082: 
043143,000083:                                                                                                  #  DOWNLINK LIST SELECTION:
043144,000084:                                                                                                  #        THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
043145,000085:                                                                                                  #        1.      FRESH START
043146,000086:                                                                                                  #        2.      V37EXXE WHERE XX = THE MAJOR MODE BEING SELECTED.
043147,000087:                                                                                                  #        3.      UPDATE PROGRAM (P27)
043148,000088:                                                                                                  #        4.      NON-V37 SELECTABLE TYPE PROGRAMS (E.G. AGS INITIALIZATION (SUNDANCE, LUMINARY) AND P61-P62
043149,000089:                                                                                                  #                TRANSITION (COLOSSUS) ETC.).
043150,000090: 
043151,000091:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
043152,000092:                                                                                                  #        READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
043153,000093: 
043154,000094:                                                                                                  #  OUTPUT - EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS (I.E. 200 LGC
043155,000095:                                                                                                  #        COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
043156,000096: 
043157,000097:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED - NONE
043158,000098:                                                                                                  #        'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
043159,000099: 
043160,000100:                                                                                                  #  DEBRIS (ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM) -
043161,000101:                                                                                                  #        LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.
043162,000102: 

Page 989
This page is empty

043165,000105: 

Page 990

043167,000107:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
043168,000108:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
043169,000109: 
043170,000110:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
043171,000111:                                                                                                  #  1.    DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
043172,000112:                                                                                                  #        DOWN-TELEMETRY PROGRAM.  THIS IS DONE FOR EASE OF CODING, FASTER
043173,000113:                                                                                                  #        EXECUTION.
043174,000114:                                                                                                  #  2.    EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
043175,000115:                                                                                                  #        SUBLISTS.
043176,000116:                                                                                                  #  3.    A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
043177,000117:                                                                                                  #        DOWNLINK LISTS.  ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
043178,000118:                                                                                                  #        CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
043179,000119:                                                                                                  #  4.    SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
043180,000120:                                                                                                  #        SAVED IN A BUFFER DURING ONE DOWNRUPT.
043181,000121:                                                                                                  #  5.    THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
043182,000122:                                                                                                  #        OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
043183,000123:                                                                                                  #        IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
043184,000124:                                                                                                  #  6.    ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
043185,000125:                                                                                                  #        CREATED FOR THE DOWNLIST PROGRAM.
043186,000126:                                                                                                  #        A.      1DNADR                  1-WORD DOWNLIST ADDRESS.
043187,000127:                                                                                                  #                SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
043188,000128:                                                                                                  #                HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
043189,000129:                                                                                                  #        B.      2DNADR - 6DNADR         N-WORD DOWNLIST ADDRESS, N = 2 - 6.
043190,000130:                                                                                                  #                SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
043191,000131:                                                                                                  #                FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
043192,000132:                                                                                                  #                PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
043193,000133:                                                                                                  #        C.      DNCHAN                  DOWNLIST CHANNEL ADDRESS.
043194,000134:                                                                                                  #                SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
043195,000135:                                                                                                  #                A PAIR OF CHANNELS FOR DOWN TELEMETRY.
043196,000136:                                                                                                  #        D.      DNPTR                   DOWN TELEMETRY SUBLIST POINTER.
043197,000137:                                                                                                  #                SAME AS CAF BUT TAGGED AS A CONSTANT.  USED IN CONTROL LIST TO POINT TO A SUBLIST.
043198,000138:                                                                                                  #                CAUTION --- A DNPTR CANNOT BE USED IN A SUBLIST.
043199,000139:                                                                                                  #  7.    THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
043200,000140:                                                                                                  #        A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST (ONLY).
043201,000141:                                                                                                  #  8.    IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
043202,000142: 
043203,000143:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
043204,000144:                                                                                                  #  (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO IT IS CLEAR THAT THESE THINGS CANNOT BE
043205,000145:                                                                                                  #  DONE)
043206,000146:                                                                                                  #  1.    SNAPSHOT DOWNLIST:
043207,000147:                                                                                                  #        (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
043208,000148:                                                                                                  #        (B) CAN CONTAIN ONLY 1DNADR'S
043209,000149:                                                                                                  #  2.    ALL DOWNLINKED DATA (EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
043210,000150:                                                                                                  #        EQUIVALENT OF THE FOLLOWING ECADRS (I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
043211,000151:                                                                                                  #        (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR TO 6DNADR WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
043212,000152:                                                                                                  #  3.    CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777

Page 991

043214,000154:                                                                                                  #  4.    THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
043215,000155:                                                                                                  #        CONTROL SECTION OF THE DOWNLIST.
043216,000156:                                                                                                  #  5.    'DNCHAN 0' CANNOT BE USED.
043217,000157:                                                                                                  #  6.    'DNPTR 0' CANNOT BE USED.
043218,000158:                                                                                                  #  7.    DNPTR CANNOT APPEAR IN A SUBLIST.
043219,000159: 
043220,000160:                                                                                                  #  EBANK SETTINGS
043221,000161:                                                                                                  #        IN THE PROCESS OF SETTING THE EBANK (WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
043222,000162:                                                                                                  #        'GARBAGE' INTO BITS15-12 OF EBANK.  HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
043223,000163:                                                                                                  #        SIGNIFICANT SOMEDAY IN THE FUTURE.  IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE (BY MASKING ETC.)
043224,000164:                                                                                                  #        THAT BITS 15-12 OF EBANK ARE ZERO.
043225,000165: 
043226,000166:                                                                                                  #  INITIALIZATION REQUIRED - TO INTERRUPT CURRENT LIST AND START A NEW ONE..
043227,000167:                                                                                                  #        1. ADRES OF DOWNLINK LIST INTO DNLSTADR
043228,000168:                                                                                                  #        2. NEGONE INTO SUBLIST
043229,000169:                                                                                                  #        3. NEGONE INTO DNECADR
043230,000170: 
043231,000171: 22,3711                                           BANK     22                                    
043232,000172: 05,2000                                           SETLOC   DOWNTELM                              
043233,000173: 05,2000                                           BANK                                           
043234,000174: 
043235,000175: 05,3506     0340                                  EBANK=   DNTMBUFF                              
043236,000176: 
043237,000177: 05,3506                                           COUNT*   $$/DPROG                              
043238,000178: 05,3506           54016        DODOWNTM           TS       BANKRUPT                              
043239,000179: 05,3507           00006                           EXTEND                                         
043240,000180: 05,3510           22012                           QXCH     QRUPT                                 #  SAVE Q
043241,000181: 05,3511           13763                           TCF      WOTEST                                
043242,000182: 05,3512           00006        WO1                EXTEND                                         #  SET WORD ORDER BIT TO 1 ONLY IF IT
043243,000183: 05,3513           05013                           WOR      CHAN13                                #  ALREADY ISN'T.
043244,000184: 05,3514           00335                           TC       DNTMGOTO                              #  GOTO APPROPRIATE PHASE OF PROGRAM
043245,000185: 
043246,000186: 05,3515           37747        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
043247,000187: 05,3516           54337                           TS       SUBLIST                               #  WORDS TO MINUS ONE
043248,000188: 05,3517           54336                           TS       DNECADR                               
043249,000189: 05,3520           33640                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS
043250,000190: 05,3521           54335                           TS       DNTMGOTO                              #  GO TO DNPHASE2
043251,000191: 05,3522           13536                           TCF      NEWLIST                               
043252,000192: 05,3523           10336        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
043253,000193: 05,3524           03653        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
043254,000194: 05,3525           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
043255,000195: 05,3526           13527                           TCF      +1                                    #  (ECADR OF 3776 + 74001 = 77777)
043256,000196: 
043257,000197: 05,3527           10337                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL
043258,000198: 05,3530           13666                           TCF      NEXTINSL                              #  YES

Page 992

043260,000200: 05,3531           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
043261,000201: 
043262,000202: 05,3532           30334        CHKLIST            CA       CTLIST                                
043263,000203: 05,3533           00006                           EXTEND                                         
043264,000204: 05,3534           63536                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
043265,000205: 05,3535           13543                           TCF      NEXTINCL                              
043266,000206: 05,3536           50332        NEWLIST            INDEX    DNLSTCOD                              
043267,000207: 05,3537           32441                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
043268,000208: 05,3540           54334                           TS       CTLIST                                #        STARTING ADDRESS OF NEW LIST
043269,000209: 05,3541           40332                           CS       DNLSTCOD                              
043270,000210: 05,3542           13756                           TCF      SENDID     +3                         
043271,000211: 05,3543           50334        NEXTINCL           INDEX    CTLIST                                
043272,000212: 05,3544           30000                           CA       0                                     
043273,000213: 05,3545           10000                           CCS      A                                     
043274,000214: 05,3546           24334                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
043275,000215: 05,3547           13553                           TCF      +4                                    #  ON NEXT ENTRY TO PROG.  (A SHOULD NOT =0)
043276,000216: 05,3550           56334                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
043277,000217: 05,3551           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
043278,000218: 05,3552           56334                           XCH      CTLIST                                #                                  (ST IN )
043279,000219: 05,3553           24000                 +4        INCR     A                                     #                                  (CTLIST)
043280,000220: 05,3554           54336                           TS       DNECADR                               #  SAVE DNADR
043281,000221: 05,3555           63525                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
043282,000222: 05,3556           10000                           CCS      A                                     
043283,000223: 05,3557           13563                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
043284,000224: 05,3560           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14 (CAN'T GET HERE)
043285,000225: 05,3561           13563                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
043286,000226: 05,3562           03605        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
043287,000227: 05,3563           30336                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
043288,000228: 05,3564           63560                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
043289,000229: 05,3565           00006                           EXTEND                                         
043290,000230: 05,3566           63653                           BZMF     FETCH2WD                              #  YES.  (A MUST NEVER BE ZERO)
043291,000231: 05,3567           67741                           AD       MINB12                                #  NO- IS IT A POINTER (DNPTR) OR A
043292,000232: 05,3570           00006                           EXTEND                                         #      CHANNEL(DNCHAN)
043293,000233: 05,3571           63611                           BZMF     DODNPTR                               #  IT'S A POINTER.  (A MUST NEVER BE ZERO)
043294,000234: 
043295,000235: 05,3572           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND)  IT S A CHANNEL
043296,000236: 05,3573           50336                           INDEX    DNECADR                               
043297,000237: 05,3574           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
043298,000238: 05,3575           54001                           TS       L                                     
043299,000239: 05,3576           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
043300,000240: 05,3577           50336                           INDEX    DNECADR                               
043301,000241: 05,3600           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
043302,000242: 05,3601           54336                           TS       DNECADR                               #  SET DNECADR
043303,000243: 05,3602           37747                           CA       NEGONE                                #        TO MINUS
043304,000244: 05,3603           56336                           XCH      DNECADR                               #                WHILE PRESERVING A.
043305,000245: 05,3604           13701                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
043306,000246: 
043307,000247: 05,3605           44745        WOZERO             CS       BIT7                                  
043308,000248: 05,3606           00006                           EXTEND                                         
043309,000249: 05,3607           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO

Page 993

043311,000251: 05,3610           00002                           TC       Q                                     #  RETURN TO CALLER
043312,000252: 
043313,000253: 05,3611           50336        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
043314,000254: 05,3612           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
043315,000255: 05,3613           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
043316,000256: 05,3614           30336                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
043317,000257: 05,3615           13665                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
043318,000258: 
043319,000259: 05,3616           56336                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
043320,000260: 05,3617           54337                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
043321,000261: 05,3620           34755                           CAF      ZERO                                  #        A    INTO     A
043322,000262: 05,3621           56336                           XCH      TMINDEX                               #  (NOTE..  TMINDEX = DNECADR)
043323,000263: 
043324,000264:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND) IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
043325,000265:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
043326,000266:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
043327,000267:                                                                                                  #  TO MINIMIZE TIME.  THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
043328,000268:                                                                                                  #  THESE RULES ARE ......
043329,000269:                                                                                                  #        1.      ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
043330,000270:                                                                                                  #        2.      THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY BANK.
043331,000271: 
043332,000272: 05,3622           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
043333,000273: 05,3623           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
043334,000274: 05,3624           00006                           EXTEND                                         
043335,000275: 05,3625           50000                           INDEX    A                                     
043336,000276: 05,3626  E3,1401                                  EBANK=   1401                                  
043337,000277: 05,3626           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
043338,000278: 05,3627     0340                                  EBANK=   DNTMBUFF                              
043339,000279: 05,3627           50336                           INDEX    TMINDEX                               
043340,000280: 05,3630           52341                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
043341,000281: 05,3631           24336                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
043342,000282: 05,3632           24336                           INCR     TMINDEX                               
043343,000283: 05,3633           24337        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
043344,000284: 05,3634           50337                           INDEX    SUBLIST                               
043345,000285: 05,3635           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
043346,000286: 05,3636           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.
043347,000287: 05,3637           13622                           TCF      SNAPLOOP                              #  NOT LAST TWO.
043348,000288: 05,3640           03523        LDNPHAS2           GENADR   DNPHASE2                              
043349,000289: 05,3641           54337                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
043350,000290: 05,3642           37747                           CA       NEGONE                                #  SET DNECADR AND
043351,000291: 05,3643           54336                           TS       DNECADR                               #        SUBLIST POINTERS
043352,000292: 05,3644           56337                           XCH      SUBLIST                               #                TO NEGATIVE VALUES.
043353,000293: 05,3645           54003                           TS       EBANK                                 
043354,000294: 05,3646           74357                           MASK     LOW8                                  
043355,000295: 05,3647           00006                           EXTEND                                         
043356,000296: 05,3650           50000                           INDEX    A                                     
043357,000297: 05,3651  E3,1401                                  EBANK=   1401                                  
043358,000298: 05,3651           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.

Page 994

043360,000300: 05,3652     0340                                  EBANK=   DNTMBUFF                              
043361,000301: 05,3652           13701        SNAPEND            TCF      DNTMEXIT                              #  NOW GO SEND THEM.
043362,000302: 
043363,000303: 05,3653           30336        FETCH2WD           CA       DNECADR                               
043364,000304: 05,3654           54003                           TS       EBANK                                 #  SET EBANK
043365,000305: 05,3655           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
043366,000306: 05,3656           54001                           TS       L                                     
043367,000307: 05,3657           33531                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
043368,000308: 05,3660           26336                           ADS      DNECADR                               
043369,000309: 05,3661           00006                           EXTEND                                         
043370,000310: 05,3662           50001                           INDEX    L                                     
043371,000311: 05,3663  E3,1400                                  EBANK=   1400                                  
043372,000312: 05,3663           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
043373,000313: 05,3664     0340                                  EBANK=   DNTMBUFF                              
043374,000314: 05,3664           13701                           TCF      DNTMEXIT                              #  NOW GO SEND THEM.
043375,000315: 
043376,000316: 05,3665           54337        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
043377,000317: 05,3666           50337        NEXTINSL           INDEX    SUBLIST                               
043378,000318: 05,3667           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
043379,000319: 05,3670           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
043380,000320: 05,3671           24337                           INCR     SUBLIST                               #  NO -
043381,000321: 05,3672           13676                           TCF      +4                                    
043382,000322: 05,3673           54337                           TS       SUBLIST                               #  SAVE A.
043383,000323: 05,3674           37747                           CA       NEGONE                                #  SET SUBLIST TO MINUS
043384,000324: 05,3675           56337                           XCH      SUBLIST                               #  RETRIEVE A.
043385,000325: 05,3676           24000                 +4        INCR     A                                     
043386,000326: 05,3677           54336                           TS       DNECADR                               #  SAVE DNADR
043387,000327: 05,3700           13564                           TCF      SETWO      +2                         #  GO USE COMMON CODING (PROBLEMS WOULD
043388,000328:                                                                                                  #  OCCUR IF THE PROGRAM ENCOUNTERED A
043389,000329:                                                                                                  #  DNPTR NOW)
043390,000330: 
043391,000331: 05,3701           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
043392,000332: 05,3702           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
043393,000333: 05,3703           30001                           CA       L                                     #  RESPECTIVELY
043394,000334: 05,3704           00006        TMEXITL            EXTEND                                         
043395,000335: 05,3705           01035                           WRITE    DNTM2                                 
043396,000336: 05,3706           15270        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
043397,000337: 
043398,000338: 05,3707     7741               MINB12             EQUALS   -1/8                                  
043399,000339: 05,3707     0336               DNECADR            EQUALS   TMINDEX                               
043400,000340: 05,3707     0334               CTLIST             EQUALS   LDATALST                              
043401,000341: 05,3707     0337               SUBLIST            EQUALS   DNQ                                   
043402,000342: 

Page 995

043404,000344:                                                                                                  #  SUBROUTINE NAME - DNDUMP
043405,000345: 
043406,000346:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL ERASABLE STORAGE 'N' TIMES. (N=1 TO 4).  BANKS ARE SENT ONE AT A TIME
043407,000347:                                                                                                  #        EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
043408,000348:                                                                                                  #        EBANK.  EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
043409,000349: 
043410,000350:                                                                                                  #  CALLING SEQUENCE - THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
043411,000351:                                                                                                  #        AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
043412,000352:                                                                                                  #        WILL BEGIN.
043413,000353: 
043414,000354:                                                                                                  #        ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
043415,000355:                                                                                                  #        BY THE FOLLOWING:
043416,000356: 
043417,000357:                                                                                                  #        1.      A FRESH START
043418,000358:                                                                                                  #        2.      COMPLETION OF ALL DOWNLINK DUMPS REQUESTED (ACCORDING TO BITS SET IN DUMPCNT).  NOTE THAT DUMPCNT
043419,000359:                                                                                                  #                CAN BE ALTERED BY A V21N01.
043420,000360:                                                                                                  #        3.      AND INVOLUNTARILY BY A RESTART.
043421,000361: 
043422,000362:                                                                                                  #  NORMAL EXIT MODE - TCF DNPHASE1
043423,000363: 
043424,000364:                                                                                                  #  ALARM OR ABORT MODE - NONE
043425,000365: 
043426,000366:                                                                                                  #  *SUBROUTINES CALLED - NONE.
043427,000367: 
043428,000368:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED -
043429,000369:                                                                                                  #        DUMPCNT         OCT 20000       IF 4 COMPLETE ERASABLE DUMPS ARE DESIRED
043430,000370:                                                                                                  #        DUMPCNT         OCT 10000       IF 2 COMPLETE ERASABLE DUMPS ARE DESIRED
043431,000371:                                                                                                  #        DUMPCNT         OCT 04000       IF 1 COMPLETE ERASABLE DUMP  IS  DESIRED
043432,000372: 
043433,000373:                                                                                                  #  DEBRIS - DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
043434,000374: 
043435,000375:                                                                                                  #  TIMING -      TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)*(WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
043436,000376:                                                                                                  #                TIME (IN SECS) =  (   4    )*(    8    )*(    256     +     4   )  /     100
043437,000377:                                                                                                  #                THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
043438,000378: 
043439,000379:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM -
043440,000380:                                                                                                  #        (REMINDER - THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
043441,000381:                                                                                                  #        DOWNLIST                                W
043442,000382:                                                                                                  #          WORD  TAKEN FROM CONTENTS OF  EXAMPLE O       COMMENTS
043443,000383:                                                                                                  #            1   ERASID                   0177X  0       DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
043444,000384:                                                                                                  #            2   LOWIDCOD                 77340  1       DOWNLINK SYNCH BITS.  (SAME ONE USED IN ALL OTHER DOWNLISTS)
043445,000385:                                                                                                  #            3   DUMPLOC                  13400  1       (SEE NOTES ON DUMPLOC) 1 = 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
043446,000386:                                                                                                  #            4   TIME1                    14120  1       TIME IN CENTISECONDS
043447,000387:                                                                                                  #            5   FIRST WORD OF EBANK X    03400  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
043448,000388:                                                                                                  #            6   2ND   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
043449,000389:                                                                                                  #            7   3RD   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
043450,000390:                                                                                                  #            .                                   1
043451,000391:                                                                                                  #            .                                   1
043452,000392:                                                                                                  #            .                                   1
043453,000393:                                                                                                  #         260D   256TH WORD OF EBANK X    03777  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
043454,000394: 
043455,000395:                                                                                                  #  NOTE -        DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
043456,000396:                                                                                                  #                THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
043457,000397:                                                                                                  #                                                X = NOT USED
043458,000398:                                                                                                  #                X ABC EEE RRRRRRRR            ABC = ERASABLE DUMP COUNTER (I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
043459,000399:                                                                                                  #                                                    COMPLETE ERASABLE DUMP NUMBER 1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
043460,000400:                                                                                                  #                                              EEE = EBANK BITS
043461,000401:                                                                                                  #                                         RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
043462,000402: 

Page 996

043464,000404: 05,3707           34755        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
043465,000405: 05,3710           54336                           TS       DUMPLOC                               #  ERASABLE DUMP
043466,000406: 05,3711           03753                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS
043467,000407: 05,3712           33721                           CA       LDNDUMP1                              #  SET DNTMGOTO
043468,000408: 05,3713           54335                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
043469,000409: 05,3714           30025                           CA       TIME1                                 #  PLACE TIME1
043470,000410: 05,3715           56001                           XCH      L                                     #  INTO L
043471,000411: 05,3716           30336                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
043472,000412: 05,3717           13701                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
043473,000413: 
043474,000414: 05,3720           03722        LDNDUMP            ADRES    DNDUMP                                
043475,000415: 05,3721           03735        LDNDUMP1           ADRES    DNDUMP1                               
043476,000416: 
043477,000417: 05,3722           34752        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
043478,000418: 05,3723           26336                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
043479,000419: 05,3724           74357                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
043480,000420: 05,3725           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
043481,000421: 05,3726           13737                           TCF      DNDUMP2                               #  NO - THEN CONTINUE DUMPING
043482,000422: 05,3727           30336                           CA       DUMPLOC                               #  YES - IS THIS THE END OF THE
043483,000423: 05,3730           70333                           MASK     DUMPCNT                               #  N TH (N = 1 TO 4) COMPLETE ERASABLE
043484,000424: 05,3731           77722                           MASK     PRIO34                                #  DUMP (BIT14 FOR 4, BIT13 FOR 2 OR BIT12
043485,000425: 05,3732           10000                           CCS      A                                     #  FOR 1 COMPLETE ERASABLE DUMP(S)).
043486,000426: 05,3733           13515                           TCF      DNPHASE1                              #  YES - START SENDING INTERRUPTED DOWNLIST
043487,000427:                                                                                                  #  AGAIN
043488,000428: 05,3734           13711                           TCF      DNDUMPI    +2                         #  NO - GO BACK AND INITIALIZE NEXT BANK
043489,000429: 
043490,000430: 05,3735           33720        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
043491,000431: 05,3736           54335                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
043492,000432: 
043493,000433: 05,3737           30336        DNDUMP2            CA       DUMPLOC                               
043494,000434: 05,3740           54003                           TS       EBANK                                 #  SET EBANK
043495,000435: 05,3741           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
043496,000436: 05,3742           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
043497,000437: 05,3743           34754                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
043498,000438: 05,3744           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
043499,000439: 05,3745           50002                           INDEX    Q                                     
043500,000440: 05,3746  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
043501,000441: 05,3746           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
043502,000442: 05,3747           56001                           XCH      L                                     
043503,000443: 05,3750           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
043504,000444: 05,3751           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
043505,000445: 05,3752     0340                                  EBANK=   DNTMBUFF                              
043506,000446: 05,3752           13701                           TCF      DNTMEXIT                              #  GO SEND THEM
043507,000447: 
043508,000448: 05,3753           00006        SENDID             EXTEND                                         #  ** ENTRANCE USED BY ERASABLE DUMP PROG.**
043509,000449: 05,3754           22335                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
043510,000450: 05,3755           35011                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
043511,000451: 
043512,000452: 05,3756           54001                           TS       L                                     #  ** ENTRANCE USED BY REGULAR DOWNLINK PG **

Page 997

043514,000454: 05,3757           03605                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
043515,000455: 05,3760           32065                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
043516,000456: 05,3761           56001                           XCH      L                                     #  AND ID BACK INTO A
043517,000457: 05,3762           13701                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).
043518,000458: 
043519,000459: 05,3763           34745        WOTEST             CA       BIT7                                  #  AT THE BEGINNING OF THE LIST THE WORD
043520,000460: 05,3764           00006                           EXTEND                                         #  ORDER BIT WILL BE SET BACK TO ZERO
043521,000461: 05,3765           02013                           RAND     CHAN13                                
043522,000462: 05,3766           10000                           CCS      A                                     
043523,000463: 05,3767           00335                           TC       DNTMGOTO                              
043524,000464: 05,3770           34745                           CA       BIT7                                  
043525,000465: 05,3771           13512                           TCF      WO1                                   
043526,000466: 

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