Source Code

These source-code files are part of a reconstructed copy of Comanche 51, the initial release (though not the final mission release) of the Apollo 11 Command Module (CM) Apollo Guidance Computer (AGC) software. The flown, final release was Comanche 55. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 51, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 55, whose original source code is available. Comanche 55 source code was then modified by undoing changes known to have been made between revisions 51 and 55. The most-significant steps involved reverting changes related to the R-2 lunar potential model, the details of which were known from the previous, separate, independent reconstruction of the Apollo 10 Lunar Module software Luminary 69/2. The now-reconstructed Comanche 51 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code match those on the Comanche 55 or Luminary 69 printouts, although the source code would likely have different page numbers in a contemporary Comanche 51 listing.

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 55. Here's a guide to some of the Apollo documentation relevant to those annotations:
Among documentation not actually referenced in the annotations, there is a short writeup about the reconstruction process in our software repository that may be helpful in understanding it from a different perspective. There's also a handy table that lists what the number of memory-words should be for each routine in Comanche 51, which could make a nice double-check; however, we've not performed that double-check ourselves.

Comments expected to have been present in the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC Project's GitHub repository.

059756,000002:                                                                                                  ## Copyright:   Public domain.
059757,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
059758,000004:                                                                                                  ## Purpose:     A section of Comanche revision 051.
059759,000005:                                                                                                  ##              It is part of the reconstructed source code for the
059760,000006:                                                                                                  ##              original release of the flight software for the Command
059761,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 11.
059762,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
059763,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
059764,000010:                                                                                                  ##              exactly match those specified for Comanche 51 in NASA drawing
059765,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
059766,000012:                                                                                                  ##              reconstruction is correct.
059767,000013:                                                                                                  ## Reference:   pp. 1404-1413
059768,000014:                                                                                                  ## Assembler:   yaYUL
059769,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
059770,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
059771,000017:                                                                                                  ## Mod history: 2019-07-30 MAS  Created from Comanche 55.
059772,000018: 

Page 1404

059774,000020:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
059775,000021: 
059776,000022: 43,3726                                           COUNT    02/PHASE                              
059777,000023:    5354                                           BLOCK    02                                    
059778,000024:    4000                                           SETLOC   FFTAG1                                
059779,000025:    4000                                           BANK                                           
059780,000026: 
059781,000027:    5354           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
059782,000028:    5355           30000                           CAF      0                                     
059783,000029:    5356           24002                           INCR     Q                                     
059784,000030: 
059785,000031:    5357           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
059786,000032:    5360           35363        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
059787,000033:    5361           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
059788,000034:    5362           14704                           TCF      BANKJUMP                              #  PUTS Q INTO A
059789,000035:    5363           20440                           CADR     SETUPDSP                              
059790,000036: 
059791,000037:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
059792,000038: 
059793,000039:    5364           50002        CHECKMM            INDEX    Q                                     
059794,000040:    5365           40000                           CS       0                                     
059795,000041:    5366           61011                           AD       MODREG                                
059796,000042:    5367           00006                           EXTEND                                         
059797,000043:    5370           16710                           BZF      Q+2                                   
059798,000044:    5371           16706                           TCF      Q+1                                   #  NO MATCH
059799,000045: 
059800,000046:    5372     6711               TCQ                =        Q+2        +1                         
059801,000047: 
059802,000048: 14,3761                                           BANK     14                                    
059803,000049: 10,2000                                           SETLOC   PHASETAB                              
059804,000050: 10,2000                                           BANK                                           
059805,000051: 
059806,000052: 10,2440                                           COUNT    10/PHASE                              
059807,000053: 
059808,000054: 10,2440           00004        SETUPDSP           INHINT                                         
059809,000055: 10,2441           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
059810,000056: 10,2442           34371                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
059811,000057: 10,2443           05134                           TC       NOVAC                                 #        NEWMODEX
059812,000058: 10,2444     1011                                  EBANK=   MODREG                                
059813,000059: 10,2444           03441 60102                     2CADR    DSPMMJOB                              
059814,000060: 
059815,000061: 10,2446           52071                           DXCH     RUPTREG1                              
059816,000062: 10,2447           00003                           RELINT                                         
059817,000063: 10,2450           52006                           DXCH     Z                                     #  RETURN
059818,000064: 
059819,000065: 10,2451  40,3441               DSPMMJOB           EQUALS   DSPMMJB                               
059820,000066: 
059821,000067:    5372                                           BLOCK    02                                    

Page 1405

059823,000069:    4000                                           SETLOC   FFTAG1                                
059824,000070:    4000                                           BANK                                           
059825,000071: 

Page 1406

059827,000073:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
059828,000074:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
059829,000075:                                                                                                  #                TC      PHASCHNG
059830,000076:                                                                                                  #                OCT     XXXXX
059831,000077:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
059832,000078:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
059833,000079:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
059834,000080:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
059835,000081:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
059836,000082:                                                                                                  #                        LONGCALL TO BE RESTARTED.
059837,000083:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
059838,000084: 
059839,000085:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
059840,000086:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
059841,000087:                                                                                                  #  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,
059842,000088:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.  IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
059843,000089:                                                                                                  #  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
059844,000090:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
059845,000091:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
059846,000092:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
059847,000093: 
059848,000094:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
059849,000095:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
059850,000096: 
059851,000097:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
059852,000098:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
059853,000099:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
059854,000100:                                                                                                  #                                        LOCATION
059855,000101: 
059856,000102:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
059857,000103:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
059858,000104:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
059859,000105:                                                                                                  #                                        SHOULD BE A LONGCALL)
059860,000106: 
059861,000107:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
059862,000108:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
059863,000109:                                                                                                  #                                        LONGCALL TO BE RESTARTED
059864,000110: 
059865,000111:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
059866,000112:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
059867,000113:                                                                                                  #        TL0 1AD XXX CJW GGG
059868,000114:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
059869,000115:                                                                                                  #  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
059870,000116:                                                                                                  #  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

059872,000118:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
059873,000119:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
059874,000120:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
059875,000121:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
059876,000122:                                                                                                  #  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
059877,000123:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
059878,000124:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
059879,000125:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
059880,000126:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
059881,000127:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
059882,000128:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
059883,000129:                                                                                                  #        AD+3                            ALSO GO TO AD+3
059884,000130: 
059885,000131:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO 
059886,000132:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
059887,000133:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
059888,000134:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
059889,000135:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
059890,000136:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
059891,000137:                                                                                                  #                                        LOCATION AD+5
059892,000138: 
059893,000139:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
059894,000140:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
059895,000141: 
059896,000142:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
059897,000143:                                                                                                  #  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
059898,000144:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
059899,000145:                                                                                                  #        TL1 DAP PPP PPP GGG
059900,000146:                                                                                                  #  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
059901,000147:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
059902,000148:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
059903,000149:                                                                                                  #  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
059904,000150:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
059905,000151:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
059906,000152:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
059907,000153:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
059908,000154:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
059909,000155:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
059910,000156:                                                                                                  #        AD+5                            GO TO AD+5
059911,000157: 
059912,000158:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
059913,000159:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
059914,000160:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
059915,000161:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1408

059917,000163:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
059918,000164: 
059919,000165:                                                                                                  #  SUMMARY OF BITS
059920,000166:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
059921,000167:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
059922,000168:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
059923,000169: 

Page 1409

059925,000171:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
059926,000172:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
059927,000173:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
059928,000174:                                                                                                  #                TC      2PHSCHNG
059929,000175:                                                                                                  #                OCT     XXXXX
059930,000176:                                                                                                  #                OCT     YYYYY
059931,000177:                                                                                                  #  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
059932,000178:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
059933,000179:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
059934,000180:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
059935,000181:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
059936,000182:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
059937,000183:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
059938,000184:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
059939,000185: 
059940,000186:    5372                                           COUNT    02/PHASE                              
059941,000187: 
059942,000188:    5372           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
059943,000189:    5373           50002                           NDX      Q                                     
059944,000190:    5374           30000                           CA       0                                     
059945,000191:    5375           24002                           INCR     Q                                     
059946,000192:    5376           54072                           TS       TEMPP2                                
059947,000193: 
059948,000194:    5377           75023                           MASK     OCT7                                  
059949,000195:    5400           60000                           DOUBLE                                         
059950,000196:    5401           54071                           TS       TEMPG2                                
059951,000197: 
059952,000198:    5402           30072                           CA       TEMPP2                                
059953,000199:    5403           75072                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
059954,000200:    5404           00006                           EXTEND                                         
059955,000201:    5405           75004                           MP       BIT12                                 
059956,000202:    5406           56072                           XCH      TEMPP2                                
059957,000203: 
059958,000204:    5407           75001                           MASK     BIT15                                 
059959,000205:    5410           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
059960,000206: 
059961,000207:    5411           15415                           TCF      PHASCHNG   +3                         
059962,000208: 
059963,000209:    5412           00004        PHASCHNG           INHINT                                         
059964,000210:    5413           35017                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
059965,000211:    5414           54066                           TS       TEMPSW2                               
059966,000212: 
059967,000213:    5415           50002                           NDX      Q                                     
059968,000214:    5416           30000                           CA       0                                     
059969,000215:    5417           24002                           INCR     Q                                     
059970,000216:    5420           54065                           TS       TEMPSW                                

Page 1410

059972,000218:    5421           00006                           EXTEND                                         
059973,000219:    5422           35425                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
059974,000220:    5423           52006                           DTCB                                           
059975,000221: 
059976,000222:    5424  E3,1400                                  EBANK=   LST1                                  
059977,000223:    5424           02451 20063  ADRPCHN2           2CADR    PHSCHNG2                              
059978,000224: 
059979,000225:    5426           22073        ONEORTWO           LXCH     TEMPBBCN                              
059980,000226:    5427           22006                           LXCH     BBANK                                 
059981,000227:    5430           22073                           LXCH     TEMPBBCN                              
059982,000228: 
059983,000229:    5431           75066                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
059984,000230:    5432           10000                           CCS      A                                     
059985,000231:    5433           15474                           TCF      CHECKB                                #  IT IS OF TYPE :B:
059986,000232: 
059987,000233:    5434           30062                           CA       TEMPP                                 
059988,000234:    5435           75011                           MASK     BIT7                                  
059989,000235:    5436           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
059990,000236:    5437           15461                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
059991,000237: 
059992,000238:    5440           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
059993,000239:    5441           31052                           CA       PHSPRDT1   -2                         
059994,000240:    5442           54070                           TS       TEMPPR                                
059995,000241: 
059996,000242:    5443           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
059997,000243:    5444           75010                           MASK     BIT8                                  
059998,000244:    5445           10000                           CCS      A                                     
059999,000245:    5446           15465                           TCF      GETNEWNM                              
060000,000246: 
060001,000247:    5447           30002                           CA       Q                                     
060002,000248:    5450           54063                           TS       TEMPNM                                
060003,000249:    5451           30006                           CA       BB                                    
060004,000250:    5452           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
060005,000251:    5453           04007                           ROR      SUPERBNK                              
060006,000252:    5454           54064                           TS       TEMPBB                                
060007,000253: 
060008,000254:    5455           35460        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
060009,000255:    5456           22073                           LXCH     TEMPBBCN                              
060010,000256:    5457           52006                           DTCB                                           
060011,000257: 
060012,000258:    5460           02537        CON2ADR            GENADR   CON2                                  
060013,000259: 
060014,000260:    5461           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
060015,000261:    5462           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
060016,000262:    5463           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
060017,000263:    5464           15442                           TCF      CON1       -1                         
060018,000264: 
060019,000265:    5465           00006        GETNEWNM           EXTEND                                         

Page 1411

060021,000267:    5466           50002                           INDEX    Q                                     
060022,000268:    5467           30001                           DCA      0                                     
060023,000269:    5470           52064                           DXCH     TEMPNM                                
060024,000270:    5471           35016                           CA       TWO                                   
060025,000271:    5472           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
060026,000272: 
060027,000273:    5473           15455                           TCF      TOCON2                                
060028,000274: 
060029,000275:    5474     5066               OCT14000           EQUALS   PRIO14                                
060030,000276:    5474     0061               TEMPG              EQUALS   ITEMP1                                
060031,000277:    5474     0062               TEMPP              EQUALS   ITEMP2                                
060032,000278:    5474     0063               TEMPNM             EQUALS   ITEMP3                                
060033,000279:    5474     0064               TEMPBB             EQUALS   ITEMP4                                
060034,000280:    5474     0065               TEMPSW             EQUALS   ITEMP5                                
060035,000281:    5474     0066               TEMPSW2            EQUALS   ITEMP6                                
060036,000282:    5474     0070               TEMPPR             EQUALS   RUPTREG1                              
060037,000283:    5474     0071               TEMPG2             EQUALS   RUPTREG2                              
060038,000284:    5474     0072               TEMPP2             EQUALS   RUPTREG3                              
060039,000285: 
060040,000286:    5474     0073               TEMPBBCN           EQUALS   RUPTREG4                              
060041,000287:    5474  0000006               BB                 EQUALS   BBANK                                 
060042,000288: 
060043,000289: 14,3761                                           BANK     14                                    
060044,000290: 10,2000                                           SETLOC   PHASETAB                              
060045,000291: 10,2000                                           BANK                                           
060046,000292: 
060047,000293: 10,2451  E3,1436                                  EBANK=   PHSNAME1                              
060048,000294: 10,2451                                           COUNT    10/PHASE                              
060049,000295: 
060050,000296: 10,2451           22073        PHSCHNG2           LXCH     TEMPBBCN                              
060051,000297: 10,2452           30065                           CA       TEMPSW                                
060052,000298: 10,2453           75023                           MASK     OCT7                                  
060053,000299: 10,2454           60000                           DOUBLE                                         
060054,000300: 10,2455           54061                           TS       TEMPG                                 
060055,000301: 
060056,000302: 10,2456           30065                           CA       TEMPSW                                
060057,000303: 10,2457           75072                           MASK     OCT17770                              
060058,000304: 10,2460           00006                           EXTEND                                         
060059,000305: 10,2461           75004                           MP       BIT12                                 
060060,000306: 10,2462           54062                           TS       TEMPP                                 
060061,000307: 
060062,000308: 10,2463           30065                           CA       TEMPSW                                
060063,000309: 10,2464           74105                           MASK     OCT60000                              
060064,000310: 10,2465           56065                           XCH      TEMPSW                                
060065,000311: 10,2466           75066                           MASK     OCT14000                              
060066,000312: 10,2467           10000                           CCS      A                                     
060067,000313: 10,2470           15426                           TCF      ONEORTWO                              
060068,000314: 

Page 1412

060070,000316: 10,2471           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
060071,000317: 10,2472           50061                           NDX      TEMPG                                 
060072,000318: 10,2473           54751                           TS       PHASE1     -2                         
060073,000319: 
060074,000320: 10,2474           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
060075,000321: 10,2475           12511                           TCF      BELOW2                                #  IT:S A PHASCHNG
060076,000322: 
060077,000323: 10,2476           12477                           TCF      +1                                    #  IT:S A 2PHSCHNG
060078,000324: 10,2477           40072                           CS       TEMPP2                                
060079,000325: 10,2500           22072                           LXCH     TEMPP2                                
060080,000326: 10,2501           50071                           NDX      TEMPG2                                
060081,000327: 10,2502           52751                           DXCH     -PHASE1    -2                         
060082,000328: 
060083,000329: 10,2503           10066                           CCS      TEMPSW2                               
060084,000330: 10,2504           12505                           NOOP                                           #  CAN:T GET HERE
060085,000331: 10,2505           12511                           TCF      BELOW2                                
060086,000332: 
060087,000333: 10,2506           40025                           CS       TIME1                                 
060088,000334: 10,2507           50071                           NDX      TEMPG2                                
060089,000335: 10,2510           55051                           TS       TBASE1     -2                         
060090,000336: 
060091,000337: 10,2511           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
060092,000338: 10,2512           12525                           TCF      BELOW3                                #  SET LONGBASE ONLY
060093,000339: 10,2513           12530                           TCF      BELOW4                                #  SET NEITHER
060094,000340: 
060095,000341: 10,2514           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
060096,000342: 10,2515           50061                           NDX      TEMPG                                 
060097,000343: 10,2516           55051                           TS       TBASE1     -2                         
060098,000344: 
060099,000345: 10,2517           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
060100,000346: 10,2520           62523                           AD       BIT14COM                              
060101,000347: 10,2521           10000                           CCS      A                                     
060102,000348: 10,2522           12523                           NOOP                                           #  ***** CANT GET HERE *****
060103,000349: 10,2523           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
060104,000350: 10,2524           12530                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
060105,000351: 
060106,000352: 10,2525           00006        BELOW3             EXTEND                                         #  SET LONGBASE
060107,000353: 10,2526           30025                           DCA      TIME2                                 
060108,000354: 10,2527           53136                           DXCH     LONGBASE                              
060109,000355: 
060110,000356: 10,2530           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
060111,000357: 10,2531           50061                           NDX      TEMPG                                 
060112,000358: 10,2532           54750                           TS       -PHASE1    -2                         
060113,000359: 
060114,000360: 10,2533           30002                           CA       Q                                     
060115,000361: 10,2534           22073                           LXCH     TEMPBBCN                              
060116,000362: 10,2535           00003                           RELINT                                         
060117,000363: 10,2536           52006                           DTCB                                           
060118,000364: 10,2537           22073        CON2               LXCH     TEMPBBCN                              

Page 1413

060120,000366: 10,2540           30062                           CA       TEMPP                                 
060121,000367: 10,2541           50061                           NDX      TEMPG                                 
060122,000368: 10,2542           54751                           TS       PHASE1     -2                         
060123,000369: 
060124,000370: 10,2543           30070                           CA       TEMPPR                                
060125,000371: 10,2544           50061                           NDX      TEMPG                                 
060126,000372: 10,2545           55052                           TS       PHSPRDT1   -2                         
060127,000373: 
060128,000374: 10,2546           00006                           EXTEND                                         
060129,000375: 10,2547           30064                           DCA      TEMPNM                                
060130,000376: 10,2550           50061                           NDX      TEMPG                                 
060131,000377: 10,2551           53435                           DXCH     PHSNAME1   -2                         
060132,000378: 
060133,000379: 10,2552           12474                           TCF      BELOW1                                
060134,000380: 
060135,000381:    5474                                           BLOCK    02                                    
060136,000382:    4000                                           SETLOC   FFTAG1                                
060137,000383:    4000                                           BANK                                           
060138,000384: 
060139,000385:    5474                                           COUNT    02/PHASE                              
060140,000386: 
060141,000387:    5474           75004        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060142,000388:    5475           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060143,000389:    5476           15461                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060144,000390: 
060145,000391:    5477           15440                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
060146,000392: 
060147,000393: 
060148,000394: 

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