Source Code

These source-code files were transcribed from a printout in Don Eyles's personal collection, scanned by archive.org, and financially sponsored by Linden Sims. A team of volunteers performed the transcription and proof-reading. The scanned page images are available at the Virtual AGC Project website, as well as higher-quality (but much larger) images at the Virtual AGC Project's collection in the Internet Archive. Report any problems by creating "issues" at the Virtual AGC Project's GitHub Repository.

Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 56 OF AGC PROGRAM ZERLINA BY ZOROASTER
	9:12 OCT. 21,1970
Note that the date is the date of the printout, not the date of the program revision.

043768,000002:                                                                                                  ## Copyright:   Public domain.
043769,000003:                                                                                                  ## Filename:    DOWN-TELEMETRY_PROGRAM.agc
043770,000004:                                                                                                  ## Purpose:     A log section of Zerlina 56, the final revision of
043771,000005:                                                                                                  ##              Don Eyles's offline development program for the variable 
043772,000006:                                                                                                  ##              guidance period servicer. It also includes a new P66 with LPD 
043773,000007:                                                                                                  ##              (Landing Point Designator) capability, based on an idea of John 
043774,000008:                                                                                                  ##              Young's. Neither of these advanced features were actually flown,
043775,000009:                                                                                                  ##              but Zerlina was also the birthplace of other big improvements to
043776,000010:                                                                                                  ##              Luminary including the terrain model and new (Luminary 1E)
043777,000011:                                                                                                  ##              analog display programs. Zerlina was branched off of Luminary 145,
043778,000012:                                                                                                  ##              and revision 56 includes all changes up to and including Luminary
043779,000013:                                                                                                  ##              183. It is therefore quite close to the Apollo 14 program,
043780,000014:                                                                                                  ##              Luminary 178, where not modified with new features.
043781,000015:                                                                                                  ## Reference:   pp. 979-988
043782,000016:                                                                                                  ## Assembler:   yaYUL
043783,000017:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
043784,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
043785,000019:                                                                                                  ## Mod history: 2017-07-28 MAS  Created from Luminary 210.
043786,000020:                                                                                                  ##              2017-08-27 MAS  Updated for Zerlina 56.
043787,000021: 

Page 979

043789,000023:                                                                                                  #  PROGRAM NAME- DOWN TELEMETRY PROGRAM
043790,000024:                                                                                                  #  MOD NO.- 0      TO COMPLETELY REWRITE THE DOWN TELEMETRY PROGRAM AND DOWNLINK ERASABLE DUMP PROGRAM FOR THE
043791,000025:                                                                                                  #                  PURPOSE OF SAVING APPROXIMATELY 150 WORDS OF CORE STORAGE.
043792,000026:                                                                                                  #                  THIS CHANGE REQUIRES AN ENTIRELY NEW METHOD OF SPECIFYING DOWNLINK LISTS.REFER TO DOWNLINK
043793,000027:                                                                                                  #                  LISTS LOG SECTION FOR MORE DETAILS. HOWEVER THIS CHANGE WILL NOT AFFECT THE GROUND PROCESSING
043794,000028:                                                                                                  #                  OF DOWN TELEMETRY DATA.
043795,000029:                                                                                                  #  MOD BY-  KILROY, SMITH, DEWITT
043796,000030:                                                                                                  #  DATE-    02OCT67
043797,000031:                                                                                                  #  AUTHORS- KILROY, SMITH, DEWITT, DEWOLF, FAGIN
043798,000032:                                                                                                  #  LOG SECTION- DOWN-TELEMETRY PROGRAM
043799,000033:                                                                                                  #  FUNCTIONAL DESCRIPTION- THIS ROUTINE IS INITIATED BY TELEMETRY END
043800,000034:                                                                                                  #           PULSE FROM THE DOWNLINK TELEMETRY CONVERTER. THIS PULSE OCCURS
043801,000035:                                                                                                  #           AT 50 TIMES PER SEC(EVERY 20 MS) THEREFORE DODOWNTM IS
043802,000036:                                                                                                  #           EXECUTED AT THESE RATES. THIS ROUTINE SELECTS THE APPROPRIATE
043803,000037:                                                                                                  #           AGC DATA TO BE TRANSMITTED DOWNLINK AND LOADS IT INTO OUTPUT
043804,000038:                                                                                                  #           CHANNELS 34 AND 35. THE INFORMATION IS THEN GATED OUT FROM THE
043805,000039:                                                                                                  #           LGC IN SERIAL FASHION.
043806,000040:                                                                                                  #           THIS PROGRAM IS CODED FOR A 2 SECOND DOWNLIST. SINCE DOWNRUPTS
043807,000041:                                                                                                  #           OCCUR EVERY 20MS AND 2 AGC COMPUTER WORDS CAN BE PLACED IN
043808,000042:                                                                                                  #           CHANNELS 34 AND 35 DURING EACH DOWNRUPT THE PROGRAM IS CAPABLE
043809,000043:                                                                                                  #           OF SENDING 200 AGC WORDS EVERY 2 SECONDS.
043810,000044:                                                                                                  #  CALLING SEQUENCE- NONE
043811,000045:                                                                                                  #           PROGRAM IS ENTERED VIA TCF DODOWNTM WHICH IS EXECUTED AS A
043812,000046:                                                                                                  #           RESULT OF A DOWNRUPT. CONTROL IS RETURNED VIA TCF RESUME WHICH
043813,000047:                                                                                                  #           IN EFFECT IS A RESUME.
043814,000048:                                                                                                  #  SUBROUTINES CALLED- NONE
043815,000049:                                                                                                  #  NORMAL EXIT MODE- TCF RESUME
043816,000050:                                                                                                  #  ALARM OR ABORT EXIT MODE- NONE
043817,000051:                                                                                                  #  RESTART PROTECTION:
043818,000052:                                                                                                  #           ON A FRESH START AND RESTART THE 'STARTSUB' SUBROUTINE WILL INITIALIZE THE DOWNLIST POINTER(ACTUALLY
043819,000053:                                                                                                  #           DNTMGOTO) TO THE BEGINNING OF THE CURRENT DOWNLIST(I.E. CURRENT CONTENTS OF DNLSTADR). THIS HAS THE
043820,000054:                                                                                                  #           EFFECT OF IGNORING THE REMAINDER OF THE DOWNLIST WHICH THE DOWN-TELEMETRY PROGRAM WAS WORKING ON WHEN
043821,000055:                                                                                                  #           THE RESTART(OR FRESH START) OCCURRED AND RESUME DOWN TELEMETRY FROM THE BEGINNING OF THE CURRENT
043822,000056:                                                                                                  #           DOWNLIST.
043823,000057:                                                                                                  #           ALSO OF INTEREST IS THE FACT THAT ON A RESTART THE AGC WILL ZERO DOWNLINK CHANNELS 13, 34 AND 35.
043824,000058:                                                                                                  #  DOWNLINK LIST SELECTION:
043825,000059:                                                                                                  #        THE APPROPRIATE DOWNLINK LISTS ARE SELECTED BY THE FOLLOWING:
043826,000060:                                                                                                  #        1. FRESH START
043827,000061:                                                                                                  #        2. V37EXXE WHERE XX = THE MAJOR MODE BEING SELECTED.
043828,000062:                                                                                                  #        3. UPDATE PROGRAM(P27)
043829,000063:                                                                                                  #        4.     NON-V37 SELECTABLE TYPE PROGRAMS(E.G. AGS INITIALIZATION(SUNDANCE,LUMINARY) AND P61-P62
043830,000064:                                                                                                  #               TRANSITION(COLOSSUS) ETC.).
043831,000065:                                                                                                  #  DOWNLINK LIST RULES AND LIMITATIONS:
043832,000066:                                                                                                  #           READ SECTION(S) WHICH FOLLOW 'DEBRIS' WRITEUP.
043833,000067:                                                                                                  #  OUTPUT-  EVERY 2 SECONDS 100 DOUBLE PRECISION WORDS(I.E. 200 LGC
043834,000068:                                                                                                  #           COMPUTER WORDS) ARE TRANSMITTED VIA DOWNLINK.
043835,000069:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED- NONE
043836,000070:                                                                                                  #           'DNTMGOTO' AND 'DNLSTADR' ARE INITIALIZED BY THE FRESH START PROGRAM.
043837,000071:                                                                                                  #  DEBRIS(ERASABLE LOCATIONS DESTROYED BY THIS PROGRAM)-
043838,000072:                                                                                                  #           LDATALST,DNTMBUFF TO DNTMBUFF +21D,TMINDEX,DNQ.
043839,000073: 

