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.

008725,000002:                                                                                                  ## Copyright:   Public domain.
008726,000003:                                                                                                  ## Filename:    RCS_FAILURE_MONITOR.agc
008727,000004:                                                                                                  ## Purpose:     A log section of Zerlina 56, the final revision of
008728,000005:                                                                                                  ##              Don Eyles's offline development program for the variable 
008729,000006:                                                                                                  ##              guidance period servicer. It also includes a new P66 with LPD 
008730,000007:                                                                                                  ##              (Landing Point Designator) capability, based on an idea of John 
008731,000008:                                                                                                  ##              Young's. Neither of these advanced features were actually flown,
008732,000009:                                                                                                  ##              but Zerlina was also the birthplace of other big improvements to
008733,000010:                                                                                                  ##              Luminary including the terrain model and new (Luminary 1E)
008734,000011:                                                                                                  ##              analog display programs. Zerlina was branched off of Luminary 145,
008735,000012:                                                                                                  ##              and revision 56 includes all changes up to and including Luminary
008736,000013:                                                                                                  ##              183. It is therefore quite close to the Apollo 14 program,
008737,000014:                                                                                                  ##              Luminary 178, where not modified with new features.
008738,000015:                                                                                                  ## Reference:   pp. 196-198
008739,000016:                                                                                                  ## Assembler:   yaYUL
008740,000017:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
008741,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
008742,000019:                                                                                                  ## Mod history: 2017-07-28 MAS  Created from Luminary 210.
008743,000020:                                                                                                  ##              2017-08-18 RSB  Transcribed.
008744,000021: 

Page 196

008746,000023:                                                                                                  #  PROGRAM DESCRIPTION
008747,000024: 
008748,000025:                                                                                                  #  AUTHOR: J S MILLER
008749,000026: 
008750,000027:                                                                                                  #  MODIFIED 6 MARCH 1968 BY P S WEISSMAN TO SET UP JOB FOR 1/ACCS WHEN THE MASKS ARE CHANGED.
008751,000028: 
008752,000029:                                                                                                  #       THIS ROUTINE IS ATTACHED TO T4RUPT, AND IS ENTERED EVERY 480 MS.  ITS FUNCTION IS TO EXAMINE THE LOW 8 BITS
008753,000030:                                                                                                  #  OF CHANNEL 32 TO SEE IF ANY ISOLATION-VALVE CLOSURE BITS HAVE APPEARED OR DISAPPEARED (THE CREW IS WARNED OF JET
008754,000031:                                                                                                  #  FAILURES BY LAMPS LIT BY THE GRUMMAN FAILURE-DETECTION CIRCUITRY; THEY MAY RESPOND BY OPERATING SWITCHES WHICH
008755,000032:                                                                                                  #  ISOLATE PAIRS OF JETS FROM THE PROPELLANT TANKS AND SET BITS IN CHANNEL 32).  IN THE EVENT THAT CHANNEL 32 BITS
008756,000033:                                                                                                  #  DIFFER FROM 'PVALVEST', THE RECORD OF ACTIONS TAKEN BY THIS ROUTINE, THE APPROPRIATE BITS IN 'CH5MASK' &
008757,000034:                                                                                                  #  'CH6MASK', USED BY THE DAP JET-SELECTION LOGIC, ARE UPDATED, AS IS 'PVALVEST'.  TO SPEED UP & SHORTEN THE
008758,000035:                                                                                                  #  ROUTINE, NO MORE THAN ONE CHANGE IS ACCEPTED PER ENTRY.  THE HIGHEST-NUMBERED BIT IN CHANNEL 32 WHICH REQUIRES
008759,000036:                                                                                                  #  ACTION IS THE ONE PROCESSED.
008760,000037: 
008761,000038:                                                                                                  #       THE CODING IN THE FAILURE MONITOR HAS BEEN WRITTEN SO AS TO HAVE ALMOST COMPLETE RESTART PROTECTION.  FOR
008762,000039:                                                                                                  #  EXAMPLE, NO ASSUMPTION IS MADE WHEN SETTING A 'CH5MASK' BIT TO 1 THAT THE PREVIOUS STATE IS 0, ALTHOUGH IT OF
008763,000040:                                                                                                  #  COURSE SHOULD BE.  ONE CASE WHICH MAY BE SEEN TO EVADE PROTECTION IS THE OCCURRENCE OF A RESTART AFTER UPDATING
008764,000041:                                                                                                  #  ONE OR BOTH DAP MASK-WORDS BUT BEFORE UPDATING 'PVALVEST', COUPLED WITH A CHANGE IN THE VALVE-BIT BACK TO ITS
008765,000042:                                                                                                  #  FORMER STATE.  THE CONSEQUENCE OF THIS IS THAT THE NEXT ENTRY WOULD NOT SEE THE CHANGE INCOMPLETELY INCORP-
008766,000043:                                                                                                  #  ORATED BY THE LAST PASS (BECAUSE IT WENT AWAY AT JUST THE RIGHT TIME), BUT THE DAP MASK-WORDS WILL BE INCORRECT.
008767,000044:                                                                                                  #  THIS COMBINATION OF EVENTS SEEMS QUITE REMOTE, BUT NOT IMPOSSIBLE UNLESS THE CREW OPERATES THE SWITCHES AT HALF-
008768,000045:                                                                                                  #  SECOND INTERVALS OR LONGER.  IN ANY EVENT, A DISAGREEMENT BETWEEN REALITY AND THE DAP MASKS WILL BE CURED IF
008769,000046:                                                                                                  #  THE MISINTERPRETED SWITCH IS REVERSED AND THEN RESTORED TO ITS CORRECT POSITION (SLOWLY).
008770,000047: 
008771,000048:                                                                                                  #  CALLING SEQUENCE:
008772,000049: 
008773,000050:                                                                                                  #           TCF    RCSMONIT        (IN INTERRUPT MODE, EVERY 480 MS.)
008774,000051: 
008775,000052:                                                                                                  #  EXIT:  TCF  RCSMONEX  (ALL PATHS EXIT VIA SUCH AN INSTRUCTION)
008776,000053: 06,3164     5301               RCSMONEX           EQUALS   RESUME                                
008777,000054: 
008778,000055:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
008779,000056: 
008780,000057:                                                                                                  #           VIA FRESH START:  PVALVEST          = +0  (ALL JETS ENABLED)
008781,000058:                                                                                                  #                             CH5MASK, CH6MASK  = +0  (ALL JETS OK)
008782,000059: 
008783,000060:                                                                                                  #  OUTPUT:  CH5MASK & CH6MASK UPDATED  (1'S WHERE JETS NOT TO BE USED, IN CHANNEL 5 & 6 FORMAT)
008784,000061:                                                                                                  #           PVALTEST UPDATED  (1,S WHEN VALVE CLOSURES HAVE BEEN TRANSLATED INTO CH5MASK & CH6MASK; CHAN 32 FORMAT)
008785,000062:                                                                                                  #           JOB TO DO 1/ACCS.
008786,000063: 
008787,000064:                                                                                                  #  DEBRIS:  A, L, Q AND DEBRIS OF NOVAC.
008788,000065: 
008789,000066:                                                                                                  #  SUBROUTINE CALLED:  NOVAC.
008790,000067: 
008791,000068: 06,3164     1257                                  EBANK=   CH5MASK                               
008792,000069: 
008793,000070: 23,2000                                           BANK     23                                    
008794,000071: 06,2000                                           SETLOC   RCSMONT                               
008795,000072: 06,2000                                           BANK                                           
008796,000073: 

