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.

009551,000002:                                                                                                  ## Copyright:   Public domain.
009552,000003:                                                                                                  ## Filename:    RESTART_TABLES.agc
009553,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
009554,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
009555,000006:                                                                                                  ##              development version of the flight software for the Lunar 
009556,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
009557,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
009558,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
009559,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
009560,000011:                                                                                                  ##              Luminary 98 and 99.
009561,000012:                                                                                                  ## Reference:   pp. 238-243
009562,000013:                                                                                                  ## Assembler:   yaYUL
009563,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
009564,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
009565,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
009566,000017: 

Page 238

009568,000019:                                                                                                  #  RESTART TABLES
009569,000020:                                                                                                  #  ------------------
009570,000021: 
009571,000022:                                                                                                  #  THERE ARE TWO FORMS OF RESTART TABLES FOR EACH GROUP.  THEY ARE KNOWN AS THE EVEN RESTART TABLES AND THE ODD
009572,000023:                                                                                                  #  RESTART TABLES.  THE ODD TABLES HAVE ONLY ONE ENTRY OF THREE LOCATIONS WHILE THE EVEN TABLES HAVE TWO ENTRIES
009573,000024:                                                                                                  #  EACH USING THREE LOCATIONS.  THE INFORMATION AS TO WHETHER IT IS A JOB, WAITLIST, OR A LONGCALL IS GIVEN BY THE
009574,000025:                                                                                                  #  WAY THINGS ARE PUT IN TO THE TABLES.
009575,000026: 
009576,000027:                                                                                                  #       A JOB HAS ITS PRIORITY STORED IN PRDTTAB OF THE CORRECT PHASE SPOT - A POSITIVE PRIORITY INDICATES A
009577,000028:                                                                                                  #  FINDVAC JOB, A NEGATIVE PRIORITY A NOVAC.  THE 2CADR OF THE JOB IS STORED IN THE CADRTAB.
009578,000029:                                                                                                  #  FOR EXAMPLE,
009579,000030: 
009580,000031:                                                                                                  #                5.7SPOT         OCT     23000
009581,000032:                                                                                                  #                                2CADR   SOMEJOB
009582,000033: 
009583,000034:                                                                                                  #  A RESTART OF GROUP 5 WITH PHASE SEVEN WOULD THEN CAUSE SOMEJOB TO BE RESTARTED AS A FINDVAC WITH PRIORITY 23.
009584,000035: 
009585,000036:                                                                                                  #                5.5SPOT         OCT     -23000
009586,000037:                                                                                                  #                                2CADR   ANYJOB
009587,000038: 
009588,000039:                                                                                                  #  HERE A RESTART OF GROUP 5 WITH PHASE 7 WOULD CAUSE ANYJOB TO BE RESTARTED AS A NOVAC WITH PRIORITY 23.
009589,000040:                                                                                                  #  A LONGCALL HAS ITS GENADR OF ITS 2CADR STORED NEGATIVELY AND ITS BBCON STORED POSITIVELY.  IN ITS PRDTTAB IS
009590,000041:                                                                                                  #  PLACED THE LOCATION OF A DP REGISTER THAT CONTAINS THE DELTA TIME THAT LONGCALL HAD BEEN ORIGINALLY STARTED
009591,000042:                                                                                                  #  WITH.  EXAMPLE,
009592,000043: 
009593,000044:                                                                                                  #                3.6SPOT         GENADR  DELTAT
009594,000045:                                                                                                  #                                -GENADR LONGTASK
009595,000046:                                                                                                  #                                BBCON   LONGTASK
009596,000047:                                                                                                  #                                OCT     31000
009597,000048:                                                                                                  #                                2CADR   JOBAGAIN
009598,000049: 
009599,000050:                                                                                                  #  THIS WOULD START UP LONGTASK AT THE APPROPRIATE TIME, OR IMMEDIATELY IF THE TIME HAD ALREADY PASSED.  IT SHOULD
009600,000051:                                                                                                  #  BE NOTED THAT IF DELTAT IS IN A SWITCHED E BANK, THIS INFORMATOIN SHOULD BE IN THE BBCON OF THE 2CADR OF THE
009601,000052:                                                                                                  #  TASK.  FROM ABOVE, WE SEE THAT THE SECOND PART OF THIS PHASE WOULD BE STARTED AS A JOB WITH A PRIORITY OF 31.
009602,000053: 
009603,000054:                                                                                                  #  WAITLIST CALLS ARE IDENTIFIED BY THE FACT THAT THEIR 2CADR IS STORED NEGATIVELY.  IF PRDTTAB OF THE PHASE SPOT
009604,000055:                                                                                                  #  IS POSITIVE, THEN IT CONTAINS THE DELTA TIME, IF PRDTTAB IS NEGATIVE THEN IT IS THE -GENADR OF AN ERASABLE
009605,000056:                                                                                                  #  LOCATION CONTAINING THE DELTA TIME, THAT IS, THE TIME IS STORED INDIRECTLY.  IT SHOULD BE NOTED AS ABOVE, THAT
009606,000057:                                                                                                  #  IF THE TIME IS STORED INDIRECTLY, THE BBCON MUST CONTAIN THE NECESSARY E BANK INFORMATION IF APPLICABLE.  WITH
009607,000058:                                                                                                  #  WAITLIST WE HAVE ONE FURTHER OPTION, IF -0 IS STORED IN PRDTTAB, IT WILL CAUSE AN IMMEDIATE RESTART OF THE
009608,000059:                                                                                                  #  TASK.  EXAMPLES,
009609,000060: 
009610,000061:                                                                                                  #                                OCT     77777           THIS WILL CAUSE AN IMMEDIATE RESTART
009611,000062:                                                                                                  #                                -2CADR  ATASK           OF THE TASK :ATASK:
009612,000063:                                                                                                  #        
009613,000064:                                                                                                  #                                DEC     200             IF THE TIME OF THE 2 SECONDS SINCE DUMMY
009614,000065:                                                                                                  #                                -2CADR  DUMMY           WAS PUT ON WAITLIST IS UP, IT WILL BEGIN
009615,000066:                                                                                                  #                                                        IN 10 MS, OTHERWISE IT WILL BEGIN WHEN
009616,000067:                                                                                                  #                                                        IT NORMALLY WOULD HAVE BEGUN.

Page 239

009618,000069:                                                                                                  #                                -GENADR DTIME           WHERE DTIME CONTAINS THE DELTA TIME
009619,000070:                                                                                                  #                                -2CADR  TASKTASK        OTHERWISE THIS IS AS ABOVE
009620,000071: 
009621,000072:                                                                                                  #  ***** NOW THE TABLES THEMSELVES *****
009622,000073: 
009623,000074: 01,2002                                           BANK     01                                    
009624,000075: 01,2000                                           SETLOC   RESTART                               
009625,000076: 01,2000                                           BANK                                           
009626,000077: 
009627,000078: 01,2002                        PRDTTAB            EQUALS   12000                                 #  USED TO FIND THE PRIORITY OR DELTATIME
009628,000079: 01,2002                        CADRTAB            EQUALS   12001                                 #  THIS AND THE NEXT RELATIVE LOC CONTAIN
009629,000080:                                                                                                  #  RESTART 2CADR
009630,000081: 
009631,000082: 01,2002                                           COUNT*   $$/RSTAB                              #  TABLES IN BANK 1.
009632,000083: 01,2002           00010        SIZETAB            TC       1.2SPOT    -12006                     
009633,000084: 01,2003           00020                           TC       1.3SPOT    -12004                     
009634,000085: 01,2004           00010                           TC       2.2SPOT    -12006                     
009635,000086: 01,2005           00023                           TC       2.3SPOT    -12004                     
009636,000087: 01,2006           00010                           TC       3.2SPOT    -12006                     
009637,000088: 01,2007           00053                           TC       3.3SPOT    -12004                     
009638,000089: 01,2010           00057                           TC       4.2SPOT    -12006                     
009639,000090: 01,2011           00067                           TC       4.3SPOT    -12004                     
009640,000091: 01,2012           00142                           TC       5.2SPOT    -12006                     
009641,000092: 01,2013           00160                           TC       5.3SPOT    -12004                     
009642,000093: 01,2014           00010                           TC       6.2SPOT    -12006                     
009643,000094: 01,2015           00171                           TC       6.3SPOT    -12004                     
009644,000095: 01,2016           21000        1.2SPOT            OCT      21000                                 #  A DUMMY EXAMPLE TO BE REPLACED AS SOON
009645,000096: 01,2017     0074                                  EBANK=   STATE                                 
009646,000097: 01,2017           05155 04060                     2CADR    ENDOFJOB                              #  AS THERE IS A LEGITIMATE 1.2SPOT
009647,000098: 
009648,000099: 01,2021           00144                           DEC      100        B-14                       
009649,000100: 01,2022     0074                                  EBANK=   STATE                                 
009650,000101: 01,2022           05261 04060                     2CADR    TASKOVER                              
009651,000102: 
009652,000103:                                                                                                  #  ANY MORE GROUP 1.EVEN RESTART VALUES SHOULD GO HERE
009653,000104: 
009654,000105: 01,2024           76300        1.3SPOT            -GENADR  SAVET-30                              
009655,000106: 01,2025  E7,1515                                  EBANK=   DVCNTR                                
009656,000107: 01,2025           75431 03710                     -2CADR   ULLGTASK                              
009657,000108: 
009658,000109:                                                                                                  #  ANY MORE GROUP 1.ODD RESTART VALUES SHOULD GO HERE
009659,000110: 
009660,000111: 01,2027  01,2016               2.2SPOT            EQUALS   1.2SPOT                               
009661,000112: 
009662,000113:                                                                                                  #  ANY MORE GROUP 2.EVEN RESTART VALUES SHOULD GO HERE
009663,000114: 
009664,000115: 01,2027           02630        2.3SPOT            GENADR   600SECS                               
009665,000116: 
009666,000117: 01,2030           75173                           -GENADR  STATEINT                              
009667,000118: 01,2031  E3,1554                                  EBANK=   RRECTCSM                              
009668,000119: 01,2031           26063                           BBCON    STATEINT                              
009669,000120: 

