Source Code

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

The reconstruction began with reconstructed source code for Luminary 178. Changes between revision 173 and 178 were backed out, as described by Luminary memo 167 (revision 1). 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 173 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.

054826,000002:                                                                                                  ## Copyright:   Public domain.
054827,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
054828,000004:                                                                                                  ## Purpose:     A section of Luminary revision 173.
054829,000005:                                                                                                  ##              It is part of the reconstructed source code for the second
054830,000006:                                                                                                  ##              (unflown) release of the flight software for the Lunar
054831,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 14.
054832,000008:                                                                                                  ##              The code has been recreated from a reconstructed copy of
054833,000009:                                                                                                  ##              Luminary 178, as well as Luminary memo 167 (revision 1).
054834,000010:                                                                                                  ##              It has been adapted such that the resulting bugger words
054835,000011:                                                                                                  ##              exactly match those specified for Luminary 173 in NASA
054836,000012:                                                                                                  ##              drawing 2021152N, which gives relatively high confidence
054837,000013:                                                                                                  ##              that the reconstruction is correct.
054838,000014:                                                                                                  ## Reference:   pp. 1283-1291
054839,000015:                                                                                                  ## Assembler:   yaYUL
054840,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054841,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
054842,000018:                                                                                                  ## Mod history: 2019-09-18 MAS  Created from Luminary 178.
054843,000019: 

Page 1283

054845,000021:                                                                                                  #           SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
054846,000022: 
054847,000023: 43,3757                                           COUNT*   $$/PHASE                              
054848,000024:    5322                                           BLOCK    02                                    
054849,000025:    4000                                           SETLOC   FFTAG1                                
054850,000026:    4000                                           BANK                                           
054851,000027: 
054852,000028:    5322           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
054853,000029:    5323           30000                           CAF      0                                     
054854,000030:    5324           24002                           INCR     Q                                     
054855,000031: 
054856,000032:    5325           55010        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
054857,000033:    5326           35331        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
054858,000034:    5327           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
054859,000035:    5330           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
054860,000036:    5331           20213                           CADR     SETUPDSP                              
054861,000037: 
054862,000038:                                                                                                  #           RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
054863,000039: 
054864,000040:    5332           50002        CHECKMM            INDEX    Q                                     
054865,000041:    5333           40000                           CS       0                                     
054866,000042:    5334           61010                           AD       MODREG                                
054867,000043:    5335           00006                           EXTEND                                         
054868,000044:    5336           16744                           BZF      Q+2                                   
054869,000045:    5337           16742                           TCF      Q+1                                   #  NO MATCH
054870,000046: 
054871,000047:    5340     6745               TCQ                =        Q+2        +1                         
054872,000048: 
054873,000049: 14,3775                                           BANK     14                                    
054874,000050: 10,2000                                           SETLOC   PHASETAB                              
054875,000051: 10,2000                                           BANK                                           
054876,000052: 
054877,000053: 10,2213                                           COUNT*   $$/PHASE                              
054878,000054: 10,2213           00004        SETUPDSP           INHINT                                         
054879,000055: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
054880,000056: 10,2215           34355                           CAF      PRIO30                                #    EITHER A TASK OR JOB CAN COME TO
054881,000057: 10,2216           05072                           TC       NOVAC                                 #    NEWMODE X
054882,000058: 10,2217     1010                                  EBANK=   MODREG                                
054883,000059: 10,2217           03606 60102                     2CADR    DSPMMJOB                              
054884,000060: 
054885,000061: 10,2221           52071                           DXCH     RUPTREG1                              
054886,000062: 10,2222           00003                           RELINT                                         
054887,000063: 10,2223           52006                           DXCH     Z                                     #  RETURN
054888,000064: 
054889,000065: 10,2224  40,3606               DSPMMJOB           EQUALS   DSPMMJB                               
054890,000066: 
054891,000067: 
054892,000068:    5340                                           BLOCK    02                                    
054893,000069:    4000                                           SETLOC   FFTAG1                                
054894,000070:    4000                                           BANK                                           

Page 1284