Page 197

008798,000075: 06,3164                                           COUNT*   $$/T4RCS                              
008799,000076: 
008800,000077: 06,3164  06,3164               RCSMONIT           EQUALS   RCSMON                                
008801,000078: 
008802,000079: 06,3164           44755        RCSMON             CS       ZERO                                  
008803,000080: 06,3165           00006                           EXTEND                                         
008804,000081: 06,3166           06032                           RXOR     CHAN32                                #  PICK UP + INVERT INVERTED CHANNEL 32.
008805,000082: 06,3167           74357                           MASK     LOW8                                  #  KEEP JET-FAIL BITS ONLY.
008806,000083: 06,3170           54002                           TS       Q                                     
008807,000084: 
008808,000085: 06,3171           41273                           CS       PVALVEST                              #        -   -
008809,000086: 06,3172           70002                           MASK     Q                                     #  FORM PC + PC.
008810,000087: 06,3173           54001                           TS       L                                     #    (P = PREVIOUS ISOLATION VALVE STATE,
008811,000088: 06,3174           40002                           CS       Q                                     #     C = CURRENT VALVE STATE (CH 32)).
008812,000089: 06,3175           71273                           MASK     PVALVEST                              
008813,000090: 06,3176           26001                           ADS      L                                     #  RESULT NZ INDICATES ACTION REQUIRED.
008814,000091: 
008815,000092: 06,3177           00006                           EXTEND                                         
008816,000093: 06,3200           15301                           BZF      RCSMONEX                              #  QUIT IF NO ACTION REQUIRED.
008817,000094: 
008818,000095: 06,3201           00006                           EXTEND                                         
008819,000096: 06,3202           74745                           MP       BIT7                                  #  MOVE BITS 8 - 1 OF A TO 14 - 7 OF L.
008820,000097: 06,3203           56001                           XCH      L                                     #  ZERO TO L IN THE PROCESS.
008821,000098: 
008822,000099: 06,3204           24001                 -3        INCR     L                                     
008823,000100: 06,3205           60000                           DOUBLE                                         #  BOUND TO GET OVERFLOW IN THIS LOOP,
008824,000101: 06,3206           54000                           OVSK                                           #  SINCE WE ASSURED INITIAL NZ IN A.
008825,000102: 06,3207           13204                           TCF      -3                                    
008826,000103: 
008827,000104: 06,3210           50001                           INDEX    L                                     
008828,000105: 06,3211           34743                           CA       BIT8       -1                         #  SAVE THE RELEVANT BIT (8 - 1).
008829,000106: 06,3212           54002                           TS       Q                                     
008830,000107: 06,3213           71273                           MASK     PVALVEST                              #  LOOK AT PREVIOUS VALVE STATE BIT.
008831,000108: 06,3214           10000                           CCS      A                                     
008832,000109: 06,3215           13231                           TCF      VOPENED                               #  THE VALVE HAS JUST BEEN OPENED.
008833,000110: 
008834,000111: 06,3216           41257                           CS       CH5MASK                               #  THE VALVE HAS JUST BEEN CLOSED.
008835,000112: 06,3217           50001                           INDEX    L                                     
008836,000113: 06,3220           73250                           MASK     5FAILTAB                              
008837,000114: 06,3221           27257                           ADS      CH5MASK                               #  SET INHIBIT BIT FOR CHANNEL 5 JET.
008838,000115: 
008839,000116: 06,3222           41260                           CS       CH6MASK                               
008840,000117: 06,3223           50001                           INDEX    L                                     
008841,000118: 06,3224           73260                           MASK     6FAILTAB                              
008842,000119: 06,3225           27260                           ADS      CH6MASK                               #  SET INGIBIT BIT FOR CHANNEL 6 JET.
008843,000120: 
008844,000121: 06,3226           30002                           CA       Q                                     
008845,000122: 06,3227           27273                           ADS      PVALVEST                              #  RECORD ACTION TAKEN.
008846,000123: 
008847,000124: 06,3230           13244                           TCF      1/ACCFIX                              #  SET UP 1/ACCJOB AND EXIT.
008848,000125: 

