Source Code

These source-code files are part of a reconstructed copy of Luminary 98, a development version of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 98 listing.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

042063,000002:                                                                                                  ## Copyright:   Public domain.
042064,000003:                                                                                                  ## Filename:    DOWN-TELEMETRY_PROGRAM.agc
042065,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
042066,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
042067,000006:                                                                                                  ##              development version of the flight software for the Lunar 
042068,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
042069,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
042070,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
042071,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
042072,000011:                                                                                                  ##              Luminary 98 and 99.
042073,000012:                                                                                                  ## Reference:   pp. 988-997
042074,000013:                                                                                                  ## Assembler:   yaYUL
042075,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
042076,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
042077,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
042078,000017: 

Page 988

042080,000019:                                                                                                  #  PROGRAM NAME - DOWN TELEMETRY PROGRAM
042081,000020:                                                                                                  #  MOD NO. - 0           TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
042082,000021:                                                                                                  #                        PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
042083,000022:                                                                                                  #                        THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS.  REFER TO DOWNLINK
042084,000023:                                                                                                  #                        LISTS LOG SECTION FOR MORE DETAILS.  HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
042085,000024:                                                                                                  #                        OF DOWN TELEMETRY DATA.
042086,000025:                                                                                                  #  MOD BY - KILROY, SMITH, DEWITT
042087,000026:                                                                                                  #  DATE - 02 OCT 67
042088,000027:                                                                                                  #  AUTHORS - KILROY, SMITH, DEWITT, DEWOLF, FAGIN
042089,000028:                                                                                                  #  LOG SECTION - DOWN-TELEMETRY PROGRAM
042090,000029: 
042091,000030:                                                                                                  #  FUNCTIONAL DESCRIPTION - THIS ROUTINE IS INITIATED BY TELEMETRY END
042092,000031:                                                                                                  #        PULSE FROM THE DOWNLINK TELEMETRY CONVERTER.  THIS PULSE OCCURS
042093,000032:                                                                                                  #        AT 50 TIMES PER SEC (EVERY 20 MS) THEREFORE DODOWNTM IS
042094,000033:                                                                                                  #        EXECUTED AT THESE RATES.  THIS ROUTINE SELECTS THE APPROPRIATE
042095,000034:                                                                                                  #        AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
042096,000035:                                                                                                  #        CHANNELS 34 AND 35.  THE INFORMATION IS THEN GATED OUT FROM THE
042097,000036:                                                                                                  #        LGC IN SERIAL FASHION.
042098,000037: 
042099,000038:                                                                                                  #        THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST.  SINCE DOWNRUPTS
042100,000039:                                                                                                  #        OCCUR EVERY 20 MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
042101,000040:                                                                                                  #        CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
042102,000041:                                                                                                  #        OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
042103,000042: 
042104,000043:                                                                                                  #  CALLING SEQUENCE - NONE
042105,000044:                                                                                                  #        PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
042106,000045:                                                                                                  #        RESULT OF A DOWNRUPT.  CONTROL IS RETURNED VIA TCF RESUME WHICH
042107,000046:                                                                                                  #        IN EFFECT IS A RESUME.
042108,000047: 
042109,000048:                                                                                                  #  SUBROUTINES CALLED - NONE
042110,000049: 
042111,000050:                                                                                                  #  NORMAL EXIT MODE - TCF RESUME
042112,000051: 
042113,000052:                                                                                                  #  ALARM OR ABORT EXIT MODE - NONE
042114,000053: 
042115,000054:                                                                                                  #  RESTART PROTECTION:
042116,000055:                                                                                                  #        ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER (ACTUALLY
042117,000056:                                                                                                  #        DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST (I.E. CURRENT CONTENTS OF DNLSTADR).  THIS HAS THE
042118,000057:                                                                                                  #        EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
042119,000058:                                                                                                  #        THE RESTART (OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
042120,000059:                                                                                                  #        DOWNLIST.
042121,000060: 
042122,000061:                                                                                                  #        ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
042123,000062: 
042124,000063:                                                                                                  #  DOWNLINK LIST SELECTION:
042125,000064:                                                                                                  #        THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
042126,000065:                                                                                                  #        1.      FRESH START
042127,000066:                                                                                                  #        2.      V37EXXE WHERE XX = THE MAJOR MODE BEING SELECTED.
042128,000067:                                                                                                  #        3.      UPDATE PROGRAM (P27)
042129,000068:                                                                                                  #        4.      NON-V37 SELECTABLE TYPE PROGRAMS (E.G. AGS INITIALIZATION (SUNDANCE, LUMINARY) AND P61-P62
042130,000069:                                                                                                  #                TRANSITION (COLOSSUS) ETC.).
042131,000070: 
042132,000071:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
042133,000072:                                                                                                  #        READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
042134,000073: 
042135,000074:                                                                                                  #  OUTPUT - EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS (I.E. 200 LGC
042136,000075:                                                                                                  #        COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
042137,000076: 
042138,000077:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED - NONE
042139,000078:                                                                                                  #        'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
042140,000079: 
042141,000080:                                                                                                  #  DEBRIS (ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM) -
042142,000081:                                                                                                  #        LDATALST, DNTMBUFF TO DNTMBUFF +21D, TMINDEX, DNQ.
042143,000082: 

Page 989
This page is empty

042146,000085: 

Page 990

042148,000087:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
042149,000088:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
042150,000089: 
042151,000090:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
042152,000091:                                                                                                  #  1.    DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
042153,000092:                                                                                                  #        DOWN-TELEMETRY PROGRAM.  THIS IS DONE FOR EASE OF CODING, FASTER
042154,000093:                                                                                                  #        EXECUTION.
042155,000094:                                                                                                  #  2.    EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
042156,000095:                                                                                                  #        SUBLISTS.
042157,000096:                                                                                                  #  3.    A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
042158,000097:                                                                                                  #        DOWNLINK LISTS.  ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
042159,000098:                                                                                                  #        CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
042160,000099:                                                                                                  #  4.    SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
042161,000100:                                                                                                  #        SAVED IN A BUFFER DURING ONE DOWNRUPT.
042162,000101:                                                                                                  #  5.    THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
042163,000102:                                                                                                  #        OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
042164,000103:                                                                                                  #        IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
042165,000104:                                                                                                  #  6.    ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
042166,000105:                                                                                                  #        CREATED FOR THE DOWNLIST PROGRAM.
042167,000106:                                                                                                  #        A.      1DNADR                  1-WORD DOWNLIST ADDRESS.
042168,000107:                                                                                                  #                SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
042169,000108:                                                                                                  #                HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
042170,000109:                                                                                                  #        B.      2DNADR - 6DNADR         N-WORD DOWNLIST ADDRESS, N = 2 - 6.
042171,000110:                                                                                                  #                SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
042172,000111:                                                                                                  #                FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
042173,000112:                                                                                                  #                PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
042174,000113:                                                                                                  #        C.      DNCHAN                  DOWNLIST CHANNEL ADDRESS.
042175,000114:                                                                                                  #                SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
042176,000115:                                                                                                  #                A PAIR OF CHANNELS FOR DOWN TELEMETRY.
042177,000116:                                                                                                  #        D.      DNPTR                   DOWN TELEMETRY SUBLIST POINTER.
042178,000117:                                                                                                  #                SAME AS CAF BUT TAGGED AS A CONSTANT.  USED IN CONTROL LIST TO POINT TO A SUBLIST.
042179,000118:                                                                                                  #                CAUTION --- A DNPTR CANNOT BE USED IN A SUBLIST.
042180,000119:                                                                                                  #  7.    THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
042181,000120:                                                                                                  #        A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST (ONLY).
042182,000121:                                                                                                  #  8.    IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
042183,000122: 
042184,000123:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
042185,000124:                                                                                                  #  (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO IT IS CLEAR THAT THESE THINGS CANNOT BE
042186,000125:                                                                                                  #  DONE)
042187,000126:                                                                                                  #  1.    SNAPSHOT DOWNLIST:
042188,000127:                                                                                                  #        (A) CANNOT CONTAIN THE FOLLOWING ECADRS (I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
042189,000128:                                                                                                  #        (B) CAN CONTAIN ONLY 1DNADR'S
042190,000129:                                                                                                  #  2.    ALL DOWNLINKED DATA (EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
042191,000130:                                                                                                  #        EQUIVALENT OF THE FOLLOWING ECADRS (I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
042192,000131:                                                                                                  #        (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR TO 6DNADR WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
042193,000132:                                                                                                  #  3.    CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777

