Source Code

These source-code files are part of a reconstructed copy of Comanche 45/2 (AKA Manche45 revision 2), the final, flown mission release of the Apollo 10 Command Module (CM) Apollo Guidance Computer (AGC) software. Comanche 45/2 was preceded by Comanche 44 and Comanche 45. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 45/2, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 45 (itself previously accurately reconstructed). Comanche 45 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 45 and 45/2. The now-reconstructed Comanche 45/2 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 tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 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 44. Here's a guide to the Apollo documentation referenced in those annotations:
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.

059640,000002:                                                                                                  ## Copyright:   Public domain.
059641,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
059642,000004:                                                                                                  ## Purpose:     A section of Manche45 revision 2.
059643,000005:                                                                                                  ##              It is part of the reconstructed source code for the
059644,000006:                                                                                                  ##              final, flown release of the flight software for the Command
059645,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
059646,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
059647,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
059648,000010:                                                                                                  ##              exactly match those specified for Manche 45/2 in NASA drawing
059649,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
059650,000012:                                                                                                  ##              reconstruction is correct.
059651,000013:                                                                                                  ## Assembler:   yaYUL
059652,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
059653,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
059654,000016:                                                                                                  ## Mod history: 2020-12-24 MAS  Created from Comanche 45.
059655,000017: 

Page 1404

059657,000019:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
059658,000020: 
059659,000021: 43,3726                                           COUNT    02/PHASE                              
059660,000022:    5354                                           BLOCK    02                                    
059661,000023:    4000                                           SETLOC   FFTAG1                                
059662,000024:    4000                                           BANK                                           
059663,000025: 
059664,000026:    5354           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
059665,000027:    5355           30000                           CAF      0                                     
059666,000028:    5356           24002                           INCR     Q                                     
059667,000029: 
059668,000030:    5357           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
059669,000031:    5360           35363        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
059670,000032:    5361           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
059671,000033:    5362           14704                           TCF      BANKJUMP                              #  PUTS Q INTO A
059672,000034:    5363           20440                           CADR     SETUPDSP                              
059673,000035: 
059674,000036:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
059675,000037: 
059676,000038:    5364           50002        CHECKMM            INDEX    Q                                     
059677,000039:    5365           40000                           CS       0                                     
059678,000040:    5366           61011                           AD       MODREG                                
059679,000041:    5367           00006                           EXTEND                                         
059680,000042:    5370           16710                           BZF      Q+2                                   
059681,000043:    5371           16706                           TCF      Q+1                                   #  NO MATCH
059682,000044: 
059683,000045:    5372     6711               TCQ                =        Q+2        +1                         
059684,000046: 
059685,000047: 14,3762                                           BANK     14                                    
059686,000048: 10,2000                                           SETLOC   PHASETAB                              
059687,000049: 10,2000                                           BANK                                           
059688,000050: 
059689,000051: 10,2440                                           COUNT    10/PHASE                              
059690,000052: 
059691,000053: 10,2440           00004        SETUPDSP           INHINT                                         
059692,000054: 10,2441           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
059693,000055: 10,2442           34371                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
059694,000056: 10,2443           05134                           TC       NOVAC                                 #        NEWMODEX
059695,000057: 10,2444     1011                                  EBANK=   MODREG                                
059696,000058: 10,2444           03441 60102                     2CADR    DSPMMJOB                              
059697,000059: 
059698,000060: 10,2446           52071                           DXCH     RUPTREG1                              
059699,000061: 10,2447           00003                           RELINT                                         
059700,000062: 10,2450           52006                           DXCH     Z                                     #  RETURN
059701,000063: 
059702,000064: 10,2451  40,3441               DSPMMJOB           EQUALS   DSPMMJB                               
059703,000065: 
059704,000066:    5372                                           BLOCK    02                                    

Page 1405

059706,000068:    4000                                           SETLOC   FFTAG1                                
059707,000069:    4000                                           BANK                                           
059708,000070: 

Page 1406

059710,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
059711,000073:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
059712,000074:                                                                                                  #                TC      PHASCHNG
059713,000075:                                                                                                  #                OCT     XXXXX
059714,000076:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
059715,000077:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
059716,000078:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
059717,000079:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
059718,000080:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
059719,000081:                                                                                                  #                        LONGCALL TO BE RESTARTED.
059720,000082:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
059721,000083: 
059722,000084:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
059723,000085:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
059724,000086:                                                                                                  #  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,
059725,000087:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.  IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
059726,000088:                                                                                                  #  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
059727,000089:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
059728,000090:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
059729,000091:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
059730,000092: 
059731,000093:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
059732,000094:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
059733,000095: 
059734,000096:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
059735,000097:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
059736,000098:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
059737,000099:                                                                                                  #                                        LOCATION
059738,000100: 
059739,000101:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
059740,000102:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
059741,000103:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
059742,000104:                                                                                                  #                                        SHOULD BE A LONGCALL)
059743,000105: 
059744,000106:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
059745,000107:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
059746,000108:                                                                                                  #                                        LONGCALL TO BE RESTARTED
059747,000109: 
059748,000110:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
059749,000111:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
059750,000112:                                                                                                  #        TL0 1AD XXX CJW GGG
059751,000113:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
059752,000114:                                                                                                  #  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
059753,000115:                                                                                                  #  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

