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. |
020557,000002: ## Copyright: Public domain.
020558,000003: ## Filename: RADAR_LEADIN_ROUTINES.agc
020559,000004: ## Purpose: A section of Luminary revision 98.
020560,000005: ## It is part of the reconstructed source code for the a
020561,000006: ## development version of the flight software for the Lunar
020562,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
020563,000008: ## The code has been recreated from a copy of Luminary 99
020564,000009: ## revision 001, using asterisks indicating changed lines in
020565,000010: ## the listing and Luminary Memo #85, which lists changes between
020566,000011: ## Luminary 98 and 99.
020567,000012: ## Reference: pp. 490-491
020568,000013: ## Assembler: yaYUL
020569,000014: ## Contact: Ron Burkey <info@sandroid.org>.
020570,000015: ## Website: www.ibiblio.org/apollo/index.html
020571,000016: ## Mod history: 2019-07-28 MAS Created from Luminary 99.
020572,000017:
Page 490 |
020574,000019: 25,2003 BANK 25
020575,000020: 25,2000 SETLOC RRLEADIN
020576,000021: 25,2000 BANK
020577,000022:
020578,000023: 25,2003 E4,1600 EBANK= RSTACK
020579,000024:
020580,000025: # RADAR SAMPLING LOOP.
020581,000026:
020582,000027: 25,2003 COUNT* $$/RLEAD
020583,000028: 25,2003 11755 RADSAMP CCS RSAMPDT # TIMES NORMAL ONCE-PER-SECOND SAMPLING.
020584,000029: 25,2004 12006 TCF +2
020585,000030: 25,2005 15261 TCF TASKOVER # +0 INSERTED MANUALLY TERMINATES TEST.
020586,000031:
020587,000032: 25,2006 05203 TC WAITLIST
020588,000033: 25,2007 E4,1600 EBANK= RSTACK
020589,000034: 25,2007 02003 52064 2CADR RADSAMP
020590,000035:
020591,000036: 25,2011 37713 CAF PRIO25
020592,000037: 25,2012 05072 TC NOVAC
020593,000038: 25,2013 E4,1600 EBANK= RSTACK
020594,000039: 25,2013 02023 52064 2CADR DORSAMP
020595,000040:
020596,000041: 25,2015 34736 CAF BIT14 # FOR CYCLIC SAMPLING, RTSTDEX=
020597,000042: 25,2016 00006 EXTEND # RTSTLOC/2 + RTSTBASE
020598,000043: 25,2017 71754 MP RTSTLOC
020599,000044: 25,2020 61753 AD RTSTBASE # 0 FOR RR, 2 FOR LR.
020600,000045: 25,2021 55751 TS RTSTDEX
020601,000046: 25,2022 15261 TCF TASKOVER
020602,000047:
020603,000048: # DO THE ACTUAL RADAR SAMPLE.
020604,000049:
020605,000050: 25,2023 02047 DORSAMP TC VARADAR # SELECTS VARIABLE RADAR CHANNEL.
020606,000051: 25,2024 04616 TC BANKCALL
020607,000052: 25,2025 17714 CADR RADSTALL
020608,000053:
020609,000054: 25,2026 25756 INCR RFAILCNT # ADVANCE FAIL COUNTER BUT ACCEPT BAD DATA
020610,000055:
020611,000056: 25,2027 00004 DORSAMP2 INHINT
020612,000057: 25,2030 30101 CA FLAGWRD5 # DON'T UPDATE RSTACK IF IN R77.
020613,000058: 25,2031 74741 MASK R77FLBIT
020614,000059: 25,2032 10000 CCS A
020615,000060: 25,2033 12037 TCF +4
020616,000061:
020617,000062: 25,2034 53102 DXCH SAMPLSUM
020618,000063: 25,2035 51754 INDEX RTSTLOC
020619,000064: 25,2036 53601 DXCH RSTACK
020620,000065:
020621,000066: 25,2037 41754 CS RTSTLOC # CYCLE RTSTLOC.
020622,000067: 25,2040 61752 AD RTSTMAX
020623,000068: 25,2041 00006 EXTEND
020624,000069:
Page 491 |
020626,000071: 25,2042 12045 BZF +3
020627,000072: 25,2043 31754 CA RTSTLOC
020628,000073: 25,2044 64752 AD TWO # STORAGE IS DP
020629,000074: 25,2045 55754 TS RTSTLOC
020630,000075: 25,2046 15155 TCF ENDOFJOB # CONTINUOUS SAMPLING AND 2N TRIES - GONE.
020631,000076:
020632,000077: # VARIABLE RADAR DATA CALLER FOR ONE MEASUREMENT ONLY.
020633,000078:
020634,000079: 25,2047 34753 VARADAR CAF ONE # WILL BE SENT TO RADAR ROUTINE IN A BY
020635,000080: 25,2050 54133 TS BUF2 # SWCALL.
020636,000081: 25,2051 51751 INDEX RTSTDEX
020637,000082: 25,2052 32054 CAF RDRLOCS
020638,000083: 25,2053 14622 TCF SWCALL # NOT TOUCHING Q.
020639,000084:
020640,000085: 25,2054 53105 RDRLOCS CADR RRRANGE # = 0
020641,000086: 25,2055 53103 CADR RRRDOT # = 1
020642,000087: 25,2056 53101 CADR LRVELX # = 2
020643,000088: 25,2057 53077 CADR LRVELY # = 3
020644,000089: 25,2060 53075 CADR LRVELZ # = 4
020645,000090: 25,2061 53073 CADR LRALT # = 5
020646,000091:
020647,000092:
End of include-file RADAR_LEADIN_ROUTINES.agc. Parent file is MAIN.agc