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.

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

Page 979

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

Page 980

043832,000075: 
043833,000076: 

Page 981

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

Page 982

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

Page 983

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

Page 984

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

Page 985

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

Page 986

044089,000332: 05,3721           01035                           WRITE    DNTM2                                 
044090,000333: 05,3722           15301        TMRESUME           TCF      RESUME                                #  EXIT TELEMETRY PROGRAM VIA RESUME.
044091,000334: 
044092,000335: 05,3723     7753               MINB12             EQUALS   -1/8                                  
044093,000336: 

Page 987

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

Page 988

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

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