Source Code

These source-code files derive from a printout of Luminary 116 (the Apollo 12 Lunar Module guidance computer program), from the personal library of original AGC developer Don Eyles, digitally photographed at archive.org, financially sponsored by Ron Burkey, and transcribed to source code by a team of volunteers. This colorized, syntax-highlighted form was created by assembling that transcribed source code. Note that the full page images are available on the Virtual AGC project page at archive.org, while reduced-size images are presented at the VirtualAGC project website. Report or fix any transcription errors at the Virtual AGC project code repository.

Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 116 OF AGC PROGRAM LUMINARY BY NASA 2021112-071
	19:09 AUG. 11,1969
Note that the date is the date of the printout, not the date of the program revision.

008672,000002:                                                                                                  ## Copyright:   Public domain.
008673,000003:                                                                                                  ## Filename:    FRESH_START_AND_RESTART.agc
008674,000004:                                                                                                  ## Purpose:     A section of Luminary revision 116.
008675,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
008676,000006:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 12.
008677,000007:                                                                                                  ##              This file is intended to be a faithful transcription, except
008678,000008:                                                                                                  ##              that the code format has been changed to conform to the
008679,000009:                                                                                                  ##              requirements of the yaYUL assembler rather than the
008680,000010:                                                                                                  ##              original YUL assembler.
008681,000011:                                                                                                  ## Reference:   pp. 212-237
008682,000012:                                                                                                  ## Assembler:   yaYUL
008683,000013:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
008684,000014:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
008685,000015:                                                                                                  ## Mod history: 2017-01-22 MAS  Created from Luminary 99.
008686,000016:                                                                                                  ##              2017-02-19 HG   Transcribed and partially reconstructed
008687,000017:                                                                                                  ##              2017-03-13 RSB  Proofed comment text via 3-way diff vs
008688,000018:                                                                                                  ##                              Luminary 99 and 132.
008689,000019:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
008690,000020:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
008691,000021:                                                                                                  ##              2017-03-19 HG   Fix mixed up operands -PHASE1 --> -PHASE5
008692,000022:                                                                                                  ##                                                    -PHASE5 --> -PHASE1
008693,000023:                                                                                                  ##                              Value for BOOLSTRT reconstructed from core/rope listing  OCT 21312 -> OCT 21322
008694,000024:                                                                                                  ##              2017-08-15 RSB  Comment-text fixes identified in proofing vs AP11ROPE.
008695,000025: 

Page 212

008697,000027: 10,2000                                           BANK     10                                    
008698,000028: 05,2000                                           SETLOC   FRANDRES                              
008699,000029: 05,2000                                           BANK                                           
008700,000030: 
008701,000031: 05,2447  E3,1400                                  EBANK=   LST1                                  
008702,000032: 
008703,000033: 05,2447                                           COUNT*   $$/START                              #  FRESH AND RESTART
008704,000034: 05,2447           00004        SLAP1              INHINT                                         #  FRESH START. COMES HERE FROM PINBALL.
008705,000035: 05,2450           03105                           TC       STARTSUB                              #  SUBROUTINE DOES MOST OF THE WORK.
008706,000036: 
008707,000037: 05,2451           12456        STARTSW            TCF      SKIPSIM                               #  PATCH....TCF STARTSIM...FOR SIMULATION
008708,000038: 05,2452           34736        STARTSIM           CAF      BIT14                                 
008709,000039: 05,2453           05105                           TC       FINDVAC                               
008710,000040: 05,2454           77777        SIM2CADR           OCT      77777                                 #  PATCH 2CADR (AND EBANK DESIGNATION) OF
008711,000041: 05,2455           77777                           OCT      77777                                 #  SIMULATION START ADDRESS.
008712,000042: 
008713,000043: 05,2456           31035        SKIPSIM            CA       DSPTAB     +11D                       
008714,000044: 05,2457           74771                           MASK     BITS4&6                               #  TURN OFF ALL DSPTAB +11D LAMPS
008715,000045: 05,2460           64735                           AD       BIT15                                 #  EXCEPT THE GIMBAL LOCK & NO ATT ONLY ON
008716,000046: 05,2461           55035                           TS       DSPTAB     +11D                       #  REQUESTED FRESH START.
008717,000047: 
008718,000048: 05,2462           34755                           CA       ZERO                                  
008719,000049: 05,2463           55365                           TS       ERCOUNT                               
008720,000050: 05,2464           54375                           TS       FAILREG                               
008721,000051: 05,2465           54376                           TS       FAILREG    +1                         
008722,000052: 05,2466           54377                           TS       FAILREG    +2                         
008723,000053: 05,2467           54320                           TS       REDOCTR                               
008724,000054: 
008725,000055: 05,2470           44644                           CS       PRIO12                                
008726,000056: 05,2471           55310                           TS       DSRUPTSW                              
008727,000057: 
008728,000058: 05,2472           34736        DOFSTART           CAF      BIT14                                 #  INSURE ENGINE IS OFF.
008729,000059: 05,2473           00006                           EXTEND                                         
008730,000060: 05,2474           01011                           WRITE    DSALMOUT                              
008731,000061: 05,2475           44755                           CS       ZERO                                  
008732,000062: 05,2476           54055                           TS       THRUST                                
008733,000063: 
008734,000064: 05,2477           34751        DOFSTRT1           CAF      FOUR                                  
008735,000065: 05,2500           55262                           TS       RCSFLAGS                              #  INITIALIZE ATTITUDE ERROR DISPLAYS.
008736,000066: 05,2501           34355                           CA       PRIO30                                
008737,000067: 05,2502           54366                           TS       RESTREG                               #  SUPER BANK PRIORITY FOR DISPLAYS.
008738,000068: 
008739,000069: 05,2503           34755                           CA       ZERO                                  
008740,000070: 05,2504           55245                           TS       ABDELV                                #  DAP INITIALIZATION
008741,000071: 05,2505           54371                           TS       NVSAVE                                
008742,000072: 05,2506           55071                           TS       EBANKTEM                              
008743,000073: 05,2507           55257                           TS       CH5MASK                               
008744,000074: 05,2510           55260                           TS       CH6MASK                               
008745,000075: 05,2511           55273                           TS       PVALVEST                              #  FOR RCS FAILURE MONITOR
008746,000076: 

Page 213

008748,000078: 05,2512           55360                           TS       ERESTORE                              #  ***** MUST NOT BE REMOVED FROM DOFSTART
008749,000079: 05,2513           55362                           TS       SMODE                                 #  ***** MUST NOT BE REMOVED FROM DOFSTART
008750,000080: 05,2514           54333                           TS       DNLSTCOD                              #  SELECT POO DOWNLIST
008751,000081: 05,2515           55321                           TS       AGSWORD                               #  ALLOW AGS INITIALIZATION
008752,000082: 05,2516           55501                           TS       UPSVFLAG                              #  ZERO UPDATE STATE VECTOR REQUEST FLAGWRD
008753,000083: 05,2517           00006                           EXTEND                                         
008754,000084: 05,2520           01005                           WRITE    CHAN5                                 #  TURN OFF RCS JETS.
008755,000085: 05,2521           00006                           EXTEND                                         
008756,000086: 05,2522           01006                           WRITE    CHAN6                                 #  TURN OFF RCS JETS.
008757,000087: 05,2523           00006                           EXTEND                                         
008758,000088: 05,2524           01012                           WRITE    CHAN12                                
008759,000089: 05,2525           00006                           EXTEND                                         
008760,000090: 05,2526           01013                           WRITE    CHAN13                                
008761,000091: 05,2527           00006                           EXTEND                                         
008762,000092: 05,2530           01014                           WRITE    CHAN14                                
008763,000093: 05,2531           41035                           CS       DSPTAB     +11D                       
008764,000094: 05,2532           74771                           MASK     BITS4&6                               
008765,000095: 05,2533           10000                           CCS      A                                     
008766,000096: 05,2534           02540                           TC       +4                                    
008767,000097: 05,2535           34771                           CA       BITS4&6                               
008768,000098: 05,2536           00006                           EXTEND                                         #  THE IMU WAS IN COARSE ALIGN IN GIMBAL
008769,000099: 05,2537           05012                           WOR      CHAN12                                #  LOCK, SO PUT IT BACK INTO COARSE ALIGN.
008770,000100: 05,2540           02641                 +4        TC       MR.KLEAN                              
008771,000101: 
008772,000102: 05,2541           44755                           CS       ZERO                                  
008773,000103: 05,2542           55010                           TS       MODREG                                
008774,000104: 
008775,000105: 05,2543           33360                           CAF      IM30INIF                              #  FRESH START IMU INITIALIZATION.
008776,000106: 05,2544           55277                           TS       IMODES30                              
008777,000107: 
008778,000108: 05,2545           33065                           CAF      MAXDB                                 
008779,000109: 05,2546           55343                           TS       DB                                    
008780,000110: 05,2547           34751                           CAF      FOUR                                  
008781,000111: 05,2550           55322                           TS       RATEINDX                              #  INITIALIZE KALCMANU RATE
008782,000112: 05,2551           33061                           CA       BOOLSTRT                              
008783,000113: 05,2552           54111                           TS       DAPBOOLS                              
008784,000114: 05,2553           35015                           CAF      EBANK6                                
008785,000115: 05,2554           54003                           TS       EBANK                                 
008786,000116: 05,2555  E6,1400                                  EBANK=   HIASCENT                              
008787,000117: 
008788,000118: 05,2555           33056                           CA       STIKSTRT                              
008789,000119: 05,2556           55444                           TS       STIKSENS                              
008790,000120: 05,2557           33057                           CA       RATESTRT                              
008791,000121: 05,2560           55476                           TS       -RATEDB                               
008792,000122: 05,2561           32000                           CAF      FULLAPS                               #  INITIALIZE MAXIMUM ASCENT MASS FOR USE
008793,000123: 05,2562           55400                           TS       HIASCENT                              #    BY 1/ACCS UNTIL THE PAD LOAD IS DONE.
008794,000124: 05,2563           33062                           CA       77001OCT                              #     LOAD DAP FILTER GAINS PAD LOAD
008795,000125: 05,2564           55403                           TS       DKTRAP                                #     TO BEST PRESENT ESTIMATE OF GOODIES
008796,000126: 05,2565           55406                           TS       LMTRAP                                #  .14 DEG
008797,000127: 05,2566           33063                           CA       60DEC                                 
008798,000128: 

Page 214

008800,000130: 05,2567           55405                           TS       DKKAOSN                               
008801,000131: 05,2570           55410                           TS       LMKAOSN                               #  6 SEC GAIN FOR ALPHA
008802,000132: 05,2571           34755                           CA       ZERO                                  
008803,000133: 05,2572           55407                           TS       LMOMEGAN                              #  UNITY GAIN
008804,000134: 05,2573           34363                           CA       TEN                                   
008805,000135: 05,2574           55404                           TS       DKOMEGAN                              #  1 SEC GAIN FOR OMEGA
008806,000136: 05,2575           34744                           CAF      BIT8                                  #  SET DOCKED DB TO 1.4 DEG.  MAY OVERWRITE
008807,000137: 05,2576           55411                           TS       DKDB                                  #    WITH PAD LOAD.
008808,000138: 05,2577           35026                           CAF      IM33INIT                              
008809,000139: 05,2600           64746                           AD       BIT6                                  #  KEEP BOTH DAP AND ERROR-NEEDLES DISPLAY
008810,000140: 05,2601           55300                           TS       IMODES33                              #    OFF UNTIL ICDU ZERO IS FINISHED.
008811,000141: 
008812,000142: 05,2602           00006                           EXTEND                                         #  INITIALIZE SWITCHES ONLY ON FRESH START.
008813,000143: 05,2603           33365                           DCA      SWINIT                                
008814,000144: 05,2604           52075                           DXCH     STATE                                 
008815,000145: 05,2605           33366                           CA       SWINIT     +2                         
008816,000146: 05,2606           54076                           TS       STATE      +2                         
008817,000147: 05,2607           34737                           CA       REFSMBIT                              #  DO NOT ALTER REFSMFLG ON FRESH START.
008818,000148: 05,2610           70077                           MASK     STATE      +3                         
008819,000149: 05,2611           63367                           AD       SWINIT     +3                         
008820,000150: 05,2612           54077                           TS       STATE      +3                         
008821,000151: 05,2613           00006                           EXTEND                                         
008822,000152: 05,2614           33371                           DCA      SWINIT     +4                         
008823,000153: 05,2615           52101                           DXCH     STATE      +4                         
008824,000154: 05,2616           00006                           EXTEND                                         
008825,000155: 05,2617           33373                           DCA      SWINIT     +6                         
008826,000156: 05,2620           52103                           DXCH     STATE      +6                         
008827,000157: 05,2621           34744                           CA       SURFFBIT                              #  DO NOT ALTER  SURFFLAG ON FRESH START.
008828,000158: 05,2622           64740                           AD       CMOONBIT                              #                CMOONFLG
008829,000159: 05,2623           64741                           AD       LMOONBIT                              #                LMOONFLG
008830,000160: 05,2624           70104                           MASK     STATE      +8D                        
008831,000161: 05,2625           63374                           AD       SWINIT     +8D                        
008832,000162: 05,2626           54104                           TS       STATE      +8D                        
008833,000163: 05,2627           33375                           CA       SWINIT     +9D                        
008834,000164: 05,2630           54105                           TS       STATE      +9D                        
008835,000165: 05,2631           34737                           CA       APSFLBIT                              #  DO NOT ALTER APSFLAG ON FRESH START.
008836,000166: 05,2632           70106                           MASK     STATE      +10D                       
008837,000167: 05,2633           63376                           AD       SWINIT     +10D                       
008838,000168: 05,2634           54106                           TS       STATE      +10D                       
008839,000169: 05,2635           33377                           CAF      SWINIT     +11D                       
008840,000170: 05,2636           54107                           TS       STATE      +11D                       
008841,000171: 
008842,000172: 05,2637           04635        ENDRSTRT           TC       POSTJUMP                              #  NOW IN ANOTHER BANK.
008843,000173: 05,2640           03211                           CADR     DUMMYJOB   +2                         #  PICKS UP AT RELINT.   (DONT ZERO NEWJOB)
008844,000174: 
008845,000175: 05,2641           00004        MR.KLEAN           INHINT                                         
008846,000176: 05,2642           00006                           EXTEND                                         
008847,000177: 05,2643           34755                           DCA      NEG0                                  
008848,000178: 05,2644           52754                           DXCH     -PHASE2                               
008849,000179: 

Page 215

008851,000181: 05,2645           00006        POOKLEAN           EXTEND                                         
008852,000182: 05,2646           34755                           DCA      NEG0                                  
008853,000183: 05,2647           52760                           DXCH     -PHASE4                               
008854,000184: 05,2650           00006        V37KLEAN           EXTEND                                         
008855,000185: 05,2651           34755                           DCA      NEG0                                  
008856,000186: 05,2652           52762                           DXCH     -PHASE5                               
008857,000187: 05,2653           00006        ABTKLEAN           EXTEND                                         
008858,000188: 05,2654           34755                           DCA      NEG0                                  
008859,000189: 05,2655           52756                           DXCH     -PHASE3                               
008860,000190: 05,2656           00006                           EXTEND                                         
008861,000191: 05,2657           34755                           DCA      NEG0                                  
008862,000192: 05,2660           52752                           DXCH     -PHASE1                               
008863,000193: 05,2661           00006                           EXTEND                                         
008864,000194: 05,2662           34755                           DCA      NEG0                                  
008865,000195: 05,2663           52764                           DXCH     -PHASE6                               
008866,000196: 05,2664           00002                           TC       Q                                     
008867,000197: 

Page 216

008869,000199:                                                                                                  #           COMES HERE FROM LOCATION 4000, GOJAM. RESTART ANY PROGRAMS WHICH MAY HAVE BEEN RUNNING AT THE TIME
008870,000200: 
008871,000201: 05,2665  E3,1400                                  EBANK=   LST1                                  
008872,000202: 05,2665           24320        GOPROG             INCR     REDOCTR                               #  ADVANCE RESTART COUNTER.
008873,000203: 
008874,000204: 05,2666           22002                           LXCH     Q                                     
008875,000205: 05,2667           00006                           EXTEND                                         
008876,000206: 05,2670           04007                           ROR      SUPERBNK                              
008877,000207: 05,2671           53433                           DXCH     RSBBQ                                 
008878,000208: 05,2672           31035                           CA       DSPTAB     +11D                       
008879,000209: 05,2673           74750                           MASK     BIT4                                  
008880,000210: 05,2674           00006                           EXTEND                                         
008881,000211: 05,2675           12701                           BZF      +4                                    
008882,000212: 05,2676           64746                           AD       BIT6                                  #  SET ERROR COUNTER ENABLE
008883,000213: 05,2677           00006                           EXTEND                                         
008884,000214: 05,2700           05012                           WOR      CHAN12                                #  ISS WAS IN COARS ALIGN SO GO BACK TO
008885,000215: 05,2701           03066        BUTTONS            TC       LIGHTSET                              
008886,000216: 
008887,000217:                                                                                                  #                                            ERASCHK TEMPORARILY STORES THE CONTENTS OF TWO ERASABLE LOCATIONS, X
008888,000218:                                                                                                  #                                            AND X+1 INTO SKEEP5 AND SKEEP6. IT ALSO STORES X INTO SKEEP7 AND
008889,000219:                                                                                                  #                                            ERESTORE. IF ERASCHK IS INTERRUPTED BY A RESTART, C(ERESTORE) SHOULD
008890,000220:                                                                                                  #                                            EQUAL C(SKEEP7),AND BE A + NUMBER LESS THAN 2000 OCT. OTHERWISE
008891,000221:                                                                                                  #                                            C(ERESTORE) SHOULD EQUAL +0.
008892,000222: 
008893,000223: 05,2702           34350                           CAF      HI5                                   
008894,000224: 05,2703           71360                           MASK     ERESTORE                              
008895,000225: 05,2704           00006                           EXTEND                                         
008896,000226: 05,2705           12707                           BZF      +2                                    #  IF ERESTORE NOT = +0 OR +N LESS THAN 2K,
008897,000227: 05,2706           13103                           TCF      NONAVKEY   +3                         #  DO FRESH START - E MEMORY MIGHT BE BAD
008898,000228: 05,2707           41360                           CS       ERESTORE                              
008899,000229: 05,2710           00006                           EXTEND                                         
008900,000230: 05,2711           12726                           BZF      DORSTART                              #  = +0 CONTINUE WITH RESTART.
008901,000231: 05,2712           61377                           AD       SKEEP7                                
008902,000232: 05,2713           00006                           EXTEND                                         
008903,000233: 05,2714           12716                           BZF      +2                                    #  = SKEEP7, RESTORE E MEMORY.
008904,000234: 05,2715           13103                           TCF      NONAVKEY   +3                         #  DO FRESH START - E MEMORY MIGHT BE BAD
008905,000235: 05,2716           31374                           CA       SKEEP4                                
008906,000236: 05,2717           54003                           TS       EBANK                                 #  EBANK OF E MEMORY THAT WAS UNDER TEST.
008907,000237: 05,2720           00006                           EXTEND                                         #  (NOT DXCH SINCE THIS MIGHT HAPPEN AGAIN)
008908,000238: 

Note: The rest of this page and some subsequent ones are missing from the original scan for Luminary 116. The contents are being reconstructed using listings for Luminary 099 and Luminary 131 Obviously it can not be guranteed that the comments are 100% correct. Comparing Luminary 099 with Luminary131 should give confidence that they are close to the original.

008914,000244: 05,2721           31376                           DCA      SKEEP5                                
008915,000245: 05,2722           51377                           INDEX    SKEEP7                                
008916,000246: 05,2723           52001                           DXCH     0000                                  #  E MEMORY RESTORED.
008917,000247: 05,2724           34755                           CA       ZERO                                  
008918,000248: 05,2725           55360                           TS       ERESTORE                              
008919,000249: 05,2726           03105        DORSTART           TC       STARTSUB                              #  DO INITIALIZATION AFTER ERASE RESTORE.
008920,000250: 
008921,000251: 05,2727           44736        SETINFL            CS       INTFLBIT                              
008922,000252: 05,2730           70106                           MASK     FLGWRD10                              
008923,000253: 05,2731           54106                           TS       FLGWRD10                              
008924,000254: 

Page 217
Note: Reconstructed from Luminary 099 p. 216 and Luminary 131 p. 218

008927,000257: 05,2732           33362                           CA       9,6,4                                 #  LEAVE PROG ALARM,GIMBAL LOCK, NO ATT
008928,000258: 05,2733           71035                           MASK     DSPTAB     +11D                       #  LAMPS INTACT ON HARDWARE RESTART
008929,000259: 05,2734           64735                           AD       BIT15                                 
008930,000260: 05,2735           57035                           XCH      DSPTAB     +11D                       
008931,000261: 05,2736           33346                           CAF      IFAILINH                              #  LEAVE IMU FAILURE INHIBITS INTACT ON
008932,000262: 05,2737           71277                           MASK     IMODES30                              #  HARDWARE RESTART. RESET ALL FAILURE
008933,000263: 05,2740           63361                           AD       IM30INIR                              #  CODES.
008934,000264: 05,2741           55277                           TS       IMODES30                              
008935,000265: 
008936,000266: 05,2742           31321                           CA       AGSWORD                               #  BE SURE OF CORRECT DOWNLIST
008937,000267: 05,2743           54333                           TS       DNLSTCOD                              
008938,000268: 
008939,000269: 05,2744           34750                           CA       BIT4                                  #  TURN ON THROTTLE COUNTER
008940,000270: 05,2745           00006                           EXTEND                                         
008941,000271: 05,2746           05014                           WOR      CHAN14                                #  TURN ON THRUST DRIVE
008942,000272: 05,2747           40101                           CS       FLAGWRD5                              
008943,000273: 05,2750           74745                           MASK     ENGONBIT                              
008944,000274: 05,2751           10000                           CCS      A                                     
008945,000275: 05,2752           12757                           TCF      +5                                    
008946,000276: 05,2753           34737                           CAF      BIT13                                 
008947,000277: 05,2754           00006                           EXTEND                                         
008948,000278: 05,2755           05011                           WOR      DSALMOUT                              #  TURN ENGINE ON
008949,000279: 05,2756           12773                           TCF      GOPROG3                               
008950,000280: 05,2757           34736                 +5        CAF      BIT14                                 
008951,000281: 05,2760           00006                           EXTEND                                         
008952,000282: 05,2761           05011                           WOR      DSALMOUT                              #  TURN ENGINE OFF.
008953,000283: 05,2762           12773                           TCF      GOPROG3                               
008954,000284: 
008955,000285: 05,2763           00004        ENEMA              INHINT                                         
008956,000286: 05,2764           03114                           TC       STARTSB1                              
008957,000287: 05,2765           12767                           TCF      GOPROG2A                              
008958,000288: 05,2766           03144        GOPROG2            TC       STARTSB2                              
008959,000289: 05,2767           03066        GOPROG2A           TC       LIGHTSET                              
008960,000290: 05,2770           43064                           CS       RSFLGBTS                              #  CLEAR BITS 7 AND 14.
008961,000291: 05,2771           70106                           MASK     FLGWRD10                              
008962,000292: 05,2772           54106                           TS       FLGWRD10                              
008963,000293: 
008964,000294: 05,2773           34756        GOPROG3            CAF      NUMGRPS                               #  VERIFY PHASE TABLE AGREEMENTS
008965,000295: 05,2774           54161        PCLOOP             TS       MPAC       +5                         
008966,000296: 05,2775           60000                           DOUBLE                                         
008967,000297: 05,2776           00006                           EXTEND                                         
008968,000298: 05,2777           50000                           INDEX    A                                     
008969,000299: 05,3000           30752                           DCA      -PHASE1                               #  COMPLEMENT INTO A, DIRECT INTO L.
008970,000300: 05,3001           00006                           EXTEND                                         
008971,000301: 05,3002           06001                           RXOR     LCHAN                                 #  RESULT MUST BE -0 FOR AGREEMENT.
008972,000302: 05,3003           10000                           CCS      A                                     
008973,000303: 05,3004           13052                           TCF      PTBAD                                 #  RESTART FAILURE.
008974,000304: 05,3005           13052                           TCF      PTBAD                                 
008975,000305: 05,3006           13052                           TCF      PTBAD                                 
008976,000306: 

