Source Code

These source-code files are part of a reconstructed copy of Luminary 96, the original release of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. 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 96 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.

009579,000002:                                                                                                  ## Copyright:   Public domain.
009580,000003:                                                                                                  ## Filename:    RESTART_TABLES.agc
009581,000004:                                                                                                  ## Purpose:     A section of Luminary revision 96.
009582,000005:                                                                                                  ##              It is part of the reconstructed source code for the
009583,000006:                                                                                                  ##              original release of the flight software for the Lunar 
009584,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
009585,000008:                                                                                                  ##              The code has been recreated from a previously reconstructed
009586,000009:                                                                                                  ##              copy of Luminary 97 by undoing changes described in anomaly
009587,000010:                                                                                                  ##              report LNY-59. The code has been adapted such that the
009588,000011:                                                                                                  ##              resulting bugger words exactly match those specified for
009589,000012:                                                                                                  ##              Luminary 96 in NASA drawing 2021152D, which gives relatively
009590,000013:                                                                                                  ##              high confidence that the reconstruction is correct.
009591,000014:                                                                                                  ## Reference:   pp. 238-243
009592,000015:                                                                                                  ## Assembler:   yaYUL
009593,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
009594,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
009595,000018:                                                                                                  ## Mod history: 2019-08-04 MAS  Created from Luminary 97.
009596,000019: 

Page 238

009598,000021:                                                                                                  #  RESTART TABLES
009599,000022:                                                                                                  #  ------------------
009600,000023: 
009601,000024:                                                                                                  #  THERE ARE TWO FORMS OF RESTART TABLES FOR EACH GROUP.  THEY ARE KNOWN AS THE EVEN RESTART TABLES AND THE ODD
009602,000025:                                                                                                  #  RESTART TABLES.  THE ODD TABLES HAVE ONLY ONE ENTRY OF THREE LOCATIONS WHILE THE EVEN TABLES HAVE TWO ENTRIES
009603,000026:                                                                                                  #  EACH USING THREE LOCATIONS.  THE INFORMATION AS TO WHETHER IT IS A JOB, WAITLIST, OR A LONGCALL IS GIVEN BY THE
009604,000027:                                                                                                  #  WAY THINGS ARE PUT IN TO THE TABLES.
009605,000028: 
009606,000029:                                                                                                  #       A JOB HAS ITS PRIORITY STORED IN PRDTTAB OF THE CORRECT PHASE SPOT - A POSITIVE PRIORITY INDICATES A
009607,000030:                                                                                                  #  FINDVAC JOB, A NEGATIVE PRIORITY A NOVAC.  THE 2CADR OF THE JOB IS STORED IN THE CADRTAB.
009608,000031:                                                                                                  #  FOR EXAMPLE,
009609,000032: 
009610,000033:                                                                                                  #                5.7SPOT         OCT     23000
009611,000034:                                                                                                  #                                2CADR   SOMEJOB
009612,000035: 
009613,000036:                                                                                                  #  A RESTART OF GROUP 5 WITH PHASE SEVEN WOULD THEN CAUSE SOMEJOB TO BE RESTARTED AS A FINDVAC WITH PRIORITY 23.
009614,000037: 
009615,000038:                                                                                                  #                5.5SPOT         OCT     -23000
009616,000039:                                                                                                  #                                2CADR   ANYJOB
009617,000040: 
009618,000041:                                                                                                  #  HERE A RESTART OF GROUP 5 WITH PHASE 7 WOULD CAUSE ANYJOB TO BE RESTARTED AS A NOVAC WITH PRIORITY 23.
009619,000042:                                                                                                  #  A LONGCALL HAS ITS GENADR OF ITS 2CADR STORED NEGATIVELY AND ITS BBCON STORED POSITIVELY.  IN ITS PRDTTAB IS
009620,000043:                                                                                                  #  PLACED THE LOCATION OF A DP REGISTER THAT CONTAINS THE DELTA TIME THAT LONGCALL HAD BEEN ORIGINALLY STARTED
009621,000044:                                                                                                  #  WITH.  EXAMPLE,
009622,000045: 
009623,000046:                                                                                                  #                3.6SPOT         GENADR  DELTAT
009624,000047:                                                                                                  #                                -GENADR LONGTASK
009625,000048:                                                                                                  #                                BBCON   LONGTASK
009626,000049:                                                                                                  #                                OCT     31000
009627,000050:                                                                                                  #                                2CADR   JOBAGAIN
009628,000051: 
009629,000052:                                                                                                  #  THIS WOULD START UP LONGTASK AT THE APPROPRIATE TIME, OR IMMEDIATELY IF THE TIME HAD ALREADY PASSED.  IT SHOULD
009630,000053:                                                                                                  #  BE NOTED THAT IF DELTAT IS IN A SWITCHED E BANK, THIS INFORMATOIN SHOULD BE IN THE BBCON OF THE 2CADR OF THE
009631,000054:                                                                                                  #  TASK.  FROM ABOVE, WE SEE THAT THE SECOND PART OF THIS PHASE WOULD BE STARTED AS A JOB WITH A PRIORITY OF 31.
009632,000055: 
009633,000056:                                                                                                  #  WAITLIST CALLS ARE IDENTIFIED BY THE FACT THAT THEIR 2CADR IS STORED NEGATIVELY.  IF PRDTTAB OF THE PHASE SPOT
009634,000057:                                                                                                  #  IS POSITIVE, THEN IT CONTAINS THE DELTA TIME, IF PRDTTAB IS NEGATIVE THEN IT IS THE -GENADR OF AN ERASABLE
009635,000058:                                                                                                  #  LOCATION CONTAINING THE DELTA TIME, THAT IS, THE TIME IS STORED INDIRECTLY.  IT SHOULD BE NOTED AS ABOVE, THAT
009636,000059:                                                                                                  #  IF THE TIME IS STORED INDIRECTLY, THE BBCON MUST CONTAIN THE NECESSARY E BANK INFORMATION IF APPLICABLE.  WITH
009637,000060:                                                                                                  #  WAITLIST WE HAVE ONE FURTHER OPTION, IF -0 IS STORED IN PRDTTAB, IT WILL CAUSE AN IMMEDIATE RESTART OF THE
009638,000061:                                                                                                  #  TASK.  EXAMPLES,
009639,000062: 
009640,000063:                                                                                                  #                                OCT     77777           THIS WILL CAUSE AN IMMEDIATE RESTART
009641,000064:                                                                                                  #                                -2CADR  ATASK           OF THE TASK :ATASK:
009642,000065:                                                                                                  #        
009643,000066:                                                                                                  #                                DEC     200             IF THE TIME OF THE 2 SECONDS SINCE DUMMY
009644,000067:                                                                                                  #                                -2CADR  DUMMY           WAS PUT ON WAITLIST IS UP, IT WILL BEGIN
009645,000068:                                                                                                  #                                                        IN 10 MS, OTHERWISE IT WILL BEGIN WHEN
009646,000069:                                                                                                  #                                                        IT NORMALLY WOULD HAVE BEGUN.

Page 239

009648,000071:                                                                                                  #                                -GENADR DTIME           WHERE DTIME CONTAINS THE DELTA TIME
009649,000072:                                                                                                  #                                -2CADR  TASKTASK        OTHERWISE THIS IS AS ABOVE
009650,000073: 
009651,000074:                                                                                                  #  ***** NOW THE TABLES THEMSELVES *****
009652,000075: 
009653,000076: 01,2002                                           BANK     01                                    
009654,000077: 01,2000                                           SETLOC   RESTART                               
009655,000078: 01,2000                                           BANK                                           
009656,000079: 
009657,000080: 01,2002                        PRDTTAB            EQUALS   12000                                 #  USED TO FIND THE PRIORITY OR DELTATIME
009658,000081: 01,2002                        CADRTAB            EQUALS   12001                                 #  THIS AND THE NEXT RELATIVE LOC CONTAIN
009659,000082:                                                                                                  #  RESTART 2CADR
009660,000083: 
009661,000084: 01,2002                                           COUNT*   $$/RSTAB                              #  TABLES IN BANK 1.
009662,000085: 01,2002           00010        SIZETAB            TC       1.2SPOT    -12006                     
009663,000086: 01,2003           00020                           TC       1.3SPOT    -12004                     
009664,000087: 01,2004           00010                           TC       2.2SPOT    -12006                     
009665,000088: 01,2005           00023                           TC       2.3SPOT    -12004                     
009666,000089: 01,2006           00010                           TC       3.2SPOT    -12006                     
009667,000090: 01,2007           00053                           TC       3.3SPOT    -12004                     
009668,000091: 01,2010           00057                           TC       4.2SPOT    -12006                     
009669,000092: 01,2011           00067                           TC       4.3SPOT    -12004                     
009670,000093: 01,2012           00142                           TC       5.2SPOT    -12006                     
009671,000094: 01,2013           00160                           TC       5.3SPOT    -12004                     
009672,000095: 01,2014           00010                           TC       6.2SPOT    -12006                     
009673,000096: 01,2015           00171                           TC       6.3SPOT    -12004                     
009674,000097: 01,2016           21000        1.2SPOT            OCT      21000                                 #  A DUMMY EXAMPLE TO BE REPLACED AS SOON
009675,000098: 01,2017     0074                                  EBANK=   STATE                                 
009676,000099: 01,2017           05155 04060                     2CADR    ENDOFJOB                              #  AS THERE IS A LEGITIMATE 1.2SPOT
009677,000100: 
009678,000101: 01,2021           00144                           DEC      100        B-14                       
009679,000102: 01,2022     0074                                  EBANK=   STATE                                 
009680,000103: 01,2022           05261 04060                     2CADR    TASKOVER                              
009681,000104: 
009682,000105:                                                                                                  #  ANY MORE GROUP 1.EVEN RESTART VALUES SHOULD GO HERE
009683,000106: 
009684,000107: 01,2024           76300        1.3SPOT            -GENADR  SAVET-30                              
009685,000108: 01,2025  E7,1515                                  EBANK=   DVCNTR                                
009686,000109: 01,2025           75431 03710                     -2CADR   ULLGTASK                              
009687,000110: 
009688,000111:                                                                                                  #  ANY MORE GROUP 1.ODD RESTART VALUES SHOULD GO HERE
009689,000112: 
009690,000113: 01,2027  01,2016               2.2SPOT            EQUALS   1.2SPOT                               
009691,000114: 
009692,000115:                                                                                                  #  ANY MORE GROUP 2.EVEN RESTART VALUES SHOULD GO HERE
009693,000116: 
009694,000117: 01,2027           02630        2.3SPOT            GENADR   600SECS                               
009695,000118: 
009696,000119: 01,2030           75173                           -GENADR  STATEINT                              
009697,000120: 01,2031  E3,1554                                  EBANK=   RRECTCSM                              
009698,000121: 01,2031           26063                           BBCON    STATEINT                              
009699,000122: 

Page 240

009701,000124: 01,2032           05000        2.5SPOT            OCT      05000                                 
009702,000125: 01,2033  E3,1554                                  EBANK=   RRECTCSM                              
009703,000126: 01,2033           02613 26063                     2CADR    STATINT1                              
009704,000127: 
009705,000128: 01,2035           02734        2.7SPOT            DEC      1500       B-14                       
009706,000129: 01,2036  E7,1456                                  EBANK=   LOSCOUNT                              
009707,000130: 01,2036           75533 27710                     -2CADR   P20LEMC1                              
009708,000131: 
009709,000132: 01,2040           14000        2.11SPOT           OCT      14000                                 
009710,000133: 01,2041  E7,1762                                  EBANK=   P21TIME                               
009711,000134: 01,2041           02416 50067                     2CADR    P25LEM1                               
009712,000135: 
009713,000136: 01,2043           10000        2.13SPOT           OCT      10000                                 
009714,000137: 01,2044  E7,1456                                  EBANK=   LOSCOUNT                              
009715,000138: 01,2044           02217 54067                     2CADR    RELINUS                               
009716,000139: 
009717,000140: 01,2046           26000        2.15SPOT           OCT      26000                                 
009718,000141: 01,2047  E7,1456                                  EBANK=   LOSCOUNT                              
009719,000142: 01,2047           02653 50067                     2CADR    R22RSTRT                              
009720,000143: 
009721,000144: 01,2051           77777        2.17SPOT           OCT      77777                                 
009722,000145: 01,2052  E7,1700                                  EBANK=   VGPREV                                
009723,000146: 01,2052           75440 03710                     -2CADR   REDO2.17                              
009724,000147: 
009725,000148: 01,2054           00031        2.21SPOT           DEC      25         B-14                       
009726,000149: 01,2055  E7,1515                                  EBANK=   DVCNTR                                
009727,000150: 01,2055           75771 35710                     -2CADR   R10,R11                               
009728,000151: 
009729,000152:                                                                                                  #  ANY MORE GROUP 2.ODD RESTART VALUES SHOULD GO HERE.
009730,000153: 
009731,000154: 01,2057  01,2016               3.2SPOT            EQUALS   1.2SPOT                               
009732,000155: 
009733,000156:                                                                                                  #  ANY MORE GROUP 3.EVEN RESTART VALUES SHOULD GO HERE
009734,000157: 
009735,000158: 01,2057           76355        3.3SPOT            -GENADR  ZOOMTIME                              
009736,000159: 01,2060  E7,1515                                  EBANK=   DVCNTR                                
009737,000160: 01,2060           75755 41710                     -2CADR   ZOOM                                  
009738,000161: 
009739,000162: 01,2062           20000        3.5SPOT            OCT      20000                                 
009740,000163: 01,2063  E7,1453                                  EBANK=   TTOGO                                 
009741,000164: 01,2063           02540 56067                     2CADR    S40.13                                
009742,000165: 
009743,000166:                                                                                                  #  ANY MORE GROUP 3.ODD RESTART VALUES SHOULD GO HERE
009744,000167: 
009745,000168: 01,2065           04704        4.2SPOT            DEC      2500       B-14                       
009746,000169: 01,2066  E7,1453                                  EBANK=   TTOGO                                 
009747,000170: 
009748,000171: 01,2066           75425 03710                     -2CADR   TIG-5                                 
009749,000172: 
009750,000173: 01,2070           77777                           OCT      77777                                 
009751,000174: 01,2071  E7,1453                                  EBANK=   TTOGO                                 

Page 241

009753,000176: 01,2071           75435 03710                     -2CADR   REDO4.2                               
009754,000177: 
009755,000178:                                                                                                  #  ANY MORE GROUP 4.EVEN RESTART VALUES SHOULD GO HERE
009756,000179: 
009757,000180: 01,2073           25000        4.3SPOT            OCT      25000                                 
009758,000181: 01,2074  E7,1515                                  EBANK=   DVCNTR                                
009759,000182: 01,2074           03540 64067                     2CADR    GOABORT                               
009760,000183: 
009761,000184: 01,2076           00062        4.5SPOT            DEC      50         B-14                       
009762,000185: 01,2077  E7,1453                                  EBANK=   TTOGO                                 
009763,000186: 01,2077           75215 03710                     -2CADR   ULLAGOFF                              
009764,000187: 
009765,000188: 01,2101           00764        4.7SPOT            DEC      500        B-14                       
009766,000189: 01,2102  E7,1515                                  EBANK=   DVCNTR                                
009767,000190: 01,2102           75374 03710                     -2CADR   TIG-0                                 
009768,000191: 
009769,000192: 01,2104           76260        4.11SPOT           -GENADR  TGO        +1                         
009770,000193: 01,2105  E7,1515                                  EBANK=   DVCNTR                                
009771,000194: 01,2105           74235 03710                     -2CADR   ENGOFTSK                              
009772,000195: 
009773,000196: 01,2107           12000        4.13SPOT           OCT      12000                                 
009774,000197: 01,2110  E7,1462                                  EBANK=   TRKMKCNT                              
009775,000198: 01,2110           03223 74067                     2CADR    POSTBURN                              
009776,000199: 
009777,000200: 01,2112           00764        4.15SPOT           DEC      500        B-14                       
009778,000201: 01,2113  E7,1453                                  EBANK=   TTOGO                                 
009779,000202: 01,2113           75501 03710                     -2CADR   TIG-30                                
009780,000203: 
009781,000204: 01,2115           77777        4.17SPOT           OCT      77777                                 
009782,000205: 01,2116  E7,1515                                  EBANK=   DVCNTR                                
009783,000206: 01,2116           75425 03710                     -2CADR   TIG-5                                 
009784,000207: 
009785,000208: 01,2120           13000        4.21SPOT           OCT      13000                                 
009786,000209: 01,2121  E5,1730                                  EBANK=   STAR                                  
009787,000210: 01,2121           03020 30065                     2CADR    R51.1      +1                         
009788,000211: 
009789,000212: 01,2123           77777        4.23SPOT           OCT      77777                                 
009790,000213: 01,2124  E7,1515                                  EBANK=   DVCNTR                                
009791,000214: 01,2124           75351 03710                     -2CADR   IGNITION                              
009792,000215: 
009793,000216: 01,2126           01477        4.25SPOT           GENADR   SAVET-30                              
009794,000217: 01,2127           75537                           -GENADR  TIG-35                                
009795,000218: 01,2130  E7,1477                                  EBANK=   SAVET-30                              
009796,000219: 01,2130           74067                           BBCON    TIG-35                                
009797,000220: 
009798,000221: 
009799,000222: 01,2131           52777        4.27SPOT           OCT      52777                                 
009800,000223: 01,2132  E7,1515                                  EBANK=   DVCNTR                                
009801,000224: 01,2132           02073 42067                     2CADR    P70A                                  

Page 242

009803,000226: 01,2134           52777        4.31SPOT           OCT      52777                                 
009804,000227: 01,2135  E7,1515                                  EBANK=   DVCNTR                                
009805,000228: 01,2135           02076 42067                     2CADR    P71A                                  
009806,000229: 
009807,000230: 01,2137           46777        4.33SPOT           OCT      46777                                 
009808,000231: 01,2140  E7,1515                                  EBANK=   DVCNTR                                
009809,000232: 01,2140           02024 10067                     2CADR    GOPOOFIX                              
009810,000233: 
009811,000234: 01,2142           46777        4.35SPOT           OCT      46777                                 
009812,000235: 01,2143  E7,1515                                  EBANK=   DVCNTR                                
009813,000236: 01,2143           05665 04067                     2CADR    GOPOODOO                              
009814,000237: 
009815,000238: 01,2145           52777        4.37SPOT           OCT      52777                                 
009816,000239: 01,2146  E7,1455                                  EBANK=   WHICH                                 
009817,000240: 01,2146           02571 74067                     2CADR    COMFAIL                               
009818,000241: 
009819,000242:                                                                                                  #  ANY MORE 4.ODD RESTART VALUES SHOULD GO HERE.
009820,000243: 01,2150           22000        5.2SPOT            OCT      22000                                 
009821,000244: 01,2151  E7,1515                                  EBANK=   DVCNTR                                
009822,000245: 01,2151           02461 46067                     2CADR    NORMLIZE                              
009823,000246: 
009824,000247: 01,2153           00310                           DEC      200        B-14                       
009825,000248: 01,2154  E7,1515                                  EBANK=   DVCNTR                                
009826,000249: 01,2154           74163 01710                     -2CADR   REREADAC                              
009827,000250: 
009828,000251: 01,2156           00310        5.4SPOT            DEC      200        B-14                       
009829,000252: 01,2157  E7,1515                                  EBANK=   DVCNTR                                
009830,000253: 01,2157           74163 01710                     -2CADR   REREADAC                              
009831,000254: 
009832,000255: 01,2161           20000                           OCT      20000                                 
009833,000256: 01,2162  E7,1515                                  EBANK=   DVCNTR                                
009834,000257: 01,2162           02206 66067                     2CADR    SERVICER                              
009835,000258: 
009836,000259:                                                                                                  #  ANY MORE GROUP 5.EVEN RESTART VALUES SHOULD GO HERE
009837,000260: 
009838,000261: 01,2164           00310        5.3SPOT            DEC      200        B-14                       
009839,000262: 01,2165  E7,1515                                  EBANK=   DVCNTR                                
009840,000263: 01,2165           74163 01710                     -2CADR   REREADAC                              
009841,000264: 
009842,000265: 01,2167           77777        5.5SPOT            OCT      77777                                 
009843,000266: 01,2170  E7,1515                                  EBANK=   DVCNTR                                
009844,000267: 01,2170           74324 01710                     -2CADR   REDO5.5                               
009845,000268: 
009846,000269: 01,2172           77777        5.7SPOT            OCT      77777                                 
009847,000270: 01,2173  E7,1515                                  EBANK=   DVCNTR                                

Page 243

009849,000272: 01,2173           74361 01710                     -2CADR   BIBIBIAS                              
009850,000273: 
009851,000274:                                                                                                  #  ANY MORE GROUP 5.ODD RESTART VALUES SHOULD GO HERE
009852,000275: 
009853,000276: 01,2175  01,2016               6.2SPOT            EQUALS   1.2SPOT                               
009854,000277: 01,2175           00144        6.3SPOT            DEC      100        B-14                       
009855,000278: 01,2176  E7,1441                                  EBANK=   TIG                                   
009856,000279: 01,2176           75060 03710                     -2CADR   CLOKTASK                              
009857,000280: 
009858,000281: 01,2200           30000        6.5SPOT            OCT      30000                                 #  PROTECT INCREMENTING OF TIME2,TIME1 BY
009859,000282: 01,2201  E3,1706                                  EBANK=   TEPHEM                                #  P27(UPDATE PROGRAM) VIA V70 OR V73.
009860,000283: 01,2201           03601 10063                     2CADR    TIMEDIDR                              
009861,000284: 
009862,000285: 01,2203           17000        6.7SPOT            OCT      17000                                 
009863,000286: 01,2204  E7,1700                                  EBANK=   VGPREV                                
009864,000287: 01,2204           03350 74067                     2CADR    REDO6.7                               
009865,000288: 
009866,000289: 

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