Page 240

009671,000122: 01,2032           05000        2.5SPOT            OCT      05000                                 
009672,000123: 01,2033  E3,1554                                  EBANK=   RRECTCSM                              
009673,000124: 01,2033           02613 26063                     2CADR    STATINT1                              
009674,000125: 
009675,000126: 01,2035           02734        2.7SPOT            DEC      1500       B-14                       
009676,000127: 01,2036  E7,1456                                  EBANK=   LOSCOUNT                              
009677,000128: 01,2036           75533 27710                     -2CADR   P20LEMC1                              
009678,000129: 
009679,000130: 01,2040           14000        2.11SPOT           OCT      14000                                 
009680,000131: 01,2041  E7,1762                                  EBANK=   P21TIME                               
009681,000132: 01,2041           02416 50067                     2CADR    P25LEM1                               
009682,000133: 
009683,000134: 01,2043           10000        2.13SPOT           OCT      10000                                 
009684,000135: 01,2044  E7,1456                                  EBANK=   LOSCOUNT                              
009685,000136: 01,2044           02217 54067                     2CADR    RELINUS                               
009686,000137: 
009687,000138: 01,2046           26000        2.15SPOT           OCT      26000                                 
009688,000139: 01,2047  E7,1456                                  EBANK=   LOSCOUNT                              
009689,000140: 01,2047           02653 50067                     2CADR    R22RSTRT                              
009690,000141: 
009691,000142: 01,2051           77777        2.17SPOT           OCT      77777                                 
009692,000143: 01,2052  E7,1700                                  EBANK=   VGPREV                                
009693,000144: 01,2052           75440 03710                     -2CADR   REDO2.17                              
009694,000145: 
009695,000146: 01,2054           00031        2.21SPOT           DEC      25         B-14                       
009696,000147: 01,2055  E7,1515                                  EBANK=   DVCNTR                                
009697,000148: 01,2055           75771 35710                     -2CADR   R10,R11                               
009698,000149: 
009699,000150:                                                                                                  #  ANY MORE GROUP 2.ODD RESTART VALUES SHOULD GO HERE.
009700,000151: 
009701,000152: 01,2057  01,2016               3.2SPOT            EQUALS   1.2SPOT                               
009702,000153: 
009703,000154:                                                                                                  #  ANY MORE GROUP 3.EVEN RESTART VALUES SHOULD GO HERE
009704,000155: 
009705,000156: 01,2057           76355        3.3SPOT            -GENADR  ZOOMTIME                              
009706,000157: 01,2060  E7,1515                                  EBANK=   DVCNTR                                
009707,000158: 01,2060           75755 41710                     -2CADR   ZOOM                                  
009708,000159: 
009709,000160: 01,2062           20000        3.5SPOT            OCT      20000                                 
009710,000161: 01,2063  E7,1453                                  EBANK=   TTOGO                                 
009711,000162: 01,2063           02540 56067                     2CADR    S40.13                                
009712,000163: 
009713,000164:                                                                                                  #  ANY MORE GROUP 3.ODD RESTART VALUES SHOULD GO HERE
009714,000165: 
009715,000166: 01,2065           04704        4.2SPOT            DEC      2500       B-14                       
009716,000167: 01,2066  E7,1453                                  EBANK=   TTOGO                                 
009717,000168: 
009718,000169: 01,2066           75425 03710                     -2CADR   TIG-5                                 
009719,000170: 
009720,000171: 01,2070           77777                           OCT      77777                                 
009721,000172: 01,2071  E7,1453                                  EBANK=   TTOGO                                 