Page 218
Note: Reconstructed from Luminary 099 p. 217 and Luminary 131 p. 219

008979,000309: 05,3007           10161                           CCS      MPAC       +5                         #  PROCESS ALL RESTART GROUPS.
008980,000310: 05,3010           12774                           TCF      PCLOOP                                
008981,000311: 
008982,000312: 05,3011           54162                           TS       MPAC       +6                         #  SET TO +0.
008983,000313: 05,3012           05315                           TC       MMDSPLAY                              #  DISPLAY MAJOR MODE
008984,000314: 
008985,000315: 05,3013           00004                           INHINT                                         #  RELINT DONE IN MMDSPLAY
008986,000316: 
008987,000317: 05,3014           44736                           CS       DIDFLBIT                              #  CLEAR DIDFLAG IN ORDER TO FORCE R10 TO
008988,000318: 05,3015           70075                           MASK     FLAGWRD1                              #  RE-INITIALIZE ITSELF IF IT HAD BEEN
008989,000319: 05,3016           54075                           TS       FLAGWRD1                              #  OPERATING AT THE TIME OF THE RESTART.
008990,000320: 
008991,000321: 05,3017           44740                           CS       RODFLBIT                              #  CLEAR RODFLAG.  IF P66 IS IN OPERATION
008992,000322: 05,3020           70075                           MASK     FLAGWRD1                              #       IT WILL RE-INITIALIZE ITSELF AND
008993,000323: 05,3021           54075                           TS       FLAGWRD1                              #       CONTINUE.
008994,000324: 
008995,000325: 05,3022           44741                           CS       P21FLBIT                              #  CLEAR P21 FLAG SO THAT P21 WILL COMPUTE
008996,000326: 05,3023           70074                           MASK     FLAGWRD0                              #  NEW BASE STATE VECTORS.
008997,000327: 05,3024           54074                           TS       FLAGWRD0                              
008998,000328: 
008999,000329: 05,3025           34756                           CAF      NUMGRPS                               #  SEE IF ANY GROUPS RUNNING.
009000,000330: 05,3026           54161        NXTRST             TS       MPAC       +5                         
009001,000331: 05,3027           60000                           DOUBLE                                         
009002,000332: 05,3030           50000                           INDEX    A                                     
009003,000333: 05,3031           10752                           CCS      PHASE1                                
009004,000334: 05,3032           13034                           TCF      PACTIVE                               #  PNZ - GROUP ACTIVE.
009005,000335: 05,3033           13041                           TCF      PINACT                                #  +0 - GROUP NOT RUNNING.
009006,000336: 
009007,000337: 05,3034           54154        PACTIVE            TS       MPAC                                  
009008,000338: 05,3035           24154                           INCR     MPAC                                  #  ABS OF PHASE.
009009,000339: 05,3036           24162                           INCR     MPAC       +6                         #  INDICATE GROUP DEMANDS PRESENT.
009010,000340: 05,3037           33060                           CA       RACTCADR                              
009011,000341: 05,3040           04622                           TC       SWCALL                                #  MUST RETURN TO SWRETURN.
009012,000342: 
009013,000343: 05,3041           10161        PINACT             CCS      MPAC       +5                         #  PROCESS ALL RESTART GROUPS.
009014,000344: 05,3042           13026                           TCF      NXTRST                                
009015,000345: 
009016,000346: 05,3043           10162                           CCS      MPAC       +6                         #  NO, CHECK PHASE ACTIVITY FLAG
009017,000347: 05,3044           12637                           TCF      ENDRSTRT                              #  PHASE ACTIVE
009018,000348: 05,3045           34735                           CAF      BIT15                                 #  IS MODE -0
009019,000349: 05,3046           71010                           MASK     MODREG                                
009020,000350: 05,3047           00006                           EXTEND                                         
009021,000351: 05,3050           16001                           BZF      GOTOPOOH                              #  NO
009022,000352: 05,3051           12637                           TCF      ENDRSTRT                              #  YES
009023,000353: 05,3052           05567        PTBAD              TC       ALARM                                 #  SET ALARM TO SHOW PHASE TABLE FAILURE.
009024,000354: 05,3053           01107                           OCT      1107                                  
009025,000355: 
009026,000356: 05,3054           12477                           TCF      DOFSTRT1                              
009027,000357: 


Note: Reconstructed from Luminary 099 p. 217 and Luminary 131 p. 219

009029,000359:                                                                                                  # ******** ****** ******

Page 219

009031,000361: 
009032,000362:                                                                                                  #  DO NOT USE GOPROG2 OR ENEMA WITHOUT CONSULTING POOH PEOPLE
009033,000363: 
009034,000364: 05,3055     4737               OCT10000           =        BIT13                                 
009035,000365: 05,3055     4355               OCT30000           =        PRIO30                                
009036,000366: 05,3055           07777        OCT7777            OCT      7777                                  
009037,000367: 05,3056           32321        STIKSTRT           DEC      0.825268                              #  20 D/S MAXIMUM COMMANDED RATE
009038,000368: 05,3057           77445        RATESTRT           DEC      -218       B-14                       
009039,000369: 05,3060           03527        RACTCADR           CADR     RESTARTS                              
009040,000370: 05,3061           21322        BOOLSTRT           OCT      21322                                 

Note: The value of "BOOLSTRT" has been reconstructed from the core listing.

009042,000372: 05,3062           77001        77001OCT           OCT      77001                                 #  .14 DEG SCALED AT 4.5 DEG
009043,000373: 05,3063           00074        60DEC              DEC      60         B-14                       
009044,000374: 05,3064           20100        RSFLGBTS           OCT      20100                                 
009045,000375: 05,3065           03434        MAXDB              OCTAL    03434                                 #  5 DEG ATTITUDE DEADBAND, SCALED AT 45.
009046,000376: 
009047,000377: 05,3066           34747        LIGHTSET           CAF      BIT5                                  #  CHECK FOR MARK REJECT AND ERROR RESET
009048,000378: 05,3067           00006                           EXTEND                                         
009049,000379: 05,3070           02016                           RAND     NAVKEYIN                              
009050,000380: 05,3071           00006                           EXTEND                                         
009051,000381: 05,3072           13100                           BZF      NONAVKEY                              #  NO MARK REJECT
009052,000382: 05,3073           00006                           EXTEND                                         
009053,000383: 05,3074           00015                           READ     MNKEYIN                               #  CHECK IF KEYS 2M AND 5M ON
009054,000384: 05,3075           63357                           AD       -ELR                                  #  MAIN DSKY KEYCODE(BITS 1-5)
009055,000385: 05,3076           00006                           EXTEND                                         
009056,000386: 05,3077           13101                           BZF      +2                                    
009057,000387: 
009058,000388: 05,3100           00002        NONAVKEY           TC       Q                                     
009059,000389: 
009060,000390: 05,3101           03105                           TC       STARTSUB                              
009061,000391: 05,3102           12472                           TCF      DOFSTART                              
009062,000392: 05,3103           03105                 +3        TC       STARTSUB                              
009063,000393: 05,3104           12477                           TCF      DOFSTRT1                              #  DO FRESH START BUT DON'T TOUCH ENGINE
009064,000394: 

Page 220
Note: Reconstructed from Luminary 099 p. 218 and Luminary 131 p. 220

009067,000397:                                                                                                  #           INITIALIZATION COMMON TO BOTH FRESH START AND RESTART.
009068,000398: 
009069,000399: 05,3105  E6,1537                                  EBANK=   AOSQ                                  
009070,000400: 05,3105           33347        STARTSUB           CAF      LDNPHAS1                              #  SET POINTER SO NEXT 20MS DOWNRUPT WILL
009071,000401: 05,3106           54335                           TS       DNTMGOTO                              #  CAUSE THE CURRENT DOWNLIST TO BE
009072,000402:                                                                                                  #  INTERRUPTED AND START SENDING FROM THE
009073,000403:                                                                                                  #  BEGINNING OF THE CURRENT DOWNLIST.
009074,000404: 05,3107           34746                           CAF      BIT6                                  
009075,000405: 05,3110           00006                           EXTEND                                         
009076,000406: 05,3111           02033                           RAND     CHAN33                                
009077,000407: 05,3112           63363                           AD       RMODINIT                              
009078,000408: 05,3113           54110                           TS       RADMODES                              
009079,000409: 
009080,000410: 05,3114           34733        STARTSB1           CAF      POSMAX                                
009081,000411: 05,3115           54026                           TS       TIME3                                 
009082,000412: 05,3116           67751                           AD       MINUS2                                
009083,000413: 05,3117           54027                           TS       TIME4                                 
009084,000414: 05,3120           67752                           AD       NEGONE                                
009085,000415: 05,3121           54030                           TS       TIME5                                 
009086,000416: 
009087,000417: 05,3122           35015                           CAF      EBANK6                                
009088,000418: 05,3123           54003                           TS       EBANK                                 
009089,000419: 
009090,000420: 05,3124           44737                           CS       BIT13                                 #  CAUSE DAPIDLER TO CALL 1/ACCS
009091,000421: 05,3125           71262                           MASK     RCSFLAGS                              
009092,000422: 05,3126           55262                           TS       RCSFLAGS                              #  ZERO BIT 13
009093,000423: 05,3127           34733                           CAF      POSMAX                                #  DISABLE TIME6 CLOCK.  JUST IN CASE A T6
009094,000424: 05,3130           55466                           TS       T6NEXT                                #    RUPT IS ALREADY IN THE PRIORITY CHAIN,
009095,000425: 05,3131           00006                           EXTEND                                         #    ENSURE THAT IT'S INPUTS WILL RENDER IT
009096,000426: 05,3132           03013                           WAND     CHAN13                                #    INEFFECTUAL.
009097,000427: 05,3133           34755                           CAF      ZERO                                  
009098,000428: 05,3134           55465                           TS       NXT6ADR                               
009099,000429: 05,3135           55472                           TS       NEXTP                                 
009100,000430: 
009101,000431: 05,3136           44751                           CS       ACCSOKAY                              
009102,000432: 05,3137           70111                           MASK     DAPBOOLS                              
009103,000433: 05,3140           54111                           TS       DAPBOOLS                              
009104,000434: 
009105,000435: 05,3141           00006                           EXTEND                                         #  SET T5RUPT FOR DAPIDLER PROGRAM.
009106,000436: 05,3142           33345                           DCA      IDLEADR                               
009107,000437: 05,3143           53264                           DXCH     T5ADR                                 
009108,000438: 
009109,000439: 05,3144           33356        STARTSB2           CAF      OCT30001                              #  DURING SOFTWARE RESTART, DO NOT DISTURB
009110,000440: 05,3145           00006                           EXTEND                                         #  ENGINE ON, OFF AND ISS WARNING.
009111,000441: 05,3146           03011                           WAND     DSALMOUT                              
009112,000442: 
009113,000443: 05,3147           44743                           CS       READRBIT                              #  CLEAR READRFLG FOR R29.
009114,000444: 05,3150           70077                           MASK     FLAGWRD3                              
009115,000445: 05,3151           54077                           TS       FLAGWRD3                              

Note: This is the end of the reconstructed pages 216-220.

009117,000447: 

Page 221

009119,000449: 
009120,000450: 05,3152           40077                           CS       FLAGWRD3                              #  DURING SOFTWARE RESTART,CLEAR TURNON,
009121,000451: 05,3153           74741                           MASK     NR29FBIT                              #  REPOSITION,CDU ZERO AND REMODE BITS
009122,000452: 05,3154           00006                           EXTEND                                         #  IN RADMODES,SINCE TASKS ASSOCIATED
009123,000453: 05,3155           13157                           BZF      +2                                    #  WITH THESE BITS HAVE BEEN KILLED
009124,000454: 05,3156           34742                           CAF      BIT10                                 #  ALSO IF R29 HAD BEEN REQUESTED,
009125,000455: 05,3157           63352                           AD       OCT32001                              #  (NOR29FLG = 0) CLEAR BIT 10 RADMODES
009126,000456: 05,3160           40000                           COM                                            #  TO MAKE R29 FORGET IT HAD STARTED
009127,000457: 05,3161           70110                           MASK     RADMODES                              #  DESIGNATING
009128,000458: 05,3162           54110                           TS       RADMODES                              
009129,000459: 05,3163           33354                           CAF      OCT27470                              #  DURING SOFTWARE RESTART, DO NOT DISTURB
009130,000460: 05,3164           00006                           EXTEND                                         #  IMU FLAGS. (COURSE ALIGN ENABLE, ZERO
009131,000461: 05,3165           03012                           WAND     CHAN12                                #  IMU CDUS, ENABLE IMU COUNTER) AND GIMBAL
009132,000462:                                                                                                  #  TRIM DRIVES. LEAVE RR LOCKON ENABLE
009133,000463:                                                                                                  #  ALONE.
009134,000464: 
009135,000465: 05,3166           44750                           CS       NORRMBIT                              #  ENABLE R25.
009136,000466: 05,3167           70101                           MASK     FLAGWRD5                              
009137,000467: 05,3170           54101                           TS       FLAGWRD5                              
009138,000468: 
009139,000469: 05,3171           44741                           CS       R77FLBIT                              #  CLEAR R77FLAG
009140,000470: 05,3172           70101                           MASK     FLAGWRD5                              
009141,000471: 05,3173           54101                           TS       FLAGWRD5                              
009142,000472: 05,3174           33355                           CAF      OCT74160                              #  DURING SOFTWARE RESTART, DO NOT DUSTURB
009143,000473: 05,3175           00006                           EXTEND                                         #  TELEMETRY FLAGS, RESET TRAP FLAGS, AND
009144,000474: 05,3176           03013                           WAND     CHAN13                                #  ENABLE T6RUPT FLAG.
009145,000475: 
009146,000476: 05,3177           34740                           CAF      BIT12                                 #  REENABLE RUPT10 (RUPT QUICKLY
009147,000477: 05,3200           00006                           EXTEND                                         #    RESUMES EXCEPT DURING P64)
009148,000478: 05,3201           05013                           WOR      CHAN13                                
009149,000479: 
009150,000480: 05,3202           34746                           CAF      BIT6                                  #  DURING SOFTWARE RESTART, DO NOT DISTURB
009151,000481: 05,3203           00006                           EXTEND                                         #  GYRO ENABLE FLAG.
009152,000482: 05,3204           03014                           WAND     CHAN14                                
009153,000483: 
009154,000484: 05,3205  E3,1400                                  EBANK=   LST1                                  
009155,000485: 05,3205           35007                           CAF      STARTEB                               
009156,000486: 05,3206           54003                           TS       EBANK                                 #  SET FOR E3
009157,000487: 
009158,000488: 05,3207           34734                           CAF      NEG1/2                                #  INITIALIZE WAITLIST DELTA-TS.
009159,000489: 05,3210           55407                           TS       LST1       +7                         
009160,000490: 05,3211           55406                           TS       LST1       +6                         
009161,000491: 05,3212           55405                           TS       LST1       +5                         
009162,000492: 05,3213           55404                           TS       LST1       +4                         
009163,000493: 05,3214           55403                           TS       LST1       +3                         
009164,000494: 05,3215           55402                           TS       LST1       +2                         
009165,000495: 05,3216           55401                           TS       LST1       +1                         
009166,000496: 05,3217           55400                           TS       LST1                                  
009167,000497: 
009168,000498: 05,3220           45236                           CS       ENDTASK                               
009169,000499: 05,3221           55410                           TS       LST2                                  
009170,000500: 

Page 222

009172,000502: 05,3222           55412                           TS       LST2       +2                         
009173,000503: 05,3223           55414                           TS       LST2       +4                         
009174,000504: 05,3224           55416                           TS       LST2       +6                         
009175,000505: 05,3225           55420                           TS       LST2       +8D                        
009176,000506: 05,3226           55422                           TS       LST2       +10D                       
009177,000507: 05,3227           55424                           TS       LST2       +12D                       
009178,000508: 05,3230           55426                           TS       LST2       +14D                       
009179,000509: 05,3231           55430                           TS       LST2       +16D                       
009180,000510: 05,3232           45237                           CS       ENDTASK    +1                         
009181,000511: 05,3233           55411                           TS       LST2       +1                         
009182,000512: 05,3234           55413                           TS       LST2       +3                         
009183,000513: 05,3235           55415                           TS       LST2       +5                         
009184,000514: 05,3236           55417                           TS       LST2       +7                         
009185,000515: 05,3237           55421                           TS       LST2       +9D                        
009186,000516: 05,3240           55423                           TS       LST2       +11D                       
009187,000517: 05,3241           55425                           TS       LST2       +13D                       
009188,000518: 05,3242           55427                           TS       LST2       +15D                       
009189,000519: 05,3243           55431                           TS       LST2       +17D                       
009190,000520: 
009191,000521: 05,3244           44755                           CS       ZERO                                  #  MAKE ALL EXECUTIVE REGISTER SETS
009192,000522: 05,3245           54167                           TS       PRIORITY                              #  AVAILABLE.
009193,000523: 05,3246           54203                           TS       PRIORITY   +12D                       
009194,000524: 05,3247           54217                           TS       PRIORITY   +24D                       
009195,000525: 05,3250           54233                           TS       PRIORITY   +36D                       
009196,000526: 05,3251           54247                           TS       PRIORITY   +48D                       
009197,000527: 05,3252           54263                           TS       PRIORITY   +60D                       
009198,000528: 05,3253           54277                           TS       PRIORITY   +72D                       
009199,000529: 05,3254           54313                           TS       PRIORITY   +84D                       
009200,000530: 
009201,000531: 05,3255           55310                           TS       DSRUPTSW                              
009202,000532: 05,3256           54067                           TS       NEWJOB                                #  SHOWS NO ACTIVE JOBS.
009203,000533: 
009204,000534: 05,3257           33351                           CAF      VAC1ADRC                              #  MAKE ALL VAC AREAS AVAILABLE.
009205,000535: 05,3260           54400                           TS       VAC1USE                               
009206,000536: 05,3261           63353                           AD       LTHVACA                               
009207,000537: 05,3262           54454                           TS       VAC2USE                               
009208,000538: 05,3263           63353                           AD       LTHVACA                               
009209,000539: 05,3264           54530                           TS       VAC3USE                               
009210,000540: 05,3265           63353                           AD       LTHVACA                               
009211,000541: 05,3266           54604                           TS       VAC4USE                               
009212,000542: 05,3267           63353                           AD       LTHVACA                               
009213,000543: 05,3270           54660                           TS       VAC5USE                               
009214,000544: 
009215,000545: 05,3271           34363                           CAF      TEN                                   
009216,000546: 05,3272           54154        DSPOFF             TS       MPAC                                  #  R1, R2, R3).
009217,000547: 05,3273           44740                           CS       BIT12                                 
009218,000548: 05,3274           50154                           INDEX    MPAC                                  
009219,000549: 05,3275           55022                           TS       DSPTAB                                
009220,000550: 05,3276           10154                           CCS      MPAC                                  
009221,000551: 05,3277           13272                           TCF      DSPOFF                                
009222,000552: 

Page 223

009224,000554: 05,3300           55323                           TS       DELAYLOC                              
009225,000555: 05,3301           55324                           TS       DELAYLOC   +1                         
009226,000556: 05,3302           55325                           TS       DELAYLOC   +2                         
009227,000557: 05,3303           55073                           TS       R1SAVE                                
009228,000558: 05,3304           54045                           TS       INLINK                                
009229,000559: 05,3305           54775                           TS       DSPCNT                                
009230,000560: 05,3306           55041                           TS       CADRSTOR                              
009231,000561: 05,3307           55012                           TS       REQRET                                
009232,000562: 05,3310           55014                           TS       CLPASS                                
009233,000563: 05,3311           55011                           TS       DSPLOCK                               
009234,000564: 05,3312           55017                           TS       MONSAVE                               #  KILL MONITOR
009235,000565: 05,3313           55020                           TS       MONSAVE1                              
009236,000566: 05,3314           55000                           TS       VERBREG                               
009237,000567: 05,3315           55001                           TS       NOUNREG                               
009238,000568: 05,3316           55042                           TS       DSPLIST                               
009239,000569: 05,3317           55307                           TS       MARKSTAT                              
009240,000570: 05,3320           55043                           TS       EXTVBACT                              #  MAKE EXTENDED VERBS AVAILABLE
009241,000571: 05,3321           55301                           TS       IMUCADR                               
009242,000572: 05,3322           55302                           TS       OPTCADR                               
009243,000573: 05,3323           55303                           TS       RADCADR                               
009244,000574: 05,3324           55304                           TS       ATTCADR                               
009245,000575: 05,3325           55311                           TS       LGYRO                                 
009246,000576: 05,3326           54100                           TS       FLAGWRD4                              #  KILL INTERFACE DISPLAYS
009247,000577: 05,3327           34760                           CAF      NOUTCON                               
009248,000578: 05,3330           55015                           TS       NOUT                                  
009249,000579: 
009250,000580: 05,3331           44753                           CS       ONE                                   
009251,000581: 05,3332           55077                           TS       SAMPLIM                               
009252,000582: 05,3333           34746                           CAF      BIT6                                  
009253,000583: 05,3334           71300                           MASK     IMODES33                              #  LEAVE BIT 6 UNCHANGED
009254,000584: 05,3335           65026                           AD       IM33INIT                              #  NO PIP OR TM FAILS.BIT6=0 IN THIS WORD.
009255,000585: 05,3336           55300                           TS       IMODES33                              
009256,000586: 
009257,000587: 05,3337           33350                           CAF      LESCHK                                #  SELF CHECK GO-TO REGISTER.
009258,000588: 05,3340           55361                           TS       SELFRET                               
009259,000589: 
009260,000590: 05,3341           44360                           CS       VD1                                   
009261,000591: 05,3342           54776                           TS       DSPCOUNT                              
009262,000592: 
009263,000593: 05,3343           00002                           TC       Q                                     
009264,000594: 05,3344  E6,1537                                  EBANK=   AOSQ                                  
009265,000595: 05,3344           02024 34066  IDLEADR            2CADR    DAPIDLER                              
009266,000596: 
009267,000597: 05,3346           00435        IFAILINH           OCT      435                                   
009268,000598: 05,3347           03507        LDNPHAS1           GENADR   DNPHASE1                              
009269,000599: 05,3350           03357        LESCHK             GENADR   SELFCHK                               
009270,000600: 05,3351           00400        VAC1ADRC           ADRES    VAC1USE                               
009271,000601: 05,3352           32001        OCT32001           OCT      32001                                 
009272,000602: 05,3353           00054        LTHVACA            DEC      44         B-14                       
009273,000603: 

Page 224

009275,000605: 05,3354           27470        OCT27470           OCT      27470                                 
009276,000606: 05,3355           74160        OCT74160           OCT      74160                                 
009277,000607: 05,3356           30001        OCT30001           OCT      30001                                 
009278,000608: 05,3357     5007               STARTEB            EQUALS   EBANK3                                
009279,000609: 05,3357     4756               NUMGRPS            EQUALS   FIVE                                  
009280,000610: 05,3357           77755        -ELR               OCT      -22                                   #  -ERROR LIGHT RESET KEY CODE.
009281,000611: 05,3360           37411        IM30INIF           OCT      37411                                 #  INHIBITS IMU FAIL FOR 5 SEC AND PIP ISSW
009282,000612: 05,3361           37000        IM30INIR           OCT      37000                                 
009283,000613: 05,3362     5026               IM33INIT           =        PRIO16                                #  NO PIP OR TM FAIL SIGNALS.
009284,000614: 05,3362           00450        9,6,4              OCT      450                                   
009285,000615: 05,3363           00102        RMODINIT           OCT      00102                                 
009286,000616: 05,3364           00000        SWINIT             OCT      0                                     
009287,000617: 05,3365           00000                           OCT      0                                     
009288,000618: 05,3366           00000                           OCT      0                                     
009289,000619: 05,3367           02000                           OCT      02000                                 #  BIT 11 = NOR29FLG
009290,000620: 05,3370           00000                           OCT      0                                     
009291,000621: 05,3371           00000                           OCT      0                                     
009292,000622: 05,3372           00000                           OCT      0                                     
009293,000623: 05,3373           00100                           OCT      00100                                 
009294,000624: 
009295,000625: 05,3374           00000                           OCT      0                                     
009296,000626: 05,3375           00000                           OCT      0                                     
009297,000627: 05,3376           00000                           OCT      0                                     
009298,000628: 05,3377           40000                           OCT      40000                                 #  BIT 15 = LRBYPASS.
009299,000629: 

Page 225

009301,000631:                                                                                                  #  PROGRAM NAME    GOTOPOOH                  ASSEMBLY      SUNDANCE
009302,000632:                                                                                                  #  LOG SECTION     FRESH START AND RESTART
009303,000633: 
009304,000634:                                                                                                  #  FUNCTIONAL DESCRIPTION
009305,000635: 
009306,000636:                                                                                                  #        FLASH V 37 ON DSKY %MM CHANGE REQUEST "
009307,000637: 
009308,000638:                                                                                                  #  INPUT/OUTPUT INFORMATION
009309,000639: 
009310,000640:                                                                                                  #        A. CALLING SEQUENCE        TC GOTOPOOH
009311,000641: 
009312,000642:                                                                                                  #        B. ERASABLE INITIALIZATION       NONE
009313,000643: 
009314,000644:                                                                                                  #        C. OUTPUT FLASH V 37 ON DSKY
009315,000645: 
009316,000646:                                                                                                  #        D. DEBRIS       L
009317,000647: 
009318,000648:                                                                                                  #  PROGRAM ANALYSIS
009319,000649: 
009320,000650:                                                                                                  #        A. SUBROUTINES CALLED PRIODSPR,  LINUS
009321,000651: 
009322,000652:                                                                                                  #        B. NORMAL EXIT        TCF ENDOFJOB
009323,000653: 
009324,000654:                                                                                                  #        C. ALARM AND ABORT EXITS       NONE
009325,000655: 
009326,000656:    6001                                           BLOCK    03                                    
009327,000657:    6000                                           SETLOC   FFTAG5                                
009328,000658:    6000                                           BANK                                           
009329,000659: 
009330,000660:    6001                                           COUNT*   $$/P00                                
009331,000661:    6001           34764        GOTOPOOH           CAF      OCT33                                 #  4.33SPOT FOR GOPOOFIX
009332,000662:    6002           54001                           TS       L                                     
009333,000663:    6003           40000                           COM                                            
009334,000664:    6004           52760                           DXCH     -PHASE4                               
009335,000665: 
009336,000666:    6005           04635                           TC       POSTJUMP                              
009337,000667:    6006           10024                           CADR     GOPOOFIX                              
009338,000668:    6007           00024        OCT24              MM       20         B-14                       
009339,000669:    6010           00031        OCT31              MM       25         B-14                       
009340,000670: 
009341,000671: 20,2004                                           BANK     20                                    
009342,000672: 04,2000                                           SETLOC   VERB37                                
009343,000673: 04,2000                                           BANK                                           
009344,000674: 
009345,000675: 04,2024                                           COUNT*   $$/P00                                #  VERB 37 AND P00 IN BANK 4.
009346,000676: 04,2024           05516        GOPOOFIX           TC       DOWNFLAG                              #  ALLOW X-AXIS OVERRIDE
009347,000677: 04,2025           00311                           ADRES    XOVINFLG                              
009348,000678: 
009349,000679: 04,2026           05516                           TC       DOWNFLAG                              #  INSURE THAT ULLAGE IS OFF
009350,000680: 04,2027           00314                           ADRES    ULLAGFLG                              
009351,000681: 

Page 226
Note: Page 226 is missing from the original scan of Luminary131. This page is reconstructed using Luminary 99 p. 225 and Luminary 131 p. 225

009355,000685: 04,2030           05476                           TC       CLEARMRK   +2                         #  RELEASE MARK DISPLAY SYSTEM.
009356,000686: 04,2031           32037                           CAF      V37N99                                
009357,000687: 04,2032           04616                           TC       BANKCALL                              
009358,000688: 04,2033           20477                           CADR     GOFLASH                               
009359,000689: 04,2034           12031                           TCF      -3                                    
009360,000690: 04,2035           12031                           TCF      -4                                    
009361,000691: 04,2036           12031                           TCF      -5                                    
009362,000692: 
009363,000693: 04,2037           11343        V37N99             VN       3799                                  
009364,000694: 

Page 227

009366,000696:                                                                                                  #  PROGRAM NAME    V37                       ASSEMBLY      SUNDANCE
009367,000697: 
009368,000698:                                                                                                  #  LOG SECTION     FRESH START AND RESTART
009369,000699: 
009370,000700:                                                                                                  #  FUNCTIONAL DESCRIPTION
009371,000701: 
009372,000702:                                                                                                  #        1. CHECK IF NEW PROGRAM ALLOWED. IF BIT 1 OF FLAGWRD2(NODOFLAG) IS SET, AN ALARM 1520 IS CALLED.
009373,000703:                                                                                                  #        2. CHECK FOR VALIDITY OF PROGRAM SELECTED. IF AN INVALID PROGRAM  IS SELECTED, THE OPERATOR ERROR LIGHT IS
009374,000704:                                                                                                  #           SET AND CURRENT ACTIVITY, IF ANY, CONTINUES.
009375,000705:                                                                                                  #        3. SERVICER IS TERMINATED IF IT HAS BEEN RUNNING.
009376,000706:                                                                                                  #        4. INSTALL IS EXECUTED TO AVOID INTERRUPTING INTEGRATION.
009377,000707:                                                                                                  #        5. THE ENGINE IS TURNED OFF AND THE DAP IS INITIALIZED FOR COAST.
009378,000708:                                                                                                  #        6. TRACK AND UPDATE FLAGS ARE SET TO ZERO.
009379,000709:                                                                                                  #        7. DISPLAY SYSTEM IS RELEASED.
009380,000710:                                                                                                  #        8. THE FOLLOWING ARE PERFORMED FOR EACH OF THE THREE CASES.
009381,000711:                                                                                                  #          A. PROGRAM SELECTED IS P00.
009382,000712:                                                                                                  #             1. RENDEZVOUS AND P25 FLAGS ARE RESET.(KILL P20 AND P25)
009383,000713:                                                                                                  #             2. STATINT1     IS SCHEDULED BY SETTING RESTART GROUP 2.
009384,000714:                                                                                                  #             3. MAJOR MODE 00 IS STORED IN THE MODE REGISTER(MODREG).
009385,000715:                                                                                                  #             4. SUPERBANK 3 IS SELECTED.
009386,000716:                                                                                                  #             5. NODOFLAG IS RESET.
009387,000717:                                                                                                  #             6. ALL RESTART GROUPS EXCEPT GROUP2 ARE CLEARED. CONTROL ISTRANSFERRED TO RESTART PROGRAM (GOPROG2)
009388,000718:                                                                                                  #                WHICH CAUSES ALL CURRENT ACTIVITY TO BE DISCONTINUED AND A 9 MINUTE INTEGRATION CYCLE TO BE
009389,000719:                                                                                                  #                INITIATED.
009390,000720:                                                                                                  #          B. PROGRAM SELECTED IS P20 OR P25.
009391,000721:                                                                                                  #             1. IF THE CURRENT MAJOR MODE IS THE SAME AS THE SELECTED NEWPROGRAM, THE PROGRAM IS RE-INITIALIZED
009392,000722:                                                                                                  #                VIA V37XEQ, ALL RESTART GROUPS, EXCEPT GROUP 4 ARE CLEARED.
009393,000723:                                                                                                  #             2. IF THE CURRENT MAJOR MODE IS NOT EQUAL TO THE NEW REQUEST, A CHECK IS MADE TO SEE IF THE REQUEST-
009394,000724:                                                                                                  #                ED MAJOR MODE HAS BEEN RUNNING IN THE BACKGROUND,
009395,000725:                                                                                                  #                AND IF IT HAS, NO NEW PROGRAM IS SCHEDULED, THE EXISTING
009396,000726:                                                                                                  #                P20 OR P25 IS RESTARTED TO CONTINUE, AND ITS M M IS SET.
009397,000727:                                                                                                  #             3. CONTROL IS TRANSFERRED TO GOPROG2.
009398,000728:                                                                                                  #          C. PROGRAM SELECTED IS NEITHER P00,P20, NOR P25
009399,000729:                                                                                                  #             1. V37XEQ IS SCHEDULED (AS A JOB) BY SETTING RESTART GROUP 4
009400,000730:                                                                                                  #             2. ALL CURRENT ACTIVITY EXCEPT RENDEZVOUS AND TRACKING IS DISCONTINUED BY CLEARING ALL RESTART
009401,000731:                                                                                                  #                GROUPS. IF THE RENDEZVOUS OR THE P25 FLAG IS ON, GROUP 2 IS NOT CLEARED, ALLOWING THESE PROGRAMS
009402,000732:                                                                                                  #                TO CONTINUE.
009403,000733: 
009404,000734:                                                                                                  #  INPUT/OUTPUT INFORMATION
009405,000735: 
009406,000736:                                                                                                  #        A. CALLING SEQUENCE
009407,000737: 
009408,000738:                                                                                                  #            CONTROL IS DIRECTED TO V37 BY THE VERBFAN ROUTINE.
009409,000739:                                                                                                  #               VERBFAN GOES TO C(VERBTAB+C(VERBREG)). VERB 37 = MMCHANG.
009410,000740:                                                                                                  #               MMCHANG EXECUTES A   TC POSTJUMP, CADR V37.
009411,000741: 
009412,000742:                                                                                                  #        B. ERASABLE INITIALIZATION      NONE
009413,000743: 
009414,000744: 
009415,000745:                                                                                                  #        C. OUTPUT
009416,000746: 

Page 228

009418,000748:                                                                                                  #            MAJOR MODE CHANGE
009419,000749: 
009420,000750:                                                                                                  #        D. DEBRIS
009421,000751:                                                                                                  #             MMNUMBER, MPAC +1, MINDEX, BASETEMP +C(MINDEX), FLAGWRD0, FLAGWRD1, FLAGWRD2, MODREG, GOLOC -1,
009422,000752:                                                                                                  #             GOLOC, GOLOC +1, GOLOC +2, BASETEMP, -PHASE2, PHASE2, -PHASE4
009423,000753: 
009424,000754:                                                                                                  #  PROGRAM ANALYSIS
009425,000755: 
009426,000756:                                                                                                  #        A. SUBROUTINES CALLED
009427,000757:                                                                                                  #             ALARM, RELDSP, PINBRNCH, INTSTALL, ENGINOF2, ALLCOAST, V37KLEAN, GOPROG2, FALTON, FINDVAC, SUPERSW,
009428,000758:                                                                                                  #             DSPMM
009429,000759: 
009430,000760:                                                                                                  #        B. NORMAL EXIT        TC ENDOFJOB
009431,000761: 
009432,000762:                                                                                                  #        C. ALARMS      1520 (MAJOR MODE CHANGE NOT PERMITTED)
009433,000763: 
009434,000764: 04,2040           54774        V37                TS       MMNUMBER                              #  SAVE MAJOR MODE
009435,000765: 04,2041           34355                           CAF      PRIO30                                #  RESTART AT PINBALL PRIORITY
009436,000766: 04,2042           54366                           TS       RESTREG                               
009437,000767: 
009438,000768: 04,2043           31277                           CA       IMODES30                              #  IS IMU BEINB INITIALIZED
009439,000769: 04,2044           74746                           MASK     BIT6                                  
009440,000770: 04,2045           10000                           CCS      A                                     
009441,000771: 04,2046           12065                           TCF      CANTROD                               
009442,000772: 
009443,000773: 04,2047           40774                           CS       MMNUMBER                              #  IS P70 REQUESTED?
009444,000774: 04,2050           62401                           AD       DEC70                                 
009445,000775: 04,2051           00006                           EXTEND                                         
009446,000776: 04,2052           12374                           BZF      SETUP70                               #  YES
009447,000777: 04,2053           64753                           AD       ONE                                   #  IS P71 REQUESTED?
009448,000778: 04,2054           00006                           EXTEND                                         
009449,000779: 04,2055           12373                           BZF      SETUP71                               #  YES
009450,000780: 
009451,000781: 04,2056           30774                           CA       MMNUMBER                              #  IS NEW REQUEST POO
009452,000782: 04,2057           00006                           EXTEND                                         
009453,000783: 04,2060           12107                           BZF      ISSERVON                              #  YES, CHECK SERVICER STATUS
009454,000784: 
009455,000785: 04,2061           40076                           CS       FLAGWRD2                              #  NO, IS NODO V37 FLAG SET
009456,000786: 04,2062           74753                           MASK     NODOBIT                               
009457,000787: 04,2063           10000                           CCS      A                                     
009458,000788: 04,2064           12072                           TCF      CHECKTAB                              #  NO
009459,000789: 04,2065           05567        CANTROD            TC       ALARM                                 
009460,000790: 04,2066           01520                           OCT      1520                                  
009461,000791: 
009462,000792: 04,2067           04457        V37BAD             TC       RELDSP                                #  RELEASES DISPLAY FROM ASTRONAUT
009463,000793: 
009464,000794: 04,2070           04635                           TC       POSTJUMP                              #  BRING BACK LAST NORMAL DISPLAY IF THERE
009465,000795: 04,2071           21051                           CADR     PINBRNCH                              #  WAS ONE. OTHERWISE DO AN EOJ.
009466,000796: 
009467,000797: 04,2072           32466        CHECKTAB           CA       NOV37MM                               #  INDEX FOR MM TABLES.
009468,000798: 

Page 229

009470,000800: 04,2073           54155        AGAINMM            TS       MPAC       +1                         
009471,000801: 04,2074           50155                           NDX      MPAC       +1                         
009472,000802: 04,2075           32435                           CA       PREMM1                                #  OBTAIN WHICH MM THIS IS FOR
009473,000803: 04,2076           76077                           MASK     LOW7                                  
009474,000804: 04,2077           40000                           COM                                            
009475,000805: 04,2100           60774                           AD       MMNUMBER                              
009476,000806: 04,2101           10000                           CCS      A                                     
009477,000807: 04,2102           10155                           CCS      MPAC       +1                         #  IF GR, SEE IF ANY MORE IN LIST
009478,000808: 04,2103           12073                           TCF      AGAINMM                               #  YES, GET NEXT ONE
009479,000809: 04,2104           12324                           TCF      V37NONO                               #  LAST TIME OR PASSED MM
009480,000810: 
009481,000811: 04,2105           30155                           CA       MPAC       +1                         
009482,000812: 04,2106           54773                           TS       MINDEX                                #  SAVE INDEX FOR LATER
009483,000813: 
009484,000814: 04,2107           40103        ISSERVON           CS       FLAGWRD7                              #  V37 FLAG SET - I.E. IS SERVICER GOING
009485,000815: 04,2110           74746                           MASK     V37FLBIT                              
009486,000816: 04,2111           10000                           CCS      A                                     
009487,000817: 04,2112           12132                           TCF      CANV37                                #  NO
009488,000818: 
009489,000819: 04,2113           05516                           TC       DOWNFLAG                              #  YES, TURN OFF THE AVERAGE FLAG AND
009490,000820: 04,2114           00163                           ADRES    AVEGFLAG                              #  WAIT FOR SERVICER TO RETURN TO V37RET.
009491,000821: 
009492,000822: 04,2115           15155                           TCF      ENDOFJOB                              
009493,000823: 
009494,000824: 04,2116           40074        V37RET             CS       FLAGWRD0                              #  IS P20 OR P22 RUNNING?
009495,000825: 04,2117           74745                           MASK     RNDVZBIT                              
009496,000826: 04,2120           10000                           CCS      A                                     
009497,000827: 04,2121           12123                           TCF      +2                                    #  NO. CHECK FOR P25.
009498,000828: 04,2122           12130                           TCF      2.7SPT                                #  YES.  DO 2.7SPOT
009499,000829: 04,2123           40074                           CS       FLAGWRD0                              #  IS P25 RUNNING?
009500,000830: 04,2124           74743                           MASK     P25FLBIT                              
009501,000831: 04,2125           10000                           CCS      A                                     
009502,000832: 04,2126           32370        2.0SPT             CA       OCT37667                              
009503,000833: 04,2127           64747        2.11SPT            AD       BIT5                                  
009504,000834: 04,2130           62371        2.7SPT             AD       OCT40072                              
009505,000835: 04,2131           05357                           TC       PHSCHNGA                              
009506,000836: 
009507,000837: 04,2132           34755        CANV37             CAF      ZERO                                  
009508,000838: 04,2133           00006                           EXTEND                                         
009509,000839: 04,2134           01007                           WRITE    SUPERBNK                              
009510,000840: 
009511,000841: 04,2135           32367                           CAF      ROOAD                                 
009512,000842: 04,2136           54374                           TS       TEMPFLSH                              
009513,000843: 
009514,000844: 04,2137           05353                           TC       PHASCHNG                              
009515,000845: 04,2140           00014                           OCT      14                                    
009516,000846: 
009517,000847: 04,2141           06042        ROO                TC       INTPRET                               
009518,000848: 
009519,000849: 04,2142           77624                           CALL                                           #  WAIT FOR INTEGRATION TO FINISH
009520,000850: 

Page 230

009522,000852: 04,2143           27412                                    INTSTALL                              
009523,000853: 04,2144           77776        DUMMYAD            EXIT                                           
009524,000854: 
009525,000855: 04,2145           05516                           TC       DOWNFLAG                              
009526,000856: 04,2146           00124                           ADRES    3AXISFLG                              #  RESET 3-AXIS FLAG
009527,000857: 
009528,000858: 04,2147           05516                           TC       DOWNFLAG                              
009529,000859: 04,2150           00055                           ADRES    POOHFLAG                              
009530,000860: 
009531,000861: 04,2151           34735                           CAF      LRBYBIT                               #  CLEAN UP THE R12 FLAGWORD.
009532,000862: 04,2152           54107                           TS       FLGWRD11                              
009533,000863: 
009534,000864: 04,2153           05516                           TC       DOWNFLAG                              #  INSURE THAT THE R04FLAG IS CLEAR.
009535,000865: 04,2154           00063                           ADRES    R04FLAG                               
009536,000866: 
009537,000867: 04,2155           05516                           TC       DOWNFLAG                              
009538,000868: 04,2156           00056                           ADRES    GLOKFAIL                              #  FLAGWORD 3 BIT 14
009539,000869: 
009540,000870: 04,2157           05516                           TC       DOWNFLAG                              #  INSURE MUNFLAG IS CLEAR.
009541,000871: 04,2160           00141                           ADRES    MUNFLAG                               
009542,000872: 
009543,000873: 04,2161           05516                           TC       DOWNFLAG                              #  ALLOW X-AXIS OVERRIDE.
009544,000874: 04,2162           00311                           ADRES    XOVINFLG                              
009545,000875: 04,2163           10774                           CCS      MMNUMBER                              #  IS THIS A POOH REQUEST
009546,000876: 04,2164           12312                           TCF      NOUVEAU                               #  NO, PICK UP NEW PROGRAM
009547,000877: 
009548,000878: 04,2165           04457        POOH               TC       RELDSP                                #  RELEASE DISPLAY SYSTEM
009549,000879: 
009550,000880: 04,2166           35017                           CAF      PRIO5                                 #  SET VARIABLE RESTART PRIORITY FOR
009551,000881: 04,2167           55055                           TS       PHSPRDT2                              #  P00 INTEGRATION.
009552,000882: 
009553,000883: 04,2170           06011                           TC       CLRADMOD                              #  CLRADMOD DOES AN INHINT.
009554,000884: 
009555,000885: 04,2171           44753                           CS       NODOBIT                               #  TURN OFF NODOFLAG.
009556,000886: 04,2172           70076                           MASK     FLAGWRD2                              
009557,000887: 04,2173           54076                           TS       FLAGWRD2                              
009558,000888: 
009559,000889: 04,2174           34756                           CA       FIVE                                  #  SET RESTART FOR STATEINT1
009560,000890: 04,2175           54001                           TS       L                                     
009561,000891: 04,2176           40000                           COM                                            
009562,000892: 04,2177           52754                           DXCH     -PHASE2                               
009563,000893: 
009564,000894: 04,2200           42372                           CS       OCT700                                #  TURN OFF P20,P25,IMU IN USE FLAG
009565,000895: 04,2201           70074                           MASK     FLAGWRD0                              
009566,000896: 04,2202           54074                           TS       FLAGWRD0                              #                         RENDFLG
009567,000897: 
009568,000898: 04,2203           34755                           CAF      DNLADP00                              
009569,000899: 
009570,000900: 04,2204           54333        SEUDOPOO           TS       DNLSTCOD                              #  SET UP APPROPRIATE DOWNLIST CODE
009571,000901: 04,2205           55321                           TS       AGSWORD                               #   (CURRENT LIST WILL BE COMPLETED BEFORE
009572,000902: 

Page 231

009574,000904:                                                                                                  #    NEW ONE IS STARTED)
009575,000905: 04,2206           04674                           TC       IBNKCALL                              
009576,000906: 04,2207           75561                           CADR     ENGINOF1                              
009577,000907: 
009578,000908: 04,2210           04674                           TC       IBNKCALL                              #  INSURE ALLCOAST.
009579,000909: 04,2211           40205                           CADR     ALLCOAST                              #  DOES A RESTORDB.
009580,000910: 
009581,000911: 04,2212           44775                           CS       OCT120                                #  TURN OFF TRACK, UPDATE FLAGS
009582,000912: 04,2213           55071                           TS       EBANKTEM                              
009583,000913: 04,2214           70075                           MASK     FLAGWRD1                              
009584,000914: 04,2215           54075                           TS       FLAGWRD1                              
009585,000915: 
009586,000916: 04,2216           04674                           TC       IBNKCALL                              #  KILL GROUPS 1,3,5,6
009587,000917: 04,2217           12650                           CADR     V37KLEAN                              
009588,000918: 
009589,000919: 04,2220           10774                           CCS      MMNUMBER                              #  IS IT POOH
009590,000920: 04,2221           12230                           TCF      RENDVOO                               #  NO
009591,000921: 04,2222           04674        GOMOD              TC       IBNKCALL                              #  REDUNDANT EXCEPT FOR GROUP 4
009592,000922: 04,2223           12645                           CADR     POOKLEAN                              
009593,000923: 
009594,000924: 04,2224           30774                           CA       MMNUMBER                              
009595,000925: 04,2225           55010                           TS       MODREG                                
009596,000926: 
009597,000927: 04,2226           04635        GOGOPROG           TC       POSTJUMP                              
009598,000928: 04,2227           12766                           CADR     GOPROG2                               
009599,000929: 
009600,000930: 04,2230           41010        RENDVOO            CS       MODREG                                #  IS CURRENT PROGRAM 22
009601,000931: 04,2231           62330                           AD       OCT26                                 
009602,000932: 04,2232           00006                           EXTEND                                         
009603,000933: 04,2233           12252                           BZF      RESET22                               #  YES - CLEAR RENDEZVOUS FLAG
009604,000934: 
009605,000935: 04,2234           40774                           CS       MMNUMBER                              #  IS NEW PROGRAM P22
009606,000936: 04,2235           62330                           AD       OCT26                                 
009607,000937: 04,2236           00006                           EXTEND                                         
009608,000938: 04,2237           12252                           BZF      RESET22                               
009609,000939: 
009610,000940: 
009611,000941: 04,2240           67751                           AD       NEG2                                  #  IS NEW PROGRAM = P20 OR P25
009612,000942: 04,2241           00006                           EXTEND                                         
009613,000943: 04,2242           12264                           BZF      RENDNOO                               #  YES
009614,000944: 04,2243           64756                           AD       FIVE                                  #  25
009615,000945: 04,2244           00006                           EXTEND                                         
009616,000946: 04,2245           12264                           BZF      RENDNOO                               #  YES
009617,000947: 
009618,000948: 04,2246           32326                           CA       OCT500                                #  NO, IS EITHER P20 OR P25 RUNNING
009619,000949: 04,2247           70074                           MASK     FLAGWRD0                              
009620,000950: 04,2250           10000                           CCS      A                                     
009621,000951: 04,2251           12261                           TCF      POOFIZZ                               #  YES, LEAVE GROUP 2 TO PICK UP P20 OR P25
009622,000952: 

