Source Code
These source-code files are part of a reconstructed copy of Luminary 178, the
final release of the Apollo 14 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The reconstruction began with source code of Zerlina 56, Luminary 210, and Luminary 131, previously transcribed from digitized copies of those programs. The code was created by combining the three, using Zerlina 56 as a base, since it was based off of Luminary 183. The differences between the three were carefully merged using the Luminary memos as a guide, with all changes made after Luminary 178 being backed out. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152N. Note that page numbers in the reconstructed code match those for the baseline log section mentioned in each file's changelog; the page numbers for a real Luminary 178 listing would be different. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. |
059659,000002: ## Copyright: Public domain.
059660,000003: ## Filename: T6-RUPT_PROGRAMS.agc
059661,000004: ## Purpose: A section of Luminary revision 178.
059662,000005: ## It is part of the reconstructed source code for the final
059663,000006: ## release of the flight software for the Lunar Module's
059664,000007: ## (LM) Apollo Guidance Computer (AGC) for Apollo 14. The
059665,000008: ## code has been recreated from copies of Zerlina 56, Luminary
059666,000009: ## 210, and Luminary 131, as well as many Luminary memos.
059667,000010: ## It has been adapted such that the resulting bugger words
059668,000011: ## exactly match those specified for Luminary 178 in NASA
059669,000012: ## drawing 2021152N, which gives relatively high confidence
059670,000013: ## that the reconstruction is correct.
059671,000014: ## Reference: pp. 1391-1393
059672,000015: ## Assembler: yaYUL
059673,000016: ## Contact: Ron Burkey <info@sandroid.org>.
059674,000017: ## Website: www.ibiblio.org/apollo/index.html
059675,000018: ## Mod history: 2019-08-14 MAS Created from Zerlina 56.
059676,000019:
Page 1391 |
059678,000021: # PROGRAM NAMES: (1) T6JOBCHK MOD. NO. 5 OCTOBER 2, 1967
059679,000022: # (2) DOT6RUPT
059680,000023:
059681,000024: # MODIFICATION BY: LOWELL G HULL (A.C.ELECTRONICS)
059682,000025: # THESE PROGRAMS ENABLE THE LM DAP TO CONTROL THE THRUST TIMES OF THE REACTION CONTROL SYSTEM JETS BY USING TIME6.
059683,000026: # SINCE THE LM DAP MAINTAINS EXCLUSIVE CONTROL OVER TIME6 AND ITS INTERRUPTS, THE FOLLOWING CONVENTIONS HAVE BEEN
059684,000027: # ESTABLISHED AND MUST NOT BE TAMPERED WITH:
059685,000028: # 1. NO NUMBER IS EVER PLACED INTO TIME6 EXCEPT BY LM DAP.
059686,000029: # 2. NO PROGRAM OTHER THAN LM DAP ENABLES THE TIME6 COUNTER.
059687,000030: # 3. TO USE TIME6, THE FOLLOWING SEQUENCE IS ALWAYS EMPLOYED:
059688,000031: # A. A POSITIVE (NON-ZERO) NUMBER IS STORED IN TIME6.
059689,000032: # B. THE TIME6 CLOCK IS ENABLED.
059690,000033: # C. TIME6 IS INTERROGATED AND IS:
059691,000034: # I. NEVER FOUND NEGATIVE(NON-ZERO) OR +0.
059692,000035: # II. SOMETIMES FOUND POSITIVE(BETWEEN 1 AND 240D) INDICATING THAT IT IS ACTIVE.
059693,000036: # III. SOMETIMES FOUND POSMAX INDICATING THAT IT IS INACTIVE AND NOT ENABLED.
059694,000037: # IV. SOMETIMES FOUND NEGATIVE ZERO INDICATING THAT:
059695,000038: # A. A T6RUPT IS ABOUT TO OCCUR AT THE NEXT DINC, OR
059696,000039: # B. A T6RUPT IS WAITING IN THE PRIORITY CHAIN, OR
059697,000040: # C. A T6RUPT IS IN PROCESS NOW.
059698,000041: # 4) ALL PROGRAMS WHICH OPERATE IN EITHER INTERRUPT MODE OR WITH INTERRUPT INHIBITED MUST CALL T6JOBCHK
059699,000042: # EVERY 5 MILLISECONDS TO PROCESS A POSSIBLE WAITING T6RUPT BEFORE IT CAN BE HONORED BY THE HARDWARE.
059700,000043:
059701,000044: # (5. PROGRAM JTLST, IN Q,R-AXES, HANDLES THE INPUT LIST.)
059702,000045: # T6JOBCHK CALLING SEQUENCE:
059703,000046:
059704,000047: # L TC T6JOBCHK
059705,000048: # L +1 (RETURN)
059706,000049:
059707,000050: # DOT6RUPT CALLING SEQUENCE:
059708,000051:
059709,000052: # DXCH ARUPT T6RUPT LEAD IN AT LOCATION 4004.
059710,000053: # EXTEND
059711,000054: # DCA T6ADR
059712,000055: # DTCB
059713,000056:
059714,000057: # SUBROUTINES CALLED: DOT6RUPT CALLS T6JOBCHK.
059715,000058:
059716,000059: # NORMAL EXIT MODES: T6JOBCHK RETURNS TO L +1.
059717,000060: # DOT6RUPT TRANSFERS CONTROL TO RESUME.
059718,000061:
059719,000062: # ALARM/ABORT MODES: NONE.
059720,000063:
059721,000064: # INPUT: TIME6 NXT6ADR OUTPUT: TIME6 NXT6ADR CHANNEL 5
059722,000065: # T6NEXT T6NEXT +1 T6NEXT T6NEXT +1 CHANNEL 6
059723,000066: # T6FURTHA T6FURTHA +1 T6FURTHA T6FURTHA +1 BIT15/CH13
059724,000067: # DEBRIS: T6JOBCHK CLOBBERS A. DOT6RUPT CLOBBERS NOTHING.
059725,000068:
059726,000069:
059727,000070: 5754 BLOCK 02
Page 1392 |
059729,000072: 17,2055 BANK 17
059730,000073: 17,2000 SETLOC DAPS2
059731,000074: 17,2000 BANK
059732,000075: 17,2055 E6,1466 EBANK= T6NEXT
059733,000076: 17,2055 COUNT* $$/DAPT6
059734,000077:
059735,000078: 17,2055 10031 T6JOBCHK CCS TIME6 # CHECK TIME6 FOR WAITING T6RUPT:
059736,000079: 17,2056 00002 TC Q # NONE: CLOCK COUTING DOWN.
059737,000080: 17,2057 05706 TC CCSHOLE
059738,000081: 17,2060 05706 TC CCSHOLE
059739,000082: # CONTROL PASSES TO T6JOB ONLY WHEN C(TIME6) = -0 (I.E. WHEN A T6RUPT MUST BE PROCESSED).
059740,000083:
059741,000084: 17,2061 34733 T6JOB CA POSMAX
059742,000085: 17,2062 22007 ZL
059743,000086: 17,2063 53471 DXCH T6FURTHA
059744,000087: 17,2064 53467 DXCH T6NEXT
059745,000088: 17,2065 23465 LXCH NXT6ADR
059746,000089: 17,2066 54031 TS TIME6
059747,000090:
059748,000091: 17,2067 67730 AD PRIO37
059749,000092: 17,2070 54000 TS A
059750,000093: 17,2071 12075 TCF ENABLET6
059751,000094: 17,2072 34733 CA POSMAX
059752,000095: 17,2073 54031 TS TIME6
059753,000096: 17,2074 12115 TCF GOCH56
059754,000097: 17,2075 00006 ENABLET6 EXTEND
059755,000098: 17,2076 23265 QXCH C13QSAV
059756,000099: 17,2077 22070 LXCH RUPTREG1
059757,000100: 17,2100 06022 TC C13STALL
059758,000101: 17,2101 00006 EXTEND
059759,000102: 17,2102 23265 QXCH C13QSAV
059760,000103: 17,2103 22070 LXCH RUPTREG1
059761,000104: 17,2104 34735 CAF BIT15
059762,000105: 17,2105 00006 EXTEND
059763,000106: 17,2106 05013 WOR CHAN13
059764,000107: 17,2107 31466 CA T6NEXT
059765,000108: 17,2110 67730 AD PRIO37
059766,000109: 17,2111 54000 TS A
059767,000110: 17,2112 12115 TCF GOCH56
059768,000111: 17,2113 34733 CA POSMAX
059769,000112: 17,2114 55466 TS T6NEXT
059770,000113: 17,2115 50001 GOCH56 INDEX L
059771,000114: 17,2116 15754 TCF WRITEP -1
059772,000115:
059773,000116: 5754 BLOCK 02
059774,000117: 4000 SETLOC FFTAG9
059775,000118: 4000 BANK
059776,000119: 5754 E6,1634 EBANK= CDUXD
059777,000120: 5754 COUNT* $$/DAPT6
Page 1393 |
059779,000122: 5754 31472 CA NEXTP
059780,000123: 5755 00006 WRITEP EXTEND
059781,000124: 5756 01006 WRITE CHAN6
059782,000125: 5757 00002 TC Q
059783,000126:
059784,000127: 5760 31473 CA NEXTU
059785,000128: 5761 54001 WRITEU TS L
059786,000129: 5762 45775 CS 00314OCT
059787,000130: 5763 00006 EXTEND
059788,000131: 5764 02005 RAND CHAN5
059789,000132: 5765 60001 AD L
059790,000133: 5766 00006 EXTEND
059791,000134: 5767 01005 WRITE CHAN5
059792,000135: 5770 00002 TC Q
059793,000136:
059794,000137: 5771 31474 CA NEXTV
059795,000138: 5772 54001 WRITEV TS L
059796,000139: 5773 35775 CA 00314OCT
059797,000140: 5774 15763 TCF -9D
059798,000141: 5775 00314 00314OCT OCT 00314
059799,000142:
059800,000143: 17,2117 BANK 17
059801,000144: 17,2000 SETLOC DAPS2
059802,000145: 17,2000 BANK
059803,000146:
059804,000147: 17,2117 E6,1466 EBANK= T6NEXT
059805,000148: 17,2117 COUNT* $$/DAPT6
059806,000149:
059807,000150: 17,2117 22016 DOT6RUPT LXCH BANKRUPT # (INTERRUPT LEAD INS CONTINUED)
059808,000151: 17,2120 00006 EXTEND
059809,000152: 17,2121 22012 QXCH QRUPT
059810,000153:
059811,000154: 17,2122 02055 TC T6JOBCHK # CALL T6JOBCHK.
059812,000155:
059813,000156: 17,2123 15301 TCF RESUME # END TIME6 INTERRUPT PROCESSOR.
End of include-file T6-RUPT_PROGRAMS.agc. Parent file is MAIN.agc