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