Source Code

These source-code files are part of a reconstructed copy of Luminary 98, a development version of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 98 listing.

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.

058746,000002:                                                                                                  ## Copyright:   Public domain.
058747,000003:                                                                                                  ## Filename:    T6-RUPT_PROGRAMS.agc
058748,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
058749,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
058750,000006:                                                                                                  ##              development version of the flight software for the Lunar 
058751,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
058752,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
058753,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
058754,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
058755,000011:                                                                                                  ##              Luminary 98 and 99.
058756,000012:                                                                                                  ## Reference:   pp. 1403-1405
058757,000013:                                                                                                  ## Assembler:   yaYUL
058758,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
058759,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
058760,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
058761,000017: 

Page 1403

058763,000019:                                                                                                  #  PROGRAM NAMES:        (1) T6JOBCHK    MOD. NO. 5      OCTOBER 2, 1967
058764,000020:                                                                                                  #                        (2) DOT6RUPT
058765,000021:                                                                                                  #  MODIFICATION BY:      LOWELL G HULL (A.C.ELECTRONICS)
058766,000022: 
058767,000023:                                                                                                  #  THESE PROGRAMS ENABLE THE LM DAP TO CONTROL THE THRUST TIMES OF THE REACTION CONTROL SYSTEM JETS BY USING TIME6.
058768,000024:                                                                                                  #  SINCE THE LM DAP MAINTAINS EXCLUSIVE CONTROL OVER TIME6 AND ITS INTERRUPTS, THE FOLLOWING CONVENTIONS HAVE BEEN
058769,000025:                                                                                                  #  ESTABLISHED AND MUST NOT BE TAMPERED WITH:
058770,000026:                                                                                                  #        1.      NO NUMBER IS EVER PLACED INTO TIME6 EXCEPT BY LM DAP.
058771,000027:                                                                                                  #        2.      NO PROGRAM OTHER THAN LM DAP ENABLES THE TIME6 COUNTER.
058772,000028:                                                                                                  #        3.      TO USE TIME6, THE FOLLOWING SEQUENCE IS ALWAYS EMPLOYED:
058773,000029:                                                                                                  #                A.      A POSITIVE (NON-ZERO) NUMBER IS STORED IN TIME6.
058774,000030:                                                                                                  #                B.      THE TIME6 CLOCK IS ENABLED.
058775,000031:                                                                                                  #                C.      TIME6 IS INTERROGATED AND IS:
058776,000032:                                                                                                  #                        I.      NEVER FOUND NEGATIVE (NON-ZERO) OR +0.
058777,000033:                                                                                                  #                        II.     SOMETIMES FOUND POSITIVE (BETWEEN 1 AND 240D) INDICATING THAT IT IS ACTIVE.
058778,000034:                                                                                                  #                        III.    SOMETIMES FOUND POSMAX INDICATING THAT IT IS INACTIVE AND NOT ENABLED.
058779,000035:                                                                                                  #                        IV.     SOMETIMES FOUND NEGATIVE ZERO INDICATING THAT:
058780,000036:                                                                                                  #                                A.      A T6RUPT IS ABOUT TO OCCUR AT THE NEXT DINC, OR
058781,000037:                                                                                                  #                                B.      A T6RUPT IS WAITING IN THE PRIORITY CHAIN, OR
058782,000038:                                                                                                  #                                C.      A T6RUPT IS IN PROCESS NOW.
058783,000039:                                                                                                  #        4)      ALL PROGRAMS WHICH OPERATE IN EITHER INTERRUPT MODE OR WITH INTERRUPT INHIBITED MUST CALL T6JOBCHK
058784,000040:                                                                                                  #                EVERY 5 MILLISECONDS TO PROCESS A POSSIBLE WAITING T6RUPT BEFORE IT CAN BE HONORED BY THE HARDWARE.
058785,000041:                                                                                                  #       (5.      PROGRAM JTLST, IN Q,R-AXES, HANDLES THE INPUT LIST.)
058786,000042: 
058787,000043:                                                                                                  #  T6JOBCHK CALLING SEQUENCE:
058788,000044:                                                                                                  #                L       TC      T6JOBCHK
058789,000045:                                                                                                  #                L+1     (RETURN)
058790,000046: 
058791,000047:                                                                                                  #  DOT6RUPT CALLING SEQUENCE:
058792,000048:                                                                                                  #                        DXCH    ARUPT           T6RUPT LEAD IN AT LOCATION 4004.
058793,000049:                                                                                                  #                        EXTEND
058794,000050:                                                                                                  #                        DCA     T6ADR
058795,000051:                                                                                                  #                        DTCB
058796,000052: 
058797,000053:                                                                                                  #  SUBROUTINES CALLED:   DOT6RUPT CALLS T6JOBCHK.
058798,000054: 
058799,000055:                                                                                                  #  NORMAL EXIT MODES:    T6JOBCHK RETURNS TO L +1.
058800,000056:                                                                                                  #                        DOT6RUPT TRANSFERS CONTROL TO RESUME.
058801,000057: 
058802,000058:                                                                                                  #  ALARM/ABORT MODES:    NONE.
058803,000059: 
058804,000060:                                                                                                  #  INPUT:        TIME6           NXT6ADR         OUTPUT:         TIME6           NXT6ADR         CHANNEL 5
058805,000061:                                                                                                  #                T6NEXT          T6NEXT +1                       T6NEXT          T6NEXT +1       CHANNEL 6
058806,000062:                                                                                                  #                T6FURTHA        T6FURTHA +1                     T6FURTHA        T6FURTHA +1     BIT15/CH13
058807,000063: 
058808,000064:                                                                                                  #  DEBRIS:       T6JOBCHK CLOBBERS A.  DOT6RUPT CLOBBERS NOTHING.
058809,000065: 
058810,000066:    5753                                           BLOCK    02                                    

