Source Code

These source-code files are part of a reconstructed copy of Artemis 071, the first release of the Apollo 15 through 17 Command Module (CM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Artemis 072 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes between the two versions. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021154-. Note that page numbers in the reconstructed code match those on the Artemis 072 printout, although the changed code would likely have changed page numbers for a real Artemis 071 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.

006048,000002:                                                                                                  ## Copyright:   Public domain.
006049,000003:                                                                                                  ## Filename:    INTERRUPT_LEAD_INS.agc
006050,000004:                                                                                                  ## Purpose:     A section of Artemis revision 071.
006051,000005:                                                                                                  ##              It is part of the reconstructed source code for the first
006052,000006:                                                                                                  ##              release of the flight software for the Command Module's
006053,000007:                                                                                                  ##              (CM) Apollo Guidance Computer (AGC) for Apollo 15 through
006054,000008:                                                                                                  ##              17. The code has been recreated from a copy of Artemis 072.
006055,000009:                                                                                                  ##              It has been adapted such that the resulting bugger words
006056,000010:                                                                                                  ##              exactly match those specified for Artemis 071 in NASA
006057,000011:                                                                                                  ##              drawing 2021154-, which gives relatively high confidence
006058,000012:                                                                                                  ##              that the reconstruction is correct.
006059,000013:                                                                                                  ## Reference:   139
006060,000014:                                                                                                  ## Assembler:   yaYUL
006061,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
006062,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
006063,000017:                                                                                                  ## Mod history: 2019-08-14 MAS  Created from Artemis 072.
006064,000018: 

Page 139

006066,000020:    4000                                           SETLOC   4000                                  
006067,000021: 
006068,000022:    4000                                           COUNT*   $$/RUPTS                              
006069,000023: 
006070,000024:    4000           00004                           INHINT                                         #  GO
006071,000025:    4001           34051                           CAF      GOBB                                  
006072,000026:    4002           56006                           XCH      BBANK                                 
006073,000027:    4003           12563                           TCF      GOPROG                                
006074,000028: 
006075,000029:    4004           52011                           DXCH     ARUPT                                 #  T6RUPT
006076,000030:    4005           00006                           EXTEND                                         
006077,000031:    4006           30111                           DCA      T6LOC                                 
006078,000032:    4007           52006                           DTCB                                           
006079,000033: 
006080,000034:    4010           52011                           DXCH     ARUPT                                 #  T5RUPT
006081,000035:    4011           40030                           CS       TIME5                                 
006082,000036:    4012           65011                           AD       .5SEC                                 
006083,000037:    4013           14056                           TCF      T5RUPT                                
006084,000038: 
006085,000039:    4014           52011                           DXCH     ARUPT                                 #  T3RUPT
006086,000040:    4015           35254                           CAF      T3RPTBB                               
006087,000041:    4016           56006                           XCH      BBANK                                 
006088,000042:    4017           13362                           TCF      T3RUPT                                
006089,000043: 
006090,000044:    4020           52011                           DXCH     ARUPT                                 #  T4RUPT
006091,000045:    4021           34054                           CAF      T4RPTBB                               
006092,000046:    4022           56006                           XCH      BBANK                                 
006093,000047:    4023           12000                           TCF      T4RUPT                                
006094,000048: 
006095,000049:    4024           52011                           DXCH     ARUPT                                 #  KEYRUPT1
006096,000050:    4025           34052                           CAF      KEYRPTBB                              
006097,000051:    4026           56006                           XCH      BBANK                                 
006098,000052:    4027           13666                           TCF      KEYRUPT1                              
006099,000053: 
006100,000054:    4030           52011                           DXCH     ARUPT                                 #  KEYRUPT2
006101,000055:    4031           34052                           CAF      MKRUPTBB                              
006102,000056:    4032           56006                           XCH      BBANK                                 
006103,000057:    4033           12105                           TCF      MARKRUPT                              
006104,000058: 
006105,000059:    4034           52011                           DXCH     ARUPT                                 #  UPRUPT
006106,000060:    4035           34052                           CAF      UPRPTBB                               
006107,000061:    4036           56006                           XCH      BBANK                                 
006108,000062:    4037           13710                           TCF      UPRUPT                                
006109,000063: 
006110,000064:    4040           52011                           DXCH     ARUPT                                 #  DOWNRUPT
006111,000065:    4041           34051                           CAF      DWNRPTBB                              
006112,000066:    4042           56006                           XCH      BBANK                                 
006113,000067:    4043           14621                           TCF      DODOWNTM                              
006114,000068: 
006115,000069:    4044           52011                           DXCH     ARUPT                                 #  RADAR RUPT
006116,000070:    4045           34053                           CAF      RDRPTBB                               

Page 140

006118,000072:    4046           56006                           XCH      BBANK                                 
006119,000073:    4047           12536                           TCF      VHFREAD                               
006120,000074: 
006121,000075:    4050           50017                           RESUME                                         
006122,000076: 
006123,000077:    4051  E3,1400                                  EBANK=   LST1                                  #  RESTART USES E0,E3
006124,000078:    4051           12063        GOBB               BBCON    GOPROG                                
006125,000079: 
006126,000080:    4052  E3,1400                                  EBANK=   LST1                                  
006127,000081:    4052     5254               T3RPTBB            EQUALS   WAITBB                                
006128,000082:    4052     4052               KEYRPTBB           =        MKRUPTBB                              
006129,000083: 
006130,000084:    4052  E7,1722                                  EBANK=   MRKBUF1                               
006131,000085:    4052           16067        MKRUPTBB           BBCON    MARKRUPT                              
006132,000086:    4053     4052               UPRPTBB            =        KEYRPTBB                              
006133,000087:    4053     4051               DWNRPTBB           =        GOBB                                  
006134,000088: 
006135,000089:    4053  E7,1703                                  EBANK=   RM                                    
006136,000090:    4053           56067        RDRPTBB            BBCON    VHFREAD                               
006137,000091:    4054     1322                                  EBANK=   DSRUPTSW                              
006138,000092:    4054           14062        T4RPTBB            BBCON    T4RUPT                                
006139,000093:    4055     0025                                  EBANK=   TIME1                                 
006140,000094:    4055           04060        T5RPTBB            BBCON    T5RUPT                                
006141,000095: 
006142,000096:    4056           00006        T5RUPT             EXTEND                                         
006143,000097:    4057           65327                           BZMF     NOQBRSM                               
006144,000098:    4060           00006                           EXTEND                                         
006145,000099:    4061           30113                           DCA      T5LOC                                 
006146,000100:    4062           52006                           DTCB                                           

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