Source Code

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

The reconstruction began with reconstructed source code for Luminary 97. Changes between revisions 96 and 97 were backed out, as described by anomal report LNY-59. transcribed from a digitized copy of that program. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152D. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 96 listing.

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.

054314,000002:                                                                                                  ## Copyright:   Public domain.
054315,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
054316,000004:                                                                                                  ## Purpose:     A section of Luminary revision 96.
054317,000005:                                                                                                  ##              It is part of the reconstructed source code for the
054318,000006:                                                                                                  ##              original release of the flight software for the Lunar 
054319,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
054320,000008:                                                                                                  ##              The code has been recreated from a previously reconstructed
054321,000009:                                                                                                  ##              copy of Luminary 97 by undoing changes described in anomaly
054322,000010:                                                                                                  ##              report LNY-59. The code has been adapted such that the
054323,000011:                                                                                                  ##              resulting bugger words exactly match those specified for
054324,000012:                                                                                                  ##              Luminary 96 in NASA drawing 2021152D, which gives relatively
054325,000013:                                                                                                  ##              high confidence that the reconstruction is correct.
054326,000014:                                                                                                  ## Reference:   pp. 1294-1302
054327,000015:                                                                                                  ## Assembler:   yaYUL
054328,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054329,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
054330,000018:                                                                                                  ## Mod history: 2019-08-04 MAS  Created from Luminary 97.
054331,000019: 

Page 1294

054333,000021:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
054334,000022: 
054335,000023: 43,3724                                           COUNT*   $$/PHASE                              
054336,000024:    5311                                           BLOCK    02                                    
054337,000025:    4000                                           SETLOC   FFTAG1                                
054338,000026:    4000                                           BANK                                           
054339,000027: 
054340,000028:    5311           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
054341,000029:    5312           30000                           CAF      0                                     
054342,000030:    5313           24002                           INCR     Q                                     
054343,000031: 
054344,000032:    5314           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
054345,000033:    5315           35320        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
054346,000034:    5316           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
054347,000035:    5317           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
054348,000036:    5320           20213                           CADR     SETUPDSP                              
054349,000037: 
054350,000038:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
054351,000039: 
054352,000040:    5321           50002        CHECKMM            INDEX    Q                                     
054353,000041:    5322           40000                           CS       0                                     
054354,000042:    5323           61011                           AD       MODREG                                
054355,000043:    5324           00006                           EXTEND                                         
054356,000044:    5325           16741                           BZF      Q+2                                   
054357,000045:    5326           16737                           TCF      Q+1                                   #  NO MATCH
054358,000046: 
054359,000047:    5327     6742               TCQ                =        Q+2        +1                         
054360,000048: 
054361,000049: 14,3774                                           BANK     14                                    
054362,000050: 10,2000                                           SETLOC   PHASETAB                              
054363,000051: 10,2000                                           BANK                                           
054364,000052: 
054365,000053: 10,2213                                           COUNT*   $$/PHASE                              
054366,000054: 10,2213           00004        SETUPDSP           INHINT                                         
054367,000055: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
054368,000056: 10,2215           34355                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
054369,000057: 10,2216           05072                           TC       NOVAC                                 #        NEWMODE X
054370,000058: 10,2217     1011                                  EBANK=   MODREG                                
054371,000059: 10,2217           03534 60102                     2CADR    DSPMMJOB                              
054372,000060: 
054373,000061: 10,2221           52071                           DXCH     RUPTREG1                              
054374,000062: 10,2222           00003                           RELINT                                         
054375,000063: 10,2223           52006                           DXCH     Z                                     #  RETURN
054376,000064: 
054377,000065: 10,2224  40,3534               DSPMMJOB           EQUALS   DSPMMJB                               
054378,000066: 
054379,000067:    5327                                           BLOCK    02                                    
054380,000068:    4000                                           SETLOC   FFTAG1                                
054381,000069:    4000                                           BANK                                           
054382,000070: 

Page 1295

054384,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
054385,000073:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
054386,000074:                                                                                                  #                TC      PHASCHNG
054387,000075:                                                                                                  #                OCT     XXXXX
054388,000076:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
054389,000077:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
054390,000078:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
054391,000079:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
054392,000080:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
054393,000081:                                                                                                  #                        LONGCALL TO BE RESTARTED.
054394,000082:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
054395,000083: 
054396,000084:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
054397,000085:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
054398,000086:                                                                                                  #  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,
054399,000087:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.  IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
054400,000088:                                                                                                  #  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
054401,000089:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
054402,000090:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
054403,000091:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
054404,000092: 
054405,000093:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
054406,000094:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
054407,000095: 
054408,000096:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
054409,000097:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
054410,000098:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
054411,000099:                                                                                                  #                                        LOCATION
054412,000100: 
054413,000101:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
054414,000102:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
054415,000103:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
054416,000104:                                                                                                  #                                        SHOULD BE A LONGCALL)
054417,000105: 
054418,000106:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
054419,000107:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
054420,000108:                                                                                                  #                                        LONGCALL TO BE RESTARTED
054421,000109: 
054422,000110:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
054423,000111:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
054424,000112:                                                                                                  #        TL0 1AD XXX CJW GGG
054425,000113:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
054426,000114:                                                                                                  #  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
054427,000115:                                                                                                  #  THESE THREE BITS MAY BE SET.  X:S ARE IGNORED  1 MUST BE 1, AND 0 MUST BE 0.  AGAIN T STANDS FOR THE TBASE,

Page 1296

054429,000117:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
054430,000118:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
054431,000119:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
054432,000120:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
054433,000121:                                                                                                  #  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
054434,000122:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
054435,000123:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
054436,000124:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
054437,000125:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
054438,000126:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
054439,000127:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
054440,000128:                                                                                                  #        AD+3                            ALSO GO TO AD+3
054441,000129: 
054442,000130:                                                                                                  #        AD      TC      PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO
054443,000131:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
054444,000132:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
054445,000133:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
054446,000134:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
054447,000135:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
054448,000136:                                                                                                  #                                        LOCATION AD+5
054449,000137: 
054450,000138:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
054451,000139:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
054452,000140: 
054453,000141:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
054454,000142:                                                                                                  #  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
054455,000143:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
054456,000144:                                                                                                  #        TL1 DAP PPP PPP GGG
054457,000145:                                                                                                  #  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
054458,000146:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
054459,000147:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
054460,000148:                                                                                                  #  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
054461,000149:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
054462,000150:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
054463,000151:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
054464,000152:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
054465,000153:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
054466,000154:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
054467,000155:                                                                                                  #        AD+5                            GO TO AD+5
054468,000156: 
054469,000157:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
054470,000158:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
054471,000159:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
054472,000160:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1297

054474,000162:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
054475,000163: 
054476,000164:                                                                                                  #  SUMMARY OF BITS
054477,000165:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
054478,000166:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
054479,000167:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
054480,000168: 

Page 1298

054482,000170:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
054483,000171:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
054484,000172:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
054485,000173:                                                                                                  #                TC      2PHSCHNG
054486,000174:                                                                                                  #                OCT     XXXXX
054487,000175:                                                                                                  #                OCT     YYYYY
054488,000176:                                                                                                  #  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
054489,000177:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
054490,000178:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
054491,000179:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
054492,000180:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
054493,000181:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
054494,000182:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
054495,000183:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
054496,000184: 
054497,000185:    5327                                           COUNT*   $$/PHASE                              
054498,000186:    5327           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
054499,000187:    5330           50002                           NDX      Q                                     
054500,000188:    5331           30000                           CA       0                                     
054501,000189:    5332           24002                           INCR     Q                                     
054502,000190:    5333           54072                           TS       TEMPP2                                
054503,000191: 
054504,000192:    5334           74757                           MASK     OCT7                                  
054505,000193:    5335           60000                           DOUBLE                                         
054506,000194:    5336           54071                           TS       TEMPG2                                
054507,000195: 
054508,000196:    5337           30072                           CA       TEMPP2                                
054509,000197:    5340           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
054510,000198:    5341           00006                           EXTEND                                         
054511,000199:    5342           74740                           MP       BIT12                                 
054512,000200:    5343           56072                           XCH      TEMPP2                                
054513,000201: 
054514,000202:    5344           74735                           MASK     BIT15                                 
054515,000203:    5345           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
054516,000204: 
054517,000205:    5346           50002                           INDEX    Q                                     
054518,000206:    5347           30000                           CA       0                                     
054519,000207:    5350           24002                           INCR     Q                                     
054520,000208:    5351           54065                           TS       TEMPSW                                
054521,000209: 
054522,000210:    5352           15363                           TCF      PHASJUMP                              
054523,000211: 
054524,000212:    5353           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
054525,000213:    5354           50002                           INDEX    Q                                     
054526,000214:    5355           30000                           CA       0                                     
054527,000215:    5356           24002                           INCR     Q                                     
054528,000216:    5357           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1299

054530,000218:    5360           54065                           TS       TEMPSW                                
054531,000219:    5361           34753                           CA       ONE                                   
054532,000220:    5362           54066                           TS       TEMPSW2                               
054533,000221:    5363           00006        PHASJUMP           EXTEND                                         
054534,000222:    5364           35367                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
054535,000223:    5365           52006                           DTCB                                           
054536,000224: 
054537,000225:    5366  E3,1400                                  EBANK=   LST1                                  
054538,000226:    5366           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
054539,000227: 
054540,000228:    5370           22073        ONEORTWO           LXCH     TEMPBBCN                              
054541,000229:    5371           22006                           LXCH     BBANK                                 
054542,000230:    5372           22073                           LXCH     TEMPBBCN                              
054543,000231: 
054544,000232:    5373           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
054545,000233:    5374           10000                           CCS      A                                     
054546,000234:    5375           17750                           TCF      CHECKB                                #  IT IS OF TYPE :B:
054547,000235: 
054548,000236:    5376           30062                           CA       TEMPP                                 
054549,000237:    5377           74745                           MASK     BIT7                                  
054550,000238:    5400           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
054551,000239:    5401           15423                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
054552,000240: 
054553,000241:    5402           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
054554,000242:    5403           31052                           CA       PHSPRDT1   -2                         
054555,000243:    5404           54070                           TS       TEMPPR                                
054556,000244: 
054557,000245:    5405           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
054558,000246:    5406           74744                           MASK     BIT8                                  
054559,000247:    5407           10000                           CCS      A                                     
054560,000248:    5410           15427                           TCF      GETNEWNM                              
054561,000249: 
054562,000250:    5411           30002                           CA       Q                                     
054563,000251:    5412           54063                           TS       TEMPNM                                
054564,000252:    5413           30006                           CA       BB                                    
054565,000253:    5414           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
054566,000254:    5415           04007                           ROR      SUPERBNK                              
054567,000255:    5416           54064                           TS       TEMPBB                                
054568,000256: 
054569,000257:    5417           35422        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
054570,000258:    5420           22073                           LXCH     TEMPBBCN                              
054571,000259:    5421           52006                           DTCB                                           
054572,000260: 
054573,000261:    5422           02312        CON2ADR            GENADR   CON2                                  
054574,000262: 
054575,000263:    5423           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
054576,000264:    5424           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
054577,000265:    5425           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1300

054579,000267:    5426           15404                           TCF      CON1       -1                         
054580,000268: 
054581,000269:    5427           00006        GETNEWNM           EXTEND                                         
054582,000270:    5430           50002                           INDEX    Q                                     
054583,000271:    5431           30001                           DCA      0                                     
054584,000272:    5432           52064                           DXCH     TEMPNM                                
054585,000273:    5433           34752                           CA       TWO                                   
054586,000274:    5434           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
054587,000275: 
054588,000276:    5435           15417                           TCF      TOCON2                                
054589,000277: 
054590,000278:    5436     5024               OCT14000           EQUALS   PRIO14                                
054591,000279:    5436     0061               TEMPG              EQUALS   ITEMP1                                
054592,000280:    5436     0062               TEMPP              EQUALS   ITEMP2                                
054593,000281:    5436     0063               TEMPNM             EQUALS   ITEMP3                                
054594,000282:    5436     0064               TEMPBB             EQUALS   ITEMP4                                
054595,000283:    5436     0065               TEMPSW             EQUALS   ITEMP5                                
054596,000284:    5436     0066               TEMPSW2            EQUALS   ITEMP6                                
054597,000285:    5436     0070               TEMPPR             EQUALS   RUPTREG1                              
054598,000286:    5436     0071               TEMPG2             EQUALS   RUPTREG2                              
054599,000287:    5436     0072               TEMPP2             EQUALS   RUPTREG3                              
054600,000288: 
054601,000289:    5436     0073               TEMPBBCN           EQUALS   RUPTREG4                              
054602,000290:    5436  0000006               BB                 EQUALS   BBANK                                 
054603,000291: 
054604,000292: 14,3774                                           BANK     14                                    
054605,000293: 10,2000                                           SETLOC   PHASETAB                              
054606,000294: 10,2000                                           BANK                                           
054607,000295: 
054608,000296: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
054609,000297: 10,2224                                           COUNT*   $$/PHASE                              
054610,000298: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
054611,000299: 10,2225           30065                           CA       TEMPSW                                
054612,000300: 10,2226           74757                           MASK     OCT7                                  
054613,000301: 10,2227           60000                           DOUBLE                                         
054614,000302: 10,2230           54061                           TS       TEMPG                                 
054615,000303: 
054616,000304: 10,2231           30065                           CA       TEMPSW                                
054617,000305: 10,2232           75030                           MASK     OCT17770                              
054618,000306: 10,2233           00006                           EXTEND                                         
054619,000307: 10,2234           74740                           MP       BIT12                                 
054620,000308: 10,2235           54062                           TS       TEMPP                                 
054621,000309: 
054622,000310: 10,2236           30065                           CA       TEMPSW                                
054623,000311: 10,2237           74101                           MASK     OCT60000                              
054624,000312: 10,2240           56065                           XCH      TEMPSW                                
054625,000313: 10,2241           75024                           MASK     OCT14000                              
054626,000314: 10,2242           10000                           CCS      A                                     

