Source Code

This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure!

042287,000002:                                                                                                  ## Copyright:   Public domain.
042288,000003:                                                                                                  ## Filename:    DOWN_TELEMETRY_PROGRAM.agc
042289,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
042290,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
042291,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
042292,000007:                                                                                                  ## Assembler:   yaYUL
042293,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
042294,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
042295,000010:                                                                                                  ## Pages:       988-997
042296,000011:                                                                                                  ## Mod history: 2009-05-24 RSB  Adapted from the corresponding 
042297,000012:                                                                                                  ##                              Luminary131 file, using page 
042298,000013:                                                                                                  ##                              images from Luminary 1A.
042299,000014:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
042300,000015:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
042301,000016:                                                                                                  ##                              and corrected the errors found.
042302,000017:                                                                                                  ##              2017-01-28 RSB  Back-ported some comment-text fixes
042303,000018:                                                                                                  ##                              identified from Luminary 69.
042304,000019:                                                                                                  ##              2017-03-03 RSB  Snapshot of Luminary 99 Rev 1. 
042305,000020:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
042306,000021:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
042307,000022:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
042308,000023: 

Page 988

042310,000025:                                                                                                  #  PROGRAM NAME - DOWN TELEMETRY PROGRAM
042311,000026:                                                                                                  #  MOD NO. - 0           TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
042312,000027:                                                                                                  #                        PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
042313,000028:                                                                                                  #                        THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS.  REFER TO DOWNLINK
042314,000029:                                                                                                  #                        LISTS LOG SECTION FOR MORE DETAILS.  HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
042315,000030:                                                                                                  #                        OF DOWN TELEMETRY DATA.
042316,000031:                                                                                                  #  MOD BY - KILROY, SMITH, DEWITT
042317,000032:                                                                                                  #  DATE - 02 OCT 67
042318,000033:                                                                                                  #  AUTHORS - KILROY, SMITH, DEWITT, DEWOLF, FAGIN
042319,000034:                                                                                                  #  LOG SECTION - DOWN-TELEMETRY PROGRAM
042320,000035: 
042321,000036:                                                                                                  #  FUNCTIONAL DESCRIPTION - THIS ROUTINE IS INITIATED BY TELEMETRY END
042322,000037:                                                                                                  #        PULSE FROM THE DOWNLINK TELEMETRY CONVERTER.  THIS PULSE OCCURS
042323,000038:                                                                                                  #        AT 50 TIMES PER SEC (EVERY 20 MS) THEREFORE DODOWNTM IS
042324,000039:                                                                                                  #        EXECUTED AT THESE RATES.  THIS ROUTINE SELECTS THE APPROPRIATE
042325,000040:                                                                                                  #        AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
042326,000041:                                                                                                  #        CHANNELS 34 AND 35.  THE INFORMATION IS THEN GATED OUT FROM THE
042327,000042:                                                                                                  #        LGC IN SERIAL FASHION.
042328,000043: 
042329,000044:                                                                                                  #        THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST.  SINCE DOWNRUPTS
042330,000045:                                                                                                  #        OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
042331,000046:                                                                                                  #        CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
042332,000047:                                                                                                  #        OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
042333,000048: 
042334,000049:                                                                                                  #  CALLING SEQUENCE - NONE
042335,000050:                                                                                                  #        PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
042336,000051:                                                                                                  #        RESULT OF A DOWNRUPT.  CONTROL IS RETURNED VIA TCF RESUME WHICH
042337,000052:                                                                                                  #        IN EFFECT IS A RESUME.
042338,000053: 
042339,000054:                                                                                                  #  SUBROUTINES CALLED - NONE
042340,000055: 
042341,000056:                                                                                                  #  NORMAL EXIT MODE - TCF RESUME
042342,000057: 
042343,000058:                                                                                                  #  ALARM OR ABORT EXIT MODE - NONE
042344,000059: 
042345,000060:                                                                                                  #  RESTART PROTECTION:
042346,000061:                                                                                                  #        ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER (ACTUALLY
042347,000062:                                                                                                  #        DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST (I.E. CURRENT CONTENTS OF DNLSTADR).  THIS HAS THE
042348,000063:                                                                                                  #        EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
042349,000064:                                                                                                  #        THE RESTART (OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
042350,000065:                                                                                                  #        DOWNLIST.
042351,000066: 
042352,000067:                                                                                                  #        ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
042353,000068: 
042354,000069:                                                                                                  #  DOWNLINK LIST SELECTION:
042355,000070:                                                                                                  #        THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
042356,000071:                                                                                                  #        1.      FRESH START
042357,000072:                                                                                                  #        2.      V37EXXE WHERE XX = THE MAJOR MODE BEING SELECTED.
042358,000073:                                                                                                  #        3.      UPDATE PROGRAM (P27)
042359,000074:                                                                                                  #        4.      NON-V37 SELECTABLE TYPE PROGRAMS (E.G. AGS INITIALIZATION (SUNDANCE, LUMINARY) AND P61-P62
042360,000075:                                                                                                  #                TRANSITION (COLOSSUS) ETC.).
042361,000076: 
042362,000077:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
042363,000078:                                                                                                  #        READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
042364,000079: 
042365,000080:                                                                                                  #  OUTPUT - EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS (I.E. 200 LGC
042366,000081:                                                                                                  #        COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
042367,000082: 
042368,000083:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED - NONE
042369,000084:                                                                                                  #        'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
042370,000085: 
042371,000086:                                                                                                  #  DEBRIS (ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM) -
042372,000087:                                                                                                  #        LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.
042373,000088: 

