Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	16:27 JULY 14,1969
Note that the date is the date of the printout, not the date of the program revision.

047243,000002:                                                                                                  ## Copyright:   Public domain.
047244,000003:                                                                                                  ## Filename:    EXECUTIVE.agc
047245,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
047246,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
047247,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
047248,000007:                                                                                                  ## Assembler:   yaYUL
047249,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
047250,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
047251,000010:                                                                                                  ## Pages:       1103-1114
047252,000011:                                                                                                  ## Mod history: 2009-05-25 RSB  Adapted from the corresponding 
047253,000012:                                                                                                  ##                              Luminary131 file, using page 
047254,000013:                                                                                                  ##                              images from Luminary 1A.
047255,000014:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
047256,000015:                                                                                                  ##              2011-05-08 JL   Removed workaround.
047257,000016:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
047258,000017:                                                                                                  ##                              and corrected the errors found.
047259,000018:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
047260,000019:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
047261,000020: 
047262,000021:                                                                                                  ## This source code has been transcribed or otherwise adapted from
047263,000022:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
047264,000023:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
047265,000024:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
047266,000025:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
047267,000026:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
047268,000027:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
047269,000028:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
047270,000029:                                                                                                  ## actually created.
047271,000030:                                                                                                  ##
047272,000031:                                                                                                  ## Notations on the hardcopy document read, in part:
047273,000032:                                                                                                  ##
047274,000033:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
047275,000034:                                                                                                  ##      16:27 JULY 14, 1969 
047276,000035: 

Page 1103

047278,000037:    5072                                           BLOCK    02                                    
047279,000038: 
047280,000039:                                                                                                  #  TO ENTER A JOB REQUEST REQUIRING NO VAC AREA:
047281,000040: 
047282,000041:    5072                                           COUNT*   $$/EXEC                               
047283,000042:    5072           00004        NOVAC              INHINT                                         
047284,000043:    5073           65164                           AD       FAKEPRET                              #  LOC(MPAC +6) - LOC(QPRET)
047285,000044:    5074           54063                           TS       NEWPRIO                               #  PRIORITY OF NEW JOB + NOVAC C(FIXLOC)
047286,000045: 
047287,000046:    5075           00006                           EXTEND                                         
047288,000047:    5076           50002                           INDEX    Q                                     #  Q WILL BE UNDISTURBED THROUGHOUT.
047289,000048:    5077           30001                           DCA      0                                     #  2CADR OF JOB ENTERED.
047290,000049:    5100           52066                           DXCH     NEWLOC                                
047291,000050:    5101           35163                           CAF      EXECBANK                              
047292,000051:    5102           56004                           XCH      FBANK                                 
047293,000052:    5103           54061                           TS       EXECTEM1                              
047294,000053:    5104           12625                           TCF      NOVAC2                                #  ENTER EXECUTIVE BANK.
047295,000054: 
047296,000055:                                                                                                  #  TO ENTER A JOB REQUEST REQUIRING A VAC AREA - E.G., ALL (PARTIALLY) INTERPRETIVE JOBS.
047297,000056: 
047298,000057:    5105           00004        FINDVAC            INHINT                                         
047299,000058:    5106           54063                           TS       NEWPRIO                               
047300,000059:    5107           00006                           EXTEND                                         
047301,000060:    5110           50002                           INDEX    Q                                     
047302,000061:    5111           30001                           DCA      0                                     
047303,000062:    5112           52066        SPVACIN            DXCH     NEWLOC                                
047304,000063:    5113           35163                           CAF      EXECBANK                              
047305,000064:    5114           56004                           XCH      FBANK                                 
047306,000065:    5115           12601                           TCF      FINDVAC2                              #  OFF TO EXECUTIVE SWITCHED-BANK.
047307,000066: 
047308,000067:                                                                                                  #  TO ENTER A FINDVAC WITH THE PRIORITY IN NEWPRIO TO THE 2CADR ARRIVING IN A AND L:
047309,000068:                                                                                                  #  USERS OF SPVAC MUST INHINT BEFORE STORING IN NEWPRIO.
047310,000069: 
047311,000070:    5116           56002        SPVAC              XCH      Q                                     
047312,000071:    5117           67746                           AD       NEG2                                  
047313,000072:    5120           56002                           XCH      Q                                     
047314,000073:    5121           15112                           TCF      SPVACIN                               
047315,000074: 
047316,000075:                                                                                                  #  TO SUSPEND A BASIC JOB SO A HIGHER PRIORITY JOB MAY BE SERVICED:
047317,000076: 
047318,000077:    5122           22002        CHANG1             LXCH     Q                                     
047319,000078:    5123           35163                           CAF      EXECBANK                              
047320,000079:    5124           56006                           XCH      BBANK                                 
047321,000080:    5125           12706                           TCF      CHANJOB                               
047322,000081: 
047323,000082:                                                                                                  #  TO SUSPEND AN INTERPRETIVE JOB:
047324,000083: 
047325,000084:    5126           40164        CHANG2             CS       LOC                                   #  NEGATIVE LOC SHOWS JOB = INTERPRETIVE.
047326,000085:                                                                                                  #  ITRACE (4) REFERS TO "CHANG2".
047327,000086:    5127           54001                           TS       L                                     

Page 1104

047329,000088:    5130           35163                 +2        CAF      EXECBANK                              
047330,000089:    5131           54006                           TS       BBANK                                 
047331,000090:    5132           12705                           TCF      CHANJOB    -1                         
047332,000091: 

Page 1105

047334,000093:                                                                                                  #  TO VOLUNTARILY SUSPEND A JOB UNTIL THE COMPLETION OF SOME ANTICIPATED EVENT (I/O EVENT ETC.):
047335,000094: 
047336,000095:    5133           54164        JOBSLEEP           TS       LOC                                   
047337,000096:    5134           35163                           CAF      EXECBANK                              
047338,000097:    5135           54004                           TS       FBANK                                 
047339,000098:    5136           12776                           TCF      JOBSLP1                               
047340,000099: 
047341,000100:                                                                                                  #  TO AWAKEN A JOB PUT TO SLEEP IN THE ABOVE FASHION:
047342,000101: 
047343,000102:    5137           00004        JOBWAKE            INHINT                                         
047344,000103:    5140           54065                           TS       NEWLOC                                
047345,000104:    5141           44752                           CS       TWO                                   #  EXIT IS VIA FINDVAC/NOVAC PROCEDURES.
047346,000105:    5142           26002                           ADS      Q                                     
047347,000106:    5143           35163                           CAF      EXECBANK                              
047348,000107:    5144           56004                           XCH      FBANK                                 
047349,000108:    5145           13023                           TCF      JOBWAKE2                              
047350,000109: 
047351,000110:                                                                                                  #  TO CHANGE THE PRIORITY OF A JOB CURRENTLY UNDER EXECUTION:
047352,000111: 
047353,000112:    5146           00004        PRIOCHNG           INHINT                                         #  NEW PRIORITY ARRIVES IN A.  RETURNS TO
047354,000113:    5147           54063                           TS       NEWPRIO                               #  CALLER AS SOON AS NEW JOB PRIORITY IS
047355,000114:    5150           35163                           CAF      EXECBANK                              #  HIGHEST.  PREPARE FOR POSSIBLE BASIC-
047356,000115:    5151           56006                           XCH      BBANK                                 #  STYLE CHANGE-JOB.
047357,000116:    5152           54165                           TS       BANKSET                               
047358,000117:    5153           30002                           CA       Q                                     
047359,000118:    5154           13072                           TCF      PRIOCH2                               
047360,000119: 
047361,000120:                                                                                                  #  TO REMOVE A JOB FROM EXECUTIVE CONSIDERATIONS:
047362,000121: 
047363,000122:    5155           35163        ENDOFJOB           CAF      EXECBANK                              
047364,000123:    5156           54004                           TS       FBANK                                 
047365,000124:    5157           13103                           TCF      ENDJOB1                               
047366,000125: 
047367,000126:    5160           30061        ENDFIND            CA       EXECTEM1                              #  RETURN TO CALLER AFTER JOB ENTRY
047368,000127:    5161           54004                           TS       FBANK                                 #  COMPLETE.
047369,000128:    5162           16741                           TCF      Q+2                                   
047370,000129:    5163           02601        EXECBANK           CADR     FINDVAC2                              
047371,000130: 
047372,000131:    5164           00110        FAKEPRET           ADRES    MPAC       -36D                       #  LOC(MPAC +6) - LOC(QPRET)
047373,000132: 

Page 1106

047375,000134:                                                                                                  #  LOCATE AN AVAILABLE VAC AREA.
047376,000135: 
047377,000136: 01,2601                                           BANK     01                                    
047378,000137: 01,2601                                           COUNT*   $$/EXEC                               
047379,000138: 01,2601           54061        FINDVAC2           TS       EXECTEM1                              #  (SAVE CALLER'S BANK FIRST.)
047380,000139: 01,2602           10400                           CCS      VAC1USE                               
047381,000140: 01,2603           12620                           TCF      VACFOUND                              
047382,000141: 01,2604           10454                           CCS      VAC2USE                               
047383,000142: 01,2605           12620                           TCF      VACFOUND                              
047384,000143: 01,2606           10530                           CCS      VAC3USE                               
047385,000144: 01,2607           12620                           TCF      VACFOUND                              
047386,000145: 01,2610           10604                           CCS      VAC4USE                               
047387,000146: 01,2611           12620                           TCF      VACFOUND                              
047388,000147: 01,2612           10660                           CCS      VAC5USE                               
047389,000148: 01,2613           12620                           TCF      VACFOUND                              
047390,000149: 01,2614           22061                           LXCH     EXECTEM1                              
047391,000150: 01,2615           30002                           CA       Q                                     
047392,000151: 01,2616           05716                           TC       BAILOUT1                              
047393,000152: 01,2617           01201                           OCT      1201                                  #  NO VAC AREAS.
047394,000153: 
047395,000154: 01,2620           64752        VACFOUND           AD       TWO                                   #  RESERVE THIS VAC AREA BY STORING A ZERO
047396,000155: 01,2621           22007                           ZL                                             #  IN ITS VAC USE REGISTER AND STORE THE
047397,000156: 01,2622           50000                           INDEX    A                                     #  ADDRESS OF THE FIRST WORD OF IT IN THE
047398,000157: 01,2623           21777                           LXCH     0          -1                         #  LOW NINE BITS OF THE PRIORITY WORD.
047399,000158: 01,2624           26063                           ADS      NEWPRIO                               
047400,000159: 
047401,000160: 01,2625           34755        NOVAC2             CAF      ZERO                                  #  NOVAC ENTERS HERE.  FIND A CORE SET.
047402,000161: 01,2626           54064                           TS       LOCCTR                                
047403,000162: 01,2627           32634                           CAF      NO.CORES                              #  SEVEN SETS OF ELEVEN REGISTERS EACH.
047404,000163: 01,2630           54062        NOVAC3             TS       EXECTEM2                              
047405,000164: 01,2631           50064                           INDEX    LOCCTR                                
047406,000165: 01,2632           10167                           CCS      PRIORITY                              #  EACH PRIORITY REGISTER CONTAINS -0 IF
047407,000166: 01,2633           12674                           TCF      NEXTCORE                              #  THE CORRESPONDING CORE SET IS AVAILABLE.
047408,000167: 01,2634           00007        NO.CORES           DEC      7          B-14                       
047409,000168: 01,2635           12674                           TCF      NEXTCORE                              #  AN ACTIVE JOB HAS A POSITIVE PRIORITY
047410,000169:                                                                                                  #  BUT A DORMANT JOB'S PRIORITY IS NEGATIVE
047411,000170: 

Page 1107

047413,000172: 01,2636           30063        CORFOUND           CA       NEWPRIO                               #  SET THE PRIORITY OF THIS JOB IN THE CORE
047414,000173: 01,2637           50064                           INDEX    LOCCTR                                #  SET'S PRIORITY REGISTER AND SET THE
047415,000174: 01,2640           54167                           TS       PRIORITY                              #  JOB'S PUSH-DOWN POINTER AT THE BEGINNING
047416,000175: 01,2641           75004                           MASK     LOW9                                  #  OF THE WORK AREA AND OVERFLOW INDICATOR
047417,000176: 01,2642           50064                           INDEX    LOCCTR                                
047418,000177: 01,2643           54166                           TS       PUSHLOC                               #  OFF TO PREPARE FOR INTERPRETIVE PROGRAMS
047419,000178: 
047420,000179: 01,2644           10064                           CCS      LOCCTR                                #  IF CORE SET ZERO IS BEING LOADED, SET UP
047421,000180: 01,2645           12661                           TCF      SETLOC                                #  OVFIND AND FIXLOC IMMEDIATELY.
047422,000181: 01,2646           54121                           TS       OVFIND                                
047423,000182: 01,2647           30166                           CA       PUSHLOC                               
047424,000183: 01,2650           54120                           TS       FIXLOC                                
047425,000184: 
047426,000185: 01,2651           10067        SPECTEST           CCS      NEWJOB                                #  SEE IF ANY ACTIVE JOBS WAITING (RARE).
047427,000186: 01,2652           12661                           TCF      SETLOC                                #  MUST BE AWAKENED BUT UNCHANGED JOB.
047428,000187: 01,2653           05705                           TC       CCSHOLE                               
047429,000188: 01,2654           05705                           TC       CCSHOLE                               
047430,000189: 01,2655           54067                           TS       NEWJOB                                #  +0 SHOWS ACTIVE JOB ALREADY SET.
047431,000190: 01,2656           52066                           DXCH     NEWLOC                                
047432,000191: 01,2657           52165                           DXCH     LOC                                   
047433,000192: 01,2660           15160                           TCF      ENDFIND                               
047434,000193: 
047435,000194: 01,2661           52066        SETLOC             DXCH     NEWLOC                                #  SET UP THE LOCATION REGISTERS FOR THIS
047436,000195: 01,2662           50064                           INDEX    LOCCTR                                
047437,000196: 01,2663           52165                           DXCH     LOC                                   
047438,000197: 01,2664           50067                           INDEX    NEWJOB                                #  THIS INDEX INSTRUCTION INSURES THAT THE
047439,000198: 01,2665           40167                           CS       PRIORITY                              #  HIGHEST ACTIVE PRIORITY WILL BE COMPARED
047440,000199: 01,2666           60063                           AD       NEWPRIO                               #  WITH THE NEW PRIORITY TO SEE IF NEWJOB
047441,000200: 01,2667           00006                           EXTEND                                         #  SHOULD BE SET TO SIGNAL A SWITCH.
047442,000201: 01,2670           65160                           BZMF     ENDFIND                               
047443,000202: 01,2671           30064                           CA       LOCCTR                                #  LOCCTR IS LEFT SET AT THIS CORE SET IF
047444,000203: 01,2672           54067                           TS       NEWJOB                                #  THE CALLER WANTS TO LOAD ANY MPAC
047445,000204: 01,2673           15160                           TCF      ENDFIND                               #  REGISTERS, ETC.
047446,000205: 
047447,000206: 01,2674           33033        NEXTCORE           CAF      COREINC                               
047448,000207: 01,2675           26064                           ADS      LOCCTR                                
047449,000208: 01,2676           10062                           CCS      EXECTEM2                              
047450,000209: 01,2677           12630                           TCF      NOVAC3                                
047451,000210: 01,2700           22061                           LXCH     EXECTEM1                              
047452,000211: 01,2701           30002                           CA       Q                                     
047453,000212: 01,2702           05716                           TC       BAILOUT1                              #  NO CORE SETS AVAILABLE.
047454,000213: 01,2703           01202                           OCT      1202                                  