Page 232

009624,000954: 
009625,000955: 04,2252           42372        RESET22            CS       OCT700                                #  CLEAR RENDEZVOUS, P25
009626,000956: 04,2253           70074                           MASK     FLAGWRD0                              #  AND IMU IN USE FLAGS
009627,000957: 04,2254           54074                           TS       FLAGWRD0                              
009628,000958: 04,2255           06011                           TC       CLRADMOD                              
009629,000959: 
009630,000960: 04,2256           00006        KILL2              EXTEND                                         #  NO, KILL 2
009631,000961: 04,2257           34755                           DCA      NEG0                                  
009632,000962: 04,2260           52754                           DXCH     -PHASE2                               
009633,000963: 
009634,000964: 04,2261           32366        POOFIZZ            CAF      V37QCAD                               #  RESTART POINT FOR V37XEQ
009635,000965: 04,2262           54374                           TS       TEMPFLSH                              
009636,000966: 
009637,000967: 04,2263           12226                           TCF      GOGOPROG                              
009638,000968: 
009639,000969: 04,2264           41010        RENDNOO            CS       MODREG                                
009640,000970: 04,2265           66007                           AD       OCT24                                 
009641,000971: 04,2266           00006                           EXTEND                                         
009642,000972: 04,2267           12256                           BZF      KILL2                                 #  P20 OR P25 ON TOP OF P20 OR P25 -
009643,000973: 
009644,000974: 04,2270           64756                           AD       FIVE                                  
009645,000975: 04,2271           00006                           EXTEND                                         
009646,000976: 04,2272           12256                           BZF      KILL2                                 
009647,000977: 
009648,000978: 04,2273           32326                           CA       OCT500                                
009649,000979: 04,2274           70074                           MASK     FLAGWRD0                              
009650,000980: 04,2275           60774                           AD       MMNUMBER                              
009651,000981: 04,2276           40000                           COM                                            
009652,000982: 04,2277           62331                           AD       P20REG                                #  IS IT 20 AND IS RENDEZVOUS FLAG ON
009653,000983: 04,2300           00006                           EXTEND                                         
009654,000984: 04,2301           12306                           BZF      STATQUO                               #  YES
009655,000985: 04,2302           62327                           AD       OCT305                                #  IS IT 25 AND IS P25 BIT ON
009656,000986: 04,2303           00006                           EXTEND                                         
009657,000987: 04,2304           12306                           BZF      STATQUO                               #  YES, LEAVE AS IS
009658,000988: 04,2305           12256                           TCF      KILL2                                 
009659,000989: 
009660,000990: 04,2306           40075        STATQUO            CS       FLAGWRD1                              #  SET TRACKFLAG
009661,000991: 04,2307           74775                           MASK     OCT120                                #      UPDATE FLAG
009662,000992: 04,2310           26075                           ADS      FLAGWRD1                              
009663,000993: 
009664,000994: 04,2311           12222                           TCF      GOMOD                                 
009665,000995: 
009666,000996: 04,2312           32326        NOUVEAU            CAF      OCT500                                #  IS P20 OR P25 FLAG SET
009667,000997: 04,2313           70074                           MASK     FLAGWRD0                              
009668,000998: 04,2314           10000                           CCS      A                                     
009669,000999: 04,2315           12320                           TCF      +3                                    #  YES
009670,001000: 04,2316           05516                           TC       DOWNFLAG                              #  NO,RESET IMUINUSE FLAG
009671,001001: 04,2317           00007                           ADRES    IMUSE                                 
009672,001002: 
009673,001003: 04,2320           50773                           INDEX    MINDEX                                
009674,001004: 04,2321           32467                           CAF      DNLADMM1                              #  OBTAIN APPROPRIATE DOWNLIST ADDRESS
009675,001005: 

Page 233

009677,001007: 04,2322           00004                           INHINT                                         
009678,001008: 04,2323           12204                           TCF      SEUDOPOO                              
009679,001009: 
009680,001010: 04,2324           04364        V37NONO            TC       FALTON                                #  COME HERE IF MM REQUESTED DOESNT EXIST
009681,001011: 
009682,001012: 04,2325           12067                           TCF      V37BAD                                
009683,001013: 
009684,001014: 04,2326     4750               OCT00010           EQUALS   BIT4                                  
009685,001015: 04,2326           00500        OCT500             OCT      500                                   #  BITS 7 AND 9
009686,001016: 04,2327           00305        OCT305             OCT      305                                   
009687,001017: 04,2330           00026        OCT26              OCT      26                                    
009688,001018: 04,2331           00124        P20REG             OCT      124                                   
009689,001019: 
009690,001020: 04,2332           00004        V37XEQ             INHINT                                         
009691,001021: 04,2333           50773                           INDEX    MINDEX                                
009692,001022: 04,2334           32435                           CAF      PREMM1                                #  OBTAIN PRIO, EBANK, AND MM
009693,001023: 04,2335           55057                           TS       MMTEMP                                
009694,001024: 04,2336           54020                           TS       CYR                                   #  SHIFT RIGHT TO BITS 14 - 10
009695,001025: 
009696,001026: 04,2337           30020                           CA       CYR                                   
009697,001027: 04,2340           77730                           MASK     PRIO37                                
009698,001028: 04,2341           55061                           TS       PHSPRDT4                              #  PRESET GROUP 4 RESTART PRIORITY
009699,001029: 04,2342           54063                           TS       NEWPRIO                               #  STORE PRIO FOR SPVAC
009700,001030: 
009701,001031: 04,2343           31057                           CA       MMTEMP                                #  OBTAIN EBANK - BITS 8, 9, 10 OF MMTEMP.
009702,001032: 04,2344           00006                           EXTEND                                         
009703,001033: 04,2345           74744                           MP       BIT8                                  
009704,001034: 04,2346           74757                           MASK     LOW3                                  
009705,001035: 04,2347           54001                           TS       L                                     
009706,001036: 
009707,001037: 04,2350           50773                           INDEX    MINDEX                                
009708,001038: 04,2351           32404                           CAF      FCADRMM1                              
009709,001039: 04,2352           55060                           TS       BASETEMP                              #  MAKE BBCON BY ADDING HI5 OF FCADR
009710,001040: 04,2353           74350                           MASK     HI5                                   
009711,001041: 04,2354           26001                           ADS      L                                     
009712,001042: 
009713,001043: 04,2355           31060                           CA       BASETEMP                              #  OBTAIN GENADR PORTION OF 2CADR.
009714,001044: 04,2356           75012                           MASK     LOW10                                 
009715,001045: 04,2357           64741                           AD       BIT11                                 
009716,001046: 
009717,001047: 04,2360           05116                           TC       SPVAC                                 
009718,001048: 
009719,001049: 04,2361           31057        V37XEQC            CA       MMTEMP                                #  UPON RETURN FROM FINDVAC PLACE THE
009720,001050: 04,2362           76077                           MASK     LOW7                                  #  NEW MM IN MODREG (THE LOW 7 BITS OF
009721,001051: 04,2363           05314                           TC       NEWMODEA                              #  PHSPRDT1)
009722,001052: 
009723,001053: 04,2364           04457                           TC       RELDSP                                #  RELEASE DISPLAY
009724,001054: 04,2365           05155                           TC       ENDOFJOB                              #  AND EXIT
009725,001055: 
009726,001056: 04,2366     5650               NEG7               EQUALS   OCT77770                              
009727,001057: 

Page 234

009729,001059: 
009730,001060: 04,2366     1057               MMTEMP             EQUALS   PHSPRDT3                              
009731,001061: 04,2366     1060               BASETEMP           EQUALS   TBASE4                                
009732,001062: 04,2366           10335        V37QCAD            CADR     V37XEQ     +3                         
009733,001063: 04,2367           10144        ROOAD              CADR     DUMMYAD                               
009734,001064: 04,2370           37667        OCT37667           OCT      37667                                 
009735,001065: 04,2371           40072        OCT40072           OCT      40072                                 
009736,001066: 04,2372           00700        OCT700             OCT      700                                   
009737,001067: 
009738,001068: 04,2373           36250        SETUP71            CAF      THREE                                 
009739,001069: 04,2374           54002        SETUP70            TS       Q                                     
009740,001070: 04,2375           00006                           EXTEND                                         
009741,001071: 04,2376           32403                           DCA      P70CADR                               
009742,001072: 04,2377           60002                           AD       Q                                     
009743,001073: 04,2400           52006                           DTCB                                           
009744,001074: 
009745,001075: 04,2401           00106        DEC70              DEC      70         B-14                       
009746,001076: 04,2402  E7,1520                                  EBANK=   R                                     
009747,001077: 04,2402           02067 42067  P70CADR            2CADR    P70                                   
009748,001078:                                                                                                  #  FOR VERB 37 TWO TABLES ARE MAINTAINED. EACH TABLE HAS AN ENTRY FOR EACH
009749,001079:                                                                                                  #  MAJOR MODE THAT CAN BE STARTED FROM THE KEYBOARD. THE ENTRIES ARE PUT
009750,001080:                                                                                                  #  INTO THE TABLE WITH THE ENTRY FOR THE HIGHEST MAJOR MODE COMING FIRST,
009751,001081: 
009752,001082:                                                                                                  #  TO THE LOWEST MAJOR MODE WHICH IS THE LAST ENTRY IN EACH TABLE.
009753,001083: 
009754,001084:                                                                                                  #           THE FCADRMM TABLE CONTAINS THE FCADR OF THE STARTING JOB OF
009755,001085:                                                                                                  #  THE MAJOR MODE.   FOR EXAMPLE,
009756,001086: 
009757,001087:                                                                                                  #                                          FCADRMM1 FCADR  P79             START OF P 79
009758,001088:                                                                                                  #                                                   FCADR  PROG18          START OF P 18
009759,001089:                                                                                                  #                                                   FCADR  P01             START OF P 01
009760,001090: 
009761,001091:                                                                                                  #  NOTE,         THE FIRST ENTRY MUST BE LABLED FCADRMM1.
009762,001092:                                                                                                  #  ----
009763,001093: 
009764,001094: 04,2404           26207        FCADRMM1           FCADR    P76                                   
009765,001095: 04,2405           72641                           FCADR    P75                                   
009766,001096: 04,2406           72457                           FCADR    P74                                   
009767,001097: 04,2407           72225                           FCADR    P73                                   
009768,001098: 04,2410           72036                           FCADR    P72                                   
009769,001099: 04,2411           71271                           FCADR    LANDJUNK                              
009770,001100: 04,2412           64777                           FCADR    P63LM                                 
009771,001101: 04,2413           33277                           FCADR    P57                                   
009772,001102: 04,2414           32050                           FCADR    PROG52                                
009773,001103: 04,2415           31421                           FCADR    P51                                   
009774,001104: 04,2416           75442                           FCADR    P47LM                                 
009775,001105: 04,2417           75414                           FCADR    P42LM                                 
009776,001106: 04,2420           75276                           FCADR    P41LM                                 
009777,001107: 04,2421           75153                           FCADR    P40LM                                 
009778,001108: 04,2422           72635                           FCADR    P35                                   
009779,001109: 