Page 980

043841,000075: 
043842,000076: 

Page 981

043844,000078:                                                                                                  #  DODOWNTM IS ENTERED EVERY 20 MS BY AN INTERRUPT TRIGGERED BY THE
043845,000079:                                                                                                  #  RECEIPT OF AN ENDPULSE FROM THE SPACECRAFT TELEMETRY PROGRAMMER.
043846,000080: 
043847,000081:                                                                                                  #  NOTES REGARDING DOWNLINK LISTS ASSOCIATED WITH THIS PROGRAM:
043848,000082:                                                                                                  #  1. DOWNLISTS. - DOWNLISTS MUST BE COMPILED IN THE SAME BANK AS THE
043849,000083:                                                                                                  #     DOWN-TELEMETRY PROGRAM. THIS IS DONE FOR EASE OF CODING, FASTER
043850,000084:                                                                                                  #     EXECUTION.
043851,000085:                                                                                                  #  2. EACH DOWNLINK LIST CONSISTS OF A CONTROL LIST AND A NUMBER OF
043852,000086:                                                                                                  #     SUBLISTS.
043853,000087:                                                                                                  #  3. A SUBLIST REFERS TO A SNAPSHOT OR DATA COMMON TO THE SAME OR OTHER
043854,000088:                                                                                                  #     DOWNLINK LISTS.  ANY SUBLIST CONTAINING COMMON DATA NEEDS TO BE
043855,000089:                                                                                                  #     CODED ONLY ONCE FOR THE APPLICABLE DOWNLINK LISTS.
043856,000090:                                                                                                  #  4. SNAPSHOT SUBLISTS REFER SPECIFICALLY TO HOMOGENOUS DATA WHICH MUST BE
043857,000091:                                                                                                  #     SAVED IN A BUFFER DURING ONE DOWNRUPT.
043858,000092:                                                                                                  #  5. THE 1DNADR FOR THE 1ST WORD OF SNAPSHOT DATA IS FOUND AT THE END
043859,000093:                                                                                                  #     OF EACH SNAPSHOT SUBLIST, SINCE THE PROGRAM CODING SENDS THIS DP WORD
043860,000094:                                                                                                  #     IMMEDIATELY AFTER STORING THE OTHERS IN THE SNAPSHOT BUFFER.
043861,000095:                                                                                                  #  6. ALL LISTS ARE COMBINATIONS OF CODED ERASABLE ADDRESS CONSTANTS
043862,000096:                                                                                                  #     CREATED FOR THE DOWNLIST PROGRAM.
043863,000097:                                                                                                  #     A. 1DNADR              1-WORD DOWNLIST ADDRESS.
043864,000098:                                                                                                  #         SAME AS ECADR, BUT USED WHEN THE WORD ADDRESSED IS THE LEFT
043865,000099:                                                                                                  #         HALF OF A DOUBLE-PRECISION WORD FOR DOWN TELEMETRY.
043866,000100:                                                                                                  #     B. 2DNADR - 6DNADR     N-WORD DOWNLIST ADDRESS, N = 2 - 6.
043867,000101:                                                                                                  #         SAME AS 1DNADR, BUT WITH THE 4 UNUSED BITS OF THE ECADR FORMAT
043868,000102:                                                                                                  #         FILLED IN WITH 0001-0101.  USED TO POINT TO A LIST OF N DOUBLE-
043869,000103:                                                                                                  #         PRECISION WORDS, STORED CONSECUTIVELY, FOR DOWN TELEMETRY.
043870,000104:                                                                                                  #     C. DNCHAN              DOWNLIST CHANNEL ADDRESS.
043871,000105:                                                                                                  #         SAME AS 1DNADR, BUT WITH PREFIX BITS 0111.  USED TO POINT TO
043872,000106:                                                                                                  #         A PAIR OF CHANNELS FOR DOWN TELEMETRY.
043873,000107:                                                                                                  #     D. DNPTR               DOWN TELEMETRY SUBLIST POINTER.
043874,000108:                                                                                                  #      SAME AS CAF BUT TAGGED AS A CONSTANT. USED IN CONTROL LIST TO POINT TO A SUBLIST.
043875,000109:                                                                                                  #      CAUTION--- A DNPTR CANNOT BE USED IN A SUBLIST.
043876,000110:                                                                                                  #  7. THE WORD ORDER CODE IS SET TO ZERO AT THE BEGINNING OF EACH DOWNLIST (I.E. CONTROL LIST) AND WHEN
043877,000111:                                                                                                  #     A '1DNADR TIME2' IS DETECTED IN THE CONTROL LIST(ONLY).
043878,000112:                                                                                                  #  8. IN THE SNAPSHOT SUBLIST ONLY, THE DNADR'S CANNOT POINT TO THE FIRST WORD OF ANY EBANK.
043879,000113: 
043880,000114:                                                                                                  #  DOWNLINK LIST RESTRICTIONS:
043881,000115:                                                                                                  #    (THE FOLLOWING POINTS MAY BE LISTED ELSEWHERE BUT ARE LISTED HERE SO  IT IS CLEAR THAT THESE THINGS CANNOT BE
043882,000116:                                                                                                  #    DONE)
043883,000117:                                                                                                  #  1. SNAPSHOT DOWNLIST:
043884,000118:                                                                                                  #    (A) CANNOT CONTAIN THE FOLLOWING ECADRS(I.E. 1DNADR'S): 0, 400, 1000, 1400, 2000, 2400, 3000, 3400.
043885,000119:                                                                                                  #    (B) CAN CONTAIN ONLY 1DNADR'S
043886,000120: 
043887,000121:                                                                                                  #  2. ALL DOWNLINKED DATA(EXCEPT CHANNELS) IS PICKED UP BY A <DCA<SO DOWNLINK LISTS CANNOT CONTAIN THE
043888,000122:                                                                                                  #     EQUIVALENT OF THE FOLLOWING ECADRS(I.E. IDNADRS): 377, 777, 1377, 1777, 2377, 27777, 3377, 3777.
043889,000123: 
043890,000124:                                                                                                  #     (NOTE: THE TERM EQUIVALENT ' MEANT THAT THE IDNADR  TO 6DNADR  WILL BE PROCESSED LIKE 1 TO 6 ECADRS)
043891,000125: 
043892,000126:                                                                                                  #  3. CONTROL LISTS AND SUBLISTS CANNOT HAVE ENTRIES = OCTAL 00000 OR OCTAL 77777
043893,000127: 

Page 982

043895,000129:                                                                                                  #  4. THE '1DNADR TIME2' WHICH WILL CAUSE THE DOWNLINK PROGRAM TO SET THE WORDER CODE TO 3 MUST APPEAR IN THE
043896,000130:                                                                                                  #     CONTROL SECTION OF THE DOWNLIST.
043897,000131: 
043898,000132:                                                                                                  #  5. 'DNCHAN 0' CANNOT BE USED.
043899,000133: 
043900,000134:                                                                                                  #  6. 'DNPTR 0' CANNOT BE USED.
043901,000135: 
043902,000136:                                                                                                  #  7. DNPTR CANNOT APPEAR IN A SUBLIST.
043903,000137: 
043904,000138: 
043905,000139: 
043906,000140: 
043907,000141:                                                                                                  #  EBANK SETTINGS
043908,000142:                                                                                                  #           IN THE PROCESS OF SETTING THE EBANK(WHEN PICKING UP DOWNLINK DATA) THE DOWN TELEMETRY PROGRAM PUTS
043909,000143:                                                                                                  #           'GARBAGE' INTO BITS15-12 OF EBANK. HUGH BLAIR-SMITH WARNS US THAT BITS15-12 OF EBANK MAY BECOME
043910,000144:                                                                                                  #           SIGNIFICANT SOMEDAY IN THE FUTURE. IF/WHEN THAT HAPPENS, THE PROGRAM SHOULD INSURE(BY MASKING ETC.)
043911,000145:                                                                                                  #           THAT BITS15-12 OF EBANK ARE ZERO.
043912,000146:                                                                                                  #  INITIALIZATION REQUIRED- TO INTERRUPT CURRENT LIST AND START A NEW ONE..
043913,000147:                                                                                                  #      1.   ADRES OF DOWNLINK LIST INTO DNLSTADR
043914,000148:                                                                                                  #      2.   NEGONE INTO SUBLIST
043915,000149:                                                                                                  #      3.   NEGONE INTO DNECADR
043916,000150: 
043917,000151: 22,3663                                           BANK     22                                    
043918,000152: 05,2000                                           SETLOC   DOWNTELM                              
043919,000153: 05,2000                                           BANK                                           
043920,000154: 
043921,000155: 05,3507     0340                                  EBANK=   DNTMBUFF                              
043922,000156: 
043923,000157: 05,3507                                           COUNT*   $$/DPROG                              
043924,000158: 05,3507           54016        DODOWNTM           TS       BANKRUPT                              
043925,000159: 05,3510           00006                           EXTEND                                         
043926,000160: 05,3511           22012                           QXCH     QRUPT                                 #  SAVE Q
043927,000161: 05,3512           34745                           CA       BIT7                                  #  AT THE BEGINNING OF THE LIST THE WORD
043928,000162: 05,3513           00006                           EXTEND                                         #  ORDER BIT WILL BE SET BACK TO ZERO.
043929,000163: 05,3514           02013                           RAND     CHAN13                                
043930,000164: 05,3515           10000                           CCS      A                                     
043931,000165: 05,3516           00335                           TC       DNTMGOTO                              
043932,000166: 05,3517           06022                           TC       C13STALL                              
043933,000167: 05,3520           34745                           CA       BIT7                                  
043934,000168: 05,3521           00006                           EXTEND                                         #  SET WORD ORDER BIT TO 1 ONLY IF IT
043935,000169: 05,3522           05013                           WOR      CHAN13                                #  ALREADY ISN'T.
043936,000170: 05,3523           00335                           TC       DNTMGOTO                              #  GO TO APPROPRIATE PHASE OF PROGRAM
043937,000171: 
043938,000172: 05,2000                                           SETLOC   DOWNTELM                              
043939,000173: 05,2000                                           BANK                                           
043940,000174: 
043941,000175: 05,3524           37761        DNPHASE1           CA       NEGONE                                #  INITIALIZE ALL CONTROL WORDS
043942,000176: 05,3525           54337                           TS       SUBLIST                               #  WORDS TO MINUS ONE
043943,000177: 05,3526           54336                           TS       DNECADR                               
043944,000178: 05,3527           33654                           CA       LDNPHAS2                              #  SET DNTMGOTO =O ALL SUBSEQUENT DOWNRUPTS

Page 983

043946,000180: 05,3530           54335                           TS       DNTMGOTO                              #  GO TO DNPHASE2
043947,000181: 05,3531           13545                           TCF      NEWLIST                               
043948,000182: 05,3532           10336        DNPHASE2           CCS      DNECADR                               #  SENDING OF DATA IN PROGRESS
043949,000183: 05,3533           03667        DODNADR            TC       FETCH2WD                              #  YES - THEN FETCH THE NEXT 2 SP WORDS
043950,000184: 05,3534           77753        MINTIME2           -1DNADR  TIME2                                 #  NEGATIVE OF TIME2 1DNADR
043951,000185: 05,3535           13536                           TCF      +1                                    #  (ECADR OF  3776 + 74001 = 77777)
043952,000186: 
043953,000187: 05,3536           10337                           CCS      SUBLIST                               #  IS THE SUBLIST IN CONTROL
043954,000188: 05,3537           13702                           TCF      NEXTINSL                              #  YES
043955,000189: 05,3540           74001        DNADRDCR           OCT      74001                                 #  DNADR COUNT AND ECADR DECREMENTER
043956,000190: 
043957,000191: 05,3541           30334        CHKLIST            CA       CTLIST                                
043958,000192: 05,3542           00006                           EXTEND                                         
043959,000193: 05,3543           63545                           BZMF     NEWLIST                               #  IT WILL BE NEGATIVE AT END OF LIST
043960,000194: 05,3544           13552                           TCF      NEXTINCL                              
043961,000195: 05,3545           50333        NEWLIST            INDEX    DNLSTCOD                              
043962,000196: 05,3546           32456                           CA       DNTABLE                               #  INITIALIZE CTLIST WITH
043963,000197: 05,3547           54334                           TS       CTLIST                                #    STARTING ADDRESS OF NEW LIST
043964,000198: 05,3550           40333                           CS       DNLSTCOD                              
043965,000199: 05,3551           13771                           TCF      SENDID     +3                         
043966,000200: 05,3552           50334        NEXTINCL           INDEX    CTLIST                                
043967,000201: 05,3553           30000                           CA       0                                     
043968,000202: 05,3554           10000                           CCS      A                                     
043969,000203: 05,3555           24334                           INCR     CTLIST                                #  SET POINTER TO PICK UP NEXT CTLIST WORD
043970,000204: 05,3556           13562                           TCF      +4                                    #  ON NEXT ENTRY TO PROG. (A SHOULD NOT =0)
043971,000205: 05,3557           56334                           XCH      CTLIST                                #  SET CTLIST TO NEGATIVE AND PLACE(CODING)
043972,000206: 05,3560           40000                           COM                                            #  UNCOMPLEMENTED DNADR INTO A.    (FOR LA)
043973,000207: 05,3561           56334                           XCH      CTLIST                                #                                  (ST IN )
043974,000208: 05,3562           24000                 +4        INCR     A                                     #                                  (CTLIST)
043975,000209: 05,3563           54336                           TS       DNECADR                               #  SAVE DNADR
043976,000210: 05,3564           63534                           AD       MINTIME2                              #  TEST FOR TIME2 (NEG. OF ECADR)
043977,000211: 05,3565           10000                           CCS      A                                     
043978,000212: 05,3566           13572                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
043979,000213: 05,3567           47777        MINB1314           OCT      47777                                 #  MINUS BIT 13 AND 14  (CAN'T GET HERE)
043980,000214: 05,3570           13572                           TCF      SETWO      +1                         #  DON'T SET WORD ORDER CODE
043981,000215: 05,3571           03614        SETWO              TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO.
043982,000216: 05,3572           30336                 +1        CA       DNECADR                               #  RELOAD A WITH THE DNADR.
043983,000217: 05,3573           63567                 +2        AD       MINB1314                              #  IS THIS A REGULAR DNADR?
043984,000218: 05,3574           00006                           EXTEND                                         
043985,000219: 05,3575           63667                           BZMF     FETCH2WD                              #  YES. (A MUST NEVER BE ZERO)
043986,000220: 05,3576           67753                           AD       MINB12                                #  NO- IS IT A POINTER (DNPTR) OR A
043987,000221: 05,3577           00006                           EXTEND                                         #      CHANNEL(DNCHAN)
043988,000222: 05,3600           63625                           BZMF     DODNPTR                               #  IT'S A POINTER. (A MUST NEVER BE ZERO)
043989,000223: 
043990,000224: 05,3601           00006        DODNCHAN           TC       6                                     #  (EXECUTED AS EXTEND) IT S A CHANNEL
043991,000225: 05,3602           50336                           INDEX    DNECADR                               
043992,000226: 05,3603           44000                           INDEX    0          -4000                      #  (EXECUTED AS READ)
043993,000227: 05,3604           54001                           TS       L                                     
043994,000228: 05,3605           00006                           TC       6                                     #  (EXECUTED AS EXTEND)
043995,000229: 05,3606           50336                           INDEX    DNECADR                               

Page 984

043997,000231: 05,3607           43777                           INDEX    0          -4001                      #  (EXECUTED AS READ)
043998,000232: 05,3610           54336                           TS       DNECADR                               #  SET DNECADR
043999,000233: 05,3611           37761                           CA       NEGONE                                #      TO MINUS
044000,000234: 05,3612           56336                           XCH      DNECADR                               #          WHILE PRESERVING A.
044001,000235: 05,3613           13715                           TCF      DNTMEXIT                              #  GO SEND CHANNELS
044002,000236: 
044003,000237: 05,3614           00006        WOZERO             EXTEND                                         
044004,000238: 05,3615           23265                           QXCH     C13QSAV                               
044005,000239: 05,3616           22070                           LXCH     RUPTREG1                              
044006,000240: 05,3617           06022                           TC       C13STALL                              
044007,000241: 
044008,000242: 05,3620           22070                           LXCH     RUPTREG1                              
044009,000243: 05,3621           44745                           CS       BIT7                                  
044010,000244: 05,3622           00006                           EXTEND                                         
044011,000245: 05,3623           03013                           WAND     CHAN13                                #  SET WORD ORDER CODE TO ZERO
044012,000246: 05,3624           01265                           TC       C13QSAV                               
044013,000247: 
044014,000248: 05,3625           50336        DODNPTR            INDEX    DNECADR                               #  DNECADR CONTAINS ADRES OF SUBLIST
044015,000249: 05,3626           00000                           0        0                                     #  CLEAR AND ADD LIST ENTRY INTO A.
044016,000250: 05,3627           10000                           CCS      A                                     #  IS THIS A SNAPSHOT SUBLIST
044017,000251: 05,3630           30336                           CA       DNECADR                               #  NO, IT IS A REGULAR SUBLIST.
044018,000252: 05,3631           13701                           TCF      DOSUBLST                              #  A MUST NOT BE ZERO.
044019,000253: 
044020,000254: 05,3632           56336                           XCH      DNECADR                               #  YES, IT IS A SNAPSHOT SUBLIST.
044021,000255: 05,3633           54337                           TS       SUBLIST                               #  C(DNECADR) INTO SUBLIST
044022,000256: 05,3634           34755                           CAF      ZERO                                  #       A    INTO    A
044023,000257: 05,3635           56336                           XCH      TMINDEX                               #  (NOTE.. TMINDEX = DNECADR)
044024,000258: 
044025,000259: 
044026,000260:                                                                                                  #  THE FOLLOWING CODING (FROM SNAPLOOP TO SNAPEND)IS FOR THE PURPOSE OF TAKING A SNAPSHOT OF 12 DP REGISTERS.
044027,000261:                                                                                                  #  THIS IS DONE BY SAVING 11 DP REGISTERS IN DNTMBUFF AND SENDING THE FIRST DP WORD IMMEDIATELY.
044028,000262:                                                                                                  #  THE SNAPSHOT PROCESSING IS THE MOST TIME CONSUMING AND THEREFORE THE CODING AND LIST STRUCTURE WERE DESIGNED
044029,000263:                                                                                                  #  TO MINIMIZE TIME. THE TIME OPTIMIZATION RESULTS IN RULES UNIQUE TO THE SNAPSHOT PORTION OF THE DOWNLIST.
044030,000264:                                                                                                  #  THESE RULES ARE......
044031,000265:                                                                                                  #            1.    ONLY 1DNADR'S CAN APPEAR IN THE SNAPSHOT SUBLIST
044032,000266:                                                                                                  #            2.    THE 1DNADR'S CANNOT REFER TO THE FIRST LOCATION IN ANY  BANK.
044033,000267: 
044034,000268: 05,3636           54003        SNAPLOOP           TS       EBANK                                 #  SET EBANK
044035,000269: 05,3637           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
044036,000270: 05,3640           00006                           EXTEND                                         
044037,000271: 05,3641           50000                           INDEX    A                                     
044038,000272: 05,3642  E3,1401                                  EBANK=   1401                                  
044039,000273: 05,3642           31402                           DCA      1401                                  #  PICK UP 2 SNAPSHOT WORDS.
044040,000274: 05,3643     0340                                  EBANK=   DNTMBUFF                              
044041,000275: 05,3643           50336                           INDEX    TMINDEX                               
044042,000276: 05,3644           52341                           DXCH     DNTMBUFF                              #  STORE 2 SNAPSHOT WORDS IN BUFFER
044043,000277: 05,3645           24336                           INCR     TMINDEX                               #  SET BUFFER INDEX FOR NEXT 2 WORDS.
044044,000278: 05,3646           24336                           INCR     TMINDEX                               
044045,000279: 05,3647           24337        SNAPAGN            INCR     SUBLIST                               #  SET POINTER TO NEXT 2 WORDS OF SNAPSHOT

Page 985

044047,000281: 05,3650           50337                           INDEX    SUBLIST                               
044048,000282: 05,3651           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
044049,000283: 05,3652           10000                           CCS      A                                     #  TEST FOR LAST TWO WORDS OF SNAPSHOT.
044050,000284: 05,3653           13636                           TCF      SNAPLOOP                              #  NOT LAST TWO.
044051,000285: 05,3654           03532        LDNPHAS2           GENADR   DNPHASE2                              
044052,000286: 05,3655           54337                           TS       SUBLIST                               #  YES, LAST.  SAVE A.
044053,000287: 05,3656           37761                           CA       NEGONE                                #  SET DNECADR AND
044054,000288: 05,3657           54336                           TS       DNECADR                               #      SUBLIST POINTERS
044055,000289: 05,3660           56337                           XCH      SUBLIST                               #          TO NEGATIVE VALUES.
044056,000290: 05,3661           54003                           TS       EBANK                                 
044057,000291: 05,3662           74357                           MASK     LOW8                                  
044058,000292: 05,3663           00006                           EXTEND                                         
044059,000293: 05,3664           50000                           INDEX    A                                     
044060,000294: 05,3665  E3,1401                                  EBANK=   1401                                  
044061,000295: 05,3665           31402                           DCA      1401                                  #  PICK UP FIRST 2 WORDS OF SNAPSHOT.
044062,000296: 05,3666     0340                                  EBANK=   DNTMBUFF                              
044063,000297: 05,3666           13715        SNAPEND            TCF      DNTMEXIT                              #     NOW GO SEND THEM.
044064,000298: 
044065,000299: 05,3667           30336        FETCH2WD           CA       DNECADR                               
044066,000300: 05,3670           54003                           TS       EBANK                                 #  SET EBANK
044067,000301: 05,3671           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS
044068,000302: 05,3672           54001                           TS       L                                     
044069,000303: 05,3673           33540                           CA       DNADRDCR                              #  DECREMENT COUNT AND ECADR
044070,000304: 05,3674           26336                           ADS      DNECADR                               
044071,000305: 05,3675           00006                           EXTEND                                         
044072,000306: 05,3676           50001                           INDEX    L                                     
044073,000307: 05,3677  E3,1400                                  EBANK=   1400                                  
044074,000308: 05,3677           31401                           DCA      1400                                  #  PICK UP 2 DATA WORDS
044075,000309: 05,3700     0340                                  EBANK=   DNTMBUFF                              
044076,000310: 05,3700           13715                           TCF      DNTMEXIT                              #     NOW GO SEND THEM.
044077,000311: 
044078,000312: 05,3701           54337        DOSUBLST           TS       SUBLIST                               #  SET SUBLIST POINTER
044079,000313: 05,3702           50337        NEXTINSL           INDEX    SUBLIST                               
044080,000314: 05,3703           00000                           0        0                                     #  = CA SSSS (SSSS = NEXT ENTRY IN SUBLIST)
044081,000315: 05,3704           10000                           CCS      A                                     #  IS IT THE END OF THE SUBLIST
044082,000316: 05,3705           24337                           INCR     SUBLIST                               #  NO-
044083,000317: 05,3706           13712                           TCF      +4                                    
044084,000318: 05,3707           54337                           TS       SUBLIST                               #  SAVE A.
044085,000319: 05,3710           37761                           CA       NEGONE                                #  SET SUBLIST TO MINUS
044086,000320: 05,3711           56337                           XCH      SUBLIST                               #  RETRIEVE A.
044087,000321: 05,3712           24000                 +4        INCR     A                                     
044088,000322: 05,3713           54336                           TS       DNECADR                               #  SAVE DNADR
044089,000323: 05,3714           13573                           TCF      SETWO      +2                         #  GO USE COMMON CODING(PROBLEMS WOULD
044090,000324:                                                                                                  #  OCCUR IF THE PROGRAM ENCOUNTERED A
044091,000325:                                                                                                  #  DNPTR NOW)
044092,000326: 
044093,000327: 05,3715           00006        DNTMEXIT           EXTEND                                         #  DOWN-TELEMETRY EXIT
044094,000328: 05,3716           01034                           WRITE    DNTM1                                 #  TO SEND A + L TO CHANNELS 34 + 35
044095,000329: 05,3717           30001                           CA       L                                     #  RESPECTIVELY
044096,000330: 05,3720           00006        TMEXITL            EXTEND                                         

Page 986

