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,1970Note that the date is the date of the printout, not the date of the program revision. |
008727,000002: ## Copyright: Public domain.
008728,000003: ## Filename: RCS_FAILURE_MONITOR.agc
008729,000004: ## Purpose: A log section of Zerlina 56, the final revision of
008730,000005: ## Don Eyles's offline development program for the variable
008731,000006: ## guidance period servicer. It also includes a new P66 with LPD
008732,000007: ## (Landing Point Designator) capability, based on an idea of John
008733,000008: ## Young's. Neither of these advanced features were actually flown,
008734,000009: ## but Zerlina was also the birthplace of other big improvements to
008735,000010: ## Luminary including the terrain model and new (Luminary 1E)
008736,000011: ## analog display programs. Zerlina was branched off of Luminary 145,
008737,000012: ## and revision 56 includes all changes up to and including Luminary
008738,000013: ## 183. It is therefore quite close to the Apollo 14 program,
008739,000014: ## Luminary 178, where not modified with new features.
008740,000015: ## Reference: pp. 196-198
008741,000016: ## Assembler: yaYUL
008742,000017: ## Contact: Ron Burkey <info@sandroid.org>.
008743,000018: ## Website: www.ibiblio.org/apollo/index.html
008744,000019: ## Mod history: 2017-07-28 MAS Created from Luminary 210.
008745,000020: ## 2017-08-18 RSB Transcribed.
008746,000021:
Page 196 |
008748,000023: # PROGRAM DESCRIPTION
008749,000024:
008750,000025: # AUTHOR: J S MILLER
008751,000026:
008752,000027: # MODIFIED 6 MARCH 1968 BY P S WEISSMAN TO SET UP JOB FOR 1/ACCS WHEN THE MASKS ARE CHANGED.
008753,000028:
008754,000029: # THIS ROUTINE IS ATTACHED TO T4RUPT, AND IS ENTERED EVERY 480 MS. ITS FUNCTION IS TO EXAMINE THE LOW 8 BITS
008755,000030: # OF CHANNEL 32 TO SEE IF ANY ISOLATION-VALVE CLOSURE BITS HAVE APPEARED OR DISAPPEARED (THE CREW IS WARNED OF JET
008756,000031: # FAILURES BY LAMPS LIT BY THE GRUMMAN FAILURE-DETECTION CIRCUITRY; THEY MAY RESPOND BY OPERATING SWITCHES WHICH
008757,000032: # ISOLATE PAIRS OF JETS FROM THE PROPELLANT TANKS AND SET BITS IN CHANNEL 32). IN THE EVENT THAT CHANNEL 32 BITS
008758,000033: # DIFFER FROM 'PVALVEST', THE RECORD OF ACTIONS TAKEN BY THIS ROUTINE, THE APPROPRIATE BITS IN 'CH5MASK' &
008759,000034: # 'CH6MASK', USED BY THE DAP JET-SELECTION LOGIC, ARE UPDATED, AS IS 'PVALVEST'. TO SPEED UP & SHORTEN THE
008760,000035: # ROUTINE, NO MORE THAN ONE CHANGE IS ACCEPTED PER ENTRY. THE HIGHEST-NUMBERED BIT IN CHANNEL 32 WHICH REQUIRES
008761,000036: # ACTION IS THE ONE PROCESSED.
008762,000037:
008763,000038: # THE CODING IN THE FAILURE MONITOR HAS BEEN WRITTEN SO AS TO HAVE ALMOST COMPLETE RESTART PROTECTION. FOR
008764,000039: # EXAMPLE, NO ASSUMPTION IS MADE WHEN SETTING A 'CH5MASK' BIT TO 1 THAT THE PREVIOUS STATE IS 0, ALTHOUGH IT OF
008765,000040: # COURSE SHOULD BE. ONE CASE WHICH MAY BE SEEN TO EVADE PROTECTION IS THE OCCURRENCE OF A RESTART AFTER UPDATING
008766,000041: # ONE OR BOTH DAP MASK-WORDS BUT BEFORE UPDATING 'PVALVEST', COUPLED WITH A CHANGE IN THE VALVE-BIT BACK TO ITS
008767,000042: # FORMER STATE. THE CONSEQUENCE OF THIS IS THAT THE NEXT ENTRY WOULD NOT SEE THE CHANGE INCOMPLETELY INCORP-
008768,000043: # ORATED BY THE LAST PASS (BECAUSE IT WENT AWAY AT JUST THE RIGHT TIME), BUT THE DAP MASK-WORDS WILL BE INCORRECT.
008769,000044: # THIS COMBINATION OF EVENTS SEEMS QUITE REMOTE, BUT NOT IMPOSSIBLE UNLESS THE CREW OPERATES THE SWITCHES AT HALF-
008770,000045: # SECOND INTERVALS OR LONGER. IN ANY EVENT, A DISAGREEMENT BETWEEN REALITY AND THE DAP MASKS WILL BE CURED IF
008771,000046: # THE MISINTERPRETED SWITCH IS REVERSED AND THEN RESTORED TO ITS CORRECT POSITION (SLOWLY).
008772,000047:
008773,000048: # CALLING SEQUENCE:
008774,000049:
008775,000050: # TCF RCSMONIT (IN INTERRUPT MODE, EVERY 480 MS.)
008776,000051:
008777,000052: # EXIT: TCF RCSMONEX (ALL PATHS EXIT VIA SUCH AN INSTRUCTION)
008778,000053: 06,3164 5301 RCSMONEX EQUALS RESUME
008779,000054:
008780,000055: # ERASABLE INITIALIZATION REQUIRED:
008781,000056:
008782,000057: # VIA FRESH START: PVALVEST = +0 (ALL JETS ENABLED)
008783,000058: # CH5MASK, CH6MASK = +0 (ALL JETS OK)
008784,000059:
008785,000060: # OUTPUT: CH5MASK & CH6MASK UPDATED (1'S WHERE JETS NOT TO BE USED, IN CHANNEL 5 & 6 FORMAT)
008786,000061: # PVALTEST UPDATED (1,S WHEN VALVE CLOSURES HAVE BEEN TRANSLATED INTO CH5MASK & CH6MASK; CHAN 32 FORMAT)
008787,000062: # JOB TO DO 1/ACCS.
008788,000063:
008789,000064: # DEBRIS: A, L, Q AND DEBRIS OF NOVAC.
008790,000065:
008791,000066: # SUBROUTINE CALLED: NOVAC.
008792,000067:
008793,000068: 06,3164 1257 EBANK= CH5MASK
008794,000069:
008795,000070: 23,2000 BANK 23
008796,000071: 06,2000 SETLOC RCSMONT
008797,000072: 06,2000 BANK
008798,000073:
Page 197 |
008800,000075: 06,3164 COUNT* $$/T4RCS
008801,000076:
008802,000077: 06,3164 06,3164 RCSMONIT EQUALS RCSMON
008803,000078:
008804,000079: 06,3164 44755 RCSMON CS ZERO
008805,000080: 06,3165 00006 EXTEND
008806,000081: 06,3166 06032 RXOR CHAN32 # PICK UP + INVERT INVERTED CHANNEL 32.
008807,000082: 06,3167 74357 MASK LOW8 # KEEP JET-FAIL BITS ONLY.
008808,000083: 06,3170 54002 TS Q
008809,000084:
008810,000085: 06,3171 41273 CS PVALVEST # - -
008811,000086: 06,3172 70002 MASK Q # FORM PC + PC.
008812,000087: 06,3173 54001 TS L # (P = PREVIOUS ISOLATION VALVE STATE,
008813,000088: 06,3174 40002 CS Q # C = CURRENT VALVE STATE (CH 32)).
008814,000089: 06,3175 71273 MASK PVALVEST
008815,000090: 06,3176 26001 ADS L # RESULT NZ INDICATES ACTION REQUIRED.
008816,000091:
008817,000092: 06,3177 00006 EXTEND
008818,000093: 06,3200 15301 BZF RCSMONEX # QUIT IF NO ACTION REQUIRED.
008819,000094:
008820,000095: 06,3201 00006 EXTEND
008821,000096: 06,3202 74745 MP BIT7 # MOVE BITS 8 - 1 OF A TO 14 - 7 OF L.
008822,000097: 06,3203 56001 XCH L # ZERO TO L IN THE PROCESS.
008823,000098:
008824,000099: 06,3204 24001 -3 INCR L
008825,000100: 06,3205 60000 DOUBLE # BOUND TO GET OVERFLOW IN THIS LOOP,
008826,000101: 06,3206 54000 OVSK # SINCE WE ASSURED INITIAL NZ IN A.
008827,000102: 06,3207 13204 TCF -3
008828,000103:
008829,000104: 06,3210 50001 INDEX L
008830,000105: 06,3211 34743 CA BIT8 -1 # SAVE THE RELEVANT BIT (8 - 1).
008831,000106: 06,3212 54002 TS Q
008832,000107: 06,3213 71273 MASK PVALVEST # LOOK AT PREVIOUS VALVE STATE BIT.
008833,000108: 06,3214 10000 CCS A
008834,000109: 06,3215 13231 TCF VOPENED # THE VALVE HAS JUST BEEN OPENED.
008835,000110:
008836,000111: 06,3216 41257 CS CH5MASK # THE VALVE HAS JUST BEEN CLOSED.
008837,000112: 06,3217 50001 INDEX L
008838,000113: 06,3220 73250 MASK 5FAILTAB
008839,000114: 06,3221 27257 ADS CH5MASK # SET INHIBIT BIT FOR CHANNEL 5 JET.
008840,000115:
008841,000116: 06,3222 41260 CS CH6MASK
008842,000117: 06,3223 50001 INDEX L
008843,000118: 06,3224 73260 MASK 6FAILTAB
008844,000119: 06,3225 27260 ADS CH6MASK # SET INGIBIT BIT FOR CHANNEL 6 JET.
008845,000120:
008846,000121: 06,3226 30002 CA Q
008847,000122: 06,3227 27273 ADS PVALVEST # RECORD ACTION TAKEN.
008848,000123:
008849,000124: 06,3230 13244 TCF 1/ACCFIX # SET UP 1/ACCJOB AND EXIT.
008850,000125:
Page 198 |
008852,000127: 06,3231 50001 VOPENED INDEX L # A VALVE HAS JUST BEEN OPENED.
008853,000128: 06,3232 43250 CS 5FAILTAB
008854,000129: 06,3233 71257 MASK CH5MASK
008855,000130: 06,3234 55257 TS CH5MASK # REMOVE INHIBIT BIT FOR CHANNEL 5 JET.
008856,000131:
008857,000132: 06,3235 50001 INDEX L
008858,000133: 06,3236 43260 CS 6FAILTAB
008859,000134: 06,3237 71260 MASK CH6MASK
008860,000135: 06,3240 55260 TS CH6MASK # REMOVE INHIBIT BIT FOR CHANNEL 6 JET.
008861,000136:
008862,000137: 06,3241 40002 CS Q
008863,000138: 06,3242 71273 MASK PVALVEST
008864,000139: 06,3243 55273 TS PVALVEST # RECORD ACTION TAKEN.
008865,000140:
008866,000141: 06,3244 37727 1/ACCFIX CAF PRIO27 # SET UP 1/ACCS SO THAT THE SWITCH CURVES
008867,000142: 06,3245 05072 TC NOVAC # FOR TJETLAW CAN BE MODIFIED IF CH5MASK
008868,000143: 06,3246 E6,1536 EBANK= AOSQ # HAS BEEN ALTERED.
008869,000144: 06,3246 03555 42106 2CADR 1/ACCJOB
008870,000145:
008871,000146: 06,3250 15301 TCF RCSMONEX # EXIT.
008872,000147:
008873,000148: 06,3251 5FAILTAB EQUALS -1 # CH 5 JET BIT CORRESPONDING TO CH 32 BIT:
008874,000149: 06,3251 00040 OCT 00040 # 8
008875,000150: 06,3252 00020 OCT 00020 # 7
008876,000151: 06,3253 00100 OCT 00100 # 6
008877,000152: 06,3254 00200 OCT 00200 # 5
008878,000153: 06,3255 00010 OCT 00010 # 4
008879,000154: 06,3256 00001 OCT 00001 # 3
008880,000155: 06,3257 00004 OCT 00004 # 2
008881,000156: 06,3260 00002 OCT 00002 # 1
008882,000157:
008883,000158: 06,3261 6FAILTAB EQUALS -1 # CH 6 JET BIT CORRESPONDING TO CH 32 BIT:
008884,000159: 06,3261 00010 OCT 00010 # 8
008885,000160: 06,3262 00020 OCT 00020 # 7
008886,000161: 06,3263 00004 OCT 00004 # 6
008887,000162: 06,3264 00200 OCT 00200 # 5
008888,000163: 06,3265 00001 OCT 00001 # 4
008889,000164: 06,3266 00002 OCT 00002 # 3
008890,000165: 06,3267 00040 OCT 00040 # 2
008891,000166: 06,3270 00100 OCT 00100 # 1
End of include-file RCS_FAILURE_MONITOR.agc. Parent file is MAIN.agc