Page 198

008850,000127: 06,3231           50001        VOPENED            INDEX    L                                     #  A VALVE HAS JUST BEEN OPENED.
008851,000128: 06,3232           43250                           CS       5FAILTAB                              
008852,000129: 06,3233           71257                           MASK     CH5MASK                               
008853,000130: 06,3234           55257                           TS       CH5MASK                               #  REMOVE INHIBIT BIT FOR CHANNEL 5 JET.
008854,000131: 
008855,000132: 06,3235           50001                           INDEX    L                                     
008856,000133: 06,3236           43260                           CS       6FAILTAB                              
008857,000134: 06,3237           71260                           MASK     CH6MASK                               
008858,000135: 06,3240           55260                           TS       CH6MASK                               #  REMOVE INHIBIT BIT FOR CHANNEL 6 JET.
008859,000136: 
008860,000137: 06,3241           40002                           CS       Q                                     
008861,000138: 06,3242           71273                           MASK     PVALVEST                              
008862,000139: 06,3243           55273                           TS       PVALVEST                              #  RECORD ACTION TAKEN.
008863,000140: 
008864,000141: 06,3244           37727        1/ACCFIX           CAF      PRIO27                                #  SET UP 1/ACCS SO THAT THE SWITCH CURVES
008865,000142: 06,3245           05072                           TC       NOVAC                                 #    FOR TJETLAW CAN BE MODIFIED IF CH5MASK
008866,000143: 06,3246  E6,1536                                  EBANK=   AOSQ                                  #    HAS BEEN ALTERED.
008867,000144: 06,3246           03555 42106                     2CADR    1/ACCJOB                              
008868,000145: 
008869,000146: 06,3250           15301                           TCF      RCSMONEX                              #  EXIT.
008870,000147: 
008871,000148: 06,3251                        5FAILTAB           EQUALS   -1                                    #  CH 5 JET BIT CORRESPONDING TO CH 32 BIT:
008872,000149: 06,3251           00040                           OCT      00040                                 #  8
008873,000150: 06,3252           00020                           OCT      00020                                 #  7
008874,000151: 06,3253           00100                           OCT      00100                                 #  6
008875,000152: 06,3254           00200                           OCT      00200                                 #  5
008876,000153: 06,3255           00010                           OCT      00010                                 #  4
008877,000154: 06,3256           00001                           OCT      00001                                 #  3
008878,000155: 06,3257           00004                           OCT      00004                                 #  2
008879,000156: 06,3260           00002                           OCT      00002                                 #  1
008880,000157: 
008881,000158: 06,3261                        6FAILTAB           EQUALS   -1                                    #  CH 6 JET BIT CORRESPONDING TO CH 32 BIT:
008882,000159: 06,3261           00010                           OCT      00010                                 #  8
008883,000160: 06,3262           00020                           OCT      00020                                 #  7
008884,000161: 06,3263           00004                           OCT      00004                                 #  6
008885,000162: 06,3264           00200                           OCT      00200                                 #  5
008886,000163: 06,3265           00001                           OCT      00001                                 #  4
008887,000164: 06,3266           00002                           OCT      00002                                 #  3
008888,000165: 06,3267           00040                           OCT      00040                                 #  2
008889,000166: 06,3270           00100                           OCT      00100                                 #  1

End of include-file RCS_FAILURE_MONITOR.agc.  Parent file is MAIN.agc