Page 989
This page is empty

042376,000091: 

Page 990

042378,000093:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
042379,000094:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
042380,000095: 
042381,000096:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
042382,000097:                                                                                                  #  1.    DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
042383,000098:                                                                                                  #        DOWN-TELEMETRY PROGRAM.  THIS IS DONE FOR EASE OF CODING, FASTER
042384,000099:                                                                                                  #        EXECUTION.
042385,000100:                                                                                                  #  2.    EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
042386,000101:                                                                                                  #        SUBLISTS.
042387,000102:                                                                                                  #  3.    A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
042388,000103:                                                                                                  #        DOWNLINK LISTS.  ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
042389,000104:                                                                                                  #        CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
042390,000105:                                                                                                  #  4.    SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
042391,000106:                                                                                                  #        SAVED IN A BUFFER DURING ONE DOWNRUPT.
042392,000107:                                                                                                  #  5.    THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
042393,000108:                                                                                                  #        OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
042394,000109:                                                                                                  #        IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
042395,000110:                                                                                                  #  6.    ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
042396,000111:                                                                                                  #        CREATED FOR THE DOWNLIST PROGRAM.
042397,000112:                                                                                                  #        A.      1DNADR                  1-WORD DOWNLIST ADDRESS.
042398,000113:                                                                                                  #                SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
042399,000114:                                                                                                  #                HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
042400,000115:                                                                                                  #        B.      2DNADR - 6DNADR         N-WORD DOWNLIST ADDRESS, N = 2 - 6.
042401,000116:                                                                                                  #                SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
042402,000117:                                                                                                  #                FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
042403,000118:                                                                                                  #                PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
042404,000119:                                                                                                  #        C.      DNCHAN                  DOWNLIST CHANNEL ADDRESS.
042405,000120:                                                                                                  #                SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
042406,000121:                                                                                                  #                A PAIR OF CHANNELS FOR DOWN TELEMETRY.
042407,000122:                                                                                                  #        D.      DNPTR                   DOWN TELEMETRY SUBLIST POINTER.
042408,000123:                                                                                                  #                SAME AS CAF BUT TAGGED AS A CONSTANT.  USED IN CONTROL LIST TO POINT TO A SUBLIST.
042409,000124:                                                                                                  #                CAUTION --- A DNPTR CANNOT BE USED IN A SUBLIST.
042410,000125:                                                                                                  #  7.    THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
042411,000126:                                                                                                  #        A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST (ONLY).
042412,000127:                                                                                                  #  8.    IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
042413,000128: 
042414,000129:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
042415,000130:                                                                                                  #  (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO IT IS CLEAR THAT THESE THINGS CANNOT BE
042416,000131:                                                                                                  #  DONE)
042417,000132:                                                                                                  #  1.    SNAPSHOT DOWNLIST:
042418,000133:                                                                                                  #        (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
042419,000134:                                                                                                  #        (B) CAN CONTAIN ONLY 1DNADR'S
042420,000135:                                                                                                  #  2.    ALL DOWNLINKED DATA (EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
042421,000136:                                                                                                  #        EQUIVALENT OF THE FOLLOWING ECADRS (I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
042422,000137:                                                                                                  #        (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR TO 6DNADR WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
042423,000138:                                                                                                  #  3.    CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777