059755,000117:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
059756,000118:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
059757,000119:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
059758,000120:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
059759,000121:                                                                                                  #  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
059760,000122:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
059761,000123:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
059762,000124:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
059763,000125:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
059764,000126:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
059765,000127:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
059766,000128:                                                                                                  #        AD+3                            ALSO GO TO AD+3
059767,000129: 
059768,000130:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO 
059769,000131:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
059770,000132:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
059771,000133:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
059772,000134:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
059773,000135:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
059774,000136:                                                                                                  #                                        LOCATION AD+5
059775,000137: 
059776,000138:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
059777,000139:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
059778,000140: 
059779,000141:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
059780,000142:                                                                                                  #  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
059781,000143:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
059782,000144:                                                                                                  #        TL1 DAP PPP PPP GGG
059783,000145:                                                                                                  #  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
059784,000146:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
059785,000147:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
059786,000148:                                                                                                  #  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
059787,000149:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
059788,000150:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
059789,000151:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
059790,000152:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
059791,000153:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
059792,000154:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
059793,000155:                                                                                                  #        AD+5                            GO TO AD+5
059794,000156: 
059795,000157:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
059796,000158:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
059797,000159:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
059798,000160:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1408

059800,000162:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
059801,000163: 
059802,000164:                                                                                                  #  SUMMARY OF BITS
059803,000165:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
059804,000166:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
059805,000167:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
059806,000168: 

Page 1409

059808,000170:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
059809,000171:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
059810,000172:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
059811,000173:                                                                                                  #                TC      2PHSCHNG
059812,000174:                                                                                                  #                OCT     XXXXX
059813,000175:                                                                                                  #                OCT     YYYYY
059814,000176:                                                                                                  #  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
059815,000177:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
059816,000178:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
059817,000179:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
059818,000180:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
059819,000181:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
059820,000182:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
059821,000183:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
059822,000184: 
059823,000185:    5372                                           COUNT    02/PHASE                              
059824,000186: 
059825,000187:    5372           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
059826,000188:    5373           50002                           NDX      Q                                     
059827,000189:    5374           30000                           CA       0                                     
059828,000190:    5375           24002                           INCR     Q                                     
059829,000191:    5376           54072                           TS       TEMPP2                                
059830,000192: 
059831,000193:    5377           75023                           MASK     OCT7                                  
059832,000194:    5400           60000                           DOUBLE                                         
059833,000195:    5401           54071                           TS       TEMPG2                                
059834,000196: 
059835,000197:    5402           30072                           CA       TEMPP2                                
059836,000198:    5403           75072                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
059837,000199:    5404           00006                           EXTEND                                         
059838,000200:    5405           75004                           MP       BIT12                                 
059839,000201:    5406           56072                           XCH      TEMPP2                                
059840,000202: 
059841,000203:    5407           75001                           MASK     BIT15                                 
059842,000204:    5410           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
059843,000205: 
059844,000206:    5411           15415                           TCF      PHASCHNG   +3                         
059845,000207: 
059846,000208:    5412           00004        PHASCHNG           INHINT                                         
059847,000209:    5413           35017                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
059848,000210:    5414           54066                           TS       TEMPSW2                               
059849,000211: 
059850,000212:    5415           50002                           NDX      Q                                     
059851,000213:    5416           30000                           CA       0                                     
059852,000214:    5417           24002                           INCR     Q                                     
059853,000215:    5420           54065                           TS       TEMPSW                                

Page 1410

059855,000217:    5421           00006                           EXTEND                                         
059856,000218:    5422           35425                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
059857,000219:    5423           52006                           DTCB                                           
059858,000220: 
059859,000221:    5424  E3,1400                                  EBANK=   LST1                                  
059860,000222:    5424           02451 20063  ADRPCHN2           2CADR    PHSCHNG2                              
059861,000223: 
059862,000224:    5426           22073        ONEORTWO           LXCH     TEMPBBCN                              
059863,000225:    5427           22006                           LXCH     BBANK                                 
059864,000226:    5430           22073                           LXCH     TEMPBBCN                              
059865,000227: 
059866,000228:    5431           75066                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
059867,000229:    5432           10000                           CCS      A                                     
059868,000230:    5433           15474                           TCF      CHECKB                                #  IT IS OF TYPE :B:
059869,000231: 
059870,000232:    5434           30062                           CA       TEMPP                                 
059871,000233:    5435           75011                           MASK     BIT7                                  
059872,000234:    5436           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
059873,000235:    5437           15461                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
059874,000236: 
059875,000237:    5440           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
059876,000238:    5441           31052                           CA       PHSPRDT1   -2                         
059877,000239:    5442           54070                           TS       TEMPPR                                
059878,000240: 
059879,000241:    5443           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
059880,000242:    5444           75010                           MASK     BIT8                                  
059881,000243:    5445           10000                           CCS      A                                     
059882,000244:    5446           15465                           TCF      GETNEWNM                              
059883,000245: 
059884,000246:    5447           30002                           CA       Q                                     
059885,000247:    5450           54063                           TS       TEMPNM                                
059886,000248:    5451           30006                           CA       BB                                    
059887,000249:    5452           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
059888,000250:    5453           04007                           ROR      SUPERBNK                              
059889,000251:    5454           54064                           TS       TEMPBB                                
059890,000252: 
059891,000253:    5455           35460        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
059892,000254:    5456           22073                           LXCH     TEMPBBCN                              
059893,000255:    5457           52006                           DTCB                                           
059894,000256: 
059895,000257:    5460           02537        CON2ADR            GENADR   CON2                                  
059896,000258: 
059897,000259:    5461           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
059898,000260:    5462           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
059899,000261:    5463           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
059900,000262:    5464           15442                           TCF      CON1       -1                         
059901,000263: 
059902,000264:    5465           00006        GETNEWNM           EXTEND                                         

Page 1411

059904,000266:    5466           50002                           INDEX    Q                                     
059905,000267:    5467           30001                           DCA      0                                     
059906,000268:    5470           52064                           DXCH     TEMPNM                                
059907,000269:    5471           35016                           CA       TWO                                   
059908,000270:    5472           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
059909,000271: 
059910,000272:    5473           15455                           TCF      TOCON2                                
059911,000273: 
059912,000274:    5474     5066               OCT14000           EQUALS   PRIO14                                
059913,000275:    5474     0061               TEMPG              EQUALS   ITEMP1                                
059914,000276:    5474     0062               TEMPP              EQUALS   ITEMP2                                
059915,000277:    5474     0063               TEMPNM             EQUALS   ITEMP3                                
059916,000278:    5474     0064               TEMPBB             EQUALS   ITEMP4                                
059917,000279:    5474     0065               TEMPSW             EQUALS   ITEMP5                                
059918,000280:    5474     0066               TEMPSW2            EQUALS   ITEMP6                                
059919,000281:    5474     0070               TEMPPR             EQUALS   RUPTREG1                              
059920,000282:    5474     0071               TEMPG2             EQUALS   RUPTREG2                              
059921,000283:    5474     0072               TEMPP2             EQUALS   RUPTREG3                              
059922,000284: 
059923,000285:    5474     0073               TEMPBBCN           EQUALS   RUPTREG4                              
059924,000286:    5474  0000006               BB                 EQUALS   BBANK                                 
059925,000287: 
059926,000288: 14,3762                                           BANK     14                                    
059927,000289: 10,2000                                           SETLOC   PHASETAB                              
059928,000290: 10,2000                                           BANK                                           
059929,000291: 
059930,000292: 10,2451  E3,1436                                  EBANK=   PHSNAME1                              
059931,000293: 10,2451                                           COUNT    10/PHASE                              
059932,000294: 
059933,000295: 10,2451           22073        PHSCHNG2           LXCH     TEMPBBCN                              
059934,000296: 10,2452           30065                           CA       TEMPSW                                
059935,000297: 10,2453           75023                           MASK     OCT7                                  
059936,000298: 10,2454           60000                           DOUBLE                                         
059937,000299: 10,2455           54061                           TS       TEMPG                                 
059938,000300: 
059939,000301: 10,2456           30065                           CA       TEMPSW                                
059940,000302: 10,2457           75072                           MASK     OCT17770                              
059941,000303: 10,2460           00006                           EXTEND                                         
059942,000304: 10,2461           75004                           MP       BIT12                                 
059943,000305: 10,2462           54062                           TS       TEMPP                                 
059944,000306: 
059945,000307: 10,2463           30065                           CA       TEMPSW                                
059946,000308: 10,2464           74105                           MASK     OCT60000                              
059947,000309: 10,2465           56065                           XCH      TEMPSW                                
059948,000310: 10,2466           75066                           MASK     OCT14000                              
059949,000311: 10,2467           10000                           CCS      A                                     
059950,000312: 10,2470           15426                           TCF      ONEORTWO                              
059951,000313: 

Page 1412

059953,000315: 10,2471           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
059954,000316: 10,2472           50061                           NDX      TEMPG                                 
059955,000317: 10,2473           54751                           TS       PHASE1     -2                         
059956,000318: 
059957,000319: 10,2474           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
059958,000320: 10,2475           12511                           TCF      BELOW2                                #  IT:S A PHASCHNG
059959,000321: 
059960,000322: 10,2476           12477                           TCF      +1                                    #  IT:S A 2PHSCHNG
059961,000323: 10,2477           40072                           CS       TEMPP2                                
059962,000324: 10,2500           22072                           LXCH     TEMPP2                                
059963,000325: 10,2501           50071                           NDX      TEMPG2                                
059964,000326: 10,2502           52751                           DXCH     -PHASE1    -2                         
059965,000327: 
059966,000328: 10,2503           10066                           CCS      TEMPSW2                               
059967,000329: 10,2504           12505                           NOOP                                           #  CAN:T GET HERE
059968,000330: 10,2505           12511                           TCF      BELOW2                                
059969,000331: 
059970,000332: 10,2506           40025                           CS       TIME1                                 
059971,000333: 10,2507           50071                           NDX      TEMPG2                                
059972,000334: 10,2510           55051                           TS       TBASE1     -2                         
059973,000335: 
059974,000336: 10,2511           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
059975,000337: 10,2512           12525                           TCF      BELOW3                                #  SET LONGBASE ONLY
059976,000338: 10,2513           12530                           TCF      BELOW4                                #  SET NEITHER
059977,000339: 
059978,000340: 10,2514           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
059979,000341: 10,2515           50061                           NDX      TEMPG                                 
059980,000342: 10,2516           55051                           TS       TBASE1     -2                         
059981,000343: 
059982,000344: 10,2517           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
059983,000345: 10,2520           62523                           AD       BIT14COM                              
059984,000346: 10,2521           10000                           CCS      A                                     
059985,000347: 10,2522           12523                           NOOP                                           #  ***** CANT GET HERE *****
059986,000348: 10,2523           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
059987,000349: 10,2524           12530                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
059988,000350: 
059989,000351: 10,2525           00006        BELOW3             EXTEND                                         #  SET LONGBASE
059990,000352: 10,2526           30025                           DCA      TIME2                                 
059991,000353: 10,2527           53136                           DXCH     LONGBASE                              
059992,000354: 
059993,000355: 10,2530           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
059994,000356: 10,2531           50061                           NDX      TEMPG                                 
059995,000357: 10,2532           54750                           TS       -PHASE1    -2                         
059996,000358: 
059997,000359: 10,2533           30002                           CA       Q                                     
059998,000360: 10,2534           22073                           LXCH     TEMPBBCN                              
059999,000361: 10,2535           00003                           RELINT                                         
060000,000362: 10,2536           52006                           DTCB                                           
060001,000363: 10,2537           22073        CON2               LXCH     TEMPBBCN                              

Page 1413

060003,000365: 10,2540           30062                           CA       TEMPP                                 
060004,000366: 10,2541           50061                           NDX      TEMPG                                 
060005,000367: 10,2542           54751                           TS       PHASE1     -2                         
060006,000368: 
060007,000369: 10,2543           30070                           CA       TEMPPR                                
060008,000370: 10,2544           50061                           NDX      TEMPG                                 
060009,000371: 10,2545           55052                           TS       PHSPRDT1   -2                         
060010,000372: 
060011,000373: 10,2546           00006                           EXTEND                                         
060012,000374: 10,2547           30064                           DCA      TEMPNM                                
060013,000375: 10,2550           50061                           NDX      TEMPG                                 
060014,000376: 10,2551           53435                           DXCH     PHSNAME1   -2                         
060015,000377: 
060016,000378: 10,2552           12474                           TCF      BELOW1                                
060017,000379: 
060018,000380:    5474                                           BLOCK    02                                    
060019,000381:    4000                                           SETLOC   FFTAG1                                
060020,000382:    4000                                           BANK                                           
060021,000383: 
060022,000384:    5474                                           COUNT    02/PHASE                              
060023,000385: 
060024,000386:    5474           75004        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060025,000387:    5475           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060026,000388:    5476           15461                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060027,000389: 
060028,000390:    5477           15440                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
060029,000391: 
060030,000392: 
060031,000393: 

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