Page 991

042195,000134:                                                                                                  #  4.    THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
042196,000135:                                                                                                  #        CONTROL SECTION OF THE DOWNLIST.
042197,000136:                                                                                                  #  5.    'DNCHAN 0' CANNOT BE USED.
042198,000137:                                                                                                  #  6.    'DNPTR 0' CANNOT BE USED.
042199,000138:                                                                                                  #  7.    DNPTR CANNOT APPEAR IN A SUBLIST.
042200,000139: 
042201,000140:                                                                                                  #  EBANK SETTINGS
042202,000141:                                                                                                  #        IN THE PROCESS OF SETTING THE EBANK (WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
042203,000142:                                                                                                  #        'GARBAGE' INTO BITS15-12 OF EBANK.  HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
042204,000143:                                                                                                  #        SIGNIFICANT SOMEDAY IN THE FUTURE.  IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE (BY MASKING ETC.)
042205,000144:                                                                                                  #        THAT BITS 15-12 OF EBANK ARE ZERO.
042206,000145: 
042207,000146:                                                                                                  #  INITIALIZATION REQUIRED - TO INTERRUPT CURRENT LIST AND START A NEW ONE..
042208,000147:                                                                                                  #        1. ADRES OF DOWNLINK LIST INTO DNLSTADR
042209,000148:                                                                                                  #        2. NEGONE INTO SUBLIST
042210,000149:                                                                                                  #        3. NEGONE INTO DNECADR
042211,000150: 
042212,000151: 22,3711                                           BANK     22                                    
042213,000152: 05,2000                                           SETLOC   DOWNTELM                              
042214,000153: 05,2000                                           BANK                                           
042215,000154: 
042216,000155: 05,3506     0340                                  EBANK=   DNTMBUFF                              
042217,000156: 
042218,000157: 05,3506                                           COUNT*   $$/DPROG                              
042219,000158: 05,3506           54016        DODOWNTM           TS       BANKRUPT                              
042220,000159: 05,3507           00006                           EXTEND                                         
042221,000160: 05,3510           22012                           QXCH     QRUPT                                 #  SAVE Q
042222,000161: 05,3511           13763                           TCF      WOTEST                                
042223,000162: 05,3512           00006        WO1                EXTEND                                         #  SET WORD ORDER BIT TO 1 ONLY IF IT
042224,000163: 05,3513           05013                           WOR      CHAN13                                #  ALREADY ISN'T.
042225,000164: 05,3514           00335                           TC       DNTMGOTO                              #  GOTO APPROPRIATE PHASE OF PROGRAM
042226,000165: 
042227,000166: 05,3515           37747        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
042228,000167: 05,3516           54337                           TS       SUBLIST                               #  WORDS TO MINUS ONE
042229,000168: 05,3517           54336                           TS       DNECADR                               
042230,000169: 05,3520           33640                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS
042231,000170: 05,3521           54335                           TS       DNTMGOTO                              #  GO TO DNPHASE2
042232,000171: 05,3522           13536                           TCF      NEWLIST                               
042233,000172: 05,3523           10336        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
042234,000173: 05,3524           03653        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
042235,000174: 05,3525           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
042236,000175: 05,3526           13527                           TCF      +1                                    #  (ECADR OF 3776 + 74001 = 77777)
042237,000176: 
042238,000177: 05,3527           10337                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL
042239,000178: 05,3530           13666                           TCF      NEXTINSL                              #  YES

Page 992

