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