Source Code

These source-code files are part of a reconstructed copy of Luminary 98, a development version 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 memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. 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 98 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.

046051,000002:                                                                                                  ## Copyright:   Public domain.
046052,000003:                                                                                                  ## Filename:    SINGLE_PRECISION_SUBROUTINES.agc
046053,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
046054,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
046055,000006:                                                                                                  ##              development version of the flight software for the Lunar 
046056,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
046057,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
046058,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
046059,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
046060,000011:                                                                                                  ##              Luminary 98 and 99.
046061,000012:                                                                                                  ## Reference:   p.  1102
046062,000013:                                                                                                  ## Assembler:   yaYUL
046063,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
046064,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
046065,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
046066,000017: 

Page 1102

046068,000019:    5032                                           BLOCK    02                                    
046069,000020: 
046070,000021:                                                                                                  #  SINGLE PRECISION SINE AND COSINE
046071,000022: 
046072,000023:    5032                                           COUNT*   $$/INTER                              
046073,000024:    5032           64736        SPCOS              AD       HALF                                  #  ARGUMENTS SCALED AT PI
046074,000025:    5033           55076        SPSIN              TS       TEMK                                  
046075,000026:    5034           15036                           TCF      SPT                                   
046076,000027:    5035           41076                           CS       TEMK                                  
046077,000028:    5036           60000        SPT                DOUBLE                                         
046078,000029:    5037           55076                           TS       TEMK                                  
046079,000030:    5040           15051                           TCF      POLLEY                                
046080,000031:    5041           57076                           XCH      TEMK                                  
046081,000032:    5042           51076                           INDEX    TEMK                                  
046082,000033:    5043           64734                           AD       LIMITS                                
046083,000034:    5044           40000                           COM                                            
046084,000035:    5045           61076                           AD       TEMK                                  
046085,000036:    5046           55076                           TS       TEMK                                  
046086,000037:    5047           15051                           TCF      POLLEY                                
046087,000038:    5050           15067                           TCF      ARG90                                 
046088,000039:    5051           00006        POLLEY             EXTEND                                         
046089,000040:    5052           71076                           MP       TEMK                                  
046090,000041:    5053           55077                           TS       SQ                                    
046091,000042:    5054           00006                           EXTEND                                         
046092,000043:    5055           75005                           MP       C5/2                                  
046093,000044:    5056           67737                           AD       C3/2                                  
046094,000045:    5057           00006                           EXTEND                                         
046095,000046:    5060           71077                           MP       SQ                                    
046096,000047:    5061           67717                           AD       C1/2                                  
046097,000048:    5062           00006                           EXTEND                                         
046098,000049:    5063           71076                           MP       TEMK                                  
046099,000050:    5064           20001                           DDOUBL                                         
046100,000051:    5065           55076                           TS       TEMK                                  
046101,000052:    5066           00002                           TC       Q                                     
046102,000053:    5067           50000        ARG90              INDEX    A                                     
046103,000054:    5070           44734                           CS       LIMITS                                
046104,000055:    5071           00002                           TC       Q                                     #  RESULT SCALED AT 1
046105,000056: 
046106,000057: 

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