042241,000180: 05,3531           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
042242,000181: 
042243,000182: 05,3532           30334        CHKLIST            CA       CTLIST                                
042244,000183: 05,3533           00006                           EXTEND                                         
042245,000184: 05,3534           63536                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
042246,000185: 05,3535           13543                           TCF      NEXTINCL                              
042247,000186: 05,3536           50332        NEWLIST            INDEX    DNLSTCOD                              
042248,000187: 05,3537           32441                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
042249,000188: 05,3540           54334                           TS       CTLIST                                #        STARTING ADDRESS OF NEW LIST
042250,000189: 05,3541           40332                           CS       DNLSTCOD                              
042251,000190: 05,3542           13756                           TCF      SENDID     +3                         
042252,000191: 05,3543           50334        NEXTINCL           INDEX    CTLIST                                
042253,000192: 05,3544           30000                           CA       0                                     
042254,000193: 05,3545           10000                           CCS      A                                     
042255,000194: 05,3546           24334                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
042256,000195: 05,3547           13553                           TCF      +4                                    #  ON NEXT ENTRY TO PROG.  (A SHOULD NOT =0)
042257,000196: 05,3550           56334                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
042258,000197: 05,3551           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
042259,000198: 05,3552           56334                           XCH      CTLIST                                #                                  (ST IN )
042260,000199: 05,3553           24000                 +4        INCR     A                                     #                                  (CTLIST)
042261,000200: 05,3554           54336                           TS       DNECADR                               #  SAVE DNADR
042262,000201: 05,3555           63525                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
042263,000202: 05,3556           10000                           CCS      A                                     
042264,000203: 05,3557           13563                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
042265,000204: 05,3560           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14 (CAN'T GET HERE)
042266,000205: 05,3561           13563                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
042267,000206: 05,3562           03605        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
042268,000207: 05,3563           30336                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
042269,000208: 05,3564           63560                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
042270,000209: 05,3565           00006                           EXTEND                                         
042271,000210: 05,3566           63653                           BZMF     FETCH2WD                              #  YES.  (A MUST NEVER BE ZERO)
042272,000211: 05,3567           67741                           AD       MINB12                                #  NO- IS IT A POINTER (DNPTR) OR A
042273,000212: 05,3570           00006                           EXTEND                                         #      CHANNEL(DNCHAN)
042274,000213: 05,3571           63611                           BZMF     DODNPTR                               #  IT'S A POINTER.  (A MUST NEVER BE ZERO)
042275,000214: 
042276,000215: 05,3572           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND)  IT S A CHANNEL
042277,000216: 05,3573           50336                           INDEX    DNECADR                               
042278,000217: 05,3574           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
042279,000218: 05,3575           54001                           TS       L                                     
042280,000219: 05,3576           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
042281,000220: 05,3577           50336                           INDEX    DNECADR                               
042282,000221: 05,3600           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
042283,000222: 05,3601           54336                           TS       DNECADR                               #  SET DNECADR
042284,000223: 05,3602           37747                           CA       NEGONE                                #        TO MINUS
042285,000224: 05,3603           56336                           XCH      DNECADR                               #                WHILE PRESERVING A.
042286,000225: 05,3604           13701                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
042287,000226: 
042288,000227: 05,3605           44745        WOZERO             CS       BIT7                                  
042289,000228: 05,3606           00006                           EXTEND                                         
042290,000229: 05,3607           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO

Page 993

042292,000231: 05,3610           00002                           TC       Q                                     #  RETURN TO CALLER
042293,000232: 
042294,000233: 05,3611           50336        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
042295,000234: 05,3612           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
042296,000235: 05,3613           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
042297,000236: 05,3614           30336                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
042298,000237: 05,3615           13665                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
042299,000238: 
042300,000239: 05,3616           56336                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
042301,000240: 05,3617           54337                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
042302,000241: 05,3620           34755                           CAF      ZERO                                  #        A    INTO     A
042303,000242: 05,3621           56336                           XCH      TMINDEX                               #  (NOTE..  TMINDEX = DNECADR)
042304,000243: 
042305,000244:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND) IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
042306,000245:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
042307,000246:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
042308,000247:                                                                                                  #  TO MINIMIZE TIME.  THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
042309,000248:                                                                                                  #  THESE RULES ARE ......
042310,000249:                                                                                                  #        1.      ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
042311,000250:                                                                                                  #        2.      THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY BANK.
042312,000251: 
042313,000252: 05,3622           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
042314,000253: 05,3623           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
042315,000254: 05,3624           00006                           EXTEND                                         
042316,000255: 05,3625           50000                           INDEX    A                                     
042317,000256: 05,3626  E3,1401                                  EBANK=   1401                                  
042318,000257: 05,3626           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
042319,000258: 05,3627     0340                                  EBANK=   DNTMBUFF                              
042320,000259: 05,3627           50336                           INDEX    TMINDEX                               
042321,000260: 05,3630           52341                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
042322,000261: 05,3631           24336                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
042323,000262: 05,3632           24336                           INCR     TMINDEX                               
042324,000263: 05,3633           24337        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT
042325,000264: 05,3634           50337                           INDEX    SUBLIST                               
042326,000265: 05,3635           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
042327,000266: 05,3636           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.
042328,000267: 05,3637           13622                           TCF      SNAPLOOP                              #  NOT LAST TWO.
042329,000268: 05,3640           03523        LDNPHAS2           GENADR   DNPHASE2                              
042330,000269: 05,3641           54337                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
042331,000270: 05,3642           37747                           CA       NEGONE                                #  SET DNECADR AND
042332,000271: 05,3643           54336                           TS       DNECADR                               #        SUBLIST POINTERS
042333,000272: 05,3644           56337                           XCH      SUBLIST                               #                TO NEGATIVE VALUES.
042334,000273: 05,3645           54003                           TS       EBANK                                 
042335,000274: 05,3646           74357                           MASK     LOW8                                  
042336,000275: 05,3647           00006                           EXTEND                                         
042337,000276: 05,3650           50000                           INDEX    A                                     
042338,000277: 05,3651  E3,1401                                  EBANK=   1401                                  
042339,000278: 05,3651           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.

