Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Colossus 249 (Apollo 9) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 055 OF AGC PROGRAM COMANCHE BY NASA 2021113-051
	10:28 APR.  1,1969
Note that the date is the date of the printout, not the date of the program revision.

061189,000002:                                                                                                  ## Copyright:   Public domain.
061190,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
061191,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus 2A, AKA Comanche 055.
061192,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
061193,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
061194,000007:                                                                                                  ## Assembler:   yaYUL
061195,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
061196,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
061197,000010:                                                                                                  ## Pages:       1404-1413
061198,000011:                                                                                                  ## Mod history: 2009-05-10 SN   (Sergio Navarro).  Started adapting
061199,000012:                                                                                                  ##                              from the Colossus249/ file of the same
061200,000013:                                                                                                  ##                              name, using Comanche055 page images.
061201,000014:                                                                                                  ##              2016-12-22 RSB  Proofed comment text using octopus/ProoferComments
061202,000015:                                                                                                  ##                              and corrected the errors found.
061203,000016:                                                                                                  ##              2017-01-18 RSB  Fixed comment-text errors noted while diff'ing
061204,000017:                                                                                                  ##                              vs Colossus 249.
061205,000018:                                                                                                  ##
061206,000019:                                                                                                  ## This source code has been transcribed or otherwise adapted from digitized
061207,000020:                                                                                                  ## images of a hardcopy from the MIT Museum.  The digitization was performed
061208,000021:                                                                                                  ## by Paul Fjeld, and arranged for by Deborah Douglas of the Museum.  Many
061209,000022:                                                                                                  ## thanks to both.  The images (with suitable reduction in storage size and
061210,000023:                                                                                                  ## consequent reduction in image quality as well) are available online at
061211,000024:                                                                                                  ## www.ibiblio.org/apollo.  If for some reason you find that the images are
061212,000025:                                                                                                  ## illegible, contact me at info@sandroid.org about getting access to the
061213,000026:                                                                                                  ## (much) higher-quality images which Paul actually created.
061214,000027:                                                                                                  ##
061215,000028:                                                                                                  ## Notations on the hardcopy document read, in part:
061216,000029:                                                                                                  ##
061217,000030:                                                                                                  ##    Assemble revision 055 of AGC program Comanche by NASA
061218,000031:                                                                                                  ##    2021113-051.  10:28 APR. 1, 1969 
061219,000032:                                                                                                  ##
061220,000033:                                                                                                  ##    This AGC program shall also be referred to as
061221,000034:                                                                                                  ##            Colossus 2A
061222,000035: 

Page 1404

061224,000037:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
061225,000038: 
061226,000039: 43,3726                                           COUNT    02/PHASE                              
061227,000040:    5354                                           BLOCK    02                                    
061228,000041:    4000                                           SETLOC   FFTAG1                                
061229,000042:    4000                                           BANK                                           
061230,000043: 
061231,000044:    5354           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
061232,000045:    5355           30000                           CAF      0                                     
061233,000046:    5356           24002                           INCR     Q                                     
061234,000047: 
061235,000048:    5357           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
061236,000049:    5360           35363        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
061237,000050:    5361           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
061238,000051:    5362           14704                           TCF      BANKJUMP                              #  PUTS Q INTO A
061239,000052:    5363           20440                           CADR     SETUPDSP                              
061240,000053: 
061241,000054:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
061242,000055: 
061243,000056:    5364           50002        CHECKMM            INDEX    Q                                     
061244,000057:    5365           40000                           CS       0                                     
061245,000058:    5366           61011                           AD       MODREG                                
061246,000059:    5367           00006                           EXTEND                                         
061247,000060:    5370           16710                           BZF      Q+2                                   
061248,000061:    5371           16706                           TCF      Q+1                                   #  NO MATCH
061249,000062: 
061250,000063:    5372     6711               TCQ                =        Q+2        +1                         
061251,000064: 
061252,000065: 14,3761                                           BANK     14                                    
061253,000066: 10,2000                                           SETLOC   PHASETAB                              
061254,000067: 10,2000                                           BANK                                           
061255,000068: 
061256,000069: 10,2440                                           COUNT    10/PHASE                              
061257,000070: 
061258,000071: 10,2440           00004        SETUPDSP           INHINT                                         
061259,000072: 10,2441           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
061260,000073: 10,2442           34371                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
061261,000074: 10,2443           05134                           TC       NOVAC                                 #        NEWMODEX
061262,000075: 10,2444     1011                                  EBANK=   MODREG                                
061263,000076: 10,2444           03441 60102                     2CADR    DSPMMJOB                              
061264,000077: 
061265,000078: 10,2446           52071                           DXCH     RUPTREG1                              
061266,000079: 10,2447           00003                           RELINT                                         
061267,000080: 10,2450           52006                           DXCH     Z                                     #  RETURN
061268,000081: 
061269,000082: 10,2451  40,3441               DSPMMJOB           EQUALS   DSPMMJB                               
061270,000083: 
061271,000084:    5372                                           BLOCK    02                                    

