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