Source Code

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

The starting point was the source code of Comanche 51 (separately previously reconstructed from an Apollo-era listing of Comanche 55, flown on Apollo 11). Comanche 51 source code was then modified by undoing changes known to have been made between revisions 44 and 51. The now-reconstructed Comanche 44 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code match those on the Comanche 55 printout, although the source code would likely have different page numbers in a contemporary Comanche 44 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 51. Here's a guide to the Apollo documentation referenced in those annotations:
In most cases, only the titles (rather than the full texts) of PCRs are known. In addition to the explanatory annotations, there is also a step-by-step 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.

060223,000002:                                                                                                  ## Copyright:   Public domain.
060224,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
060225,000004:                                                                                                  ## Purpose:     A section of Comanche revision 044.
060226,000005:                                                                                                  ##              It is part of the reconstructed source code for the
060227,000006:                                                                                                  ##              original release of the flight software for the Command
060228,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
060229,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
060230,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
060231,000010:                                                                                                  ##              exactly match those specified for Comanche 44 in NASA drawing
060232,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
060233,000012:                                                                                                  ##              reconstruction is correct.
060234,000013:                                                                                                  ## Assembler:   yaYUL
060235,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
060236,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
060237,000016:                                                                                                  ## Mod history: 2020-12-03 MAS  Created from Comanche 51.
060238,000017: 

Page 1404

060240,000019:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
060241,000020: 
060242,000021: 43,3726                                           COUNT    02/PHASE                              
060243,000022:    5354                                           BLOCK    02                                    
060244,000023:    4000                                           SETLOC   FFTAG1                                
060245,000024:    4000                                           BANK                                           
060246,000025: 
060247,000026:    5354           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
060248,000027:    5355           30000                           CAF      0                                     
060249,000028:    5356           24002                           INCR     Q                                     
060250,000029: 
060251,000030:    5357           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
060252,000031:    5360           35363        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
060253,000032:    5361           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
060254,000033:    5362           14704                           TCF      BANKJUMP                              #  PUTS Q INTO A
060255,000034:    5363           20440                           CADR     SETUPDSP                              
060256,000035: 
060257,000036:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
060258,000037: 
060259,000038:    5364           50002        CHECKMM            INDEX    Q                                     
060260,000039:    5365           40000                           CS       0                                     
060261,000040:    5366           61011                           AD       MODREG                                
060262,000041:    5367           00006                           EXTEND                                         
060263,000042:    5370           16710                           BZF      Q+2                                   
060264,000043:    5371           16706                           TCF      Q+1                                   #  NO MATCH
060265,000044: 
060266,000045:    5372     6711               TCQ                =        Q+2        +1                         
060267,000046: 
060268,000047: 14,3762                                           BANK     14                                    
060269,000048: 10,2000                                           SETLOC   PHASETAB                              
060270,000049: 10,2000                                           BANK                                           
060271,000050: 
060272,000051: 10,2440                                           COUNT    10/PHASE                              
060273,000052: 
060274,000053: 10,2440           00004        SETUPDSP           INHINT                                         
060275,000054: 10,2441           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
060276,000055: 10,2442           34371                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
060277,000056: 10,2443           05134                           TC       NOVAC                                 #        NEWMODEX
060278,000057: 10,2444     1011                                  EBANK=   MODREG                                
060279,000058: 10,2444           03441 60102                     2CADR    DSPMMJOB                              
060280,000059: 
060281,000060: 10,2446           52071                           DXCH     RUPTREG1                              
060282,000061: 10,2447           00003                           RELINT                                         
060283,000062: 10,2450           52006                           DXCH     Z                                     #  RETURN
060284,000063: 
060285,000064: 10,2451  40,3441               DSPMMJOB           EQUALS   DSPMMJB                               
060286,000065: 
060287,000066:    5372                                           BLOCK    02                                    

Page 1405

060289,000068:    4000                                           SETLOC   FFTAG1                                
060290,000069:    4000                                           BANK                                           
060291,000070: 

Page 1406

