Source Code

This source code is very close to the Apollo Guidance Computer software for the Apollo 13 Lunar module. This revision of the Luminary 131 program is from December of 1969, whereas there was a later revision in January of 1970, and still another revision in February, which is the code that flew on the mission. As far as this transcription is concerned, it was originally from a copy made in 1991 of a printout from the collection of AGC developer Don Eyles for collector David Craig. It was subsequently scanned by Gary Neff, reprocessed for online presentation at the now-discontinued History of Recent Science and Technology (HRST) website of MIT's Dibner Institute (the full-quality scans being discarded in the process), and finally transcribed by Ron Burkey for the Virtual AGC Project. Although a high-quality replacement scan for a completely illegible page was later provided by Gary Neff, the reduced legibility of the reprocessed HRST posting nevertheless caused many errors to be introduced into the transcription. Accordingly, a second scan of the same physical printout was made in 2017 for the Virtual AGC Project's collection at the Internet Archive, and used to correct the transcription errors. All of the scanned materials mentioned, as well as other Luminary 131 related material, are available online. Don Eyles apprently made additional hand-written notes in printout between 1991 and 2017, so the two scans are not identical in that respect. The page-headings in the printout read, in part:
	GAP:  ASSEMBLE REVISION 131 OF AGC PROGRAM LUMINARY BY NASA 2021112-091
	17:53 DEC. 19, 1969
Note that the date is the date the printout was made, not the date on which the program revision was released, although these happen to be very close together.

054230,000002:                                                                                                  ## Copyright:   Public domain.
054231,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
054232,000004:                                                                                                  ## Purpose:     A section of Luminary 1C, revision 131.
054233,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
054234,000006:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 13.
054235,000007:                                                                                                  ##              This file is intended to be a faithful transcription, except
054236,000008:                                                                                                  ##              that the code format has been changed to conform to the
054237,000009:                                                                                                  ##              requirements of the yaYUL assembler rather than the
054238,000010:                                                                                                  ##              original YUL assembler.
054239,000011:                                                                                                  ## Reference:   pp. 1286-1294
054240,000012:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054241,000013:                                                                                                  ## Website:     www.ibiblio.org/apollo
054242,000014:                                                                                                  ## Mod history: 06/05/03 RSB.   Began transcribing.
054243,000015:                                                                                                  ##              2011-05-07 JL   Removed workaround. Flagged SBANK= workaround 
054244,000016:                                                                                                  ##                              for future removal.
054245,000017:                                                                                                  ##              2017-01-06 RSB  Page numbers now agree with those on the
054246,000018:                                                                                                  ##                              original hardcopy, as opposed to the PDF page
054247,000019:                                                                                                  ##                              numbers in 1701.pdf.
054248,000020:                                                                                                  ##              2017-01-28 RSB  Back-ported some comment-text fixes from Luminary 69.
054249,000021:                                                                                                  ##              2017-02-27 RSB  Proofed comment text using octopus/ProoferComments.
054250,000022:                                                                                                  ##              2017-03-01 RSB  Fixed lingering comment-text typos.
054251,000023:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes noted in proofing Luminary 116.
054252,000024:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
054253,000025:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
054254,000026:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
054255,000027: 

Page 1286

054257,000029:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
054258,000030: 
054259,000031: 43,3751                                           COUNT*   $$/PHASE                              
054260,000032:    5311                                           BLOCK    02                                    
054261,000033:    4000                                           SETLOC   FFTAG1                                
054262,000034:    4000                                           BANK                                           
054263,000035: 
054264,000036:    5311           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
054265,000037:    5312           30000                           CAF      0                                     
054266,000038:    5313           24002                           INCR     Q                                     
054267,000039: 
054268,000040:    5314           55010        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
054269,000041:    5315           35320        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
054270,000042:    5316           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
054271,000043:    5317           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
054272,000044:    5320           20213                           CADR     SETUPDSP                              
054273,000045: 
054274,000046:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
054275,000047: 
054276,000048:    5321           50002        CHECKMM            INDEX    Q                                     
054277,000049:    5322           40000                           CS       0                                     
054278,000050:    5323           61010                           AD       MODREG                                
054279,000051:    5324           00006                           EXTEND                                         
054280,000052:    5325           16744                           BZF      Q+2                                   
054281,000053:    5326           16742                           TCF      Q+1                                   #  NO MATCH
054282,000054: 
054283,000055:    5327     6745               TCQ                =        Q+2        +1                         
054284,000056: 
054285,000057: 14,3775                                           BANK     14                                    
054286,000058: 10,2000                                           SETLOC   PHASETAB                              
054287,000059: 10,2000                                           BANK                                           
054288,000060: 
054289,000061: 10,2213                                           COUNT*   $$/PHASE                              
054290,000062: 10,2213           00004        SETUPDSP           INHINT                                         
054291,000063: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
054292,000064: 10,2215           34355                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
054293,000065: 10,2216           05072                           TC       NOVAC                                 #        NEWMODE X
054294,000066: 10,2217     1010                                  EBANK=   MODREG                                
054295,000067: 10,2217           03577 60102                     2CADR    DSPMMJOB                              
054296,000068: 
054297,000069: 10,2221           52071                           DXCH     RUPTREG1                              
054298,000070: 10,2222           00003                           RELINT                                         
054299,000071: 10,2223           52006                           DXCH     Z                                     #  RETURN
054300,000072: 
054301,000073: 10,2224  40,3577               DSPMMJOB           EQUALS   DSPMMJB                               
054302,000074: 
054303,000075:    5327                                           BLOCK    02                                    
054304,000076:    4000                                           SETLOC   FFTAG1                                
054305,000077:    4000                                           BANK                                           

Page 1287

054307,000079:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
054308,000080:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
054309,000081:                                                                                                  #                TC      PHASCHNG
054310,000082:                                                                                                  #                OCT     XXXXX
054311,000083:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
054312,000084:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
054313,000085:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
054314,000086:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
054315,000087:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
054316,000088:                                                                                                  #                        LONGCALL TO BE RESTARTED.
054317,000089:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
054318,000090: 
054319,000091:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
054320,000092:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
054321,000093:                                                                                                  #  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,
054322,000094:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.              IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
054323,000095:                                                                                                  #  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
054324,000096:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
054325,000097:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
054326,000098:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
054327,000099: 
054328,000100:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
054329,000101:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
054330,000102: 
054331,000103:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
054332,000104:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
054333,000105:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
054334,000106:                                                                                                  #                                        LOCATION
054335,000107: 
054336,000108:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
054337,000109:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
054338,000110:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
054339,000111:                                                                                                  #                                        SHOULD BE A LONGCALL)
054340,000112: 
054341,000113:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
054342,000114:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
054343,000115:                                                                                                  #                                        LONGCALL TO BE RESTARTED
054344,000116: 
054345,000117:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
054346,000118:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
054347,000119:                                                                                                  #        TL0 1AD XXX CJW GGG
054348,000120:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
054349,000121:                                                                                                  #  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
054350,000122:                                                                                                  #  THESE THREE BITS MAY BE SET.  X:S ARE IGNORED  1 MUST BE 1, AND 0 MUST BE 0.  AGAIN T STANDS FOR THE TBASE,

Page 1288

054352,000124:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
054353,000125:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
054354,000126:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
054355,000127:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
054356,000128:                                                                                                  #  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
054357,000129:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
054358,000130:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
054359,000131:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
054360,000132:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
054361,000133:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
054362,000134:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
054363,000135:                                                                                                  #        AD+3                            ALSO GO TO AD+3
054364,000136: 
054365,000137:                                                                                                  #        AD      TC      PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO 
054366,000138:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
054367,000139:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
054368,000140:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
054369,000141:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
054370,000142:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
054371,000143:                                                                                                  #                                        LOCATION AD+5
054372,000144: 
054373,000145:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
054374,000146:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
054375,000147: 
054376,000148:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
054377,000149:                                                                                                  #  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
054378,000150:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
054379,000151:                                                                                                  #        TL1 DAP PPP PPP GGG
054380,000152:                                                                                                  #  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
054381,000153:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
054382,000154:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
054383,000155:                                                                                                  #  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
054384,000156:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
054385,000157:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
054386,000158:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
054387,000159:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
054388,000160:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
054389,000161:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
054390,000162:                                                                                                  #        AD+5                            GO TO AD+5
054391,000163: 
054392,000164:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
054393,000165:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
054394,000166:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
054395,000167:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1289

054397,000169:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
054398,000170: 
054399,000171:                                                                                                  #  SUMMARY OF BITS
054400,000172:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
054401,000173:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
054402,000174:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
054403,000175: 

Page 1290

054405,000177:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
054406,000178:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
054407,000179:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
054408,000180:                                                                                                  #                TC      2PHSCHNG
054409,000181:                                                                                                  #                OCT     XXXXX
054410,000182:                                                                                                  #                OCT     YYYYY
054411,000183:                                                                                                  #  WHERE OCT XXXXX MUST BE OF TYPE A AND OCT YYYYY MAY BE OF EITHER TYPE A OR TYPE B OR TYPE C.  THERE IS ONE
054412,000184:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
054413,000185:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
054414,000186:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
054415,000187:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
054416,000188:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
054417,000189:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
054418,000190:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
054419,000191: 
054420,000192:    5327                                           COUNT*   $$/PHASE                              
054421,000193:    5327           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
054422,000194:    5330           50002                           NDX      Q                                     
054423,000195:    5331           30000                           CA       0                                     
054424,000196:    5332           24002                           INCR     Q                                     
054425,000197:    5333           54072                           TS       TEMPP2                                
054426,000198: 
054427,000199:    5334           74757                           MASK     OCT7                                  
054428,000200:    5335           60000                           DOUBLE                                         
054429,000201:    5336           54071                           TS       TEMPG2                                
054430,000202: 
054431,000203:    5337           30072                           CA       TEMPP2                                
054432,000204:    5340           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
054433,000205:    5341           00006                           EXTEND                                         
054434,000206:    5342           74740                           MP       BIT12                                 
054435,000207:    5343           56072                           XCH      TEMPP2                                
054436,000208: 
054437,000209:    5344           74735                           MASK     BIT15                                 
054438,000210:    5345           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
054439,000211: 
054440,000212:    5346           50002                           INDEX    Q                                     
054441,000213:    5347           30000                           CA       0                                     
054442,000214:    5350           24002                           INCR     Q                                     
054443,000215:    5351           54065                           TS       TEMPSW                                
054444,000216: 
054445,000217:    5352           15363                           TCF      PHASJUMP                              
054446,000218: 
054447,000219:    5353           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
054448,000220:    5354           50002                           INDEX    Q                                     
054449,000221:    5355           30000                           CA       0                                     
054450,000222:    5356           24002                           INCR     Q                                     
054451,000223:    5357           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1291

054453,000225:    5360           54065                           TS       TEMPSW                                
054454,000226:    5361           34753                           CA       ONE                                   
054455,000227:    5362           54066                           TS       TEMPSW2                               
054456,000228:    5363           00006        PHASJUMP           EXTEND                                         
054457,000229:    5364           35367                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
054458,000230:    5365           52006                           DTCB                                           
054459,000231: 
054460,000232:    5366  E3,1400                                  EBANK=   LST1                                  
054461,000233:    5366           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
054462,000234: 
054463,000235:    5370           22073        ONEORTWO           LXCH     TEMPBBCN                              
054464,000236:    5371           22006                           LXCH     BBANK                                 
054465,000237:    5372           22073                           LXCH     TEMPBBCN                              
054466,000238: 
054467,000239:    5373           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
054468,000240:    5374           10000                           CCS      A                                     
054469,000241:    5375           17753                           TCF      CHECKB                                #  IT IS OF TYPE :B:
054470,000242: 
054471,000243:    5376           30062                           CA       TEMPP                                 
054472,000244:    5377           74745                           MASK     BIT7                                  
054473,000245:    5400           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
054474,000246:    5401           15423                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
054475,000247: 
054476,000248:    5402           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
054477,000249:    5403           31051                           CA       PHSPRDT1   -2                         
054478,000250:    5404           54070                           TS       TEMPPR                                
054479,000251: 
054480,000252:    5405           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
054481,000253:    5406           74744                           MASK     BIT8                                  
054482,000254:    5407           10000                           CCS      A                                     
054483,000255:    5410           15427                           TCF      GETNEWNM                              
054484,000256: 
054485,000257:    5411           30002                           CA       Q                                     
054486,000258:    5412           54063                           TS       TEMPNM                                
054487,000259:    5413           30006                           CA       BB                                    
054488,000260:    5414           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
054489,000261:    5415           04007                           ROR      SUPERBNK                              
054490,000262:    5416           54064                           TS       TEMPBB                                
054491,000263: 
054492,000264:    5417           35422        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
054493,000265:    5420           22073                           LXCH     TEMPBBCN                              
054494,000266:    5421           52006                           DTCB                                           
054495,000267: 
054496,000268:    5422           02312        CON2ADR            GENADR   CON2                                  
054497,000269: 
054498,000270:    5423           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
054499,000271:    5424           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
054500,000272:    5425           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1292

054502,000274:    5426           15404                           TCF      CON1       -1                         
054503,000275: 
054504,000276:    5427           00006        GETNEWNM           EXTEND                                         
054505,000277:    5430           50002                           INDEX    Q                                     
054506,000278:    5431           30001                           DCA      0                                     
054507,000279:    5432           52064                           DXCH     TEMPNM                                
054508,000280:    5433           34752                           CA       TWO                                   
054509,000281:    5434           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
054510,000282: 
054511,000283:    5435           15417                           TCF      TOCON2                                
054512,000284: 
054513,000285:    5436     5024               OCT14000           EQUALS   PRIO14                                
054514,000286:    5436     0061               TEMPG              EQUALS   ITEMP1                                
054515,000287:    5436     0062               TEMPP              EQUALS   ITEMP2                                
054516,000288:    5436     0063               TEMPNM             EQUALS   ITEMP3                                
054517,000289:    5436     0064               TEMPBB             EQUALS   ITEMP4                                
054518,000290:    5436     0065               TEMPSW             EQUALS   ITEMP5                                
054519,000291:    5436     0066               TEMPSW2            EQUALS   ITEMP6                                
054520,000292:    5436     0070               TEMPPR             EQUALS   RUPTREG1                              
054521,000293:    5436     0071               TEMPG2             EQUALS   RUPTREG2                              
054522,000294:    5436     0072               TEMPP2             EQUALS   RUPTREG3                              
054523,000295: 
054524,000296:    5436     0073               TEMPBBCN           EQUALS   RUPTREG4                              
054525,000297:    5436  0000006               BB                 EQUALS   BBANK                                 
054526,000298: 
054527,000299: 14,3775                                           BANK     14                                    
054528,000300: 10,2000                                           SETLOC   PHASETAB                              
054529,000301: 10,2000                                           BANK                                           
054530,000302: 
054531,000303: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
054532,000304: 10,2224                                           COUNT*   $$/PHASE                              
054533,000305: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
054534,000306: 10,2225           30065                           CA       TEMPSW                                
054535,000307: 10,2226           74757                           MASK     OCT7                                  
054536,000308: 10,2227           60000                           DOUBLE                                         
054537,000309: 10,2230           54061                           TS       TEMPG                                 
054538,000310: 
054539,000311: 10,2231           30065                           CA       TEMPSW                                
054540,000312: 10,2232           75030                           MASK     OCT17770                              
054541,000313: 10,2233           00006                           EXTEND                                         
054542,000314: 10,2234           74740                           MP       BIT12                                 
054543,000315: 10,2235           54062                           TS       TEMPP                                 
054544,000316: 
054545,000317: 10,2236           30065                           CA       TEMPSW                                
054546,000318: 10,2237           74101                           MASK     OCT60000                              
054547,000319: 10,2240           56065                           XCH      TEMPSW                                
054548,000320: 10,2241           75024                           MASK     OCT14000                              
054549,000321: 10,2242           10000                           CCS      A                                     

Page 1293

054551,000323: 10,2243           15370                           TCF      ONEORTWO                              
054552,000324: 
054553,000325: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
054554,000326: 10,2245           50061                           NDX      TEMPG                                 
054555,000327: 10,2246           54750                           TS       PHASE1     -2                         
054556,000328: 
054557,000329: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
054558,000330: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
054559,000331: 
054560,000332: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
054561,000333: 10,2252           40072                           CS       TEMPP2                                
054562,000334: 10,2253           22072                           LXCH     TEMPP2                                
054563,000335: 10,2254           50071                           NDX      TEMPG2                                
054564,000336: 10,2255           52750                           DXCH     -PHASE1    -2                         
054565,000337: 
054566,000338: 10,2256           10066                           CCS      TEMPSW2                               
054567,000339: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
054568,000340: 10,2260           12264                           TCF      BELOW2                                
054569,000341: 
054570,000342: 10,2261           40025                           CS       TIME1                                 
054571,000343: 10,2262           50071                           NDX      TEMPG2                                
054572,000344: 10,2263           55050                           TS       TBASE1     -2                         
054573,000345: 
054574,000346: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
054575,000347: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
054576,000348: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
054577,000349: 
054578,000350: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
054579,000351: 10,2270           50061                           NDX      TEMPG                                 
054580,000352: 10,2271           55050                           TS       TBASE1     -2                         
054581,000353: 
054582,000354: 10,2272           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
054583,000355: 10,2273           62276                           AD       BIT14COM                              
054584,000356: 10,2274           10000                           CCS      A                                     
054585,000357: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
054586,000358: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
054587,000359: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
054588,000360: 
054589,000361: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
054590,000362: 10,2301           30025                           DCA      TIME2                                 
054591,000363: 10,2302           53151                           DXCH     LONGBASE                              
054592,000364: 
054593,000365: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
054594,000366: 10,2304           50061                           NDX      TEMPG                                 
054595,000367: 10,2305           54747                           TS       -PHASE1    -2                         
054596,000368: 
054597,000369: 10,2306           30002                           CA       Q                                     
054598,000370: 10,2307           22073                           LXCH     TEMPBBCN                              
054599,000371: 10,2310           00003                           RELINT                                         
054600,000372: 10,2311           52006                           DTCB                                           

Page 1294

054602,000374: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
054603,000375: 
054604,000376: 10,2313           30062                           CA       TEMPP                                 
054605,000377: 10,2314           50061                           NDX      TEMPG                                 
054606,000378: 10,2315           54750                           TS       PHASE1     -2                         
054607,000379: 
054608,000380: 10,2316           30070                           CA       TEMPPR                                
054609,000381: 10,2317           50061                           NDX      TEMPG                                 
054610,000382: 10,2320           55051                           TS       PHSPRDT1   -2                         
054611,000383: 
054612,000384: 10,2321           00006                           EXTEND                                         
054613,000385: 10,2322           30064                           DCA      TEMPNM                                
054614,000386: 10,2323           50061                           NDX      TEMPG                                 
054615,000387: 10,2324           53435                           DXCH     PHSNAME1   -2                         
054616,000388: 
054617,000389: 10,2325           12247                           TCF      BELOW1                                
054618,000390: 
054619,000391:    7753                                           BLOCK    03                                    
054620,000392:    6000                                           SETLOC   FFTAG6                                
054621,000393:    6000                                           BANK                                           
054622,000394: 
054623,000395:    7753                                           COUNT*   $$/PHASE                              
054624,000396:    7753           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
054625,000397:    7754           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
054626,000398:    7755           15423                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
054627,000399: 
054628,000400:    7756           15402                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
054629,000401: 
054630,000402: 

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