Source Code
These source-code files are part of a reconstructed copy of Comanche 45, the
second release, though not the final mission release, of the Apollo 10
Command Module (CM) Apollo Guidance Computer (AGC) software. Comanche 45 was
preceded by Comanche 44 and followed by Comanche 45/2 (the flown release). The reconstruction
is believed to be exactly accurate, but in the absence of an actual Apollo-era
listing of Comanche 45, some explanation of the reconstruction process is needed
to insure confidence in that accuracy.
The starting point was the source code of Comanche 44 (itself previously accurately reconstructed). Comanche 44 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 44 and 45. The now-reconstructed Comanche 45 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 listing. Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
Comments expected to have been present in 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. |
051347,000002: ## Copyright: Public domain.
051348,000003: ## Filename: INTERPRETIVE_CONSTANTS.agc
051349,000004: ## Purpose: A section of Comanche revision 045.
051350,000005: ## It is part of the reconstructed source code for the
051351,000006: ## second release of the flight software for the Command
051352,000007: ## Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
051353,000008: ## The code has been recreated from a copy of Comanche 055. It
051354,000009: ## has been adapted such that the resulting bugger words
051355,000010: ## exactly match those specified for Comanche 45 in NASA drawing
051356,000011: ## 2021153D, which gives relatively high confidence that the
051357,000012: ## reconstruction is correct.
051358,000013: ## Assembler: yaYUL
051359,000014: ## Contact: Ron Burkey <info@sandroid.org>.
051360,000015: ## Website: www.ibiblio.org/apollo/index.html
051361,000016: ## Mod history: 2020-12-06 MAS Created from Comanche 44.
051362,000017:
Page 1205 |
051364,000019: 26,2000 SETLOC INTPRET1
051365,000020: 26,2000 BANK
051366,000021:
051367,000022: 26,3324 COUNT 23/ICONS
051368,000023:
051369,000024: 26,3324 10000 00000 DP1/4TH 2DEC .25
051370,000025:
051371,000026: 26,3326 00000 00000 UNITZ 2DEC 0 B-28
051372,000027:
051373,000028: 26,3330 00000 00000 UNITY 2DEC 0 B-28
051374,000029:
051375,000030: 26,3332 20000 00000 UNITX 2DEC .5
051376,000031:
051377,000032: 26,3334 00000 00000 ZEROVECS 2DEC 0 B-28
051378,000033:
051379,000034: 26,3336 00000 00000 2DEC 0 B-28
051380,000035:
051381,000036: 26,3340 00000 00000 2DEC 0 B-28
051382,000037:
051383,000038: 26,3342 26,3332 DPHALF = UNITX
051384,000039: 26,3342 37777 DPPOSMAX OCT 37777
051385,000040: 26,3343 37777 OCT 37777
051386,000041:
Page 1206 |
051388,000043: # INTERPRETIVE CONSTANTS IN THE OTHER HALF-MEMORY
051389,000044:
051390,000045: 04,2000 SETLOC INTPRET2
051391,000046: 04,2000 BANK
051392,000047:
051393,000048: 04,3554 COUNT 14/ICONS
051394,000049:
051395,000050: 04,3554 00000 00000 ZUNIT 2DEC 0 B-28
051396,000051:
051397,000052: 04,3556 00000 00000 YUNIT 2DEC 0 B-28
051398,000053:
051399,000054: 04,3560 20000 00000 XUNIT 2DEC .5
051400,000055:
051401,000056: 04,3562 00000 00000 ZEROVEC 2DEC 0 B-28
051402,000057:
051403,000058: 04,3564 00000 00000 2DEC 0 B-28
051404,000059:
051405,000060: 04,3566 00000 00000 2DEC 0 B-28
051406,000061:
051407,000062: 04,3570 77777 OCT 77777 # -0, -6, -12 MUST REMAIN IN THIS ORDER
051408,000063: 04,3571 77771 DEC-6 DEC -6 B-14
051409,000064: 04,3572 77763 DEC-12 DEC -12 B-14
051410,000065: 04,3573 37777 37777 LODPMAX 2OCT 3777737777 # THESE TWO CONSTANTS MUST REMAIN
051411,000066:
051412,000067: 04,3575 37777 37777 LODPMAX1 2OCT 3777737777 # ADJACENT AND THE SAME FOR INTEGRATION
051413,000068:
051414,000069: 04,3577 04,3562 ZERODP = ZEROVEC
051415,000070: 04,3577 04,3560 HALFDP = XUNIT
051416,000071:
051417,000072:
051418,000073:
051419,000074:
End of include-file INTERPRETIVE_CONSTANTS.agc. Parent file is MAIN.agc