060293,000072:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
060294,000073:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
060295,000074:                                                                                                  #                TC      PHASCHNG
060296,000075:                                                                                                  #                OCT     XXXXX
060297,000076:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
060298,000077:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
060299,000078:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
060300,000079:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
060301,000080:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
060302,000081:                                                                                                  #                        LONGCALL TO BE RESTARTED.
060303,000082:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
060304,000083: 
060305,000084:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
060306,000085:                                                                                                  #                  TL0 00P PPP PPP GGG                                     ,
060307,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,
060308,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,
060309,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
060310,000089:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
060311,000090:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
060312,000091:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
060313,000092: 
060314,000093:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
060315,000094:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
060316,000095: 
060317,000096:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
060318,000097:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
060319,000098:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
060320,000099:                                                                                                  #                                        LOCATION
060321,000100: 
060322,000101:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
060323,000102:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
060324,000103:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
060325,000104:                                                                                                  #                                        SHOULD BE A LONGCALL)
060326,000105: 
060327,000106:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
060328,000107:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
060329,000108:                                                                                                  #                                        LONGCALL TO BE RESTARTED
060330,000109: 
060331,000110:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
060332,000111:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
060333,000112:                                                                                                  #        TL0 1AD XXX CJW GGG
060334,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
060335,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
060336,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

060338,000117:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
060339,000118:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
060340,000119:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
060341,000120:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
060342,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
060343,000122:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
060344,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
060345,000124:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
060346,000125:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
060347,000126:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
060348,000127:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
060349,000128:                                                                                                  #        AD+3                            ALSO GO TO AD+3
060350,000129: 
060351,000130:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO 
060352,000131:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
060353,000132:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
060354,000133:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
060355,000134:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
060356,000135:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
060357,000136:                                                                                                  #                                        LOCATION AD+5
060358,000137: 
060359,000138:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
060360,000139:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
060361,000140: 
060362,000141:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
060363,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
060364,000143:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
060365,000144:                                                                                                  #        TL1 DAP PPP PPP GGG
060366,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
060367,000146:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
060368,000147:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
060369,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
060370,000149:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
060371,000150:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
060372,000151:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
060373,000152:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
060374,000153:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
060375,000154:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
060376,000155:                                                                                                  #        AD+5                            GO TO AD+5
060377,000156: 
060378,000157:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
060379,000158:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
060380,000159:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
060381,000160:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1408

060383,000162:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
060384,000163: 
060385,000164:                                                                                                  #  SUMMARY OF BITS
060386,000165:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
060387,000166:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
060388,000167:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
060389,000168: 

Page 1409

060391,000170:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
060392,000171:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
060393,000172:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
060394,000173:                                                                                                  #                TC      2PHSCHNG
060395,000174:                                                                                                  #                OCT     XXXXX
060396,000175:                                                                                                  #                OCT     YYYYY
060397,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
060398,000177:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
060399,000178:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
060400,000179:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
060401,000180:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
060402,000181:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
060403,000182:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
060404,000183:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
060405,000184: 
060406,000185:    5372                                           COUNT    02/PHASE                              
060407,000186: 
060408,000187:    5372           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
060409,000188:    5373           50002                           NDX      Q                                     
060410,000189:    5374           30000                           CA       0                                     
060411,000190:    5375           24002                           INCR     Q                                     
060412,000191:    5376           54072                           TS       TEMPP2                                
060413,000192: 
060414,000193:    5377           75023                           MASK     OCT7                                  
060415,000194:    5400           60000                           DOUBLE                                         
060416,000195:    5401           54071                           TS       TEMPG2                                
060417,000196: 
060418,000197:    5402           30072                           CA       TEMPP2                                
060419,000198:    5403           75072                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
060420,000199:    5404           00006                           EXTEND                                         
060421,000200:    5405           75004                           MP       BIT12                                 
060422,000201:    5406           56072                           XCH      TEMPP2                                
060423,000202: 
060424,000203:    5407           75001                           MASK     BIT15                                 
060425,000204:    5410           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
060426,000205: 
060427,000206:    5411           15415                           TCF      PHASCHNG   +3                         
060428,000207: 
060429,000208:    5412           00004        PHASCHNG           INHINT                                         
060430,000209:    5413           35017                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
060431,000210:    5414           54066                           TS       TEMPSW2                               
060432,000211: 
060433,000212:    5415           50002                           NDX      Q                                     
060434,000213:    5416           30000                           CA       0                                     
060435,000214:    5417           24002                           INCR     Q                                     
060436,000215:    5420           54065                           TS       TEMPSW                                

Page 1410

060438,000217:    5421           00006                           EXTEND                                         
060439,000218:    5422           35425                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
060440,000219:    5423           52006                           DTCB                                           
060441,000220: 
060442,000221:    5424  E3,1400                                  EBANK=   LST1                                  
060443,000222:    5424           02451 20063  ADRPCHN2           2CADR    PHSCHNG2                              
060444,000223: 
060445,000224:    5426           22073        ONEORTWO           LXCH     TEMPBBCN                              
060446,000225:    5427           22006                           LXCH     BBANK                                 
060447,000226:    5430           22073                           LXCH     TEMPBBCN                              
060448,000227: 
060449,000228:    5431           75066                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
060450,000229:    5432           10000                           CCS      A                                     
060451,000230:    5433           15474                           TCF      CHECKB                                #  IT IS OF TYPE :B:
060452,000231: 
060453,000232:    5434           30062                           CA       TEMPP                                 
060454,000233:    5435           75011                           MASK     BIT7                                  
060455,000234:    5436           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
060456,000235:    5437           15461                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
060457,000236: 
060458,000237:    5440           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
060459,000238:    5441           31052                           CA       PHSPRDT1   -2                         
060460,000239:    5442           54070                           TS       TEMPPR                                
060461,000240: 
060462,000241:    5443           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
060463,000242:    5444           75010                           MASK     BIT8                                  
060464,000243:    5445           10000                           CCS      A                                     
060465,000244:    5446           15465                           TCF      GETNEWNM                              
060466,000245: 
060467,000246:    5447           30002                           CA       Q                                     
060468,000247:    5450           54063                           TS       TEMPNM                                
060469,000248:    5451           30006                           CA       BB                                    
060470,000249:    5452           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
060471,000250:    5453           04007                           ROR      SUPERBNK                              
060472,000251:    5454           54064                           TS       TEMPBB                                
060473,000252: 
060474,000253:    5455           35460        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
060475,000254:    5456           22073                           LXCH     TEMPBBCN                              
060476,000255:    5457           52006                           DTCB                                           
060477,000256: 
060478,000257:    5460           02537        CON2ADR            GENADR   CON2                                  
060479,000258: 
060480,000259:    5461           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
060481,000260:    5462           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
060482,000261:    5463           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
060483,000262:    5464           15442                           TCF      CON1       -1                         
060484,000263: 
060485,000264:    5465           00006        GETNEWNM           EXTEND                                         

Page 1411

060487,000266:    5466           50002                           INDEX    Q                                     
060488,000267:    5467           30001                           DCA      0                                     
060489,000268:    5470           52064                           DXCH     TEMPNM                                
060490,000269:    5471           35016                           CA       TWO                                   
060491,000270:    5472           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
060492,000271: 
060493,000272:    5473           15455                           TCF      TOCON2                                
060494,000273: 
060495,000274:    5474     5066               OCT14000           EQUALS   PRIO14                                
060496,000275:    5474     0061               TEMPG              EQUALS   ITEMP1                                
060497,000276:    5474     0062               TEMPP              EQUALS   ITEMP2                                
060498,000277:    5474     0063               TEMPNM             EQUALS   ITEMP3                                
060499,000278:    5474     0064               TEMPBB             EQUALS   ITEMP4                                
060500,000279:    5474     0065               TEMPSW             EQUALS   ITEMP5                                
060501,000280:    5474     0066               TEMPSW2            EQUALS   ITEMP6                                
060502,000281:    5474     0070               TEMPPR             EQUALS   RUPTREG1                              
060503,000282:    5474     0071               TEMPG2             EQUALS   RUPTREG2                              
060504,000283:    5474     0072               TEMPP2             EQUALS   RUPTREG3                              
060505,000284: 
060506,000285:    5474     0073               TEMPBBCN           EQUALS   RUPTREG4                              
060507,000286:    5474  0000006               BB                 EQUALS   BBANK                                 
060508,000287: 
060509,000288: 14,3762                                           BANK     14                                    
060510,000289: 10,2000                                           SETLOC   PHASETAB                              
060511,000290: 10,2000                                           BANK                                           
060512,000291: 
060513,000292: 10,2451  E3,1436                                  EBANK=   PHSNAME1                              
060514,000293: 10,2451                                           COUNT    10/PHASE                              
060515,000294: 
060516,000295: 10,2451           22073        PHSCHNG2           LXCH     TEMPBBCN                              
060517,000296: 10,2452           30065                           CA       TEMPSW                                
060518,000297: 10,2453           75023                           MASK     OCT7                                  
060519,000298: 10,2454           60000                           DOUBLE                                         
060520,000299: 10,2455           54061                           TS       TEMPG                                 
060521,000300: 
060522,000301: 10,2456           30065                           CA       TEMPSW                                
060523,000302: 10,2457           75072                           MASK     OCT17770                              
060524,000303: 10,2460           00006                           EXTEND                                         
060525,000304: 10,2461           75004                           MP       BIT12                                 
060526,000305: 10,2462           54062                           TS       TEMPP                                 
060527,000306: 
060528,000307: 10,2463           30065                           CA       TEMPSW                                
060529,000308: 10,2464           74105                           MASK     OCT60000                              
060530,000309: 10,2465           56065                           XCH      TEMPSW                                
060531,000310: 10,2466           75066                           MASK     OCT14000                              
060532,000311: 10,2467           10000                           CCS      A                                     
060533,000312: 10,2470           15426                           TCF      ONEORTWO                              
060534,000313: 

Page 1412

060536,000315: 10,2471           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
060537,000316: 10,2472           50061                           NDX      TEMPG                                 
060538,000317: 10,2473           54751                           TS       PHASE1     -2                         
060539,000318: 
060540,000319: 10,2474           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
060541,000320: 10,2475           12511                           TCF      BELOW2                                #  IT:S A PHASCHNG
060542,000321: 
060543,000322: 10,2476           12477                           TCF      +1                                    #  IT:S A 2PHSCHNG
060544,000323: 10,2477           40072                           CS       TEMPP2                                
060545,000324: 10,2500           22072                           LXCH     TEMPP2                                
060546,000325: 10,2501           50071                           NDX      TEMPG2                                
060547,000326: 10,2502           52751                           DXCH     -PHASE1    -2                         
060548,000327: 
060549,000328: 10,2503           10066                           CCS      TEMPSW2                               
060550,000329: 10,2504           12505                           NOOP                                           #  CAN:T GET HERE
060551,000330: 10,2505           12511                           TCF      BELOW2                                
060552,000331: 
060553,000332: 10,2506           40025                           CS       TIME1                                 
060554,000333: 10,2507           50071                           NDX      TEMPG2                                
060555,000334: 10,2510           55051                           TS       TBASE1     -2                         
060556,000335: 
060557,000336: 10,2511           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
060558,000337: 10,2512           12525                           TCF      BELOW3                                #  SET LONGBASE ONLY
060559,000338: 10,2513           12530                           TCF      BELOW4                                #  SET NEITHER
060560,000339: 
060561,000340: 10,2514           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
060562,000341: 10,2515           50061                           NDX      TEMPG                                 
060563,000342: 10,2516           55051                           TS       TBASE1     -2                         
060564,000343: 
060565,000344: 10,2517           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
060566,000345: 10,2520           62523                           AD       BIT14COM                              
060567,000346: 10,2521           10000                           CCS      A                                     
060568,000347: 10,2522           12523                           NOOP                                           #  ***** CANT GET HERE *****
060569,000348: 10,2523           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
060570,000349: 10,2524           12530                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
060571,000350: 
060572,000351: 10,2525           00006        BELOW3             EXTEND                                         #  SET LONGBASE
060573,000352: 10,2526           30025                           DCA      TIME2                                 
060574,000353: 10,2527           53136                           DXCH     LONGBASE                              
060575,000354: 
060576,000355: 10,2530           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
060577,000356: 10,2531           50061                           NDX      TEMPG                                 
060578,000357: 10,2532           54750                           TS       -PHASE1    -2                         
060579,000358: 
060580,000359: 10,2533           30002                           CA       Q                                     
060581,000360: 10,2534           22073                           LXCH     TEMPBBCN                              
060582,000361: 10,2535           00003                           RELINT                                         
060583,000362: 10,2536           52006                           DTCB                                           
060584,000363: 10,2537           22073        CON2               LXCH     TEMPBBCN                              

Page 1413

060586,000365: 10,2540           30062                           CA       TEMPP                                 
060587,000366: 10,2541           50061                           NDX      TEMPG                                 
060588,000367: 10,2542           54751                           TS       PHASE1     -2                         
060589,000368: 
060590,000369: 10,2543           30070                           CA       TEMPPR                                
060591,000370: 10,2544           50061                           NDX      TEMPG                                 
060592,000371: 10,2545           55052                           TS       PHSPRDT1   -2                         
060593,000372: 
060594,000373: 10,2546           00006                           EXTEND                                         
060595,000374: 10,2547           30064                           DCA      TEMPNM                                
060596,000375: 10,2550           50061                           NDX      TEMPG                                 
060597,000376: 10,2551           53435                           DXCH     PHSNAME1   -2                         
060598,000377: 
060599,000378: 10,2552           12474                           TCF      BELOW1                                
060600,000379: 
060601,000380:    5474                                           BLOCK    02                                    
060602,000381:    4000                                           SETLOC   FFTAG1                                
060603,000382:    4000                                           BANK                                           
060604,000383: 
060605,000384:    5474                                           COUNT    02/PHASE                              
060606,000385: 
060607,000386:    5474           75004        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060608,000387:    5475           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060609,000388:    5476           15461                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060610,000389: 
060611,000390:    5477           15440                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
060612,000391: 
060613,000392: 
060614,000393: 

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