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.

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

Page 1404

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

Page 1405

061290,000086:    4000                                           SETLOC   FFTAG1                                
061291,000087:    4000                                           BANK                                           
061292,000088: 

Page 1406

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

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

Page 1408

061384,000180:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
061385,000181: 
061386,000182:                                                                                                  #  SUMMARY OF BITS
061387,000183:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
061388,000184:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
061389,000185:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
061390,000186: 

Page 1409

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

Page 1410

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

Page 1411

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

Page 1412

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

Page 1413

061587,000383: 10,2540           30062                           CA       TEMPP                                 
061588,000384: 10,2541           50061                           NDX      TEMPG                                 
061589,000385: 10,2542           54751                           TS       PHASE1     -2                         
061590,000386: 
061591,000387: 10,2543           30070                           CA       TEMPPR                                
061592,000388: 10,2544           50061                           NDX      TEMPG                                 
061593,000389: 10,2545           55052                           TS       PHSPRDT1   -2                         
061594,000390: 
061595,000391: 10,2546           00006                           EXTEND                                         
061596,000392: 10,2547           30064                           DCA      TEMPNM                                
061597,000393: 10,2550           50061                           NDX      TEMPG                                 
061598,000394: 10,2551           53435                           DXCH     PHSNAME1   -2                         
061599,000395: 
061600,000396: 10,2552           12474                           TCF      BELOW1                                
061601,000397: 
061602,000398:    5474                                           BLOCK    02                                    
061603,000399:    4000                                           SETLOC   FFTAG1                                
061604,000400:    4000                                           BANK                                           
061605,000401: 
061606,000402:    5474                                           COUNT    02/PHASE                              
061607,000403: 
061608,000404:    5474           75004        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
061609,000405:    5475           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
061610,000406:    5476           15461                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
061611,000407: 
061612,000408:    5477           15440                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
061613,000409: 
061614,000410: 
061615,000411: 

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