Source Code

These source code files are an attempted reconstruction of Sundance revision 306, the Apollo 9 LM (Lunar Module) AGC (Apollo Guidance Computer) flight software, created from binary dumps of original core rope program modules, as follows:
  • B1 — Revision 292
  • B2 — Revision 302
  • B3 — Revision 302
  • B4 — Revision 302
  • B5 — Revision 292
  • B6 — Revision 306
These dumps were then modified using memos, checklists, observed address changes, and the Sundance GSOPs to get the entire program to match Sundance revision 306 as closely as possible. Without more information, it is not possible to say how close it actually is; however, this code should be quite close. It is capable of flying the whole Apollo 9 mission using the original checklists and padload. Since only binary dumps (rather than listings) of Sundance are available as source material, all comments and labels are approximate. They have been taken from other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing.

005359,000002:                                                                                                  ## Copyright:   Public domain.
005360,000003:                                                                                                  ## Filename:    INTERRUPT_LEAD_INS.agc
005361,000004:                                                                                                  ## Purpose:     A section of an attempt to reconstruct Sundance revision 306
005362,000005:                                                                                                  ##              as closely as possible with available information. Sundance
005363,000006:                                                                                                  ##              306 is the source code for the Lunar Module's (LM) Apollo
005364,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 9. This program was created
005365,000008:                                                                                                  ##              using the mixed-revision SundanceXXX as a starting point, and
005366,000009:                                                                                                  ##              pulling back features from Luminary 69 believed to have been
005367,000010:                                                                                                  ##              added based on memos, checklists, observed address changes,
005368,000011:                                                                                                  ##              or the Sundance GSOPs.
005369,000012:                                                                                                  ## Assembler:   yaYUL
005370,000013:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
005371,000014:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
005372,000015:                                                                                                  ## Mod history: 2020-07-24 MAS  Created from SundanceXXX.
005373,000016: 
005374,000017: 
005375,000018: 
005376,000019:    4000                                           SETLOC   4000                                  
005377,000020: 
005378,000021:    4000                                           COUNT*   $$/RUPTS                              #  FIX-FIX LEAD INS
005379,000022:    4000           00004                           INHINT                                         #  GO
005380,000023:    4001           34054                           CAF      GOBB                                  
005381,000024:    4002           56006                           XCH      BBANK                                 
005382,000025:    4003           12451                           TCF      GOPROG                                
005383,000026: 
005384,000027:    4004           52011                           DXCH     ARUPT                                 #  T6RUPT
005385,000028:    4005           00006                           EXTEND                                         
005386,000029:    4006           35753                           DCA      T6ADR                                 
005387,000030:    4007           52006                           DTCB                                           
005388,000031: 
005389,000032:    4010           52011                           DXCH     ARUPT                                 #  T5RUPT - AUTOPILOT
005390,000033:    4011           40030                           CS       TIME5                                 
005391,000034:    4012           65044                           AD       .5SEC                                 
005392,000035:    4013           14065                           TCF      T5RUPT                                
005393,000036: 
005394,000037:    4014           52011                           DXCH     ARUPT                                 #  T3RUPT
005395,000038:    4015           34056                           CAF      T3RPTBB                               
005396,000039:    4016           56006                           XCH      BBANK                                 
005397,000040:    4017           13212                           TCF      T3RUPT                                
005398,000041: 
005399,000042:    4020           52011                           DXCH     ARUPT                                 #  T4RUPT
005400,000043:    4021           34063                           CAF      T4RPTBB                               
005401,000044:    4022           56006                           XCH      BBANK                                 
005402,000045:    4023           12000                           TCF      T4RUPT                                
005403,000046: 
005404,000047:    4024           52011                           DXCH     ARUPT                                 #  KEYRUPT1
005405,000048:    4025           34057                           CAF      KEYRPTBB                              
005406,000049:    4026           56006                           XCH      BBANK                                 
005407,000050:    4027           13107                           TCF      KEYRUPT1                              
005408,000051: 
005409,000052:    4030           52011                           DXCH     ARUPT                                 #  KEYRUPT2
005410,000053:    4031           34060                           CAF      MKRUPTBB                              
005411,000054:    4032           56006                           XCH      BBANK                                 
005412,000055:    4033           12357                           TCF      MARKRUPT                              
005413,000056: 
005414,000057:    4034           52011                           DXCH     ARUPT                                 #  UPRUPT
005415,000058:    4035           34057                           CAF      UPRPTBB                               
005416,000059:    4036           56006                           XCH      BBANK                                 
005417,000060:    4037           13132                           TCF      UPRUPT                                
005418,000061: 
005419,000062:    4040           52011                           DXCH     ARUPT                                 #  DOWNRUPT
005420,000063:    4041           34061                           CAF      DWNRPTBB                              
005421,000064:    4042           56006                           XCH      BBANK                                 
005422,000065:    4043           13153                           TCF      DODOWNTM                              
005423,000066: 
005424,000067:    4044           52011                           DXCH     ARUPT                                 #  RADAR RUPT
005425,000068:    4045           34062                           CAF      RDRPTBB                               
005426,000069:    4046           56006                           XCH      BBANK                                 
005427,000070:    4047           13122                           TCF      RADAREAD                              
005428,000071: 
005429,000072:    4050           52011                           DXCH     ARUPT                                 #  RUPT10 IS USED ONLY BY LANDING GUIDANCE
005430,000073:    4051           34064                           CA       RUPT10BB                              
005431,000074:    4052           56006                           XCH      BBANK                                 
005432,000075:    4053           12000                           TCF      PITFALL                               
005433,000076: 
005434,000077: 
005435,000078:    4054  E3,1400                                  EBANK=   LST1                                  #  RESTART USES E0, E3
005436,000079:    4054           12003        GOBB               BBCON    GOPROG                                
005437,000080: 
005438,000081:    4055     0025                                  EBANK=   TIME1                                 
005439,000082:    4055           04000        T6RPTBB            BBCON    RESUME                                #  ***FIX LATER***
005440,000083: 
005441,000084:    4056  E3,1400                                  EBANK=   LST1                                  
005442,000085:    4056           02003        T3RPTBB            BBCON    T3RUPT                                
005443,000086: 
005444,000087:    4057     0073                                  EBANK=   KEYTEMP1                              
005445,000088:    4057           10000        KEYRPTBB           BBCON    KEYRUPT1                              
005446,000089: 
005447,000090:    4060  E7,1404                                  EBANK=   AOTAZ                                 
005448,000091:    4060           16007        MKRUPTBB           BBCON    MARKRUPT                              
005449,000092: 
005450,000093:    4061     4057               UPRPTBB            =        KEYRPTBB                              
005451,000094: 
005452,000095:    4061     0340                                  EBANK=   DNTMBUFF                              
005453,000096:    4061           12000        DWNRPTBB           BBCON    DODOWNTM                              
005454,000097: 
005455,000098:    4062     1101                                  EBANK=   RADMODES                              
005456,000099:    4062           52002        RDRPTBB            BBCON    RADAREAD                              
005457,000100: 
005458,000101:    4063  E6,1412                                  EBANK=   M11                                   
005459,000102:    4063           14006        T4RPTBB            BBCON    T4RUPT                                
005460,000103: 
005461,000104:    4064  E7,1656                                  EBANK=   ELVIRA                                
005462,000105:    4064           42007        RUPT10BB           BBCON    PITFALL                               
005463,000106: 
005464,000107:    4065           00006        T5RUPT             EXTEND                                         
005465,000108:    4066           65344                           BZMF     NOQBRSM                               
005466,000109:    4067           00006                           EXTEND                                         
005467,000110:    4070           31277                           DCA      T5ADR                                 
005468,000111:    4071           52006                           DTCB                                           

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