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