Page 1404

058812,000068: 17,2027                                           BANK     17                                    
058813,000069: 17,2000                                           SETLOC   DAPS2                                 
058814,000070: 17,2000                                           BANK                                           
058815,000071: 17,2027  E6,1466                                  EBANK=   T6NEXT                                
058816,000072: 17,2027                                           COUNT*   $$/DAPT6                              
058817,000073: 
058818,000074: 17,2027           10031        T6JOBCHK           CCS      TIME6                                 #  CHECK TIME6 FOR WAITING T6RUPT:
058819,000075: 17,2030           00002                           TC       Q                                     #  NONE: CLOCK COUTING DOWN.
058820,000076: 17,2031           05705                           TC       CCSHOLE                               
058821,000077: 17,2032           02032                           TC       T6JOBCHK   +3                         
058822,000078: 
058823,000079:                                                                                                  #  CONTROL PASSES TO T6JOB ONLY WHEN C(TIME6) = -0 (I.E. WHEN A T6RUPT MUST BE PROCESSED).
058824,000080: 
058825,000081: 17,2033           34733        T6JOB              CAF      POSMAX                                #  DISABLE CLOCK: NEEDED SINCE RUPT OCCURS
058826,000082: 17,2034           00006                           EXTEND                                         #  1 DINC AFTER T6 = 77777. FOR 625 MUSECS
058827,000083: 17,2035           03013                           WAND     CHAN13                                #  MUST NOT HAVE T6 = +0 WITH ENABLE SET
058828,000084: 
058829,000085: 17,2036           34733                           CA       POSMAX                                
058830,000086: 17,2037           22007                           ZL                                             
058831,000087: 17,2040           53471                           DXCH     T6FURTHA                              
058832,000088: 17,2041           53467                           DXCH     T6NEXT                                
058833,000089: 17,2042           23465                           LXCH     NXT6ADR                               
058834,000090: 17,2043           54031                           TS       TIME6                                 
058835,000091: 
058836,000092: 17,2044           67725                           AD       PRIO37                                
058837,000093: 17,2045           54000                           TS       A                                     
058838,000094: 17,2046           12052                           TCF      ENABLET6                              
058839,000095: 17,2047           34733                           CA       POSMAX                                
058840,000096: 17,2050           54031                           TS       TIME6                                 
058841,000097: 17,2051           12063                           TCF      GOCH56                                
058842,000098: 17,2052           34735        ENABLET6           CA       BIT15                                 
058843,000099: 17,2053           00006                           EXTEND                                         
058844,000100: 17,2054           05013                           WOR      CHAN13                                
058845,000101: 17,2055           31466                           CA       T6NEXT                                
058846,000102: 17,2056           67725                           AD       PRIO37                                
058847,000103: 17,2057           54000                           TS       A                                     
058848,000104: 17,2060           12063                           TCF      GOCH56                                
058849,000105: 17,2061           34733                           CA       POSMAX                                
058850,000106: 17,2062           55466                           TS       T6NEXT                                
058851,000107: 17,2063           50001        GOCH56             INDEX    L                                     
058852,000108: 17,2064           15753                           TCF      WRITEP     -1                         
058853,000109: 
058854,000110:    5753                                           BLOCK    02                                    
058855,000111:    4000                                           SETLOC   FFTAG9                                
058856,000112:    4000                                           BANK                                           
058857,000113:    5753  E6,1635                                  EBANK=   CDUXD                                 
058858,000114:    5753                                           COUNT*   $$/DAPT6                              
058859,000115: 
058860,000116:    5753           31472                           CA       NEXTP                                 
058861,000117:    5754           00006        WRITEP             EXTEND                                         
058862,000118:    5755           01006                           WRITE    CHAN6                                 

