Source Code
This is the source-code for the Apollo 9 Command Module's Guidance Computer.
These files were derived originally from the scan from MIT's Dibner Institute's
now-discontinued website titled "History of Recent Science and Technology", which
in turn was originally created by Gary Neff, though his high-quality scans were
unfortunately reduced in legibility when presented online.
The markings on the front of the
printout imply that it was the original AGC developer Norm Brodeur's copy.
A scan by Ron Burkey has superceded it, made from a more-legible copy from the collection of original
AGC developer Fred Martin. The source code was transcribed from
those images by Ron Burkey. Note that the page images
presented online are of reduced quality, and that higher-quality images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:ASSEMBLE REVISION 249 OF AGC PROGRAM COLOSSUS BY NASA 2021111-041 20'35 OCT. 28,1968Note that the date is the date of the printout, not the date of the program revision. |
001096,000002: ## Copyright: Public domain.
001097,000003: ## Filename: TAGS_FOR_RELATIVE_SETLOC.agc
001098,000004: ## Purpose: Part of the source code for Colossus, build 249.
001099,000005: ## It is part of the source code for the Command Module's (CM)
001100,000006: ## Apollo Guidance Computer (AGC), for Apollo 9.
001101,000007: ## Assembler: yaYUL
001102,000008: ## Reference: pp. 25-33 of 1701.pdf.
001103,000009: ## Contact: Ron Burkey <info@sandroid.org>.
001104,000010: ## Website: www.ibiblio.org/apollo.
001105,000011: ## Mod history: 08/02/04 RSB Adapted from similar Luminary 131 file.
001106,000012: ## 05/06/09 RSB Made a few comment corrections I noticed
001107,000013: ## were needed when adapting for Comanche 055.
001108,000014: ## 2017-01-05 RSB Page numbers now agree with those on the
001109,000015: ## original harcopy, as opposed to the PDF page
001110,000016: ## numbers in 1701.pdf.
001111,000017: ## 2017-01-20 RSB Cross-diff'd comment text (not whitespace)
001112,000018: ## vs the already-proofed corresponding Colossus
001113,000019: ## 237 and Comanche 55 source-code files
001114,000020: ## and corrected errors found.
001115,000021: ## 2021-05-30 ABS Removed four lines not present in scans.
001116,000022: ##
001117,000023: ## The contents of the "Colossus249" files, in general, are transcribed
001118,000024: ## from a scanned copy of the program listing. Notations on this
001119,000025: ## document read, in part:
001120,000026: ##
001121,000027: ## Assemble revision 249 of AGC program Colossus by NASA
001122,000028: ## 2021111-041. October 28, 1968.
001123,000029: ##
001124,000030: ## This AGC program shall also be referred to as
001125,000031: ## Colossus 1A
001126,000032: ##
001127,000033: ## Prepared by
001128,000034: ## Massachusetts Institute of Technology
001129,000035: ## 75 Cambridge Parkway
001130,000036: ## Cambridge, Massachusetts
001131,000037: ## under NASA contract NAS 9-4065.
001132,000038: ##
001133,000039: ## Refer directly to the online document mentioned above for further information.
001134,000040: ## Please report any errors (relative to the scanned pages) to info@sandroid.org.
001135,000041: ##
001136,000042: ## In some cases, where the source code for Luminary 131 overlaps that of
001137,000043: ## Colossus 249, this code is instead copied from the corresponding Luminary 131
001138,000044: ## source file, and then is proofed to incorporate any changes.
001139,000045:
Page 25 |
001141,000047: ??????? FIXED MEMORY 120000 - 167777
001142,000048: ??????? COUNT BANKSUM
001143,000049:
001144,000050: # MODULE 1 CONTAINS BANKS 0 THROUGH 5
001145,000051:
001146,000052: 4000 BLOCK 02
001147,000053: 4000 FFTAG1 EQUALS
001148,000054: 4000 FFTAG2 EQUALS
001149,000055: 4000 FFTAG3 EQUALS
001150,000056: 4000 FFTAG4 EQUALS
001151,000057: 4000 FFTAG7 EQUALS
001152,000058: 4000 FFTAG8 EQUALS
001153,000059: 4000 FFTAG9 EQUALS
001154,000060: 4000 FFTAG10 EQUALS
001155,000061: 4000 FFTAG12 EQUALS
001156,000062: 4000 BNKSUM 02
001157,000063:
001158,000064: 6000 BLOCK 03
001159,000065: 6000 FFTAG5 EQUALS
001160,000066: 6000 FFTAG6 EQUALS
001161,000067: 6000 BNKSUM 03
001162,000068:
001163,000069: 00,2000 BANK 00
001164,000070: 00,2000 DLAYJOB EQUALS
001165,000071: 00,2000 BNKSUM 00
001166,000072:
001167,000073: 01,2000 BANK 01
001168,000074: 01,2000 RESTART EQUALS
001169,000075: 01,2000 BNKSUM 01
001170,000076:
001171,000077: 04,2000 BANK 04
001172,000078: 04,2000 VERB37 EQUALS
001173,000079: 04,2000 CONICS1 EQUALS
001174,000080: 04,2000 PINBALL4 EQUALS
001175,000081: 04,2000 R36LM EQUALS
001176,000082: 04,2000 INTPRET2 EQUALS
001177,000083: 04,2000 IMUCAL1 EQUALS
001178,000084: 04,2000 STBLEORB EQUALS
001179,000085: 04,2000 E/PROG EQUALS
001180,000086: 04,2000 MIDDGIM EQUALS
001181,000087:
001182,000088: 04,2000 BNKSUM 04
001183,000089:
Page 26 |
001185,000091:
001186,000092: 05,2000 BANK 05
001187,000093: 05,2000 FRANDRES EQUALS
001188,000094: 05,2000 DOWNTELM EQUALS
001189,000095: 05,2000 DAPMASS EQUALS
001190,000096: 05,2000 BNKSUM 05
001191,000097:
001192,000098: # MODULE 2 CONTAINS BANKS 6 THROUGH 13
001193,000099:
001194,000100: 06,2000 BANK 06
001195,000101: 06,2000 IMUCOMP EQUALS
001196,000102: 06,2000 T4RUP EQUALS
001197,000103: 06,2000 IMUCAL2 EQUALS
001198,000104: 06,2000 BNKSUM 06
001199,000105:
001200,000106: 07,2000 BANK 07
001201,000107: 07,2000 SXTMARKE EQUALS
001202,000108: 07,2000 R02 EQUALS
001203,000109: 07,2000 MODESW EQUALS
001204,000110: 07,2000 XANG EQUALS
001205,000111: 07,2000 KEYRUPT EQUALS
001206,000112: 07,2000 BNKSUM 07
001207,000113:
001208,000114: 10,2000 BANK 10
001209,000115: 10,2000 DISPLAYS EQUALS
001210,000116: 10,2000 PHASETAB EQUALS
001211,000117: 10,2000 COMGEOM2 EQUALS
001212,000118: 10,2000 SXTMARK1 EQUALS
001213,000119: 10,2000 P60S4 EQUALS
001214,000120: 10,2000 OPTDRV EQUALS
001215,000121: 10,2000 BNKSUM 10
001216,000122:
001217,000123: 11,2000 BANK 11
001218,000124: 11,2000 ORBITAL EQUALS
001219,000125: 11,2000 ORBITAL1 EQUALS # CONSTANTS
001220,000126: 11,2000 INTVEL EQUALS
001221,000127: 11,2000 S52/2 EQUALS
001222,000128: 11,2000 BNKSUM 11
001223,000129:
001224,000130: 12,2000 BANK 12
001225,000131: 12,2000 CONICS EQUALS
Page 27 |
001227,000133: 12,2000 BNKSUM 12
001228,000134:
001229,000135: 13,2000 BANK 13
001230,000136: 13,2000 P76LOC EQUALS
001231,000137: 13,2000 LATLONG EQUALS
001232,000138: 13,2000 INTINIT EQUALS
001233,000139: 13,2000 SR52/1 EQUALS
001234,000140: 13,2000 ORBITAL2 EQUALS
001235,000141: 13,2000 BNKSUM 13
001236,000142: # SPACER
001237,000143:
001238,000144: # MODULE 3 CONTAINS BANKS 14 THROUGH 21
001239,000145:
001240,000146: 14,2000 BANK 14
001241,000147: 14,2000 STARTAB EQUALS
001242,000148: 14,2000 RT53 EQUALS
001243,000149: 14,2000 P50S1 EQUALS
001244,000150: 14,2000 BNKSUM 14
001245,000151:
001246,000152: 15,2000 BANK 15
001247,000153: 15,2000 P50S EQUALS
001248,000154: 15,2000 ETRYDAP EQUALS
001249,000155: 15,2000 S52/3 EQUALS
001250,000156: 15,2000 BNKSUM 15
001251,000157:
001252,000158: 16,2000 BANK 16
001253,000159: 16,2000 P40S1 EQUALS
001254,000160: 16,2000 DAPROLL EQUALS
001255,000161: 16,2000 P50S2 EQUALS
001256,000162: 16,2000 BNKSUM 16
001257,000163:
001258,000164: 17,2000 BANK 17
001259,000165: 17,2000 DAPS4 EQUALS
001260,000166: 17,2000 DAPS5 EQUALS
001261,000167: 17,2000 DAPS7 EQUALS
001262,000168: 17,2000 BNKSUM 17
001263,000169:
001264,000170: 20,2000 BANK 20
Page 28 |
001266,000172: 20,2000 DAPS6 EQUALS
001267,000173: 20,2000 DAPS1 EQUALS
001268,000174: 20,2000 DAPS2 EQUALS
001269,000175: 20,2000 BNKSUM 20
001270,000176:
001271,000177: 21,2000 BANK 21
001272,000178: 21,2000 DAPS3 EQUALS
001273,000179: 21,2000 MYSUBS EQUALS
001274,000180: 21,2000 BNKSUM 21
001275,000181:
001276,000182: # MODULE 4 CONTAINS BANKS 22 THROUGH 27
001277,000183:
001278,000184: 22,2000 BANK 22
001279,000185: 22,2000 RTBCODES EQUALS
001280,000186: 22,2000 RTBCODE1 EQUALS
001281,000187: 22,2000 DAPS8 EQUALS
001282,000188: 22,2000 APOPERI EQUALS
001283,000189: 22,2000 P40S5 EQUALS
001284,000190: 22,2000 KALCMON2 EQUALS
001285,000191: 22,2000 KALCMON1 EQUALS
001286,000192: 22,2000 BNKSUM 22
001287,000193:
001288,000194: 23,2000 BANK 23
001289,000195: 23,2000 P20S2 EQUALS
001290,000196: 23,2000 INFLIGHT EQUALS
001291,000197: 23,2000 COMGEOM1 EQUALS
001292,000198: 23,2000 POWFLITE EQUALS
001293,000199: 23,2000 POWFLIT1 EQUALS
001294,000200: 23,2000 RENDGUID EQUALS
001295,000201: 23,2000 POWFLIT2 EQUALS
001296,000202: 23,2000 R30LOC EQUALS
001297,000203: 23,2000 P11FOUR EQUALS
001298,000204: 23,2000 BNKSUM 23
001299,000205:
001300,000206: 24,2000 BANK 24
001301,000207: 24,2000 LOADDAP EQUALS
001302,000208: 24,2000 P40S EQUALS
001303,000209: 24,2000 BNKSUM 24
001304,000210:
001305,000211: 25,2000 BANK 25
Page 29 |
001307,000213: 25,2000 REENTRY EQUALS
001308,000214: 25,2000 BNKSUM 25
001309,000215:
001310,000216: 26,2000 BANK 26
001311,000217: 26,2000 INTPRET1 EQUALS
001312,000218: 26,2000 REENTRY1 EQUALS
001313,000219: 26,2000 P60S EQUALS
001314,000220: 26,2000 P60S1 EQUALS
001315,000221: 26,2000 P60S2 EQUALS
001316,000222: 26,2000 P60S3 EQUALS
001317,000223: 26,2000 PLANTIN EQUALS # LUNAR ROT
001318,000224: 26,2000 EPHEM EQUALS
001319,000225: 26,2000 P05P06 EQUALS
001320,000226: 26,2000 26P50S EQUALS
001321,000227: 26,2000 BNKSUM 26
001322,000228:
001323,000229: 27,2000 BANK 27
001324,000230: 27,2000 TOF-FF EQUALS
001325,000231: 27,2000 TOF-FF1 EQUALS
001326,000232: 27,2000 MANUVER EQUALS
001327,000233: 27,2000 MANUVER1 EQUALS
001328,000234: 27,2000 VECPT EQUALS
001329,000235: 27,2000 UPDATE1 EQUALS
001330,000236: 27,2000 UPDATE2 EQUALS
001331,000237: 27,2000 R22S1 EQUALS
001332,000238: 27,2000 P60S5 EQUALS
001333,000239: 27,2000 RTE2 EQUALS
001334,000240: 27,2000 BNKSUM 27
001335,000241:
001336,000242: # MODULE 5 CONTAINS BANKS 30 THROUGH 35
001337,000243:
001338,000244: 30,2000 BANK 30
001339,000245: 30,2000 IMUSUPER EQUALS
001340,000246: 30,2000 LOWSUPER EQUALS
001341,000247: 30,2000 FCSTART EQUALS # STANDARD LOCATION FOR THIS. (FOR EXTVB)
001342,000248: 30,2000 LOPC EQUALS
001343,000249: 30,2000 P20S1 EQUALS
001344,000250: 30,2000 P20S6 EQUALS
001345,000251: 30,2000 P40S3 EQUALS
001346,000252: 30,2000 R35A EQUALS
001347,000253: 30,2000 BNKSUM 30
001348,000254:
Page 30 |
001350,000256: 31,2000 BANK 31
001351,000257: 31,2000 R35 EQUALS
001352,000258: 31,2000 RT23 EQUALS
001353,000259: 31,2000 P30S1A EQUALS
001354,000260: 31,2000 R34 EQUALS
001355,000261: 31,2000 BNKSUM 31
001356,000262:
001357,000263: 32,2000 BANK 32
001358,000264: 32,2000 MSGSCAN1 EQUALS
001359,000265: 32,2000 RTE EQUALS
001360,000266: 32,2000 DELRSPL1 EQUALS
001361,000267: 32,2000 IMUCAL3 EQUALS
001362,000268: 32,2000 BNKSUM 32
001363,000269:
001364,000270: 33,2000 BANK 33
001365,000271: 33,2000 TESTLEAD EQUALS
001366,000272: 33,2000 IMUCAL EQUALS
001367,000273: 33,2000 BNKSUM 33
001368,000274:
001369,000275: 34,2000 BANK 34
001370,000276: 34,2000 P11ONE EQUALS
001371,000277: 34,2000 P20S3 EQUALS
001372,000278: 34,2000 P20S4 EQUALS
001373,000279: 34,2000 RTECON EQUALS
001374,000280: 34,2000 BNKSUM 34
001375,000281:
001376,000282: 35,2000 BANK 35
001377,000283: 35,2000 RTECON1 EQUALS
001378,000284: 35,2000 CSI/CDH EQUALS
001379,000285: 35,2000 P30S1 EQUALS
001380,000286: 35,2000 P30S EQUALS
001381,000287: 35,2000 R31 EQUALS
001382,000288: 35,2000 P17S1 EQUALS
001383,000289: 35,2000 BNKSUM 35
001384,000290:
001385,000291: # MODULE 6 CONTAINS BANKS 36 THROUGH 43
001386,000292:
001387,000293: 36,2000 BANK 36
001388,000294: 36,2000 MEASINC EQUALS
001389,000295: 36,2000 MEASINC1 EQUALS
Page 31 |
001391,000297: 36,2000 P17S EQUALS
001392,000298: 36,2000 RTE1 EQUALS
001393,000299: 36,2000 BNKSUM 36
001394,000300:
001395,000301: 37,2000 BANK 37
001396,000302: 37,2000 P20S EQUALS
001397,000303: 37,2000 BODYATT EQUALS
001398,000304: 37,2000 RENDEZ EQUALS
001399,000305: 37,2000 SERVICES EQUALS
001400,000306: 37,2000 P11TWO EQUALS
001401,000307: 37,2000 BNKSUM 37
001402,000308:
001403,000309: 40,2000 BANK 40
001404,000310: 40,2000 PINSUPER EQUALS
001405,000311: 40,2000 SELFSUPR EQUALS
001406,000312: 40,2000 PINBALL1 EQUALS
001407,000313: 40,2000 BNKSUM 40
001408,000314:
001409,000315: 41,2000 BANK 41
001410,000316: 41,2000 PINBALL2 EQUALS
001411,000317: 41,2000 BNKSUM 41
001412,000318:
001413,000319: 42,2000 BANK 42
001414,000320: 42,2000 SBAND EQUALS
001415,000321: 42,2000 PINBALL3 EQUALS
001416,000322: 42,2000 EXTVBS EQUALS
001417,000323: 42,2000 BNKSUM 42
001418,000324:
001419,000325: 43,2000 BANK 43
001420,000326: 43,2000 SELFCHEC EQUALS
001421,000327: 43,2000 EXTVERBS EQUALS
001422,000328: 43,2000 BNKSUM 43
001423,000329:
001424,000330: 43,2000 26,3331 HI6ZEROS EQUALS ZEROVECS # ZERO VECTOR ALWAYS IN HIGH MEMORY
001425,000331: 43,2000 04,3455 LO6ZEROS EQUALS ZEROVEC # ZERO VECTOR ALWAYS IN LOW MEMORY
001426,000332: 43,2000 26,3327 HIDPHALF EQUALS UNITX
001427,000333: 43,2000 04,3453 LODPHALF EQUALS XUNIT
001428,000334: 43,2000 26,3321 HIDP1/4 EQUALS DP1/4TH
Page 32 |
001430,000336: 43,2000 04,3501 LODP1/4 EQUALS D1/4 # 2DEC .25
001431,000337: 43,2000 26,3327 HIUNITX EQUALS UNITX
001432,000338: 43,2000 26,3325 HIUNITY EQUALS UNITY
001433,000339: 43,2000 26,3323 HIUNITZ EQUALS UNITZ
001434,000340: 43,2000 04,3453 LOUNITX EQUALS XUNIT # 2DEC .5
001435,000341: 43,2000 04,3451 LOUNITY EQUALS YUNIT # 2DEC 0
001436,000342: 43,2000 04,3447 LOUNITZ EQUALS ZUNIT # 2DEC 0
001437,000343: 43,2000 11,3706 3/4LOWDP EQUALS 3/4 # 2DEC 3.0 B-2
001438,000344:
001439,000345: 43,2000 30,2000 SBANK= LOWSUPER
001440,000346:
001441,000347: # ROPE SPECIFIC ASSIGNS OBVIATING NEED TO CHECK COMPUTER FLAG IN DETVRUZVING INTEGRATION AREA ENTRIES
001442,000348:
001443,000349: 43,2000 13,3036 OTHPREC EQUALS LEMPREC
001444,000350: 43,2000 13,2711 ATOPOTH EQUALS ATOPLEM
001445,000351: 43,2000 13,2636 ATOPTHIS EQUALS ATOPCSM
001446,000352: 43,2000 0000173 MOONTHIS EQUALS CMOONFLG
001447,000353: 43,2000 0000174 MOONOTH EQUALS LMOONFLG
001448,000354: 43,2000 13,2651 MOVATHIS EQUALS MOVEACSM
001449,000355: 43,2000 35,3204 STATEST EQUALS V83CALL # * TEMPORARY
001450,000356: 43,2000 13,3022 THISPREC EQUALS CSMPREC
001451,000357: 43,2000 26,3327 THISAXIS = UNITX
001452,000358: 43,2000 4747 ERASID EQUALS LOW10 # DOWNLINK ERASABLE DUMP ID
001453,000359: 43,2000 6214 DELAYNUM EQUALS THREE
001454,000360:
001455,000361: # ****************************************************************************************************************
001456,000362:
001457,000363: # THE FOLLOWING ECADRS ARE DEFINED TO FACILITATE EBANK SWITCHING. THEY ALSO MAKE IT EASIER FOR
001458,000364: # ERASABLE CONTROL TO REARRANGE ERASABLE MEMORY WITHOUT DISRUPTING THE PROGRAMS WHICH SET EBANKS.
001459,000365: # PRIOR TO ROPE RELEASE FIXED MEMORY CAN BE SAVED BY SETTING EACH EBXXXX =EBANKX (X=4,5,6,7). EBANKX OF COURSE
001460,000366: # WILL BE THE BANK WHERE THE ERASABLES REFERENCED IN EBXXXX WILL BE STORED.
001461,000367:
001462,000368: 07,2000 BANK 7
001463,000369: 07,2000 E7,1674 EBANK= MARKDOWN
001464,000370: 07,2000 03674 EBMARKDO ECADR MARKDOWN
001465,000371: 07,2001 E7,1725 EBANK= MRKBUF1
001466,000372: 07,2001 03725 EBMRKBUF ECADR MRKBUF1
001467,000373:
001468,000374: 24,2000 BANK 24
001469,000375: 24,2000 E7,1431 EBANK= DVCNTR
001470,000376: 24,2000 03431 EBDVCNTR ECADR DVCNTR
001471,000377: 24,2001 E7,1672 EBANK= P40TMP
001472,000378: 24,2001 03672 EBP40TMP ECADR P40TMP
001473,000379:
001474,000380: 34,2000 BANK 34
001475,000381: 34,2000 E7,1431 EBANK= DVCNTR
001476,000382: 34,2000 03431 EBDVCNT ECADR DVCNTR
001477,000383: 34,2001 E5,1426 EBANK= QPLACES
001478,000384: 34,2001 02426 EBQPLACE ECADR QPLACES
001479,000385:
001480,000386: 37,2000 BANK 37
001481,000387: 37,2000 1231 EBANK= RN1
Page 33 |
001483,000389: 37,2000 01231 EBRN1 ECADR RN1
001484,000390:
001485,000391: # ****************************************************************************************************************
001486,000392:
End of include-file TAGS_FOR_RELATIVE_SETLOC_AND_BLANK_BANK_CARDS.agc. Parent file is MAIN.agc