Source Code
These source-code files are part of a reconstructed copy of Luminary 96, the
original release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 96 listing. Comments from 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. |
045841,000002: ## Copyright: Public domain.
045842,000003: ## Filename: FIXED-FIXED_CONSTANT_POOL.agc
045843,000004: ## Purpose: A section of Luminary revision 96.
045844,000005: ## It is part of the reconstructed source code for the
045845,000006: ## original release of the flight software for the Lunar
045846,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
045847,000008: ## The code has been recreated from a previously reconstructed
045848,000009: ## copy of Luminary 97 by undoing changes described in anomaly
045849,000010: ## report LNY-59. The code has been adapted such that the
045850,000011: ## resulting bugger words exactly match those specified for
045851,000012: ## Luminary 96 in NASA drawing 2021152D, which gives relatively
045852,000013: ## high confidence that the reconstruction is correct.
045853,000014: ## Reference: pp. 1095-1099
045854,000015: ## Assembler: yaYUL
045855,000016: ## Contact: Ron Burkey <info@sandroid.org>.
045856,000017: ## Website: www.ibiblio.org/apollo/index.html
045857,000018: ## Mod history: 2019-08-04 MAS Created from Luminary 97.
045858,000019:
Page 1095 |
045860,000021: 4732 BLOCK 02
045861,000022: 4732 COUNT* $$/FCONS
045862,000023:
045863,000024: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
045864,000025:
045865,000026: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
045866,000027: 4733 37777 POSMAX OCT 37777
045867,000028:
045868,000029: 4734 4734 LIMITS = NEG1/2
045869,000030:
045870,000031: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
045871,000032: # LOCATIONS IN FRONT OF BIT14)
045872,000033:
045873,000034: # BIT TABLE
045874,000035:
045875,000036: 4735 40000 BIT15 OCT 40000
045876,000037: 4736 20000 BIT14 OCT 20000
045877,000038: 4737 10000 BIT13 OCT 10000
045878,000039: 4740 04000 BIT12 OCT 04000
045879,000040: 4741 02000 BIT11 OCT 02000
045880,000041: 4742 01000 BIT10 OCT 01000
045881,000042: 4743 00400 BIT9 OCT 00400
045882,000043: 4744 00200 BIT8 OCT 00200
045883,000044: 4745 00100 BIT7 OCT 00100
045884,000045: 4746 00040 BIT6 OCT 00040
045885,000046: 4747 00020 BIT5 OCT 00020
045886,000047: 4750 00010 BIT4 OCT 00010
045887,000048: 4751 00004 BIT3 OCT 00004
045888,000049: 4752 00002 BIT2 OCT 00002
045889,000050: 4753 00001 BIT1 OCT 00001
045890,000051:
045891,000052: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
045892,000053: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
045893,000054: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
045894,000055: # BIT1 OCT 00001
045895,000056: # NO.WDS OCT 2 INTERPRETER
045896,000057: # OCTAL3 OCT 3 INTERPRETER
045897,000058: # R3D1 OCT 4 PINBALL
045898,000059: 4756 00005 FIVE OCT 5
045899,000060: # REVCNT OCT 6 INTERPRETER
045900,000061: 4757 00007 SEVEN OCT 7
045901,000062: # BIT4 OCT 00010
045902,000063: # R2D1 OCT 11 PINBALL
045903,000064: 4760 4320 OCT11 = R2D1 # P20S
045904,000065: # BINCON DEC 10 PINBALL (OCTAL 12)
045905,000066: 4760 00013 ELEVEN DEC 11 B-14
045906,000067: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
045907,000068: 4761 00015 OCT15 OCT 15
045908,000069: # R1D1 OCT 16 PINBALL
045909,000070: 4762 00017 LOW4 OCT 17
Page 1096 |
045911,000072: # BIT5 OCT 00020
045912,000073: # ND1 OCT 21 PINBALL
045913,000074: # VD1 OCT 23 PINBALL
045914,000075: # OCT24 OCT 24 SERVICE ROUTINES
045915,000076: # MD1 OCT 25 PINBALL
045916,000077: 4763 00030 BITS4&5 OCT 30
045917,000078: # OCT31 OCT 31 SERVICE ROUTINES
045918,000079: 4764 00033 OCT33 OCT 33
045919,000080: 4765 4764 DEC27 = OCT33
045920,000081: 4765 00035 OCT35 OCT 35
045921,000082: 4766 4765 DEC29 = OCT35
045922,000083: 4766 00032 CALLCODE OCT 00032
045923,000084: # LOW5 OCT 37 PINBALL
045924,000085: # 33DEC DEC 33 PINBALL (OCTAL 41)
045925,000086: # 34DEC DEC 34 PINBALL (OCTAL 42)
045926,000087: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
045927,000088: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
045928,000089: # BIT6 OCT 00040
045929,000090: 4771 00050 OCT50 OCT 50
045930,000091: 4772 00055 DEC45 DEC 45 B-14
045931,000092: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
045932,000093: 4774 00062 .5SEC DEC 50 B-14
045933,000094: # BIT7 OCT 00100
045934,000095:
045935,000096: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
045936,000097: # (LAST 4K OF ROPE)
045937,000098: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
045938,000099: # OCT121 OCT 121 SERVICE ROUTINES
045939,000100: # (FIRST 8K OF ACM)
045940,000101: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
045941,000102: # (LAST 8K OF ACM)
045942,000103: 4777 00144 1SEC DEC 100 B-14
045943,000104: # LOW7 OCT 177 INTERPRETER
045944,000105: # BIT8 OCT 00200
045945,000106: # OT215 OCT 215 ALARM AND ABORT
045946,000107: # 8,5 OCT 00220 P20-P25 SUNDANCE
045947,000108: 5000 00310 2SECS DEC 200 B-14
045948,000109: # LOW8 OCT 377 PINBALL
045949,000110: # BIT9 OCT 00400
045950,000111: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
045951,000112: 5002 00454 3SECS DEC 300 B-14
045952,000113: 5003 00620 4SECS DEC 400 B-14
045953,000114: 5004 00777 LOW9 OCT 777
045954,000115: # BIT10 OCT 01000
045955,000116: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
045956,000117: # OCT1103 OCT 1103 ALARM AND ABORT
045957,000118: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
045958,000119: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
045959,000120: 5007 01400 OCT1400 OCT 01400
045960,000121: 5010 01426 V06N22 VN 0622
Page 1097 |
045962,000123: # MID5 OCT 1740 PINBALL
045963,000124: 5011 01776 BITS2-10 OCT 1776
045964,000125: 5012 01777 LOW10 OCT 1777
045965,000126: # BIT11 OCT 02000
045966,000127: # 2K+3 OCT 2003 PINBALL
045967,000128: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
045968,000129: 5014 02400 EBANK5 OCT 02400
045969,000130: 5015 03000 PRIO3 OCT 03000
045970,000131: 5016 03400 EBANK7 OCT 03400
045971,000132: # LOW11 OCT 3777 PINBALL
045972,000133: # BIT12 OCT 04000
045973,000134: # RELTAB OCT 04025 T4RUPT
045974,000135: 5017 05000 PRIO5 OCT 05000
045975,000136: 5020 06000 PRIO6 OCT 06000
045976,000137: 5021 07000 PRIO7 OCT 07000
045977,000138:
045978,000139: # BIT13 OCT 10000
045979,000140: # OCT 10003 T4RUPT RELTAB +1D
045980,000141: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
045981,000142: 5022 11000 PRIO11 OCT 11000
045982,000143: # PRIO12 OCT 12000 BANKCALL
045983,000144: 5023 13000 PRIO13 OCT 13000
045984,000145: 5024 14000 PRIO14 OCT 14000
045985,000146: # OCT 14031 T4RUPT RELTAB +2D
045986,000147: 5025 15000 PRIO15 OCT 15000
045987,000148: 5026 16000 PRIO16 OCT 16000
045988,000149: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
045989,000150: 5027 17000 PRIO17 OCT 17000
045990,000151: 5030 17770 OCT17770 OCT 17770
045991,000152: # BIT14 OCT 20000
045992,000153: # OCT 20033 T4RUPT RELTAB +3D
045993,000154: 5031 21000 PRIO21 OCT 21000
045994,000155: 7710 BLOCK 03
045995,000156: 7710 COUNT* $$/FCONS
045996,000157: 7710 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
045997,000158: 7711 23000 PRIO23 OCT 23000
045998,000159: 7712 24000 PRIO24 OCT 24000
045999,000160: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
046000,000161: # OCT 24017 T4RUPT RELTAB +4D
046001,000162: 7713 25000 PRIO25 OCT 25000
046002,000163: 7714 26000 PRIO26 OCT 26000
046003,000164: 7715 27000 PRIO27 OCT 27000
046004,000165: # CHRPRIO OCT 30000 PINBALL
046005,000166: # OCT 30036 T4RUPT RELTAB +5D
046006,000167: 7716 31000 PRIO31 OCT 31000
046007,000168: 7717 31103 C1/2 DEC .7853134 # (OCTAL 31103)
046008,000169: 7720 32000 PRIO32 OCT 32000
046009,000170: 7721 33000 PRIO33 OCT 33000
046010,000171: 7722 34000 PRIO34 OCT 34000
046011,000172: # OCT 34034 T4RUPT RELTAB +6D
Page 1098 |
046013,000174: 7723 35000 PRIO35 OCT 35000
046014,000175: 7724 36000 PRIO36 OCT 36000
046015,000176: 7725 37000 PRIO37 OCT 37000
046016,000177: 7726 37401 63/64+1 OCT 37401
046017,000178: # MID7 OCT 37600 PINBALL
046018,000179: 7727 37766 OCT37766 OCT 37766
046019,000180: 7730 37774 OCT37774 OCT 37774
046020,000181: 7731 37776 OCT37776 OCT 37776
046021,000182: # DPOSMAX OCT 37777
046022,000183: # BIT15 OCT 40000
046023,000184: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION)
046024,000185: 7732 40014 DLOADCOD OCT 40014
046025,000186: 7733 40015 DLOAD* OCT 40015
046026,000187: # OCT 40023 T4RUPT RELTAB +7D
046027,000188: 7734 40040 BIT15+6 OCT 40040
046028,000189: 7735 40200 OCT40200 OCT 40200
046029,000190: # OCT 44035 T4RUPT RELTAB +8D
046030,000191: # OCT 50037 T4RUPT RELTAB +9D
046031,000192: # OCT 54000 T4RUPT RELTAB +10D
046032,000193: 7736 57777 -BIT14 OCT 57777
046033,000194: # RELTAB11 OCT 60000 T4RUPT
046034,000195: 7737 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
046035,000196: 7740 70000 13,14,15 OCT 70000
046036,000197: 7741 73777 -1/8 OCT 73777
046037,000198: 7742 74000 HIGH4 OCT 74000
046038,000199: 7743 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
046039,000200: # HI5 OCT 76000 PINBALL
046040,000201: 7744 77700 HIGH9 OCT 77700
046041,000202: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
046042,000203: # -OCT10 OCT -10 (OCT 77767)
046043,000204: # NEG4 DEC -4 (OCTAL 77773)
046044,000205: 7745 77774 NEG3 DEC -3 B-14
046045,000206: 7746 77775 NEG2 OCT 77775
046046,000207: 7747 77776 NEGONE DEC -1 B-14
046047,000208:
Page 1099 |
046049,000210:
046050,000211: # DEFINED BY EQUALS
046051,000212:
046052,000213: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
046053,000214: # ACCIDENTAL DEFINITION CHANGES.
046054,000215:
046055,000216: 7750 7747 MINUS1 = NEG1
046056,000217: 7750 7747 NEG1 = NEGONE
046057,000218: 7750 4753 ONE = BIT1
046058,000219: 7750 4752 TWO = BIT2
046059,000220: 7750 6245 THREE = OCTAL3
046060,000221: 7750 6245 LOW2 = THREE
046061,000222: 7750 4751 FOUR = BIT3
046062,000223: 7750 6242 SIX = REVCNT
046063,000224: 7750 4757 LOW3 = SEVEN
046064,000225: 7750 4750 EIGHT = BIT4
046065,000226: 7750 4320 NINE = R2D1
046066,000227: 7750 4363 TEN = BINCON
046067,000228: 7750 4760 NOUTCON = ELEVEN
046068,000229: 7750 4360 OCT23 = VD1
046069,000230: 7750 4362 OCT25 = MD1
046070,000231: 7750 4742 PRIO1 = BIT10
046071,000232: 7750 5007 EBANK3 = OCT1400
046072,000233: 7750 4741 PRIO2 = BIT11
046073,000234: 7750 4775 OCT120 = SUPER101
046074,000235: 7750 4776 OCT140 = SUPER110
046075,000236: 7750 4741 2K = BIT11
046076,000237: 7750 4741 EBANK4 = BIT11
046077,000238: 7750 4740 PRIO4 = BIT12
046078,000239: 7750 5015 EBANK6 = PRIO3
046079,000240: 7750 4737 QUARTER = BIT13
046080,000241: 7750 4737 PRIO10 = BIT13
046081,000242: 7750 7663 OCT10001 = CCSL
046082,000243: 7750 4736 POS1/2 = HALF
046083,000244: 7750 4736 PRIO20 = BIT14
046084,000245: 7750 4736 HALF = BIT14
046085,000246: 7750 4355 PRIO30 = CHRPRIO
046086,000247: 7750 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
046087,000248: 7750 6471 OCT30002 = TLOAD +1
046088,000249: 7750 7722 B12T14 = PRIO34
046089,000250: 7750 4735 NEGMAX = BIT15
046090,000251: 7750 4735 VLOADCOD = BIT15
046091,000252: 7750 6107 VLOAD* = OCT40001
046092,000253: 7750 4101 OCT60000 = RELTAB11
046093,000254: 7750 4350 BANKMASK = HI5
046094,000255:
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc