Source Code

These source-code files were transcribed from scans made from Don Eyles's personal copy of Luminary 069. They were scanned at archive.org's Boston facility, and the scanning was sponsored by Onno Hommes. The code was transcribed from these scans by a team of volunteers who are referenced in the program comments. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". In some cases, where similar code blocks exist in previously-transcribed AGC programs (primarily Luminary 99, from Apollo 11) those code blocks were used as a starting point and then corrected to agree with the Luminary 69 scans. The full scans are available at the Virtual AGC project's collection at archive.org, while more-convenient reduced-size (but reduced-quality) images are available at the main Virtual AGC website. Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 069 OF AGC PROGRAM LUMINARY BY NASA 2021112-011
	19:02 NOV. 25,1968
Note that the date is the date of the printout, not the date of the program revision.

055836,000002:                                                                                                  ## Copyright:   Public domain.
055837,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
055838,000004:                                                                                                  ## Purpose:     The main source file for Luminary revision 069.
055839,000005:                                                                                                  ##              It is part of the source code for the original release
055840,000006:                                                                                                  ##              of the flight software for the Lunar Module's (LM) Apollo
055841,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 10. The actual flown
055842,000008:                                                                                                  ##              version was Luminary 69 revision 2, which included a
055843,000009:                                                                                                  ##              newer lunar gravity model and only affected module 2.
055844,000010:                                                                                                  ##              This file is intended to be a faithful transcription, except
055845,000011:                                                                                                  ##              that the code format has been changed to conform to the
055846,000012:                                                                                                  ##              requirements of the yaYUL assembler rather than the
055847,000013:                                                                                                  ##              original YUL assembler.
055848,000014:                                                                                                  ## Reference:   pp. 1288-1296
055849,000015:                                                                                                  ## Assembler:   yaYUL
055850,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
055851,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
055852,000018:                                                                                                  ## Mod history: 2016-12-13 MAS  Created from Luminary 99.
055853,000019:                                                                                                  ##              2016-12-18 MAS  Updated from comment-proofed Luminary 99 version.
055854,000020:                                                                                                  ##              2017-01-11 RRB  Updated for Luminary 69.
055855,000021:                                                                                                  ##              2017-01-28 RSB  Proofed comment text using octopus/prooferComments
055856,000022:                                                                                                  ##                              and fixed errors found.
055857,000023:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes noted in proofing Luminary 116.
055858,000024:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
055859,000025:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
055860,000026:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
055861,000027: 

Page 1288

055863,000029:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
055864,000030: 
055865,000031: 43,3732                                           COUNT*   $$/PHASE                              
055866,000032:    5311                                           BLOCK    02                                    
055867,000033:    4000                                           SETLOC   FFTAG1                                
055868,000034:    4000                                           BANK                                           
055869,000035: 
055870,000036:    5311           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
055871,000037:    5312           30000                           CAF      0                                     
055872,000038:    5313           24002                           INCR     Q                                     
055873,000039: 
055874,000040:    5314           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
055875,000041:    5315           35320        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
055876,000042:    5316           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
055877,000043:    5317           14640                           TCF      BANKJUMP                              #  PUTS Q INTO A
055878,000044:    5320           20071                           CADR     SETUPDSP                              
055879,000045: 
055880,000046:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
055881,000047: 
055882,000048:    5321           50002        CHECKMM            INDEX    Q                                     
055883,000049:    5322           40000                           CS       0                                     
055884,000050:    5323           61011                           AD       MODREG                                
055885,000051:    5324           00006                           EXTEND                                         
055886,000052:    5325           16740                           BZF      Q+2                                   
055887,000053:    5326           16736                           TCF      Q+1                                   #  NO MATCH
055888,000054: 
055889,000055:    5327     6741               TCQ                =        Q+2        +1                         
055890,000056: 
055891,000057: 14,3711                                           BANK     14                                    
055892,000058: 10,2000                                           SETLOC   PHASETAB                              
055893,000059: 10,2000                                           BANK                                           
055894,000060: 
055895,000061: 10,2071                                           COUNT*   $$/PHASE                              
055896,000062: 10,2071           00004        SETUPDSP           INHINT                                         
055897,000063: 10,2072           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
055898,000064: 10,2073           34355                           CAF      PRIO30                                #    EITHER A TASK OR JOB CAN COME TO
055899,000065: 10,2074           05072                           TC       NOVAC                                 #    NEWMODE X
055900,000066: 10,2075     1011                                  EBANK=   MODREG                                
055901,000067: 10,2075           03532 60102                     2CADR    DSPMMJOB                              
055902,000068: 
055903,000069: 10,2077           52071                           DXCH     RUPTREG1                              
055904,000070: 10,2100           00003                           RELINT                                         
055905,000071: 10,2101           52006                           DXCH     Z                                     #  RETURN
055906,000072: 
055907,000073: 10,2102  40,3532               DSPMMJOB           EQUALS   DSPMMJB                               
055908,000074: 
055909,000075:    5327                                           BLOCK    02                                    
055910,000076:    4000                                           SETLOC   FFTAG1                                
055911,000077:    4000                                           BANK                                           
055912,000078: 

