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.

055860,000002:                                                                                                  ## Copyright:   Public domain.
055861,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
055862,000004:                                                                                                  ## Purpose:     The main source file for Luminary revision 069.
055863,000005:                                                                                                  ##              It is part of the source code for the original release
055864,000006:                                                                                                  ##              of the flight software for the Lunar Module's (LM) Apollo
055865,000007:                                                                                                  ##              Guidance Computer (AGC) for Apollo 10. The actual flown
055866,000008:                                                                                                  ##              version was Luminary 69 revision 2, which included a
055867,000009:                                                                                                  ##              newer lunar gravity model and only affected module 2.
055868,000010:                                                                                                  ##              This file is intended to be a faithful transcription, except
055869,000011:                                                                                                  ##              that the code format has been changed to conform to the
055870,000012:                                                                                                  ##              requirements of the yaYUL assembler rather than the
055871,000013:                                                                                                  ##              original YUL assembler.
055872,000014:                                                                                                  ## Reference:   pp. 1288-1296
055873,000015:                                                                                                  ## Assembler:   yaYUL
055874,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
055875,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
055876,000018:                                                                                                  ## Mod history: 2016-12-13 MAS  Created from Luminary 99.
055877,000019:                                                                                                  ##              2016-12-18 MAS  Updated from comment-proofed Luminary 99 version.
055878,000020:                                                                                                  ##              2017-01-11 RRB  Updated for Luminary 69.
055879,000021:                                                                                                  ##              2017-01-28 RSB  Proofed comment text using octopus/prooferComments
055880,000022:                                                                                                  ##                              and fixed errors found.
055881,000023:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes noted in proofing Luminary 116.
055882,000024:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
055883,000025:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
055884,000026:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
055885,000027: 

Page 1288

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

Page 1289

055938,000080:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
055939,000081:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
055940,000082:                                                                                                  #                TC      PHASCHNG
055941,000083:                                                                                                  #                OCT     XXXXX
055942,000084:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
055943,000085:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
055944,000086:                                                                                                  #        G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
055945,000087:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
055946,000088:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
055947,000089:                                                                                                  #                        LONGCALL TO BE RESTARTED.
055948,000090:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
055949,000091: 
055950,000092:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
055951,000093:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
055952,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,
055953,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,
055954,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
055955,000097:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
055956,000098:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
055957,000099:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
055958,000100: 
055959,000101:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
055960,000102:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
055961,000103: 
055962,000104:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
055963,000105:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
055964,000106:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
055965,000107:                                                                                                  #                                        LOCATION
055966,000108:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
055967,000109:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
055968,000110:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
055969,000111:                                                                                                  #                                        SHOULD BE A LONGCALL)
055970,000112: 
055971,000113:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
055972,000114:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
055973,000115:                                                                                                  #                                        LONGCALL TO BE RESTARTED
055974,000116: 
055975,000117:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION. INSTEAD OF THE INFORMATION BEING IN A
055976,000118:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
055977,000119:                                                                                                  #        TL0 1AD XXX CJW GGG
055978,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
055979,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
055980,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

055982,000124:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
055983,000125:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
055984,000126:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
055985,000127:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
055986,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
055987,000129:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER  THE PHASE INFORMATION, THAT IS, EITHER
055988,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
055989,000131:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
055990,000132:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
055991,000133:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
055992,000134:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
055993,000135:                                                                                                  #        AD+3                            ALSO GO TO AD+3
055994,000136: 
055995,000137:                                                                                                  #        AD      TC      PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO
055996,000138:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
055997,000139:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
055998,000140:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
055999,000141:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
056000,000142:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
056001,000143:                                                                                                  #                                        LOCATION AD+5
056002,000144: 
056003,000145:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
056004,000146:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
056005,000147: 
056006,000148:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
056007,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
056008,000150:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
056009,000151:                                                                                                  #        TL1 DAP PPP PPP GGG
056010,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
056011,000153:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE. D THIS
056012,000154:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
056013,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
056014,000156:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
056015,000157:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
056016,000158:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
056017,000159:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
056018,000160:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
056019,000161:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
056020,000162:                                                                                                  #        AD+5                            GO TO AD+5
056021,000163: 
056022,000164:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
056023,000165:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
056024,000166:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
056025,000167:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1291

056027,000169:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
056028,000170: 
056029,000171:                                                                                                  #  SUMMARY OF BITS
056030,000172:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
056031,000173:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
056032,000174:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
056033,000175: 

Page 1292

056035,000177:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
056036,000178:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
056037,000179:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
056038,000180:                                                                                                  #                TC      2PHSCHNG
056039,000181:                                                                                                  #                OCT     XXXXX
056040,000182:                                                                                                  #                OCT     YYYYY
056041,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
056042,000184:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
056043,000185:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
056044,000186:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
056045,000187:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
056046,000188:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
056047,000189:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
056048,000190:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
056049,000191: 
056050,000192:    5327                                           COUNT*   $$/PHASE                              
056051,000193:    5327           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
056052,000194:    5330           50002                           NDX      Q                                     
056053,000195:    5331           30000                           CA       0                                     
056054,000196:    5332           24002                           INCR     Q                                     
056055,000197:    5333           54072                           TS       TEMPP2                                
056056,000198: 
056057,000199:    5334           74757                           MASK     OCT7                                  
056058,000200:    5335           60000                           DOUBLE                                         
056059,000201:    5336           54071                           TS       TEMPG2                                
056060,000202: 
056061,000203:    5337           30072                           CA       TEMPP2                                
056062,000204:    5340           75030                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
056063,000205:    5341           00006                           EXTEND                                         
056064,000206:    5342           74740                           MP       BIT12                                 
056065,000207:    5343           56072                           XCH      TEMPP2                                
056066,000208: 
056067,000209:    5344           74735                           MASK     BIT15                                 
056068,000210:    5345           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
056069,000211: 
056070,000212:    5346           50002                           INDEX    Q                                     
056071,000213:    5347           30000                           CA       0                                     
056072,000214:    5350           24002                           INCR     Q                                     
056073,000215:    5351           54065                           TS       TEMPSW                                
056074,000216: 
056075,000217:    5352           15363                           TCF      PHASJUMP                              
056076,000218: 
056077,000219:    5353           00004        PHASCHNG           INHINT                                         #  NORMAL PHASCHNG ENTRY POINT.
056078,000220:    5354           50002                           INDEX    Q                                     
056079,000221:    5355           30000                           CA       0                                     
056080,000222:    5356           24002                           INCR     Q                                     
056081,000223:    5357           00004        PHSCHNGA           INHINT                                         #  FIRST OCTAL PARAMETER IN A.

Page 1293

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

Page 1294

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

Page 1295

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

Page 1296

056232,000374: 10,2170           22073        CON2               LXCH     TEMPBBCN                              
056233,000375: 
056234,000376: 10,2171           30062                           CA       TEMPP                                 
056235,000377: 10,2172           50061                           NDX      TEMPG                                 
056236,000378: 10,2173           54751                           TS       PHASE1     -2                         
056237,000379: 
056238,000380: 10,2174           30070                           CA       TEMPPR                                
056239,000381: 10,2175           50061                           NDX      TEMPG                                 
056240,000382: 10,2176           55052                           TS       PHSPRDT1   -2                         
056241,000383: 
056242,000384: 10,2177           00006                           EXTEND                                         
056243,000385: 10,2200           30064                           DCA      TEMPNM                                
056244,000386: 10,2201           50061                           NDX      TEMPG                                 
056245,000387: 10,2202           53435                           DXCH     PHSNAME1   -2                         
056246,000388: 
056247,000389: 10,2203           12125                           TCF      BELOW1                                
056248,000390: 
056249,000391:    7747                                           BLOCK    03                                    
056250,000392:    6000                                           SETLOC   FFTAG6                                
056251,000393:    6000                                           BANK                                           
056252,000394: 
056253,000395:    7747                                           COUNT*   $$/PHASE                              
056254,000396:    7747           74740        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
056255,000397:    7750           10000                           CCS      A                                     #   BE HERE IF WE ARE TO GET A NEW PRIORITY
056256,000398:    7751           15423                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
056257,000399: 
056258,000400:    7752           15402                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
056259,000401: 
056260,000402: 

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