Source Code
![]() |
These source-code files are part of a reconstructed copy of Skylark 048, the
Block II Command Module (CM) Apollo Guidance Computer (AGC) software for the
Skylab-2, Skylab-3, Skylab-4, and Apollo-Soyuz Test Project missions.
They have been created via disassembly of binary dumps of the original core rope memory modules actually flown on Skylab-2, part numbers 2010802-541, 2010802-551, 2010802-561, 2010802-571, 2010802-581, and 2010802-591. Access to these modules was provided by the New Mexico Museum of Space History, who we are much indebted to. The source code for the Apollo 15, 16, and 17 software, Artemis 072, was used as a starting point. Heavy use was made of TRW 4900.5-244, Programmed Guidance Equations for Skylark Command Module Earth Orbital Program, dated 14 February 1972. This document contains pseudocode of essentially all of Skylark, using original program labels which have been copied for this source reconstruction. Since only binary dumps (rather than listings) of Skylark are available as source material, all comments and labels are approximate. They have been taken from the Programmed Guidance Equations or other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing. |
048521,000002: ## Copyright: Public domain. 048522,000003: ## Filename: FIXED-FIXED_CONSTANT_POOL.agc 048523,000004: ## Purpose: A section of Skylark revision 048. 048524,000005: ## It is part of the source code for the Apollo Guidance Computer (AGC) 048525,000006: ## for Skylab-2, Skylab-3, Skylab-4, and ASTP. No original listings of 048526,000007: ## this software are available; instead, this file was created via 048527,000008: ## disassembly of dumps of the core rope modules actually flown on 048528,000009: ## Skylab-2. Access to these modules was provided by the New Mexico 048529,000010: ## Museum of Space History. 048530,000011: ## Assembler: yaYUL 048531,000012: ## Contact: Ron Burkey <info@sandroid.org>. 048532,000013: ## Website: www.ibiblio.org/apollo/index.html 048533,000014: ## Mod history: 2023-09-04 MAS Created from Artemis 072. 048534,000015: ## 2024-02-27 MAS Updated for Skylark 48. 048535,000016: 048536,000017: 4000 SETLOC FFTAG1 048537,000018: 4000 BANK 048538,000019: 048539,000020: 4760 COUNT* $$/FCONS 048540,000021: 048541,000022: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES. 048542,000023: 048543,000024: 4760 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX 048544,000025: 4761 37777 POSMAX OCT 37777 048545,000026: 048546,000027: 4762 4762 LIMITS = NEG1/2 048547,000028: 048548,000029: 4762 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO 048549,000030: # LOCATIONS IN FRONT OF BIT14) 048550,000031: 048551,000032: # BIT TABLE 048552,000033: 048553,000034: 4763 40000 BIT15 OCT 40000 048554,000035: 4764 20000 BIT14 OCT 20000 048555,000036: 4765 10000 BIT13 OCT 10000 048556,000037: 4766 04000 BIT12 OCT 04000 048557,000038: 4767 02000 BIT11 OCT 02000 048558,000039: 4770 01000 BIT10 OCT 01000 048559,000040: 4771 00400 BIT9 OCT 00400 048560,000041: 4772 00200 BIT8 OCT 00200 048561,000042: 4773 00100 BIT7 OCT 00100 048562,000043: 4774 00040 BIT6 OCT 00040 048563,000044: 4775 00020 BIT5 OCT 00020 048564,000045: 4776 00010 BIT4 OCT 00010 048565,000046: 4777 00004 BIT3 OCT 00004 048566,000047: 5000 00002 BIT2 OCT 00002 048567,000048: 5001 00001 BIT1 OCT 00001 048568,000049: 048569,000050: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS. 048570,000051: 048571,000052: 5002 77777 NEG0 OCT -0 # MUST PRECEDE ZERO 048572,000053: 5003 00000 ZERO OCT 0 # MUST FOLLOW NEG0 048573,000054: # BIT1 OCT 00001 048574,000055: # NO.WDS OCT 2 INTERPRETER 048575,000056: # OCTAL3 OCT 3 INTERPRETER 048576,000057: # R3D1 OCT 4 PINBALL 048577,000058: 5004 00005 FIVE OCT 5 048578,000059: # REVCNT OCT 6 INTERPRETER 048579,000060: 5005 00007 SEVEN OCT 7 048580,000061: # BIT4 OCT 00010 048581,000062: # R2D1 OCT 11 PINBALL 048582,000063: 5006 4322 OCT11 = R2D1 # P20S 048583,000064: # BINCON DEC 10 PINBALL (OCTAL 12) 048584,000065: 5006 00013 ELEVEN DEC 11 B-14 048585,000066: # OCT14 OCT 14 ALARM AND ABORT (FILLER) 048586,000067: 5007 00015 OCT15 OCT 15 048587,000068: # R1D1 OCT 16 PINBALL 048588,000069: 5010 00017 LOW4 OCT 17 048589,000070: # BIT5 OCT 00020 048590,000071: # ND1 OCT 21 PINBALL 048591,000072: 5011 00022 OCT22 OCT 22 048592,000073: # VD1 OCT 23 PINBALL 048593,000074: # OCT24 OCT 24 SERVICE ROUTINES 048594,000075: # MD1 OCT 25 PINBALL 048595,000076: # VBSP2LD DEC 22 PINBALL (OCT26) 048596,000077: # DEC23 DEC 23 AUTO MAN. (OCT27) 048597,000078: 5012 00030 BITS4&5 OCT 30 048598,000079: # OCT31 OCT 31 SERVICE ROUTINES 048599,000080: 5013 00032 CALLCODE OCT 00032 048600,000081: 5014 4342 OCT37 = LOW5 048601,000082: # LOW5 OCT 37 PINBALL 048602,000083: 5014 00041 33DEC DEC 33 B-14 048603,000084: # 34DEC DEC 34 PINBALL (OCTAL 42) 048604,000085: # BIT6 OCT 00040 048605,000086: 5015 00046 OCT46 OCT 46 048606,000087: 5016 00050 OCT50 OCT 50 048607,000088: 5017 00054 LTHVACA DEC 44 B-14 048608,000089: 5020 00055 DEC45 DEC 45 B-14 048609,000090: 5021 00056 MINDB DEC 46 B-14 # OCT 56 048610,000091: 5022 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011. 048611,000092: 5023 00062 .5SEC DEC 50 B-14 048612,000093: 5024 00075 OCT75 OCT 75 048613,000094: # BIT7 OCT 00100 048614,000095: 048615,000096: 5025 4773 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100 048616,000097: # (LAST 4K OF ROPE) 048617,000098: 5025 00110 BITS7+4 OCT 110 048618,000099: 5026 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101 048619,000100: # OCT121 OCT 121 SERVICE ROUTINES 048620,000101: # (FIRST 8K OF ACM) 048621,000102: 5027 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110. 048622,000103: # (LAST 8K OF ACM) 048623,000104: 5030 00144 1SEC DEC 100 B-14 048624,000105: # LOW7 OCT 177 INTERPRETER 048625,000106: # BIT8 OCT 00200 048626,000107: # OT215 OCT 215 ALARM AND ABORT 048627,000108: # 8,5 OCT 00220 P20-P25 SUNDANCE 048628,000109: 5031 00306 V01N70 VN 0170 048629,000110: 5032 00310 2SECS DEC 200 B-14 048630,000111: # LOW8 OCT 377 PINBALL 048631,000112: # BIT9 OCT 00400 048632,000113: 5033 00620 4SECS DEC 400 B-14 048633,000114: 5034 00777 LOW9 OCT 777 048634,000115: # BIT10 OCT 01000 048635,000116: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765) 048636,000117: # OCT1103 OCT 1103 ALARM AND ABORT 048637,000118: 5035 01124 C5/2 DEC .0363551 # (OCTAL 01124) 048638,000119: 5036 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211) 048639,000120: 5037 01400 OCT1400 OCT 01400 048640,000121: 5040 5040 7.9SEC EQUALS V06N22 048641,000122: 5040 01426 V06N22 VN 0622 048642,000123: 5041 01441 V06N33 VN 0633 048643,000124: 5042 01442 V06N34 VN 0634 048644,000125: 5043 01461 V06N49 VN 0649 048645,000126: 5044 01422 V06N18 VN 0618 048646,000127: 5045 01451 V06N41 VN 0641 048647,000128: 5046 01474 V06N60 VN 0660 048648,000129: 5047 01475 V06N61 VN 0661 048649,000130: 5050 01530 V06N88 VN 0688 048650,000131: 5051 01531 V06N89 VN 0689 048651,000132: 5052 01535 V06N93 VN 0693 048652,000133: # MID5 OCT 1740 PINBALL 048653,000134: 5053 01777 LOW10 OCT 1777 048654,000135: # BIT11 OCT 02000 048655,000136: # 2K+3 OCT 2003 PINBALL 048656,000137: 5054 02177 LOW7+2K OCT 2177 048657,000138: 5055 02400 EBANK5 OCT 02400 048658,000139: 5056 02600 OCT2600 OCT 2600 048659,000140: 5057 03000 PRIO3 OCT 03000 048660,000141: 5060 03400 EBANK7 OCT 03400 048661,000142: # LOW11 OCT 3777 PINBALL 048662,000143: # BIT12 OCT 04000 048663,000144: # RELTAB OCT 04025 T4RUPT 048664,000145: 5061 05000 PRIO5 OCT 05000 048665,000146: 5062 06000 PRIO6 OCT 06000 048666,000147: 5063 07000 PRIO7 OCT 07000 048667,000148: 048668,000149: # BIT13 OCT 10000 048669,000150: # OCT 10003 T4RUPT RELTAB +1D 048670,000151: # 13,7,2 OCT 10102 P20-P25 SUNDANCE 048671,000152: # PRIO12 OCT 12000 BANKCALL 048672,000153: 5064 13000 PRIO13 OCT 13000 048673,000154: 5065 14000 PRIO14 OCT 14000 048674,000155: # OCT 14031 T4RUPT RELTAB +2D 048675,000156: 5066 15000 PRIO15 OCT 15000 048676,000157: 5067 16000 PRIO16 OCT 16000 048677,000158: 5070 17000 PRIO17 OCT 17000 048678,000159: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450) 048679,000160: 5071 17770 OCT17770 OCT 17770 048680,000161: # BIT14 OCT 20000 048681,000162: # OCT 20033 T4RUPT RELTAB +3D 048682,000163: 5072 21000 PRIO21 OCT 21000 048683,000164: 6000 SETLOC FFTAG6 048684,000165: 6000 BANK 048685,000166: 048686,000167: 7644 COUNT* $$/FCONS 048687,000168: 7644 22000 PRIO22 OCT 22000 # SERVICE ROUTINES 048688,000169: 7645 24000 PRIO24 OCT 24000 048689,000170: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES 048690,000171: # OCT 24017 T4RUPT RELTAB +4D 048691,000172: 7646 24100 14,12,7 OCT 24100 048692,000173: 7647 25000 PRIO25 OCT 25000 048693,000174: 7650 26000 PRIO26 OCT 26000 048694,000175: 7651 27000 PRIO27 OCT 27000 048695,000176: # CHRPRIO OCT 30000 PINBALL 048696,000177: # OCT 30036 T4RUPT RELTAB +5D 048697,000178: 7652 31000 PRIO31 OCT 31000 048698,000179: 7653 31103 C1/2 DEC .7853134 # (OCTAL 31103) 048699,000180: 7654 32000 PRIO32 OCT 32000 048700,000181: 7655 33000 PRIO33 OCT 33000 048701,000182: 7656 34000 PRIO34 OCT 34000 048702,000183: # OCT 34034 T4RUPT RELTAB +6D 048703,000184: 7657 35000 PRIO35 OCT 35000 048704,000185: 7660 37000 PRIO37 OCT 37000 048705,000186: # MID7 OCT 37600 PINBALL 048706,000187: 7661 37766 OCT37766 OCT 37766 048707,000188: 7662 37774 OCT37774 OCT 37774 048708,000189: 7663 37776 OCT37776 OCT 37776 048709,000190: # DPOSMAX OCT 37777 048710,000191: # BIT15 OCT 40000 048711,000192: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION) 048712,000193: 7664 40010 OT40010 OCT 40010 048713,000194: 7665 40014 DLOADCOD OCT 40014 048714,000195: 7666 40015 DLOAD* OCT 40015 048715,000196: # OCT 40023 T4RUPT RELTAB +7D 048716,000197: 7667 40040 BIT15+6 OCT 40040 048717,000198: 7670 40200 OCT40200 OCT 40200 048718,000199: # OCT 44035 T4RUPT RELTAB +8D 048719,000200: 7671 47777 NEG30000 OCT 47777 048720,000201: # OCT 50037 T4RUPT RELTAB +9D 048721,000202: # OCT 54000 T4RUPT RELTAB +10D 048722,000203: 7672 4762 -BIT14 EQUALS NEG1/2 048723,000204: # RELTAB11 OCT 60000 T4RUPT 048724,000205: 7672 65552 C3/2 DEC -.3216147 # (OCTAL 65552) 048725,000206: 7673 70000 13,14,15 OCT 70000 048726,000207: 7674 73777 -1/8 OCT 73777 048727,000208: 7675 74000 HIGH4 OCT 74000 048728,000209: 7676 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056) 048729,000210: # HI5 OCT 76000 PINBALL 048730,000211: 7677 77700 HIGH9 OCT 77700 048731,000212: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722) 048732,000213: # DECNEG23 DEC -23 AUTO MAN. (OCT77750) 048733,000214: # -OCT10 OCT -10 (OCT 77767) 048734,000215: # NEG4 DEC -4 (OCTAL 77773) 048735,000216: 7700 77774 NEG3 DEC -3 B-14 048736,000217: 7701 77775 NEG2 OCT 77775 048737,000218: 7702 77776 NEGONE DEC -1 B-14 048738,000219: 048739,000220: 048740,000221: # DEFINED BY EQUALS 048741,000222: 048742,000223: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY 048743,000224: # ACCIDENTAL DEFINITION CHANGES. 048744,000225: 048745,000226: 7703 7702 MINUS1 = NEG1 048746,000227: 7703 7702 NEG1 = NEGONE 048747,000228: 7703 5001 ONE = BIT1 048748,000229: 7703 5000 TWO = BIT2 048749,000230: 7703 6214 THREE = OCTAL3 048750,000231: 7703 6214 LOW2 = THREE 048751,000232: 7703 4777 FOUR = BIT3 048752,000233: 7703 6211 SIX = REVCNT 048753,000234: 7703 5005 LOW3 = SEVEN 048754,000235: 7703 4776 EIGHT = BIT4 048755,000236: 7703 4322 NINE = R2D1 048756,000237: 7703 4355 TEN = BINCON 048757,000238: 7703 5006 NOUTCON = ELEVEN 048758,000239: 7703 4351 OCT23 = VD1 048759,000240: 7703 4353 OCT25 = MD1 048760,000241: 7703 4770 PRIO1 = BIT10 048761,000242: 7703 5037 EBANK3 = OCT1400 048762,000243: 7703 4767 PRIO2 = BIT11 048763,000244: 7703 5026 OCT120 = SUPER101 048764,000245: 7703 5027 OCT140 = SUPER110 048765,000246: 7703 4767 2K = BIT11 048766,000247: 7703 4767 EBANK4 = BIT11 048767,000248: 7703 4766 PRIO4 = BIT12 048768,000249: 7703 5057 EBANK6 = PRIO3 048769,000250: 7703 4765 QUARTER = BIT13 048770,000251: 7703 4765 PRIO10 = BIT13 048771,000252: 7703 7617 OCT10001 = CCSL 048772,000253: 7703 4764 POS1/2 = HALF 048773,000254: 7703 4764 PRIO20 = BIT14 048774,000255: 7703 4764 HALF = BIT14 048775,000256: 7703 4346 PRIO30 = CHRPRIO 048776,000257: 7703 4346 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE 048777,000258: 7703 6440 OCT30002 = TLOAD +1 048778,000259: 7703 7656 B12T14 = PRIO34 048779,000260: 7703 4763 NEGMAX = BIT15 048780,000261: 7703 4763 VLOADCOD = BIT15 048781,000262: 7703 6056 VLOAD* = OCT40001 048782,000263: 7703 4076 OCT60000 = RELTAB11 048783,000264: 7703 4344 BANKMASK = HI5 048784,000265: End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc