Source Code

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

The reconstruction began with source code of Zerlina 56, Luminary 210, and Luminary 131, previously transcribed from digitized copies of those programs. The code was created by combining the three, using Zerlina 56 as a base, since it was based off of Luminary 183. The differences between the three were carefully merged using the Luminary memos as a guide, with all changes made after Luminary 178 being backed out. 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 178 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.

054920,000002:                                                                                                  ## Copyright:   Public domain.
054921,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
054922,000004:                                                                                                  ## Purpose:     A section of Luminary revision 178.
054923,000005:                                                                                                  ##              It is part of the reconstructed source code for the final
054924,000006:                                                                                                  ##              release of the flight software for the Lunar Module's
054925,000007:                                                                                                  ##              (LM) Apollo Guidance Computer (AGC) for Apollo 14. The
054926,000008:                                                                                                  ##              code has been recreated from copies of Zerlina 56, Luminary
054927,000009:                                                                                                  ##              210, and Luminary 131, as well as many Luminary memos.
054928,000010:                                                                                                  ##              It has been adapted such that the resulting bugger words
054929,000011:                                                                                                  ##              exactly match those specified for Luminary 178 in NASA
054930,000012:                                                                                                  ##              drawing 2021152N, which gives relatively high confidence
054931,000013:                                                                                                  ##              that the reconstruction is correct.
054932,000014:                                                                                                  ## Reference:   pp. 1283-1291
054933,000015:                                                                                                  ## Assembler:   yaYUL
054934,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054935,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
054936,000018:                                                                                                  ## Mod history: 2019-08-14 MAS  Created from Zerlina 56.
054937,000019: 

Page 1283

054939,000021:                                                                                                  #           SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
054940,000022: 
054941,000023: 43,3757                                           COUNT*   $$/PHASE                              
054942,000024:    5322                                           BLOCK    02                                    
054943,000025:    4000                                           SETLOC   FFTAG1                                
054944,000026:    4000                                           BANK                                           
054945,000027: 
054946,000028:    5322           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
054947,000029:    5323           30000                           CAF      0                                     
054948,000030:    5324           24002                           INCR     Q                                     
054949,000031: 
054950,000032:    5325           55010        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
054951,000033:    5326           35331        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
054952,000034:    5327           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
054953,000035:    5330           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
054954,000036:    5331           20213                           CADR     SETUPDSP                              
054955,000037: 
054956,000038:                                                                                                  #           RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
054957,000039: 
054958,000040:    5332           50002        CHECKMM            INDEX    Q                                     
054959,000041:    5333           40000                           CS       0                                     
054960,000042:    5334           61010                           AD       MODREG                                
054961,000043:    5335           00006                           EXTEND                                         
054962,000044:    5336           16744                           BZF      Q+2                                   
054963,000045:    5337           16742                           TCF      Q+1                                   #  NO MATCH
054964,000046: 
054965,000047:    5340     6745               TCQ                =        Q+2        +1                         
054966,000048: 
054967,000049: 14,3775                                           BANK     14                                    
054968,000050: 10,2000                                           SETLOC   PHASETAB                              
054969,000051: 10,2000                                           BANK                                           
054970,000052: 
054971,000053: 10,2213                                           COUNT*   $$/PHASE                              
054972,000054: 10,2213           00004        SETUPDSP           INHINT                                         
054973,000055: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
054974,000056: 10,2215           34355                           CAF      PRIO30                                #    EITHER A TASK OR JOB CAN COME TO
054975,000057: 10,2216           05072                           TC       NOVAC                                 #    NEWMODE X
054976,000058: 10,2217     1010                                  EBANK=   MODREG                                
054977,000059: 10,2217           03606 60102                     2CADR    DSPMMJOB                              
054978,000060: 
054979,000061: 10,2221           52071                           DXCH     RUPTREG1                              
054980,000062: 10,2222           00003                           RELINT                                         
054981,000063: 10,2223           52006                           DXCH     Z                                     #  RETURN
054982,000064: 
054983,000065: 10,2224  40,3606               DSPMMJOB           EQUALS   DSPMMJB                               
054984,000066: 
054985,000067: 
054986,000068:    5340                                           BLOCK    02                                    
054987,000069:    4000                                           SETLOC   FFTAG1                                
054988,000070:    4000                                           BANK                                           

Page 1284

054990,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
054991,000073:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX   CONTAINS THE PHASE INFORMATION,
054992,000074: 
054993,000075:                                                                                                  #                                                   TC     PHASCHNG
054994,000076:                                                                                                  #                                                   OCT    XXXXX
054995,000077: 
054996,000078:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATIONTHAT IS STORED PERMANENTLY.  THESE
054997,000079:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
054998,000080: 
054999,000081:                                                                                                  #                  G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
055000,000082:                                                                                                  #                  G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
055001,000083:                                                                                                  #                  G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
055002,000084:                                                                                                  #                                  LONGCALL TO BE RESTARTED.
055003,000085:                                                                                                  #                  G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
055004,000086: 
055005,000087:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
055006,000088: 
055007,000089:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
055008,000090: 
055009,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,
055010,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,
055011,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
055012,000094:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
055013,000095: 
055014,000096:                                                                                                  #                                                   TC     PHASCHNG        THIS WILL CAUSE GROUP 3 TOBE SET TO 0,
055015,000097:                                                                                                  #                                                   OCT    00003           MAKING GROUP 3 INACTIVE
055016,000098: 
055017,000099:                                                                                                  #                                                   TC     PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
055018,000100:                                                                                                  #                                                   OCT    00012           GROUP 2 TO RESTART THE LAST DISPLAY
055019,000101: 
055020,000102:                                                                                                  #                                                   TC     PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
055021,000103:                                                                                                  #                                                   OCT    40064           CASE OF A RESTART WOULD START UP THE TWO
055022,000104:                                                                                                  #                                                                          THINGS LOCATED IN THE DOUBLE 4.6 RESTART
055023,000105:                                                                                                  #                                                                          LOCATION
055024,000106:                                                                                                  #                                                   TC     PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
055025,000107:                                                                                                  #                                                   OCT    20135           CAUSES 5.13 TO BE RESTARTED  (SINCE
055026,000108:                                                                                                  #                                                                          LONGBASE WAS SET THIS SINGLE ENTRY
055027,000109:                                                                                                  #                                                                          SHOULD BE A LONGCALL)
055028,000110:                                                                                                  #                                                   TC     PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
055029,000111:                                                                                                  #                                                   OCT    60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
055030,000112:                                                                                                  #                                                                          LONGCALL TO BE RESTARTED
055031,000113: 
055032,000114:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION. INSTEAD OF THE INFORMATION BEING IN A
055033,000115:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
055034,000116: 
055035,000117:                                                                                                  #                  TL0 1AD XXX CJW GGG
055036,000118: 
055037,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
055038,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
055039,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

055041,000123:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
055042,000124:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
055043,000125:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
055044,000126:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
055045,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
055046,000128:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE  PHASE INFORMATION, THAT IS, EITHER
055047,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
055048,000130:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
055049,000131: 
055050,000132:                                                                                                  #                                          AD       TC     PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
055051,000133:                                                                                                  #                                          AD+1     OCT    05023           RESTARTED BY GROUP THREE WITHA PRIORITY
055052,000134:                                                                                                  #                                          AD+2     OCT    23000           OF 23.  NOTE UPON RETURNING IT WOULD
055053,000135:                                                                                                  #                                          AD+3                            ALSO GO TO AD+3
055054,000136: 
055055,000137:                                                                                                  #                                          AD       TC     PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO
055056,000138:                                                                                                  #                                          AD+1     OCT    27441           BE STARTED AS A LONGCALL FROM THE TIME
055057,000139:                                                                                                  #                                          AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
055058,000140:                                                                                                  #                                          AD+3     2CADR  CALLCALL        A DELTATIME STORED IN DELTIME.  THE
055059,000141:                                                                                                  #                                          AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
055060,000142:                                                                                                  #                                          AD+5                            BANK OF DELTIME. PHASCHNG RETURNS TO
055061,000143:                                                                                                  #                                                                          LOCATION AD+5
055062,000144: 
055063,000145:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
055064,000146:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
055065,000147: 
055066,000148: 
055067,000149:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
055068,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
055069,000151:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
055070,000152: 
055071,000153:                                                                                                  #                  TL1 DAP PPP PPP GGG
055072,000154: 
055073,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
055074,000156:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE. D THIS
055075,000157:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
055076,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
055077,000159:                                                                                                  #  THE NEXT LOCATION.(THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
055078,000160: 
055079,000161:                                                                                                  #                                          AD       TC     PHASCHNG        TBASE IS SET AND ARESTART CAUSE GROUP 3
055080,000162:                                                                                                  #                                          AD+1     OCT    56043           TO START THE JOB AJOBAJOB WITH PRIORITY
055081,000163:                                                                                                  #                                          AD+2     OCT    31000           31 AND THE FIRST ENTRY OF 3.4SPOT(WE CAN
055082,000164:                                                                                                  #                                          AD+3     2CADR  AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
055083,000165:                                                                                                  #                                          AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
055084,000166:                                                                                                  #                                          AD+5                            GO TO AD+5
055085,000167: 
055086,000168:                                                                                                  #                                          AD       TC     PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
055087,000169:                                                                                                  #                                          AD+1     OCT    10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
055088,000170:                                                                                                  #                                          AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
055089,000171:                                                                                                  #                                                                          BY MEANS OF GROUP 5
055090,000172: 

