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
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

055503,000002:                                                                                                  ## Copyright:   Public domain.
055504,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
055505,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
055506,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
055507,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
055508,000007:                                                                                                  ## Assembler:   yaYUL
055509,000008:                                                                                                  ## Contact:     Onno Hommes <ohommes@cmu.edu>.
055510,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
055511,000010:                                                                                                  ## Pages:       1294-1302
055512,000011:                                                                                                  ## Mod history: 2009-05-26 OH   Transcribed from page images.
055513,000012:                                                                                                  ##              2009-06-05 RSB  A few lines at the bottom of page image
055514,000013:                                                                                                  ##                              1294 were truncated.  I've fixed the page
055515,000014:                                                                                                  ##                              image and added those missing lines here.
055516,000015:                                                                                                  ##              2011-05-07 JL   Flagged SBANK= workaround for future 
055517,000016:                                                                                                  ##                              removal.
055518,000017:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
055519,000018:                                                                                                  ##                              and corrected the errors found.
055520,000019:                                                                                                  ##              2017-01-28 RSB  Back-ported a comment-text fix from Luminary 69.
055521,000020:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes noted in proofing Luminary 116.
055522,000021:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
055523,000022:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
055524,000023:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
055525,000024: 
055526,000025:                                                                                                  ## This source code has been transcribed or otherwise adapted from
055527,000026:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
055528,000027:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
055529,000028:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
055530,000029:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
055531,000030:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
055532,000031:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
055533,000032:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
055534,000033:                                                                                                  ## actually created.
055535,000034:                                                                                                  ##
055536,000035:                                                                                                  ## Notations on the hardcopy document read, in part:
055537,000036:                                                                                                  ##
055538,000037:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
055539,000038:                                                                                                  ##      16:27 JULY 14, 1969 
055540,000039: 

Page 1294

055542,000041:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
055543,000042: 
055544,000043: 43,3724                                           COUNT*   $$/PHASE                              
055545,000044:    5311                                           BLOCK    02                                    
055546,000045:    4000                                           SETLOC   FFTAG1                                
055547,000046:    4000                                           BANK                                           
055548,000047: 
055549,000048:    5311           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
055550,000049:    5312           30000                           CAF      0                                     
055551,000050:    5313           24002                           INCR     Q                                     
055552,000051: 
055553,000052:    5314           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
055554,000053:    5315           35320        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
055555,000054:    5316           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
055556,000055:    5317           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
055557,000056:    5320           20213                           CADR     SETUPDSP                              
055558,000057: 
055559,000058:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
055560,000059: 
055561,000060:    5321           50002        CHECKMM            INDEX    Q                                     
055562,000061:    5322           40000                           CS       0                                     
055563,000062:    5323           61011                           AD       MODREG                                
055564,000063:    5324           00006                           EXTEND                                         
055565,000064:    5325           16741                           BZF      Q+2                                   
055566,000065:    5326           16737                           TCF      Q+1                                   #  NO MATCH
055567,000066: 
055568,000067:    5327     6742               TCQ                =        Q+2        +1                         
055569,000068: 
055570,000069: 14,3774                                           BANK     14                                    
055571,000070: 10,2000                                           SETLOC   PHASETAB                              
055572,000071: 10,2000                                           BANK                                           
055573,000072: 
055574,000073: 10,2213                                           COUNT*   $$/PHASE                              
055575,000074: 10,2213           00004        SETUPDSP           INHINT                                         
055576,000075: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
055577,000076: 10,2215           34355                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
055578,000077: 10,2216           05072                           TC       NOVAC                                 #        NEWMODE X
055579,000078: 10,2217     1011                                  EBANK=   MODREG                                
055580,000079: 10,2217           03534 60102                     2CADR    DSPMMJOB                              
055581,000080: 
055582,000081: 10,2221           52071                           DXCH     RUPTREG1                              
055583,000082: 10,2222           00003                           RELINT                                         
055584,000083: 10,2223           52006                           DXCH     Z                                     #  RETURN
055585,000084: 
055586,000085: 10,2224  40,3534               DSPMMJOB           EQUALS   DSPMMJB                               
055587,000086: 
055588,000087:    5327                                           BLOCK    02                                    
055589,000088:    4000                                           SETLOC   FFTAG1                                
055590,000089:    4000                                           BANK                                           
055591,000090: 