054896,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
054897,000073:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX   CONTAINS THE PHASE INFORMATION,
054898,000074: 
054899,000075:                                                                                                  #                                                   TC     PHASCHNG
054900,000076:                                                                                                  #                                                   OCT    XXXXX
054901,000077: 
054902,000078:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATIONTHAT IS STORED PERMANENTLY.  THESE
054903,000079:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
054904,000080: 
054905,000081:                                                                                                  #                  G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
054906,000082:                                                                                                  #                  G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
054907,000083:                                                                                                  #                  G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
054908,000084:                                                                                                  #                                  LONGCALL TO BE RESTARTED.
054909,000085:                                                                                                  #                  G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
054910,000086: 
054911,000087:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
054912,000088: 
054913,000089:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
054914,000090: 
054915,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,
054916,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,
054917,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
054918,000094:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
054919,000095: 
054920,000096:                                                                                                  #                                                   TC     PHASCHNG        THIS WILL CAUSE GROUP 3 TOBE SET TO 0,
054921,000097:                                                                                                  #                                                   OCT    00003           MAKING GROUP 3 INACTIVE
054922,000098: 
054923,000099:                                                                                                  #                                                   TC     PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
054924,000100:                                                                                                  #                                                   OCT    00012           GROUP 2 TO RESTART THE LAST DISPLAY
054925,000101: 
054926,000102:                                                                                                  #                                                   TC     PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
054927,000103:                                                                                                  #                                                   OCT    40064           CASE OF A RESTART WOULD START UP THE TWO
054928,000104:                                                                                                  #                                                                          THINGS LOCATED IN THE DOUBLE 4.6 RESTART
054929,000105:                                                                                                  #                                                                          LOCATION
054930,000106:                                                                                                  #                                                   TC     PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
054931,000107:                                                                                                  #                                                   OCT    20135           CAUSES 5.13 TO BE RESTARTED  (SINCE
054932,000108:                                                                                                  #                                                                          LONGBASE WAS SET THIS SINGLE ENTRY
054933,000109:                                                                                                  #                                                                          SHOULD BE A LONGCALL)
054934,000110:                                                                                                  #                                                   TC     PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
054935,000111:                                                                                                  #                                                   OCT    60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
054936,000112:                                                                                                  #                                                                          LONGCALL TO BE RESTARTED
054937,000113: 
054938,000114:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION. INSTEAD OF THE INFORMATION BEING IN A
054939,000115:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
054940,000116: 
054941,000117:                                                                                                  #                  TL0 1AD XXX CJW GGG
054942,000118: 
054943,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
054944,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
054945,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

054947,000123:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
054948,000124:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
054949,000125:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
054950,000126:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
054951,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
054952,000128:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE  PHASE INFORMATION, THAT IS, EITHER
054953,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
054954,000130:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
054955,000131: 
054956,000132:                                                                                                  #                                          AD       TC     PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
054957,000133:                                                                                                  #                                          AD+1     OCT    05023           RESTARTED BY GROUP THREE WITHA PRIORITY
054958,000134:                                                                                                  #                                          AD+2     OCT    23000           OF 23.  NOTE UPON RETURNING IT WOULD
054959,000135:                                                                                                  #                                          AD+3                            ALSO GO TO AD+3
054960,000136: 
054961,000137:                                                                                                  #                                          AD       TC     PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO
054962,000138:                                                                                                  #                                          AD+1     OCT    27441           BE STARTED AS A LONGCALL FROM THE TIME
054963,000139:                                                                                                  #                                          AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
054964,000140:                                                                                                  #                                          AD+3     2CADR  CALLCALL        A DELTATIME STORED IN DELTIME.  THE
054965,000141:                                                                                                  #                                          AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
054966,000142:                                                                                                  #                                          AD+5                            BANK OF DELTIME. PHASCHNG RETURNS TO
054967,000143:                                                                                                  #                                                                          LOCATION AD+5
054968,000144: 
054969,000145:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
054970,000146:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
054971,000147: 
054972,000148: 
054973,000149:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
054974,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
054975,000151:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
054976,000152: 
054977,000153:                                                                                                  #                  TL1 DAP PPP PPP GGG
054978,000154: 
054979,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
054980,000156:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE. D THIS
054981,000157:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
054982,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
054983,000159:                                                                                                  #  THE NEXT LOCATION.(THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
054984,000160: 
054985,000161:                                                                                                  #                                          AD       TC     PHASCHNG        TBASE IS SET AND ARESTART CAUSE GROUP 3
054986,000162:                                                                                                  #                                          AD+1     OCT    56043           TO START THE JOB AJOBAJOB WITH PRIORITY
054987,000163:                                                                                                  #                                          AD+2     OCT    31000           31 AND THE FIRST ENTRY OF 3.4SPOT(WE CAN
054988,000164:                                                                                                  #                                          AD+3     2CADR  AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
054989,000165:                                                                                                  #                                          AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
054990,000166:                                                                                                  #                                          AD+5                            GO TO AD+5
054991,000167: 
054992,000168:                                                                                                  #                                          AD       TC     PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
054993,000169:                                                                                                  #                                          AD+1     OCT    10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
054994,000170:                                                                                                  #                                          AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
054995,000171:                                                                                                  #                                                                          BY MEANS OF GROUP 5
054996,000172: 