Page 1286

055092,000174:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
055093,000175: 
055094,000176: 
055095,000177:                                                                                                  #  SUMMARY OF BITS
055096,000178: 
055097,000179:                                                                                                  #  TYPE A          TL0 00P PPP PPP GGG
055098,000180: 
055099,000181:                                                                                                  #  TYPE B          TL1 DAP PPP PPP GGG
055100,000182: 
055101,000183:                                                                                                  #  TYPE C          TL0 1AD XXX CJW GGG
055102,000184: 

Page 1287

055104,000186:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
055105,000187:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
055106,000188:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
055107,000189: 
055108,000190:                                                                                                  #                                                   TC     2PHSCHNG
055109,000191:                                                                                                  #                                                   OCT    XXXXX
055110,000192:                                                                                                  #                                                   OCT    YYYYY
055111,000193: 
055112,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
055113,000195:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
055114,000196:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
055115,000197: 
055116,000198:                                                                                                  #                                          AD       TC     2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
055117,000199:                                                                                                  #                                          AD+1     OCT    40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
055118,000200:                                                                                                  #                                          AD+2     OCT    05025           THIS IS OF TYPE C, SET THE JOB TO BE
055119,000201:                                                                                                  #                                          AD+3     OCT    18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
055120,000202:                                                                                                  #                                          AD+4                            FOR GROUP 5 PHASE INFORMATION
055121,000203: 
055122,000204:    5340                                           COUNT*   $$/PHASE                              
055123,000205:    5340           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
055124,000206:    5341           50002                           NDX      Q                                     
055125,000207:    5342           30000                           CA       0                                     
055126,000208:    5343           24002                           INCR     Q                                     
055127,000209:    5344           54072                           TS       TEMPP2                                
055128,000210: 
055129,000211:    5345           74757                           MASK     OCT7                                  
055130,000212:    5346           60000                           DOUBLE                                         
055131,000213:    5347           54071                           TS       TEMPG2                                
055132,000214: 
055133,000215:    5350           30072                           CA       TEMPP2                                
055134,000216:    5351           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
055135,000217:    5352           00006                           EXTEND                                         
055136,000218:    5353           74740                           MP       BIT12                                 
055137,000219:    5354           56072                           XCH      TEMPP2                                
055138,000220: 
055139,000221:    5355           74735                           MASK     BIT15                                 
055140,000222:    5356           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
055141,000223: 
055142,000224:    5357           50002                           INDEX    Q                                     
055143,000225:    5360           30000                           CA       0                                     
055144,000226:    5361           24002                           INCR     Q                                     
055145,000227:    5362           54065                           TS       TEMPSW                                
055146,000228: 
055147,000229:    5363           15374                           TCF      PHASJUMP                              
055148,000230: 
055149,000231:    5364           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
055150,000232:    5365           50002                           INDEX    Q                                     
055151,000233:    5366           30000                           CA       0                                     
055152,000234:    5367           24002                           INCR     Q                                     
055153,000235:    5370           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1288

