Source Code

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

The starting point was the source code of Comanche 44 (itself previously accurately reconstructed). Comanche 44 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 44 and 45. The now-reconstructed Comanche 45 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:
There is also a detailed commentary about the reconstruction process.

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.

059702,000002:                                                                                                  ## Copyright:   Public domain.
059703,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
059704,000004:                                                                                                  ## Purpose:     A section of Comanche revision 045.
059705,000005:                                                                                                  ##              It is part of the reconstructed source code for the
059706,000006:                                                                                                  ##              second release of the flight software for the Command
059707,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
059708,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
059709,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
059710,000010:                                                                                                  ##              exactly match those specified for Comanche 45 in NASA drawing
059711,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
059712,000012:                                                                                                  ##              reconstruction is correct.
059713,000013:                                                                                                  ## Assembler:   yaYUL
059714,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
059715,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
059716,000016:                                                                                                  ## Mod history: 2020-12-06 MAS  Created from Comanche 44.
059717,000017: 

Page 1404

059719,000019:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
059720,000020: 
059721,000021: 43,3726                                           COUNT    02/PHASE                              
059722,000022:    5354                                           BLOCK    02                                    
059723,000023:    4000                                           SETLOC   FFTAG1                                
059724,000024:    4000                                           BANK                                           
059725,000025: 
059726,000026:    5354           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
059727,000027:    5355           30000                           CAF      0                                     
059728,000028:    5356           24002                           INCR     Q                                     
059729,000029: 
059730,000030:    5357           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
059731,000031:    5360           35363        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
059732,000032:    5361           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
059733,000033:    5362           14704                           TCF      BANKJUMP                              #  PUTS Q INTO A
059734,000034:    5363           20440                           CADR     SETUPDSP                              
059735,000035: 
059736,000036:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
059737,000037: 
059738,000038:    5364           50002        CHECKMM            INDEX    Q                                     
059739,000039:    5365           40000                           CS       0                                     
059740,000040:    5366           61011                           AD       MODREG                                
059741,000041:    5367           00006                           EXTEND                                         
059742,000042:    5370           16710                           BZF      Q+2                                   
059743,000043:    5371           16706                           TCF      Q+1                                   #  NO MATCH
059744,000044: 
059745,000045:    5372     6711               TCQ                =        Q+2        +1                         
059746,000046: 
059747,000047: 14,3762                                           BANK     14                                    
059748,000048: 10,2000                                           SETLOC   PHASETAB                              
059749,000049: 10,2000                                           BANK                                           
059750,000050: 
059751,000051: 10,2440                                           COUNT    10/PHASE                              
059752,000052: 
059753,000053: 10,2440           00004        SETUPDSP           INHINT                                         
059754,000054: 10,2441           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
059755,000055: 10,2442           34371                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
059756,000056: 10,2443           05134                           TC       NOVAC                                 #        NEWMODEX
059757,000057: 10,2444     1011                                  EBANK=   MODREG                                
059758,000058: 10,2444           03441 60102                     2CADR    DSPMMJOB                              
059759,000059: 
059760,000060: 10,2446           52071                           DXCH     RUPTREG1                              
059761,000061: 10,2447           00003                           RELINT                                         
059762,000062: 10,2450           52006                           DXCH     Z                                     #  RETURN
059763,000063: 
059764,000064: 10,2451  40,3441               DSPMMJOB           EQUALS   DSPMMJB                               
059765,000065: 
059766,000066:    5372                                           BLOCK    02                                    

Page 1405

059768,000068:    4000                                           SETLOC   FFTAG1                                
059769,000069:    4000                                           BANK                                           
059770,000070: 

Page 1406

059772,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
059773,000073:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
059774,000074:                                                                                                  #                TC      PHASCHNG
059775,000075:                                                                                                  #                OCT     XXXXX
059776,000076:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
059777,000077:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
059778,000078:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
059779,000079:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
059780,000080:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
059781,000081:                                                                                                  #                        LONGCALL TO BE RESTARTED.
059782,000082:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
059783,000083: 
059784,000084:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
059785,000085:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
059786,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,
059787,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,
059788,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
059789,000089:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
059790,000090:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
059791,000091:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
059792,000092: 
059793,000093:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
059794,000094:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
059795,000095: 
059796,000096:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
059797,000097:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
059798,000098:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
059799,000099:                                                                                                  #                                        LOCATION
059800,000100: 
059801,000101:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
059802,000102:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
059803,000103:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
059804,000104:                                                                                                  #                                        SHOULD BE A LONGCALL)
059805,000105: 
059806,000106:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
059807,000107:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
059808,000108:                                                                                                  #                                        LONGCALL TO BE RESTARTED
059809,000109: 
059810,000110:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
059811,000111:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
059812,000112:                                                                                                  #        TL0 1AD XXX CJW GGG
059813,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
059814,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
059815,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

