Source Code
This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure! |
059065,000002: ## Copyright: Public domain.
059066,000003: ## Filename: T6-RUPT_PROGRAMS.agc
059067,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
059068,000005: ## It is part of the source code for the Lunar Module's (LM)
059069,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
059070,000007: ## Assembler: yaYUL
059071,000008: ## Contact: Ron Burkey <info@sandroid.org>.
059072,000009: ## Website: www.ibiblio.org/apollo.
059073,000010: ## Pages: 1403-1405
059074,000011: ## Mod history: 2009-05-10 SN (Sergio Navarro). Started adapting
059075,000012: ## from the Luminary131/ file of the same
059076,000013: ## name, using Luminary099 page images.
059077,000014: ## 2016-12-18 RSB Proofed text comments with octopus/ProoferComments
059078,000015: ## and corrected the errors found.
059079,000016: ## 2017-03-03 RSB Snapshot of Luminary 99 Rev 1.
059080,000017: ## 2017-08-29 MAS Fixed a comment-text error found while transcribing ## Zerlina 56.
059081,000018:
Page 1403 |
059083,000020: # PROGRAM NAMES: (1) T6JOBCHK MOD. NO. 5 OCTOBER 2, 1967
059084,000021: # (2) DOT6RUPT
059085,000022: # MODIFICATION BY: LOWELL G HULL (A.C.ELECTRONICS)
059086,000023:
059087,000024: # THESE PROGRAMS ENABLE THE LM DAP TO CONTROL THE THRUST TIMES OF THE REACTION CONTROL SYSTEM JETS BY USING TIME6.
059088,000025: # SINCE THE LM DAP MAINTAINS EXCLUSIVE CONTROL OVER TIME6 AND ITS INTERRUPTS, THE FOLLOWING CONVENTIONS HAVE BEEN
059089,000026: # ESTABLISHED AND MUST NOT BE TAMPERED WITH:
059090,000027: # 1. NO NUMBER IS EVER PLACED INTO TIME6 EXCEPT BY LM DAP.
059091,000028: # 2. NO PROGRAM OTHER THAN LM DAP ENABLES THE TIME6 COUNTER.
059092,000029: # 3. TO USE TIME6, THE FOLLOWING SEQUENCE IS ALWAYS EMPLOYED:
059093,000030: # A. A POSITIVE (NON-ZERO) NUMBER IS STORED IN TIME6.
059094,000031: # B. THE TIME6 CLOCK IS ENABLED.
059095,000032: # C. TIME6 IS INTERROGATED AND IS:
059096,000033: # I. NEVER FOUND NEGATIVE (NON-ZERO) OR +0.
059097,000034: # II. SOMETIMES FOUND POSITIVE (BETWEEN 1 AND 240D) INDICATING THAT IT IS ACTIVE.
059098,000035: # III. SOMETIMES FOUND POSMAX INDICATING THAT IT IS INACTIVE AND NOT ENABLED.
059099,000036: # IV. SOMETIMES FOUND NEGATIVE ZERO INDICATING THAT:
059100,000037: # A. A T6RUPT IS ABOUT TO OCCUR AT THE NEXT DINC, OR
059101,000038: # B. A T6RUPT IS WAITING IN THE PRIORITY CHAIN, OR
059102,000039: # C. A T6RUPT IS IN PROCESS NOW.
059103,000040: # 4) ALL PROGRAMS WHICH OPERATE IN EITHER INTERRUPT MODE OR WITH INTERRUPT INHIBITED MUST CALL T6JOBCHK
059104,000041: # EVERY 5 MILLISECONDS TO PROCESS A POSSIBLE WAITING T6RUPT BEFORE IT CAN BE HONORED BY THE HARDWARE.
059105,000042: # (5. PROGRAM JTLST, IN Q,R-AXES, HANDLES THE INPUT LIST.)
059106,000043:
059107,000044: # T6JOBCHK CALLING SEQUENCE:
059108,000045: # L TC T6JOBCHK
059109,000046: # L+1 (RETURN)
059110,000047:
059111,000048: # DOT6RUPT CALLING SEQUENCE:
059112,000049: # DXCH ARUPT T6RUPT LEAD IN AT LOCATION 4004.
059113,000050: # EXTEND
059114,000051: # DCA T6ADR
059115,000052: # DTCB
059116,000053:
059117,000054: # SUBROUTINES CALLED: DOT6RUPT CALLS T6JOBCHK.
059118,000055:
059119,000056: # NORMAL EXIT MODES: T6JOBCHK RETURNS TO L +1.
059120,000057: # DOT6RUPT TRANSFERS CONTROL TO RESUME.
059121,000058:
059122,000059: # ALARM/ABORT MODES: NONE.
059123,000060:
059124,000061: # INPUT: TIME6 NXT6ADR OUTPUT: TIME6 NXT6ADR CHANNEL 5
059125,000062: # T6NEXT T6NEXT +1 T6NEXT T6NEXT +1 CHANNEL 6
059126,000063: # T6FURTHA T6FURTHA +1 T6FURTHA T6FURTHA +1 BIT15/CH13
059127,000064:
059128,000065: # DEBRIS: T6JOBCHK CLOBBERS A. DOT6RUPT CLOBBERS NOTHING.
059129,000066:
059130,000067: 5753 BLOCK 02
Page 1404 |
059132,000069: 17,2027 BANK 17
059133,000070: 17,2000 SETLOC DAPS2
059134,000071: 17,2000 BANK
059135,000072: 17,2027 E6,1466 EBANK= T6NEXT
059136,000073: 17,2027 COUNT* $$/DAPT6
059137,000074:
059138,000075: 17,2027 10031 T6JOBCHK CCS TIME6 # CHECK TIME6 FOR WAITING T6RUPT:
059139,000076: 17,2030 00002 TC Q # NONE: CLOCK COUTING DOWN.
059140,000077: 17,2031 05705 TC CCSHOLE
059141,000078: 17,2032 02032 TC T6JOBCHK +3
059142,000079:
059143,000080: # CONTROL PASSES TO T6JOB ONLY WHEN C(TIME6) = -0 (I.E. WHEN A T6RUPT MUST BE PROCESSED).
059144,000081:
059145,000082: 17,2033 34733 T6JOB CAF POSMAX # DISABLE CLOCK: NEEDED SINCE RUPT OCCURS
059146,000083: 17,2034 00006 EXTEND # 1 DINC AFTER T6 = 77777. FOR 625 MUSECS
059147,000084: 17,2035 03013 WAND CHAN13 # MUST NOT HAVE T6 = +0 WITH ENABLE SET
059148,000085:
059149,000086: 17,2036 34733 CA POSMAX
059150,000087: 17,2037 22007 ZL
059151,000088: 17,2040 53471 DXCH T6FURTHA
059152,000089: 17,2041 53467 DXCH T6NEXT
059153,000090: 17,2042 23465 LXCH NXT6ADR
059154,000091: 17,2043 54031 TS TIME6
059155,000092:
059156,000093: 17,2044 67725 AD PRIO37
059157,000094: 17,2045 54000 TS A
059158,000095: 17,2046 12052 TCF ENABLET6
059159,000096: 17,2047 34733 CA POSMAX
059160,000097: 17,2050 54031 TS TIME6
059161,000098: 17,2051 12063 TCF GOCH56
059162,000099: 17,2052 34735 ENABLET6 CA BIT15
059163,000100: 17,2053 00006 EXTEND
059164,000101: 17,2054 05013 WOR CHAN13
059165,000102: 17,2055 31466 CA T6NEXT
059166,000103: 17,2056 67725 AD PRIO37
059167,000104: 17,2057 54000 TS A
059168,000105: 17,2060 12063 TCF GOCH56
059169,000106: 17,2061 34733 CA POSMAX
059170,000107: 17,2062 55466 TS T6NEXT
059171,000108: 17,2063 50001 GOCH56 INDEX L
059172,000109: 17,2064 15753 TCF WRITEP -1
059173,000110:
059174,000111: 5753 BLOCK 02
059175,000112: 4000 SETLOC FFTAG9
059176,000113: 4000 BANK
059177,000114: 5753 E6,1635 EBANK= CDUXD
059178,000115: 5753 COUNT* $$/DAPT6
059179,000116:
059180,000117: 5753 31472 CA NEXTP
059181,000118: 5754 00006 WRITEP EXTEND
059182,000119: 5755 01006 WRITE CHAN6
Page 1405 |
059184,000121: 5756 00002 TC Q
059185,000122:
059186,000123: 5757 31473 CA NEXTU
059187,000124: 5760 54001 WRITEU TS L
059188,000125: 5761 45774 CS 00314OCT
059189,000126: 5762 00006 EXTEND
059190,000127: 5763 02005 RAND CHAN5
059191,000128: 5764 60001 AD L
059192,000129: 5765 00006 EXTEND
059193,000130: 5766 01005 WRITE CHAN5
059194,000131: 5767 00002 TC Q
059195,000132:
059196,000133: 5770 31474 CA NEXTV
059197,000134: 5771 54001 WRITEV TS L
059198,000135: 5772 35774 CA 00314OCT
059199,000136: 5773 15762 TCF -9D
059200,000137: 5774 00314 00314OCT OCT 00314
059201,000138:
059202,000139: 17,2065 BANK 17
059203,000140: 17,2000 SETLOC DAPS2
059204,000141: 17,2000 BANK
059205,000142:
059206,000143: 17,2065 E6,1466 EBANK= T6NEXT
059207,000144: 17,2065 COUNT* $$/DAPT6
059208,000145:
059209,000146: 17,2065 22016 DOT6RUPT LXCH BANKRUPT # (INTERRUPT LEAD INS CONTINUED)
059210,000147: 17,2066 00006 EXTEND
059211,000148: 17,2067 22012 QXCH QRUPT
059212,000149:
059213,000150: 17,2070 02027 TC T6JOBCHK # CALL T6JOBCHK.
059214,000151:
059215,000152: 17,2071 15270 TCF RESUME # END TIME6 INTERRUPT PROCESSOR.
059216,000153:
End of include-file T6-RUPT_PROGRAMS.agc. Parent file is MAIN.agc