055155,000237:    5371           54065                           TS       TEMPSW                                
055156,000238:    5372           34753                           CA       ONE                                   
055157,000239:    5373           54066                           TS       TEMPSW2                               
055158,000240:    5374           00006        PHASJUMP           EXTEND                                         
055159,000241:    5375           35400                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
055160,000242:    5376           52006                           DTCB                                           
055161,000243: 
055162,000244:    5377  E3,1400                                  EBANK=   LST1                                  
055163,000245:    5377           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
055164,000246: 
055165,000247: 
055166,000248: 
055167,000249:    5401           22073        ONEORTWO           LXCH     TEMPBBCN                              
055168,000250:    5402           22006                           LXCH     BBANK                                 
055169,000251:    5403           22073                           LXCH     TEMPBBCN                              
055170,000252: 
055171,000253:    5404           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
055172,000254:    5405           10000                           CCS      A                                     
055173,000255:    5406           17753                           TCF      CHECKB                                #   IT IS OF TYPE :B:
055174,000256: 
055175,000257:    5407           30062                           CA       TEMPP                                 
055176,000258:    5410           74745                           MASK     BIT7                                  
055177,000259:    5411           10000                           CCS      A                                     #   SHALL WE USE THE OLD PRIORITY
055178,000260:    5412           15434                           TCF      GETPRIO                               #   NO GET A NEW PRIORITY (OR DELTA T)
055179,000261: 
055180,000262:    5413           50061        OLDPRIO            NDX      TEMPG                                 #   USE THE OLD PRIORITY (OR DELTA T)
055181,000263:    5414           31051                           CA       PHSPRDT1   -2                         
055182,000264:    5415           54070                           TS       TEMPPR                                
055183,000265: 
055184,000266:    5416           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
055185,000267:    5417           74744                           MASK     BIT8                                  
055186,000268:    5420           10000                           CCS      A                                     
055187,000269:    5421           15440                           TCF      GETNEWNM                              
055188,000270: 
055189,000271:    5422           30002                           CA       Q                                     
055190,000272:    5423           54063                           TS       TEMPNM                                
055191,000273:    5424           30006                           CA       BB                                    
055192,000274:    5425           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
055193,000275:    5426           04007                           ROR      SUPERBNK                              
055194,000276:    5427           54064                           TS       TEMPBB                                
055195,000277: 
055196,000278:    5430           35433        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
055197,000279:    5431           22073                           LXCH     TEMPBBCN                              
055198,000280:    5432           52006                           DTCB                                           
055199,000281: 
055200,000282:    5433           02312        CON2ADR            GENADR   CON2                                  
055201,000283: 
055202,000284:    5434           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
055203,000285:    5435           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
055204,000286:    5436           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1289

055206,000288:    5437           15415                           TCF      CON1       -1                         
055207,000289: 
055208,000290:    5440           00006        GETNEWNM           EXTEND                                         
055209,000291:    5441           50002                           INDEX    Q                                     
055210,000292:    5442           30001                           DCA      0                                     
055211,000293:    5443           52064                           DXCH     TEMPNM                                
055212,000294:    5444           34752                           CA       TWO                                   
055213,000295:    5445           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
055214,000296: 
055215,000297:    5446           15430                           TCF      TOCON2                                
055216,000298: 
055217,000299:    5447     5024               OCT14000           EQUALS   PRIO14                                
055218,000300:    5447     0061               TEMPG              EQUALS   ITEMP1                                
055219,000301:    5447     0062               TEMPP              EQUALS   ITEMP2                                
055220,000302:    5447     0063               TEMPNM             EQUALS   ITEMP3                                
055221,000303:    5447     0064               TEMPBB             EQUALS   ITEMP4                                
055222,000304:    5447     0065               TEMPSW             EQUALS   ITEMP5                                
055223,000305:    5447     0066               TEMPSW2            EQUALS   ITEMP6                                
055224,000306:    5447     0070               TEMPPR             EQUALS   RUPTREG1                              
055225,000307:    5447     0071               TEMPG2             EQUALS   RUPTREG2                              
055226,000308:    5447     0072               TEMPP2             EQUALS   RUPTREG3                              
055227,000309: 
055228,000310:    5447     0073               TEMPBBCN           EQUALS   RUPTREG4                              
055229,000311:    5447  0000006               BB                 EQUALS   BBANK                                 
055230,000312: 
055231,000313: 
055232,000314: 14,3775                                           BANK     14                                    
055233,000315: 10,2000                                           SETLOC   PHASETAB                              
055234,000316: 10,2000                                           BANK                                           
055235,000317: 
055236,000318: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
055237,000319: 10,2224                                           COUNT*   $$/PHASE                              
055238,000320: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
055239,000321: 10,2225           30065                           CA       TEMPSW                                
055240,000322: 10,2226           74757                           MASK     OCT7                                  
055241,000323: 10,2227           60000                           DOUBLE                                         
055242,000324: 10,2230           54061                           TS       TEMPG                                 
055243,000325: 
055244,000326: 10,2231           30065                           CA       TEMPSW                                
055245,000327: 10,2232           75030                           MASK     OCT17770                              
055246,000328: 10,2233           00006                           EXTEND                                         
055247,000329: 10,2234           74740                           MP       BIT12                                 
055248,000330: 10,2235           54062                           TS       TEMPP                                 
055249,000331: 
055250,000332: 10,2236           30065                           CA       TEMPSW                                
055251,000333: 10,2237           74101                           MASK     OCT60000                              
055252,000334: 10,2240           56065                           XCH      TEMPSW                                
055253,000335: 10,2241           75024                           MASK     OCT14000                              
055254,000336: 10,2242           10000                           CCS      A                                     

Page 1290

055256,000338: 10,2243           15401                           TCF      ONEORTWO                              
055257,000339: 
055258,000340: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
055259,000341: 10,2245           50061                           NDX      TEMPG                                 
055260,000342: 10,2246           54750                           TS       PHASE1     -2                         
055261,000343: 
055262,000344: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
055263,000345: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
055264,000346: 
055265,000347: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
055266,000348: 10,2252           40072                           CS       TEMPP2                                
055267,000349: 10,2253           22072                           LXCH     TEMPP2                                
055268,000350: 10,2254           50071                           NDX      TEMPG2                                
055269,000351: 10,2255           52750                           DXCH     -PHASE1    -2                         
055270,000352: 
055271,000353: 10,2256           10066                           CCS      TEMPSW2                               
055272,000354: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
055273,000355: 10,2260           12264                           TCF      BELOW2                                
055274,000356: 
055275,000357: 10,2261           40025                           CS       TIME1                                 
055276,000358: 10,2262           50071                           NDX      TEMPG2                                
055277,000359: 10,2263           55050                           TS       TBASE1     -2                         
055278,000360: 
055279,000361: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
055280,000362: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
055281,000363: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
055282,000364: 
055283,000365: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
055284,000366: 10,2270           50061                           NDX      TEMPG                                 
055285,000367: 10,2271           55050                           TS       TBASE1     -2                         
055286,000368: 
055287,000369: 10,2272           30065                           CA       TEMPSW                                #   SHALL WE NOW SET LONGBASE
055288,000370: 10,2273           62276                           AD       BIT14COM                              
055289,000371: 10,2274           10000                           CCS      A                                     
055290,000372: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
055291,000373: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
055292,000374: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
055293,000375: 
055294,000376: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
055295,000377: 10,2301           30025                           DCA      TIME2                                 
055296,000378: 10,2302           53151                           DXCH     LONGBASE                              
055297,000379: 
055298,000380: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
055299,000381: 10,2304           50061                           NDX      TEMPG                                 
055300,000382: 10,2305           54747                           TS       -PHASE1    -2                         
055301,000383: 
055302,000384: 10,2306           30002                           CA       Q                                     
055303,000385: 10,2307           22073                           LXCH     TEMPBBCN                              
055304,000386: 10,2310           00003                           RELINT                                         
055305,000387: 10,2311           52006                           DTCB                                           

Page 1291

055307,000389: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
055308,000390: 
055309,000391: 10,2313           30062                           CA       TEMPP                                 
055310,000392: 10,2314           50061                           NDX      TEMPG                                 
055311,000393: 10,2315           54750                           TS       PHASE1     -2                         
055312,000394: 
055313,000395: 10,2316           30070                           CA       TEMPPR                                
055314,000396: 10,2317           50061                           NDX      TEMPG                                 
055315,000397: 10,2320           55051                           TS       PHSPRDT1   -2                         
055316,000398: 
055317,000399: 10,2321           00006                           EXTEND                                         
055318,000400: 10,2322           30064                           DCA      TEMPNM                                
055319,000401: 10,2323           50061                           NDX      TEMPG                                 
055320,000402: 10,2324           53435                           DXCH     PHSNAME1   -2                         
055321,000403: 
055322,000404: 10,2325           12247                           TCF      BELOW1                                
055323,000405: 
055324,000406:    7753                                           BLOCK    03                                    
055325,000407:    6000                                           SETLOC   FFTAG6                                
055326,000408:    6000                                           BANK                                           
055327,000409: 
055328,000410:    7753                                           COUNT*   $$/PHASE                              
055329,000411:    7753           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
055330,000412:    7754           10000                           CCS      A                                     #   BE HERE IF WE ARE TO GET A NEW PRIORITY
055331,000413:    7755           15434                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
055332,000414: 
055333,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