Source Code
|
These source-code files are part of a reconstructed copy of Luminary 98, a
development version of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
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 memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. 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 98 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. |
045726,000002: ## Copyright: Public domain.
045727,000003: ## Filename: FIXED-FIXED_CONSTANT_POOL.agc
045728,000004: ## Purpose: A section of Luminary revision 98.
045729,000005: ## It is part of the reconstructed source code for the a
045730,000006: ## development version of the flight software for the Lunar
045731,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
045732,000008: ## The code has been recreated from a copy of Luminary 99
045733,000009: ## revision 001, using asterisks indicating changed lines in
045734,000010: ## the listing and Luminary Memo #85, which lists changes between
045735,000011: ## Luminary 98 and 99.
045736,000012: ## Reference: pp. 1095-1099
045737,000013: ## Assembler: yaYUL
045738,000014: ## Contact: Ron Burkey <info@sandroid.org>.
045739,000015: ## Website: www.ibiblio.org/apollo/index.html
045740,000016: ## Mod history: 2019-07-28 MAS Created from Luminary 99.
045741,000017:
|
Page 1095 |
045743,000019: 4732 BLOCK 02
045744,000020: 4732 COUNT* $$/FCONS
045745,000021:
045746,000022: # THE FOLLOWING TABLE OF 18 VALUES IS INDEXED. DO NOT INSERT OR REMOVE ANY QUANTITIES.
045747,000023:
045748,000024: 4732 37777 DPOSMAX OCT 37777 # MUST PRECEDE POSMAX
045749,000025: 4733 37777 POSMAX OCT 37777
045750,000026:
045751,000027: 4734 4734 LIMITS = NEG1/2
045752,000028:
045753,000029: 4734 57777 NEG1/2 OCT -20000 # USED BY SIN ROUTINE (MUST BE TWO
045754,000030: # LOCATIONS IN FRONT OF BIT14)
045755,000031:
045756,000032: # BIT TABLE
045757,000033:
045758,000034: 4735 40000 BIT15 OCT 40000
045759,000035: 4736 20000 BIT14 OCT 20000
045760,000036: 4737 10000 BIT13 OCT 10000
045761,000037: 4740 04000 BIT12 OCT 04000
045762,000038: 4741 02000 BIT11 OCT 02000
045763,000039: 4742 01000 BIT10 OCT 01000
045764,000040: 4743 00400 BIT9 OCT 00400
045765,000041: 4744 00200 BIT8 OCT 00200
045766,000042: 4745 00100 BIT7 OCT 00100
045767,000043: 4746 00040 BIT6 OCT 00040
045768,000044: 4747 00020 BIT5 OCT 00020
045769,000045: 4750 00010 BIT4 OCT 00010
045770,000046: 4751 00004 BIT3 OCT 00004
045771,000047: 4752 00002 BIT2 OCT 00002
045772,000048: 4753 00001 BIT1 OCT 00001
045773,000049:
045774,000050: # DO NOT DESTROY THIS COMBINATION, SINCE IT IS USED IN DOUBLE PRECISION INSTRUCTIONS.
045775,000051: 4754 77777 NEG0 OCT -0 # MUST PRECEDE ZERO
045776,000052: 4755 00000 ZERO OCT 0 # MUST FOLLOW NEG0
045777,000053: # BIT1 OCT 00001
045778,000054: # NO.WDS OCT 2 INTERPRETER
045779,000055: # OCTAL3 OCT 3 INTERPRETER
045780,000056: # R3D1 OCT 4 PINBALL
045781,000057: 4756 00005 FIVE OCT 5
045782,000058: # REVCNT OCT 6 INTERPRETER
045783,000059: 4757 00007 SEVEN OCT 7
045784,000060: # BIT4 OCT 00010
045785,000061: # R2D1 OCT 11 PINBALL
045786,000062: 4760 4320 OCT11 = R2D1 # P20S
045787,000063: # BINCON DEC 10 PINBALL (OCTAL 12)
045788,000064: 4760 00013 ELEVEN DEC 11 B-14
045789,000065: # OCT14 OCT 14 ALARM AND ABORT (FILLER)
045790,000066: 4761 00015 OCT15 OCT 15
045791,000067: # R1D1 OCT 16 PINBALL
045792,000068: 4762 00017 LOW4 OCT 17
|
Page 1096 |
045794,000070: # BIT5 OCT 00020
045795,000071: # ND1 OCT 21 PINBALL
045796,000072: # VD1 OCT 23 PINBALL
045797,000073: # OCT24 OCT 24 SERVICE ROUTINES
045798,000074: # MD1 OCT 25 PINBALL
045799,000075: 4763 00030 BITS4&5 OCT 30
045800,000076: # OCT31 OCT 31 SERVICE ROUTINES
045801,000077: 4764 00033 OCT33 OCT 33
045802,000078: 4765 4764 DEC27 = OCT33
045803,000079: 4765 00035 OCT35 OCT 35
045804,000080: 4766 4765 DEC29 = OCT35
045805,000081: 4766 00032 CALLCODE OCT 00032
045806,000082: # LOW5 OCT 37 PINBALL
045807,000083: # 33DEC DEC 33 PINBALL (OCTAL 41)
045808,000084: # 34DEC DEC 34 PINBALL (OCTAL 42)
045809,000085: 4767 00045 TBUILDFX DEC 37 B-14 # BUILDUP FOR CONVIENCE IN DAPTESTING
045810,000086: 4770 00046 TDECAYFX DEC 38 B-14 # CONVENIENCE FOR DAPTESTING
045811,000087: # BIT6 OCT 00040
045812,000088: 4771 00050 OCT50 OCT 50
045813,000089: 4772 00055 DEC45 DEC 45 B-14
045814,000090: 4773 00060 SUPER011 OCT 60 # BITS FOR SUPERBNK SETTING 011.
045815,000091: 4774 00062 .5SEC DEC 50 B-14
045816,000092: # BIT7 OCT 00100
045817,000093:
045818,000094: 4775 4745 SUPER100 = BIT7 # BITS FOR SUPERBNK SETTING 100
045819,000095: # (LAST 4K OF ROPE)
045820,000096: 4775 00120 SUPER101 OCT 120 # BITS FOR SUPERBNK SETTING 101
045821,000097: # OCT121 OCT 121 SERVICE ROUTINES
045822,000098: # (FIRST 8K OF ACM)
045823,000099: 4776 00140 SUPER110 OCT 140 # BITS FOR SUPERBNK SETTING 110.
045824,000100: # (LAST 8K OF ACM)
045825,000101: 4777 00144 1SEC DEC 100 B-14
045826,000102: # LOW7 OCT 177 INTERPRETER
045827,000103: # BIT8 OCT 00200
045828,000104: # OT215 OCT 215 ALARM AND ABORT
045829,000105: # 8,5 OCT 00220 P20-P25 SUNDANCE
045830,000106: 5000 00310 2SECS DEC 200 B-14
045831,000107: # LOW8 OCT 377 PINBALL
045832,000108: # BIT9 OCT 00400
045833,000109: 5001 00401 GN/CCODE OCT 00401 # SET S/C CONTROL SWITCH TO G/N
045834,000110: 5002 00454 3SECS DEC 300 B-14
045835,000111: 5003 00620 4SECS DEC 400 B-14
045836,000112: 5004 00777 LOW9 OCT 777
045837,000113: # BIT10 OCT 01000
045838,000114: # 5.5DEGS DEC .03056 P20-P25 SUNDANCE (OCTAL 00765)
045839,000115: # OCT1103 OCT 1103 ALARM AND ABORT
045840,000116: 5005 01124 C5/2 DEC .0363551 # (OCTAL 01124)
045841,000117: 5006 01211 V05N09 VN 0509 # (SAME AS OCTAL 1211)
045842,000118: 5007 01400 OCT1400 OCT 01400
045843,000119: 5010 01426 V06N22 VN 0622
|
Page 1097 |
045845,000121: # MID5 OCT 1740 PINBALL
045846,000122: 5011 01776 BITS2-10 OCT 1776
045847,000123: 5012 01777 LOW10 OCT 1777
045848,000124: # BIT11 OCT 02000
045849,000125: # 2K+3 OCT 2003 PINBALL
045850,000126: 5013 02177 LOW7+2K OCT 2177 # OP CODE MASK + BANK 1 FBANK SETTING.
045851,000127: 5014 02400 EBANK5 OCT 02400
045852,000128: 5015 03000 PRIO3 OCT 03000
045853,000129: 5016 03400 EBANK7 OCT 03400
045854,000130: # LOW11 OCT 3777 PINBALL
045855,000131: # BIT12 OCT 04000
045856,000132: # RELTAB OCT 04025 T4RUPT
045857,000133: 5017 05000 PRIO5 OCT 05000
045858,000134: 5020 06000 PRIO6 OCT 06000
045859,000135: 5021 07000 PRIO7 OCT 07000
045860,000136:
045861,000137: # BIT13 OCT 10000
045862,000138: # OCT 10003 T4RUPT RELTAB +1D
045863,000139: # 13,7,2 OCT 10102 P20-P25 SUNDANCE
045864,000140: 5022 11000 PRIO11 OCT 11000
045865,000141: # PRIO12 OCT 12000 BANKCALL
045866,000142: 5023 13000 PRIO13 OCT 13000
045867,000143: 5024 14000 PRIO14 OCT 14000
045868,000144: # OCT 14031 T4RUPT RELTAB +2D
045869,000145: 5025 15000 PRIO15 OCT 15000
045870,000146: 5026 16000 PRIO16 OCT 16000
045871,000147: # 85DEGS DEC .45556 P20-P25 SUNDANCE (OCTAL 16450)
045872,000148: 5027 17000 PRIO17 OCT 17000
045873,000149: 5030 17770 OCT17770 OCT 17770
045874,000150: # BIT14 OCT 20000
045875,000151: # OCT 20033 T4RUPT RELTAB +3D
045876,000152: 5031 21000 PRIO21 OCT 21000
045877,000153: 7710 BLOCK 03
045878,000154: 7710 COUNT* $$/FCONS
045879,000155: 7710 22000 PRIO22 OCT 22000 # SERVICE ROUTINES
045880,000156: 7711 23000 PRIO23 OCT 23000
045881,000157: 7712 24000 PRIO24 OCT 24000
045882,000158: # 5/8+1 OCT 24001 SINGLE PRECISION SUBROUTINES
045883,000159: # OCT 24017 T4RUPT RELTAB +4D
045884,000160: 7713 25000 PRIO25 OCT 25000
045885,000161: 7714 26000 PRIO26 OCT 26000
045886,000162: 7715 27000 PRIO27 OCT 27000
045887,000163: # CHRPRIO OCT 30000 PINBALL
045888,000164: # OCT 30036 T4RUPT RELTAB +5D
045889,000165: 7716 31000 PRIO31 OCT 31000
045890,000166: 7717 31103 C1/2 DEC .7853134 # (OCTAL 31103)
045891,000167: 7720 32000 PRIO32 OCT 32000
045892,000168: 7721 33000 PRIO33 OCT 33000
045893,000169: 7722 34000 PRIO34 OCT 34000
045894,000170: # OCT 34034 T4RUPT RELTAB +6D
|
Page 1098 |
045896,000172: 7723 35000 PRIO35 OCT 35000
045897,000173: 7724 36000 PRIO36 OCT 36000
045898,000174: 7725 37000 PRIO37 OCT 37000
045899,000175: 7726 37401 63/64+1 OCT 37401
045900,000176: # MID7 OCT 37600 PINBALL
045901,000177: 7727 37766 OCT37766 OCT 37766
045902,000178: 7730 37774 OCT37774 OCT 37774
045903,000179: 7731 37776 OCT37776 OCT 37776
045904,000180: # DPOSMAX OCT 37777
045905,000181: # BIT15 OCT 40000
045906,000182: # OCT40001 OCT 40001 INTERPRETER (CS 1 INSTRUCTION)
045907,000183: 7732 40014 DLOADCOD OCT 40014
045908,000184: 7733 40015 DLOAD* OCT 40015
045909,000185: # OCT 40023 T4RUPT RELTAB +7D
045910,000186: 7734 40040 BIT15+6 OCT 40040
045911,000187: 7735 40200 OCT40200 OCT 40200
045912,000188: # OCT 44035 T4RUPT RELTAB +8D
045913,000189: # OCT 50037 T4RUPT RELTAB +9D
045914,000190: # OCT 54000 T4RUPT RELTAB +10D
045915,000191: 7736 57777 -BIT14 OCT 57777
045916,000192: # RELTAB11 OCT 60000 T4RUPT
045917,000193: 7737 65552 C3/2 DEC -.3216147 # (OCTAL 65552)
045918,000194: 7740 70000 13,14,15 OCT 70000
045919,000195: 7741 73777 -1/8 OCT 73777
045920,000196: 7742 74000 HIGH4 OCT 74000
045921,000197: 7743 74056 -ENDERAS DEC -2001 B-14 # (OCTAL 74056)
045922,000198: # HI5 OCT 76000 PINBALL
045923,000199: 7744 77700 HIGH9 OCT 77700
045924,000200: # -ENDVAC DEC -45 INTERPRETER (OCTAL 77722)
045925,000201: # -OCT10 OCT -10 (OCT 77767)
045926,000202: # NEG4 DEC -4 (OCTAL 77773)
045927,000203: 7745 77774 NEG3 DEC -3 B-14
045928,000204: 7746 77775 NEG2 OCT 77775
045929,000205: 7747 77776 NEGONE DEC -1 B-14
045930,000206:
|
Page 1099 |
045932,000208:
045933,000209: # DEFINED BY EQUALS
045934,000210:
045935,000211: # IT WOULD BE TO THE USERS ADVANTAGE TO OCCASIONALLY CHECK ANY OF THESE SYMBOLS IN ORDER TO PREVENT ANY
045936,000212: # ACCIDENTAL DEFINITION CHANGES.
045937,000213:
045938,000214: 7750 7747 MINUS1 = NEG1
045939,000215: 7750 7747 NEG1 = NEGONE
045940,000216: 7750 4753 ONE = BIT1
045941,000217: 7750 4752 TWO = BIT2
045942,000218: 7750 6245 THREE = OCTAL3
045943,000219: 7750 6245 LOW2 = THREE
045944,000220: 7750 4751 FOUR = BIT3
045945,000221: 7750 6242 SIX = REVCNT
045946,000222: 7750 4757 LOW3 = SEVEN
045947,000223: 7750 4750 EIGHT = BIT4
045948,000224: 7750 4320 NINE = R2D1
045949,000225: 7750 4363 TEN = BINCON
045950,000226: 7750 4760 NOUTCON = ELEVEN
045951,000227: 7750 4360 OCT23 = VD1
045952,000228: 7750 4362 OCT25 = MD1
045953,000229: 7750 4742 PRIO1 = BIT10
045954,000230: 7750 5007 EBANK3 = OCT1400
045955,000231: 7750 4741 PRIO2 = BIT11
045956,000232: 7750 4775 OCT120 = SUPER101
045957,000233: 7750 4776 OCT140 = SUPER110
045958,000234: 7750 4741 2K = BIT11
045959,000235: 7750 4741 EBANK4 = BIT11
045960,000236: 7750 4740 PRIO4 = BIT12
045961,000237: 7750 5015 EBANK6 = PRIO3
045962,000238: 7750 4737 QUARTER = BIT13
045963,000239: 7750 4737 PRIO10 = BIT13
045964,000240: 7750 7663 OCT10001 = CCSL
045965,000241: 7750 4736 POS1/2 = HALF
045966,000242: 7750 4736 PRIO20 = BIT14
045967,000243: 7750 4736 HALF = BIT14
045968,000244: 7750 4355 PRIO30 = CHRPRIO
045969,000245: 7750 4355 BIT13-14 = PRIO30 # INTERPRETER USES IN PROCESSING STORECODE
045970,000246: 7750 6471 OCT30002 = TLOAD +1
045971,000247: 7750 7722 B12T14 = PRIO34
045972,000248: 7750 4735 NEGMAX = BIT15
045973,000249: 7750 4735 VLOADCOD = BIT15
045974,000250: 7750 6107 VLOAD* = OCT40001
045975,000251: 7750 4101 OCT60000 = RELTAB11
045976,000252: 7750 4350 BANKMASK = HI5
045977,000253:
End of include-file FIXED-FIXED_CONSTANT_POOL.agc. Parent file is MAIN.agc