Page 994

042341,000280: 05,3652     0340                                  EBANK=   DNTMBUFF                              
042342,000281: 05,3652           13701        SNAPEND            TCF      DNTMEXIT                              #  NOW GO SEND THEM.
042343,000282: 
042344,000283: 05,3653           30336        FETCH2WD           CA       DNECADR                               
042345,000284: 05,3654           54003                           TS       EBANK                                 #  SET EBANK
042346,000285: 05,3655           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
042347,000286: 05,3656           54001                           TS       L                                     
042348,000287: 05,3657           33531                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
042349,000288: 05,3660           26336                           ADS      DNECADR                               
042350,000289: 05,3661           00006                           EXTEND                                         
042351,000290: 05,3662           50001                           INDEX    L                                     
042352,000291: 05,3663  E3,1400                                  EBANK=   1400                                  
042353,000292: 05,3663           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
042354,000293: 05,3664     0340                                  EBANK=   DNTMBUFF                              
042355,000294: 05,3664           13701                           TCF      DNTMEXIT                              #  NOW GO SEND THEM.
042356,000295: 
042357,000296: 05,3665           54337        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
042358,000297: 05,3666           50337        NEXTINSL           INDEX    SUBLIST                               
042359,000298: 05,3667           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
042360,000299: 05,3670           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
042361,000300: 05,3671           24337                           INCR     SUBLIST                               #  NO -
042362,000301: 05,3672           13676                           TCF      +4                                    
042363,000302: 05,3673           54337                           TS       SUBLIST                               #  SAVE A.
042364,000303: 05,3674           37747                           CA       NEGONE                                #  SET SUBLIST TO MINUS
042365,000304: 05,3675           56337                           XCH      SUBLIST                               #  RETRIEVE A.
042366,000305: 05,3676           24000                 +4        INCR     A                                     
042367,000306: 05,3677           54336                           TS       DNECADR                               #  SAVE DNADR
042368,000307: 05,3700           13564                           TCF      SETWO      +2                         #  GO USE COMMON CODING (PROBLEMS WOULD
042369,000308:                                                                                                  #  OCCUR IF THE PROGRAM ENCOUNTERED A
042370,000309:                                                                                                  #  DNPTR NOW)
042371,000310: 
042372,000311: 05,3701           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
042373,000312: 05,3702           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
042374,000313: 05,3703           30001                           CA       L                                     #  RESPECTIVELY
042375,000314: 05,3704           00006        TMEXITL            EXTEND                                         
042376,000315: 05,3705           01035                           WRITE    DNTM2                                 
042377,000316: 05,3706           15270        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
042378,000317: 
042379,000318: 05,3707     7741               MINB12             EQUALS   -1/8                                  
042380,000319: 05,3707     0336               DNECADR            EQUALS   TMINDEX                               
042381,000320: 05,3707     0334               CTLIST             EQUALS   LDATALST                              
042382,000321: 05,3707     0337               SUBLIST            EQUALS   DNQ                                   
042383,000322: 

Page 995

042385,000324:                                                                                                  #  SUBROUTINE NAME - DNDUMP
042386,000325: 
042387,000326:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL ERASABLE STORAGE 'N' TIMES. (N=1 TO 4).  BANKS ARE SENT ONE AT A TIME
042388,000327:                                                                                                  #        EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
042389,000328:                                                                                                  #        EBANK.  EBANKS ARE DUMPED IN ORDER (I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
042390,000329: 
042391,000330:                                                                                                  #  CALLING SEQUENCE - THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
042392,000331:                                                                                                  #        AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
042393,000332:                                                                                                  #        WILL BEGIN.
042394,000333: 
042395,000334:                                                                                                  #        ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
042396,000335:                                                                                                  #        BY THE FOLLOWING:
042397,000336: 
042398,000337:                                                                                                  #        1.      A FRESH START
042399,000338:                                                                                                  #        2.      COMPLETION OF ALL DOWNLINK DUMPS REQUESTED (ACCORDING TO BITS SET IN DUMPCNT).  NOTE THAT DUMPCNT
042400,000339:                                                                                                  #                CAN BE ALTERED BY A V21N01.
042401,000340:                                                                                                  #        3.      AND INVOLUNTARILY BY A RESTART.
042402,000341: 
042403,000342:                                                                                                  #  NORMAL EXIT MODE - TCF DNPHASE1
042404,000343: 
042405,000344:                                                                                                  #  ALARM OR ABORT MODE - NONE
042406,000345: 
042407,000346:                                                                                                  #  *SUBROUTINES CALLED - NONE.
042408,000347: 
042409,000348:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED -
042410,000349:                                                                                                  #        DUMPCNT         OCT 20000       IF 4 COMPLETE ERASABLE DUMPS ARE DESIRED
042411,000350:                                                                                                  #        DUMPCNT         OCT 10000       IF 2 COMPLETE ERASABLE DUMPS ARE DESIRED
042412,000351:                                                                                                  #        DUMPCNT         OCT 04000       IF 1 COMPLETE ERASABLE DUMP  IS  DESIRED
042413,000352: 
042414,000353:                                                                                                  #  DEBRIS - DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
042415,000354: 
042416,000355:                                                                                                  #  TIMING -      TIME (IN SECS) = ((NO.DUMPS)*(NO.EBANKS)*(WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
042417,000356:                                                                                                  #                TIME (IN SECS) =  (   4    )*(    8    )*(    256     +     4   )  /     100
042418,000357:                                                                                                  #                THUS TIME (IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
042419,000358: 
042420,000359:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM -
042421,000360:                                                                                                  #        (REMINDER - THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
042422,000361:                                                                                                  #        DOWNLIST                                W
042423,000362:                                                                                                  #          WORD  TAKEN FROM CONTENTS OF  EXAMPLE O       COMMENTS
042424,000363:                                                                                                  #            1   ERASID                   0177X  0       DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
042425,000364:                                                                                                  #            2   LOWIDCOD                 77340  1       DOWNLINK SYNCH BITS.  (SAME ONE USED IN ALL OTHER DOWNLISTS)
042426,000365:                                                                                                  #            3   DUMPLOC                  13400  1       (SEE NOTES ON DUMPLOC) 1 = 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
042427,000366:                                                                                                  #            4   TIME1                    14120  1       TIME IN CENTISECONDS
042428,000367:                                                                                                  #            5   FIRST WORD OF EBANK X    03400  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
042429,000368:                                                                                                  #            6   2ND   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
042430,000369:                                                                                                  #            7   3RD   WORD OF EBANK X    00142  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
042431,000370:                                                                                                  #            .                                   1
042432,000371:                                                                                                  #            .                                   1
042433,000372:                                                                                                  #            .                                   1
042434,000373:                                                                                                  #         260D   256TH WORD OF EBANK X    03777  1       IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
042435,000374: 
042436,000375:                                                                                                  #  NOTE -        DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
042437,000376:                                                                                                  #                THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
042438,000377:                                                                                                  #                                                X = NOT USED
042439,000378:                                                                                                  #                X ABC EEE RRRRRRRR            ABC = ERASABLE DUMP COUNTER (I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
042440,000379:                                                                                                  #                                                    COMPLETE ERASABLE DUMP NUMBER 1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
042441,000380:                                                                                                  #                                              EEE = EBANK BITS
042442,000381:                                                                                                  #                                         RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
042443,000382: 

