Source Code
These source-code files are part of a reconstructed copy of Luminary 97, the
second release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer
(AGC) software. It was created to fix two incorrect ephemeris constants in
Luminary 96, as described by anomaly report LNY-59.
The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memos 83 and 85, using asterisks indicating changed lines in the listing as a guide. 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 97 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. |
046069,000002: ## Copyright: Public domain.
046070,000003: ## Filename: FIXED-FIXED_CONSTANT_POOL.agc
046071,000004: ## Purpose: A section of Luminary revision 97.
046072,000005: ## It is part of the reconstructed source code for the
046073,000006: ## second release of the flight software for the Lunar
046074,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
046075,000008: ## It was created to fix two incorrect ephemeris constants in
046076,000009: ## Luminary 96, as described by anomaly report LNY-59.
046077,000010: ## The code has been recreated from a copy of Luminary 99
046078,000011: ## revision 001, using asterisks indicating changed lines in
046079,000012: ## the listing and Luminary Memos #83 and #85, which list
046080,000013: ## changes between Luminary 97 and 98, and 98 and 99. The
046081,000014: ## code has been adapted such that the resulting bugger words
046082,000015: ## exactly match those specified for Luminary 97 in NASA drawing
046083,000016: ## 2021152D, which gives relatively high confidence that the
046084,000017: ## reconstruction is correct.
046085,000018: ## Reference: pp. 1095-1099
046086,000019: ## Assembler: yaYUL
046087,000020: ## Contact: Ron Burkey <info@sandroid.org>.
046088,000021: ## Website: www.ibiblio.org/apollo/index.html
046089,000022: ## Mod history: 2019-07-28 MAS Created from Luminary 99.
046090,000023:
Page 1095 |
046092,000025: 4732 BLOCK 02
046093,000026: 4732 COUNT* $$/FCONS
046094,000027:
046095,000028: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
046096,000029:
046097,000030: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
046098,000031: 4733 37777 POSMAX OCT 37777
046099,000032:
046100,000033: 4734 4734 LIMITS = NEG1/2
046101,000034:
046102,000035: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
046103,000036: # LOCATIONS IN FRONT OF BIT14)
046104,000037:
046105,000038: # BIT TABLE
046106,000039:
046107,000040: 4735 40000 BIT15 OCT 40000
046108,000041: 4736 20000 BIT14 OCT 20000
046109,000042: 4737 10000 BIT13 OCT 10000
046110,000043: 4740 04000 BIT12 OCT 04000
046111,000044: 4741 02000 BIT11 OCT 02000
046112,000045: 4742 01000 BIT10 OCT 01000
046113,000046: 4743 00400 BIT9 OCT 00400
046114,000047: 4744 00200 BIT8 OCT 00200
046115,000048: 4745 00100 BIT7 OCT 00100
046116,000049: 4746 00040 BIT6 OCT 00040
046117,000050: 4747 00020 BIT5 OCT 00020
046118,000051: 4750 00010 BIT4 OCT 00010
046119,000052: 4751 00004 BIT3 OCT 00004
046120,000053: 4752 00002 BIT2 OCT 00002
046121,000054: 4753 00001 BIT1 OCT 00001
046122,000055:
046123,000056: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
046124,000057: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
046125,000058: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
046126,000059: # BIT1 OCT 00001
046127,000060: # NO.WDS OCT 2 INTERPRETER
046128,000061: # OCTAL3 OCT 3 INTERPRETER
046129,000062: # R3D1 OCT 4 PINBALL
046130,000063: 4756 00005 FIVE OCT 5
046131,000064: # REVCNT OCT 6 INTERPRETER
046132,000065: 4757 00007 SEVEN OCT 7
046133,000066: # BIT4 OCT 00010
046134,000067: # R2D1 OCT 11 PINBALL
046135,000068: 4760 4320 OCT11 = R2D1 # P20S
046136,000069: # BINCON DEC 10 PINBALL (OCTAL 12)
046137,000070: 4760 00013 ELEVEN DEC 11 B-14
046138,000071: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
046139,000072: 4761 00015 OCT15 OCT 15
046140,000073: # R1D1 OCT 16 PINBALL
046141,000074: 4762 00017 LOW4 OCT 17
Page 1096 |
046143,000076: # BIT5 OCT 00020
046144,000077: # ND1 OCT 21 PINBALL
046145,000078: # VD1 OCT 23 PINBALL
046146,000079: # OCT24 OCT 24 SERVICE ROUTINES
046147,000080: # MD1 OCT 25 PINBALL
046148,000081: 4763 00030 BITS4&5 OCT 30
046149,000082: # OCT31 OCT 31 SERVICE ROUTINES
046150,000083: 4764 00033 OCT33 OCT 33
046151,000084: 4765 4764 DEC27 = OCT33
046152,000085: 4765 00035 OCT35 OCT 35
046153,000086: 4766 4765 DEC29 = OCT35
046154,000087: 4766 00032 CALLCODE OCT 00032
046155,000088: # LOW5 OCT 37 PINBALL
046156,000089: # 33DEC DEC 33 PINBALL (OCTAL 41)
046157,000090: # 34DEC DEC 34 PINBALL (OCTAL 42)
046158,000091: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
046159,000092: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
046160,000093: # BIT6 OCT 00040
046161,000094: 4771 00050 OCT50 OCT 50
046162,000095: 4772 00055 DEC45 DEC 45 B-14
046163,000096: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
046164,000097: 4774 00062 .5SEC DEC 50 B-14
046165,000098: # BIT7 OCT 00100
046166,000099:
046167,000100: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
046168,000101: # (LAST 4K OF ROPE)
046169,000102: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
046170,000103: # OCT121 OCT 121 SERVICE ROUTINES
046171,000104: # (FIRST 8K OF ACM)
046172,000105: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
046173,000106: # (LAST 8K OF ACM)
046174,000107: 4777 00144 1SEC DEC 100 B-14
046175,000108: # LOW7 OCT 177 INTERPRETER
046176,000109: # BIT8 OCT 00200
046177,000110: # OT215 OCT 215 ALARM AND ABORT
046178,000111: # 8,5 OCT 00220 P20-P25 SUNDANCE
046179,000112: 5000 00310 2SECS DEC 200 B-14
046180,000113: # LOW8 OCT 377 PINBALL
046181,000114: # BIT9 OCT 00400
046182,000115: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
046183,000116: 5002 00454 3SECS DEC 300 B-14
046184,000117: 5003 00620 4SECS DEC 400 B-14
046185,000118: 5004 00777 LOW9 OCT 777
046186,000119: # BIT10 OCT 01000
046187,000120: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
046188,000121: # OCT1103 OCT 1103 ALARM AND ABORT
046189,000122: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
046190,000123: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
046191,000124: 5007 01400 OCT1400 OCT 01400
046192,000125: 5010 01426 V06N22 VN 0622
Page 1097 |
046194,000127: # MID5 OCT 1740 PINBALL
046195,000128: 5011 01776 BITS2-10 OCT 1776
046196,000129: 5012 01777 LOW10 OCT 1777
046197,000130: # BIT11 OCT 02000
046198,000131: # 2K+3 OCT 2003 PINBALL
046199,000132: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
046200,000133: 5014 02400 EBANK5 OCT 02400
046201,000134: 5015 03000 PRIO3 OCT 03000
046202,000135: 5016 03400 EBANK7 OCT 03400
046203,000136: # LOW11 OCT 3777 PINBALL
046204,000137: # BIT12 OCT 04000
046205,000138: # RELTAB OCT 04025 T4RUPT
046206,000139: 5017 05000 PRIO5 OCT 05000
046207,000140: 5020 06000 PRIO6 OCT 06000
046208,000141: 5021 07000 PRIO7 OCT 07000
046209,000142:
046210,000143: # BIT13 OCT 10000
046211,000144: # OCT 10003 T4RUPT RELTAB +1D
046212,000145: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
046213,000146: 5022 11000 PRIO11 OCT 11000
046214,000147: # PRIO12 OCT 12000 BANKCALL
046215,000148: 5023 13000 PRIO13 OCT 13000
046216,000149: 5024 14000 PRIO14 OCT 14000
046217,000150: # OCT 14031 T4RUPT RELTAB +2D
046218,000151: 5025 15000 PRIO15 OCT 15000
046219,000152: 5026 16000 PRIO16 OCT 16000
046220,000153: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
046221,000154: 5027 17000 PRIO17 OCT 17000
046222,000155: 5030 17770 OCT17770 OCT 17770
046223,000156: # BIT14 OCT 20000
046224,000157: # OCT 20033 T4RUPT RELTAB +3D
046225,000158: 5031 21000 PRIO21 OCT 21000
046226,000159: 7710 BLOCK 03
046227,000160: 7710 COUNT* $$/FCONS
046228,000161: 7710 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
046229,000162: 7711 23000 PRIO23 OCT 23000
046230,000163: 7712 24000 PRIO24 OCT 24000
046231,000164: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
046232,000165: # OCT 24017 T4RUPT RELTAB +4D
046233,000166: 7713 25000 PRIO25 OCT 25000
046234,000167: 7714 26000 PRIO26 OCT 26000
046235,000168: 7715 27000 PRIO27 OCT 27000
046236,000169: # CHRPRIO OCT 30000 PINBALL
046237,000170: # OCT 30036 T4RUPT RELTAB +5D
046238,000171: 7716 31000 PRIO31 OCT 31000
046239,000172: 7717 31103 C1/2 DEC .7853134 # (OCTAL 31103)
046240,000173: 7720 32000 PRIO32 OCT 32000
046241,000174: 7721 33000 PRIO33 OCT 33000
046242,000175: 7722 34000 PRIO34 OCT 34000
046243,000176: # OCT 34034 T4RUPT RELTAB +6D
Page 1098 |
046245,000178: 7723 35000 PRIO35 OCT 35000
046246,000179: 7724 36000 PRIO36 OCT 36000
046247,000180: 7725 37000 PRIO37 OCT 37000
046248,000181: 7726 37401 63/64+1 OCT 37401
046249,000182: # MID7 OCT 37600 PINBALL
046250,000183: 7727 37766 OCT37766 OCT 37766
046251,000184: 7730 37774 OCT37774 OCT 37774
046252,000185: 7731 37776 OCT37776 OCT 37776
046253,000186: # DPOSMAX OCT 37777
046254,000187: # BIT15 OCT 40000
046255,000188: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION)
046256,000189: 7732 40014 DLOADCOD OCT 40014
046257,000190: 7733 40015 DLOAD* OCT 40015
046258,000191: # OCT 40023 T4RUPT RELTAB +7D
046259,000192: 7734 40040 BIT15+6 OCT 40040
046260,000193: 7735 40200 OCT40200 OCT 40200
046261,000194: # OCT 44035 T4RUPT RELTAB +8D
046262,000195: # OCT 50037 T4RUPT RELTAB +9D
046263,000196: # OCT 54000 T4RUPT RELTAB +10D
046264,000197: 7736 57777 -BIT14 OCT 57777
046265,000198: # RELTAB11 OCT 60000 T4RUPT
046266,000199: 7737 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
046267,000200: 7740 70000 13,14,15 OCT 70000
046268,000201: 7741 73777 -1/8 OCT 73777
046269,000202: 7742 74000 HIGH4 OCT 74000
046270,000203: 7743 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
046271,000204: # HI5 OCT 76000 PINBALL
046272,000205: 7744 77700 HIGH9 OCT 77700
046273,000206: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
046274,000207: # -OCT10 OCT -10 (OCT 77767)
046275,000208: # NEG4 DEC -4 (OCTAL 77773)
046276,000209: 7745 77774 NEG3 DEC -3 B-14
046277,000210: 7746 77775 NEG2 OCT 77775
046278,000211: 7747 77776 NEGONE DEC -1 B-14
046279,000212:
Page 1099 |
046281,000214:
046282,000215: # DEFINED BY EQUALS
046283,000216:
046284,000217: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
046285,000218: # ACCIDENTAL DEFINITION CHANGES.
046286,000219:
046287,000220: 7750 7747 MINUS1 = NEG1
046288,000221: 7750 7747 NEG1 = NEGONE
046289,000222: 7750 4753 ONE = BIT1
046290,000223: 7750 4752 TWO = BIT2
046291,000224: 7750 6245 THREE = OCTAL3
046292,000225: 7750 6245 LOW2 = THREE
046293,000226: 7750 4751 FOUR = BIT3
046294,000227: 7750 6242 SIX = REVCNT
046295,000228: 7750 4757 LOW3 = SEVEN
046296,000229: 7750 4750 EIGHT = BIT4
046297,000230: 7750 4320 NINE = R2D1
046298,000231: 7750 4363 TEN = BINCON
046299,000232: 7750 4760 NOUTCON = ELEVEN
046300,000233: 7750 4360 OCT23 = VD1
046301,000234: 7750 4362 OCT25 = MD1
046302,000235: 7750 4742 PRIO1 = BIT10
046303,000236: 7750 5007 EBANK3 = OCT1400
046304,000237: 7750 4741 PRIO2 = BIT11
046305,000238: 7750 4775 OCT120 = SUPER101
046306,000239: 7750 4776 OCT140 = SUPER110
046307,000240: 7750 4741 2K = BIT11
046308,000241: 7750 4741 EBANK4 = BIT11
046309,000242: 7750 4740 PRIO4 = BIT12
046310,000243: 7750 5015 EBANK6 = PRIO3
046311,000244: 7750 4737 QUARTER = BIT13
046312,000245: 7750 4737 PRIO10 = BIT13
046313,000246: 7750 7663 OCT10001 = CCSL
046314,000247: 7750 4736 POS1/2 = HALF
046315,000248: 7750 4736 PRIO20 = BIT14
046316,000249: 7750 4736 HALF = BIT14
046317,000250: 7750 4355 PRIO30 = CHRPRIO
046318,000251: 7750 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
046319,000252: 7750 6471 OCT30002 = TLOAD +1
046320,000253: 7750 7722 B12T14 = PRIO34
046321,000254: 7750 4735 NEGMAX = BIT15
046322,000255: 7750 4735 VLOADCOD = BIT15
046323,000256: 7750 6107 VLOAD* = OCT40001
046324,000257: 7750 4101 OCT60000 = RELTAB11
046325,000258: 7750 4350 BANKMASK = HI5
046326,000259:
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc