Source Code
This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure! |
009583,000002: ## Copyright: Public domain.
009584,000003: ## Filename: RESTART_TABLES.agc
009585,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
009586,000005: ## It is part of the source code for the Lunar Module's (LM)
009587,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
009588,000007: ## Assembler: yaYUL
009589,000008: ## Contact: Ron Burkey <info@sandroid.org>.
009590,000009: ## Website: www.ibiblio.org/apollo.
009591,000010: ## Pages: 238-243
009592,000011: ## Mod history: 2009-05-10 SN (Sergio Navarro). Started adapting
009593,000012: ## from the Luminary131/ file of the same
009594,000013: ## name, using Luminary099 page images.
009595,000014: ## 2016-12-13 RSB Proofed text comments with octopus/ProoferComments
009596,000015: ## and corrected the errors found. Made some
009597,000016: ## P00 fixes.
009598,000017: ## 2017-02-08 RSB Comment-text fixes identified while proofing Artemis 72.
009599,000018: ## 2017-03-03 RSB Snapshot of Luminary 99 Rev 1.
009600,000019:
Page 238 |
009602,000021: # RESTART TABLES
009603,000022: # ------------------
009604,000023:
009605,000024: # THERE ARE TWO FORMS OF RESTART TABLES FOR EACH GROUP. THEY ARE KNOWN AS THE EVEN RESTART TABLES AND THE ODD
009606,000025: # RESTART TABLES. THE ODD TABLES HAVE ONLY ONE ENTRY OF THREE LOCATIONS WHILE THE EVEN TABLES HAVE TWO ENTRIES
009607,000026: # EACH USING THREE LOCATIONS. THE INFORMATION AS TO WHETHER IT IS A JOB, WAITLIST, OR A LONGCALL IS GIVEN BY THE
009608,000027: # WAY THINGS ARE PUT IN TO THE TABLES.
009609,000028:
009610,000029: # A JOB HAS ITS PRIORITY STORED IN PRDTTAB OF THE CORRECT PHASE SPOT - A POSITIVE PRIORITY INDICATES A
009611,000030: # FINDVAC JOB, A NEGATIVE PRIORITY A NOVAC. THE 2CADR OF THE JOB IS STORED IN THE CADRTAB.
009612,000031: # FOR EXAMPLE,
009613,000032:
009614,000033: # 5.7SPOT OCT 23000
009615,000034: # 2CADR SOMEJOB
009616,000035:
009617,000036: # A RESTART OF GROUP 5 WITH PHASE SEVEN WOULD THEN CAUSE SOMEJOB TO BE RESTARTED AS A FINDVAC WITH PRIORITY 23.
009618,000037:
009619,000038: # 5.5SPOT OCT -23000
009620,000039: # 2CADR ANYJOB
009621,000040:
009622,000041: # HERE A RESTART OF GROUP 5 WITH PHASE 7 WOULD CAUSE ANYJOB TO BE RESTARTED AS A NOVAC WITH PRIORITY 23.
009623,000042: # A LONGCALL HAS ITS GENADR OF ITS 2CADR STORED NEGATIVELY AND ITS BBCON STORED POSITIVELY. IN ITS PRDTTAB IS
009624,000043: # PLACED THE LOCATION OF A DP REGISTER THAT CONTAINS THE DELTA TIME THAT LONGCALL HAD BEEN ORIGINALLY STARTED
009625,000044: # WITH. EXAMPLE,
009626,000045:
009627,000046: # 3.6SPOT GENADR DELTAT
009628,000047: # -GENADR LONGTASK
009629,000048: # BBCON LONGTASK
009630,000049: # OCT 31000
009631,000050: # 2CADR JOBAGAIN
009632,000051:
009633,000052: # THIS WOULD START UP LONGTASK AT THE APPROPRIATE TIME, OR IMMEDIATELY IF THE TIME HAD ALREADY PASSED. IT SHOULD
009634,000053: # BE NOTED THAT IF DELTAT IS IN A SWITCHED E BANK, THIS INFORMATOIN SHOULD BE IN THE BBCON OF THE 2CADR OF THE
009635,000054: # TASK. FROM ABOVE, WE SEE THAT THE SECOND PART OF THIS PHASE WOULD BE STARTED AS A JOB WITH A PRIORITY OF 31.
009636,000055:
009637,000056: # WAITLIST CALLS ARE IDENTIFIED BY THE FACT THAT THEIR 2CADR IS STORED NEGATIVELY. IF PRDTTAB OF THE PHASE SPOT
009638,000057: # IS POSITIVE, THEN IT CONTAINS THE DELTA TIME, IF PRDTTAB IS NEGATIVE THEN IT IS THE -GENADR OF AN ERASABLE
009639,000058: # LOCATION CONTAINING THE DELTA TIME, THAT IS, THE TIME IS STORED INDIRECTLY. IT SHOULD BE NOTED AS ABOVE, THAT
009640,000059: # IF THE TIME IS STORED INDIRECTLY, THE BBCON MUST CONTAIN THE NECESSARY E BANK INFORMATION IF APPLICABLE. WITH
009641,000060: # WAITLIST WE HAVE ONE FURTHER OPTION, IF -0 IS STORED IN PRDTTAB, IT WILL CAUSE AN IMMEDIATE RESTART OF THE
009642,000061: # TASK. EXAMPLES,
009643,000062:
009644,000063: # OCT 77777 THIS WILL CAUSE AN IMMEDIATE RESTART
009645,000064: # -2CADR ATASK OF THE TASK :ATASK:
009646,000065: #
009647,000066: # DEC 200 IF THE TIME OF THE 2 SECONDS SINCE DUMMY
009648,000067: # -2CADR DUMMY WAS PUT ON WAITLIST IS UP, IT WILL BEGIN
009649,000068: # IN 10 MS, OTHERWISE IT WILL BEGIN WHEN
009650,000069: # IT NORMALLY WOULD HAVE BEGUN.
Page 239 |
009652,000071: # -GENADR DTIME WHERE DTIME CONTAINS THE DELTA TIME
009653,000072: # -2CADR TASKTASK OTHERWISE THIS IS AS ABOVE
009654,000073:
009655,000074: # ***** NOW THE TABLES THEMSELVES *****
009656,000075:
009657,000076: 01,2002 BANK 01
009658,000077: 01,2000 SETLOC RESTART
009659,000078: 01,2000 BANK
009660,000079:
009661,000080: 01,2002 PRDTTAB EQUALS 12000 # USED TO FIND THE PRIORITY OR DELTATIME
009662,000081: 01,2002 CADRTAB EQUALS 12001 # THIS AND THE NEXT RELATIVE LOC CONTAIN
009663,000082: # RESTART 2CADR
009664,000083:
009665,000084: 01,2002 COUNT* $$/RSTAB # TABLES IN BANK 1.
009666,000085: 01,2002 00010 SIZETAB TC 1.2SPOT -12006
009667,000086: 01,2003 00020 TC 1.3SPOT -12004
009668,000087: 01,2004 00010 TC 2.2SPOT -12006
009669,000088: 01,2005 00023 TC 2.3SPOT -12004
009670,000089: 01,2006 00010 TC 3.2SPOT -12006
009671,000090: 01,2007 00053 TC 3.3SPOT -12004
009672,000091: 01,2010 00057 TC 4.2SPOT -12006
009673,000092: 01,2011 00067 TC 4.3SPOT -12004
009674,000093: 01,2012 00142 TC 5.2SPOT -12006
009675,000094: 01,2013 00160 TC 5.3SPOT -12004
009676,000095: 01,2014 00010 TC 6.2SPOT -12006
009677,000096: 01,2015 00171 TC 6.3SPOT -12004
009678,000097: 01,2016 21000 1.2SPOT OCT 21000 # A DUMMY EXAMPLE TO BE REPLACED AS SOON
009679,000098: 01,2017 0074 EBANK= STATE
009680,000099: 01,2017 05155 04060 2CADR ENDOFJOB # AS THERE IS A LEGITIMATE 1.2SPOT
009681,000100:
009682,000101: 01,2021 00144 DEC 100 B-14
009683,000102: 01,2022 0074 EBANK= STATE
009684,000103: 01,2022 05261 04060 2CADR TASKOVER
009685,000104:
009686,000105: # ANY MORE GROUP 1.EVEN RESTART VALUES SHOULD GO HERE
009687,000106:
009688,000107: 01,2024 76300 1.3SPOT -GENADR SAVET-30
009689,000108: 01,2025 E7,1515 EBANK= DVCNTR
009690,000109: 01,2025 75431 03710 -2CADR ULLGTASK
009691,000110:
009692,000111: # ANY MORE GROUP 1.ODD RESTART VALUES SHOULD GO HERE
009693,000112:
009694,000113: 01,2027 01,2016 2.2SPOT EQUALS 1.2SPOT
009695,000114:
009696,000115: # ANY MORE GROUP 2.EVEN RESTART VALUES SHOULD GO HERE
009697,000116:
009698,000117: 01,2027 02630 2.3SPOT GENADR 600SECS
009699,000118:
009700,000119: 01,2030 75173 -GENADR STATEINT
009701,000120: 01,2031 E3,1554 EBANK= RRECTCSM
009702,000121: 01,2031 26063 BBCON STATEINT
009703,000122:
Page 240 |
009705,000124: 01,2032 05000 2.5SPOT OCT 05000
009706,000125: 01,2033 E3,1554 EBANK= RRECTCSM
009707,000126: 01,2033 02613 26063 2CADR STATINT1
009708,000127:
009709,000128: 01,2035 02734 2.7SPOT DEC 1500 B-14
009710,000129: 01,2036 E7,1456 EBANK= LOSCOUNT
009711,000130: 01,2036 75533 27710 -2CADR P20LEMC1
009712,000131:
009713,000132: 01,2040 14000 2.11SPOT OCT 14000
009714,000133: 01,2041 E7,1762 EBANK= P21TIME
009715,000134: 01,2041 02416 50067 2CADR P25LEM1
009716,000135:
009717,000136: 01,2043 10000 2.13SPOT OCT 10000
009718,000137: 01,2044 E7,1456 EBANK= LOSCOUNT
009719,000138: 01,2044 02217 54067 2CADR RELINUS
009720,000139:
009721,000140: 01,2046 26000 2.15SPOT OCT 26000
009722,000141: 01,2047 E7,1456 EBANK= LOSCOUNT
009723,000142: 01,2047 02653 50067 2CADR R22RSTRT
009724,000143:
009725,000144: 01,2051 77777 2.17SPOT OCT 77777
009726,000145: 01,2052 E7,1700 EBANK= VGPREV
009727,000146: 01,2052 75440 03710 -2CADR REDO2.17
009728,000147:
009729,000148: 01,2054 00031 2.21SPOT DEC 25 B-14
009730,000149: 01,2055 E7,1515 EBANK= DVCNTR
009731,000150: 01,2055 75771 35710 -2CADR R10,R11
009732,000151:
009733,000152: # ANY MORE GROUP 2.ODD RESTART VALUES SHOULD GO HERE.
009734,000153:
009735,000154: 01,2057 01,2016 3.2SPOT EQUALS 1.2SPOT
009736,000155:
009737,000156: # ANY MORE GROUP 3.EVEN RESTART VALUES SHOULD GO HERE
009738,000157:
009739,000158: 01,2057 76355 3.3SPOT -GENADR ZOOMTIME
009740,000159: 01,2060 E7,1515 EBANK= DVCNTR
009741,000160: 01,2060 75755 41710 -2CADR ZOOM
009742,000161:
009743,000162: 01,2062 20000 3.5SPOT OCT 20000
009744,000163: 01,2063 E7,1453 EBANK= TTOGO
009745,000164: 01,2063 02540 56067 2CADR S40.13
009746,000165:
009747,000166: # ANY MORE GROUP 3.ODD RESTART VALUES SHOULD GO HERE
009748,000167:
009749,000168: 01,2065 04704 4.2SPOT DEC 2500 B-14
009750,000169: 01,2066 E7,1453 EBANK= TTOGO
009751,000170:
009752,000171: 01,2066 75425 03710 -2CADR TIG-5
009753,000172:
009754,000173: 01,2070 77777 OCT 77777
009755,000174: 01,2071 E7,1453 EBANK= TTOGO
Page 241 |
009757,000176: 01,2071 75435 03710 -2CADR REDO4.2
009758,000177:
009759,000178: # ANY MORE GROUP 4.EVEN RESTART VALUES SHOULD GO HERE
009760,000179:
009761,000180: 01,2073 25000 4.3SPOT OCT 25000
009762,000181: 01,2074 E7,1515 EBANK= DVCNTR
009763,000182: 01,2074 03540 64067 2CADR GOABORT
009764,000183:
009765,000184: 01,2076 00062 4.5SPOT DEC 50 B-14
009766,000185: 01,2077 E7,1453 EBANK= TTOGO
009767,000186: 01,2077 75215 03710 -2CADR ULLAGOFF
009768,000187:
009769,000188: 01,2101 00764 4.7SPOT DEC 500 B-14
009770,000189: 01,2102 E7,1515 EBANK= DVCNTR
009771,000190: 01,2102 75374 03710 -2CADR TIG-0
009772,000191:
009773,000192: 01,2104 76260 4.11SPOT -GENADR TGO +1
009774,000193: 01,2105 E7,1515 EBANK= DVCNTR
009775,000194: 01,2105 74235 03710 -2CADR ENGOFTSK
009776,000195:
009777,000196: 01,2107 12000 4.13SPOT OCT 12000
009778,000197: 01,2110 E7,1462 EBANK= TRKMKCNT
009779,000198: 01,2110 03223 74067 2CADR POSTBURN
009780,000199:
009781,000200: 01,2112 00764 4.15SPOT DEC 500 B-14
009782,000201: 01,2113 E7,1453 EBANK= TTOGO
009783,000202: 01,2113 75501 03710 -2CADR TIG-30
009784,000203:
009785,000204: 01,2115 77777 4.17SPOT OCT 77777
009786,000205: 01,2116 E7,1515 EBANK= DVCNTR
009787,000206: 01,2116 75425 03710 -2CADR TIG-5
009788,000207:
009789,000208: 01,2120 13000 4.21SPOT OCT 13000
009790,000209: 01,2121 E5,1730 EBANK= STAR
009791,000210: 01,2121 03020 30065 2CADR R51.1 +1
009792,000211:
009793,000212: 01,2123 77777 4.23SPOT OCT 77777
009794,000213: 01,2124 E7,1515 EBANK= DVCNTR
009795,000214: 01,2124 75351 03710 -2CADR IGNITION
009796,000215:
009797,000216: 01,2126 01477 4.25SPOT GENADR SAVET-30
009798,000217: 01,2127 75537 -GENADR TIG-35
009799,000218: 01,2130 E7,1477 EBANK= SAVET-30
009800,000219: 01,2130 74067 BBCON TIG-35
009801,000220:
009802,000221:
009803,000222: 01,2131 52777 4.27SPOT OCT 52777
009804,000223: 01,2132 E7,1515 EBANK= DVCNTR
009805,000224: 01,2132 02073 42067 2CADR P70A
Page 242 |
009807,000226: 01,2134 52777 4.31SPOT OCT 52777
009808,000227: 01,2135 E7,1515 EBANK= DVCNTR
009809,000228: 01,2135 02076 42067 2CADR P71A
009810,000229:
009811,000230: 01,2137 46777 4.33SPOT OCT 46777
009812,000231: 01,2140 E7,1515 EBANK= DVCNTR
009813,000232: 01,2140 02024 10067 2CADR GOPOOFIX
009814,000233:
009815,000234: 01,2142 46777 4.35SPOT OCT 46777
009816,000235: 01,2143 E7,1515 EBANK= DVCNTR
009817,000236: 01,2143 05665 04067 2CADR GOPOODOO
009818,000237:
009819,000238: 01,2145 52777 4.37SPOT OCT 52777
009820,000239: 01,2146 E7,1455 EBANK= WHICH
009821,000240: 01,2146 02571 74067 2CADR COMFAIL
009822,000241:
009823,000242: # ANY MORE 4.ODD RESTART VALUES SHOULD GO HERE.
009824,000243: 01,2150 22000 5.2SPOT OCT 22000
009825,000244: 01,2151 E7,1515 EBANK= DVCNTR
009826,000245: 01,2151 02461 46067 2CADR NORMLIZE
009827,000246:
009828,000247: 01,2153 00310 DEC 200 B-14
009829,000248: 01,2154 E7,1515 EBANK= DVCNTR
009830,000249: 01,2154 74163 01710 -2CADR REREADAC
009831,000250:
009832,000251: 01,2156 00310 5.4SPOT DEC 200 B-14
009833,000252: 01,2157 E7,1515 EBANK= DVCNTR
009834,000253: 01,2157 74163 01710 -2CADR REREADAC
009835,000254:
009836,000255: 01,2161 20000 OCT 20000
009837,000256: 01,2162 E7,1515 EBANK= DVCNTR
009838,000257: 01,2162 02206 66067 2CADR SERVICER
009839,000258:
009840,000259: # ANY MORE GROUP 5.EVEN RESTART VALUES SHOULD GO HERE
009841,000260:
009842,000261: 01,2164 00310 5.3SPOT DEC 200 B-14
009843,000262: 01,2165 E7,1515 EBANK= DVCNTR
009844,000263: 01,2165 74163 01710 -2CADR REREADAC
009845,000264:
009846,000265: 01,2167 77777 5.5SPOT OCT 77777
009847,000266: 01,2170 E7,1515 EBANK= DVCNTR
009848,000267: 01,2170 74324 01710 -2CADR REDO5.5
009849,000268:
009850,000269: 01,2172 77777 5.7SPOT OCT 77777
009851,000270: 01,2173 E7,1515 EBANK= DVCNTR
Page 243 |
009853,000272: 01,2173 74361 01710 -2CADR BIBIBIAS
009854,000273:
009855,000274: # ANY MORE GROUP 5.ODD RESTART VALUES SHOULD GO HERE
009856,000275:
009857,000276: 01,2175 01,2016 6.2SPOT EQUALS 1.2SPOT
009858,000277: 01,2175 00144 6.3SPOT DEC 100 B-14
009859,000278: 01,2176 E7,1441 EBANK= TIG
009860,000279: 01,2176 75060 03710 -2CADR CLOKTASK
009861,000280:
009862,000281: 01,2200 30000 6.5SPOT OCT 30000 # PROTECT INCREMENTING OF TIME2,TIME1 BY
009863,000282: 01,2201 E3,1706 EBANK= TEPHEM # P27(UPDATE PROGRAM) VIA V70 OR V73.
009864,000283: 01,2201 03601 10063 2CADR TIMEDIDR
009865,000284:
009866,000285: 01,2203 17000 6.7SPOT OCT 17000
009867,000286: 01,2204 E7,1700 EBANK= VGPREV
009868,000287: 01,2204 03350 74067 2CADR REDO6.7
009869,000288:
009870,000289:
End of include-file RESTART_TABLES.agc. Parent file is MAIN.agc