Source Code

These source-code files were obtained by digitally photographing an Artemis 72 (Apollo 15-17 Command Module) program listing from a private collection and then modifying pre-existing Comanche 55 (Apollo 11) source files to incorporate changes. Photography was by Ron Burkey, and transcription was performed by a team of volunteers. Note that the page images presented online are of reduced quality, and that additional images may be available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP: ASSEMBLE REVISION 072 OF AGC PROGRAM ARTEMIS 
	BY NASA 2021114-011 11:40 FEB. 26, 1971
Note that the date is the date of the printout, not the date of the program revision.

060191,000002:                                                                                                  ## Copyright:   Public domain.
060192,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
060193,000004:                                                                                                  ## Purpose:     Part of the source code for Artemis (i.e., Colossus 3),
060194,000005:                                                                                                  ##              build 072.  This is for the Command Module's (CM)
060195,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for
060196,000007:                                                                                                  ##              Apollo 15-17.
060197,000008:                                                                                                  ## Assembler:   yaYUL
060198,000009:                                                                                                  ## Contact:     Jim Lawton <jim DOT lawton AT gmail DOT com>
060199,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
060200,000011:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Artemis072/
060201,000012:                                                                                                  ## Mod history: 2009-08-18 JL   Adapted from corresponding Comanche 055 file.
060202,000013:                                                                                                  ##              2010-02-20 RSB  Un-##'d this header.
060203,000014:                                                                                                  ##              2017-02-08 RSB  Proofed comment text by using octopus/ProoferComments.
060204,000015:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
060205,000016:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
060206,000017:                                                                                                  ##              2017-03-17 RSB  Comment-text fixes identified by 4-way diff'ing
060207,000018:                                                                                                  ##                              of Colossus 237 & 249, Comanche 55, and Artemis 72.
060208,000019: 

Page 1402

060210,000021: 
060211,000022:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
060212,000023: 
060213,000024:    4000                                           SETLOC   FFTAG1                                
060214,000025:    4000                                           BANK                                           
060215,000026: 
060216,000027:    5344                                           COUNT*   $$/PHASE                              
060217,000028:    5344           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
060218,000029:    5345           30000                           CAF      0                                     
060219,000030:    5346           24002                           INCR     Q                                     
060220,000031: 
060221,000032:    5347           55214        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
060222,000033:    5350           35353        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
060223,000034:    5351           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
060224,000035:    5352           14660                           TCF      BANKJUMP                              #  PUTS Q INTO A
060225,000036:    5353           20463                           CADR     SETUPDSP                              
060226,000037: 
060227,000038:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
060228,000039: 
060229,000040:    5354           50002        CHECKMM            INDEX    Q                                     
060230,000041:    5355           40000                           CS       0                                     
060231,000042:    5356           61214                           AD       MODREG                                
060232,000043:    5357           00006                           EXTEND                                         
060233,000044:    5360           16710                           BZF      Q+2                                   
060234,000045:    5361           16706                           TCF      Q+1                                   #  NO MATCH
060235,000046: 
060236,000047: 10,2000                                           SETLOC   PHASETAB                              
060237,000048: 10,2000                                           BANK                                           
060238,000049: 
060239,000050: 10,2463                                           COUNT*   $$/PHASE                              
060240,000051: 10,2463           00004        SETUPDSP           INHINT                                         
060241,000052: 10,2464           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
060242,000053: 10,2465           05120                           TC       NOVAC30                               #  EITHER A TASK OR JOB CAN COMETO NEWMODEX
060243,000054: 10,2466     1214                                  EBANK=   MODREG                                
060244,000055: 10,2466           03377 60102                     2CADR    DSPMMJOB                              
060245,000056: 
060246,000057: 10,2470           52071                           DXCH     RUPTREG1                              
060247,000058: 10,2471           00003                           RELINT                                         
060248,000059: 10,2472           52006                           DXCH     Z                                     #  RETURN
060249,000060: 
060250,000061: 10,2473  40,3377               DSPMMJOB           EQUALS   DSPMMJB                               
060251,000062: 
060252,000063:    4000                                           SETLOC   FFTAG1                                
060253,000064:    4000                                           BANK                                           

Page 1403

060255,000066: 
060256,000067:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
060257,000068:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
060258,000069: 
060259,000070:                                                                                                  #                TC      PHASCHNG
060260,000071:                                                                                                  #                OCT     XXXXX
060261,000072: 
060262,000073:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
060263,000074:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
060264,000075: 
060265,000076:                                                                                                  #        G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
060266,000077:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
060267,000078:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
060268,000079:                                                                                                  #                        LONGCALL TO BE RESTARTED.
060269,000080:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
060270,000081: 
060271,000082:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
060272,000083: 
060273,000084:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
060274,000085: 
060275,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,
060276,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,
060277,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
060278,000089:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
060279,000090: 
060280,000091:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
060281,000092:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
060282,000093: 
060283,000094:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
060284,000095:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
060285,000096: 
060286,000097:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
060287,000098:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
060288,000099:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
060289,000100:                                                                                                  #                                        LOCATION
060290,000101:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
060291,000102:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
060292,000103:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
060293,000104:                                                                                                  #                                        SHOULD BE A LONGCALL)
060294,000105:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
060295,000106:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
060296,000107:                                                                                                  #                                        LONGCALL TO BE RESTARTED
060297,000108: 
060298,000109:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
060299,000110:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
060300,000111: 
060301,000112:                                                                                                  #        TL0 1AD XXX CJW GGG
060302,000113: 
060303,000114:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
060304,000115:                                                                                                  #  BE BY WAITLIST, W IS SET TO 1, IF IT IS A JOB, J IS SET TO 1, IF IT IS A LONGCALL, C IS SET TO 1. ONLY ONE OF
060305,000116:                                                                                                  #  THESE THREE BITS MAY BE SET.  X:S ARE IGNORED  1 MUST BE 1, AND 0 MUST BE 0.  AGAIN T STANDS FOR THE TBASE,

Page 1404

060307,000118:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
060308,000119:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
060309,000120:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
060310,000121:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
060311,000122:                                                                                                  #  ALREADY IN THE VARIABLE STORAGE, THEN D IS SET TO 0. NEXT THE A BIT IS USED.  IF IT IS SET TO 0, THE ADDRESS
060312,000123:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
060313,000124:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
060314,000125:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
060315,000126: 
060316,000127:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
060317,000128:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
060318,000129:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
060319,000130:                                                                                                  #        AD+3                            ALSO GO TO AD+3
060320,000131: 
060321,000132:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO
060322,000133:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
060323,000134:                                                                                                  #        AD+2   -GENADR  DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
060324,000135:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
060325,000136:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
060326,000137:                                                                                                  #        AD+5                            BANK OF DELTIME. PHASCHNG RETURNS TO
060327,000138:                                                                                                  #                                        LOCATION AD+5
060328,000139: 
060329,000140:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
060330,000141:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
060331,000142: 
060332,000143:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
060333,000144:                                                                                                  #  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
060334,000145:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
060335,000146: 
060336,000147:                                                                                                  #        TL1 DAP PPP PPP GGG
060337,000148: 
060338,000149:                                                                                                  #  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
060339,000150:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
060340,000151:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
060341,000152:                                                                                                  #  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
060342,000153:                                                                                                  #  THE NEXT LOCATION.(THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
060343,000154: 
060344,000155:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
060345,000156:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
060346,000157:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
060347,000158:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
060348,000159:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
060349,000160:                                                                                                  #        AD+5                            GO TO AD+5
060350,000161: 
060351,000162:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
060352,000163:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
060353,000164:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
060354,000165:                                                                                                  #                                        BY MEANS OF GROUP 5
060355,000166: 

Page 1405

060357,000168: 
060358,000169:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
060359,000170: 
060360,000171: 
060361,000172:                                                                                                  #  SUMMARY OF BITS
060362,000173: 
060363,000174:                                                                                                  #  TYPE A                TL0 00P PPP PPP GGG
060364,000175: 
060365,000176:                                                                                                  #  TYPE B                TL1 DAP PPP PPP GGG
060366,000177: 
060367,000178:                                                                                                  #  TYPE C                TL0 1AD XXX CJW GGG
060368,000179: 
060369,000180: 