Page 1301

054628,000316: 10,2243           15370                           TCF      ONEORTWO                              
054629,000317: 
054630,000318: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
054631,000319: 10,2245           50061                           NDX      TEMPG                                 
054632,000320: 10,2246           54751                           TS       PHASE1     -2                         
054633,000321: 
054634,000322: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
054635,000323: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
054636,000324: 
054637,000325: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
054638,000326: 10,2252           40072                           CS       TEMPP2                                
054639,000327: 10,2253           22072                           LXCH     TEMPP2                                
054640,000328: 10,2254           50071                           NDX      TEMPG2                                
054641,000329: 10,2255           52751                           DXCH     -PHASE1    -2                         
054642,000330: 
054643,000331: 10,2256           10066                           CCS      TEMPSW2                               
054644,000332: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
054645,000333: 10,2260           12264                           TCF      BELOW2                                
054646,000334: 
054647,000335: 10,2261           40025                           CS       TIME1                                 
054648,000336: 10,2262           50071                           NDX      TEMPG2                                
054649,000337: 10,2263           55051                           TS       TBASE1     -2                         
054650,000338: 
054651,000339: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
054652,000340: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
054653,000341: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
054654,000342: 
054655,000343: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
054656,000344: 10,2270           50061                           NDX      TEMPG                                 
054657,000345: 10,2271           55051                           TS       TBASE1     -2                         
054658,000346: 
054659,000347: 10,2272           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
054660,000348: 10,2273           62276                           AD       BIT14COM                              
054661,000349: 10,2274           10000                           CCS      A                                     
054662,000350: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
054663,000351: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
054664,000352: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
054665,000353: 
054666,000354: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
054667,000355: 10,2301           30025                           DCA      TIME2                                 
054668,000356: 10,2302           53152                           DXCH     LONGBASE                              
054669,000357: 
054670,000358: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
054671,000359: 10,2304           50061                           NDX      TEMPG                                 
054672,000360: 10,2305           54750                           TS       -PHASE1    -2                         
054673,000361: 
054674,000362: 10,2306           30002                           CA       Q                                     
054675,000363: 10,2307           22073                           LXCH     TEMPBBCN                              
054676,000364: 10,2310           00003                           RELINT                                         
054677,000365: 10,2311           52006                           DTCB                                           

Page 1302

054679,000367: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
054680,000368: 
054681,000369: 10,2313           30062                           CA       TEMPP                                 
054682,000370: 10,2314           50061                           NDX      TEMPG                                 
054683,000371: 10,2315           54751                           TS       PHASE1     -2                         
054684,000372: 
054685,000373: 10,2316           30070                           CA       TEMPPR                                
054686,000374: 10,2317           50061                           NDX      TEMPG                                 
054687,000375: 10,2320           55052                           TS       PHSPRDT1   -2                         
054688,000376: 
054689,000377: 10,2321           00006                           EXTEND                                         
054690,000378: 10,2322           30064                           DCA      TEMPNM                                
054691,000379: 10,2323           50061                           NDX      TEMPG                                 
054692,000380: 10,2324           53435                           DXCH     PHSNAME1   -2                         
054693,000381: 
054694,000382: 10,2325           12247                           TCF      BELOW1                                
054695,000383: 
054696,000384:    7750                                           BLOCK    03                                    
054697,000385:    6000                                           SETLOC   FFTAG6                                
054698,000386:    6000                                           BANK                                           
054699,000387: 
054700,000388:    7750                                           COUNT*   $$/PHASE                              
054701,000389:    7750           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
054702,000390:    7751           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
054703,000391:    7752           15423                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
054704,000392: 
054705,000393:    7753           15402                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
054706,000394: 
054707,000395: 

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