Source Code

This source code is very close to the Apollo Guidance Computer software for the Apollo 13 Lunar module. This revision of the Luminary 131 program is from December of 1969, whereas there was a later revision in January of 1970, and still another revision in February, which is the code that flew on the mission. As far as this transcription is concerned, it was originally from a copy made in 1991 of a printout from the collection of AGC developer Don Eyles for collector David Craig. It was subsequently scanned by Gary Neff, reprocessed for online presentation at the now-discontinued History of Recent Science and Technology (HRST) website of MIT's Dibner Institute (the full-quality scans being discarded in the process), and finally transcribed by Ron Burkey for the Virtual AGC Project. Although a high-quality replacement scan for a completely illegible page was later provided by Gary Neff, the reduced legibility of the reprocessed HRST posting nevertheless caused many errors to be introduced into the transcription. Accordingly, a second scan of the same physical printout was made in 2017 for the Virtual AGC Project's collection at the Internet Archive, and used to correct the transcription errors. All of the scanned materials mentioned, as well as other Luminary 131 related material, are available online. Don Eyles apprently made additional hand-written notes in printout between 1991 and 2017, so the two scans are not identical in that respect. The page-headings in the printout read, in part:
	GAP:  ASSEMBLE REVISION 131 OF AGC PROGRAM LUMINARY BY NASA 2021112-091
	17:53 DEC. 19, 1969
Note that the date is the date the printout was made, not the date on which the program revision was released, although these happen to be very close together.

006213,000002:                                                                                                  ## Copyright:   Public domain.
006214,000003:                                                                                                  ## Filename:    INTERRUT_LEAD_INS.agc
006215,000004:                                                                                                  ## Purpose:     This is the interrupt table for Luminary 1C, revision 131.
006216,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
006217,000006:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 13.
006218,000007:                                                                                                  ##              This file is intended to be a faithful transcription, except
006219,000008:                                                                                                  ##              that the code format has been changed to conform to the
006220,000009:                                                                                                  ##              requirements of the yaYUL assembler rather than the 
006221,000010:                                                                                                  ##              original YUL assembler.
006222,000011:                                                                                                  ## Reference:   pp. 155-156
006223,000012:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
006224,000013:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
006225,000014:                                                                                                  ## Mod history: 04/11/03 RSB.   Began transcribing.
006226,000015:                                                                                                  ##              05/14/05 RSB    Corrected website reference above.
006227,000016:                                                                                                  ##              2017-01-06 RSB  Page numbers now agree with those on the
006228,000017:                                                                                                  ##                              original harcopy, as opposed to the PDF page
006229,000018:                                                                                                  ##                              numbers in 1701.pdf.
006230,000019:                                                                                                  ##              2017-02-12 RSB  Proofed comment text using octopus/ProoferComments.
006231,000020: 

Page 155