Page 991

042425,000140:                                                                                                  #  4.    THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
042426,000141:                                                                                                  #        CONTROL SECTION OF THE DOWNLIST.
042427,000142:                                                                                                  #  5.    'DNCHAN 0' CANNOT BE USED.
042428,000143:                                                                                                  #  6.    'DNPTR 0' CANNOT BE USED.
042429,000144:                                                                                                  #  7.    DNPTR CANNOT APPEAR IN A SUBLIST.
042430,000145: 
042431,000146:                                                                                                  #  EBANK SETTINGS
042432,000147:                                                                                                  #        IN THE PROCESS OF SETTING THE EBANK (WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
042433,000148:                                                                                                  #        'GARBAGE' INTO BITS15-12 OF EBANK.  HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
042434,000149:                                                                                                  #        SIGNIFICANT SOMEDAY IN THE FUTURE.  IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE (BY MASKING ETC.)
042435,000150:                                                                                                  #        THAT BITS 15-12 OF EBANK ARE ZERO.
042436,000151: 
042437,000152:                                                                                                  #  INITIALIZATION REQUIRED - TO INTERRUPT CURRENT LIST AND START A NEW ONE..
042438,000153:                                                                                                  #        1. ADRES OF DOWNLINK LIST INTO DNLSTADR
042439,000154:                                                                                                  #        2. NEGONE INTO SUBLIST
042440,000155:                                                                                                  #        3. NEGONE INTO DNECADR
042441,000156: 
042442,000157: 22,3711                                           BANK     22                                    
042443,000158: 05,2000                                           SETLOC   DOWNTELM                              
042444,000159: 05,2000                                           BANK                                           
042445,000160: 
042446,000161: 05,3506     0340                                  EBANK=   DNTMBUFF                              
042447,000162: 
042448,000163: 05,3506                                           COUNT*   $$/DPROG                              
042449,000164: 05,3506           54016        DODOWNTM           TS       BANKRUPT                              
042450,000165: 05,3507           00006                           EXTEND                                         
042451,000166: 05,3510           22012                           QXCH     QRUPT                                 #  SAVE Q
042452,000167: 05,3511           13763                           TCF      WOTEST                                
042453,000168: 05,3512           00006        WO1                EXTEND                                         #  SET WORD ORDER BIT TO 1 ONLY IF IT
042454,000169: 05,3513           05013                           WOR      CHAN13                                #  ALREADY ISN'T.
042455,000170: 05,3514           00335                           TC       DNTMGOTO                              #  GOTO APPROPRIATE PHASE OF PROGRAM
042456,000171: 
042457,000172: 05,3515           37747        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
042458,000173: 05,3516           54337                           TS       SUBLIST                               #  WORDS TO MINUS ONE
042459,000174: 05,3517           54336                           TS       DNECADR                               
042460,000175: 05,3520           33640                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS
042461,000176: 05,3521           54335                           TS       DNTMGOTO                              #  GO TO DNPHASE2
042462,000177: 05,3522           13536                           TCF      NEWLIST                               
042463,000178: 05,3523           10336        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
042464,000179: 05,3524           03653        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
042465,000180: 05,3525           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
042466,000181: 05,3526           13527                           TCF      +1                                    #  (ECADR OF 3776 + 74001 = 77777)
042467,000182: 
042468,000183: 05,3527           10337                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL
042469,000184: 05,3530           13666                           TCF      NEXTINSL                              #  YES

Page 992