Page 1286

054998,000174:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
054999,000175: 
055000,000176: 
055001,000177:                                                                                                  #  SUMMARY OF BITS
055002,000178: 
055003,000179:                                                                                                  #  TYPE A          TL0 00P PPP PPP GGG
055004,000180: 
055005,000181:                                                                                                  #  TYPE B          TL1 DAP PPP PPP GGG
055006,000182: 
055007,000183:                                                                                                  #  TYPE C          TL0 1AD XXX CJW GGG
055008,000184: 

Page 1287

055010,000186:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
055011,000187:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
055012,000188:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
055013,000189: 
055014,000190:                                                                                                  #                                                   TC     2PHSCHNG
055015,000191:                                                                                                  #                                                   OCT    XXXXX
055016,000192:                                                                                                  #                                                   OCT    YYYYY
055017,000193: 
055018,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
055019,000195:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
055020,000196:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
055021,000197: 
055022,000198:                                                                                                  #                                          AD       TC     2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
055023,000199:                                                                                                  #                                          AD+1     OCT    40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
055024,000200:                                                                                                  #                                          AD+2     OCT    05025           THIS IS OF TYPE C, SET THE JOB TO BE
055025,000201:                                                                                                  #                                          AD+3     OCT    18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
055026,000202:                                                                                                  #                                          AD+4                            FOR GROUP 5 PHASE INFORMATION
055027,000203: 
055028,000204:    5340                                           COUNT*   $$/PHASE                              
055029,000205:    5340           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
055030,000206:    5341           50002                           NDX      Q                                     
055031,000207:    5342           30000                           CA       0                                     
055032,000208:    5343           24002                           INCR     Q                                     
055033,000209:    5344           54072                           TS       TEMPP2                                
055034,000210: 
055035,000211:    5345           74757                           MASK     OCT7                                  
055036,000212:    5346           60000                           DOUBLE                                         
055037,000213:    5347           54071                           TS       TEMPG2                                
055038,000214: 
055039,000215:    5350           30072                           CA       TEMPP2                                
055040,000216:    5351           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
055041,000217:    5352           00006                           EXTEND                                         
055042,000218:    5353           74740                           MP       BIT12                                 
055043,000219:    5354           56072                           XCH      TEMPP2                                
055044,000220: 
055045,000221:    5355           74735                           MASK     BIT15                                 
055046,000222:    5356           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
055047,000223: 
055048,000224:    5357           50002                           INDEX    Q                                     
055049,000225:    5360           30000                           CA       0                                     
055050,000226:    5361           24002                           INCR     Q                                     
055051,000227:    5362           54065                           TS       TEMPSW                                
055052,000228: 
055053,000229:    5363           15374                           TCF      PHASJUMP                              
055054,000230: 
055055,000231:    5364           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
055056,000232:    5365           50002                           INDEX    Q                                     
055057,000233:    5366           30000                           CA       0                                     
055058,000234:    5367           24002                           INCR     Q                                     
055059,000235:    5370           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1288

055061,000237:    5371           54065                           TS       TEMPSW                                
055062,000238:    5372           34753                           CA       ONE                                   
055063,000239:    5373           54066                           TS       TEMPSW2                               
055064,000240:    5374           00006        PHASJUMP           EXTEND                                         
055065,000241:    5375           35400                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
055066,000242:    5376           52006                           DTCB                                           
055067,000243: 
055068,000244:    5377  E3,1400                                  EBANK=   LST1                                  
055069,000245:    5377           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
055070,000246: 
055071,000247: 
055072,000248: 
055073,000249:    5401           22073        ONEORTWO           LXCH     TEMPBBCN                              
055074,000250:    5402           22006                           LXCH     BBANK                                 
055075,000251:    5403           22073                           LXCH     TEMPBBCN                              
055076,000252: 
055077,000253:    5404           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
055078,000254:    5405           10000                           CCS      A                                     
055079,000255:    5406           17753                           TCF      CHECKB                                #   IT IS OF TYPE :B:
055080,000256: 
055081,000257:    5407           30062                           CA       TEMPP                                 
055082,000258:    5410           74745                           MASK     BIT7                                  
055083,000259:    5411           10000                           CCS      A                                     #   SHALL WE USE THE OLD PRIORITY
055084,000260:    5412           15434                           TCF      GETPRIO                               #   NO GET A NEW PRIORITY (OR DELTA T)
055085,000261: 
055086,000262:    5413           50061        OLDPRIO            NDX      TEMPG                                 #   USE THE OLD PRIORITY (OR DELTA T)
055087,000263:    5414           31051                           CA       PHSPRDT1   -2                         
055088,000264:    5415           54070                           TS       TEMPPR                                
055089,000265: 
055090,000266:    5416           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
055091,000267:    5417           74744                           MASK     BIT8                                  
055092,000268:    5420           10000                           CCS      A                                     
055093,000269:    5421           15440                           TCF      GETNEWNM                              
055094,000270: 
055095,000271:    5422           30002                           CA       Q                                     
055096,000272:    5423           54063                           TS       TEMPNM                                
055097,000273:    5424           30006                           CA       BB                                    
055098,000274:    5425           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
055099,000275:    5426           04007                           ROR      SUPERBNK                              
055100,000276:    5427           54064                           TS       TEMPBB                                
055101,000277: 
055102,000278:    5430           35433        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
055103,000279:    5431           22073                           LXCH     TEMPBBCN                              
055104,000280:    5432           52006                           DTCB                                           
055105,000281: 
055106,000282:    5433           02312        CON2ADR            GENADR   CON2                                  
055107,000283: 
055108,000284:    5434           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
055109,000285:    5435           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
055110,000286:    5436           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1289

055112,000288:    5437           15415                           TCF      CON1       -1                         
055113,000289: 
055114,000290:    5440           00006        GETNEWNM           EXTEND                                         
055115,000291:    5441           50002                           INDEX    Q                                     
055116,000292:    5442           30001                           DCA      0                                     
055117,000293:    5443           52064                           DXCH     TEMPNM                                
055118,000294:    5444           34752                           CA       TWO                                   
055119,000295:    5445           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
055120,000296: 
055121,000297:    5446           15430                           TCF      TOCON2                                
055122,000298: 
055123,000299:    5447     5024               OCT14000           EQUALS   PRIO14                                
055124,000300:    5447     0061               TEMPG              EQUALS   ITEMP1                                
055125,000301:    5447     0062               TEMPP              EQUALS   ITEMP2                                
055126,000302:    5447     0063               TEMPNM             EQUALS   ITEMP3                                
055127,000303:    5447     0064               TEMPBB             EQUALS   ITEMP4                                
055128,000304:    5447     0065               TEMPSW             EQUALS   ITEMP5                                
055129,000305:    5447     0066               TEMPSW2            EQUALS   ITEMP6                                
055130,000306:    5447     0070               TEMPPR             EQUALS   RUPTREG1                              
055131,000307:    5447     0071               TEMPG2             EQUALS   RUPTREG2                              
055132,000308:    5447     0072               TEMPP2             EQUALS   RUPTREG3                              
055133,000309: 
055134,000310:    5447     0073               TEMPBBCN           EQUALS   RUPTREG4                              
055135,000311:    5447  0000006               BB                 EQUALS   BBANK                                 
055136,000312: 
055137,000313: 
055138,000314: 14,3775                                           BANK     14                                    
055139,000315: 10,2000                                           SETLOC   PHASETAB                              
055140,000316: 10,2000                                           BANK                                           
055141,000317: 
055142,000318: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
055143,000319: 10,2224                                           COUNT*   $$/PHASE                              
055144,000320: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
055145,000321: 10,2225           30065                           CA       TEMPSW                                
055146,000322: 10,2226           74757                           MASK     OCT7                                  
055147,000323: 10,2227           60000                           DOUBLE                                         
055148,000324: 10,2230           54061                           TS       TEMPG                                 
055149,000325: 
055150,000326: 10,2231           30065                           CA       TEMPSW                                
055151,000327: 10,2232           75030                           MASK     OCT17770                              
055152,000328: 10,2233           00006                           EXTEND                                         
055153,000329: 10,2234           74740                           MP       BIT12                                 
055154,000330: 10,2235           54062                           TS       TEMPP                                 
055155,000331: 
055156,000332: 10,2236           30065                           CA       TEMPSW                                
055157,000333: 10,2237           74101                           MASK     OCT60000                              
055158,000334: 10,2240           56065                           XCH      TEMPSW                                
055159,000335: 10,2241           75024                           MASK     OCT14000                              
055160,000336: 10,2242           10000                           CCS      A                                     

Page 1290

055162,000338: 10,2243           15401                           TCF      ONEORTWO                              
055163,000339: 
055164,000340: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
055165,000341: 10,2245           50061                           NDX      TEMPG                                 
055166,000342: 10,2246           54750                           TS       PHASE1     -2                         
055167,000343: 
055168,000344: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
055169,000345: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
055170,000346: 
055171,000347: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
055172,000348: 10,2252           40072                           CS       TEMPP2                                
055173,000349: 10,2253           22072                           LXCH     TEMPP2                                
055174,000350: 10,2254           50071                           NDX      TEMPG2                                
055175,000351: 10,2255           52750                           DXCH     -PHASE1    -2                         
055176,000352: 
055177,000353: 10,2256           10066                           CCS      TEMPSW2                               
055178,000354: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
055179,000355: 10,2260           12264                           TCF      BELOW2                                
055180,000356: 
055181,000357: 10,2261           40025                           CS       TIME1                                 
055182,000358: 10,2262           50071                           NDX      TEMPG2                                
055183,000359: 10,2263           55050                           TS       TBASE1     -2                         
055184,000360: 
055185,000361: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
055186,000362: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
055187,000363: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
055188,000364: 
055189,000365: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
055190,000366: 10,2270           50061                           NDX      TEMPG                                 
055191,000367: 10,2271           55050                           TS       TBASE1     -2                         
055192,000368: 
055193,000369: 10,2272           30065                           CA       TEMPSW                                #   SHALL WE NOW SET LONGBASE
055194,000370: 10,2273           62276                           AD       BIT14COM                              
055195,000371: 10,2274           10000                           CCS      A                                     
055196,000372: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
055197,000373: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
055198,000374: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
055199,000375: 
055200,000376: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
055201,000377: 10,2301           30025                           DCA      TIME2                                 
055202,000378: 10,2302           53151                           DXCH     LONGBASE                              
055203,000379: 
055204,000380: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
055205,000381: 10,2304           50061                           NDX      TEMPG                                 
055206,000382: 10,2305           54747                           TS       -PHASE1    -2                         
055207,000383: 
055208,000384: 10,2306           30002                           CA       Q                                     
055209,000385: 10,2307           22073                           LXCH     TEMPBBCN                              
055210,000386: 10,2310           00003                           RELINT                                         
055211,000387: 10,2311           52006                           DTCB                                           

Page 1291

055213,000389: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
055214,000390: 
055215,000391: 10,2313           30062                           CA       TEMPP                                 
055216,000392: 10,2314           50061                           NDX      TEMPG                                 
055217,000393: 10,2315           54750                           TS       PHASE1     -2                         
055218,000394: 
055219,000395: 10,2316           30070                           CA       TEMPPR                                
055220,000396: 10,2317           50061                           NDX      TEMPG                                 
055221,000397: 10,2320           55051                           TS       PHSPRDT1   -2                         
055222,000398: 
055223,000399: 10,2321           00006                           EXTEND                                         
055224,000400: 10,2322           30064                           DCA      TEMPNM                                
055225,000401: 10,2323           50061                           NDX      TEMPG                                 
055226,000402: 10,2324           53435                           DXCH     PHSNAME1   -2                         
055227,000403: 
055228,000404: 10,2325           12247                           TCF      BELOW1                                
055229,000405: 
055230,000406:    7753                                           BLOCK    03                                    
055231,000407:    6000                                           SETLOC   FFTAG6                                
055232,000408:    6000                                           BANK                                           
055233,000409: 
055234,000410:    7753                                           COUNT*   $$/PHASE                              
055235,000411:    7753           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
055236,000412:    7754           10000                           CCS      A                                     #   BE HERE IF WE ARE TO GET A NEW PRIORITY
055237,000413:    7755           15434                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
055238,000414: 
055239,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