Page 1289

055914,000080:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
055915,000081:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
055916,000082:                                                                                                  #                TC      PHASCHNG
055917,000083:                                                                                                  #                OCT     XXXXX
055918,000084:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
055919,000085:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
055920,000086:                                                                                                  #        G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
055921,000087:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
055922,000088:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
055923,000089:                                                                                                  #                        LONGCALL TO BE RESTARTED.
055924,000090:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
055925,000091: 
055926,000092:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
055927,000093:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
055928,000094:                                                                                                  #  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,
055929,000095:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.              IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
055930,000096:                                                                                                  #  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
055931,000097:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
055932,000098:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
055933,000099:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
055934,000100: 
055935,000101:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
055936,000102:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
055937,000103: 
055938,000104:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
055939,000105:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
055940,000106:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
055941,000107:                                                                                                  #                                        LOCATION
055942,000108:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
055943,000109:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
055944,000110:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
055945,000111:                                                                                                  #                                        SHOULD BE A LONGCALL)
055946,000112: 
055947,000113:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
055948,000114:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
055949,000115:                                                                                                  #                                        LONGCALL TO BE RESTARTED
055950,000116: 
055951,000117:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION. INSTEAD OF THE INFORMATION BEING IN A
055952,000118:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
055953,000119:                                                                                                  #        TL0 1AD XXX CJW GGG
055954,000120:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
055955,000121:                                                                                                  #  BE BY WAITLIST, W IS SET TO 1, IF IT IS A JOB, J IS SET TO 1, IF IT IS A LONGCALL, C IS SET TO 1.  ONLY ONE OF
055956,000122:                                                                                                  #  THESE THREE BITS MAY BE SET.  X:S ARE IGNORED  1 MUST BE 1, AND 0 MUST BE 0.  AGAIN T STANDS FOR THE TBASE,

Page 1290

055958,000124:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
055959,000125:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
055960,000126:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
055961,000127:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
055962,000128:                                                                                                  #  ALREADY IN THE VARIABLE STORAGE, THEN D IS SET TO 0. NEXT THE A BIT IS USED.  IF IT IS SET TO 0, THE ADDRESS
055963,000129:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER  THE PHASE INFORMATION, THAT IS, EITHER
055964,000130:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
055965,000131:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
055966,000132:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
055967,000133:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
055968,000134:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
055969,000135:                                                                                                  #        AD+3                            ALSO GO TO AD+3
055970,000136: 
055971,000137:                                                                                                  #        AD      TC      PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO
055972,000138:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
055973,000139:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
055974,000140:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
055975,000141:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
055976,000142:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
055977,000143:                                                                                                  #                                        LOCATION AD+5
055978,000144: 
055979,000145:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
055980,000146:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
055981,000147: 
055982,000148:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
055983,000149:                                                                                                  #  BELOW AND ALSO START UP ONE FIXED RESTART, THAT IS EITHER AN G.1 OR A G.ODD OR THE FIRST ENTRY OF G.EVEN
055984,000150:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
055985,000151:                                                                                                  #        TL1 DAP PPP PPP GGG
055986,000152:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7. THE P:S FOR THE FIXED
055987,000153:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE. D THIS
055988,000154:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
055989,000155:                                                                                                  #  AGAIN A STANDS FOR THE ADDRESS OF THE LOCATION TO BE RESTARTED, 1 IF THE 2CADR IS GIVEN, OR 0 IF IT IS TO BE
055990,000156:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
055991,000157:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
055992,000158:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
055993,000159:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
055994,000160:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
055995,000161:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
055996,000162:                                                                                                  #        AD+5                            GO TO AD+5
055997,000163: 
055998,000164:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
055999,000165:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
056000,000166:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
056001,000167:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1291

056003,000169:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
056004,000170: 
056005,000171:                                                                                                  #  SUMMARY OF BITS
056006,000172:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
056007,000173:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
056008,000174:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
056009,000175: 

Page 1292

056011,000177:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
056012,000178:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
056013,000179:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
056014,000180:                                                                                                  #                TC      2PHSCHNG
056015,000181:                                                                                                  #                OCT     XXXXX
056016,000182:                                                                                                  #                OCT     YYYYY
056017,000183:                                                                                                  #  WHERE OCT XXXXX MUST BE OF TYPE A AND OCT YYYYY MAY BE OF EITHER TYPE A OR TYPE B OR TYPEC.  THERE IS ONE
056018,000184:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
056019,000185:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
056020,000186:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
056021,000187:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
056022,000188:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
056023,000189:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
056024,000190:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
056025,000191: 
056026,000192:    5327                                           COUNT*   $$/PHASE                              
056027,000193:    5327           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
056028,000194:    5330           50002                           NDX      Q                                     
056029,000195:    5331           30000                           CA       0                                     
056030,000196:    5332           24002                           INCR     Q                                     
056031,000197:    5333           54072                           TS       TEMPP2                                
056032,000198: 
056033,000199:    5334           74757                           MASK     OCT7                                  
056034,000200:    5335           60000                           DOUBLE                                         
056035,000201:    5336           54071                           TS       TEMPG2                                
056036,000202: 
056037,000203:    5337           30072                           CA       TEMPP2                                
056038,000204:    5340           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
056039,000205:    5341           00006                           EXTEND                                         
056040,000206:    5342           74740                           MP       BIT12                                 
056041,000207:    5343           56072                           XCH      TEMPP2                                
056042,000208: 
056043,000209:    5344           74735                           MASK     BIT15                                 
056044,000210:    5345           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
056045,000211: 
056046,000212:    5346           50002                           INDEX    Q                                     
056047,000213:    5347           30000                           CA       0                                     
056048,000214:    5350           24002                           INCR     Q                                     
056049,000215:    5351           54065                           TS       TEMPSW                                
056050,000216: 
056051,000217:    5352           15363                           TCF      PHASJUMP                              
056052,000218: 
056053,000219:    5353           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
056054,000220:    5354           50002                           INDEX    Q                                     
056055,000221:    5355           30000                           CA       0                                     
056056,000222:    5356           24002                           INCR     Q                                     
056057,000223:    5357           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1293

056059,000225:    5360           54065                           TS       TEMPSW                                
056060,000226:    5361           34753                           CA       ONE                                   
056061,000227:    5362           54066                           TS       TEMPSW2                               
056062,000228:    5363           00006        PHASJUMP           EXTEND                                         
056063,000229:    5364           35367                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
056064,000230:    5365           52006                           DTCB                                           
056065,000231: 
056066,000232:    5366  E3,1400                                  EBANK=   LST1                                  
056067,000233:    5366           02102 20103  ADRPCHN2           2CADR    PHSCHNG2                              
056068,000234: 
056069,000235:    5370           22073        ONEORTWO           LXCH     TEMPBBCN                              
056070,000236:    5371           22006                           LXCH     BBANK                                 
056071,000237:    5372           22073                           LXCH     TEMPBBCN                              
056072,000238: 
056073,000239:    5373           75024                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
056074,000240:    5374           10000                           CCS      A                                     
056075,000241:    5375           17747                           TCF      CHECKB                                #  IT IS OF TYPE :B:
056076,000242: 
056077,000243:    5376           30062                           CA       TEMPP                                 
056078,000244:    5377           74745                           MASK     BIT7                                  
056079,000245:    5400           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
056080,000246:    5401           15423                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
056081,000247: 
056082,000248:    5402           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
056083,000249:    5403           31052                           CA       PHSPRDT1   -2                         
056084,000250:    5404           54070                           TS       TEMPPR                                
056085,000251: 
056086,000252:    5405           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
056087,000253:    5406           74744                           MASK     BIT8                                  
056088,000254:    5407           10000                           CCS      A                                     
056089,000255:    5410           15427                           TCF      GETNEWNM                              
056090,000256: 
056091,000257:    5411           30002                           CA       Q                                     
056092,000258:    5412           54063                           TS       TEMPNM                                
056093,000259:    5413           30006                           CA       BB                                    
056094,000260:    5414           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
056095,000261:    5415           04007                           ROR      SUPERBNK                              
056096,000262:    5416           54064                           TS       TEMPBB                                
056097,000263: 
056098,000264:    5417           35422        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
056099,000265:    5420           22073                           LXCH     TEMPBBCN                              
056100,000266:    5421           52006                           DTCB                                           
056101,000267: 
056102,000268:    5422           02170        CON2ADR            GENADR   CON2                                  
056103,000269: 
056104,000270:    5423           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
056105,000271:    5424           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
056106,000272:    5425           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS

Page 1294

056108,000274:    5426           15404                           TCF      CON1       -1                         
056109,000275: 
056110,000276:    5427           00006        GETNEWNM           EXTEND                                         
056111,000277:    5430           50002                           INDEX    Q                                     
056112,000278:    5431           30001                           DCA      0                                     
056113,000279:    5432           52064                           DXCH     TEMPNM                                
056114,000280:    5433           34752                           CA       TWO                                   
056115,000281:    5434           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
056116,000282: 
056117,000283:    5435           15417                           TCF      TOCON2                                
056118,000284: 
056119,000285:    5436     5024               OCT14000           EQUALS   PRIO14                                
056120,000286:    5436     0061               TEMPG              EQUALS   ITEMP1                                
056121,000287:    5436     0062               TEMPP              EQUALS   ITEMP2                                
056122,000288:    5436     0063               TEMPNM             EQUALS   ITEMP3                                
056123,000289:    5436     0064               TEMPBB             EQUALS   ITEMP4                                
056124,000290:    5436     0065               TEMPSW             EQUALS   ITEMP5                                
056125,000291:    5436     0066               TEMPSW2            EQUALS   ITEMP6                                
056126,000292:    5436     0070               TEMPPR             EQUALS   RUPTREG1                              
056127,000293:    5436     0071               TEMPG2             EQUALS   RUPTREG2                              
056128,000294:    5436     0072               TEMPP2             EQUALS   RUPTREG3                              
056129,000295: 
056130,000296:    5436     0073               TEMPBBCN           EQUALS   RUPTREG4                              
056131,000297:    5436  0000006               BB                 EQUALS   BBANK                                 
056132,000298: 
056133,000299: 14,3711                                           BANK     14                                    
056134,000300: 10,2000                                           SETLOC   PHASETAB                              
056135,000301: 10,2000                                           BANK                                           
056136,000302: 
056137,000303: 10,2102  E3,1436                                  EBANK=   PHSNAME1                              
056138,000304: 10,2102                                           COUNT*   $$/PHASE                              
056139,000305: 10,2102           22073        PHSCHNG2           LXCH     TEMPBBCN                              
056140,000306: 10,2103           30065                           CA       TEMPSW                                
056141,000307: 10,2104           74757                           MASK     OCT7                                  
056142,000308: 10,2105           60000                           DOUBLE                                         
056143,000309: 10,2106           54061                           TS       TEMPG                                 
056144,000310: 
056145,000311: 10,2107           30065                           CA       TEMPSW                                
056146,000312: 10,2110           75030                           MASK     OCT17770                              
056147,000313: 10,2111           00006                           EXTEND                                         
056148,000314: 10,2112           74740                           MP       BIT12                                 
056149,000315: 10,2113           54062                           TS       TEMPP                                 
056150,000316: 
056151,000317: 10,2114           30065                           CA       TEMPSW                                
056152,000318: 10,2115           74101                           MASK     OCT60000                              
056153,000319: 10,2116           56065                           XCH      TEMPSW                                
056154,000320: 10,2117           75024                           MASK     OCT14000                              
056155,000321: 10,2120           10000                           CCS      A                                     

Page 1295

056157,000323: 10,2121           15370                           TCF      ONEORTWO                              
056158,000324: 
056159,000325: 10,2122           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
056160,000326: 10,2123           50061                           NDX      TEMPG                                 
056161,000327: 10,2124           54751                           TS       PHASE1     -2                         
056162,000328: 
056163,000329: 10,2125           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
056164,000330: 10,2126           12142                           TCF      BELOW2                                #  IT:S A PHASCHNG
056165,000331: 
056166,000332: 10,2127           12130                           TCF      +1                                    #  IT:S A 2PHSCHNG
056167,000333: 10,2130           40072                           CS       TEMPP2                                
056168,000334: 10,2131           22072                           LXCH     TEMPP2                                
056169,000335: 10,2132           50071                           NDX      TEMPG2                                
056170,000336: 10,2133           52751                           DXCH     -PHASE1    -2                         
056171,000337: 
056172,000338: 10,2134           10066                           CCS      TEMPSW2                               
056173,000339: 10,2135           12136                           NOOP                                           #  CAN:T GET HERE
056174,000340: 10,2136           12142                           TCF      BELOW2                                
056175,000341: 
056176,000342: 10,2137           40025                           CS       TIME1                                 
056177,000343: 10,2140           50071                           NDX      TEMPG2                                
056178,000344: 10,2141           55051                           TS       TBASE1     -2                         
056179,000345: 
056180,000346: 10,2142           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
056181,000347: 10,2143           12156                           TCF      BELOW3                                #  SET LONGBASE ONLY
056182,000348: 10,2144           12161                           TCF      BELOW4                                #  SET NEITHER
056183,000349: 
056184,000350: 10,2145           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
056185,000351: 10,2146           50061                           NDX      TEMPG                                 
056186,000352: 10,2147           55051                           TS       TBASE1     -2                         
056187,000353: 
056188,000354: 10,2150           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
056189,000355: 10,2151           62154                           AD       BIT14COM                              
056190,000356: 10,2152           10000                           CCS      A                                     
056191,000357: 10,2153           12154                           NOOP                                           #  ***** CANT GET HERE *****
056192,000358: 10,2154           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
056193,000359: 10,2155           12161                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
056194,000360: 
056195,000361: 10,2156           00006        BELOW3             EXTEND                                         #  SET LONGBASE
056196,000362: 10,2157           30025                           DCA      TIME2                                 
056197,000363: 10,2160           53152                           DXCH     LONGBASE                              
056198,000364: 
056199,000365: 10,2161           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
056200,000366: 10,2162           50061                           NDX      TEMPG                                 
056201,000367: 10,2163           54750                           TS       -PHASE1    -2                         
056202,000368: 
056203,000369: 10,2164           30002                           CA       Q                                     
056204,000370: 10,2165           22073                           LXCH     TEMPBBCN                              
056205,000371: 10,2166           00003                           RELINT                                         
056206,000372: 10,2167           52006                           DTCB                                           

Page 1296

056208,000374: 10,2170           22073        CON2               LXCH     TEMPBBCN                              
056209,000375: 
056210,000376: 10,2171           30062                           CA       TEMPP                                 
056211,000377: 10,2172           50061                           NDX      TEMPG                                 
056212,000378: 10,2173           54751                           TS       PHASE1     -2                         
056213,000379: 
056214,000380: 10,2174           30070                           CA       TEMPPR                                
056215,000381: 10,2175           50061                           NDX      TEMPG                                 
056216,000382: 10,2176           55052                           TS       PHSPRDT1   -2                         
056217,000383: 
056218,000384: 10,2177           00006                           EXTEND                                         
056219,000385: 10,2200           30064                           DCA      TEMPNM                                
056220,000386: 10,2201           50061                           NDX      TEMPG                                 
056221,000387: 10,2202           53435                           DXCH     PHSNAME1   -2                         
056222,000388: 
056223,000389: 10,2203           12125                           TCF      BELOW1                                
056224,000390: 
056225,000391:    7747                                           BLOCK    03                                    
056226,000392:    6000                                           SETLOC   FFTAG6                                
056227,000393:    6000                                           BANK                                           
056228,000394: 
056229,000395:    7747                                           COUNT*   $$/PHASE                              
056230,000396:    7747           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
056231,000397:    7750           10000                           CCS      A                                     #   BE HERE IF WE ARE TO GET A NEW PRIORITY
056232,000398:    7751           15423                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
056233,000399: 
056234,000400:    7752           15402                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
056235,000401: 
056236,000402: 

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