042471,000186: 05,3531           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
042472,000187: 
042473,000188: 05,3532           30334        CHKLIST            CA       CTLIST                                
042474,000189: 05,3533           00006                           EXTEND                                         
042475,000190: 05,3534           63536                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
042476,000191: 05,3535           13543                           TCF      NEXTINCL                              
042477,000192: 05,3536           50332        NEWLIST            INDEX    DNLSTCOD                              
042478,000193: 05,3537           32441                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
042479,000194: 05,3540           54334                           TS       CTLIST                                #        STARTING ADDRESS OF NEW LIST
042480,000195: 05,3541           40332                           CS       DNLSTCOD                              
042481,000196: 05,3542           13756                           TCF      SENDID     +3                         
042482,000197: 05,3543           50334        NEXTINCL           INDEX    CTLIST                                
042483,000198: 05,3544           30000                           CA       0                                     
042484,000199: 05,3545           10000                           CCS      A                                     
042485,000200: 05,3546           24334                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
042486,000201: 05,3547           13553                           TCF      +4                                    #  ON NEXT ENTRY TO PROG.  (A SHOULD NOT =0)
042487,000202: 05,3550           56334                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
042488,000203: 05,3551           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
042489,000204: 05,3552           56334                           XCH      CTLIST                                #                                  (ST IN )
042490,000205: 05,3553           24000                 +4        INCR     A                                     #                                  (CTLIST)
042491,000206: 05,3554           54336                           TS       DNECADR                               #  SAVE DNADR
042492,000207: 05,3555           63525                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
042493,000208: 05,3556           10000                           CCS      A                                     
042494,000209: 05,3557           13563                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
042495,000210: 05,3560           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14 (CAN'T GET HERE)
042496,000211: 05,3561           13563                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
042497,000212: 05,3562           03605        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
042498,000213: 05,3563           30336                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
042499,000214: 05,3564           63560                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
042500,000215: 05,3565           00006                           EXTEND                                         
042501,000216: 05,3566           63653                           BZMF     FETCH2WD                              #  YES.  (A MUST NEVER BE ZERO)
042502,000217: 05,3567           67741                           AD       MINB12                                #  NO- IS IT A POINTER (DNPTR) OR A
042503,000218: 05,3570           00006                           EXTEND                                         #      CHANNEL(DNCHAN)
042504,000219: 05,3571           63611                           BZMF     DODNPTR                               #  IT'S A POINTER.  (A MUST NEVER BE ZERO)
042505,000220: 
042506,000221: 05,3572           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND)  IT S A CHANNEL
042507,000222: 05,3573           50336                           INDEX    DNECADR                               
042508,000223: 05,3574           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
042509,000224: 05,3575           54001                           TS       L                                     
042510,000225: 05,3576           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
042511,000226: 05,3577           50336                           INDEX    DNECADR                               
042512,000227: 05,3600           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
042513,000228: 05,3601           54336                           TS       DNECADR                               #  SET DNECADR
042514,000229: 05,3602           37747                           CA       NEGONE                                #        TO MINUS
042515,000230: 05,3603           56336                           XCH      DNECADR                               #                WHILE PRESERVING A.
042516,000231: 05,3604           13701                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
042517,000232: 
042518,000233: 05,3605           44745        WOZERO             CS       BIT7                                  
042519,000234: 05,3606           00006                           EXTEND                                         
042520,000235: 05,3607           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO

Page 993

042522,000237: 05,3610           00002                           TC       Q                                     #  RETURN TO CALLER
042523,000238: 
042524,000239: 05,3611           50336        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
042525,000240: 05,3612           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
042526,000241: 05,3613           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
042527,000242: 05,3614           30336                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
042528,000243: 05,3615           13665                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
042529,000244: 
042530,000245: 05,3616           56336                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
042531,000246: 05,3617           54337                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
042532,000247: 05,3620           34755                           CAF      ZERO                                  #        A    INTO     A
042533,000248: 05,3621           56336                           XCH      TMINDEX                               #  (NOTE..  TMINDEX = DNECADR)
042534,000249: 
042535,000250:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND) IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
042536,000251:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
042537,000252:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
042538,000253:                                                                                                  #  TO MINIMIZE TIME.  THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
042539,000254:                                                                                                  #  THESE RULES ARE ......
042540,000255:                                                                                                  #        1.      ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
042541,000256:                                                                                                  #        2.      THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY BANK.
042542,000257: 
042543,000258: 05,3622           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
042544,000259: 05,3623           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
042545,000260: 05,3624           00006                           EXTEND                                         
042546,000261: 05,3625           50000                           INDEX    A                                     
042547,000262: 05,3626  E3,1401                                  EBANK=   1401                                  
042548,000263: 05,3626           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
042549,000264: 05,3627     0340                                  EBANK=   DNTMBUFF                              
042550,000265: 05,3627           50336                           INDEX    TMINDEX                               
042551,000266: 05,3630           52341                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
042552,000267: 05,3631           24336                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
042553,000268: 05,3632           24336                           INCR     TMINDEX                               
042554,000269: 05,3633           24337        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
042555,000270: 05,3634           50337                           INDEX    SUBLIST                               
042556,000271: 05,3635           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
042557,000272: 05,3636           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.
042558,000273: 05,3637           13622                           TCF      SNAPLOOP                              #  NOT LAST TWO.
042559,000274: 05,3640           03523        LDNPHAS2           GENADR   DNPHASE2                              
042560,000275: 05,3641           54337                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
042561,000276: 05,3642           37747                           CA       NEGONE                                #  SET DNECADR AND
042562,000277: 05,3643           54336                           TS       DNECADR                               #        SUBLIST POINTERS
042563,000278: 05,3644           56337                           XCH      SUBLIST                               #                TO NEGATIVE VALUES.
042564,000279: 05,3645           54003                           TS       EBANK                                 
042565,000280: 05,3646           74357                           MASK     LOW8                                  
042566,000281: 05,3647           00006                           EXTEND                                         
042567,000282: 05,3650           50000                           INDEX    A                                     
042568,000283: 05,3651  E3,1401                                  EBANK=   1401                                  
042569,000284: 05,3651           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.