Page 1295

055593,000092:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
055594,000093:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
055595,000094:                                                                                                  #                TC      PHASCHNG
055596,000095:                                                                                                  #                OCT     XXXXX
055597,000096:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
055598,000097:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
055599,000098:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
055600,000099:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
055601,000100:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
055602,000101:                                                                                                  #                        LONGCALL TO BE RESTARTED.
055603,000102:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
055604,000103: 
055605,000104:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
055606,000105:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
055607,000106:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1-7, THE P:S FOR THE PHASE,
055608,000107:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.  IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
055609,000108:                                                                                                  #  T IS SET TO 1, OTHERWISE IT IS SET TO 0.  SIMIARLY IF ONE WISHES TO SET LONGBASE, THEN L IS SET TO 1, OTHERWISE
055610,000109:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
055611,000110:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
055612,000111:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
055613,000112: 
055614,000113:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
055615,000114:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
055616,000115: 
055617,000116:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
055618,000117:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
055619,000118:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
055620,000119:                                                                                                  #                                        LOCATION
055621,000120: 
055622,000121:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
055623,000122:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
055624,000123:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
055625,000124:                                                                                                  #                                        SHOULD BE A LONGCALL)
055626,000125: 
055627,000126:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
055628,000127:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
055629,000128:                                                                                                  #                                        LONGCALL TO BE RESTARTED
055630,000129: 
055631,000130:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
055632,000131:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
055633,000132:                                                                                                  #        TL0 1AD XXX CJW GGG
055634,000133:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
055635,000134:                                                                                                  #  BE BY WAITLIST, W IS SET TO 1, IF IT IS A JOB, J IS SET TO 1, IF IT IS A LONGCALL, C IS SET TO 1.  ONLY ONE OF
055636,000135:                                                                                                  #  THESE THREE BITS MAY BE SET.  X:S ARE IGNORED  1 MUST BE 1, AND 0 MUST BE 0.  AGAIN T STANDS FOR THE TBASE,

Page 1296

055638,000137:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
055639,000138:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
055640,000139:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
055641,000140:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
055642,000141:                                                                                                  #  ALREADY IN THE VARIABLE STORAGE, THEN D IS SET TO 0.  NEXT THE A BIT IS USED.  IF IT IS SET TO 0, THE ADDRESS
055643,000142:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
055644,000143:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
055645,000144:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
055646,000145:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
055647,000146:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
055648,000147:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
055649,000148:                                                                                                  #        AD+3                            ALSO GO TO AD+3
055650,000149: 
055651,000150:                                                                                                  #        AD      TC      PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO
055652,000151:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
055653,000152:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
055654,000153:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
055655,000154:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
055656,000155:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
055657,000156:                                                                                                  #                                        LOCATION AD+5
055658,000157: 
055659,000158:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
055660,000159:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
055661,000160: 
055662,000161:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
055663,000162:                                                                                                  #  BELOW AND ALSO START UP ONE FIXED RESTART, THAT IS EITHER AN G.1 OR A G.ODD OR THE FIRST ENTRY OF G.EVEN
055664,000163:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
055665,000164:                                                                                                  #        TL1 DAP PPP PPP GGG
055666,000165:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7. THE P:S FOR THE FIXED
055667,000166:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
055668,000167:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
055669,000168:                                                                                                  #  AGAIN A STANDS FOR THE ADDRESS OF THE LOCATION TO BE RESTARTED, 1 IF THE 2CADR IS GIVEN, OR 0 IF IT IS TO BE
055670,000169:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
055671,000170:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
055672,000171:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
055673,000172:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
055674,000173:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
055675,000174:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
055676,000175:                                                                                                  #        AD+5                            GO TO AD+5
055677,000176: 
055678,000177:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
055679,000178:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
055680,000179:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
055681,000180:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1297

055683,000182:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
055684,000183: 
055685,000184:                                                                                                  #  SUMMARY OF BITS
055686,000185:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
055687,000186:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
055688,000187:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
055689,000188: 

Page 1298

055691,000190:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
055692,000191:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
055693,000192:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
055694,000193:                                                                                                  #                TC      2PHSCHNG
055695,000194:                                                                                                  #                OCT     XXXXX
055696,000195:                                                                                                  #                OCT     YYYYY
055697,000196:                                                                                                  #  WHERE OCT XXXXX MUST BE OF TYPE A AND OCT YYYYY MAY BE OF EITHER TYPE A OR TYPE B OR TYPE C.  THERE IS ONE
055698,000197:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
055699,000198:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
055700,000199:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
055701,000200:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
055702,000201:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
055703,000202:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
055704,000203:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
055705,000204: 
055706,000205:    5327                                           COUNT*   $$/PHASE                              
055707,000206:    5327           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
055708,000207:    5330           50002                           NDX      Q                                     
055709,000208:    5331           30000                           CA       0                                     
055710,000209:    5332           24002                           INCR     Q                                     
055711,000210:    5333           54072                           TS       TEMPP2                                
055712,000211: 
055713,000212:    5334           74757                           MASK     OCT7                                  
055714,000213:    5335           60000                           DOUBLE                                         
055715,000214:    5336           54071                           TS       TEMPG2                                
055716,000215: 
055717,000216:    5337           30072                           CA       TEMPP2                                
055718,000217:    5340           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
055719,000218:    5341           00006                           EXTEND                                         
055720,000219:    5342           74740                           MP       BIT12                                 
055721,000220:    5343           56072                           XCH      TEMPP2                                
055722,000221: 
055723,000222:    5344           74735                           MASK     BIT15                                 
055724,000223:    5345           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
055725,000224: 
055726,000225:    5346           50002                           INDEX    Q                                     
055727,000226:    5347           30000                           CA       0                                     
055728,000227:    5350           24002                           INCR     Q                                     
055729,000228:    5351           54065                           TS       TEMPSW                                
055730,000229: 
055731,000230:    5352           15363                           TCF      PHASJUMP                              
055732,000231: 
055733,000232:    5353           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
055734,000233:    5354           50002                           INDEX    Q                                     
055735,000234:    5355           30000                           CA       0                                     
055736,000235:    5356           24002                           INCR     Q                                     
055737,000236:    5357           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1299

055739,000238:    5360           54065                           TS       TEMPSW                                
055740,000239:    5361           34753                           CA       ONE                                   
055741,000240:    5362           54066                           TS       TEMPSW2                               
055742,000241:    5363           00006        PHASJUMP           EXTEND                                         
055743,000242:    5364           35367                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
055744,000243:    5365           52006                           DTCB                                           
055745,000244: 
055746,000245:    5366  E3,1400                                  EBANK=   LST1                                  
055747,000246:    5366           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
055748,000247: 
055749,000248:    5370           22073        ONEORTWO           LXCH     TEMPBBCN                              
055750,000249:    5371           22006                           LXCH     BBANK                                 
055751,000250:    5372           22073                           LXCH     TEMPBBCN                              
055752,000251: 
055753,000252:    5373           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
055754,000253:    5374           10000                           CCS      A                                     
055755,000254:    5375           17750                           TCF      CHECKB                                #  IT IS OF TYPE :B:
055756,000255: 
055757,000256:    5376           30062                           CA       TEMPP                                 
055758,000257:    5377           74745                           MASK     BIT7                                  
055759,000258:    5400           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
055760,000259:    5401           15423                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
055761,000260: 
055762,000261:    5402           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
055763,000262:    5403           31052                           CA       PHSPRDT1   -2                         
055764,000263:    5404           54070                           TS       TEMPPR                                
055765,000264: 
055766,000265:    5405           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
055767,000266:    5406           74744                           MASK     BIT8                                  
055768,000267:    5407           10000                           CCS      A                                     
055769,000268:    5410           15427                           TCF      GETNEWNM                              
055770,000269: 
055771,000270:    5411           30002                           CA       Q                                     
055772,000271:    5412           54063                           TS       TEMPNM                                
055773,000272:    5413           30006                           CA       BB                                    
055774,000273:    5414           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
055775,000274:    5415           04007                           ROR      SUPERBNK                              
055776,000275:    5416           54064                           TS       TEMPBB                                
055777,000276: 
055778,000277:    5417           35422        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
055779,000278:    5420           22073                           LXCH     TEMPBBCN                              
055780,000279:    5421           52006                           DTCB                                           
055781,000280: 
055782,000281:    5422           02312        CON2ADR            GENADR   CON2                                  
055783,000282: 
055784,000283:    5423           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
055785,000284:    5424           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
055786,000285:    5425           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1300

055788,000287:    5426           15404                           TCF      CON1       -1                         
055789,000288: 
055790,000289:    5427           00006        GETNEWNM           EXTEND                                         
055791,000290:    5430           50002                           INDEX    Q                                     
055792,000291:    5431           30001                           DCA      0                                     
055793,000292:    5432           52064                           DXCH     TEMPNM                                
055794,000293:    5433           34752                           CA       TWO                                   
055795,000294:    5434           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
055796,000295: 
055797,000296:    5435           15417                           TCF      TOCON2                                
055798,000297: 
055799,000298:    5436     5024               OCT14000           EQUALS   PRIO14                                
055800,000299:    5436     0061               TEMPG              EQUALS   ITEMP1                                
055801,000300:    5436     0062               TEMPP              EQUALS   ITEMP2                                
055802,000301:    5436     0063               TEMPNM             EQUALS   ITEMP3                                
055803,000302:    5436     0064               TEMPBB             EQUALS   ITEMP4                                
055804,000303:    5436     0065               TEMPSW             EQUALS   ITEMP5                                
055805,000304:    5436     0066               TEMPSW2            EQUALS   ITEMP6                                
055806,000305:    5436     0070               TEMPPR             EQUALS   RUPTREG1                              
055807,000306:    5436     0071               TEMPG2             EQUALS   RUPTREG2                              
055808,000307:    5436     0072               TEMPP2             EQUALS   RUPTREG3                              
055809,000308: 
055810,000309:    5436     0073               TEMPBBCN           EQUALS   RUPTREG4                              
055811,000310:    5436  0000006               BB                 EQUALS   BBANK                                 
055812,000311: 
055813,000312: 14,3774                                           BANK     14                                    
055814,000313: 10,2000                                           SETLOC   PHASETAB                              
055815,000314: 10,2000                                           BANK                                           
055816,000315: 
055817,000316: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
055818,000317: 10,2224                                           COUNT*   $$/PHASE                              
055819,000318: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
055820,000319: 10,2225           30065                           CA       TEMPSW                                
055821,000320: 10,2226           74757                           MASK     OCT7                                  
055822,000321: 10,2227           60000                           DOUBLE                                         
055823,000322: 10,2230           54061                           TS       TEMPG                                 
055824,000323: 
055825,000324: 10,2231           30065                           CA       TEMPSW                                
055826,000325: 10,2232           75030                           MASK     OCT17770                              
055827,000326: 10,2233           00006                           EXTEND                                         
055828,000327: 10,2234           74740                           MP       BIT12                                 
055829,000328: 10,2235           54062                           TS       TEMPP                                 
055830,000329: 
055831,000330: 10,2236           30065                           CA       TEMPSW                                
055832,000331: 10,2237           74101                           MASK     OCT60000                              
055833,000332: 10,2240           56065                           XCH      TEMPSW                                
055834,000333: 10,2241           75024                           MASK     OCT14000                              
055835,000334: 10,2242           10000                           CCS      A                                     

Page 1301

055837,000336: 10,2243           15370                           TCF      ONEORTWO                              
055838,000337: 
055839,000338: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
055840,000339: 10,2245           50061                           NDX      TEMPG                                 
055841,000340: 10,2246           54751                           TS       PHASE1     -2                         
055842,000341: 
055843,000342: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
055844,000343: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
055845,000344: 
055846,000345: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
055847,000346: 10,2252           40072                           CS       TEMPP2                                
055848,000347: 10,2253           22072                           LXCH     TEMPP2                                
055849,000348: 10,2254           50071                           NDX      TEMPG2                                
055850,000349: 10,2255           52751                           DXCH     -PHASE1    -2                         
055851,000350: 
055852,000351: 10,2256           10066                           CCS      TEMPSW2                               
055853,000352: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
055854,000353: 10,2260           12264                           TCF      BELOW2                                
055855,000354: 
055856,000355: 10,2261           40025                           CS       TIME1                                 
055857,000356: 10,2262           50071                           NDX      TEMPG2                                
055858,000357: 10,2263           55051                           TS       TBASE1     -2                         
055859,000358: 
055860,000359: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
055861,000360: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
055862,000361: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
055863,000362: 
055864,000363: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
055865,000364: 10,2270           50061                           NDX      TEMPG                                 
055866,000365: 10,2271           55051                           TS       TBASE1     -2                         
055867,000366: 
055868,000367: 10,2272           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
055869,000368: 10,2273           62276                           AD       BIT14COM                              
055870,000369: 10,2274           10000                           CCS      A                                     
055871,000370: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
055872,000371: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
055873,000372: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
055874,000373: 
055875,000374: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
055876,000375: 10,2301           30025                           DCA      TIME2                                 
055877,000376: 10,2302           53152                           DXCH     LONGBASE                              
055878,000377: 
055879,000378: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
055880,000379: 10,2304           50061                           NDX      TEMPG                                 
055881,000380: 10,2305           54750                           TS       -PHASE1    -2                         
055882,000381: 
055883,000382: 10,2306           30002                           CA       Q                                     
055884,000383: 10,2307           22073                           LXCH     TEMPBBCN                              
055885,000384: 10,2310           00003                           RELINT                                         
055886,000385: 10,2311           52006                           DTCB                                           

Page 1302

055888,000387: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
055889,000388: 
055890,000389: 10,2313           30062                           CA       TEMPP                                 
055891,000390: 10,2314           50061                           NDX      TEMPG                                 
055892,000391: 10,2315           54751                           TS       PHASE1     -2                         
055893,000392: 
055894,000393: 10,2316           30070                           CA       TEMPPR                                
055895,000394: 10,2317           50061                           NDX      TEMPG                                 
055896,000395: 10,2320           55052                           TS       PHSPRDT1   -2                         
055897,000396: 
055898,000397: 10,2321           00006                           EXTEND                                         
055899,000398: 10,2322           30064                           DCA      TEMPNM                                
055900,000399: 10,2323           50061                           NDX      TEMPG                                 
055901,000400: 10,2324           53435                           DXCH     PHSNAME1   -2                         
055902,000401: 
055903,000402: 10,2325           12247                           TCF      BELOW1                                
055904,000403: 
055905,000404:    7750                                           BLOCK    03                                    
055906,000405:    6000                                           SETLOC   FFTAG6                                
055907,000406:    6000                                           BANK                                           
055908,000407: 
055909,000408:    7750                                           COUNT*   $$/PHASE                              
055910,000409:    7750           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
055911,000410:    7751           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
055912,000411:    7752           15423                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
055913,000412: 
055914,000413:    7753           15402                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
055915,000414: 
055916,000415: 

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