006233,000022:    4000                                           SETLOC   4000                                  
006234,000023: 
006235,000024:    4000                                           COUNT*   $$/RUPTS                              #  FIX-FIX LEAD INS
006236,000025:    4000           00004                           INHINT                                         #  GO
006237,000026:    4001           34054                           CAF      GOBB                                  
006238,000027:    4002           56006                           XCH      BBANK                                 
006239,000028:    4003           12665                           TCF      GOPROG                                
006240,000029: 
006241,000030:    4004           52011                           DXCH     ARUPT                                 #  T6RUPT
006242,000031:    4005           00006                           EXTEND                                         
006243,000032:    4006           34056                           DCA      T6ADR                                 
006244,000033:    4007           52006                           DTCB                                           
006245,000034: 
006246,000035:    4010           52011                           DXCH     ARUPT                                 #  T5RUPT - AUTOPILOT
006247,000036:    4011           00006                           EXTEND                                         
006248,000037:    4012           31264                           DCA      T5ADR                                 
006249,000038:    4013           52006                           DTCB                                           
006250,000039: 
006251,000040:    4014           52011                           DXCH     ARUPT                                 #  T3RUPT
006252,000041:    4015           34057                           CAF      T3RPTBB                               
006253,000042:    4016           56006                           XCH      BBANK                                 
006254,000043:    4017           13410                           TCF      T3RUPT                                
006255,000044: 
006256,000045:    4020           52011                           DXCH     ARUPT                                 #  T4RUPT
006257,000046:    4021           34064                           CAF      T4RPTBB                               
006258,000047:    4022           56006                           XCH      BBANK                                 
006259,000048:    4023           12000                           TCF      T4RUPT                                
006260,000049: 
006261,000050:    4024           52011                           DXCH     ARUPT                                 #  KEYRUPT1
006262,000051:    4025           34060                           CAF      KEYRPTBB                              
006263,000052:    4026           56006                           XCH      BBANK                                 
006264,000053:    4027           13253                           TCF      KEYRUPT1                              
006265,000054: 
006266,000055:    4030           52011                           DXCH     ARUPT                                 #  KEYRUPT2
006267,000056:    4031           34061                           CAF      MKRUPTBB                              
006268,000057:    4032           56006                           XCH      BBANK                                 
006269,000058:    4033           12332                           TCF      MARKRUPT                              
006270,000059: 
006271,000060:    4034           52011                           DXCH     ARUPT                                 #  UPRUPT
006272,000061:    4035           34060                           CAF      UPRPTBB                               
006273,000062:    4036           56006                           XCH      BBANK                                 
006274,000063:    4037           13276                           TCF      UPRUPT                                
006275,000064: 
006276,000065:    4040           52011                           DXCH     ARUPT                                 #  DOWNRUPT
006277,000066:    4041           34062                           CAF      DWNRPTBB                              
006278,000067:    4042           56006                           XCH      BBANK                                 
006279,000068:    4043           13505                           TCF      DODOWNTM                              
006280,000069: 
006281,000070:    4044           52011                           DXCH     ARUPT                                 #  RADAR RUPT
006282,000071:    4045           34063                           CAF      RDRPTBB                               

Page 156

006284,000073:    4046           56006                           XCH      BBANK                                 
006285,000074:    4047           13157                           TCF      RADAREAD                              
006286,000075: 
006287,000076:    4050           52011                           DXCH     ARUPT                                 #  RUPT10 IS USED ONLY BY LANDING GUIDANCE
006288,000077:    4051           34065                           CA       RUPT10BB                              
006289,000078:    4052           56006                           XCH      BBANK                                 
006290,000079:    4053           12302                           TCF      PITFALL                               
006291,000080: 
006292,000081:    4054  E3,1400                                  EBANK=   LST1                                  #  RESTART USES E0,E3
006293,000082:    4054           12103        GOBB               BBCON    GOPROG                                
006294,000083: 
006295,000084:    4055  E6,1464                                  EBANK=   PERROR                                
006296,000085:    4055           02117 36106  T6ADR              2CADR    DOT6RUPT                              
006297,000086: 
006298,000087:    4057  E3,1400                                  EBANK=   LST1                                  
006299,000088:    4057           02103        T3RPTBB            BBCON    T3RUPT                                
006300,000089: 
006301,000090:    4060     0073                                  EBANK=   KEYTEMP1                              
006302,000091:    4060           10100        KEYRPTBB           BBCON    KEYRUPT1                              
006303,000092: 
006304,000093:    4061  E7,1404                                  EBANK=   AOTAZ                                 
006305,000094:    4061           16107        MKRUPTBB           BBCON    MARKRUPT                              
006306,000095: 
006307,000096:    4062     4060               UPRPTBB            =        KEYRPTBB                              
006308,000097: 
006309,000098:    4062     0340                                  EBANK=   DNTMBUFF                              
006310,000099:    4062           12100        DWNRPTBB           BBCON    DODOWNTM                              
006311,000100: 
006312,000101:    4063  E7,1453                                  EBANK=   TTOGO                                 
006313,000102:    4063           52107        RDRPTBB            BBCON    RADAREAD                              
006314,000103: 
006315,000104:    4064  E6,1414                                  EBANK=   M11                                   
006316,000105:    4064           14106        T4RPTBB            BBCON    T4RUPT                                
006317,000106: 
006318,000107:    4065  E7,1444                                  EBANK=   ELVIRA                                
006319,000108:    4065           22107        RUPT10BB           BBCON    PITFALL                               
006320,000109: 

End of include-file INTERRUPT_LEAD_INS.agc.  Parent file is MAIN.agc