Source Code
![]() |
These source-code files were from the printout at the MIT Museum, with many thanks
to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing
it to us. The printout was digitally photographed by Paul Fjeld. A team of
volunteers transcribed the source code manually from these images or, where
appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13)
source code to agree with the images from the printout. Note that the page images
presented online are of reduced quality, and that higher-quality images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061 20'35 OCT. 28,1968Note that the date is the date of the printout, not the date of the program revision. |
060198,000002: ## Copyright: Public domain.
060199,000003: ## Filename: T6-RUPT_PROGRAMS.agc
060200,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
060201,000005: ## It is part of the source code for the Lunar Module's (LM)
060202,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
060203,000007: ## Assembler: yaYUL
060204,000008: ## Contact: Ron Burkey <info@sandroid.org>.
060205,000009: ## Website: www.ibiblio.org/apollo.
060206,000010: ## Pages: 1403-1405
060207,000011: ## Mod history: 2009-05-10 SN (Sergio Navarro). Started adapting
060208,000012: ## from the Luminary131/ file of the same
060209,000013: ## name, using Luminary099 page images.
060210,000014: ## 2016-12-18 RSB Proofed text comments with octopus/ProoferComments
060211,000015: ## and corrected the errors found.
060212,000016: ##
060213,000017: ## This source code has been transcribed or otherwise adapted from
060214,000018: ## digitized images of a hardcopy from the MIT Museum. The digitization
060215,000019: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
060216,000020: ## the Museum. Many thanks to both. The images (with suitable reduction
060217,000021: ## in storage size and consequent reduction in image quality as well) are
060218,000022: ## available online at www.ibiblio.org/apollo. If for some reason you
060219,000023: ## find that the images are illegible, contact me at info@sandroid.org
060220,000024: ## about getting access to the (much) higher-quality images which Paul
060221,000025: ## actually created.
060222,000026: ##
060223,000027: ## Notations on the hardcopy document read, in part:
060224,000028: ##
060225,000029: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
060226,000030: ## 16:27 JULY 14, 1969
060227,000031:
![]() |
Page 1403 |
060229,000033: # PROGRAM NAMES: (1) T6JOBCHK MOD. NO. 5 OCTOBER 2, 1967
060230,000034: # (2) DOT6RUPT
060231,000035: # MODIFICATION BY: LOWELL G HULL (A.C.ELECTRONICS)
060232,000036:
060233,000037: # THESE PROGRAMS ENABLE THE LM DAP TO CONTROL THE THRUST TIMES OF THE REACTION CONTROL SYSTEM JETS BY USING TIME6.
060234,000038: # SINCE THE LM DAP MAINTAINS EXCLUSIVE CONTROL OVER TIME6 AND ITS INTERRUPTS, THE FOLLOWING CONVENTIONS HAVE BEEN
060235,000039: # ESTABLISHED AND MUST NOT BE TAMPERED WITH:
060236,000040: # 1. NO NUMBER IS EVER PLACED INTO TIME6 EXCEPT BY LM DAP.
060237,000041: # 2. NO PROGRAM OTHER THAN LM DAP ENABLES THE TIME6 COUNTER.
060238,000042: # 3. TO USE TIME6, THE FOLLOWING SEQUENCE IS ALWAYS EMPLOYED:
060239,000043: # A. A POSITIVE (NON-ZERO) NUMBER IS STORED IN TIME6.
060240,000044: # B. THE TIME6 CLOCK IS ENABLED.
060241,000045: # C. TIME6 IS INTERROGATED AND IS:
060242,000046: # I. NEVER FOUND NEGATIVE (NON-ZERO) OR +0.
060243,000047: # II. SOMETIMES FOUND POSITIVE (BETWEEN 1 AND 240D) INDICATING THAT IT IS ACTIVE.
060244,000048: # III. SOMETIMES FOUND POSMAX INDICATING THAT IT IS INACTIVE AND NOT ENABLED.
060245,000049: # IV. SOMETIMES FOUND NEGATIVE ZERO INDICATING THAT:
060246,000050: # A. A T6RUPT IS ABOUT TO OCCUR AT THE NEXT DINC, OR
060247,000051: # B. A T6RUPT IS WAITING IN THE PRIORITY CHAIN, OR
060248,000052: # C. A T6RUPT IS IN PROCESS NOW.
060249,000053: # 4. ALL PROGRAMS WHICH OPERATE IN EITHER INTERRUPT MODE OR WITH INTERRUPT INHIBITED MUST CALL T6JOBCHK
060250,000054: # EVERY 5 MILLISECONDS TO PROCESS A POSSIBLE WAITING T6RUPT BEFORE IT CAN BE HONORED BY THE HARDWARE.
060251,000055: # (5. PROGRAM JTLST, IN Q,R-AXES, HANDLES THE INPUT LIST.)
060252,000056:
060253,000057: # T6JOBCHK CALLING SEQUENCE:
060254,000058: # L TC T6JOBCHK
060255,000059: # L+1 (RETURN)
060256,000060:
060257,000061: # DOT6RUPT CALLING SEQUENCE:
060258,000062: # DXCH ARUPT T6RUPT LEAD IN AT LOCATION 4004.
060259,000063: # EXTEND
060260,000064: # DCA T6ADR
060261,000065: # DTCB
060262,000066:
060263,000067: # SUBROUTINES CALLED: DOT6RUPT CALLS T6JOBCHK.
060264,000068:
060265,000069: # NORMAL EXIT MODES: T6JOBCHK RETURNS TO L +1.
060266,000070: # DOT6RUPT TRANSFERS CONTROL TO RESUME.
060267,000071:
060268,000072: # ALARM/ABORT MODES: NONE.
060269,000073:
060270,000074: # INPUT: TIME6 NXT6ADR OUTPUT: TIME6 NXT6ADR CHANNEL 5
060271,000075: # T6NEXT T6NEXT +1 T6NEXT T6NEXT +1 CHANNEL 6
060272,000076: # T6FURTHA T6FURTHA +1 T6FURTHA T6FURTHA +1 BIT15/CH13
060273,000077:
060274,000078: # DEBRIS: T6JOBCHK CLOBBERS A. DOT6RUPT CLOBBERS NOTHING.
060275,000079:
060276,000080: 5753 BLOCK 02
![]() |
Page 1404 |
060278,000082: 17,2027 BANK 17
060279,000083: 17,2000 SETLOC DAPS2
060280,000084: 17,2000 BANK
060281,000085: 17,2027 E6,1466 EBANK= T6NEXT
060282,000086: 17,2027 COUNT* $$/DAPT6
060283,000087:
060284,000088: 17,2027 10031 T6JOBCHK CCS TIME6 # CHECK TIME6 FOR WAITING T6RUPT:
060285,000089: 17,2030 00002 TC Q # NONE: CLOCK COUTING DOWN.
060286,000090: 17,2031 05705 TC CCSHOLE
060287,000091: 17,2032 02032 TC T6JOBCHK +3
060288,000092:
060289,000093: # CONTROL PASSES TO T6JOB ONLY WHEN C(TIME6) = -0 (I.E. WHEN A T6RUPT MUST BE PROCESSED).
060290,000094:
060291,000095: 17,2033 34733 T6JOB CAF POSMAX # DISABLE CLOCK: NEEDED SINCE RUPT OCCURS
060292,000096: 17,2034 00006 EXTEND # 1 DINC AFTER T6 = 77777. FOR 625 MUSECS
060293,000097: 17,2035 03013 WAND CHAN13 # MUST NOT HAVE T6 = +0 WITH ENABLE SET
060294,000098:
060295,000099: 17,2036 34733 CA POSMAX
060296,000100: 17,2037 22007 ZL
060297,000101: 17,2040 53471 DXCH T6FURTHA
060298,000102: 17,2041 53467 DXCH T6NEXT
060299,000103: 17,2042 23465 LXCH NXT6ADR
060300,000104: 17,2043 54031 TS TIME6
060301,000105:
060302,000106: 17,2044 67725 AD PRIO37
060303,000107: 17,2045 54000 TS A
060304,000108: 17,2046 12052 TCF ENABLET6
060305,000109: 17,2047 34733 CA POSMAX
060306,000110: 17,2050 54031 TS TIME6
060307,000111: 17,2051 12063 TCF GOCH56
060308,000112: 17,2052 34735 ENABLET6 CA BIT15
060309,000113: 17,2053 00006 EXTEND
060310,000114: 17,2054 05013 WOR CHAN13
060311,000115: 17,2055 31466 CA T6NEXT
060312,000116: 17,2056 67725 AD PRIO37
060313,000117: 17,2057 54000 TS A
060314,000118: 17,2060 12063 TCF GOCH56
060315,000119: 17,2061 34733 CA POSMAX
060316,000120: 17,2062 55466 TS T6NEXT
060317,000121: 17,2063 50001 GOCH56 INDEX L
060318,000122: 17,2064 15753 TCF WRITEP -1
060319,000123:
060320,000124: 5753 BLOCK 02
060321,000125: 4000 SETLOC FFTAG9
060322,000126: 4000 BANK
060323,000127: 5753 E6,1635 EBANK= CDUXD
060324,000128: 5753 COUNT* $$/DAPT6
060325,000129:
060326,000130: 5753 31472 CA NEXTP
060327,000131: 5754 00006 WRITEP EXTEND
060328,000132: 5755 01006 WRITE CHAN6
![]() |
Page 1405 |
060330,000134: 5756 00002 TC Q
060331,000135:
060332,000136: 5757 31473 CA NEXTU
060333,000137: 5760 54001 WRITEU TS L
060334,000138: 5761 45774 CS 00314OCT
060335,000139: 5762 00006 EXTEND
060336,000140: 5763 02005 RAND CHAN5
060337,000141: 5764 60001 AD L
060338,000142: 5765 00006 EXTEND
060339,000143: 5766 01005 WRITE CHAN5
060340,000144: 5767 00002 TC Q
060341,000145:
060342,000146: 5770 31474 CA NEXTV
060343,000147: 5771 54001 WRITEV TS L
060344,000148: 5772 35774 CA 00314OCT
060345,000149: 5773 15762 TCF -9D
060346,000150: 5774 00314 00314OCT OCT 00314
060347,000151:
060348,000152: 17,2065 BANK 17
060349,000153: 17,2000 SETLOC DAPS2
060350,000154: 17,2000 BANK
060351,000155:
060352,000156: 17,2065 E6,1466 EBANK= T6NEXT
060353,000157: 17,2065 COUNT* $$/DAPT6
060354,000158:
060355,000159: 17,2065 22016 DOT6RUPT LXCH BANKRUPT # (INTERRUPT LEAD INS CONTINUED)
060356,000160: 17,2066 00006 EXTEND
060357,000161: 17,2067 22012 QXCH QRUPT
060358,000162:
060359,000163: 17,2070 02027 TC T6JOBCHK # CALL T6JOBCHK.
060360,000164:
060361,000165: 17,2071 15270 TCF RESUME # END TIME6 INTERRUPT PROCESSOR.
060362,000166:
End of include-file T6-RUPT_PROGRAMS.agc. Parent file is MAIN.agc