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". It is believed
that the original listing was preserved by AGC developer Don Eyles, copied/reduced by
AGC developer Hugh Blair-Smith, passed by AGC developer James Kernan to collector David Craig,
scanned by Gary Neff, and then passed to the Dibner Institute
where unfortunately the high-quality scans were reduced in legibility as part of the
online-presentation process, and the original scans discarded.
The source code was transcribed from
those images by Ron Burkey. The images from the Dibner Institute website, and unfortunately not
the discarded original high-quality scans, though with a few high-quality replacement scans
provided directly by Gary Neff, are now available
at the Virtual AGC project website.
Report any conversion errors to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 131 OF AGC PROGRAM LUMINARY BY NASA 2021112-091 17:53 DEC. 19, 1969Note that the date is the date of the printout, not the date of the program revision. |
045254,000002: ## Copyright: Public domain.
045255,000003: ## Filename: FIXED_FIXED_CONSTANT_POOL.agc
045256,000004: ## Purpose: The main source file for Luminary 1C, revision 131.
045257,000005: ## It is part of the source code for the Lunar Module's (LM)
045258,000006: ## Apollo Guidance Computer (AGC) for Apollo 13 and Apollo 14.
045259,000007: ## Assembler: yaYUL
045260,000008: ## Reference: pp. 1094-1098 of 1729.pdf.
045261,000009: ## Contact: Ron Burkey <info@sandroid.org>.
045262,000010: ## Website: www.ibiblio.org/apollo/index.html
045263,000011: ## Mod history: 04/23/03 RSB. Began.
045264,000012: ## 05/14/05 RSB Corrected website reference above.
045265,000013: ## 2010-10-25 JL Indentation fixes.
045266,000014: ##
045267,000015: ## The contents of the "Luminary131" files, in general, are
045268,000016: ## transcribed from a scanned document obtained from MIT's website,
045269,000017: ## http://hrst.mit.edu/hrs/apollo/public/archive/1729.pdf. Notations on this
045270,000018: ## document read, in part:
045271,000019: ##
045272,000020: ## NASA Apollo LUMINARY 131 (1C) Program Source Code Listing.
045273,000021: ## MIT Instrumentation/Draper Laboratory -- 19 December 1969, 1742 pages.
045274,000022: ## This listing contains the flight program for the Lunar Module
045275,000023: ## as created by MIT's Draper Lab for the Apollo 13/14 moon missions.
045276,000024: ##
045277,000025: ## Refer directly to the online document mentioned above for further information.
045278,000026: ## Please report any errors (relative to 1729.pdf) to info@sandroid.org.
045279,000027:
![]() |
Page 1094 |
045281,000029: 4732 BLOCK 02
045282,000030: 4732 COUNT* $$/FCONS
045283,000031:
045284,000032: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES
045285,000033:
045286,000034: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
045287,000035: 4733 37777 POSMAX OCT 37777
045288,000036:
045289,000037: 4734 4734 LIMITS = NEG1/2
045290,000038:
045291,000039: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
045292,000040: # LOCATIONS IN FRONT OF BIT14)
045293,000041:
045294,000042: # BIT TABLE
045295,000043:
045296,000044: 4735 40000 BIT15 OCT 40000
045297,000045: 4736 20000 BIT14 OCT 20000
045298,000046: 4737 10000 BIT13 OCT 10000
045299,000047: 4740 04000 BIT12 OCT 04000
045300,000048: 4741 02000 BIT11 OCT 02000
045301,000049: 4742 01000 BIT10 OCT 01000
045302,000050: 4743 00400 BIT9 OCT 00400
045303,000051: 4744 00200 BIT8 OCT 00200
045304,000052: 4745 00100 BIT7 OCT 00100
045305,000053: 4746 00040 BIT6 OCT 00040
045306,000054: 4747 00020 BIT5 OCT 00020
045307,000055: 4750 00010 BIT4 OCT 00010
045308,000056: 4751 00004 BIT3 OCT 00004
045309,000057: 4752 00002 BIT2 OCT 00002
045310,000058: 4753 00001 BIT1 OCT 00001
045311,000059:
045312,000060: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
045313,000061: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
045314,000062: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
045315,000063: # BIT1 OCT 00001
045316,000064: # NO.WDS OCT 2 # INTERPRETER
045317,000065: # OCTAL3 OCT 3 # INTERPRETER
045318,000066: # R3D1 OCT 4 # PINBALL
045319,000067: 4756 00005 FIVE OCT 5
045320,000068: # REVCNT OCT 6 # INTERPRETER
045321,000069: 4757 00007 SEVEN OCT 7
045322,000070: # BIT4 OCT 00010
045323,000071: # R2D1 OCT 11 # PINBALL
045324,000072: 4760 4320 OCT11 = R2D1 # P20S
045325,000073: # BINCON DEC 10 # PINBALL (OCTAL 12)
045326,000074: 4760 00013 ELEVEN DEC 11 B-14
045327,000075: # OCT14 OCT 14 # ALARM AND ABORT (FILLER)
045328,000076: 4761 00015 OCT15 OCT 15
045329,000077: # R1D1 OCT 16 # PINBALL
045330,000078: 4762 00017 LOW4 OCT 17
![]() |
Page 1095 |
045332,000080: # BIT5 OCT 00020
045333,000081: # NC1 OCT 21 # PINBALL
045334,000082: # VD1 OCT 23 # PINBALL
045335,000083: # OCT24 OCT 24 # SERVICE ROUTINES
045336,000084: # MD1 OCT 25 # PINBALL
045337,000085: 4763 00030 BITS4&5 OCT 30
045338,000086: # OCT31 OCT 31 # SERVICE ROUTINES
045339,000087: 4764 00033 OCT33 OCT 33
045340,000088: # DEC27 = OCT33
045341,000089: 4765 00035 OCT35 OCT 35
045342,000090: # DEC29 = OCT35
045343,000091: 4766 00032 CALLCODE OCT 00032
045344,000092: # LOW5 OCT 37 # PINBALL
045345,000093: # 33DEC DEC 33 # PINBALL (OCTAL 41)
045346,000094: # 34DEC DEC 34 # PINBALL (OCTAL 42)
045347,000095: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVENIENCE IN DAPTESTING
045348,000096: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
045349,000097: # BIT6 OCT 00040
045350,000098: 4771 00050 OCT50 OCT 50
045351,000099: 4772 00055 DEC45 DEC 45 B-14
045352,000100: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
045353,000101: 4774 00062 .5SEC DEC 50 B-14
045354,000102: # BIT7 OCT 00100
045355,000103:
045356,000104: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
045357,000105: # (LAST 4K OF ROPE)
045358,000106: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
045359,000107: # OCT121 OCT 121 # SERVICE ROUTINES
045360,000108: # (FIRST 8K OF ACM)
045361,000109: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
045362,000110: # (LAST BK OF ACM)
045363,000111: 4777 00144 1SEC DEC 100 B-14
045364,000112: # LOW7 OCT 177 # INTERPRETER
045365,000113: # BIT8 OCT 00200
045366,000114: # OT215 OCT 215 # ALARM AND ABORT
045367,000115: # 8,5 OCT 00220 # P20-P25 SUNDANCE
045368,000116: 5000 00310 2SECS DEC 200 B-14
045369,000117: # LOW8 OCT 377 # PINBALL
045370,000118: # BIT9 OCT 00400
045371,000119: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
045372,000120: 5002 00454 3SECS DEC 300 B-14
045373,000121: 5003 00620 4SECS DEC 400 B-14
045374,000122: 5004 00777 LOW9 OCT 777
045375,000123: # BIT10 OCT 01000
045376,000124: # 5.5DEGS DEC .03056 # P20-P25 SUNDANCE (OCTAL 00765)
045377,000125: # OCT1103 OCT 1103 # ALARM AND ABORT
045378,000126: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
045379,000127: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
045380,000128: 5007 01400 OCT1400 OCT 01400
045381,000129: 5010 01426 V06N22 VN 0622
![]() |
Page 1096 |
045383,000131: # MID5 OCT 1740 # PINBALL
045384,000132: 5011 01776 BITS2-10 OCT 1776
045385,000133: 5012 01777 LOW10 OCT 1777
045386,000134: # BIT11 OCT 02000
045387,000135: # 2K+3 OCT 2003 # PINBALL
045388,000136: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING
045389,000137: 5014 02400 EBANK5 OCT 02400
045390,000138: 5015 03000 PRIO3 OCT 03000
045391,000139: 5016 03400 EBANK7 OCT 03400
045392,000140: # LOW11 OCT 3777 # PINBALL
045393,000141: # BIT12 OCT 04000
045394,000142: # RELTAB OCT 04025 # T4RUPT
045395,000143: 5017 05000 PRIO5 OCT 05000
045396,000144: 5020 06000 PRIO6 OCT 06000
045397,000145: 5021 07000 PRIO7 OCT 07000
045398,000146:
045399,000147: # BIT13 OCT 10000
045400,000148: # OCT 10003 # T4RUPT RELTAB +1D
045401,000149: # 13,7,2 OCT 10102 # P20-P25 SUNDANCE
045402,000150: 5022 11000 PRIO11 OCT 11000
045403,000151: # PRIO12 OCT 12000 # BANKCALL
045404,000152: 5023 13000 PRIO13 OCT 13000
045405,000153: 5024 14000 PRIO14 OCT 14000
045406,000154: # OCT 14031 # T4RUPT RELTAB +2D
045407,000155: 5025 15000 PRIO15 OCT 15000
045408,000156: 5026 16000 PRIO16 OCT 16000
045409,000157: # 85DEGS DEC .45556 # P20-P25 SUNDANCE (OCTAL 16450)
045410,000158: 5027 17000 PRIO17 OCT 17000
045411,000159: 5030 17770 OCT17770 OCT 17770
045412,000160: # BIT14 OCT 20000
045413,000161: # OCT 20033 # T4RUPT RELTAB +3D
045414,000162: 5031 21000 PRIO21 OCT 21000
045415,000163:
045416,000164: 7713 BLOCK 03
045417,000165: 7713 COUNT* $$/FCONS
045418,000166:
045419,000167: 7713 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
045420,000168: 7714 23000 PRIO23 OCT 23000
045421,000169: 7715 24000 PRIO24 OCT 24000
045422,000170: # 5/8+1 OCT 24001 # SINGLE PRECISION SUBROUTINES
045423,000171: # OCT 24017 # T4RUPT RELTAB +4D
045424,000172: 7716 25000 PRIO25 OCT 25000
045425,000173: 7717 26000 PRIO26 OCT 26000
045426,000174: 7720 27000 PRIO27 OCT 27000
045427,000175: # CHRPRIO OCT 30000 # PINBALL
045428,000176: # OCT 30036 # T4RUPT RELTAB +5D
045429,000177: 7721 31000 PRIO31 OCT 31000
045430,000178: 7722 31103 C1/2 DEC .7853134 # (OCTAL 31103)
045431,000179: 7723 32000 PRIO32 OCT 32000
045432,000180: 7724 33000 PRIO33 OCT 33000
045433,000181: 7725 34000 PRIO34 OCT 34000
045434,000182: # OCT 34034 # T4RUPT RELTAB +6D
![]() |
Page 1097 |
045436,000184: 7726 35000 PRIO35 OCT 35000
045437,000185: 7727 36000 PRIO36 OCT 36000
045438,000186: 7730 37000 PRIO37 OCT 37000
045439,000187: 7731 37401 63/64+1 OCT 37401
045440,000188: # MID7 OCT 37600 # PINBALL
045441,000189: 7732 37766 OCT37766 OCT 37766
045442,000190: 7733 37774 OCT37774 OCT 37774
045443,000191: 7734 37776 OCT37776 OCT 37776
045444,000192: # DPOSMAX OCT 37777
045445,000193: # BIT15 OCT 40000
045446,000194: # OCT40001 OCT 40001 # INTERPRETER (CS 1 INSTRUCTION)
045447,000195: 7735 40014 DLOADCOD OCT 40014
045448,000196: 7736 40015 DLOAD* OCT 40015
045449,000197: # OCT 40023 # T4RUPT RELTAB +7D
045450,000198: 7737 40040 BIT15+6 OCT 40040
045451,000199: 7740 40200 OCT40200 OCT 40200
045452,000200: # OCT 44035 # T4RUPT RELTAB +8D
045453,000201: # OCT 50037 # T4RUPT RELTAB +9D
045454,000202: # OCT 54000 # T4RUPT RELTAB +10D
045455,000203: 7741 57777 -BIT14 OCT 57777
045456,000204: # RELTAB11 OCT 60000 # T4RUPT
045457,000205: 7742 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
045458,000206: 7743 70000 13,14,15 OCT 70000
045459,000207: 7744 73777 -1/8 OCT 73777
045460,000208: 7745 74000 HIGH4 OCT 74000
045461,000209: 7746 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
045462,000210: # HI5 OCT 76000 # PINBALL
045463,000211: 7747 77700 HIGH9 OCT 77700
045464,000212: # -ENDVAC DEC -45 # INTERPRETER (OCTAL 77722)
045465,000213: # -OCT10 OCT -10 # (OCTAL 77767)
045466,000214: # NEG4 DEC -4 # (OCTAL 77773)
045467,000215: 7750 77774 NEG3 DEC -3 B-14
045468,000216: 7751 77775 NEG2 OCT 77775
045469,000217: 7752 77776 NEGONE DEC -1 B-14
045470,000218:
![]() |
Page 1098 |
045472,000220:
045473,000221: # DEFINED BY EQUALS
045474,000222:
045475,000223: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
045476,000224: # ACCIDENTAL DEFINITION CHANGES.
045477,000225:
045478,000226: 7753 7752 MINUS1 = NEG1
045479,000227: 7753 7752 NEG1 = NEGONE
045480,000228: 7753 4753 ONE = BIT1
045481,000229: 7753 4752 TWO = BIT2
045482,000230: 7753 6250 THREE = OCTAL3
045483,000231: 7753 6250 LOW2 = THREE
045484,000232: 7753 4751 FOUR = BIT3
045485,000233: 7753 6245 SIX = REVCNT
045486,000234: 7753 4757 LOW3 = SEVEN
045487,000235: 7753 4750 EIGHT = BIT4
045488,000236: 7753 4320 NINE = R2D1
045489,000237: 7753 4363 TEN = BINCON
045490,000238: 7753 4760 NOUTCON = ELEVEN
045491,000239: 7753 4360 OCT23 = VD1
045492,000240: 7753 4362 OCT25 = MD1
045493,000241: 7753 4742 PRIO1 = BIT10
045494,000242: 7753 5007 EBANK3 = OCT1400
045495,000243: 7753 4741 PRIO2 = BIT11
045496,000244: 7753 4775 OCT120 = SUPER101
045497,000245: 7753 4776 OCT140 = SUPER110
045498,000246: 7753 4741 2K = BIT11
045499,000247: 7753 4741 EBANK4 = BIT11
045500,000248: 7753 4740 PRIO4 = BIT12
045501,000249: 7753 5015 EBANK6 = PRIO3
045502,000250: 7753 4737 QUARTER = BIT13
045503,000251: 7753 4737 PRIO10 = BIT13
045504,000252: 7753 7666 OCT10001 = CCSL
045505,000253: 7753 4736 POS1/2 = HALF
045506,000254: 7753 4736 PRIO20 = BIT14
045507,000255: 7753 4736 HALF = BIT14
045508,000256: 7753 4355 PRIO30 = CHRPRIO
045509,000257: 7753 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
045510,000258: 7753 6474 OCT30002 = TLOAD +1
045511,000259: 7753 7725 B12T14 = PRIO34
045512,000260: 7753 4735 NEGMAX = BIT15
045513,000261: 7753 4735 VLOADCOD = BIT15
045514,000262: 7753 6112 VLOAD* = OCT40001
045515,000263: 7753 4101 OCT60000 = RELTAB11
045516,000264: 7753 4350 BANKMASK = HI5
045517,000265:
End of include-file FIXED_FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc