Source Code

These source-code files are part of a reconstructed copy of Luminary 163, the first (unflown) release of the Apollo 14 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with reconstructed source code for Luminary 173. Changes between revision 163 and 173 were backed out, as described by Luminary memos 157 and 158. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152N. Note that page numbers in the reconstructed code match those for the baseline log section mentioned in each file's changelog; the page numbers for a real Luminary 163 listing would be different.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

054758,000002:                                                                                                  ## Copyright:   Public domain.
054759,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
054760,000004:                                                                                                  ## Purpose:     A section of Luminary revision 163.
054761,000005:                                                                                                  ##              It is part of the reconstructed source code for the first
054762,000006:                                                                                                  ##              (unflown) release of the flight software for the Lunar
054763,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 14.
054764,000008:                                                                                                  ##              The code has been recreated from a reconstructed copy of
054765,000009:                                                                                                  ##              Luminary 173, as well as Luminary memos 157 amd 158.
054766,000010:                                                                                                  ##              It has been adapted such that the resulting bugger words
054767,000011:                                                                                                  ##              exactly match those specified for Luminary 163 in NASA
054768,000012:                                                                                                  ##              drawing 2021152N, which gives relatively high confidence
054769,000013:                                                                                                  ##              that the reconstruction is correct.
054770,000014:                                                                                                  ## Reference:   pp. 1283-1291
054771,000015:                                                                                                  ## Assembler:   yaYUL
054772,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054773,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
054774,000018:                                                                                                  ## Mod history: 2019-08-21 MAS  Created from Luminary 173.
054775,000019: 

Page 1283

054777,000021:                                                                                                  #           SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
054778,000022: 
054779,000023: 43,3757                                           COUNT*   $$/PHASE                              
054780,000024:    5322                                           BLOCK    02                                    
054781,000025:    4000                                           SETLOC   FFTAG1                                
054782,000026:    4000                                           BANK                                           
054783,000027: 
054784,000028:    5322           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
054785,000029:    5323           30000                           CAF      0                                     
054786,000030:    5324           24002                           INCR     Q                                     
054787,000031: 
054788,000032:    5325           55010        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
054789,000033:    5326           35331        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
054790,000034:    5327           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
054791,000035:    5330           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
054792,000036:    5331           20213                           CADR     SETUPDSP                              
054793,000037: 
054794,000038:                                                                                                  #           RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
054795,000039: 
054796,000040:    5332           50002        CHECKMM            INDEX    Q                                     
054797,000041:    5333           40000                           CS       0                                     
054798,000042:    5334           61010                           AD       MODREG                                
054799,000043:    5335           00006                           EXTEND                                         
054800,000044:    5336           16744                           BZF      Q+2                                   
054801,000045:    5337           16742                           TCF      Q+1                                   #  NO MATCH
054802,000046: 
054803,000047:    5340     6745               TCQ                =        Q+2        +1                         
054804,000048: 
054805,000049: 14,3775                                           BANK     14                                    
054806,000050: 10,2000                                           SETLOC   PHASETAB                              
054807,000051: 10,2000                                           BANK                                           
054808,000052: 
054809,000053: 10,2213                                           COUNT*   $$/PHASE                              
054810,000054: 10,2213           00004        SETUPDSP           INHINT                                         
054811,000055: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
054812,000056: 10,2215           34355                           CAF      PRIO30                                #    EITHER A TASK OR JOB CAN COME TO
054813,000057: 10,2216           05072                           TC       NOVAC                                 #    NEWMODE X
054814,000058: 10,2217     1010                                  EBANK=   MODREG                                
054815,000059: 10,2217           03606 60102                     2CADR    DSPMMJOB                              
054816,000060: 
054817,000061: 10,2221           52071                           DXCH     RUPTREG1                              
054818,000062: 10,2222           00003                           RELINT                                         
054819,000063: 10,2223           52006                           DXCH     Z                                     #  RETURN
054820,000064: 
054821,000065: 10,2224  40,3606               DSPMMJOB           EQUALS   DSPMMJB                               
054822,000066: 
054823,000067: 
054824,000068:    5340                                           BLOCK    02                                    
054825,000069:    4000                                           SETLOC   FFTAG1                                
054826,000070:    4000                                           BANK                                           

Page 1284

054828,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
054829,000073:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX   CONTAINS THE PHASE INFORMATION,
054830,000074: 
054831,000075:                                                                                                  #                                                   TC     PHASCHNG
054832,000076:                                                                                                  #                                                   OCT    XXXXX
054833,000077: 
054834,000078:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATIONTHAT IS STORED PERMANENTLY.  THESE
054835,000079:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
054836,000080: 
054837,000081:                                                                                                  #                  G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
054838,000082:                                                                                                  #                  G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
054839,000083:                                                                                                  #                  G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
054840,000084:                                                                                                  #                                  LONGCALL TO BE RESTARTED.
054841,000085:                                                                                                  #                  G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
054842,000086: 
054843,000087:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
054844,000088: 
054845,000089:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
054846,000090: 
054847,000091:                                                                                                  #  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,
054848,000092:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.              IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
054849,000093:                                                                                                  #  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
054850,000094:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
054851,000095: 
054852,000096:                                                                                                  #                                                   TC     PHASCHNG        THIS WILL CAUSE GROUP 3 TOBE SET TO 0,
054853,000097:                                                                                                  #                                                   OCT    00003           MAKING GROUP 3 INACTIVE
054854,000098: 
054855,000099:                                                                                                  #                                                   TC     PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
054856,000100:                                                                                                  #                                                   OCT    00012           GROUP 2 TO RESTART THE LAST DISPLAY
054857,000101: 
054858,000102:                                                                                                  #                                                   TC     PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
054859,000103:                                                                                                  #                                                   OCT    40064           CASE OF A RESTART WOULD START UP THE TWO
054860,000104:                                                                                                  #                                                                          THINGS LOCATED IN THE DOUBLE 4.6 RESTART
054861,000105:                                                                                                  #                                                                          LOCATION
054862,000106:                                                                                                  #                                                   TC     PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
054863,000107:                                                                                                  #                                                   OCT    20135           CAUSES 5.13 TO BE RESTARTED  (SINCE
054864,000108:                                                                                                  #                                                                          LONGBASE WAS SET THIS SINGLE ENTRY
054865,000109:                                                                                                  #                                                                          SHOULD BE A LONGCALL)
054866,000110:                                                                                                  #                                                   TC     PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
054867,000111:                                                                                                  #                                                   OCT    60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
054868,000112:                                                                                                  #                                                                          LONGCALL TO BE RESTARTED
054869,000113: 
054870,000114:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION. INSTEAD OF THE INFORMATION BEING IN A
054871,000115:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
054872,000116: 
054873,000117:                                                                                                  #                  TL0 1AD XXX CJW GGG
054874,000118: 
054875,000119:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
054876,000120:                                                                                                  #  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
054877,000121:                                                                                                  #  THESE THREE BIT S MAY BE SET.  X:S ARE IGNORED  1 MUST BE 1, AND 0 MUST  BE 0.  AGAIN T STANDS FOR THE TBASE,

Page 1285

054879,000123:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
054880,000124:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
054881,000125:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
054882,000126:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
054883,000127:                                                                                                  #  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
054884,000128:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE  PHASE INFORMATION, THAT IS, EITHER
054885,000129:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
054886,000130:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
054887,000131: 
054888,000132:                                                                                                  #                                          AD       TC     PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
054889,000133:                                                                                                  #                                          AD+1     OCT    05023           RESTARTED BY GROUP THREE WITHA PRIORITY
054890,000134:                                                                                                  #                                          AD+2     OCT    23000           OF 23.  NOTE UPON RETURNING IT WOULD
054891,000135:                                                                                                  #                                          AD+3                            ALSO GO TO AD+3
054892,000136: 
054893,000137:                                                                                                  #                                          AD       TC     PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO
054894,000138:                                                                                                  #                                          AD+1     OCT    27441           BE STARTED AS A LONGCALL FROM THE TIME
054895,000139:                                                                                                  #                                          AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
054896,000140:                                                                                                  #                                          AD+3     2CADR  CALLCALL        A DELTATIME STORED IN DELTIME.  THE
054897,000141:                                                                                                  #                                          AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
054898,000142:                                                                                                  #                                          AD+5                            BANK OF DELTIME. PHASCHNG RETURNS TO
054899,000143:                                                                                                  #                                                                          LOCATION AD+5
054900,000144: 
054901,000145:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
054902,000146:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
054903,000147: 
054904,000148: 
054905,000149:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
054906,000150:                                                                                                  #  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
054907,000151:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
054908,000152: 
054909,000153:                                                                                                  #                  TL1 DAP PPP PPP GGG
054910,000154: 
054911,000155:                                                                                                  #  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
054912,000156:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE. D THIS
054913,000157:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
054914,000158:                                                                                                  #  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
054915,000159:                                                                                                  #  THE NEXT LOCATION.(THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
054916,000160: 
054917,000161:                                                                                                  #                                          AD       TC     PHASCHNG        TBASE IS SET AND ARESTART CAUSE GROUP 3
054918,000162:                                                                                                  #                                          AD+1     OCT    56043           TO START THE JOB AJOBAJOB WITH PRIORITY
054919,000163:                                                                                                  #                                          AD+2     OCT    31000           31 AND THE FIRST ENTRY OF 3.4SPOT(WE CAN
054920,000164:                                                                                                  #                                          AD+3     2CADR  AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
054921,000165:                                                                                                  #                                          AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
054922,000166:                                                                                                  #                                          AD+5                            GO TO AD+5
054923,000167: 
054924,000168:                                                                                                  #                                          AD       TC     PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
054925,000169:                                                                                                  #                                          AD+1     OCT    10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
054926,000170:                                                                                                  #                                          AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
054927,000171:                                                                                                  #                                                                          BY MEANS OF GROUP 5
054928,000172: 

Page 1286

054930,000174:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
054931,000175: 
054932,000176: 
054933,000177:                                                                                                  #  SUMMARY OF BITS
054934,000178: 
054935,000179:                                                                                                  #  TYPE A          TL0 00P PPP PPP GGG
054936,000180: 
054937,000181:                                                                                                  #  TYPE B          TL1 DAP PPP PPP GGG
054938,000182: 
054939,000183:                                                                                                  #  TYPE C          TL0 1AD XXX CJW GGG
054940,000184: 

Page 1287

054942,000186:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
054943,000187:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
054944,000188:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
054945,000189: 
054946,000190:                                                                                                  #                                                   TC     2PHSCHNG
054947,000191:                                                                                                  #                                                   OCT    XXXXX
054948,000192:                                                                                                  #                                                   OCT    YYYYY
054949,000193: 
054950,000194:                                                                                                  #  WHERE OCT XXXXX MUST BE OF TYPE A AND OCT YYYYY MAY BE OF EITHER TYPE A OR TYPE B OR TYPEC.  THERE IS ONE
054951,000195:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
054952,000196:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
054953,000197: 
054954,000198:                                                                                                  #                                          AD       TC     2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
054955,000199:                                                                                                  #                                          AD+1     OCT    40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
054956,000200:                                                                                                  #                                          AD+2     OCT    05025           THIS IS OF TYPE C, SET THE JOB TO BE
054957,000201:                                                                                                  #                                          AD+3     OCT    18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
054958,000202:                                                                                                  #                                          AD+4                            FOR GROUP 5 PHASE INFORMATION
054959,000203: 
054960,000204:    5340                                           COUNT*   $$/PHASE                              
054961,000205:    5340           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
054962,000206:    5341           50002                           NDX      Q                                     
054963,000207:    5342           30000                           CA       0                                     
054964,000208:    5343           24002                           INCR     Q                                     
054965,000209:    5344           54072                           TS       TEMPP2                                
054966,000210: 
054967,000211:    5345           74757                           MASK     OCT7                                  
054968,000212:    5346           60000                           DOUBLE                                         
054969,000213:    5347           54071                           TS       TEMPG2                                
054970,000214: 
054971,000215:    5350           30072                           CA       TEMPP2                                
054972,000216:    5351           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
054973,000217:    5352           00006                           EXTEND                                         
054974,000218:    5353           74740                           MP       BIT12                                 
054975,000219:    5354           56072                           XCH      TEMPP2                                
054976,000220: 
054977,000221:    5355           74735                           MASK     BIT15                                 
054978,000222:    5356           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
054979,000223: 
054980,000224:    5357           50002                           INDEX    Q                                     
054981,000225:    5360           30000                           CA       0                                     
054982,000226:    5361           24002                           INCR     Q                                     
054983,000227:    5362           54065                           TS       TEMPSW                                
054984,000228: 
054985,000229:    5363           15374                           TCF      PHASJUMP                              
054986,000230: 
054987,000231:    5364           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
054988,000232:    5365           50002                           INDEX    Q                                     
054989,000233:    5366           30000                           CA       0                                     
054990,000234:    5367           24002                           INCR     Q                                     
054991,000235:    5370           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1288

054993,000237:    5371           54065                           TS       TEMPSW                                
054994,000238:    5372           34753                           CA       ONE                                   
054995,000239:    5373           54066                           TS       TEMPSW2                               
054996,000240:    5374           00006        PHASJUMP           EXTEND                                         
054997,000241:    5375           35400                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
054998,000242:    5376           52006                           DTCB                                           
054999,000243: 
055000,000244:    5377  E3,1400                                  EBANK=   LST1                                  
055001,000245:    5377           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
055002,000246: 
055003,000247: 
055004,000248: 
055005,000249:    5401           22073        ONEORTWO           LXCH     TEMPBBCN                              
055006,000250:    5402           22006                           LXCH     BBANK                                 
055007,000251:    5403           22073                           LXCH     TEMPBBCN                              
055008,000252: 
055009,000253:    5404           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
055010,000254:    5405           10000                           CCS      A                                     
055011,000255:    5406           17753                           TCF      CHECKB                                #   IT IS OF TYPE :B:
055012,000256: 
055013,000257:    5407           30062                           CA       TEMPP                                 
055014,000258:    5410           74745                           MASK     BIT7                                  
055015,000259:    5411           10000                           CCS      A                                     #   SHALL WE USE THE OLD PRIORITY
055016,000260:    5412           15434                           TCF      GETPRIO                               #   NO GET A NEW PRIORITY (OR DELTA T)
055017,000261: 
055018,000262:    5413           50061        OLDPRIO            NDX      TEMPG                                 #   USE THE OLD PRIORITY (OR DELTA T)
055019,000263:    5414           31051                           CA       PHSPRDT1   -2                         
055020,000264:    5415           54070                           TS       TEMPPR                                
055021,000265: 
055022,000266:    5416           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
055023,000267:    5417           74744                           MASK     BIT8                                  
055024,000268:    5420           10000                           CCS      A                                     
055025,000269:    5421           15440                           TCF      GETNEWNM                              
055026,000270: 
055027,000271:    5422           30002                           CA       Q                                     
055028,000272:    5423           54063                           TS       TEMPNM                                
055029,000273:    5424           30006                           CA       BB                                    
055030,000274:    5425           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
055031,000275:    5426           04007                           ROR      SUPERBNK                              
055032,000276:    5427           54064                           TS       TEMPBB                                
055033,000277: 
055034,000278:    5430           35433        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
055035,000279:    5431           22073                           LXCH     TEMPBBCN                              
055036,000280:    5432           52006                           DTCB                                           
055037,000281: 
055038,000282:    5433           02312        CON2ADR            GENADR   CON2                                  
055039,000283: 
055040,000284:    5434           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
055041,000285:    5435           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
055042,000286:    5436           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1289

055044,000288:    5437           15415                           TCF      CON1       -1                         
055045,000289: 
055046,000290:    5440           00006        GETNEWNM           EXTEND                                         
055047,000291:    5441           50002                           INDEX    Q                                     
055048,000292:    5442           30001                           DCA      0                                     
055049,000293:    5443           52064                           DXCH     TEMPNM                                
055050,000294:    5444           34752                           CA       TWO                                   
055051,000295:    5445           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
055052,000296: 
055053,000297:    5446           15430                           TCF      TOCON2                                
055054,000298: 
055055,000299:    5447     5024               OCT14000           EQUALS   PRIO14                                
055056,000300:    5447     0061               TEMPG              EQUALS   ITEMP1                                
055057,000301:    5447     0062               TEMPP              EQUALS   ITEMP2                                
055058,000302:    5447     0063               TEMPNM             EQUALS   ITEMP3                                
055059,000303:    5447     0064               TEMPBB             EQUALS   ITEMP4                                
055060,000304:    5447     0065               TEMPSW             EQUALS   ITEMP5                                
055061,000305:    5447     0066               TEMPSW2            EQUALS   ITEMP6                                
055062,000306:    5447     0070               TEMPPR             EQUALS   RUPTREG1                              
055063,000307:    5447     0071               TEMPG2             EQUALS   RUPTREG2                              
055064,000308:    5447     0072               TEMPP2             EQUALS   RUPTREG3                              
055065,000309: 
055066,000310:    5447     0073               TEMPBBCN           EQUALS   RUPTREG4                              
055067,000311:    5447  0000006               BB                 EQUALS   BBANK                                 
055068,000312: 
055069,000313: 
055070,000314: 14,3775                                           BANK     14                                    
055071,000315: 10,2000                                           SETLOC   PHASETAB                              
055072,000316: 10,2000                                           BANK                                           
055073,000317: 
055074,000318: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
055075,000319: 10,2224                                           COUNT*   $$/PHASE                              
055076,000320: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
055077,000321: 10,2225           30065                           CA       TEMPSW                                
055078,000322: 10,2226           74757                           MASK     OCT7                                  
055079,000323: 10,2227           60000                           DOUBLE                                         
055080,000324: 10,2230           54061                           TS       TEMPG                                 
055081,000325: 
055082,000326: 10,2231           30065                           CA       TEMPSW                                
055083,000327: 10,2232           75030                           MASK     OCT17770                              
055084,000328: 10,2233           00006                           EXTEND                                         
055085,000329: 10,2234           74740                           MP       BIT12                                 
055086,000330: 10,2235           54062                           TS       TEMPP                                 
055087,000331: 
055088,000332: 10,2236           30065                           CA       TEMPSW                                
055089,000333: 10,2237           74101                           MASK     OCT60000                              
055090,000334: 10,2240           56065                           XCH      TEMPSW                                
055091,000335: 10,2241           75024                           MASK     OCT14000                              
055092,000336: 10,2242           10000                           CCS      A                                     