Page 994

042571,000286: 05,3652     0340                                  EBANK=   DNTMBUFF                              
042572,000287: 05,3652           13701        SNAPEND            TCF      DNTMEXIT                              #  NOW GO SEND THEM.
042573,000288: 
042574,000289: 05,3653           30336        FETCH2WD           CA       DNECADR                               
042575,000290: 05,3654           54003                           TS       EBANK                                 #  SET EBANK
042576,000291: 05,3655           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
042577,000292: 05,3656           54001                           TS       L                                     
042578,000293: 05,3657           33531                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
042579,000294: 05,3660           26336                           ADS      DNECADR                               
042580,000295: 05,3661           00006                           EXTEND                                         
042581,000296: 05,3662           50001                           INDEX    L                                     
042582,000297: 05,3663  E3,1400                                  EBANK=   1400                                  
042583,000298: 05,3663           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
042584,000299: 05,3664     0340                                  EBANK=   DNTMBUFF                              
042585,000300: 05,3664           13701                           TCF      DNTMEXIT                              #  NOW GO SEND THEM.
042586,000301: 
042587,000302: 05,3665           54337        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
042588,000303: 05,3666           50337        NEXTINSL           INDEX    SUBLIST                               
042589,000304: 05,3667           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
042590,000305: 05,3670           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
042591,000306: 05,3671           24337                           INCR     SUBLIST                               #  NO -
042592,000307: 05,3672           13676                           TCF      +4                                    
042593,000308: 05,3673           54337                           TS       SUBLIST                               #  SAVE A.
042594,000309: 05,3674           37747                           CA       NEGONE                                #  SET SUBLIST TO MINUS
042595,000310: 05,3675           56337                           XCH      SUBLIST                               #  RETRIEVE A.
042596,000311: 05,3676           24000                 +4        INCR     A                                     
042597,000312: 05,3677           54336                           TS       DNECADR                               #  SAVE DNADR
042598,000313: 05,3700           13564                           TCF      SETWO      +2                         #  GO USE COMMON CODING (PROBLEMS WOULD
042599,000314:                                                                                                  #  OCCUR IF THE PROGRAM ENCOUNTERED A
042600,000315:                                                                                                  #  DNPTR NOW)
042601,000316: 
042602,000317: 05,3701           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
042603,000318: 05,3702           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
042604,000319: 05,3703           30001                           CA       L                                     #  RESPECTIVELY
042605,000320: 05,3704           00006        TMEXITL            EXTEND                                         
042606,000321: 05,3705           01035                           WRITE    DNTM2                                 
042607,000322: 05,3706           15270        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
042608,000323: 
042609,000324: 05,3707     7741               MINB12             EQUALS   -1/8                                  
042610,000325: 05,3707     0336               DNECADR            EQUALS   TMINDEX                               
042611,000326: 05,3707     0334               CTLIST             EQUALS   LDATALST                              
042612,000327: 05,3707     0337               SUBLIST            EQUALS   DNQ                                   
042613,000328: 

