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. |
001143,000002: ## Copyright: Public domain.
001144,000003: ## Filename: TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc
001145,000004: ## Purpose: A section of Comanche revision 045.
001146,000005: ## It is part of the reconstructed source code for the
001147,000006: ## second release of the flight software for the Command
001148,000007: ## Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
001149,000008: ## The code has been recreated from a copy of Comanche 055. It
001150,000009: ## has been adapted such that the resulting bugger words
001151,000010: ## exactly match those specified for Comanche 45 in NASA drawing
001152,000011: ## 2021153D, which gives relatively high confidence that the
001153,000012: ## reconstruction is correct.
001154,000013: ## Assembler: yaYUL
001155,000014: ## Contact: Ron Burkey <info@sandroid.org>.
001156,000015: ## Website: www.ibiblio.org/apollo/index.html
001157,000016: ## Mod history: 2020-12-06 MAS Created from Comanche 44 and added the
001158,000017: ## MODCHG1 tag to bank 17.
001159,000018: ## 2020-12-20 MAS Moved the MODCHG1 tag to bank 16, based on
001160,000019: ## new evidence that PCR 747 (Remove TVCDAP
001161,000020: ## initial attitude errors) is responsible for
001162,000021: ## the bank 17 checksum difference.
001163,000022: ## 2020-12-24 RSB Added an annotation justifying a reconstruction
001164,000023: ## change.
001165,000024:
Page 27 |
001167,000026: ??????? FIXED MEMORY 120000 - 167777
001168,000027: ??????? COUNT BANKSUM
001169,000028:
001170,000029: # MODULE 1 CONTAINS BANKS 0 THROUGH 5
001171,000030:
001172,000031: 4000 BLOCK 02
001173,000032: 4000 FFTAG1 EQUALS
001174,000033: 4000 FFTAG2 EQUALS
001175,000034: 4000 FFTAG3 EQUALS
001176,000035: 4000 FFTAG4 EQUALS
001177,000036: 4000 FFTAG7 EQUALS
001178,000037: 4000 FFTAG8 EQUALS
001179,000038: 4000 FFTAG9 EQUALS
001180,000039: 4000 FFTAG10 EQUALS
001181,000040: 4000 FFTAG12 EQUALS
001182,000041: 4000 P30SUBS EQUALS
001183,000042: 4000 STOPRAT EQUALS
001184,000043: 4000 P23S EQUALS
001185,000044: 4000 BNKSUM 02
001186,000045:
001187,000046: 6000 BLOCK 03
001188,000047: 6000 FFTAG5 EQUALS
001189,000048: 6000 FFTAG6 EQUALS
001190,000049: 6000 DAPS9 EQUALS
001191,000050: 6000 FFTAG13 EQUALS
001192,000051: 6000 BNKSUM 03
001193,000052:
001194,000053: 00,2000 BANK 00
001195,000054: 00,2000 DLAYJOB EQUALS
001196,000055: 00,2000 BNKSUM 00
001197,000056:
001198,000057: 01,2000 BANK 01
001199,000058: 01,2000 RESTART EQUALS
001200,000059: 01,2000 BNKSUM 01
001201,000060:
001202,000061: 04,2000 BANK 4
001203,000062: 04,2000 VERB37 EQUALS
001204,000063: 04,2000 CONICS1 EQUALS
001205,000064: 04,2000 PINBALL4 EQUALS
001206,000065: 04,2000 CSI/CDH1 EQUALS
001207,000066: 04,2000 INTPRET2 EQUALS
001208,000067: 04,2000 IMUCAL1 EQUALS
001209,000068:
Page 28 |
001211,000070:
001212,000071: 04,2000 STBLEORB EQUALS
001213,000072: 04,2000 E/PROG EQUALS
001214,000073: 04,2000 MIDDGIM EQUALS
001215,000074:
001216,000075: 04,2000 BNKSUM 04
001217,000076:
001218,000077: 05,2000 BANK 5
001219,000078: 05,2000 FRANDRES EQUALS
001220,000079: 05,2000 DOWNTELM EQUALS
001221,000080: 05,2000 DAPMASS EQUALS
001222,000081: 05,2000 CDHTAG EQUALS
001223,000082: 05,2000 BNKSUM 05
001224,000083:
001225,000084: # MODULE 2 CONTAINS BANKS 6 THROUGH 13
001226,000085:
001227,000086: 06,2000 BANK 6
001228,000087: 06,2000 IMUCOMP EQUALS
001229,000088: 06,2000 T4RUP EQUALS
001230,000089: 06,2000 IMUCAL2 EQUALS
001231,000090: 06,2000 CSIPROG EQUALS
001232,000091: 06,2000 BNKSUM 06
001233,000092:
001234,000093: 07,2000 BANK 7
001235,000094: 07,2000 SXTMARKE EQUALS
001236,000095: 07,2000 R02 EQUALS
001237,000096: 07,2000 MODESW EQUALS
001238,000097: 07,2000 XANG EQUALS
001239,000098: 07,2000 KEYRUPT EQUALS
001240,000099: 07,2000 CSIPROG6 EQUALS
001241,000100: 07,2000 BNKSUM 07
001242,000101:
001243,000102: 10,2000 BANK 10
001244,000103: 10,2000 DISPLAYS EQUALS
001245,000104: 10,2000 PHASETAB EQUALS
001246,000105: 10,2000 COMGEOM2 EQUALS
001247,000106: 10,2000 SXTMARK1 EQUALS
001248,000107: 10,2000 P60S4 EQUALS
001249,000108: 10,2000 OPTDRV EQUALS
001250,000109: 10,2000 CSIPROG8 EQUALS
001251,000110: 10,2000 BNKSUM 10
001252,000111:
001253,000112: 11,2000 BANK 11
001254,000113: 11,2000 ORBITAL EQUALS
001255,000114: 11,2000 ORBITAL1 EQUALS # CONSTANTS
001256,000115:
Page 29 |
001258,000117:
001259,000118: 11,2000 INTVEL EQUALS
001260,000119: 11,2000 S52/2 EQUALS
001261,000120: 11,2000 CSIPROG5 EQUALS
001262,000121: 11,2000 INTINIT1 EQUALS
001263,000122: 11,2000 BNKSUM 11
001264,000123:
001265,000124: 12,2000 BANK 12
001266,000125: 12,2000 CONICS EQUALS
001267,000126: 12,2000 CSIPROG2 EQUALS
001268,000127: 12,2000 CSI/CDH2 EQUALS
001269,000128: 12,2000 BNKSUM 12
001270,000129:
001271,000130: 13,2000 BANK 13
001272,000131: 13,2000 P76LOC EQUALS
001273,000132: 13,2000 LATLONG EQUALS
001274,000133: 13,2000 INTINIT EQUALS
001275,000134: 13,2000 SR52/1 EQUALS
001276,000135: 13,2000 ORBITAL2 EQUALS
001277,000136: 13,2000 CDHTAGS EQUALS
001278,000137: 13,2000 E/PROG1 EQUALS
001279,000138: 13,2000 BNKSUM 13
001280,000139:
001281,000140: # SPACER
001282,000141:
001283,000142: # MODULE 3 CONTAINS BANKS 14 THROUGH 21
001284,000143:
001285,000144: 14,2000 BANK 14
001286,000145: 14,2000 STARTAB EQUALS
001287,000146: 14,2000 RT53 EQUALS
001288,000147: 14,2000 P50S1 EQUALS
001289,000148: 14,2000 MEASINC2 EQUALS
001290,000149: 14,2000 CSI/CDH3 EQUALS
001291,000150: 14,2000 BNKSUM 14
001292,000151:
001293,000152: 15,2000 BANK 15
001294,000153: 15,2000 P50S EQUALS
001295,000154: 15,2000 ETRYDAP EQUALS
001296,000155: 15,2000 S52/3 EQUALS
001297,000156: 15,2000 BNKSUM 15
001298,000157:
001299,000158: 16,2000 BANK 16
001300,000159: 16,2000 P40S1 EQUALS
001301,000160:
Page 30 |
001303,000162:
001304,000163: 16,2000 DAPROLL EQUALS
001305,000164: 16,2000 P50S2 EQUALS
001306,000165: 16,2000 P23S1 EQUALS
001307,000166: 16,2000 RTE2 EQUALS
Reconstruction: The following line is an arbitrary addition, relating to the addition of the code at the end of memory-bank
16, at the end of log section RTB OP CODE. In
contemporary Comanche 45, the alias MODCHG1 could be a different string, could
appear a few lines earlier in this log section, or indeed may not even be needed at all.
|
001312,000171: 16,2000 MODCHG1 EQUALS
001313,000172: 16,2000 BNKSUM 16
001314,000173:
001315,000174: 17,2000 BANK 17
001316,000175: 17,2000 DAPS4 EQUALS
001317,000176: 17,2000 DAPS5 EQUALS
001318,000177: 17,2000 DAPS7 EQUALS
001319,000178: 17,2000 P50S3 EQUALS
001320,000179: 17,2000 BNKSUM 17
001321,000180:
001322,000181: 20,2000 BANK 20
001323,000182: 20,2000 DAPS6 EQUALS
001324,000183: 20,2000 DAPS1 EQUALS
001325,000184: 20,2000 DAPS2 EQUALS
001326,000185: 20,2000 MANUSTUF EQUALS
001327,000186: 20,2000 R36CM EQUALS
001328,000187: 20,2000 VAC5LOC EQUALS
001329,000188: 20,2000 BNKSUM 20
001330,000189:
001331,000190: 21,2000 BANK 21
001332,000191: 21,2000 DAPS3 EQUALS
001333,000192: 21,2000 MYSUBS EQUALS
001334,000193: 21,2000 KALCMON3 EQUALS
001335,000194: 21,2000 BNKSUM 21
001336,000195:
001337,000196: # MODULE 4 CONTAINS BANKS 22 THROUGH 27
001338,000197:
001339,000198: 22,2000 BANK 22
001340,000199: 22,2000 RTBCODES EQUALS
001341,000200: 22,2000 RTBCODE1 EQUALS
001342,000201: 22,2000 DAPS8 EQUALS
001343,000202: 22,2000 APOPERI EQUALS
001344,000203: 22,2000 P40S5 EQUALS
001345,000204: 22,2000 KALCMON2 EQUALS
001346,000205: 22,2000 KALCMON1 EQUALS
001347,000206: 22,2000 CSIPROG3 EQUALS
001348,000207: 22,2000 BNKSUM 22
001349,000208:
Page 31 |
001351,000210:
001352,000211: 23,2000 BANK 23
001353,000212: 23,2000 P20S2 EQUALS
001354,000213: 23,2000 INFLIGHT EQUALS
001355,000214: 23,2000 COMGEOM1 EQUALS
001356,000215: 23,2000 POWFLITE EQUALS
001357,000216: 23,2000 POWFLIT1 EQUALS
001358,000217: 23,2000 RENDGUID EQUALS
001359,000218: 23,2000 POWFLIT2 EQUALS
001360,000219: 23,2000 R30LOC EQUALS
001361,000220: 23,2000 P11FOUR EQUALS
001362,000221: 23,2000 CSIPROG4 EQUALS
001363,000222: 23,2000 BNKSUM 23
001364,000223:
001365,000224: 24,2000 BANK 24
001366,000225: 24,2000 LOADDAP EQUALS
001367,000226: 24,2000 P40S EQUALS
001368,000227: 24,2000 CSIPROG7 EQUALS
001369,000228: 24,2000 BNKSUM 24
001370,000229:
001371,000230: 25,2000 BANK 25
001372,000231: 25,2000 REENTRY EQUALS
001373,000232: 25,2000 CDHTAG1 EQUALS
001374,000233: 25,2000 BNKSUM 25
001375,000234:
001376,000235: 26,2000 BANK 26
001377,000236: 26,2000 INTPRET1 EQUALS
001378,000237: 26,2000 REENTRY1 EQUALS
001379,000238: 26,2000 P60S EQUALS
001380,000239: 26,2000 P60S1 EQUALS
001381,000240: 26,2000 P60S2 EQUALS
001382,000241: 26,2000 P60S3 EQUALS
001383,000242: 26,2000 PLANTIN EQUALS # LUNAR ROT
001384,000243: 26,2000 EPHEM EQUALS
001385,000244: 26,2000 P05P06 EQUALS
001386,000245: 26,2000 26P50S EQUALS
001387,000246: 26,2000 BNKSUM 26
001388,000247:
001389,000248: 27,2000 BANK 27
001390,000249: 27,2000 TOF-FF EQUALS
001391,000250: 27,2000 TOF-FF1 EQUALS
001392,000251: 27,2000 MANUVER EQUALS
001393,000252: 27,2000 MANUVER1 EQUALS
001394,000253:
Page 32 |
001396,000255:
001397,000256: 27,2000 VECPT EQUALS
001398,000257: 27,2000 UPDATE1 EQUALS
001399,000258: 27,2000 UPDATE2 EQUALS
001400,000259: 27,2000 R22S1 EQUALS
001401,000260: 27,2000 P60S5 EQUALS
001402,000261: 27,2000 P40S2 EQUALS
001403,000262: 27,2000 BNKSUM 27
001404,000263:
001405,000264: # MODULE 5 CONTAINS BANKS 30 THROUGH 35
001406,000265:
001407,000266: 30,2000 BANK 30
001408,000267: 30,2000 IMUSUPER EQUALS
001409,000268: 30,2000 LOWSUPER EQUALS
001410,000269: 30,2000 FCSTART EQUALS # STANDARD LOCATION FOR THIS. (FOR EXTVB)
001411,000270: 30,2000 LOPC EQUALS
001412,000271: 30,2000 P20S1 EQUALS
001413,000272: 30,2000 P20S6 EQUALS
001414,000273: 30,2000 P40S3 EQUALS
001415,000274: 30,2000 R35A EQUALS
001416,000275: 30,2000 BNKSUM 30
001417,000276:
001418,000277: 31,2000 BANK 31
001419,000278: 31,2000 R35 EQUALS
001420,000279: 31,2000 RT23 EQUALS
001421,000280: 31,2000 P30S1A EQUALS
001422,000281: 31,2000 R34 EQUALS
001423,000282: 31,2000 CDHTAG2 EQUALS
001424,000283: 31,2000 CSIPROG9 EQUALS
001425,000284: 31,2000 R31 EQUALS
001426,000285: 31,2000 P22S EQUALS
001427,000286: 31,2000 RTE3 EQUALS
001428,000287: 31,2000 BNKSUM 31
001429,000288:
001430,000289: 32,2000 BANK 32
001431,000290: 32,2000 MSGSCAN1 EQUALS
001432,000291: 32,2000 RTE EQUALS
001433,000292: 32,2000 DELRSPL1 EQUALS
001434,000293: 32,2000 IMUCAL3 EQUALS
001435,000294: 32,2000 BNKSUM 32
001436,000295:
001437,000296: 33,2000 BANK 33
001438,000297: 33,2000 TESTLEAD EQUALS
001439,000298:
Page 33 |
001441,000300:
001442,000301: 33,2000 IMUCAL EQUALS
001443,000302: 33,2000 BNKSUM 33
001444,000303:
001445,000304: 34,2000 BANK 34
001446,000305: 34,2000 P11ONE EQUALS
001447,000306: 34,2000 P20S3 EQUALS
001448,000307: 34,2000 P20S4 EQUALS
001449,000308: 34,2000 RTECON EQUALS
001450,000309: 34,2000 BNKSUM 34
001451,000310:
001452,000311: 35,2000 BANK 35
001453,000312: 35,2000 RTECON1 EQUALS
001454,000313: 35,2000 CSI/CDH EQUALS
001455,000314: 35,2000 P30S1 EQUALS
001456,000315: 35,2000 P30S EQUALS
001457,000316: 35,2000 P17S1 EQUALS
001458,000317: 35,2000 MEASINC3 EQUALS
001459,000318: 35,2000 INTINIT2 EQUALS
001460,000319: 35,2000 BNKSUM 35
001461,000320:
001462,000321: # MODULE 6 CONTAINS BANKS 36 THROUGH 43
001463,000322:
001464,000323: 36,2000 BANK 36
001465,000324: 36,2000 MEASINC EQUALS
001466,000325: 36,2000 MEASINC1 EQUALS
001467,000326: 36,2000 P17S EQUALS
001468,000327: 36,2000 RTE1 EQUALS
001469,000328: 36,2000 BNKSUM 36
001470,000329:
001471,000330: 37,2000 BANK 37
001472,000331: 37,2000 P20S EQUALS
001473,000332: 37,2000 BODYATT EQUALS
001474,000333: 37,2000 RENDEZ EQUALS
001475,000334: 37,2000 SERVICES EQUALS
001476,000335: 37,2000 P11TWO EQUALS
001477,000336: 37,2000 CDHTAG3 EQUALS
001478,000337: 37,2000 BNKSUM 37
001479,000338:
001480,000339: 40,2000 BANK 40
001481,000340: 40,2000 PINSUPER EQUALS
001482,000341:
Page 34 |
001484,000343:
001485,000344: 40,2000 SELFSUPR EQUALS
001486,000345: 40,2000 PINBALL1 EQUALS
001487,000346: 40,2000 R36CM1 EQUALS
001488,000347: 40,2000 BNKSUM 40
001489,000348:
001490,000349: 41,2000 BANK 41
001491,000350: 41,2000 PINBALL2 EQUALS
001492,000351: 41,2000 R36LM EQUALS
001493,000352: 41,2000 BNKSUM 41
001494,000353:
001495,000354: 42,2000 BANK 42
001496,000355: 42,2000 SBAND EQUALS
001497,000356: 42,2000 PINBALL3 EQUALS
001498,000357: 42,2000 EXTVBS EQUALS
001499,000358: 42,2000 R36LM1 EQUALS
001500,000359: 42,2000 BNKSUM 42
001501,000360:
001502,000361: 43,2000 BANK 43
001503,000362: 43,2000 SELFCHEC EQUALS
001504,000363: 43,2000 EXTVERBS EQUALS
001505,000364: 43,2000 BNKSUM 43
001506,000365:
001507,000366: 43,2000 26,3334 HI6ZEROS EQUALS ZEROVECS # ZERO VECTOR ALWAYS IN HIGH MEMORY
001508,000367: 43,2000 04,3562 LO6ZEROS EQUALS ZEROVEC # ZERO VECTOR ALWAYS IN LOW MEMORY
001509,000368: 43,2000 26,3332 HIDPHALF EQUALS UNITX
001510,000369: 43,2000 04,3560 LODPHALF EQUALS XUNIT
001511,000370: 43,2000 26,3324 HIDP1/4 EQUALS DP1/4TH
001512,000371: 43,2000 04,3606 LODP1/4 EQUALS D1/4 # 2DEC .25
001513,000372: 43,2000 26,3332 HIUNITX EQUALS UNITX
001514,000373: 43,2000 26,3330 HIUNITY EQUALS UNITY
001515,000374: 43,2000 26,3326 HIUNITZ EQUALS UNITZ
001516,000375: 43,2000 04,3560 LOUNITX EQUALS XUNIT # 2DEC .5
001517,000376: 43,2000 04,3556 LOUNITY EQUALS YUNIT # 2DEC 0
001518,000377: 43,2000 04,3554 LOUNITZ EQUALS ZUNIT # 2DEC 0
001519,000378: 43,2000 11,3763 3/4LOWDP EQUALS 3/4 # 2DEC 3.0 B-2
001520,000379:
001521,000380: 43,2000 30,2000 SBANK= LOWSUPER
001522,000381:
001523,000382: # ROPE SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN DETVRUZVING INTEGRATION AREA ENTRIES
001524,000383:
001525,000384: 43,2000 13,3105 OTHPREC EQUALS LEMPREC
001526,000385: 43,2000 13,2760 ATOPOTH EQUALS ATOPLEM
001527,000386: 43,2000 13,2705 ATOPTHIS EQUALS ATOPCSM
001528,000387: 43,2000 0000173 MOONTHIS EQUALS CMOONFLG
001529,000388:
Page 35 |
001531,000390:
001532,000391: 43,2000 0000174 MOONOTH EQUALS LMOONFLG
001533,000392: 43,2000 13,2720 MOVATHIS EQUALS MOVEACSM
001534,000393: 43,2000 31,2032 STATEST EQUALS V83CALL # * TEMPORARY
001535,000394: 43,2000 13,3071 THISPREC EQUALS CSMPREC
001536,000395: 43,2000 26,3332 THISAXIS = UNITX
001537,000396: 43,2000 5054 ERASID EQUALS LOW10 # DOWNLINK ERASABLE DUMP ID
001538,000397: 43,2000 6214 DELAYNUM EQUALS THREE
001539,000398:
001540,000399: # ****************************************************************************************************************
001541,000400:
001542,000401: # THE FOLLOWING ECADRS ARE DEFINED TO FACILITATE EBANK SWITCHING. THEY ALSO MAKE IT EASIER FOR
001543,000402: # ERASABLE CONTROL TO REARRANGE ERASABLE MEMORY WITHOUT DISRUPTING THE PROGRAMS WHICH SET EBANKS.
001544,000403: # PRIOR TO ROPE RELEASE FIXED MEMORY CAN BE SAVED BY SETTING EACH EBXXXX =EBANKX (X=4,5,6,7). EBANKX OF COURSE
001545,000404: # WILL BE THE BANK WHERE THE ERASABLES REFERENCED IN EBXXXX WILL BE STORED.
001546,000405:
001547,000406: 07,2000 BANK 7
001548,000407: 07,2000 E7,1674 EBANK= MARKDOWN
001549,000408: 07,2000 03674 EBMARKDO ECADR MARKDOWN
001550,000409: 07,2001 E7,1725 EBANK= MRKBUF1
001551,000410: 07,2001 03725 EBMRKBUF ECADR MRKBUF1
001552,000411:
001553,000412: 24,2000 BANK 24
001554,000413: 24,2000 E7,1431 EBANK= DVCNTR
001555,000414: 24,2000 03431 EBDVCNTR ECADR DVCNTR
001556,000415: 24,2001 E7,1672 EBANK= P40TMP
001557,000416: 24,2001 03672 EBP40TMP ECADR P40TMP
001558,000417:
001559,000418: 34,2000 BANK 34
001560,000419: 34,2000 E7,1431 EBANK= DVCNTR
001561,000420: 34,2000 03431 EBDVCNT ECADR DVCNTR
001562,000421: 34,2001 E5,1426 EBANK= QPLACES
001563,000422: 34,2001 02426 EBQPLACE ECADR QPLACES
001564,000423:
001565,000424: 37,2000 BANK 37
001566,000425: 37,2000 1231 EBANK= RN1
001567,000426: 37,2000 01231 EBRN1 ECADR RN1
001568,000427:
001569,000428: # ****************************************************************************************************************
001570,000429:
Page 36 This page contains only assembler-generated messages, and no source code. |
End of include-file TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc. Parent file is MAIN.agc