059817,000117:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
059818,000118:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
059819,000119:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
059820,000120:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
059821,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
059822,000122:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
059823,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
059824,000124:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
059825,000125:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
059826,000126:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
059827,000127:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
059828,000128:                                                                                                  #        AD+3                            ALSO GO TO AD+3
059829,000129: 
059830,000130:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO 
059831,000131:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
059832,000132:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
059833,000133:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
059834,000134:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
059835,000135:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
059836,000136:                                                                                                  #                                        LOCATION AD+5
059837,000137: 
059838,000138:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
059839,000139:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
059840,000140: 
059841,000141:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
059842,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
059843,000143:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
059844,000144:                                                                                                  #        TL1 DAP PPP PPP GGG
059845,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
059846,000146:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
059847,000147:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
059848,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
059849,000149:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
059850,000150:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
059851,000151:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
059852,000152:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
059853,000153:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
059854,000154:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
059855,000155:                                                                                                  #        AD+5                            GO TO AD+5
059856,000156: 
059857,000157:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
059858,000158:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
059859,000159:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
059860,000160:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1408

059862,000162:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
059863,000163: 
059864,000164:                                                                                                  #  SUMMARY OF BITS
059865,000165:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
059866,000166:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
059867,000167:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
059868,000168: 

Page 1409

059870,000170:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
059871,000171:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
059872,000172:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
059873,000173:                                                                                                  #                TC      2PHSCHNG
059874,000174:                                                                                                  #                OCT     XXXXX
059875,000175:                                                                                                  #                OCT     YYYYY
059876,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
059877,000177:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
059878,000178:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
059879,000179:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
059880,000180:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
059881,000181:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
059882,000182:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
059883,000183:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
059884,000184: 
059885,000185:    5372                                           COUNT    02/PHASE                              
059886,000186: 
059887,000187:    5372           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
059888,000188:    5373           50002                           NDX      Q                                     
059889,000189:    5374           30000                           CA       0                                     
059890,000190:    5375           24002                           INCR     Q                                     
059891,000191:    5376           54072                           TS       TEMPP2                                
059892,000192: 
059893,000193:    5377           75023                           MASK     OCT7                                  
059894,000194:    5400           60000                           DOUBLE                                         
059895,000195:    5401           54071                           TS       TEMPG2                                
059896,000196: 
059897,000197:    5402           30072                           CA       TEMPP2                                
059898,000198:    5403           75072                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
059899,000199:    5404           00006                           EXTEND                                         
059900,000200:    5405           75004                           MP       BIT12                                 
059901,000201:    5406           56072                           XCH      TEMPP2                                
059902,000202: 
059903,000203:    5407           75001                           MASK     BIT15                                 
059904,000204:    5410           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
059905,000205: 
059906,000206:    5411           15415                           TCF      PHASCHNG   +3                         
059907,000207: 
059908,000208:    5412           00004        PHASCHNG           INHINT                                         
059909,000209:    5413           35017                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
059910,000210:    5414           54066                           TS       TEMPSW2                               
059911,000211: 
059912,000212:    5415           50002                           NDX      Q                                     
059913,000213:    5416           30000                           CA       0                                     
059914,000214:    5417           24002                           INCR     Q                                     
059915,000215:    5420           54065                           TS       TEMPSW                                

Page 1410

059917,000217:    5421           00006                           EXTEND                                         
059918,000218:    5422           35425                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
059919,000219:    5423           52006                           DTCB                                           
059920,000220: 
059921,000221:    5424  E3,1400                                  EBANK=   LST1                                  
059922,000222:    5424           02451 20063  ADRPCHN2           2CADR    PHSCHNG2                              
059923,000223: 
059924,000224:    5426           22073        ONEORTWO           LXCH     TEMPBBCN                              
059925,000225:    5427           22006                           LXCH     BBANK                                 
059926,000226:    5430           22073                           LXCH     TEMPBBCN                              
059927,000227: 
059928,000228:    5431           75066                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
059929,000229:    5432           10000                           CCS      A                                     
059930,000230:    5433           15474                           TCF      CHECKB                                #  IT IS OF TYPE :B:
059931,000231: 
059932,000232:    5434           30062                           CA       TEMPP                                 
059933,000233:    5435           75011                           MASK     BIT7                                  
059934,000234:    5436           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
059935,000235:    5437           15461                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
059936,000236: 
059937,000237:    5440           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
059938,000238:    5441           31052                           CA       PHSPRDT1   -2                         
059939,000239:    5442           54070                           TS       TEMPPR                                
059940,000240: 
059941,000241:    5443           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
059942,000242:    5444           75010                           MASK     BIT8                                  
059943,000243:    5445           10000                           CCS      A                                     
059944,000244:    5446           15465                           TCF      GETNEWNM                              
059945,000245: 
059946,000246:    5447           30002                           CA       Q                                     
059947,000247:    5450           54063                           TS       TEMPNM                                
059948,000248:    5451           30006                           CA       BB                                    
059949,000249:    5452           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
059950,000250:    5453           04007                           ROR      SUPERBNK                              
059951,000251:    5454           54064                           TS       TEMPBB                                
059952,000252: 
059953,000253:    5455           35460        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
059954,000254:    5456           22073                           LXCH     TEMPBBCN                              
059955,000255:    5457           52006                           DTCB                                           
059956,000256: 
059957,000257:    5460           02537        CON2ADR            GENADR   CON2                                  
059958,000258: 
059959,000259:    5461           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
059960,000260:    5462           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
059961,000261:    5463           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
059962,000262:    5464           15442                           TCF      CON1       -1                         
059963,000263: 
059964,000264:    5465           00006        GETNEWNM           EXTEND                                         

Page 1411

059966,000266:    5466           50002                           INDEX    Q                                     
059967,000267:    5467           30001                           DCA      0                                     
059968,000268:    5470           52064                           DXCH     TEMPNM                                
059969,000269:    5471           35016                           CA       TWO                                   
059970,000270:    5472           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
059971,000271: 
059972,000272:    5473           15455                           TCF      TOCON2                                
059973,000273: 
059974,000274:    5474     5066               OCT14000           EQUALS   PRIO14                                
059975,000275:    5474     0061               TEMPG              EQUALS   ITEMP1                                
059976,000276:    5474     0062               TEMPP              EQUALS   ITEMP2                                
059977,000277:    5474     0063               TEMPNM             EQUALS   ITEMP3                                
059978,000278:    5474     0064               TEMPBB             EQUALS   ITEMP4                                
059979,000279:    5474     0065               TEMPSW             EQUALS   ITEMP5                                
059980,000280:    5474     0066               TEMPSW2            EQUALS   ITEMP6                                
059981,000281:    5474     0070               TEMPPR             EQUALS   RUPTREG1                              
059982,000282:    5474     0071               TEMPG2             EQUALS   RUPTREG2                              
059983,000283:    5474     0072               TEMPP2             EQUALS   RUPTREG3                              
059984,000284: 
059985,000285:    5474     0073               TEMPBBCN           EQUALS   RUPTREG4                              
059986,000286:    5474  0000006               BB                 EQUALS   BBANK                                 
059987,000287: 
059988,000288: 14,3762                                           BANK     14                                    
059989,000289: 10,2000                                           SETLOC   PHASETAB                              
059990,000290: 10,2000                                           BANK                                           
059991,000291: 
059992,000292: 10,2451  E3,1436                                  EBANK=   PHSNAME1                              
059993,000293: 10,2451                                           COUNT    10/PHASE                              
059994,000294: 
059995,000295: 10,2451           22073        PHSCHNG2           LXCH     TEMPBBCN                              
059996,000296: 10,2452           30065                           CA       TEMPSW                                
059997,000297: 10,2453           75023                           MASK     OCT7                                  
059998,000298: 10,2454           60000                           DOUBLE                                         
059999,000299: 10,2455           54061                           TS       TEMPG                                 
060000,000300: 
060001,000301: 10,2456           30065                           CA       TEMPSW                                
060002,000302: 10,2457           75072                           MASK     OCT17770                              
060003,000303: 10,2460           00006                           EXTEND                                         
060004,000304: 10,2461           75004                           MP       BIT12                                 
060005,000305: 10,2462           54062                           TS       TEMPP                                 
060006,000306: 
060007,000307: 10,2463           30065                           CA       TEMPSW                                
060008,000308: 10,2464           74105                           MASK     OCT60000                              
060009,000309: 10,2465           56065                           XCH      TEMPSW                                
060010,000310: 10,2466           75066                           MASK     OCT14000                              
060011,000311: 10,2467           10000                           CCS      A                                     
060012,000312: 10,2470           15426                           TCF      ONEORTWO                              
060013,000313: 

Page 1412

060015,000315: 10,2471           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
060016,000316: 10,2472           50061                           NDX      TEMPG                                 
060017,000317: 10,2473           54751                           TS       PHASE1     -2                         
060018,000318: 
060019,000319: 10,2474           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
060020,000320: 10,2475           12511                           TCF      BELOW2                                #  IT:S A PHASCHNG
060021,000321: 
060022,000322: 10,2476           12477                           TCF      +1                                    #  IT:S A 2PHSCHNG
060023,000323: 10,2477           40072                           CS       TEMPP2                                
060024,000324: 10,2500           22072                           LXCH     TEMPP2                                
060025,000325: 10,2501           50071                           NDX      TEMPG2                                
060026,000326: 10,2502           52751                           DXCH     -PHASE1    -2                         
060027,000327: 
060028,000328: 10,2503           10066                           CCS      TEMPSW2                               
060029,000329: 10,2504           12505                           NOOP                                           #  CAN:T GET HERE
060030,000330: 10,2505           12511                           TCF      BELOW2                                
060031,000331: 
060032,000332: 10,2506           40025                           CS       TIME1                                 
060033,000333: 10,2507           50071                           NDX      TEMPG2                                
060034,000334: 10,2510           55051                           TS       TBASE1     -2                         
060035,000335: 
060036,000336: 10,2511           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
060037,000337: 10,2512           12525                           TCF      BELOW3                                #  SET LONGBASE ONLY
060038,000338: 10,2513           12530                           TCF      BELOW4                                #  SET NEITHER
060039,000339: 
060040,000340: 10,2514           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
060041,000341: 10,2515           50061                           NDX      TEMPG                                 
060042,000342: 10,2516           55051                           TS       TBASE1     -2                         
060043,000343: 
060044,000344: 10,2517           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
060045,000345: 10,2520           62523                           AD       BIT14COM                              
060046,000346: 10,2521           10000                           CCS      A                                     
060047,000347: 10,2522           12523                           NOOP                                           #  ***** CANT GET HERE *****
060048,000348: 10,2523           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
060049,000349: 10,2524           12530                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
060050,000350: 
060051,000351: 10,2525           00006        BELOW3             EXTEND                                         #  SET LONGBASE
060052,000352: 10,2526           30025                           DCA      TIME2                                 
060053,000353: 10,2527           53136                           DXCH     LONGBASE                              
060054,000354: 
060055,000355: 10,2530           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
060056,000356: 10,2531           50061                           NDX      TEMPG                                 
060057,000357: 10,2532           54750                           TS       -PHASE1    -2                         
060058,000358: 
060059,000359: 10,2533           30002                           CA       Q                                     
060060,000360: 10,2534           22073                           LXCH     TEMPBBCN                              
060061,000361: 10,2535           00003                           RELINT                                         
060062,000362: 10,2536           52006                           DTCB                                           
060063,000363: 10,2537           22073        CON2               LXCH     TEMPBBCN                              

Page 1413

060065,000365: 10,2540           30062                           CA       TEMPP                                 
060066,000366: 10,2541           50061                           NDX      TEMPG                                 
060067,000367: 10,2542           54751                           TS       PHASE1     -2                         
060068,000368: 
060069,000369: 10,2543           30070                           CA       TEMPPR                                
060070,000370: 10,2544           50061                           NDX      TEMPG                                 
060071,000371: 10,2545           55052                           TS       PHSPRDT1   -2                         
060072,000372: 
060073,000373: 10,2546           00006                           EXTEND                                         
060074,000374: 10,2547           30064                           DCA      TEMPNM                                
060075,000375: 10,2550           50061                           NDX      TEMPG                                 
060076,000376: 10,2551           53435                           DXCH     PHSNAME1   -2                         
060077,000377: 
060078,000378: 10,2552           12474                           TCF      BELOW1                                
060079,000379: 
060080,000380:    5474                                           BLOCK    02                                    
060081,000381:    4000                                           SETLOC   FFTAG1                                
060082,000382:    4000                                           BANK                                           
060083,000383: 
060084,000384:    5474                                           COUNT    02/PHASE                              
060085,000385: 
060086,000386:    5474           75004        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060087,000387:    5475           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060088,000388:    5476           15461                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060089,000389: 
060090,000390:    5477           15440                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
060091,000391: 
060092,000392: 
060093,000393: 

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