Page 1405

061273,000086:    4000                                           SETLOC   FFTAG1                                
061274,000087:    4000                                           BANK                                           
061275,000088: 

Page 1406

061277,000090:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
061278,000091:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
061279,000092:                                                                                                  #                TC      PHASCHNG
061280,000093:                                                                                                  #                OCT     XXXXX
061281,000094:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
061282,000095:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
061283,000096:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
061284,000097:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
061285,000098:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
061286,000099:                                                                                                  #                        LONGCALL TO BE RESTARTED.
061287,000100:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
061288,000101: 
061289,000102:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
061290,000103:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
061291,000104:                                                                                                  #  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,
061292,000105:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.  IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
061293,000106:                                                                                                  #  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
061294,000107:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
061295,000108:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
061296,000109:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
061297,000110: 
061298,000111:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
061299,000112:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
061300,000113: 
061301,000114:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
061302,000115:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
061303,000116:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
061304,000117:                                                                                                  #                                        LOCATION
061305,000118: 
061306,000119:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
061307,000120:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
061308,000121:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
061309,000122:                                                                                                  #                                        SHOULD BE A LONGCALL)
061310,000123: 
061311,000124:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
061312,000125:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
061313,000126:                                                                                                  #                                        LONGCALL TO BE RESTARTED
061314,000127: 
061315,000128:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
061316,000129:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
061317,000130:                                                                                                  #        TL0 1AD XXX CJW GGG
061318,000131:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
061319,000132:                                                                                                  #  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
061320,000133:                                                                                                  #  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 1407

061322,000135:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
061323,000136:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
061324,000137:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
061325,000138:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
061326,000139:                                                                                                  #  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
061327,000140:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
061328,000141:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
061329,000142:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
061330,000143:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
061331,000144:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
061332,000145:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
061333,000146:                                                                                                  #        AD+3                            ALSO GO TO AD+3
061334,000147: 
061335,000148:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO 
061336,000149:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
061337,000150:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
061338,000151:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
061339,000152:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
061340,000153:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
061341,000154:                                                                                                  #                                        LOCATION AD+5
061342,000155: 
061343,000156:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
061344,000157:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
061345,000158: 
061346,000159:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
061347,000160:                                                                                                  #  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
061348,000161:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
061349,000162:                                                                                                  #        TL1 DAP PPP PPP GGG
061350,000163:                                                                                                  #  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
061351,000164:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
061352,000165:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
061353,000166:                                                                                                  #  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
061354,000167:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
061355,000168:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
061356,000169:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
061357,000170:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
061358,000171:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
061359,000172:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
061360,000173:                                                                                                  #        AD+5                            GO TO AD+5
061361,000174: 
061362,000175:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
061363,000176:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
061364,000177:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
061365,000178:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1408

061367,000180:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
061368,000181: 
061369,000182:                                                                                                  #  SUMMARY OF BITS
061370,000183:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
061371,000184:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
061372,000185:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
061373,000186: 

Page 1409

061375,000188:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
061376,000189:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
061377,000190:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
061378,000191:                                                                                                  #                TC      2PHSCHNG
061379,000192:                                                                                                  #                OCT     XXXXX
061380,000193:                                                                                                  #                OCT     YYYYY
061381,000194:                                                                                                  #  WHERE OCT XXXXX MUST BE OF TYPE A AND OCT YYYYY MAY BE OF EITHER TYPE A OR TYPE B OR TYPE C.  THERE IS ONE
061382,000195:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
061383,000196:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
061384,000197:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
061385,000198:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
061386,000199:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
061387,000200:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
061388,000201:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
061389,000202: 
061390,000203:    5372                                           COUNT    02/PHASE                              
061391,000204: 
061392,000205:    5372           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
061393,000206:    5373           50002                           NDX      Q                                     
061394,000207:    5374           30000                           CA       0                                     
061395,000208:    5375           24002                           INCR     Q                                     
061396,000209:    5376           54072                           TS       TEMPP2                                
061397,000210: 
061398,000211:    5377           75023                           MASK     OCT7                                  
061399,000212:    5400           60000                           DOUBLE                                         
061400,000213:    5401           54071                           TS       TEMPG2                                
061401,000214: 
061402,000215:    5402           30072                           CA       TEMPP2                                
061403,000216:    5403           75072                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
061404,000217:    5404           00006                           EXTEND                                         
061405,000218:    5405           75004                           MP       BIT12                                 
061406,000219:    5406           56072                           XCH      TEMPP2                                
061407,000220: 
061408,000221:    5407           75001                           MASK     BIT15                                 
061409,000222:    5410           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
061410,000223: 
061411,000224:    5411           15415                           TCF      PHASCHNG   +3                         
061412,000225: 
061413,000226:    5412           00004        PHASCHNG           INHINT                                         
061414,000227:    5413           35017                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
061415,000228:    5414           54066                           TS       TEMPSW2                               
061416,000229: 
061417,000230:    5415           50002                           NDX      Q                                     
061418,000231:    5416           30000                           CA       0                                     
061419,000232:    5417           24002                           INCR     Q                                     
061420,000233:    5420           54065                           TS       TEMPSW                                

Page 1410

061422,000235:    5421           00006                           EXTEND                                         
061423,000236:    5422           35425                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
061424,000237:    5423           52006                           DTCB                                           
061425,000238: 
061426,000239:    5424  E3,1400                                  EBANK=   LST1                                  
061427,000240:    5424           02451 20063  ADRPCHN2           2CADR    PHSCHNG2                              
061428,000241: 
061429,000242:    5426           22073        ONEORTWO           LXCH     TEMPBBCN                              
061430,000243:    5427           22006                           LXCH     BBANK                                 
061431,000244:    5430           22073                           LXCH     TEMPBBCN                              
061432,000245: 
061433,000246:    5431           75066                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
061434,000247:    5432           10000                           CCS      A                                     
061435,000248:    5433           15474                           TCF      CHECKB                                #  IT IS OF TYPE :B:
061436,000249: 
061437,000250:    5434           30062                           CA       TEMPP                                 
061438,000251:    5435           75011                           MASK     BIT7                                  
061439,000252:    5436           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
061440,000253:    5437           15461                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
061441,000254: 
061442,000255:    5440           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
061443,000256:    5441           31052                           CA       PHSPRDT1   -2                         
061444,000257:    5442           54070                           TS       TEMPPR                                
061445,000258: 
061446,000259:    5443           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
061447,000260:    5444           75010                           MASK     BIT8                                  
061448,000261:    5445           10000                           CCS      A                                     
061449,000262:    5446           15465                           TCF      GETNEWNM                              
061450,000263: 
061451,000264:    5447           30002                           CA       Q                                     
061452,000265:    5450           54063                           TS       TEMPNM                                
061453,000266:    5451           30006                           CA       BB                                    
061454,000267:    5452           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
061455,000268:    5453           04007                           ROR      SUPERBNK                              
061456,000269:    5454           54064                           TS       TEMPBB                                
061457,000270: 
061458,000271:    5455           35460        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
061459,000272:    5456           22073                           LXCH     TEMPBBCN                              
061460,000273:    5457           52006                           DTCB                                           
061461,000274: 
061462,000275:    5460           02537        CON2ADR            GENADR   CON2                                  
061463,000276: 
061464,000277:    5461           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
061465,000278:    5462           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
061466,000279:    5463           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
061467,000280:    5464           15442                           TCF      CON1       -1                         
061468,000281: 
061469,000282:    5465           00006        GETNEWNM           EXTEND                                         

Page 1411

061471,000284:    5466           50002                           INDEX    Q                                     
061472,000285:    5467           30001                           DCA      0                                     
061473,000286:    5470           52064                           DXCH     TEMPNM                                
061474,000287:    5471           35016                           CA       TWO                                   
061475,000288:    5472           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
061476,000289: 
061477,000290:    5473           15455                           TCF      TOCON2                                
061478,000291: 
061479,000292:    5474     5066               OCT14000           EQUALS   PRIO14                                
061480,000293:    5474     0061               TEMPG              EQUALS   ITEMP1                                
061481,000294:    5474     0062               TEMPP              EQUALS   ITEMP2                                
061482,000295:    5474     0063               TEMPNM             EQUALS   ITEMP3                                
061483,000296:    5474     0064               TEMPBB             EQUALS   ITEMP4                                
061484,000297:    5474     0065               TEMPSW             EQUALS   ITEMP5                                
061485,000298:    5474     0066               TEMPSW2            EQUALS   ITEMP6                                
061486,000299:    5474     0070               TEMPPR             EQUALS   RUPTREG1                              
061487,000300:    5474     0071               TEMPG2             EQUALS   RUPTREG2                              
061488,000301:    5474     0072               TEMPP2             EQUALS   RUPTREG3                              
061489,000302: 
061490,000303:    5474     0073               TEMPBBCN           EQUALS   RUPTREG4                              
061491,000304:    5474  0000006               BB                 EQUALS   BBANK                                 
061492,000305: 
061493,000306: 14,3761                                           BANK     14                                    
061494,000307: 10,2000                                           SETLOC   PHASETAB                              
061495,000308: 10,2000                                           BANK                                           
061496,000309: 
061497,000310: 10,2451  E3,1436                                  EBANK=   PHSNAME1                              
061498,000311: 10,2451                                           COUNT    10/PHASE                              
061499,000312: 
061500,000313: 10,2451           22073        PHSCHNG2           LXCH     TEMPBBCN                              
061501,000314: 10,2452           30065                           CA       TEMPSW                                
061502,000315: 10,2453           75023                           MASK     OCT7                                  
061503,000316: 10,2454           60000                           DOUBLE                                         
061504,000317: 10,2455           54061                           TS       TEMPG                                 
061505,000318: 
061506,000319: 10,2456           30065                           CA       TEMPSW                                
061507,000320: 10,2457           75072                           MASK     OCT17770                              
061508,000321: 10,2460           00006                           EXTEND                                         
061509,000322: 10,2461           75004                           MP       BIT12                                 
061510,000323: 10,2462           54062                           TS       TEMPP                                 
061511,000324: 
061512,000325: 10,2463           30065                           CA       TEMPSW                                
061513,000326: 10,2464           74105                           MASK     OCT60000                              
061514,000327: 10,2465           56065                           XCH      TEMPSW                                
061515,000328: 10,2466           75066                           MASK     OCT14000                              
061516,000329: 10,2467           10000                           CCS      A                                     
061517,000330: 10,2470           15426                           TCF      ONEORTWO                              
061518,000331: 

Page 1412

061520,000333: 10,2471           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
061521,000334: 10,2472           50061                           NDX      TEMPG                                 
061522,000335: 10,2473           54751                           TS       PHASE1     -2                         
061523,000336: 
061524,000337: 10,2474           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
061525,000338: 10,2475           12511                           TCF      BELOW2                                #  IT:S A PHASCHNG
061526,000339: 
061527,000340: 10,2476           12477                           TCF      +1                                    #  IT:S A 2PHSCHNG
061528,000341: 10,2477           40072                           CS       TEMPP2                                
061529,000342: 10,2500           22072                           LXCH     TEMPP2                                
061530,000343: 10,2501           50071                           NDX      TEMPG2                                
061531,000344: 10,2502           52751                           DXCH     -PHASE1    -2                         
061532,000345: 
061533,000346: 10,2503           10066                           CCS      TEMPSW2                               
061534,000347: 10,2504           12505                           NOOP                                           #  CAN:T GET HERE
061535,000348: 10,2505           12511                           TCF      BELOW2                                
061536,000349: 
061537,000350: 10,2506           40025                           CS       TIME1                                 
061538,000351: 10,2507           50071                           NDX      TEMPG2                                
061539,000352: 10,2510           55051                           TS       TBASE1     -2                         
061540,000353: 
061541,000354: 10,2511           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
061542,000355: 10,2512           12525                           TCF      BELOW3                                #  SET LONGBASE ONLY
061543,000356: 10,2513           12530                           TCF      BELOW4                                #  SET NEITHER
061544,000357: 
061545,000358: 10,2514           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
061546,000359: 10,2515           50061                           NDX      TEMPG                                 
061547,000360: 10,2516           55051                           TS       TBASE1     -2                         
061548,000361: 
061549,000362: 10,2517           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
061550,000363: 10,2520           62523                           AD       BIT14COM                              
061551,000364: 10,2521           10000                           CCS      A                                     
061552,000365: 10,2522           12523                           NOOP                                           #  ***** CANT GET HERE *****
061553,000366: 10,2523           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
061554,000367: 10,2524           12530                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
061555,000368: 
061556,000369: 10,2525           00006        BELOW3             EXTEND                                         #  SET LONGBASE
061557,000370: 10,2526           30025                           DCA      TIME2                                 
061558,000371: 10,2527           53136                           DXCH     LONGBASE                              
061559,000372: 
061560,000373: 10,2530           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
061561,000374: 10,2531           50061                           NDX      TEMPG                                 
061562,000375: 10,2532           54750                           TS       -PHASE1    -2                         
061563,000376: 
061564,000377: 10,2533           30002                           CA       Q                                     
061565,000378: 10,2534           22073                           LXCH     TEMPBBCN                              
061566,000379: 10,2535           00003                           RELINT                                         
061567,000380: 10,2536           52006                           DTCB                                           
061568,000381: 10,2537           22073        CON2               LXCH     TEMPBBCN                              

Page 1413

061570,000383: 10,2540           30062                           CA       TEMPP                                 
061571,000384: 10,2541           50061                           NDX      TEMPG                                 
061572,000385: 10,2542           54751                           TS       PHASE1     -2                         
061573,000386: 
061574,000387: 10,2543           30070                           CA       TEMPPR                                
061575,000388: 10,2544           50061                           NDX      TEMPG                                 
061576,000389: 10,2545           55052                           TS       PHSPRDT1   -2                         
061577,000390: 
061578,000391: 10,2546           00006                           EXTEND                                         
061579,000392: 10,2547           30064                           DCA      TEMPNM                                
061580,000393: 10,2550           50061                           NDX      TEMPG                                 
061581,000394: 10,2551           53435                           DXCH     PHSNAME1   -2                         
061582,000395: 
061583,000396: 10,2552           12474                           TCF      BELOW1                                
061584,000397: 
061585,000398:    5474                                           BLOCK    02                                    
061586,000399:    4000                                           SETLOC   FFTAG1                                
061587,000400:    4000                                           BANK                                           
061588,000401: 
061589,000402:    5474                                           COUNT    02/PHASE                              
061590,000403: 
061591,000404:    5474           75004        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
061592,000405:    5475           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
061593,000406:    5476           15461                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
061594,000407: 
061595,000408:    5477           15440                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
061596,000409: 
061597,000410: 
061598,000411: 

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