Page 241

009723,000174: 01,2071           75435 03710                     -2CADR   REDO4.2                               
009724,000175: 
009725,000176:                                                                                                  #  ANY MORE GROUP 4.EVEN RESTART VALUES SHOULD GO HERE
009726,000177: 
009727,000178: 01,2073           25000        4.3SPOT            OCT      25000                                 
009728,000179: 01,2074  E7,1515                                  EBANK=   DVCNTR                                
009729,000180: 01,2074           03540 64067                     2CADR    GOABORT                               
009730,000181: 
009731,000182: 01,2076           00062        4.5SPOT            DEC      50         B-14                       
009732,000183: 01,2077  E7,1453                                  EBANK=   TTOGO                                 
009733,000184: 01,2077           75215 03710                     -2CADR   ULLAGOFF                              
009734,000185: 
009735,000186: 01,2101           00764        4.7SPOT            DEC      500        B-14                       
009736,000187: 01,2102  E7,1515                                  EBANK=   DVCNTR                                
009737,000188: 01,2102           75374 03710                     -2CADR   TIG-0                                 
009738,000189: 
009739,000190: 01,2104           76260        4.11SPOT           -GENADR  TGO        +1                         
009740,000191: 01,2105  E7,1515                                  EBANK=   DVCNTR                                
009741,000192: 01,2105           74235 03710                     -2CADR   ENGOFTSK                              
009742,000193: 
009743,000194: 01,2107           12000        4.13SPOT           OCT      12000                                 
009744,000195: 01,2110  E7,1462                                  EBANK=   TRKMKCNT                              
009745,000196: 01,2110           03223 74067                     2CADR    POSTBURN                              
009746,000197: 
009747,000198: 01,2112           00764        4.15SPOT           DEC      500        B-14                       
009748,000199: 01,2113  E7,1453                                  EBANK=   TTOGO                                 
009749,000200: 01,2113           75501 03710                     -2CADR   TIG-30                                
009750,000201: 
009751,000202: 01,2115           77777        4.17SPOT           OCT      77777                                 
009752,000203: 01,2116  E7,1515                                  EBANK=   DVCNTR                                
009753,000204: 01,2116           75425 03710                     -2CADR   TIG-5                                 
009754,000205: 
009755,000206: 01,2120           13000        4.21SPOT           OCT      13000                                 
009756,000207: 01,2121  E5,1730                                  EBANK=   STAR                                  
009757,000208: 01,2121           03020 30065                     2CADR    R51.1      +1                         
009758,000209: 
009759,000210: 01,2123           77777        4.23SPOT           OCT      77777                                 
009760,000211: 01,2124  E7,1515                                  EBANK=   DVCNTR                                
009761,000212: 01,2124           75351 03710                     -2CADR   IGNITION                              
009762,000213: 
009763,000214: 01,2126           01477        4.25SPOT           GENADR   SAVET-30                              
009764,000215: 01,2127           75537                           -GENADR  TIG-35                                
009765,000216: 01,2130  E7,1477                                  EBANK=   SAVET-30                              
009766,000217: 01,2130           74067                           BBCON    TIG-35                                
009767,000218: 
009768,000219: 
009769,000220: 01,2131           52777        4.27SPOT           OCT      52777                                 
009770,000221: 01,2132  E7,1515                                  EBANK=   DVCNTR                                
009771,000222: 01,2132           02073 42067                     2CADR    P70A                                  

Page 242