044098,000332: 05,3721           01035                           WRITE    DNTM2                                 
044099,000333: 05,3722           15301        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
044100,000334: 
044101,000335: 05,3723     7753               MINB12             EQUALS   -1/8                                  
044102,000336: 

Page 987

044104,000338:                                                                                                  #  SUBROUTINE NAME- DNDUMP
044105,000339:                                                                                                  #  FUNCTIONAL DESCRIPTION - TO SEND (DUMP) ALL 8 BANKS OF ERASABLE STORAGE TWICE.  BANKS ARE SENT ONE AT A TIME
044106,000340:                                                                                                  #           EACH BANK IS PRECEEDED BY AN ID WORD, SYNCH BITS, ECADR AND TIME1 FOLLOWED BY THE 256D WORDS OF EACH
044107,000341:                                                                                                  #           EBANK. EBANKS ARE DUMPED IN ORDER(I.E. EBANK 0 FIRST, THEN EBANK1 ETC.)
044108,000342:                                                                                                  #  CALLING SEQUENCE- THE GROUND OR ASTRONAUT BY KEYING V74E CAN INITIALIZE THE DUMP.
044109,000343:                                                                                                  #           AFTER KEYING IN V74E THE CURRENT DOWNLIST WILL BE IMMEDIATELY TERMINATED AND THE DOWNLINK ERASABLE DUMP
044110,000344:                                                                                                  #           WILL BEGIN.
044111,000345:                                                                                                  #           ONCE INITIATED THE DOWNLINK ERASABLE DUMP CAN BE TERMINATED (AND INTERRUPTED DOWNLIST REINSTATED) ONLY
044112,000346:                                                                                                  #           BY THE FOLLOWING:
044113,000347:                                                                                                  #            1. A FRESH START
044114,000348:                                                                                                  #            2. COMPLETION OF BOTH COMPLETE DUMPS
044115,000349:                                                                                                  #            3. AND INVOLUNTARILY BY A RESTART.
044116,000350:                                                                                                  #  NORMAL EXIT MODE- TCF DNPHASE1
044117,000351:                                                                                                  #  ALARM OR ABORT MODE- NONE
044118,000352:                                                                                                  #  *SUBROUTINES CALLED- NONE.
044119,000353:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED-
044120,000354:                                                                                                  #           NONE
044121,000355:                                                                                                  #  DEBRIS- DUMPLOC, DUMPSW, DNTMGOTO, EBANK AND CENTRAL REGISTERS
044122,000356:                                                                                                  #  TIMING-   TIME(IN SECS) = ((NO.DUMPS)*(NO.EBANKS)* (WDSPEREBANK + NO.IDWDS)) / NO.WDSPERSEC
044123,000357:                                                                                                  #            TIME(IN SECS) =  (   4    )*(    8    )* (    256     +     4   )  /     100
044124,000358:                                                                                                  #       THUS TIME(IN SECS TO SEND DUMP OF ERASABLE 4 TIMES VIA DOWNLINK) = 83.2 SECONDS
044125,000359: 
044126,000360:                                                                                                  #  STRUCTURE OF ONE EBANK AS IT IS SENT BY DOWNLINK PROGRAM-
044127,000361:                                                                                                  #     (REMINDER-THIS ONLY DESCRIBES ONE OF THE 8 EBANKS X 4 (DUMPS) = 32 EBANKS WHICH WILL BE SENT BY DNDUMP)
044128,000362:                                                                                                  #          DOWNLIST                                 W
044129,000363:                                                                                                  #           WORD   TAKEN FROM CONTENTS OF   EXAMPLE O  COMMENTS
044130,000364: 
044131,000365:                                                                                                  #            1     ERASID                    0177X  0  DOWNLIST I.D. FOR DOWNLINK ERASABLE DUMP (X=7 CSM, 6 LM)
044132,000366:                                                                                                  #            2     LOWIDCOD                  77340  1  DOWNLINK SYNCH BITS.(SAME ONE USED IN ALL OTHER DOWNLISTS)
044133,000367:                                                                                                  #            3     DUMPLOC                   13400  1  (SEE NOTES ON DUMPLOC)1= 3RD ERAS DUMP, 3400=ECADR OF 5TH WD
044134,000368:                                                                                                  #            4     TIME1                     14120  1  TIME IN CENTISECONDS
044135,000369:                                                                                                  #            5     FIRST WORD OF EBANK X     03400  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1400 (ECADR 3400)
044136,000370:                                                                                                  #            6     2ND   WORD OF EBANK X     00142  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1401 (ECADR 3401)
044137,000371:                                                                                                  #            7     3RD   WORD OF EBANK X     00142  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1402 (ECADR 3402)
044138,000372:                                                                                                  #            .                                      1
044139,000373:                                                                                                  #            .                                      1
044140,000374:                                                                                                  #            .                                      1
044141,000375:                                                                                                  #           260D   256TH WORD OF EBANK X     03777  1  IN THIS EXAMPLE THIS WORD = CONTENTS OF E7,1777 (ECADR 3777)
044142,000376: 
044143,000377:                                                                                                  #  NOTE- DUMPLOC CONTAINS THE COUNTER AND ECADR FOR EACH WORD BEING SENT.
044144,000378:                                                                                                  #        THE BIT STRUCTURE OF DUMPLOC IS FOLLOWS---
044145,000379:                                                                                                  #                                        X = NOT USED
044146,000380:                                                                                                  #           X ABC EEE RRRRRRRR         ABC = ERASABLE DUMP COUNTER(I.E. ABC = 0,1,2 OR 3 WHICH MEANS THAT
044147,000381:                                                                                                  #                                            COMPLETE ERASABLE DUMP NUMBER  1,2,3 OR 4 RESPECTIVELY IS IN PROGRESS)
044148,000382:                                                                                                  #                                      EEE = EBANK BITS
044149,000383:                                                                                                  #                                 RRRRRRRR = RELATIVE ADDRESS WITHIN AN EBANK.
044150,000384: 
044151,000385: 05,3723           34755        DNDUMPI            CA       ZERO                                  #  INITIALIZE DOWNLINK
044152,000386: 05,3724           54336                           TS       DUMPLOC                               #  ERASABLE DUMP
044153,000387: 05,3725           03766                 +2        TC       SENDID                                #  GO SEND ID AND SYNCH BITS