Page 996

042445,000384: 05,3707           34755        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
042446,000385: 05,3710           54336                           TS       DUMPLOC                               #  ERASABLE DUMP
042447,000386: 05,3711           03753                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS
042448,000387: 05,3712           33721                           CA       LDNDUMP1                              #  SET DNTMGOTO
042449,000388: 05,3713           54335                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
042450,000389: 05,3714           30025                           CA       TIME1                                 #  PLACE TIME1
042451,000390: 05,3715           56001                           XCH      L                                     #  INTO L
042452,000391: 05,3716           30336                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
042453,000392: 05,3717           13701                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
042454,000393: 
042455,000394: 05,3720           03722        LDNDUMP            ADRES    DNDUMP                                
042456,000395: 05,3721           03735        LDNDUMP1           ADRES    DNDUMP1                               
042457,000396: 
042458,000397: 05,3722           34752        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
042459,000398: 05,3723           26336                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
042460,000399: 05,3724           74357                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
042461,000400: 05,3725           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
042462,000401: 05,3726           13737                           TCF      DNDUMP2                               #  NO - THEN CONTINUE DUMPING
042463,000402: 05,3727           30336                           CA       DUMPLOC                               #  YES - IS THIS THE END OF THE
042464,000403: 05,3730           70333                           MASK     DUMPCNT                               #  N TH (N = 1 TO 4) COMPLETE ERASABLE
042465,000404: 05,3731           77722                           MASK     PRIO34                                #  DUMP (BIT14 FOR 4, BIT13 FOR 2 OR BIT12
042466,000405: 05,3732           10000                           CCS      A                                     #  FOR 1 COMPLETE ERASABLE DUMP(S)).
042467,000406: 05,3733           13515                           TCF      DNPHASE1                              #  YES - START SENDING INTERRUPTED DOWNLIST
042468,000407:                                                                                                  #  AGAIN
042469,000408: 05,3734           13711                           TCF      DNDUMPI    +2                         #  NO - GO BACK AND INITIALIZE NEXT BANK
042470,000409: 
042471,000410: 05,3735           33720        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
042472,000411: 05,3736           54335                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
042473,000412: 
042474,000413: 05,3737           30336        DNDUMP2            CA       DUMPLOC                               
042475,000414: 05,3740           54003                           TS       EBANK                                 #  SET EBANK
042476,000415: 05,3741           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
042477,000416: 05,3742           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
042478,000417: 05,3743           34754                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
042479,000418: 05,3744           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
042480,000419: 05,3745           50002                           INDEX    Q                                     
042481,000420: 05,3746  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
042482,000421: 05,3746           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
042483,000422: 05,3747           56001                           XCH      L                                     
042484,000423: 05,3750           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
042485,000424: 05,3751           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
042486,000425: 05,3752     0340                                  EBANK=   DNTMBUFF                              
042487,000426: 05,3752           13701                           TCF      DNTMEXIT                              #  GO SEND THEM
042488,000427: 
042489,000428: 05,3753           00006        SENDID             EXTEND                                         #  ** ENTRANCE USED BY ERASABLE DUMP PROG.**
042490,000429: 05,3754           22335                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
042491,000430: 05,3755           35011                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
042492,000431: 
042493,000432: 05,3756           54001                           TS       L                                     #  ** ENTRANCE USED BY REGULAR DOWNLINK PG **

Page 997

042495,000434: 05,3757           03605                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
042496,000435: 05,3760           32065                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
042497,000436: 05,3761           56001                           XCH      L                                     #  AND ID BACK INTO A
042498,000437: 05,3762           13701                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).
042499,000438: 
042500,000439: 05,3763           34745        WOTEST             CA       BIT7                                  #  AT THE BEGINNING OF THE LIST THE WORD
042501,000440: 05,3764           00006                           EXTEND                                         #  ORDER BIT WILL BE SET BACK TO ZERO
042502,000441: 05,3765           02013                           RAND     CHAN13                                
042503,000442: 05,3766           10000                           CCS      A                                     
042504,000443: 05,3767           00335                           TC       DNTMGOTO                              
042505,000444: 05,3770           34745                           CA       BIT7                                  
042506,000445: 05,3771           13512                           TCF      WO1                                   
042507,000446: 

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