Source Code
These source-code files were from the printout at the MIT Museum, with many thanks
to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing
it to us. The printout was digitally photographed by Paul Fjeld. A team of
volunteers transcribed the source code manually from these images or, where
appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13)
source code to agree with the images from the printout. Note that the page images
presented online are of reduced quality, and that higher-quality images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061 16:27 JULY 14,1969Note that the date is the date of the printout, not the date of the program revision. |
009811,000002: ## Copyright: Public domain.
009812,000003: ## Filename: RESTART_TABLES.agc
009813,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
009814,000005: ## It is part of the source code for the Lunar Module's (LM)
009815,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
009816,000007: ## Assembler: yaYUL
009817,000008: ## Contact: Ron Burkey <info@sandroid.org>.
009818,000009: ## Website: www.ibiblio.org/apollo.
009819,000010: ## Pages: 238-243
009820,000011: ## Mod history: 2009-05-10 SN (Sergio Navarro). Started adapting
009821,000012: ## from the Luminary131/ file of the same
009822,000013: ## name, using Luminary099 page images.
009823,000014: ## 2016-12-13 RSB Proofed text comments with octopus/ProoferComments
009824,000015: ## and corrected the errors found. Made some
009825,000016: ## P00 fixes.
009826,000017: ## 2017-02-08 RSB Comment-text fixes identified while proofing Artemis 72.
009827,000018: ##
009828,000019: ## This source code has been transcribed or otherwise adapted from
009829,000020: ## digitized images of a hardcopy from the MIT Museum. The digitization
009830,000021: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
009831,000022: ## the Museum. Many thanks to both. The images (with suitable reduction
009832,000023: ## in storage size and consequent reduction in image quality as well) are
009833,000024: ## available online at www.ibiblio.org/apollo. If for some reason you
009834,000025: ## find that the images are illegible, contact me at info@sandroid.org
009835,000026: ## about getting access to the (much) higher-quality images which Paul
009836,000027: ## actually created.
009837,000028: ##
009838,000029: ## Notations on the hardcopy document read, in part:
009839,000030: ##
009840,000031: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
009841,000032: ## 16:27 JULY 14, 1969
009842,000033:
Page 238 |
009844,000035: # RESTART TABLES
009845,000036: # ------------------
009846,000037:
009847,000038: # THERE ARE TWO FORMS OF RESTART TABLES FOR EACH GROUP. THEY ARE KNOWN AS THE EVEN RESTART TABLES AND THE ODD
009848,000039: # RESTART TABLES. THE ODD TABLES HAVE ONLY ONE ENTRY OF THREE LOCATIONS WHILE THE EVEN TABLES HAVE TWO ENTRIES
009849,000040: # EACH USING THREE LOCATIONS. THE INFORMATION AS TO WHETHER IT IS A JOB, WAITLIST, OR A LONGCALL IS GIVEN BY THE
009850,000041: # WAY THINGS ARE PUT IN TO THE TABLES.
009851,000042:
009852,000043: # A JOB HAS ITS PRIORITY STORED IN PRDTTAB OF THE CORRECT PHASE SPOT - A POSITIVE PRIORITY INDICATES A
009853,000044: # FINDVAC JOB, A NEGATIVE PRIORITY A NOVAC. THE 2CADR OF THE JOB IS STORED IN THE CADRTAB.
009854,000045: # FOR EXAMPLE,
009855,000046:
009856,000047: # 5.7SPOT OCT 23000
009857,000048: # 2CADR SOMEJOB
009858,000049:
009859,000050: # A RESTART OF GROUP 5 WITH PHASE SEVEN WOULD THEN CAUSE SOMEJOB TO BE RESTARTED AS A FINDVAC WITH PRIORITY 23.
009860,000051:
009861,000052: # 5.5SPOT OCT -23000
009862,000053: # 2CADR ANYJOB
009863,000054:
009864,000055: # HERE A RESTART OF GROUP 5 WITH PHASE 7 WOULD CAUSE ANYJOB TO BE RESTARTED AS A NOVAC WITH PRIORITY 23.
009865,000056: # A LONGCALL HAS ITS GENADR OF ITS 2CADR STORED NEGATIVELY AND ITS BBCON STORED POSITIVELY. IN ITS PRDTTAB IS
009866,000057: # PLACED THE LOCATION OF A DP REGISTER THAT CONTAINS THE DELTA TIME THAT LONGCALL HAD BEEN ORIGINALLY STARTED
009867,000058: # WITH. EXAMPLE,
009868,000059:
009869,000060: # 3.6SPOT GENADR DELTAT
009870,000061: # -GENADR LONGTASK
009871,000062: # BBCON LONGTASK
009872,000063: # OCT 31000
009873,000064: # 2CADR JOBAGAIN
009874,000065:
009875,000066: # THIS WOULD START UP LONGTASK AT THE APPROPRIATE TIME, OR IMMEDIATELY IF THE TIME HAD ALREADY PASSED. IT SHOULD
009876,000067: # BE NOTED THAT IF DELTAT IS IN A SWITCHED E BANK, THIS INFORMATOIN SHOULD BE IN THE BBCON OF THE 2CADR OF THE
009877,000068: # TASK. FROM ABOVE, WE SEE THAT THE SECOND PART OF THIS PHASE WOULD BE STARTED AS A JOB WITH A PRIORITY OF 31.
009878,000069:
009879,000070: # WAITLIST CALLS ARE IDENTIFIED BY THE FACT THAT THEIR 2CADR IS STORED NEGATIVELY. IF PRDTTAB OF THE PHASE SPOT
009880,000071: # IS POSITIVE, THEN IT CONTAINS THE DELTA TIME, IF PRDTTAB IS NEGATIVE THEN IT IS THE -GENADR OF AN ERASABLE
009881,000072: # LOCATION CONTAINING THE DELTA TIME, THAT IS, THE TIME IS STORED INDIRECTLY. IT SHOULD BE NOTED AS ABOVE, THAT
009882,000073: # IF THE TIME IS STORED INDIRECTLY, THE BBCON MUST CONTAIN THE NECESSARY E BANK INFORMATION IF APPLICABLE. WITH
009883,000074: # WAITLIST WE HAVE ONE FURTHER OPTION, IF -0 IS STORED IN PRDTTAB, IT WILL CAUSE AN IMMEDIATE RESTART OF THE
009884,000075: # TASK. EXAMPLES,
009885,000076:
009886,000077: # OCT 77777 THIS WILL CAUSE AN IMMEDIATE RESTART
009887,000078: # -2CADR ATASK OF THE TASK :ATASK:
009888,000079: #
009889,000080: # DEC 200 IF THE TIME OF THE 2 SECONDS SINCE DUMMY
009890,000081: # -2CADR DUMMY WAS PUT ON WAITLIST IS UP, IT WILL BEGIN
009891,000082: # IN 10 MS, OTHERWISE IT WILL BEGIN WHEN
009892,000083: # IT NORMALLY WOULD HAVE BEGUN.
Page 239 |
009894,000085: # -GENADR DTIME WHERE DTIME CONTAINS THE DELTA TIME
009895,000086: # -2CADR TASKTASK OTHERWISE THIS IS AS ABOVE
009896,000087:
009897,000088: # ***** NOW THE TABLES THEMSELVES *****
009898,000089:
009899,000090: 01,2002 BANK 01
009900,000091: 01,2000 SETLOC RESTART
009901,000092: 01,2000 BANK
009902,000093:
009903,000094: 01,2002 PRDTTAB EQUALS 12000 # USED TO FIND THE PRIORITY OR DELTATIME
009904,000095: 01,2002 CADRTAB EQUALS 12001 # THIS AND THE NEXT RELATIVE LOC CONTAIN
009905,000096: # RESTART 2CADR
009906,000097:
009907,000098: 01,2002 COUNT* $$/RSTAB # TABLES IN BANK 1.
009908,000099: 01,2002 00010 SIZETAB TC 1.2SPOT -12006
009909,000100: 01,2003 00020 TC 1.3SPOT -12004
009910,000101: 01,2004 00010 TC 2.2SPOT -12006
009911,000102: 01,2005 00023 TC 2.3SPOT -12004
009912,000103: 01,2006 00010 TC 3.2SPOT -12006
009913,000104: 01,2007 00053 TC 3.3SPOT -12004
009914,000105: 01,2010 00057 TC 4.2SPOT -12006
009915,000106: 01,2011 00067 TC 4.3SPOT -12004
009916,000107: 01,2012 00142 TC 5.2SPOT -12006
009917,000108: 01,2013 00160 TC 5.3SPOT -12004
009918,000109: 01,2014 00010 TC 6.2SPOT -12006
009919,000110: 01,2015 00171 TC 6.3SPOT -12004
009920,000111: 01,2016 21000 1.2SPOT OCT 21000 # A DUMMY EXAMPLE TO BE REPLACED AS SOON
009921,000112: 01,2017 0074 EBANK= STATE
009922,000113: 01,2017 05155 04060 2CADR ENDOFJOB # AS THERE IS A LEGITIMATE 1.2SPOT
009923,000114:
009924,000115: 01,2021 00144 DEC 100 B-14
009925,000116: 01,2022 0074 EBANK= STATE
009926,000117: 01,2022 05261 04060 2CADR TASKOVER
009927,000118:
009928,000119: # ANY MORE GROUP 1.EVEN RESTART VALUES SHOULD GO HERE
009929,000120:
009930,000121: 01,2024 76300 1.3SPOT -GENADR SAVET-30
009931,000122: 01,2025 E7,1515 EBANK= DVCNTR
009932,000123: 01,2025 75431 03710 -2CADR ULLGTASK
009933,000124:
009934,000125: # ANY MORE GROUP 1.ODD RESTART VALUES SHOULD GO HERE
009935,000126:
009936,000127: 01,2027 01,2016 2.2SPOT EQUALS 1.2SPOT
009937,000128:
009938,000129: # ANY MORE GROUP 2.EVEN RESTART VALUES SHOULD GO HERE
009939,000130:
009940,000131: 01,2027 02630 2.3SPOT GENADR 600SECS
009941,000132:
009942,000133: 01,2030 75173 -GENADR STATEINT
009943,000134: 01,2031 E3,1554 EBANK= RRECTCSM
009944,000135: 01,2031 26063 BBCON STATEINT
009945,000136:
Page 240 |
009947,000138: 01,2032 05000 2.5SPOT OCT 05000
009948,000139: 01,2033 E3,1554 EBANK= RRECTCSM
009949,000140: 01,2033 02613 26063 2CADR STATINT1
009950,000141:
009951,000142: 01,2035 02734 2.7SPOT DEC 1500 B-14
009952,000143: 01,2036 E7,1456 EBANK= LOSCOUNT
009953,000144: 01,2036 75533 27710 -2CADR P20LEMC1
009954,000145:
009955,000146: 01,2040 14000 2.11SPOT OCT 14000
009956,000147: 01,2041 E7,1762 EBANK= P21TIME
009957,000148: 01,2041 02416 50067 2CADR P25LEM1
009958,000149:
009959,000150: 01,2043 10000 2.13SPOT OCT 10000
009960,000151: 01,2044 E7,1456 EBANK= LOSCOUNT
009961,000152: 01,2044 02217 54067 2CADR RELINUS
009962,000153:
009963,000154: 01,2046 26000 2.15SPOT OCT 26000
009964,000155: 01,2047 E7,1456 EBANK= LOSCOUNT
009965,000156: 01,2047 02653 50067 2CADR R22RSTRT
009966,000157:
009967,000158: 01,2051 77777 2.17SPOT OCT 77777
009968,000159: 01,2052 E7,1700 EBANK= VGPREV
009969,000160: 01,2052 75440 03710 -2CADR REDO2.17
009970,000161:
009971,000162: 01,2054 00031 2.21SPOT DEC 25 B-14
009972,000163: 01,2055 E7,1515 EBANK= DVCNTR
009973,000164: 01,2055 75771 35710 -2CADR R10,R11
009974,000165:
009975,000166: # ANY MORE GROUP 2.ODD RESTART VALUES SHOULD GO HERE.
009976,000167:
009977,000168: 01,2057 01,2016 3.2SPOT EQUALS 1.2SPOT
009978,000169:
009979,000170: # ANY MORE GROUP 3.EVEN RESTART VALUES SHOULD GO HERE
009980,000171:
009981,000172: 01,2057 76355 3.3SPOT -GENADR ZOOMTIME
009982,000173: 01,2060 E7,1515 EBANK= DVCNTR
009983,000174: 01,2060 75755 41710 -2CADR ZOOM
009984,000175:
009985,000176: 01,2062 20000 3.5SPOT OCT 20000
009986,000177: 01,2063 E7,1453 EBANK= TTOGO
009987,000178: 01,2063 02540 56067 2CADR S40.13
009988,000179:
009989,000180: # ANY MORE GROUP 3.ODD RESTART VALUES SHOULD GO HERE
009990,000181:
009991,000182: 01,2065 04704 4.2SPOT DEC 2500 B-14
009992,000183: 01,2066 E7,1453 EBANK= TTOGO
009993,000184:
009994,000185: 01,2066 75425 03710 -2CADR TIG-5
009995,000186:
009996,000187: 01,2070 77777 OCT 77777
009997,000188: 01,2071 E7,1453 EBANK= TTOGO
Page 241 |
009999,000190: 01,2071 75435 03710 -2CADR REDO4.2
010000,000191:
010001,000192: # ANY MORE GROUP 4.EVEN RESTART VALUES SHOULD GO HERE
010002,000193:
010003,000194: 01,2073 25000 4.3SPOT OCT 25000
010004,000195: 01,2074 E7,1515 EBANK= DVCNTR
010005,000196: 01,2074 03540 64067 2CADR GOABORT
010006,000197:
010007,000198: 01,2076 00062 4.5SPOT DEC 50 B-14
010008,000199: 01,2077 E7,1453 EBANK= TTOGO
010009,000200: 01,2077 75215 03710 -2CADR ULLAGOFF
010010,000201:
010011,000202: 01,2101 00764 4.7SPOT DEC 500 B-14
010012,000203: 01,2102 E7,1515 EBANK= DVCNTR
010013,000204: 01,2102 75374 03710 -2CADR TIG-0
010014,000205:
010015,000206: 01,2104 76260 4.11SPOT -GENADR TGO +1
010016,000207: 01,2105 E7,1515 EBANK= DVCNTR
010017,000208: 01,2105 74235 03710 -2CADR ENGOFTSK
010018,000209:
010019,000210: 01,2107 12000 4.13SPOT OCT 12000
010020,000211: 01,2110 E7,1462 EBANK= TRKMKCNT
010021,000212: 01,2110 03223 74067 2CADR POSTBURN
010022,000213:
010023,000214: 01,2112 00764 4.15SPOT DEC 500 B-14
010024,000215: 01,2113 E7,1453 EBANK= TTOGO
010025,000216: 01,2113 75501 03710 -2CADR TIG-30
010026,000217:
010027,000218: 01,2115 77777 4.17SPOT OCT 77777
010028,000219: 01,2116 E7,1515 EBANK= DVCNTR
010029,000220: 01,2116 75425 03710 -2CADR TIG-5
010030,000221:
010031,000222: 01,2120 13000 4.21SPOT OCT 13000
010032,000223: 01,2121 E5,1730 EBANK= STAR
010033,000224: 01,2121 03020 30065 2CADR R51.1 +1
010034,000225:
010035,000226: 01,2123 77777 4.23SPOT OCT 77777
010036,000227: 01,2124 E7,1515 EBANK= DVCNTR
010037,000228: 01,2124 75351 03710 -2CADR IGNITION
010038,000229:
010039,000230: 01,2126 01477 4.25SPOT GENADR SAVET-30
010040,000231: 01,2127 75537 -GENADR TIG-35
010041,000232: 01,2130 E7,1477 EBANK= SAVET-30
010042,000233: 01,2130 74067 BBCON TIG-35
010043,000234:
010044,000235:
010045,000236: 01,2131 52777 4.27SPOT OCT 52777
010046,000237: 01,2132 E7,1515 EBANK= DVCNTR
010047,000238: 01,2132 02073 42067 2CADR P70A
Page 242 |
010049,000240: 01,2134 52777 4.31SPOT OCT 52777
010050,000241: 01,2135 E7,1515 EBANK= DVCNTR
010051,000242: 01,2135 02076 42067 2CADR P71A
010052,000243:
010053,000244: 01,2137 46777 4.33SPOT OCT 46777
010054,000245: 01,2140 E7,1515 EBANK= DVCNTR
010055,000246: 01,2140 02024 10067 2CADR GOPOOFIX
010056,000247:
010057,000248: 01,2142 46777 4.35SPOT OCT 46777
010058,000249: 01,2143 E7,1515 EBANK= DVCNTR
010059,000250: 01,2143 05665 04067 2CADR GOPOODOO
010060,000251:
010061,000252: 01,2145 52777 4.37SPOT OCT 52777
010062,000253: 01,2146 E7,1455 EBANK= WHICH
010063,000254: 01,2146 02571 74067 2CADR COMFAIL
010064,000255:
010065,000256: # ANY MORE 4.ODD RESTART VALUES SHOULD GO HERE.
010066,000257: 01,2150 22000 5.2SPOT OCT 22000
010067,000258: 01,2151 E7,1515 EBANK= DVCNTR
010068,000259: 01,2151 02461 46067 2CADR NORMLIZE
010069,000260:
010070,000261: 01,2153 00310 DEC 200 B-14
010071,000262: 01,2154 E7,1515 EBANK= DVCNTR
010072,000263: 01,2154 74163 01710 -2CADR REREADAC
010073,000264:
010074,000265: 01,2156 00310 5.4SPOT DEC 200 B-14
010075,000266: 01,2157 E7,1515 EBANK= DVCNTR
010076,000267: 01,2157 74163 01710 -2CADR REREADAC
010077,000268:
010078,000269: 01,2161 20000 OCT 20000
010079,000270: 01,2162 E7,1515 EBANK= DVCNTR
010080,000271: 01,2162 02206 66067 2CADR SERVICER
010081,000272:
010082,000273: # ANY MORE GROUP 5.EVEN RESTART VALUES SHOULD GO HERE
010083,000274:
010084,000275: 01,2164 00310 5.3SPOT DEC 200 B-14
010085,000276: 01,2165 E7,1515 EBANK= DVCNTR
010086,000277: 01,2165 74163 01710 -2CADR REREADAC
010087,000278:
010088,000279: 01,2167 77777 5.5SPOT OCT 77777
010089,000280: 01,2170 E7,1515 EBANK= DVCNTR
010090,000281: 01,2170 74324 01710 -2CADR REDO5.5
010091,000282:
010092,000283: 01,2172 77777 5.7SPOT OCT 77777
010093,000284: 01,2173 E7,1515 EBANK= DVCNTR
Page 243 |
010095,000286: 01,2173 74361 01710 -2CADR BIBIBIAS
010096,000287:
010097,000288: # ANY MORE GROUP 5.ODD RESTART VALUES SHOULD GO HERE
010098,000289:
010099,000290: 01,2175 01,2016 6.2SPOT EQUALS 1.2SPOT
010100,000291: 01,2175 00144 6.3SPOT DEC 100 B-14
010101,000292: 01,2176 E7,1441 EBANK= TIG
010102,000293: 01,2176 75060 03710 -2CADR CLOKTASK
010103,000294:
010104,000295: 01,2200 30000 6.5SPOT OCT 30000 # PROTECT INCREMENTING OF TIME2,TIME1 BY
010105,000296: 01,2201 E3,1706 EBANK= TEPHEM # P27(UPDATE PROGRAM) VIA V70 OR V73.
010106,000297: 01,2201 03601 10063 2CADR TIMEDIDR
010107,000298:
010108,000299: 01,2203 17000 6.7SPOT OCT 17000
010109,000300: 01,2204 E7,1700 EBANK= VGPREV
010110,000301: 01,2204 03350 74067 2CADR REDO6.7
010111,000302:
010112,000303:
End of include-file RESTART_TABLES.agc. Parent file is MAIN.agc