Page 235

009781,001111: 04,2423           72455                           FCADR    P34                                   
009782,001112: 04,2424           72223                           FCADR    P33                                   
009783,001113: 04,2425           72034                           FCADR    P32                                   
009784,001114: 04,2426           72000                           FCADR    P30                                   
009785,001115: 04,2427           50400                           FCADR    PROG25                                
009786,001116: 04,2430           50000                           FCADR    PROG22                                
009787,001117: 04,2431           51505                           FCADR    PROG21                                
009788,001118: 04,2432           50000                           FCADR    PROG20                                
009789,001119: 04,2433           60061                           FCADR    P12LM                                 
009790,001120: 04,2434           77652                           FCADR    P06                                   
009791,001121:                                                                                                  #           THE PREMM TABLE CONTAINS THE E-BANK,MAJOR MODE, AND PRIORITY
009792,001122:                                                                                                  #  INFORMATION, IT IS IN THE FOLLOWING FORM,
009793,001123: 
009794,001124:                                                                                                  #           PPP PPE EEM MMM MMM
009795,001125: 
009796,001126:                                                                                                  #           WHERE THE 7 M BITS CONTAIN THE MAJOR MODE NUMBER
009797,001127:                                                                                                  #                      3 E BITS CONTAIN THE E-BANK NUMBER
009798,001128:                                                                                                  #                      5 P BITS CONTAIN THE PRIORITY AT WHICH THE JOB IS
009799,001129:                                                                                                  #                          TO BE STARTED
009800,001130: 
009801,001131:                                                                                                  #           FOR EXAMPLE,
009802,001132: 
009803,001133:                                                                                                  #                                          PREMM1   OCT    67213           PRIORITY      33
009804,001134:                                                                                                  #                                                                          E-BANK         5
009805,001135:                                                                                                  #                                                                          MAJOR MODE    11
009806,001136:                                                                                                  #                                                   OCT    25437           PRIORITY       12
009807,001137:                                                                                                  #                                                                          E-BANK         6
009808,001138:                                                                                                  #                                                                          MAJOR MODE    31
009809,001139: 
009810,001140:                                                                                                  #  NOTE,    THE FIRST ENTRY MUST BE LABELED PREMM1
009811,001141: 
009812,001142: 04,2435           27714        PREMM1             OCT      27714                                 #  MM 76  EBANK 7  PRIO 13
009813,001143: 04,2436           27713                           OCT      27713                                 #  MM 75  EBANK 7  PRIO 13
009814,001144: 04,2437           27712                           OCT      27712                                 #  MM 74  EBANK 7  PRIO 13
009815,001145: 04,2440           27711                           OCT      27711                                 #  MM 73  EBANK 7  PRIO 13
009816,001146: 04,2441           27710                           OCT      27710                                 #  MM 72  EBANK 7  PRIO 13
009817,001147: 04,2442           27704                           OCT      27704                                 #  MM 68  EBANK 7  PRIO 13
009818,001148: 04,2443           27677                           OCT      27677                                 #  MM 63  EBANK 7  PRIO 13
009819,001149: 04,2444           27271                           OCT      27271                                 #  MM 57  EBANK 5  PRIO 13
009820,001150: 04,2445           27264                           OCT      27264                                 #  MM 52  EBANK 5  PRIO 13
009821,001151: 04,2446           27263                           OCT      27263                                 #  MM 51  EBANK 5  PRIO 13
009822,001152: 04,2447           27657                           OCT      27657                                 #  MM 47  EBANK 7  PRIO 13
009823,001153: 04,2450           27652                           OCT      27652                                 #  MM 42  EBANK 7  PRIO 13
009824,001154: 04,2451           27651                           OCT      27651                                 #  MM 41  EBANK 7  PRIO 13
009825,001155: 04,2452           27650                           OCT      27650                                 #  MM 40  EBANK 7  PRIO 13
009826,001156: 04,2453           27643                           OCT      27643                                 #  MM 35  EBANK 7  PRIO 13
009827,001157: 04,2454           27642                           OCT      27642                                 #  MM 34  EBANK 7  PRIO 13
009828,001158: 04,2455           27641                           OCT      27641                                 #  MM 33  EBANK 7  PRIO 13
009829,001159: 04,2456           27640                           OCT      27640                                 #  MM 32  EBANK 7  PRIO 13
009830,001160: 04,2457           27636                           OCT      27636                                 #  MM 30  EBANK 7  PRIO 13
009831,001161: 04,2460           27631                           OCT      27631                                 #  MM 25  EBANK 7  PRIO 13
009832,001162: 

Page 236

009834,001164: 04,2461           27626                           OCT      27626                                 #  MM 22  EBANK 7  PRIO 13
009835,001165: 04,2462           27625                           OCT      27625                                 #  MM 21  EBANK 7  PRIO 13
009836,001166: 04,2463           27624                           OCT      27624                                 #  MM 20  EBANK 7  PRIO 13
009837,001167: 04,2464           27614                           OCT      27614                                 #  MM 12  EBANK 7  PRIO 13
009838,001168: 04,2465           27006                           OCT      27006                                 #  MM 06  EBANK 4  PRIO 13
009839,001169:                                                                                                  #  NOTE,    THE FOLLOWING CONSTANT IS THE NUMBER OF ENTRIES IN EACH OF
009840,001170:                                                                                                  #  ----     THE ABOVE LISTS-1(IE, THE NUMBER OF MAJOR MODES(EXCEPT P00)
009841,001171:                                                                                                  #           THAT CAN BE CALLED FROM THE KEYBOARD MINUS ONE)
009842,001172: 
009843,001173: 04,2466           00030        NOV37MM            DEC      24         B-14                       #  MM'S -1
009844,001174: 
009845,001175: 04,2467           00002        DNLADMM1           ADRES    RENDEZVU                              #  P76
009846,001176: 04,2470           00002                           ADRES    RENDEZVU                              #  P75
009847,001177: 04,2471           00002                           ADRES    RENDEZVU                              #  P74
009848,001178: 04,2472           00002                           ADRES    RENDEZVU                              #  P73
009849,001179: 04,2473           00002                           ADRES    RENDEZVU                              #  P72
009850,001180: 04,2474           00004                           ADRES    DESASCNT                              #  P68
009851,001181: 04,2475           00004                           ADRES    DESASCNT                              #  P63
009852,001182: 04,2476           00005                           ADRES    LUNRSALN                              #  P57
009853,001183: 04,2477           00000                           ADRES    COSTALIN                              #  P52
009854,001184: 04,2500           00000                           ADRES    COSTALIN                              #  P51
009855,001185: 04,2501           00003                           ADRES    ORBMANUV                              #  P47
009856,001186: 04,2502           00003                           ADRES    ORBMANUV                              #  P42
009857,001187: 04,2503           00003                           ADRES    ORBMANUV                              #  P41
009858,001188: 04,2504           00003                           ADRES    ORBMANUV                              #  P40
009859,001189: 04,2505           00002                           ADRES    RENDEZVU                              #  P35
009860,001190: 04,2506           00002                           ADRES    RENDEZVU                              #  P34
009861,001191: 04,2507           00002                           ADRES    RENDEZVU                              #  P33
009862,001192: 04,2510           00002                           ADRES    RENDEZVU                              #  P32
009863,001193: 04,2511           00002                           ADRES    RENDEZVU                              #  P30
009864,001194: 04,2512           00002                           ADRES    RENDEZVU                              #  P25
009865,001195: 04,2513           00005                           ADRES    LUNRSALN                              #  P22
009866,001196: 04,2514           00002                           ADRES    RENDEZVU                              #  P21
009867,001197: 04,2515           00002                           ADRES    RENDEZVU                              #  P20
009868,001198: 04,2516           00004                           ADRES    DESASCNT                              #  P12
009869,001199: 04,2517           00000                           ADRES    COSTALIN                              #  P06
009870,001200: 04,2520     4755               DNLADP00           =        ZERO                                  
009871,001201: 04,2520                        COSTALIN           =        0                                     
009872,001202: 04,2520                        AGSUPDAT           =        1                                     
009873,001203: 04,2520                        RENDEZVU           =        2                                     
009874,001204: 04,2520                        ORBMANUV           =        3                                     
009875,001205: 04,2520                        DESASCNT           =        4                                     
009876,001206: 04,2520                        LUNRSALN           =        5                                     
009877,001207: 13,2026                                           BANK     13                                    
009878,001208: 13,2000                                           SETLOC   INTINIT                               
009879,001209: 13,2000                                           BANK                                           
009880,001210: 
009881,001211: 13,2026                                           COUNT*   $$/INTIN                              
009882,001212: 
009883,001213: 13,2026  E3,1554                                  EBANK=   RRECTCSM                              
009884,001214: 

Page 237

009886,001216:                                                                                                  #  THIS ROUTINE DOES THE POO INTEGRATION
009887,001217: 
009888,001218: 13,2026           43014        STATEUP            SET      BOF                                   #  EXTRAPOLATE CM STATE VECTOR
009889,001219: 13,2027           01474                                    VINTFLAG                              
009890,001220: 13,2030           04347                                    SURFFLAG                              #  ALSO 6X6 W-MATRIX IF LM ON LUNAR
009891,001221: 13,2031           26036                                    DOINT                                 #       SURFACE AND W-MATRIX VALID
009892,001222: 13,2032           43014                           BOF      SET                                   #       FOR RENDEZVOUS NAVIGATION.
009893,001223: 13,2033           02756                                    RENDWFLG                              
009894,001224: 13,2034           26036                                    DOINT                                 
009895,001225: 13,2035           01476                                    DIM0FLAG                              
009896,001226: 13,2036           45014        DOINT              CLEAR    CALL                                  
009897,001227: 13,2037           01667                                    PRECIFLG                              #  ENGAGES 4-TIME STEP LOGIC IN INTEGRATION
009898,001228: 13,2040           27135                                    INTEGRV                               #  WHEN MODREG = 0
009899,001229: 
009900,001230: 13,2041           71214                           BON      DLOAD                                 
009901,001231: 13,2042           04307                                    SURFFLAG                              
009902,001232: 13,2043           26063                                    NO-INT                                
009903,001233: 13,2044           01571                                    TETCSM                                
009904,001234: 13,2045           34041                           STCALL   TDEC1                                 
009905,001235: 13,2046           27412                                    INTSTALL                              
009906,001236: 13,2047           45014                           CLEAR    CALL                                  #  EXTRAPOLATE LM STATE VECTOR
009907,001237: 13,2050           01674                                    VINTFLAG                              
009908,001238: 13,2051           26645                                    SETIFLGS                              
009909,001239: 13,2052           77614                           BOF                                            #  ALSO 9X9 W-MATRIX IF W IS VALID
009910,001240: 13,2053           02756                                    RENDWFLG                              
009911,001241: 13,2054           26060                                    DOINT2                                
009912,001242: 13,2055           43014                           SET      SET                                   
009913,001243: 13,2056           01476                                    DIM0FLAG                              
009914,001244: 13,2057           01475                                    D6OR9FLG                              
009915,001245: 13,2060           45014        DOINT2             SET      CALL                                  
009916,001246: 13,2061           01467                                    PRECIFLG                              #  DISENGAGE 4 TIME STEP LOGIC IN INTEG.
009917,001247: 13,2062           27135                                    INTEGRV                               
009918,001248: 13,2063           77614        NO-INT             CLRGO                                          
009919,001249: 13,2064           01236                                    NODOFLAG                              
009920,001250: 13,2065           26633                                    ENDINT                                
009921,001251: 
009922,001252: 
009923,001253:                                                                                                  #  THISVINT IS CALLED BY MIDTOAV1 AND 2
009924,001254: 
009925,001255: 13,2066           43414        THISVINT           CLEAR    RVQ                                   
009926,001256: 13,2067           01674                                    VINTFLAG                              

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