Page 995

042615,000330:                                                                                                  #  SUBROUTINE NAME - DNDUMP
042616,000331: 
042617,000332:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL ERASABLE STORAGE 'N' TIMES. (N=1 TO 4).  BANKS ARE SENT ONE AT A TIME
042618,000333:                                                                                                  #        EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
042619,000334:                                                                                                  #        EBANK.  EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
042620,000335: 
042621,000336:                                                                                                  #  CALLING SEQUENCE - THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
042622,000337:                                                                                                  #        AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
042623,000338:                                                                                                  #        WILL BEGIN.
042624,000339: 
042625,000340:                                                                                                  #        ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
042626,000341:                                                                                                  #        BY THE FOLLOWING:
042627,000342: 
042628,000343:                                                                                                  #        1.      A FRESH START
042629,000344:                                                                                                  #        2.      COMPLETION OF ALL DOWNLINK DUMPS REQUESTED (ACCORDING TO BITS SET IN DUMPCNT).  NOTE THAT DUMPCNT
042630,000345:                                                                                                  #                CAN BE ALTERED BY A V21N01.
042631,000346:                                                                                                  #        3.      AND INVOLUNTARILY BY A RESTART.
042632,000347: 
042633,000348:                                                                                                  #  NORMAL EXIT MODE - TCF DNPHASE1
042634,000349: 
042635,000350:                                                                                                  #  ALARM OR ABORT MODE - NONE
042636,000351: 
042637,000352:                                                                                                  #  *SUBROUTINES CALLED - NONE.
042638,000353: 
042639,000354:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED -
042640,000355:                                                                                                  #        DUMPCNT         OCT 20000       IF 4 COMPLETE ERASABLE DUMPS ARE DESIRED
042641,000356:                                                                                                  #        DUMPCNT         OCT 10000       IF 2 COMPLETE ERASABLE DUMPS ARE DESIRED
042642,000357:                                                                                                  #        DUMPCNT         OCT 04000       IF 1 COMPLETE ERASABLE DUMP  IS  DESIRED
042643,000358: 
042644,000359:                                                                                                  #  DEBRIS - DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
042645,000360: 
042646,000361:                                                                                                  #  TIMING -      TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)*(WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
042647,000362:                                                                                                  #                TIME (IN SECS) =  (   4    )*(    8    )*(    256     +     4   )  /     100
042648,000363:                                                                                                  #                THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
042649,000364: 
042650,000365:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM -
042651,000366:                                                                                                  #        (REMINDER - THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
042652,000367:                                                                                                  #        DOWNLIST                                W
042653,000368:                                                                                                  #          WORD  TAKEN FROM CONTENTS OF  EXAMPLE O       COMMENTS
042654,000369:                                                                                                  #            1   ERASID                   0177X  0       DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
042655,000370:                                                                                                  #            2   LOWIDCOD                 77340  1       DOWNLINK SYNCH BITS.  (SAME ONE USED IN ALL OTHER DOWNLISTS)
042656,000371:                                                                                                  #            3   DUMPLOC                  13400  1       (SEE NOTES ON DUMPLOC) 1 = 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
042657,000372:                                                                                                  #            4   TIME1                    14120  1       TIME IN CENTISECONDS
042658,000373:                                                                                                  #            5   FIRST WORD OF EBANK X    03400  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
042659,000374:                                                                                                  #            6   2ND   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
042660,000375:                                                                                                  #            7   3RD   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
042661,000376:                                                                                                  #            .                                   1
042662,000377:                                                                                                  #            .                                   1
042663,000378:                                                                                                  #            .                                   1
042664,000379:                                                                                                  #         260D   256TH WORD OF EBANK X    03777  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
042665,000380: 
042666,000381:                                                                                                  #  NOTE -        DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
042667,000382:                                                                                                  #                THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
042668,000383:                                                                                                  #                                                X = NOT USED
042669,000384:                                                                                                  #                X ABC EEE RRRRRRRR            ABC = ERASABLE DUMP COUNTER (I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
042670,000385:                                                                                                  #                                                    COMPLETE ERASABLE DUMP NUMBER 1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
042671,000386:                                                                                                  #                                              EEE = EBANK BITS
042672,000387:                                                                                                  #                                         RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
042673,000388: 