Page 988

044155,000389: 05,3726           33735                           CA       LDNDUMP1                              #  SET DNTMGOTO
044156,000390: 05,3727           54335                           TS       DNTMGOTO                              #  TO LOCATION FOR NEXT PASS
044157,000391: 05,3730           30025                           CA       TIME1                                 #  PLACE TIME1
044158,000392: 05,3731           56001                           XCH      L                                     #  INTO L
044159,000393: 05,3732           30336                           CA       DUMPLOC                               #  AND ECADR OF THIS EBANK INTO A
044160,000394: 05,3733           13715                           TCF      DNTMEXIT                              #  SEND DUMPLOC AND TIME1
044161,000395: 
044162,000396: 05,3734           03736        LDNDUMP            ADRES    DNDUMP                                
044163,000397: 05,3735           03750        LDNDUMP1           ADRES    DNDUMP1                               
044164,000398: 
044165,000399: 05,3736           34752        DNDUMP             CA       TWO                                   #  INCREMENT ECADR IN DUMPLOC
044166,000400: 05,3737           26336                           ADS      DUMPLOC                               #  TO NEXT DP WORD TO BE
044167,000401: 05,3740           74357                           MASK     LOW8                                  #  DUMPED AND SAVE IT.
044168,000402: 05,3741           10000                           CCS      A                                     #  IS THIS THE BEGINNING OF A NEW EBANK
044169,000403: 05,3742           13752                           TCF      DNDUMP2                               #  NO- THEN CONTINUE DUMPING
044170,000404: 05,3743           30336                           CA       DUMPLOC                               #  YES- IS THIS THE END OF THE
044171,000405: 05,3744           74737                           MASK     BIT13                                 #  SECOND COMPLETE ERASABLE DUMP?
044172,000406: 05,3745           00006                           EXTEND                                         
044173,000407: 05,3746           13725                           BZF      DNDUMPI    +2                         #  NO - GO BACK AND INITIALIZE NEXT BANK
044174,000408: 05,3747           13524                           TCF      DNPHASE1                              #  YES - SEND DOWNLIST AGAIN
044175,000409: 05,3750           33734        DNDUMP1            CA       LDNDUMP                               #  SET DNTMGOTO
044176,000410: 05,3751           54335                           TS       DNTMGOTO                              #  FOR WORDS 3 TO 256D OF CURRENT EBANK
044177,000411: 
044178,000412: 05,3752           30336        DNDUMP2            CA       DUMPLOC                               
044179,000413: 05,3753           54003                           TS       EBANK                                 #  SET EBANK
044180,000414: 05,3754           74357                           MASK     LOW8                                  #  ISOLATE RELATIVE ADDRESS.
044181,000415: 05,3755           54002                           TS       Q                                     #  (NOTE: MASK INSTRUCTION IS USED TO PICK
044182,000416: 05,3756           34754                           CA       NEG0                                  #  UP ERASABLE REGISTERS SO THAT EDITING
044183,000417: 05,3757           54001                           TS       L                                     #  REGISTERS 20-23 WILL NOT BE ALTERED.)
044184,000418: 05,3760           50002                           INDEX    Q                                     
044185,000419: 05,3761  E3,1400                                  EBANK=   1400                                  #  PICK UP LOW ORDER REGISTER OF PAIR
044186,000420: 05,3761           71401                           MASK     1401                                  #  OF ERASABLE REGISTERS.
044187,000421: 05,3762           56001                           XCH      L                                     
044188,000422: 05,3763           50002                           INDEX    Q                                     #  PICK UP HIGH ORDER REGISTER OF PAIR
044189,000423: 05,3764           71400                           MASK     1400                                  #  OF ERASABLE REGISTERS.
044190,000424: 05,3765     0340                                  EBANK=   DNTMBUFF                              
044191,000425: 05,3765           13715                           TCF      DNTMEXIT                              #  GO SEND THEM
044192,000426: 
044193,000427: 
044194,000428: 05,3766           00006        SENDID             EXTEND                                         #  **ENTRANCE USED BY ERASABLE DUMP PROG.**
044195,000429: 05,3767           22335                           QXCH     DNTMGOTO                              #  SET DNTMGOTO SO NEXT TIME PROG WILL GO
044196,000430: 05,3770           35011                           CAF      ERASID                                #  TO LOCATION FOLLOWING :TC SENDID:
044197,000431: 
044198,000432: 05,3771           54001                           TS       L                                     #  **ENTRANCE USED BY REGULAR DOWNLINK PG**
044199,000433: 05,3772           03614                           TC       WOZERO                                #  GO SET WORD ORDER CODE TO ZERO
044200,000434: 05,3773           32065                           CAF      LOWIDCOD                              #  PLACE SPECIAL ID CODE INTO L
044201,000435: 05,3774           56001                           XCH      L                                     #  AND ID BACK INTO A
044202,000436: 05,3775           13715                           TCF      DNTMEXIT                              #  SEND DOWNLIST ID CODE(S).

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