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. |
014917,000002: ## Copyright: Public domain.
014918,000003: ## Filename: GIMBAL_LOCK_AVOIDANCE.agc
014919,000004: ## Purpose: A section of Luminary revision 97.
014920,000005: ## It is part of the reconstructed source code for the
014921,000006: ## original release of the flight software for the Lunar
014922,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
014923,000008: ## The code has been recreated from a copy of Luminary 99
014924,000009: ## revision 001, using asterisks indicating changed lines in
014925,000010: ## the listing and Luminary Memos #83 and #85, which list
014926,000011: ## changes between Luminary 97 and 98, and 98 and 99. The
014927,000012: ## code has been adapted such that the resulting bugger words
014928,000013: ## exactly match those specified for Luminary 97 in NASA drawing
014929,000014: ## 2021152D, which gives relatively high confidence that the
014930,000015: ## reconstruction is correct.
014931,000016: ## Reference: p. 364
014932,000017: ## Assembler: yaYUL
014933,000018: ## Contact: Ron Burkey <info@sandroid.org>.
014934,000019: ## Website: www.ibiblio.org/apollo/index.html
014935,000020: ## Mod history: 2019-07-28 MAS Created from Luminary 99.
014936,000021:
|
Page 364 |
014938,000023: 15,2050 BANK 15
014939,000024:
014940,000025: 22,2000 SETLOC KALCMON1
014941,000026: 22,2000 BANK
014942,000027:
014943,000028: # DETECTING GIMBAL LOCK
014944,000029: 22,2744 22,2744 LOCSKIRT EQUALS NOGIMLOC
014945,000030:
014946,000031: 22,2744 77614 NOGIMLOC SET
014947,000032: 22,2745 01074 CALCMAN3
014948,000033: 22,2746 70740 WCALC LXC,1 DLOAD*
014949,000034: 22,2747 01325 RATEINDX # CHOOSE THE DESIRED MANEUVER RATE
014950,000035: 22,2750 04772 ARATE,1 # FROM A LIST OF FOUR
014951,000036: 22,2751 45002 SR4 CALL # COMPUTE THE INCREMENTAL ROTATION MATRIX
014952,000037: 22,2752 44527 DELCOMP # DEL CORRESPONDING TO A 1 SEC ROTATION
014953,000038: # ABOUT COF
014954,000039: 22,2753 74343 DLOAD* VXSC
014955,000040: 22,2754 04772 ARATE,1
014956,000041: 22,2755 03271 COF
014957,000042: 22,2756 17326 STODL BRATE # COMPONENT MANEUVER RATES 45 DEG/SEC
014958,000043: 22,2757 03336 AM
014959,000044: 22,2760 55605 DMP DDV*
014960,000045: 22,2761 05002 ANGLTIME
014961,000046: 22,2762 04772 ARATE,1
014962,000047: 22,2763 77661 SR
014963,000048: 22,2764 20606 5
014964,000049: 22,2765 03334 STORE TM # MANEUVER EXECUTION TIME SCALED AS T2
014965,000050: 22,2766 77614 SETGO
014966,000051: 22,2767 01035 CALCMAN2 # 0(OFF) = CONTINUE MANEUVER
014967,000052: 22,2770 45010 NEWANGL +1 # 1(ON) = START MANEUVER
014968,000053:
014969,000054: # THE FOUR SELECTABLE FREE FALL MANEUVER RATES SELECTED BY
014970,000055: # LOADING RATEINDX WITH 0, 2, 4, 6, RESPECTIVELY
014971,000056:
014972,000057: 22,2771 00221 24255 ARATE 2DEC .0088888888 # = 0.2 DEG/SEC $ 22.5 DEG/SEC
014973,000058:
014974,000059: 22,2773 00554 02660 2DEC .0222222222 # = 0.5 DEG/SEC $ 22.5 DEG/SEC
014975,000060:
014976,000061: 22,2775 02660 13301 2DEC .0888888888 # = 2.0 DEG/SEC $ 22.5 DEG/SEC
014977,000062:
014978,000063: 22,2777 16161 30707 2DEC .4444444444 # = 10.0 DEG/SEC $ 22.5 DEG/SEC
014979,000064:
014980,000065: 22,3001 00003 04000 ANGLTIME 2DEC .0001907349 # = 100B-19 FUDGE FACTOR TO CONVERT
014981,000066: # MANEUVER ANGLE TO MANEUVER TIME
014982,000067:
014983,000068:
End of include-file GIMBAL_LOCK_AVOIDANCE.agc. Parent file is MAIN.agc