009773,000224: 01,2134           52777        4.31SPOT           OCT      52777                                 
009774,000225: 01,2135  E7,1515                                  EBANK=   DVCNTR                                
009775,000226: 01,2135           02076 42067                     2CADR    P71A                                  
009776,000227: 
009777,000228: 01,2137           46777        4.33SPOT           OCT      46777                                 
009778,000229: 01,2140  E7,1515                                  EBANK=   DVCNTR                                
009779,000230: 01,2140           02024 10067                     2CADR    GOPOOFIX                              
009780,000231: 
009781,000232: 01,2142           46777        4.35SPOT           OCT      46777                                 
009782,000233: 01,2143  E7,1515                                  EBANK=   DVCNTR                                
009783,000234: 01,2143           05665 04067                     2CADR    GOPOODOO                              
009784,000235: 
009785,000236: 01,2145           52777        4.37SPOT           OCT      52777                                 
009786,000237: 01,2146  E7,1455                                  EBANK=   WHICH                                 
009787,000238: 01,2146           02571 74067                     2CADR    COMFAIL                               
009788,000239: 
009789,000240:                                                                                                  #  ANY MORE 4.ODD RESTART VALUES SHOULD GO HERE.
009790,000241: 01,2150           22000        5.2SPOT            OCT      22000                                 
009791,000242: 01,2151  E7,1515                                  EBANK=   DVCNTR                                
009792,000243: 01,2151           02461 46067                     2CADR    NORMLIZE                              
009793,000244: 
009794,000245: 01,2153           00310                           DEC      200        B-14                       
009795,000246: 01,2154  E7,1515                                  EBANK=   DVCNTR                                
009796,000247: 01,2154           74163 01710                     -2CADR   REREADAC                              
009797,000248: 
009798,000249: 01,2156           00310        5.4SPOT            DEC      200        B-14                       
009799,000250: 01,2157  E7,1515                                  EBANK=   DVCNTR                                
009800,000251: 01,2157           74163 01710                     -2CADR   REREADAC                              
009801,000252: 
009802,000253: 01,2161           20000                           OCT      20000                                 
009803,000254: 01,2162  E7,1515                                  EBANK=   DVCNTR                                
009804,000255: 01,2162           02206 66067                     2CADR    SERVICER                              
009805,000256: 
009806,000257:                                                                                                  #  ANY MORE GROUP 5.EVEN RESTART VALUES SHOULD GO HERE
009807,000258: 
009808,000259: 01,2164           00310        5.3SPOT            DEC      200        B-14                       
009809,000260: 01,2165  E7,1515                                  EBANK=   DVCNTR                                
009810,000261: 01,2165           74163 01710                     -2CADR   REREADAC                              
009811,000262: 
009812,000263: 01,2167           77777        5.5SPOT            OCT      77777                                 
009813,000264: 01,2170  E7,1515                                  EBANK=   DVCNTR                                
009814,000265: 01,2170           74324 01710                     -2CADR   REDO5.5                               
009815,000266: 
009816,000267: 01,2172           77777        5.7SPOT            OCT      77777                                 
009817,000268: 01,2173  E7,1515                                  EBANK=   DVCNTR                                

Page 243

009819,000270: 01,2173           74361 01710                     -2CADR   BIBIBIAS                              
009820,000271: 
009821,000272:                                                                                                  #  ANY MORE GROUP 5.ODD RESTART VALUES SHOULD GO HERE
009822,000273: 
009823,000274: 01,2175  01,2016               6.2SPOT            EQUALS   1.2SPOT                               
009824,000275: 01,2175           00144        6.3SPOT            DEC      100        B-14                       
009825,000276: 01,2176  E7,1441                                  EBANK=   TIG                                   
009826,000277: 01,2176           75060 03710                     -2CADR   CLOKTASK                              
009827,000278: 
009828,000279: 01,2200           30000        6.5SPOT            OCT      30000                                 #  PROTECT INCREMENTING OF TIME2,TIME1 BY
009829,000280: 01,2201  E3,1706                                  EBANK=   TEPHEM                                #  P27(UPDATE PROGRAM) VIA V70 OR V73.
009830,000281: 01,2201           03601 10063                     2CADR    TIMEDIDR                              
009831,000282: 
009832,000283: 01,2203           17000        6.7SPOT            OCT      17000                                 
009833,000284: 01,2204  E7,1700                                  EBANK=   VGPREV                                
009834,000285: 01,2204           03350 74067                     2CADR    REDO6.7                               
009835,000286: 
009836,000287: 

End of include-file RESTART_TABLES.agc.  Parent file is MAIN.agc