Source Code
This is a reconstructed version of Luminary 130, the initial AGC program released
in November 1969 for the Apollo 13 LM. Three more releases
followed before the flown revision was finally manufactured in February 1970.
This reconstruction was created from a previous transcription of the original listing of Luminary 131, combined with Luminary memo #129 which describes the small difference between the Luminary 130 and 131. The reconstructed source code was verified by matching memory-bank checksums to those listed for Luminary 130 in drawing 2021152G. In this source code, program comments from the original (Luminary 131) code are prefixed with '#', while those added later by the Virtual AGC project are prefixed with '##'. |
009839,000002: ## Copyright: Public domain.
009840,000003: ## Filename: RESTART_TABLES.agc
009841,000004: ## Purpose: A section of the reconstructed source code for Luminary 130.
009842,000005: ## This was the original program released for the Apollo 13 LM,
009843,000006: ## although several more revisions would follow. It has been
009844,000007: ## reconstructed from a listing of Luminary 131, from which it
009845,000008: ## differs on only two lines in P70-P71. The difference is
009846,000009: ## described in detail in Luminary memo #129, which was used
009847,000010: ## to perform the reconstruction. This file is intended to be a
009848,000011: ## faithful reconstruction, except that the code format has been
009849,000012: ## changed to conform to the requirements of the yaYUL assembler
009850,000013: ## rather than the original YUL assembler.
009851,000014: ## Reference: pp. 239-244
009852,000015: ## Contact: Ron Burkey <info@sandroid.org>.
009853,000016: ## Website: www.ibiblio.org/apollo/index.html
009854,000017: ## Mod history: 05/06/03 RSB. Began transcribing.
009855,000018: ## 05/14/05 RSB Corrected website references above.
009856,000019: ## 2017-01-06 RSB Page numbers now agree with those on the
009857,000020: ## original harcopy, as opposed to the PDF page
009858,000021: ## numbers in 1701.pdf.
009859,000022: ## 2017-02-08 RSB Comment-text fixes identified while proofing Artemis 72.
009860,000023: ## 2017-02-20 RSB Proofed comment text using octopus/ProoferComments.
009861,000024: ## 2017-03-01 RSB Restored a period which was present in both Luminary 116
009862,000025: ## and 210, and was therefore presumably missing due to a
009863,000026: ## printer problem.
009864,000027: ## 2017-03-13 RSB GOP00FIX -> GOPOOFIX.
009865,000028: ## 2018-09-04 MAS Copied from Luminary 131 for Luminary 130.
009866,000029:
Page 239 |
009868,000031: # RESTART TABLES
009869,000032: # ------------------
009870,000033:
009871,000034: # THERE ARE TWO FORMS OF RESTART TABLES FOR EACH GROUP. THEY ARE KNOWN AS THE EVEN RESTART TABLES AND THE ODD
009872,000035: # RESTART TABLES. THE ODD TABLES HAVE ONLY ONE ENTRY OF THREE LOCATIONS WHILE THE EVEN TABLES HAVE TWO ENTRIES
009873,000036: # EACH USING THREE LOCATIONS. THE INFORMATION AS TO WHETHER IT IS A JOB, WAITLIST, OR A LONGCALL IS GIVEN BY THE
009874,000037: # WAY THINGS ARE PUT IN TO THE TABLES.
009875,000038:
009876,000039: # A JOB HAS ITS PRIORITY STORED IN PRDTTAB OF THE CORRECT PHASE SPOT - A POSITIVE PRIORITY INDICATES A
009877,000040: # FINDVAC JOB, A NEGATIVE PRIORITY A NOVAC. THE 2CADR OF THE JOB IS STORED IN THE CADRTAB.
009878,000041: # FOR EXAMPLE,
009879,000042:
009880,000043: # 5.7SPOT OCT 23000
009881,000044: # 2CADR SOMEJOB
009882,000045:
In the line below, the printout certainly has no period at the end of the line. However, the corresponding lines in Luminary 116 and 210 have such a period and are otherwise identical. Therefore, this is presumably a printer error, and the period has been restored. |
009886,000049: # A RESTART OF GROUP 5 WITH PHASE SEVEN WOULD THEN CAUSE SOMEJOB TO BE RESTARTED AS A FINDVAC WITH PRIORITY 23.
009887,000050:
009888,000051: # 5.5SPOT OCT -23000
009889,000052: # 2CADR ANYJOB
009890,000053:
009891,000054: # HERE A RESTART OF GROUP 5 WITH PHASE 7 WOULD CAUSE ANYJOB TO BE RESTARTED AS A NOVAC WITH PRIORITY 23.
009892,000055: # A LONGCALL HAS ITS GENADR OF ITS 2CADR STORED NEGATIVELY AND ITS BBCON STORED POSITIVELY. IN ITS PRDTTAB IS
009893,000056: # PLACED THE LOCATION OF A DP REGISTER THAT CONTAINS THE DELTA TIME THAT LONGCALL HAD BEEN ORIGINALLY STARTED
009894,000057: # WITH. EXAMPLE,
009895,000058:
009896,000059: # 3.6SPOT GENADR DELTAT
009897,000060: # -GENADR LONGTASK
009898,000061: # BBCON LONGTASK
009899,000062: # OCT 31000
009900,000063: # 2CADR JOBAGAIN
009901,000064:
009902,000065: # THIS WOULD START UP LONGTASK AT THE APPROPRIATE TIME, OR IMMEDIATELY IF THE TIME HAD ALREADY PASSED. IT SHOULD
009903,000066: # BE NOTED THAT IF DELTAT IS IN A SWITCHED E BANK, THIS INFORMATOIN SHOULD BE IN THE BBCON OF THE 2CADR OF THE
009904,000067: # TASK. FROM ABOVE, WE SEE THAT THE SECOND PART O FTHIS PHASE WOULD BE STARTED AS A JOB WITH A PRIORITY OF 31.
009905,000068:
009906,000069: # WAITLIST CALLS ARE IDENTIFIED BY THE FACT THAT THEIR 2CADR IS STORED NEGATIVELY. IF PRDTTAB OF THE PHASE SPOT
009907,000070: # IS POSITIVE, THEN IT CONTAINS THE DELTA TIME, IF PRDTTAB IS NEGATIVE THEN IT IS THE -GENADR OF AN ERASABLE
009908,000071: # LOCATION CONTAINING THE DELTA TIME, THAT IS, THE TIME IS STORED INDIRECTLY. IT SHOULD BE NOTED AS ABOVE, THAT
009909,000072: # IF THE TIME IS STORED INDIRECTLY, THE BBCON MUST CONTAIN THE NECESSARY E BANK INFORMATION IF APPLICABLE. WITH
009910,000073: # WAITLIST WE HAVE ONE FURTHER OPTION, IF -0 IS STORED IN PRDTTAB, IT WILL CAUSE AN IMMEDIATE RESTART OF THE
009911,000074: # TASK. EXAMPLES,
009912,000075:
009913,000076: # OCT 77777 THIS WILL CAUSE AN IMMEDIATE RESTART
009914,000077: # -2CADR ATASK OF THE TASK :ATASK:
009915,000078: #
009916,000079: # DEC 200 IF THE TIME OF THE 2 SECONDS SINCE DUMMY
009917,000080: # -2CADR DUMMY WAS PUT ON WAITLIST IS UP, IT WILL BEGIN
009918,000081: # IN 10 MS, OTHERWISE IT WILL BEGIN WHEN
009919,000082: # IT NORMALLY WOULD HAVE BEGUN.
Page 240 |
009921,000084: # -GENADR DTIME WHERE DTIME CONTAINS THE DELTA TIME
009922,000085: # -2CADR TASKTASK OTHERWISE THIS IS AS ABOVE
009923,000086:
009924,000087: # ***** NOW THE TABLES THEMSELVES *****
009925,000088:
009926,000089: 01,2002 BANK 01
009927,000090: 01,2000 SETLOC RESTART
009928,000091: 01,2000 BANK
009929,000092:
009930,000093: 01,2002 PRDTTAB EQUALS 12000 # USED TO FIND THE PRIORITY OR DELTATIME
009931,000094: 01,2002 CADRTAB EQUALS 12001 # THIS AND THE NEXT RELATIVE LOC CONTAIN
009932,000095: # RESTART 2CADR
009933,000096:
009934,000097: 01,2002 COUNT* $$/RSTAB # TABLES IN BANK 1.
009935,000098: 01,2002 00010 SIZETAB TC 1.2SPOT -12006
009936,000099: 01,2003 00020 TC 1.3SPOT -12004
009937,000100: 01,2004 00010 TC 2.2SPOT -12006
009938,000101: 01,2005 00026 TC 2.3SPOT -12004
009939,000102: 01,2006 00010 TC 3.2SPOT -12006
009940,000103: 01,2007 00056 TC 3.3SPOT -12004
009941,000104: 01,2010 00062 TC 4.2SPOT -12006
009942,000105: 01,2011 00072 TC 4.3SPOT -12004
009943,000106: 01,2012 00145 TC 5.2SPOT -12006
009944,000107: 01,2013 00163 TC 5.3SPOT -12004
009945,000108: 01,2014 00010 TC 6.2SPOT -12006
009946,000109: 01,2015 00174 TC 6.3SPOT -12004
009947,000110: 01,2016 21000 1.2SPOT OCT 21000 # A DUMMY EXAMPLE TO BE REPLACED AS SOON
009948,000111: 01,2017 0074 EBANK= STATE
009949,000112: 01,2017 05155 04060 2CADR ENDOFJOB # AS THERE IS A LEGITIMATE 1.2SPOT
009950,000113:
009951,000114: 01,2021 00144 DEC 100 B-14
009952,000115: 01,2022 0074 EBANK= STATE
009953,000116: 01,2022 05261 04060 2CADR TASKOVER
009954,000117:
009955,000118: # ANY MORE GROUP 1.EVEN RESTART VALUES SHOULD GO HERE
009956,000119:
009957,000120: 01,2024 76300 1.3SPOT -GENADR SAVET-30
009958,000121: 01,2025 E7,1515 EBANK= DVCNTR
009959,000122: 01,2025 75427 03710 -2CADR ULLGTASK
009960,000123:
009961,000124: 01,2027 32000 1.5SPOT OCT 32000
009962,000125: 01,2030 E7,1654 EBANK= HMEAS
009963,000126: 01,2030 03630 66067 2CADR REREPOS
009964,000127:
009965,000128: # ANY MORE GROUP 1.ODD RESTART VALUES SHOULD GO HERE
009966,000129:
009967,000130: 01,2032 01,2016 2.2SPOT EQUALS 1.2SPOT
009968,000131:
009969,000132: # ANY MORE GROUP 2.EVEN RESTART VALUES SHOULD GO HERE
009970,000133:
009971,000134: 01,2032 02627 2.3SPOT GENADR 600SECS
Page 241 |
009973,000136: 01,2033 75175 -GENADR STATEINT
009974,000137: 01,2034 E3,1554 EBANK= RRECTCSM
009975,000138: 01,2034 26063 BBCON STATEINT
009976,000139:
009977,000140: 01,2035 05000 2.5SPOT OCT 05000
009978,000141: 01,2036 E3,1554 EBANK= RRECTCSM
009979,000142: 01,2036 02611 26063 2CADR STATINT1
009980,000143:
009981,000144: 01,2040 02734 2.7SPOT DEC 1500 B-14
009982,000145: 01,2041 E7,1456 EBANK= LOSCOUNT
009983,000146: 01,2041 75533 27710 -2CADR P20LEMC1
009984,000147:
009985,000148: 01,2043 14000 2.11SPOT OCT 14000
009986,000149: 01,2044 E7,1762 EBANK= P21TIME
009987,000150: 01,2044 02414 50067 2CADR P25LEM1
009988,000151:
009989,000152: 01,2046 10000 2.13SPOT OCT 10000
009990,000153: 01,2047 E7,1456 EBANK= LOSCOUNT
009991,000154: 01,2047 02223 54067 2CADR RELINUS
009992,000155:
009993,000156: 01,2051 26000 2.15SPOT OCT 26000
009994,000157: 01,2052 E7,1456 EBANK= LOSCOUNT
009995,000158: 01,2052 02654 50067 2CADR R22RSTRT
009996,000159:
009997,000160: 01,2054 77777 2.17SPOT OCT 77777
009998,000161: 01,2055 E7,1700 EBANK= VGPREV
009999,000162: 01,2055 75436 03710 -2CADR REDO2.17
010000,000163:
010001,000164: 01,2057 00031 2.21SPOT DEC 25 B-14
010002,000165: 01,2060 E7,1515 EBANK= DVCNTR
010003,000166: 01,2060 75771 35710 -2CADR R10,R11
010004,000167:
010005,000168: # ANY MORE GROUP 2.ODD RESTART VALUES SHOULD GO HERE.
010006,000169:
010007,000170: 01,2062 01,2016 3.2SPOT EQUALS 1.2SPOT
010008,000171:
010009,000172: # ANY MORE GROUP 3.EVEN RESTART VALUES SHOULD GO HERE
010010,000173:
010011,000174: 01,2062 76355 3.3SPOT -GENADR ZOOMTIME
010012,000175: 01,2063 E7,1515 EBANK= DVCNTR
010013,000176: 01,2063 74110 05710 -2CADR ZOOM
010014,000177:
010015,000178: 01,2065 20000 3.5SPOT OCT 20000
010016,000179: 01,2066 E7,1453 EBANK= TTOGO
010017,000180: 01,2066 02540 56067 2CADR S40.13
010018,000181:
010019,000182: # ANY MORE GROUP 3.ODD RESTART VALUES SHOULD GO HERE
010020,000183:
010021,000184: 01,2070 04704 4.2SPOT DEC 2500 B-14
010022,000185: 01,2071 E7,1453 EBANK= TTOGO
Page 242 |
010024,000187: 01,2071 75423 03710 -2CADR TIG-5
010025,000188:
010026,000189: 01,2073 77777 OCT 77777
010027,000190: 01,2074 E7,1453 EBANK= TTOGO
010028,000191: 01,2074 75433 03710 -2CADR REDO4.2
010029,000192:
010030,000193: # ANY MORE GROUP 4.EVEN RESTART VALUES SHOULD GO HERE
010031,000194:
010032,000195: 01,2076 25000 4.3SPOT OCT 25000
010033,000196: 01,2077 E7,1515 EBANK= DVCNTR
010034,000197: 01,2077 03533 64067 2CADR GOABORT
010035,000198:
010036,000199: 01,2101 00062 4.5SPOT DEC 50 B-14
010037,000200: 01,2102 E7,1453 EBANK= TTOGO
010038,000201: 01,2102 75211 03710 -2CADR ULLAGOFF
010039,000202:
010040,000203: 01,2104 00764 4.7SPOT DEC 500 B-14
010041,000204: 01,2105 E7,1515 EBANK= DVCNTR
010042,000205: 01,2105 75370 03710 -2CADR TIG-0
010043,000206:
010044,000207: 01,2107 76260 4.11SPOT -GENADR TGO +1
010045,000208: 01,2110 E7,1515 EBANK= DVCNTR
010046,000209: 01,2110 74231 03710 -2CADR ENGOFTSK
010047,000210:
010048,000211: 01,2112 12000 4.13SPOT OCT 12000
010049,000212: 01,2113 E7,1462 EBANK= TRKMKCNT
010050,000213: 01,2113 03227 74067 2CADR POSTBURN
010051,000214:
010052,000215: 01,2115 00764 4.15SPOT DEC 500 B-14
010053,000216: 01,2116 E7,1453 EBANK= TTOGO
010054,000217: 01,2116 75477 03710 -2CADR TIG-30
010055,000218:
010056,000219: 01,2120 77777 4.17SPOT OCT 77777
010057,000220: 01,2121 E7,1515 EBANK= DVCNTR
010058,000221: 01,2121 75423 03710 -2CADR TIG-5
010059,000222:
010060,000223: 01,2123 13000 4.21SPOT OCT 13000
010061,000224: 01,2124 E5,1730 EBANK= STAR
010062,000225: 01,2124 03012 30065 2CADR R51.1 +1
010063,000226:
010064,000227: 01,2126 77777 4.23SPOT OCT 77777
010065,000228: 01,2127 E7,1515 EBANK= DVCNTR
010066,000229: 01,2127 75345 03710 -2CADR IGNITION
010067,000230:
010068,000231: 01,2131 01477 4.25SPOT GENADR SAVET-30
010069,000232: 01,2132 75535 -GENADR TIG-35
010070,000233: 01,2133 E7,1477 EBANK= SAVET-30
010071,000234: 01,2133 74067 BBCON TIG-35
010072,000235:
Page 243 |
010074,000237: 01,2134 52777 4.27SPOT OCT 52777
010075,000238: 01,2135 E7,1515 EBANK= DVCNTR
010076,000239: 01,2135 02070 42067 2CADR P70A
010077,000240:
010078,000241: 01,2137 52777 4.31SPOT OCT 52777
010079,000242: 01,2140 E7,1515 EBANK= DVCNTR
010080,000243: 01,2140 02073 42067 2CADR P71A
010081,000244:
010082,000245: 01,2142 46777 4.33SPOT OCT 46777
010083,000246: 01,2143 E7,1515 EBANK= DVCNTR
010084,000247: 01,2143 02024 10067 2CADR GOPOOFIX
010085,000248:
010086,000249: 01,2145 46777 4.35SPOT OCT 46777
010087,000250: 01,2146 E7,1515 EBANK= DVCNTR
010088,000251: 01,2146 05655 04067 2CADR GOPOODOO
010089,000252:
010090,000253: 01,2150 52777 4.37SPOT OCT 52777
010091,000254: 01,2151 E7,1455 EBANK= WHICH
010092,000255: 01,2151 02575 74067 2CADR COMFAIL
010093,000256:
010094,000257: # ANY MORE 4.ODD RESTART VALUES SHOULD GO HERE.
010095,000258: 01,2153 22000 5.2SPOT OCT 22000
010096,000259: 01,2154 E7,1515 EBANK= DVCNTR
010097,000260: 01,2154 02463 46067 2CADR NORMLIZE
010098,000261:
010099,000262: 01,2156 00310 DEC 200 B-14
010100,000263: 01,2157 E7,1515 EBANK= DVCNTR
010101,000264: 01,2157 74166 01710 -2CADR REREADAC
010102,000265:
010103,000266: 01,2161 00310 5.4SPOT DEC 200 B-14
010104,000267: 01,2162 E7,1515 EBANK= DVCNTR
010105,000268: 01,2162 74166 01710 -2CADR REREADAC
010106,000269:
010107,000270: 01,2164 20000 OCT 20000
010108,000271: 01,2165 E7,1515 EBANK= DVCNTR
010109,000272: 01,2165 02206 66067 2CADR SERVICER
010110,000273:
010111,000274: # ANY MORE GROUP 5.EVEN RESTART VALUES SHOULD GO HERE
010112,000275:
010113,000276: 01,2167 00310 5.3SPOT DEC 200 B-14
010114,000277: 01,2170 E7,1515 EBANK= DVCNTR
010115,000278: 01,2170 74166 01710 -2CADR REREADAC
010116,000279:
010117,000280: 01,2172 77777 5.5SPOT OCT 77777
010118,000281: 01,2173 E7,1515 EBANK= DVCNTR
010119,000282: 01,2173 74326 01710 -2CADR REDO5.5
010120,000283:
Page 244 |
010122,000285: 01,2175 77777 5.7SPOT OCT 77777
010123,000286: 01,2176 E7,1515 EBANK= DVCNTR
010124,000287: 01,2176 74361 01710 -2CADR BIBIBIAS
010125,000288:
010126,000289: # ANY MORE GROUP 5.ODD RESTART VALUES SHOULD GO HERE
010127,000290:
010128,000291: 01,2200 01,2016 6.2SPOT EQUALS 1.2SPOT
010129,000292: 01,2200 00144 6.3SPOT DEC 100 B-14
010130,000293: 01,2201 E7,1441 EBANK= TIG
010131,000294: 01,2201 75054 03710 -2CADR CLOKTASK
010132,000295:
010133,000296: 01,2203 30000 6.5SPOT OCT 30000 # PROTECT INCREMENTING OF TIME2,TIME1 BY
010134,000297: 01,2204 E3,1706 EBANK= TEPHEM # P27(UPDATE PROGRAM) VIA V70 OR V73.
010135,000298: 01,2204 03557 10063 2CADR TIMEDIDR
010136,000299:
010137,000300: 01,2206 17000 6.7SPOT OCT 17000
010138,000301: 01,2207 E7,1700 EBANK= VGPREV
010139,000302: 01,2207 03354 74067 2CADR REDO6.7
010140,000303:
010141,000304:
End of include-file RESTART_TABLES.agc. Parent file is MAIN.agc