Source Code

These source-code files are part of a reconstructed copy of Luminary 97, the original release 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 memos 83 and 85, using asterisks indicating changed lines in the listing as a guide. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. 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 97 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.

046276,000002:                                                                                                  ## Copyright:   Public domain.
046277,000003:                                                                                                  ## Filename:    SINGLE_PRECISION_SUBROUTINES.agc
046278,000004:                                                                                                  ## Purpose:     A section of Luminary revision 97.
046279,000005:                                                                                                  ##              It is part of the reconstructed source code for the
046280,000006:                                                                                                  ##              original release of the flight software for the Lunar 
046281,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
046282,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
046283,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
046284,000010:                                                                                                  ##              the listing and Luminary Memos #83 and #85, which list 
046285,000011:                                                                                                  ##              changes between Luminary 97 and 98, and 98 and 99. The
046286,000012:                                                                                                  ##              code has been adapted such that the resulting bugger words
046287,000013:                                                                                                  ##              exactly match those specified for Luminary 97 in NASA drawing
046288,000014:                                                                                                  ##              2021152D, which gives relatively high confidence that the
046289,000015:                                                                                                  ##              reconstruction is correct.
046290,000016:                                                                                                  ## Reference:   p.  1102
046291,000017:                                                                                                  ## Assembler:   yaYUL
046292,000018:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
046293,000019:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
046294,000020:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
046295,000021: 

Page 1102

046297,000023:    5032                                           BLOCK    02                                    
046298,000024: 
046299,000025:                                                                                                  #  SINGLE PRECISION SINE AND COSINE
046300,000026: 
046301,000027:    5032                                           COUNT*   $$/INTER                              
046302,000028:    5032           64736        SPCOS              AD       HALF                                  #  ARGUMENTS SCALED AT PI
046303,000029:    5033           55076        SPSIN              TS       TEMK                                  
046304,000030:    5034           15036                           TCF      SPT                                   
046305,000031:    5035           41076                           CS       TEMK                                  
046306,000032:    5036           60000        SPT                DOUBLE                                         
046307,000033:    5037           55076                           TS       TEMK                                  
046308,000034:    5040           15051                           TCF      POLLEY                                
046309,000035:    5041           57076                           XCH      TEMK                                  
046310,000036:    5042           51076                           INDEX    TEMK                                  
046311,000037:    5043           64734                           AD       LIMITS                                
046312,000038:    5044           40000                           COM                                            
046313,000039:    5045           61076                           AD       TEMK                                  
046314,000040:    5046           55076                           TS       TEMK                                  
046315,000041:    5047           15051                           TCF      POLLEY                                
046316,000042:    5050           15067                           TCF      ARG90                                 
046317,000043:    5051           00006        POLLEY             EXTEND                                         
046318,000044:    5052           71076                           MP       TEMK                                  
046319,000045:    5053           55077                           TS       SQ                                    
046320,000046:    5054           00006                           EXTEND                                         
046321,000047:    5055           75005                           MP       C5/2                                  
046322,000048:    5056           67737                           AD       C3/2                                  
046323,000049:    5057           00006                           EXTEND                                         
046324,000050:    5060           71077                           MP       SQ                                    
046325,000051:    5061           67717                           AD       C1/2                                  
046326,000052:    5062           00006                           EXTEND                                         
046327,000053:    5063           71076                           MP       TEMK                                  
046328,000054:    5064           20001                           DDOUBL                                         
046329,000055:    5065           55076                           TS       TEMK                                  
046330,000056:    5066           00002                           TC       Q                                     
046331,000057:    5067           50000        ARG90              INDEX    A                                     
046332,000058:    5070           44734                           CS       LIMITS                                
046333,000059:    5071           00002                           TC       Q                                     #  RESULT SCALED AT 1
046334,000060: 
046335,000061: 

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