Page 996

042675,000390: 05,3707           34755        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
042676,000391: 05,3710           54336                           TS       DUMPLOC                               #  ERASABLE DUMP
042677,000392: 05,3711           03753                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS
042678,000393: 05,3712           33721                           CA       LDNDUMP1                              #  SET DNTMGOTO
042679,000394: 05,3713           54335                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
042680,000395: 05,3714           30025                           CA       TIME1                                 #  PLACE TIME1
042681,000396: 05,3715           56001                           XCH      L                                     #  INTO L
042682,000397: 05,3716           30336                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
042683,000398: 05,3717           13701                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
042684,000399: 
042685,000400: 05,3720           03722        LDNDUMP            ADRES    DNDUMP                                
042686,000401: 05,3721           03735        LDNDUMP1           ADRES    DNDUMP1                               
042687,000402: 
042688,000403: 05,3722           34752        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
042689,000404: 05,3723           26336                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
042690,000405: 05,3724           74357                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
042691,000406: 05,3725           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
042692,000407: 05,3726           13737                           TCF      DNDUMP2                               #  NO - THEN CONTINUE DUMPING
042693,000408: 05,3727           30336                           CA       DUMPLOC                               #  YES - IS THIS THE END OF THE
042694,000409: 05,3730           70333                           MASK     DUMPCNT                               #  N TH (N = 1 TO 4) COMPLETE ERASABLE
042695,000410: 05,3731           77722                           MASK     PRIO34                                #  DUMP (BIT14 FOR 4, BIT13 FOR 2 OR BIT12
042696,000411: 05,3732           10000                           CCS      A                                     #  FOR 1 COMPLETE ERASABLE DUMP(S)).
042697,000412: 05,3733           13515                           TCF      DNPHASE1                              #  YES - START SENDING INTERRUPTED DOWNLIST
042698,000413:                                                                                                  #  AGAIN
042699,000414: 05,3734           13711                           TCF      DNDUMPI    +2                         #  NO - GO BACK AND INITIALIZE NEXT BANK
042700,000415: 
042701,000416: 05,3735           33720        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
042702,000417: 05,3736           54335                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
042703,000418: 
042704,000419: 05,3737           30336        DNDUMP2            CA       DUMPLOC                               
042705,000420: 05,3740           54003                           TS       EBANK                                 #  SET EBANK
042706,000421: 05,3741           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
042707,000422: 05,3742           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
042708,000423: 05,3743           34754                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
042709,000424: 05,3744           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
042710,000425: 05,3745           50002                           INDEX    Q                                     
042711,000426: 05,3746  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
042712,000427: 05,3746           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
042713,000428: 05,3747           56001                           XCH      L                                     
042714,000429: 05,3750           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
042715,000430: 05,3751           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
042716,000431: 05,3752     0340                                  EBANK=   DNTMBUFF                              
042717,000432: 05,3752           13701                           TCF      DNTMEXIT                              #  GO SEND THEM
042718,000433: 
042719,000434: 05,3753           00006        SENDID             EXTEND                                         #  ** ENTRANCE USED BY ERASABLE DUMP PROG.**
042720,000435: 05,3754           22335                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
042721,000436: 05,3755           35011                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
042722,000437: 
042723,000438: 05,3756           54001                           TS       L                                     #  ** ENTRANCE USED BY REGULAR DOWNLINK PG **

Page 997

042725,000440: 05,3757           03605                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
042726,000441: 05,3760           32065                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
042727,000442: 05,3761           56001                           XCH      L                                     #  AND ID BACK INTO A
042728,000443: 05,3762           13701                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).
042729,000444: 
042730,000445: 05,3763           34745        WOTEST             CA       BIT7                                  #  AT THE BEGINNING OF THE LIST THE WORD
042731,000446: 05,3764           00006                           EXTEND                                         #  ORDER BIT WILL BE SET BACK TO ZERO
042732,000447: 05,3765           02013                           RAND     CHAN13                                
042733,000448: 05,3766           10000                           CCS      A                                     
042734,000449: 05,3767           00335                           TC       DNTMGOTO                              
042735,000450: 05,3770           34745                           CA       BIT7                                  
042736,000451: 05,3771           13512                           TCF      WO1                                   
042737,000452: 

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