Page 1406

060371,000182: 
060372,000183:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
060373,000184:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
060374,000185:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
060375,000186: 
060376,000187:                                                                                                  #                TC      2PHSCHNG
060377,000188:                                                                                                  #                OCT     XXXXX
060378,000189:                                                                                                  #                OCT     YYYYY
060379,000190: 
060380,000191:                                                                                                  #  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
060381,000192:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
060382,000193:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
060383,000194: 
060384,000195:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
060385,000196:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
060386,000197:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
060387,000198:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
060388,000199:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
060389,000200: 
060390,000201:    5362                                           COUNT*   $$/PHASE                              
060391,000202:    5362           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
060392,000203:    5363           50002                           NDX      Q                                     
060393,000204:    5364           30000                           CA       0                                     
060394,000205:    5365           24002                           INCR     Q                                     
060395,000206:    5366           54072                           TS       TEMPP2                                
060396,000207: 
060397,000208:    5367           74774                           MASK     OCT7                                  
060398,000209:    5370           60000                           DOUBLE                                         
060399,000210:    5371           54071                           TS       TEMPG2                                
060400,000211: 
060401,000212:    5372           30072                           CA       TEMPP2                                
060402,000213:    5373           75056                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
060403,000214:    5374           00006                           EXTEND                                         
060404,000215:    5375           74755                           MP       BIT12                                 
060405,000216:    5376           56072                           XCH      TEMPP2                                
060406,000217: 
060407,000218:    5377           74752                           MASK     BIT15                                 
060408,000219:    5400           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
060409,000220: 
060410,000221:    5401           15405                           TCF      PHASCHNG   +3                         
060411,000222: 
060412,000223:    5402           00004        PHASCHNG           INHINT                                         
060413,000224:    5403           34770                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
060414,000225:    5404           54066                           TS       TEMPSW2                               
060415,000226: 
060416,000227:    5405           50002                 +3        NDX      Q                                     
060417,000228:    5406           30000                           CA       0                                     
060418,000229:    5407           24002                           INCR     Q                                     
060419,000230:    5410           54065                           TS       TEMPSW                                

Page 1407

060421,000232:    5411           00006                           EXTEND                                         
060422,000233:    5412           35415                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
060423,000234:    5413           52006                           DTCB                                           
060424,000235: 
060425,000236:    5414  E3,1400                                  EBANK=   LST1                                  
060426,000237:    5414           02473 20063  ADRPCHN2           2CADR    PHSCHNG2                              
060427,000238: 
060428,000239: 
060429,000240:    5416           22073        ONEORTWO           LXCH     TEMPBBCN                              
060430,000241:    5417           22006                           LXCH     BBANK                                 
060431,000242:    5420           22073                           LXCH     TEMPBBCN                              
060432,000243: 
060433,000244:    5421           75053                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
060434,000245:    5422           10000                           CCS      A                                     
060435,000246:    5423           15464                           TCF      CHECKB                                #  IT IS OF TYPE :B:
060436,000247: 
060437,000248:    5424           30062                           CA       TEMPP                                 
060438,000249:    5425           74762                           MASK     BIT7                                  
060439,000250:    5426           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
060440,000251:    5427           15451                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
060441,000252: 
060442,000253:    5430           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
060443,000254:    5431           31256                           CA       PHSPRDT1   -2                         
060444,000255:    5432           54070                 -1        TS       TEMPPR                                
060445,000256: 
060446,000257:    5433           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
060447,000258:    5434           74761                           MASK     BIT8                                  
060448,000259:    5435           10000                           CCS      A                                     
060449,000260:    5436           15455                           TCF      GETNEWNM                              
060450,000261: 
060451,000262:    5437           30002                           CA       Q                                     
060452,000263:    5440           54063                           TS       TEMPNM                                
060453,000264:    5441           30006                           CA       BB                                    
060454,000265:    5442           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
060455,000266:    5443           04007                           ROR      SUPERBNK                              
060456,000267:    5444           54064                           TS       TEMPBB                                
060457,000268: 
060458,000269:    5445           35450        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
060459,000270:    5446           22073                           LXCH     TEMPBBCN                              
060460,000271:    5447           52006                           DTCB                                           
060461,000272: 
060462,000273:    5450           02561        CON2ADR            GENADR   CON2                                  
060463,000274: 
060464,000275:    5451           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
060465,000276:    5452           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
060466,000277:    5453           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
060467,000278:    5454           15432                           TCF      CON1       -1                         
060468,000279: 
060469,000280:    5455           00006        GETNEWNM           EXTEND                                         

Page 1408

060471,000282:    5456           50002                           INDEX    Q                                     
060472,000283:    5457           30001                           DCA      0                                     
060473,000284:    5460           52064                           DXCH     TEMPNM                                
060474,000285:    5461           34767                           CA       TWO                                   
060475,000286:    5462           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
060476,000287: 
060477,000288:    5463           15445                           TCF      TOCON2                                
060478,000289: 
060479,000290:    5464     5053               OCT14000           EQUALS   PRIO14                                
060480,000291:    5464     0061               TEMPG              EQUALS   ITEMP1                                
060481,000292:    5464     0062               TEMPP              EQUALS   ITEMP2                                
060482,000293:    5464     0063               TEMPNM             EQUALS   ITEMP3                                
060483,000294:    5464     0064               TEMPBB             EQUALS   ITEMP4                                
060484,000295:    5464     0065               TEMPSW             EQUALS   ITEMP5                                
060485,000296:    5464     0066               TEMPSW2            EQUALS   ITEMP6                                
060486,000297:    5464     0070               TEMPPR             EQUALS   RUPTREG1                              
060487,000298:    5464     0071               TEMPG2             EQUALS   RUPTREG2                              
060488,000299:    5464     0072               TEMPP2             EQUALS   RUPTREG3                              
060489,000300: 
060490,000301:    5464     0073               TEMPBBCN           EQUALS   RUPTREG4                              
060491,000302:    5464  0000006               BB                 EQUALS   BBANK                                 
060492,000303: 
060493,000304: 10,2000                                           SETLOC   PHASETAB                              
060494,000305: 10,2000                                           BANK                                           
060495,000306: 
060496,000307: 10,2473  E3,1436                                  EBANK=   PHSNAME1                              
060497,000308: 10,2473                                           COUNT*   $$/PHASE                              
060498,000309: 10,2473           22073        PHSCHNG2           LXCH     TEMPBBCN                              
060499,000310: 10,2474           30065                           CA       TEMPSW                                
060500,000311: 10,2475           74774                           MASK     OCT7                                  
060501,000312: 10,2476           60000                           DOUBLE                                         
060502,000313: 10,2477           54061                           TS       TEMPG                                 
060503,000314: 
060504,000315: 10,2500           30065                           CA       TEMPSW                                
060505,000316: 10,2501           75056                           MASK     OCT17770                              
060506,000317: 10,2502           00006                           EXTEND                                         
060507,000318: 10,2503           74755                           MP       BIT12                                 
060508,000319: 10,2504           54062                           TS       TEMPP                                 
060509,000320: 
060510,000321: 10,2505           30065                           CA       TEMPSW                                
060511,000322: 10,2506           74076                           MASK     OCT60000                              
060512,000323: 10,2507           56065                           XCH      TEMPSW                                
060513,000324: 10,2510           75053                           MASK     OCT14000                              
060514,000325: 10,2511           10000                           CCS      A                                     
060515,000326: 
060516,000327: 10,2512           15416                           TCF      ONEORTWO                              
060517,000328: 
060518,000329: 10,2513           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
060519,000330: 10,2514           50061                           NDX      TEMPG                                 

Page 1409

060521,000332: 10,2515           55154                           TS       PHASE1     -2                         
060522,000333: 
060523,000334: 10,2516           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
060524,000335: 10,2517           12533                           TCF      BELOW2                                #  IT:S A PHASCHNG
060525,000336: 
060526,000337: 10,2520           12521                           TCF      +1                                    #  IT:S A 2PHSCHNG
060527,000338: 10,2521           40072                           CS       TEMPP2                                
060528,000339: 10,2522           22072                           LXCH     TEMPP2                                
060529,000340: 10,2523           50071                           NDX      TEMPG2                                
060530,000341: 10,2524           53154                           DXCH     -PHASE1    -2                         
060531,000342: 
060532,000343: 10,2525           10066                           CCS      TEMPSW2                               
060533,000344: 10,2526           12527                           NOOP                                           #  CAN:T GET HERE
060534,000345: 10,2527           12533                           TCF      BELOW2                                
060535,000346: 
060536,000347: 10,2530           40025                           CS       TIME1                                 
060537,000348: 10,2531           50071                           NDX      TEMPG2                                
060538,000349: 10,2532           55255                           TS       TBASE1     -2                         
060539,000350: 
060540,000351: 10,2533           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
060541,000352: 10,2534           12547                           TCF      BELOW3                                #  SET LONGBASE ONLY
060542,000353: 10,2535           12552                           TCF      BELOW4                                #  SET NEITHER
060543,000354: 
060544,000355: 10,2536           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
060545,000356: 10,2537           50061                           NDX      TEMPG                                 
060546,000357: 10,2540           55255                           TS       TBASE1     -2                         
060547,000358: 
060548,000359: 10,2541           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
060549,000360: 10,2542           62545                           AD       BIT14COM                              
060550,000361: 10,2543           10000                           CCS      A                                     
060551,000362: 10,2544           12545                           NOOP                                           #  ***** CANT GET HERE *****
060552,000363: 10,2545           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
060553,000364: 10,2546           12552                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
060554,000365: 
060555,000366: 10,2547           00006        BELOW3             EXTEND                                         #  SET LONGBASE
060556,000367: 10,2550           30025                           DCA      TIME2                                 
060557,000368: 10,2551           53303                           DXCH     LONGBASE                              
060558,000369: 
060559,000370: 10,2552           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
060560,000371: 10,2553           50061                           NDX      TEMPG                                 
060561,000372: 10,2554           55153                           TS       -PHASE1    -2                         
060562,000373: 
060563,000374: 10,2555           30002                           CA       Q                                     
060564,000375: 10,2556           22073                           LXCH     TEMPBBCN                              
060565,000376: 10,2557           00003                           RELINT                                         
060566,000377: 10,2560           52006                           DTCB                                           
060567,000378: 10,2561           22073        CON2               LXCH     TEMPBBCN                              
060568,000379: 
060569,000380: 10,2562           30062                           CA       TEMPP                                 
060570,000381: 10,2563           50061                           NDX      TEMPG                                 

Page 1410

060572,000383: 10,2564           55154                           TS       PHASE1     -2                         
060573,000384: 
060574,000385: 10,2565           30070                           CA       TEMPPR                                
060575,000386: 10,2566           50061                           NDX      TEMPG                                 
060576,000387: 10,2567           55256                           TS       PHSPRDT1   -2                         
060577,000388: 
060578,000389: 10,2570           00006                           EXTEND                                         
060579,000390: 10,2571           30064                           DCA      TEMPNM                                
060580,000391: 10,2572           50061                           NDX      TEMPG                                 
060581,000392: 10,2573           53435                           DXCH     PHSNAME1   -2                         
060582,000393: 
060583,000394: 10,2574           12516                           TCF      BELOW1                                
060584,000395: 
060585,000396:    4000                                           SETLOC   FFTAG1                                
060586,000397:    4000                                           BANK                                           
060587,000398: 
060588,000399:    5464                                           COUNT*   $$/PHASE                              
060589,000400:    5464           74755        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060590,000401:    5465           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060591,000402:    5466           15451                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060592,000403: 
060593,000404:    5467           15430                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY

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