Page 1405

058864,000120:    5756           00002                           TC       Q                                     
058865,000121: 
058866,000122:    5757           31473                           CA       NEXTU                                 
058867,000123:    5760           54001        WRITEU             TS       L                                     
058868,000124:    5761           45774                           CS       00314OCT                              
058869,000125:    5762           00006                           EXTEND                                         
058870,000126:    5763           02005                           RAND     CHAN5                                 
058871,000127:    5764           60001                           AD       L                                     
058872,000128:    5765           00006                           EXTEND                                         
058873,000129:    5766           01005                           WRITE    CHAN5                                 
058874,000130:    5767           00002                           TC       Q                                     
058875,000131: 
058876,000132:    5770           31474                           CA       NEXTV                                 
058877,000133:    5771           54001        WRITEV             TS       L                                     
058878,000134:    5772           35774                           CA       00314OCT                              
058879,000135:    5773           15762                           TCF      -9D                                   
058880,000136:    5774           00314        00314OCT           OCT      00314                                 
058881,000137: 
058882,000138: 17,2065                                           BANK     17                                    
058883,000139: 17,2000                                           SETLOC   DAPS2                                 
058884,000140: 17,2000                                           BANK                                           
058885,000141: 
058886,000142: 17,2065  E6,1466                                  EBANK=   T6NEXT                                
058887,000143: 17,2065                                           COUNT*   $$/DAPT6                              
058888,000144: 
058889,000145: 17,2065           22016        DOT6RUPT           LXCH     BANKRUPT                              #  (INTERRUPT LEAD INS CONTINUED)
058890,000146: 17,2066           00006                           EXTEND                                         
058891,000147: 17,2067           22012                           QXCH     QRUPT                                 
058892,000148: 
058893,000149: 17,2070           02027                           TC       T6JOBCHK                              #  CALL T6JOBCHK.
058894,000150: 
058895,000151: 17,2071           15270                           TCF      RESUME                                #  END TIME6 INTERRUPT PROCESSOR.
058896,000152: 

End of include-file T6-RUPT_PROGRAMS.agc.  Parent file is MAIN.agc