Page 1290

055094,000338: 10,2243           15401                           TCF      ONEORTWO                              
055095,000339: 
055096,000340: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
055097,000341: 10,2245           50061                           NDX      TEMPG                                 
055098,000342: 10,2246           54750                           TS       PHASE1     -2                         
055099,000343: 
055100,000344: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
055101,000345: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
055102,000346: 
055103,000347: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
055104,000348: 10,2252           40072                           CS       TEMPP2                                
055105,000349: 10,2253           22072                           LXCH     TEMPP2                                
055106,000350: 10,2254           50071                           NDX      TEMPG2                                
055107,000351: 10,2255           52750                           DXCH     -PHASE1    -2                         
055108,000352: 
055109,000353: 10,2256           10066                           CCS      TEMPSW2                               
055110,000354: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
055111,000355: 10,2260           12264                           TCF      BELOW2                                
055112,000356: 
055113,000357: 10,2261           40025                           CS       TIME1                                 
055114,000358: 10,2262           50071                           NDX      TEMPG2                                
055115,000359: 10,2263           55050                           TS       TBASE1     -2                         
055116,000360: 
055117,000361: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
055118,000362: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
055119,000363: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
055120,000364: 
055121,000365: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
055122,000366: 10,2270           50061                           NDX      TEMPG                                 
055123,000367: 10,2271           55050                           TS       TBASE1     -2                         
055124,000368: 
055125,000369: 10,2272           30065                           CA       TEMPSW                                #   SHALL WE NOW SET LONGBASE
055126,000370: 10,2273           62276                           AD       BIT14COM                              
055127,000371: 10,2274           10000                           CCS      A                                     
055128,000372: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
055129,000373: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
055130,000374: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
055131,000375: 
055132,000376: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
055133,000377: 10,2301           30025                           DCA      TIME2                                 
055134,000378: 10,2302           53151                           DXCH     LONGBASE                              
055135,000379: 
055136,000380: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
055137,000381: 10,2304           50061                           NDX      TEMPG                                 
055138,000382: 10,2305           54747                           TS       -PHASE1    -2                         
055139,000383: 
055140,000384: 10,2306           30002                           CA       Q                                     
055141,000385: 10,2307           22073                           LXCH     TEMPBBCN                              
055142,000386: 10,2310           00003                           RELINT                                         
055143,000387: 10,2311           52006                           DTCB                                           

Page 1291

055145,000389: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
055146,000390: 
055147,000391: 10,2313           30062                           CA       TEMPP                                 
055148,000392: 10,2314           50061                           NDX      TEMPG                                 
055149,000393: 10,2315           54750                           TS       PHASE1     -2                         
055150,000394: 
055151,000395: 10,2316           30070                           CA       TEMPPR                                
055152,000396: 10,2317           50061                           NDX      TEMPG                                 
055153,000397: 10,2320           55051                           TS       PHSPRDT1   -2                         
055154,000398: 
055155,000399: 10,2321           00006                           EXTEND                                         
055156,000400: 10,2322           30064                           DCA      TEMPNM                                
055157,000401: 10,2323           50061                           NDX      TEMPG                                 
055158,000402: 10,2324           53435                           DXCH     PHSNAME1   -2                         
055159,000403: 
055160,000404: 10,2325           12247                           TCF      BELOW1                                
055161,000405: 
055162,000406:    7753                                           BLOCK    03                                    
055163,000407:    6000                                           SETLOC   FFTAG6                                
055164,000408:    6000                                           BANK                                           
055165,000409: 
055166,000410:    7753                                           COUNT*   $$/PHASE                              
055167,000411:    7753           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
055168,000412:    7754           10000                           CCS      A                                     #   BE HERE IF WE ARE TO GET A NEW PRIORITY
055169,000413:    7755           15434                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
055170,000414: 
055171,000415:    7756           15413                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY

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