Source Code

These source-code files are part of a reconstructed copy of Comanche 72/3 (AKA Manche72 revision 3), the final, flown mission release of the Apollo Guidance Computer (AGC) Command Module (CM) software for Apollo 13.

The starting point was the source code of Comanche 72 (itself previously reconstructed). Comanche 72 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 72 and 72/3. The resulting code assembles to have identical memory-bank checksums as those specified in NASA drawing 2021153G; this gives reasonably high confidence that the changes that have been made are correct. In places where ambiguity exists, this ambiguity is discussed in "## Reconstruction:" comments.

Since no contemporary listings of Comanche 72/3 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.

005195,000002:                                                                                                  ## Copyright:   Public domain.
005196,000003:                                                                                                  ## Filename:    INTERRUPT_LEAD_INS.agc
005197,000004:                                                                                                  ## Purpose:     A section of Manche72 revision 3.
005198,000005:                                                                                                  ##              It is part of the reconstructed source code for the final, flown
005199,000006:                                                                                                  ##              release of the software for the Command Module's (CM) Apollo
005200,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 13. No original listings
005201,000008:                                                                                                  ##              of this program are available; instead, this file was recreated
005202,000009:                                                                                                  ##              from a reconstructed copy of Comanche 072. It has been adapted
005203,000010:                                                                                                  ##              such that the resulting bugger words exactly match those
005204,000011:                                                                                                  ##              specified for Manche72 revision 3 in NASA drawing 2021153G,
005205,000012:                                                                                                  ##              which gives relatively high confidence that the reconstruction
005206,000013:                                                                                                  ##              is correct.
005207,000014:                                                                                                  ## Assembler:   yaYUL
005208,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
005209,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
005210,000017:                                                                                                  ## Mod history: 2024-05-19 MAS  Created from Comanche 072.
005211,000018: 
005212,000019:    4000                                           SETLOC   4000                                  
005213,000020: 
005214,000021:    4000                                           COUNT    02/RUPTS                              
005215,000022: 
005216,000023:    4000           00004                           INHINT                                         #  GO
005217,000024:    4001           34054                           CAF      GOBB                                  
005218,000025:    4002           56006                           XCH      BBANK                                 
005219,000026:    4003           12526                           TCF      GOPROG                                
005220,000027: 
005221,000028:    4004           52011                           DXCH     ARUPT                                 #  T6RUPT
005222,000029:    4005           00006                           EXTEND                                         
005223,000030:    4006           31311                           DCA      T6LOC                                 
005224,000031:    4007           52006                           DTCB                                           
005225,000032: 
005226,000033:    4010           52011                           DXCH     ARUPT                                 #  T5RUPT
005227,000034:    4011           40030                           CS       TIME5                                 
005228,000035:    4012           65052                           AD       .5SEC                                 
005229,000036:    4013           14065                           TCF      T5RUPT                                
005230,000037: 
005231,000038:    4014           52011                           DXCH     ARUPT                                 #  T3RUPT
005232,000039:    4015           34055                           CAF      T3RPTBB                               
005233,000040:    4016           56006                           XCH      BBANK                                 
005234,000041:    4017           13416                           TCF      T3RUPT                                
005235,000042: 
005236,000043:    4020           52011                           DXCH     ARUPT                                 #  T4RUPT
005237,000044:    4021           34063                           CAF      T4RPTBB                               
005238,000045:    4022           56006                           XCH      BBANK                                 
005239,000046:    4023           12000                           TCF      T4RUPT                                
005240,000047: 
005241,000048:    4024           52011                           DXCH     ARUPT                                 #  KEYRUPT1
005242,000049:    4025           34056                           CAF      KEYRPTBB                              
005243,000050:    4026           56006                           XCH      BBANK                                 
005244,000051:    4027           13673                           TCF      KEYRUPT1                              
005245,000052: 
005246,000053:    4030           52011                           DXCH     ARUPT                                 #  KEYRUPT2
005247,000054:    4031           34057                           CAF      MKRUPTBB                              
005248,000055:    4032           56006                           XCH      BBANK                                 
005249,000056:    4033           12104                           TCF      MARKRUPT                              
005250,000057: 
005251,000058:    4034           52011                           DXCH     ARUPT                                 #  UPRUPT
005252,000059:    4035           34056                           CAF      UPRPTBB                               
005253,000060:    4036           56006                           XCH      BBANK                                 
005254,000061:    4037           13716                           TCF      UPRUPT                                
005255,000062: 
005256,000063:    4040           52011                           DXCH     ARUPT                                 #  DOWNRUPT
005257,000064:    4041           34060                           CAF      DWNRPTBB                              
005258,000065:    4042           56006                           XCH      BBANK                                 
005259,000066:    4043           14662                           TCF      DODOWNTM                              
005260,000067: 
005261,000068:    4044           52011                           DXCH     ARUPT                                 #  RADAR RUPT
005262,000069:    4045           34061                           CAF      RDRPTBB                               
005263,000070:    4046           56006                           XCH      BBANK                                 
005264,000071:    4047           12505                           TCF      VHFREAD                               
005265,000072: 
005266,000073:    4050           52011                           DXCH     ARUPT                                 #  HAND CONTROL RUPT
005267,000074:    4051           34062                           CAF      HCRUPTBB                              
005268,000075:    4052           56006                           XCH      BBANK                                 
005269,000076:    4053           15352                           TCF      RESUME     +3                         #  NOT USED
005270,000077: 
005271,000078:    4054  E3,1400                                  EBANK=   LST1                                  #  RESTART USES E0,E3
005272,000079:    4054           12063        GOBB               BBCON    GOPROG                                
005273,000080: 
005274,000081:    4055  E3,1400                                  EBANK=   LST1                                  
005275,000082:    4055           02063        T3RPTBB            BBCON    T3RUPT                                
005276,000083: 
005277,000084:    4056     0073                                  EBANK=   KEYTEMP1                              
005278,000085:    4056           16060        KEYRPTBB           BBCON    KEYRUPT1                              
005279,000086: 
005280,000087:    4057  E7,1725                                  EBANK=   MRKBUF1                               
005281,000088:    4057           16067        MKRUPTBB           BBCON    MARKRUPT                              
005282,000089: 
005283,000090:    4060     4056               UPRPTBB            =        KEYRPTBB                              
005284,000091: 
005285,000092:    4060     0337                                  EBANK=   DNTMBUFF                              
005286,000093:    4060           12060        DWNRPTBB           BBCON    DNPHASE1                              
005287,000094: 
005288,000095:    4061  E7,1603                                  EBANK=   DATATEST                              
005289,000096:    4061           56067        RDRPTBB            BBCON    VHFREAD                               
005290,000097: 
005291,000098:    4062     0025                                  EBANK=   TIME1                                 
005292,000099:    4062           04060        HCRUPTBB           BBCON    RESUME                                #  NOT USED
005293,000100: 
005294,000101:    4063     1302                                  EBANK=   DSRUPTSW                              
005295,000102:    4063           14062        T4RPTBB            BBCON    T4RUPT                                
005296,000103: 
005297,000104:    4064     0025                                  EBANK=   TIME1                                 
005298,000105:    4064           04060        T5RPTBB            BBCON    T5RUPT                                
005299,000106: 
005300,000107:    4065           00006        T5RUPT             EXTEND                                         
005301,000108:    4066           65353                           BZMF     NOQBRSM                               
005302,000109:    4067           00006                           EXTEND                                         
005303,000110:    4070           31313                           DCA      T5LOC                                 
005304,000111:    4071           52006                           DTCB                                           
005305,000112: 
005306,000113: 
005307,000114: 

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