Source Code

These source-code files derive from a printout of Luminary 116 (the Apollo 12 Lunar Module guidance computer program), from the personal library of original AGC developer Don Eyles, digitally photographed at archive.org, financially sponsored by Ron Burkey, and transcribed to source code by a team of volunteers. This colorized, syntax-highlighted form was created by assembling that transcribed source code. Note that the full page images are available on the Virtual AGC project page at archive.org, while reduced-size images are presented at the VirtualAGC project website. Report or fix any transcription errors at the Virtual AGC project code repository.

Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 116 OF AGC PROGRAM LUMINARY BY NASA 2021112-071
	19:09 AUG. 11,1969
Note that the date is the date of the printout, not the date of the program revision.

054518,000002:                                                                                                  ## Copyright:   Public domain.
054519,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
054520,000004:                                                                                                  ## Purpose:     A section of Luminary revision 116.
054521,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM) 
054522,000006:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 12.
054523,000007:                                                                                                  ##              This file is intended to be a faithful transcription, except
054524,000008:                                                                                                  ##              that the code format has been changed to conform to the
054525,000009:                                                                                                  ##              requirements of the yaYUL assembler rather than the
054526,000010:                                                                                                  ##              original YUL assembler.
054527,000011:                                                                                                  ## Reference:   pp. 1284-1292
054528,000012:                                                                                                  ## Assembler:   yaYUL
054529,000013:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054530,000014:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
054531,000015:                                                                                                  ## Mod history: 2017-01-22 MAS  Created from Luminary 99.
054532,000016:                                                                                                  ##              2017-01-26 RRB  Updated for Luminary 116.
054533,000017:                                                                                                  ##              2017-02-19 HG remove stray ".", add missing comma instead
054534,000018:                                                                                                  ##              2017-03-14 RSB  Proofed comment text via 3-way diff vs
054535,000019:                                                                                                  ##                              Luminary 99 and 131.
054536,000020:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
054537,000021:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
054538,000022:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
054539,000023: 

Page 1284

054541,000025:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
054542,000026: 
054543,000027: 43,3745                                           COUNT*   $$/PHASE                              
054544,000028:    5311                                           BLOCK    02                                    
054545,000029:    4000                                           SETLOC   FFTAG1                                
054546,000030:    4000                                           BANK                                           
054547,000031: 
054548,000032:    5311           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
054549,000033:    5312           30000                           CAF      0                                     
054550,000034:    5313           24002                           INCR     Q                                     
054551,000035: 
054552,000036:    5314           55010        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
054553,000037:    5315           35320        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
054554,000038:    5316           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
054555,000039:    5317           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
054556,000040:    5320           20213                           CADR     SETUPDSP                              
054557,000041: 
054558,000042:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
054559,000043: 
054560,000044:    5321           50002        CHECKMM            INDEX    Q                                     
054561,000045:    5322           40000                           CS       0                                     
054562,000046:    5323           61010                           AD       MODREG                                
054563,000047:    5324           00006                           EXTEND                                         
054564,000048:    5325           16744                           BZF      Q+2                                   
054565,000049:    5326           16742                           TCF      Q+1                                   #  NO MATCH
054566,000050: 
054567,000051:    5327     6745               TCQ                =        Q+2        +1                         
054568,000052: 
054569,000053: 14,3775                                           BANK     14                                    
054570,000054: 10,2000                                           SETLOC   PHASETAB                              
054571,000055: 10,2000                                           BANK                                           
054572,000056: 
054573,000057: 10,2213                                           COUNT*   $$/PHASE                              
054574,000058: 10,2213           00004        SETUPDSP           INHINT                                         
054575,000059: 10,2214           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
054576,000060: 10,2215           34355                           CAF      PRIO30                                #    EITHER A TASK OR JOB CAN COME TO
054577,000061: 10,2216           05072                           TC       NOVAC                                 #    NEWMODE X
054578,000062: 10,2217     1010                                  EBANK=   MODREG                                
054579,000063: 10,2217           03577 60102                     2CADR    DSPMMJOB                              
054580,000064: 
054581,000065: 10,2221           52071                           DXCH     RUPTREG1                              
054582,000066: 10,2222           00003                           RELINT                                         
054583,000067: 10,2223           52006                           DXCH     Z                                     #  RETURN
054584,000068: 
054585,000069: 10,2224  40,3577               DSPMMJOB           EQUALS   DSPMMJB                               
054586,000070: 
054587,000071:    5327                                           BLOCK    02                                    
054588,000072:    4000                                           SETLOC   FFTAG1                                
054589,000073:    4000                                           BANK                                           
054590,000074: 

Page 1285

054592,000076:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
054593,000077:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX    CONTAINS THE PHASE INFORMATION,
054594,000078: 
054595,000079:                                                                                                  #                                                  TC      PHASCHNG
054596,000080:                                                                                                  #                                                  OCT     XXXXX
054597,000081: 
054598,000082:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.   THESE
054599,000083:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
054600,000084: 
054601,000085:                                                                                                  #                 G.0              INACTIVE, WILL NOT PERMIT A GROUP G RESTART
054602,000086:                                                                                                  #                 G.1              WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
054603,000087:                                                                                                  #                 G.EVEN           A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
054604,000088:                                                                                                  #                                  LONGCALL TO BE RESTARTED.
054605,000089:                                                                                                  #                 G.ODD NOT .1     A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
054606,000090: 
054607,000091:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
054608,000092: 
054609,000093:                                                                                                  #                  TL0 00P PPP PPP GGG                                      ,
054610,000094: 
054611,000095:                                                                                                  #  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,
054612,000096:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.              IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
054613,000097:                                                                                                  #  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
054614,000098:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
054615,000099: 
054616,000100:                                                                                                  #                                                    TC    PHASCHNG        THIS WILL CAUSE GROUP 3 TOBE SET TO 0,
054617,000101:                                                                                                  #                                                    OCT   00003           MAKING GROUP 3 INACTIVE
054618,000102: 
054619,000103:                                                                                                  #                                                    TC    PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
054620,000104:                                                                                                  #                                                    OCT   00012           GROUP 2 TO RESTART THE LAST DISPLAY
054621,000105: 
054622,000106:                                                                                                  #                                                    TC    PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
054623,000107:                                                                                                  #                                                    OCT   40064           CASE OF A RESTART WOULD START UP THE TWO
054624,000108:                                                                                                  #                                                                          THINGS LOCATED IN THE DOUBLE 4.6 RESTART
054625,000109:                                                                                                  #                                                                          LOCATION
054626,000110: 
054627,000111:                                                                                                  #                                                    TC    PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
054628,000112:                                                                                                  #                                                    OCT   20135           CAUSES 5.13 TO BE RESTARTED (SINCE
054629,000113:                                                                                                  #                                                                          LONGBASE WAS SET THIS SINGLE ENTRY
054630,000114:                                                                                                  #                                                                          SHOULD BE A LONGCALL)
054631,000115: 
054632,000116:                                                                                                  #                                                    TC    PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
054633,000117:                                                                                                  #                                                    OCT   60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
054634,000118:                                                                                                  #                                                                          LONGCALL TO BE RESTARTED
054635,000119: 
054636,000120:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
054637,000121:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
054638,000122: 
054639,000123:                                                                                                  #                  TL0 1AD XXX CJW GGG
054640,000124: 
054641,000125:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
054642,000126:                                                                                                  #  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
054643,000127:                                                                                                  #  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 1286

054645,000129:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
054646,000130:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
054647,000131:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
054648,000132:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
054649,000133:                                                                                                  #  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
054650,000134:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
054651,000135:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
054652,000136:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
054653,000137:                                                                                                  #                                          AD       TC     PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
054654,000138:                                                                                                  #                                          AD+1     OCT    05023           RESTARTED BY GROUP THREE WITH A PRIORITY
054655,000139:                                                                                                  #                                          AD+2     OCT    23000           OF 23.  NOTE UPON RETURNING IT WOULD
054656,000140:                                                                                                  #                                          AD+3                            ALSO GO TO AD+3
054657,000141: 
054658,000142:                                                                                                  #                                          AD       TC     PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO
054659,000143:                                                                                                  #                                          AD+1     OCT    27441           BE STARTED AS A LONGCALL FROM THE TIME
054660,000144:                                                                                                  #                                          AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
054661,000145:                                                                                                  #                                          AD+3     2CADR  CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
054662,000146:                                                                                                  #                                          AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
054663,000147:                                                                                                  #                                          AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
054664,000148:                                                                                                  #                                                                          LOCATION AD+5
054665,000149: 
054666,000150:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
054667,000151:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
054668,000152: 
054669,000153:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
054670,000154:                                                                                                  #  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
054671,000155:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
054672,000156: 
054673,000157:                                                                                                  #                  TL1 DAP PPP PPP GGG
054674,000158: 
054675,000159:                                                                                                  #  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
054676,000160:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE. D THIS
054677,000161:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
054678,000162:                                                                                                  #  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
054679,000163:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
054680,000164: 
054681,000165:                                                                                                  #                                            AD       TC     PHASCHNG       TBASE IS SET AND A RESTART CAUSE GROUP 3
054682,000166:                                                                                                  #                                            AD+1     OCT    56043          TO START THE JOB AJOBAJOB WITH PRIORITY
054683,000167:                                                                                                  #                                            AD+2     OCT    31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
054684,000168:                                                                                                  #                                            AD+3     2CADR  AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
054685,000169:                                                                                                  #                                            AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
054686,000170:                                                                                                  #                                            AD+5                            GO TO AD+5
054687,000171: 
054688,000172:                                                                                                  #                                            AD       TC     PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
054689,000173:                                                                                                  #                                            AD+1     OCT    10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
054690,000174:                                                                                                  #                                            AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
054691,000175:                                                                                                  #                                                                            BY MEANS OF GROUP 5

Page 1287

054693,000177:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
054694,000178: 
054695,000179:                                                                                                  #  SUMMARY OF BITS
054696,000180: 
054697,000181:                                                                                                  #  TYPE A          TL0 00P PPP PPP GGG
054698,000182: 
054699,000183:                                                                                                  #  TYPE B          TL1 DAP PPP PPP GGG
054700,000184: 
054701,000185:                                                                                                  #  TYPE C          TL0 1AD XXX CJW GGG
054702,000186: 

Page 1288

054704,000188:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
054705,000189:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
054706,000190:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
054707,000191: 
054708,000192:                                                                                                  #                                                   TC     2PHSCHNG
054709,000193:                                                                                                  #                                                   OCT    XXXXX
054710,000194:                                                                                                  #                                                   OCT    YYYYY
054711,000195: 
054712,000196:                                                                                                  #  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
054713,000197:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
054714,000198:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
054715,000199:                                                                                                  #                                          AD       TC     2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
054716,000200:                                                                                                  #                                          AD+1     OCT    40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
054717,000201:                                                                                                  #                                          AD+2     OCT    05025           THIS IS OF TYPE C, SET THE JOB TO BE
054718,000202:                                                                                                  #                                          AD+3     OCT    18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
054719,000203:                                                                                                  #                                          AD+4                            FOR GROUP 5 PHASE INFORMATION
054720,000204: 
054721,000205:    5327                                           COUNT*   $$/PHASE                              
054722,000206:    5327           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
054723,000207:    5330           50002                           NDX      Q                                     
054724,000208:    5331           30000                           CA       0                                     
054725,000209:    5332           24002                           INCR     Q                                     
054726,000210:    5333           54072                           TS       TEMPP2                                
054727,000211: 
054728,000212:    5334           74757                           MASK     OCT7                                  
054729,000213:    5335           60000                           DOUBLE                                         
054730,000214:    5336           54071                           TS       TEMPG2                                
054731,000215: 
054732,000216:    5337           30072                           CA       TEMPP2                                
054733,000217:    5340           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
054734,000218:    5341           00006                           EXTEND                                         
054735,000219:    5342           74740                           MP       BIT12                                 
054736,000220:    5343           56072                           XCH      TEMPP2                                
054737,000221: 
054738,000222:    5344           74735                           MASK     BIT15                                 
054739,000223:    5345           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
054740,000224: 
054741,000225:    5346           50002                           INDEX    Q                                     
054742,000226:    5347           30000                           CA       0                                     
054743,000227:    5350           24002                           INCR     Q                                     
054744,000228:    5351           54065                           TS       TEMPSW                                
054745,000229: 
054746,000230:    5352           15363                           TCF      PHASJUMP                              
054747,000231: 
054748,000232:    5353           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
054749,000233:    5354           50002                           INDEX    Q                                     
054750,000234:    5355           30000                           CA       0                                     
054751,000235:    5356           24002                           INCR     Q                                     
054752,000236:    5357           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1289

054754,000238:    5360           54065                           TS       TEMPSW                                
054755,000239:    5361           34753                           CA       ONE                                   
054756,000240:    5362           54066                           TS       TEMPSW2                               
054757,000241:    5363           00006        PHASJUMP           EXTEND                                         
054758,000242:    5364           35367                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
054759,000243:    5365           52006                           DTCB                                           
054760,000244: 
054761,000245:    5366  E3,1400                                  EBANK=   LST1                                  
054762,000246:    5366           02224 20103  ADRPCHN2           2CADR    PHSCHNG2                              
054763,000247: 
054764,000248:    5370           22073        ONEORTWO           LXCH     TEMPBBCN                              
054765,000249:    5371           22006                           LXCH     BBANK                                 
054766,000250:    5372           22073                           LXCH     TEMPBBCN                              
054767,000251: 
054768,000252:    5373           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
054769,000253:    5374           10000                           CCS      A                                     
054770,000254:    5375           17753                           TCF      CHECKB                                #   IT IS OF TYPE :B:
054771,000255: 
054772,000256:    5376           30062                           CA       TEMPP                                 
054773,000257:    5377           74745                           MASK     BIT7                                  
054774,000258:    5400           10000                           CCS      A                                     #   SHALL WE USE THE OLD PRIORITY
054775,000259:    5401           15423                           TCF      GETPRIO                               #   NO GET A NEW PRIORITY (OR DELTA T)
054776,000260: 
054777,000261:    5402           50061        OLDPRIO            NDX      TEMPG                                 #   USE THE OLD PRIORITY (OR DELTA T)
054778,000262:    5403           31051                           CA       PHSPRDT1   -2                         
054779,000263:    5404           54070                           TS       TEMPPR                                
054780,000264: 
054781,000265:    5405           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
054782,000266:    5406           74744                           MASK     BIT8                                  
054783,000267:    5407           10000                           CCS      A                                     
054784,000268:    5410           15427                           TCF      GETNEWNM                              
054785,000269: 
054786,000270:    5411           30002                           CA       Q                                     
054787,000271:    5412           54063                           TS       TEMPNM                                
054788,000272:    5413           30006                           CA       BB                                    
054789,000273:    5414           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
054790,000274:    5415           04007                           ROR      SUPERBNK                              
054791,000275:    5416           54064                           TS       TEMPBB                                
054792,000276: 
054793,000277:    5417           35422        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
054794,000278:    5420           22073                           LXCH     TEMPBBCN                              
054795,000279:    5421           52006                           DTCB                                           
054796,000280: 
054797,000281:    5422           02312        CON2ADR            GENADR   CON2                                  
054798,000282: 
054799,000283:    5423           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
054800,000284:    5424           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
054801,000285:    5425           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1290

054803,000287:    5426           15404                           TCF      CON1       -1                         
054804,000288: 
054805,000289:    5427           00006        GETNEWNM           EXTEND                                         
054806,000290:    5430           50002                           INDEX    Q                                     
054807,000291:    5431           30001                           DCA      0                                     
054808,000292:    5432           52064                           DXCH     TEMPNM                                
054809,000293:    5433           34752                           CA       TWO                                   
054810,000294:    5434           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
054811,000295: 
054812,000296:    5435           15417                           TCF      TOCON2                                
054813,000297: 
054814,000298:    5436     5024               OCT14000           EQUALS   PRIO14                                
054815,000299:    5436     0061               TEMPG              EQUALS   ITEMP1                                
054816,000300:    5436     0062               TEMPP              EQUALS   ITEMP2                                
054817,000301:    5436     0063               TEMPNM             EQUALS   ITEMP3                                
054818,000302:    5436     0064               TEMPBB             EQUALS   ITEMP4                                
054819,000303:    5436     0065               TEMPSW             EQUALS   ITEMP5                                
054820,000304:    5436     0066               TEMPSW2            EQUALS   ITEMP6                                
054821,000305:    5436     0070               TEMPPR             EQUALS   RUPTREG1                              
054822,000306:    5436     0071               TEMPG2             EQUALS   RUPTREG2                              
054823,000307:    5436     0072               TEMPP2             EQUALS   RUPTREG3                              
054824,000308: 
054825,000309:    5436     0073               TEMPBBCN           EQUALS   RUPTREG4                              
054826,000310:    5436  0000006               BB                 EQUALS   BBANK                                 
054827,000311: 
054828,000312: 14,3775                                           BANK     14                                    
054829,000313: 10,2000                                           SETLOC   PHASETAB                              
054830,000314: 10,2000                                           BANK                                           
054831,000315: 
054832,000316: 10,2224  E3,1436                                  EBANK=   PHSNAME1                              
054833,000317: 10,2224                                           COUNT*   $$/PHASE                              
054834,000318: 10,2224           22073        PHSCHNG2           LXCH     TEMPBBCN                              
054835,000319: 10,2225           30065                           CA       TEMPSW                                
054836,000320: 10,2226           74757                           MASK     OCT7                                  
054837,000321: 10,2227           60000                           DOUBLE                                         
054838,000322: 10,2230           54061                           TS       TEMPG                                 
054839,000323: 
054840,000324: 10,2231           30065                           CA       TEMPSW                                
054841,000325: 10,2232           75030                           MASK     OCT17770                              
054842,000326: 10,2233           00006                           EXTEND                                         
054843,000327: 10,2234           74740                           MP       BIT12                                 
054844,000328: 10,2235           54062                           TS       TEMPP                                 
054845,000329: 
054846,000330: 10,2236           30065                           CA       TEMPSW                                
054847,000331: 10,2237           74101                           MASK     OCT60000                              
054848,000332: 10,2240           56065                           XCH      TEMPSW                                
054849,000333: 10,2241           75024                           MASK     OCT14000                              
054850,000334: 10,2242           10000                           CCS      A                                     

Page 1291

054852,000336: 10,2243           15370                           TCF      ONEORTWO                              
054853,000337: 
054854,000338: 10,2244           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
054855,000339: 10,2245           50061                           NDX      TEMPG                                 
054856,000340: 10,2246           54750                           TS       PHASE1     -2                         
054857,000341: 
054858,000342: 10,2247           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
054859,000343: 10,2250           12264                           TCF      BELOW2                                #  IT:S A PHASCHNG
054860,000344: 
054861,000345: 10,2251           12252                           TCF      +1                                    #  IT:S A 2PHSCHNG
054862,000346: 10,2252           40072                           CS       TEMPP2                                
054863,000347: 10,2253           22072                           LXCH     TEMPP2                                
054864,000348: 10,2254           50071                           NDX      TEMPG2                                
054865,000349: 10,2255           52750                           DXCH     -PHASE1    -2                         
054866,000350: 
054867,000351: 10,2256           10066                           CCS      TEMPSW2                               
054868,000352: 10,2257           12260                           NOOP                                           #  CAN:T GET HERE
054869,000353: 10,2260           12264                           TCF      BELOW2                                
054870,000354: 
054871,000355: 10,2261           40025                           CS       TIME1                                 
054872,000356: 10,2262           50071                           NDX      TEMPG2                                
054873,000357: 10,2263           55050                           TS       TBASE1     -2                         
054874,000358: 
054875,000359: 10,2264           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
054876,000360: 10,2265           12300                           TCF      BELOW3                                #  SET LONGBASE ONLY
054877,000361: 10,2266           12303                           TCF      BELOW4                                #  SET NEITHER
054878,000362: 
054879,000363: 10,2267           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
054880,000364: 10,2270           50061                           NDX      TEMPG                                 
054881,000365: 10,2271           55050                           TS       TBASE1     -2                         
054882,000366: 
054883,000367: 10,2272           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
054884,000368: 10,2273           62276                           AD       BIT14COM                              
054885,000369: 10,2274           10000                           CCS      A                                     
054886,000370: 10,2275           12276                           NOOP                                           #  ***** CANT GET HERE *****
054887,000371: 10,2276           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
054888,000372: 10,2277           12303                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
054889,000373: 
054890,000374: 10,2300           00006        BELOW3             EXTEND                                         #  SET LONGBASE
054891,000375: 10,2301           30025                           DCA      TIME2                                 
054892,000376: 10,2302           53151                           DXCH     LONGBASE                              
054893,000377: 
054894,000378: 10,2303           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
054895,000379: 10,2304           50061                           NDX      TEMPG                                 
054896,000380: 10,2305           54747                           TS       -PHASE1    -2                         
054897,000381: 
054898,000382: 10,2306           30002                           CA       Q                                     
054899,000383: 10,2307           22073                           LXCH     TEMPBBCN                              
054900,000384: 10,2310           00003                           RELINT                                         
054901,000385: 10,2311           52006                           DTCB                                           

Page 1292

054903,000387: 10,2312           22073        CON2               LXCH     TEMPBBCN                              
054904,000388: 
054905,000389: 10,2313           30062                           CA       TEMPP                                 
054906,000390: 10,2314           50061                           NDX      TEMPG                                 
054907,000391: 10,2315           54750                           TS       PHASE1     -2                         
054908,000392: 
054909,000393: 10,2316           30070                           CA       TEMPPR                                
054910,000394: 10,2317           50061                           NDX      TEMPG                                 
054911,000395: 10,2320           55051                           TS       PHSPRDT1   -2                         
054912,000396: 
054913,000397: 10,2321           00006                           EXTEND                                         
054914,000398: 10,2322           30064                           DCA      TEMPNM                                
054915,000399: 10,2323           50061                           NDX      TEMPG                                 
054916,000400: 10,2324           53435                           DXCH     PHSNAME1   -2                         
054917,000401: 
054918,000402: 10,2325           12247                           TCF      BELOW1                                
054919,000403: 
054920,000404:    7753                                           BLOCK    03                                    
054921,000405:    6000                                           SETLOC   FFTAG6                                
054922,000406:    6000                                           BANK                                           
054923,000407: 
054924,000408:    7753                                           COUNT*   $$/PHASE                              
054925,000409:    7753           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
054926,000410:    7754           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
054927,000411:    7755           15423                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
054928,000412: 
054929,000413:    7756           15402                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
054930,000414: 
054931,000415: 

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