Page 1108

047456,000215:                                                                                                  #  THE FOLLOWING ROUTINE SWAPS CORE SET 0 WITH THAT WHOSE RELATIVE ADDRESS IS IN NEWJOB.
047457,000216: 
047458,000217: 01,2704           22164                 -2        LXCH     LOC                                   
047459,000218: 01,2705           30165                 -1        CAE      BANKSET                               #  BANKSET, NOT BBANK, HAS RIGHT CONTENTS.
047460,000219: 01,2706           00004        CHANJOB            INHINT                                         
047461,000220: 01,2707           00006                           EXTEND                                         
047462,000221: 01,2710           04007                           ROR      SUPERBNK                              #  PICK UP CURRENT SBANK FOR BBCON
047463,000222: 01,2711           56001                           XCH      L                                     #  LOC IN A AND BBCON IN L.
047464,000223: 01,2712           50067                 +4        INDEX    NEWJOB                                #  SWAP LOC AND BANKSET.
047465,000224: 01,2713           52165                           DXCH     LOC                                   
047466,000225: 01,2714           52165                           DXCH     LOC                                   
047467,000226: 
047468,000227: 01,2715           30165                           CAE      BANKSET                               
047469,000228: 01,2716           00006                           EXTEND                                         
047470,000229: 01,2717           01007                           WRITE    SUPERBNK                              #  SET SBANK FOR NEW JOB.
047471,000230: 01,2720           52155                           DXCH     MPAC                                  #  SWAP MULTI-PURPOSE ACCUMULATOR AREAS.
047472,000231: 01,2721           50067                           INDEX    NEWJOB                                
047473,000232: 01,2722           52155                           DXCH     MPAC                                  
047474,000233: 01,2723           52155                           DXCH     MPAC                                  
047475,000234: 01,2724           52157                           DXCH     MPAC       +2                         
047476,000235: 01,2725           50067                           INDEX    NEWJOB                                
047477,000236: 01,2726           52157                           DXCH     MPAC       +2                         
047478,000237: 01,2727           52157                           DXCH     MPAC       +2                         
047479,000238: 01,2730           52161                           DXCH     MPAC       +4                         
047480,000239: 01,2731           50067                           INDEX    NEWJOB                                
047481,000240: 01,2732           52161                           DXCH     MPAC       +4                         
047482,000241: 01,2733           52161                           DXCH     MPAC       +4                         
047483,000242: 01,2734           52163                           DXCH     MPAC       +6                         
047484,000243: 01,2735           50067                           INDEX    NEWJOB                                
047485,000244: 01,2736           52163                           DXCH     MPAC       +6                         
047486,000245: 01,2737           52163                           DXCH     MPAC       +6                         
047487,000246: 
047488,000247: 01,2740           34755                           CAF      ZERO                                  
047489,000248: 01,2741           56121                           XCH      OVFIND                                #  MAKE PUSHLOC NEGATIVE IF OVFIND NZ.
047490,000249: 01,2742           00006                           EXTEND                                         
047491,000250: 01,2743           12746                           BZF      +3                                    
047492,000251: 01,2744           40166                           CS       PUSHLOC                               
047493,000252: 01,2745           54166                           TS       PUSHLOC                               
047494,000253: 
047495,000254: 01,2746           52167                           DXCH     PUSHLOC                               
047496,000255: 01,2747           50067                           INDEX    NEWJOB                                
047497,000256: 01,2750           52167                           DXCH     PUSHLOC                               
047498,000257: 01,2751           52167                           DXCH     PUSHLOC                               #  SWAPS PUSHLOC AND PRIORITY.
047499,000258: 01,2752           35004                           CAF      LOW9                                  #  SET FIXLOC TO BASE OF VAC AREA.
047500,000259: 01,2753           70167                           MASK     PRIORITY                              
047501,000260: 01,2754           54120                           TS       FIXLOC                                
047502,000261: 
047503,000262: 01,2755           10166                           CCS      PUSHLOC                               #  SET OVERFLOW INDICATOR ACCORDING TO
047504,000263: 01,2756           34755                           CAF      ZERO                                  
047505,000264: 01,2757           12764                           TCF      ENDPRCHG   -1                         
047506,000265: 

Page 1109

047508,000267: 01,2760           40166                           CS       PUSHLOC                               
047509,000268: 01,2761           54166                           TS       PUSHLOC                               
047510,000269: 01,2762           34753                           CAF      ONE                                   
047511,000270: 01,2763           56121                           XCH      OVFIND                                
047512,000271: 01,2764           54067                           TS       NEWJOB                                
047513,000272: 
047514,000273: 01,2765           00003        ENDPRCHG           RELINT                                         
047515,000274: 01,2766           52165                           DXCH     LOC                                   #  BASIC JOBS HAVE POSITIVE ADDRESSES, SO
047516,000275: 01,2767           00006                           EXTEND                                         #  DISPATCH WITH A DTCB.
047517,000276: 01,2770           62772                           BZMF     +2                                    #  IF INTERPRETIVE, SET UP EBANK, ETC.
047518,000277: 01,2771           52006                           DTCB                                           

Page 1110

047520,000279: 01,2772           40000                           COM                                            #  EPILOGUE TO JOB CHANGE FOR INTERPRETIVE
047521,000280: 01,2773           64753                           AD       ONE                                   
047522,000281: 01,2774           54164                           TS       LOC                                   #  RESUME.
047523,000282: 01,2775           16050                           TCF      INTRSM                                
047524,000283: 
047525,000284:                                                                                                  #  COMPLETE JOBSLEEP PREPARATIONS.
047526,000285: 
047527,000286: 01,2776           00004        JOBSLP1            INHINT                                         
047528,000287: 01,2777           40167                           CS       PRIORITY                              #  NNZ PRIORITY SHOWS JOB ASLEEP.
047529,000288: 01,3000           54167                           TS       PRIORITY                              
047530,000289: 01,3001           36074                           CAF      LOW7                                  
047531,000290: 01,3002           70006                           MASK     BBANK                                 
047532,000291: 01,3003           00006                           EXTEND                                         
047533,000292: 01,3004           04007                           ROR      SUPERBNK                              #  SAVE OLD SUPERBANK VALUE.
047534,000293: 01,3005           54165                           TS       BANKSET                               
047535,000294: 01,3006           44755                           CS       ZERO                                  
047536,000295: 01,3007           54131        JOBSLP2            TS       BUF        +1                         #  HOLDS - HIGHEST PRIORITY.
047537,000296: 01,3010           13120                           TCF      EJSCAN                                #  SCAN FOR HIGHEST PRIORITY ALA ENDOFJOB.
047538,000297: 
047539,000298: 01,3011           00004        NUCHANG2           INHINT                                         #  QUICK... DONT LET NEWJOB CHANGE TO +0.
047540,000299: 01,3012           10067                           CCS      NEWJOB                                
047541,000300: 01,3013           13016                           TCF      +3                                    #  NEWJOB STILL PNZ
047542,000301: 01,3014           00003                           RELINT                                         #  NEW JOB HAS CHANGED TO +0.  WAKE UP JOB
047543,000302: 01,3015           13216                           TCF      ADVAN      +2                         #  VIA NUDIRECT.  (VERY RARE CASE.)
047544,000303: 
047545,000304: 01,3016           34752                           CAF      TWO                                   
047546,000305: 01,3017           00006                           EXTEND                                         
047547,000306: 01,3020           05011                           WOR      DSALMOUT                              #  TURN ON ACTIVITY LIGHT
047548,000307: 01,3021           52165                           DXCH     LOC                                   #  AND SAVE ADDRESS INFO FOR BENEFIT OF
047549,000308: 01,3022           12712                           TCF      CHANJOB    +4                         #        POSSIBLE SLEEPING JOB.
047550,000309: 

Page 1111

047552,000311:                                                                                                  #  TO WAKE UP A JOB, EACH CORE SET IS FOUND TO LOCATE ALL JOBS WHICH ARE ASLEEP.  IF THE FCADR IN THE
047553,000312:                                                                                                  #  LOC REGISTER OF ANY SUCH JOB MATCHES THAT SUPPLIED BY THE CALLER, THAT JOB IS AWAKENED.  IF NO JOB IS FOUND,
047554,000313:                                                                                                  #  LOCCTR IS SET TO -1 AND NO FURTHER ACTION TAKES PLACE.
047555,000314: 
047556,000315: 01,3023           54061        JOBWAKE2           TS       EXECTEM1                              
047557,000316: 01,3024           34755                           CAF      ZERO                                  #  BEGIN CORE SET SCAN.
047558,000317: 01,3025           54064                           TS       LOCCTR                                
047559,000318: 01,3026           32634                           CAF      NO.CORES                              
047560,000319: 01,3027           54062        JOBWAKE4           TS       EXECTEM2                              
047561,000320: 01,3030           50064                           INDEX    LOCCTR                                
047562,000321: 01,3031           10167                           CCS      PRIORITY                              
047563,000322: 01,3032           13035                           TCF      JOBWAKE3                              #  ACTIVE JOB - CHECK NEXT CORE SET.
047564,000323: 01,3033           00014        COREINC            DEC      12         B-14                       #  12 REGISTERS PER CORE SET.
047565,000324: 01,3034           13044                           TCF      WAKETEST                              #  SLEEPING JOB - SEE IF CADR MATCHES.
047566,000325: 
047567,000326: 01,3035           33033        JOBWAKE3           CAF      COREINC                               
047568,000327: 01,3036           26064                           ADS      LOCCTR                                
047569,000328: 01,3037           10062                           CCS      EXECTEM2                              
047570,000329: 01,3040           13027                           TCF      JOBWAKE4                              
047571,000330: 01,3041           44753                           CS       ONE                                   #  EXIT IF SLEEPING JOB NOT FOUND.
047572,000331: 01,3042           54064                           TS       LOCCTR                                
047573,000332: 01,3043           15160                           TCF      ENDFIND                               
047574,000333: 
047575,000334: 01,3044           40065        WAKETEST           CS       NEWLOC                                
047576,000335: 01,3045           50064                           INDEX    LOCCTR                                
047577,000336: 01,3046           60164                           AD       LOC                                   
047578,000337: 01,3047           00006                           EXTEND                                         
047579,000338: 01,3050           13052                           BZF      +2                                    #  IF MATCH.
047580,000339: 01,3051           13035                           TCF      JOBWAKE3                              #  EXAMINE NEXT CORE SET IF NO MATCH.
047581,000340: 
047582,000341: 01,3052           50064                           INDEX    LOCCTR                                #  RE-COMPLEMENT PRIORITY TO SHOW JOB AWAKE
047583,000342: 01,3053           40167                           CS       PRIORITY                              
047584,000343: 01,3054           54063                           TS       NEWPRIO                               
047585,000344: 01,3055           50064                           INDEX    LOCCTR                                
047586,000345: 01,3056           54167                           TS       PRIORITY                              
047587,000346: 
047588,000347: 01,3057           44350                           CS       FBANKMSK                              #  MAKE UP THE 2CADR OF THE WAKE ADDRESS
047589,000348: 01,3060           70065                           MASK     NEWLOC                                #  USING THE CADR IN NEWLOC AND THE EBANK
047590,000349: 01,3061           64741                           AD       2K                                    #  HALF OF BBANK SAVED IN BANKSET.
047591,000350: 01,3062           56065                           XCH      NEWLOC                                
047592,000351: 01,3063           74350                           MASK     FBANKMSK                              
047593,000352: 01,3064           50064                           INDEX    LOCCTR                                
047594,000353: 01,3065           60165                           AD       BANKSET                               
047595,000354: 01,3066           54066                           TS       NEWLOC     +1                         
047596,000355: 
047597,000356: 01,3067           10064                           CCS      LOCCTR                                #  SPECIAL TREATMENT IF THIS JOB WAS
047598,000357: 01,3070           12661                           TCF      SETLOC                                #  ALREADY IN THE RUN (0) POSITION.
047599,000358: 01,3071           12651                           TCF      SPECTEST                              
047600,000359: 

Page 1112

047602,000361:                                                                                                  #  PRIORITY CHANGE.  CHANGE THE CONTENTS OF PRIORITY AND SCAN FOR THE JOB OF HIGHEST PRIORITY.
047603,000362: 
047604,000363: 01,3072           54164        PRIOCH2            TS       LOC                                   
047605,000364: 01,3073           34755                           CAF      ZERO                                  #  SET FLAG TO TELL ENDJOB SCANNER IF THIS
047606,000365: 01,3074           54130                           TS       BUF                                   #  JOB IS STILL HIGHEST PRIORITY.
047607,000366: 01,3075           35004                           CAF      LOW9                                  
047608,000367: 01,3076           70167                           MASK     PRIORITY                              
047609,000368: 01,3077           60063                           AD       NEWPRIO                               
047610,000369: 01,3100           54167                           TS       PRIORITY                              
047611,000370: 01,3101           40000                           COM                                            
047612,000371: 01,3102           13007                           TCF      JOBSLP2                               #  AND TO EJSCAN.
047613,000372: 

Page 1113

047615,000374:                                                                                                  #  RELEASE THIS CORE SET AND VAC AREA AND SCAN FOR THE JOB OF HIGHEST ACTIVE PRIORITY.
047616,000375: 
047617,000376: 01,3103           00004        ENDJOB1            INHINT                                         
047618,000377: 01,3104           44755                           CS       ZERO                                  
047619,000378: 01,3105           54131                           TS       BUF        +1                         
047620,000379: 01,3106           56167                           XCH      PRIORITY                              
047621,000380: 01,3107           75004                           MASK     LOW9                                  
047622,000381: 01,3110           54001                           TS       L                                     
047623,000382: 
047624,000383: 01,3111           45164                           CS       FAKEPRET                              
047625,000384: 01,3112           60001                           AD       L                                     
047626,000385: 
047627,000386: 01,3113           00006                           EXTEND                                         
047628,000387: 01,3114           63120                           BZMF     EJSCAN                                #  NOVAC ENDOFJOB
047629,000388: 
047630,000389: 01,3115           10001                           CCS      L                                     
047631,000390: 01,3116           50000                           INDEX    A                                     
047632,000391: 01,3117           54000                           TS       0                                     
047633,000392: 
047634,000393: 01,3120           10203        EJSCAN             CCS      PRIORITY   +12D                       
047635,000394: 01,3121           03171                           TC       EJ1                                   
047636,000395: 01,3122           05705                           TC       CCSHOLE                               
047637,000396: 01,3123           13124                           TCF      +1                                    
047638,000397: 
047639,000398: 01,3124           10217                           CCS      PRIORITY   +24D                       #  EXAMINE EACH PRIORITY REGISTER TO FIND
047640,000399: 01,3125           03171                           TC       EJ1                                   #  THE JOB OF HIGHEST ACTIVE PRIORITY.
047641,000400: 01,3126           05705                           TC       CCSHOLE                               
047642,000401: 01,3127           13130                           TCF      +1                                    
047643,000402: 
047644,000403: 01,3130           10233                           CCS      PRIORITY   +36D                       
047645,000404: 01,3131           03171                           TC       EJ1                                   
047646,000405: 01,3132           67610        -CCSPR             -CCS     PRIORITY                              
047647,000406: 01,3133           13134                           TCF      +1                                    
047648,000407: 
047649,000408: 01,3134           10247                           CCS      PRIORITY   +48D                       
047650,000409: 01,3135           03171                           TC       EJ1                                   
047651,000410: 01,3136           05705                           TC       CCSHOLE                               
047652,000411: 01,3137           13140                           TCF      +1                                    
047653,000412: 
047654,000413: 01,3140           10263                           CCS      PRIORITY   +60D                       
047655,000414: 01,3141           03171                           TC       EJ1                                   
047656,000415: 01,3142           05705                           TC       CCSHOLE                               
047657,000416: 01,3143           13144                           TCF      +1                                    
047658,000417: 
047659,000418: 01,3144           10277                           CCS      PRIORITY   +72D                       
047660,000419: 01,3145           03171                           TC       EJ1                                   
047661,000420: 01,3146           05705                           TC       CCSHOLE                               
047662,000421: 01,3147           13150                           TCF      +1                                    
047663,000422: 
047664,000423: 01,3150           10313                           CCS      PRIORITY   +84D                       

Page 1114

047666,000425: 01,3151           03171                           TC       EJ1                                   
047667,000426: 01,3152           05705                           TC       CCSHOLE                               
047668,000427: 01,3153           13154                           TCF      +1                                    
047669,000428: 

Page 1115

047671,000430:                                                                                                  #  EVALUATE THE RESULTS OF THE SCAN.
047672,000431: 
047673,000432: 01,3154           10131                           CCS      BUF        +1                         #  SEE IF THERE ARE ANY ACTIVE JOBS WAITING
047674,000433: 01,3155           05705                           TC       CCSHOLE                               
047675,000434: 01,3156           05705                           TC       CCSHOLE                               
047676,000435: 
047677,000436: 01,3157           13161                           TCF      +2                                    
047678,000437: 01,3160           13206                           TCF      DUMMYJOB                              
047679,000438: 01,3161           10130                           CCS      BUF                                   #  BUF IS ZERO IF THIS IS A PRIOCHNG AND
047680,000439: 01,3162           13164                           TCF      +2                                    #  CHANGED PRIORITY IS STILL HIGHEST.
047681,000440: 01,3163           12764                           TCF      ENDPRCHG   -1                         
047682,000441: 
047683,000442: 01,3164           50000                           INDEX    A                                     #  OTHERWISE, SET NEWJOB TO THE RELATIVE
047684,000443: 01,3165           27777                           CAF      0          -1                         #  ADDRESS OF THE NEW JOB'S CORE SET.
047685,000444: 01,3166           63132                           AD       -CCSPR                                
047686,000445: 01,3167           54067                           TS       NEWJOB                                
047687,000446: 01,3170           12704                           TCF      CHANJOB    -2                         
047688,000447: 
047689,000448: 01,3171           54132        EJ1                TS       BUF        +2                         
047690,000449: 01,3172           60131                           AD       BUF        +1                         #  - OLD HIGH PRIORITY.
047691,000450: 01,3173           10000                           CCS      A                                     
047692,000451: 01,3174           40132                           CS       BUF        +2                         
047693,000452: 01,3175           13201                           TCF      EJ2                                   #  NEW HIGH PRIORITY.
047694,000453: 01,3176           13177                           NOOP                                           
047695,000454: 01,3177           50002                           INDEX    Q                                     
047696,000455: 01,3200           00002                           TC       2                                     #  PROCEED WITH SEARCH.
047697,000456: 
047698,000457: 01,3201           54131        EJ2                TS       BUF        +1                         
047699,000458: 01,3202           00006                           EXTEND                                         
047700,000459: 01,3203           22130                           QXCH     BUF                                   #  FOR LOCATING CCS PRIORITY + X INSTR.
047701,000460: 01,3204           50130                           INDEX    BUF                                   
047702,000461: 01,3205           00002                           TC       2                                     
047703,000462: 

Page 1116

047705,000464:                                                                                                  #  IDLING AND COMPUTER ACTIVITY (GREEN) LIGHT MAINTENANCE. THE IDLING ROUTINE IS NOT A JOB IN ITSELF,
047706,000465:                                                                                                  #  BUT RATHER A SUBROUTINE OF THE EXECUTIVE.
047707,000466: 
047708,000467: 01,3206     1361                                  EBANK=   SELFRET                               #  SELF-CHECK STORAGE IN EBANK.
047709,000468: 
047710,000469: 01,3206           44755        DUMMYJOB           CS       ZERO                                  #  SET NEWJOB TO -0 FOR IDLING.
047711,000470: 01,3207           54067                           TS       NEWJOB                                
047712,000471: 01,3210           00003                           RELINT                                         
047713,000472: 01,3211           44752                           CS       TWO                                   #  TURN OFF THE ACTIVITY LIGHT.
047714,000473: 01,3212           00006                           EXTEND                                         
047715,000474: 01,3213           03011                           WAND     DSALMOUT                              
047716,000475: 01,3214           10067        ADVAN              CCS      NEWJOB                                #  IS A NEWJOB ACTIVE?
047717,000476: 01,3215           13011                           TCF      NUCHANG2                              #  YES... ONE REQUIRING A CHANGE JOB.
047718,000477: 01,3216           34752                           CAF      TWO                                   #  NEW JOB ALREADY IN POSITION FOR
047719,000478: 01,3217           13225                           TCF      NUDIRECT                              #  EXECUTION.
047720,000479: 
047721,000480: 01,3220           31361                           CA       SELFRET                               
047722,000481: 01,3221           54001                           TS       L                                     #  PUT RETURN ADDRESS IN L.
047723,000482: 01,3222           33224                           CAF      SELFBANK                              
047724,000483: 01,3223           15166                           TCF      SUPDXCHZ   +1                         #  AND DISPATCH JOB.
047725,000484: 
047726,000485: 01,3224     1361                                  EBANK=   SELFRET                               
047727,000486: 01,3224           66102        SELFBANK           BBCON    SELFCHK                               
047728,000487: 
047729,000488: 01,3225           00006        NUDIRECT           EXTEND                                         #  TURN THE GREEN LIGHT BACK ON.
047730,000489: 01,3226           05011                           WOR      DSALMOUT                              
047731,000490: 01,3227           52165                           DXCH     LOC                                   #  JOBS STARTED IN THIS FASHION MUST BE
047732,000491: 01,3230           15165                           TCF      SUPDXCHZ                              
047733,000492: 
047734,000493:    5165                                           BLOCK    2                                     #  IN FIXED-FIXED SO OTHERS MAY USE.
047735,000494: 
047736,000495:    5165                                           COUNT*   $$/EXEC                               
047737,000496: 
047738,000497:                                                                                                  #  SUPDXCHZ - ROUTINE TO TRANSFER TO SUPERBANK.
047739,000498:                                                                                                  #  CALLING SEQUENCE
047740,000499:                                                                                                  #                TCF     SUPDXCHZ        WITH 2CADR OF DESIRED LOCATION IN A + L.
047741,000500: 
047742,000501:    5165           56001        SUPDXCHZ           XCH      L                                     #  BASIC.
047743,000502:    5166           00006                 +1        EXTEND                                         
047744,000503:    5167           01007                           WRITE    SUPERBNK                              
047745,000504:    5170           54006                           TS       BBANK                                 
047746,000505:    5171           00001                           TC       L                                     
047747,000506: 
047748,000507:    5172           77677        NEG100             OCT      77677                                 
047749,000508: 

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