Source Code

These source-code files are part of a reconstructed copy of Artemis 071, the first release of the Apollo 15 through 17 Command Module (CM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Artemis 072 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes between the two versions. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021154-. Note that page numbers in the reconstructed code match those on the Artemis 072 printout, although the changed code would likely have changed page numbers for a real Artemis 071 listing.

Comments from 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.

060043,000002:                                                                                                  ## Copyright:   Public domain.
060044,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
060045,000004:                                                                                                  ## Purpose:     A section of Artemis revision 071.
060046,000005:                                                                                                  ##              It is part of the reconstructed source code for the first
060047,000006:                                                                                                  ##              release of the flight software for the Command Module's
060048,000007:                                                                                                  ##              (CM) Apollo Guidance Computer (AGC) for Apollo 15 through
060049,000008:                                                                                                  ##              17. The code has been recreated from a copy of Artemis 072.
060050,000009:                                                                                                  ##              It has been adapted such that the resulting bugger words
060051,000010:                                                                                                  ##              exactly match those specified for Artemis 071 in NASA
060052,000011:                                                                                                  ##              drawing 2021154-, which gives relatively high confidence
060053,000012:                                                                                                  ##              that the reconstruction is correct.
060054,000013:                                                                                                  ## Reference:   1402
060055,000014:                                                                                                  ## Assembler:   yaYUL
060056,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
060057,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
060058,000017:                                                                                                  ## Mod history: 2019-08-14 MAS  Created from Artemis 072.
060059,000018: 

Page 1402

060061,000020: 
060062,000021:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
060063,000022: 
060064,000023:    4000                                           SETLOC   FFTAG1                                
060065,000024:    4000                                           BANK                                           
060066,000025: 
060067,000026:    5344                                           COUNT*   $$/PHASE                              
060068,000027:    5344           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
060069,000028:    5345           30000                           CAF      0                                     
060070,000029:    5346           24002                           INCR     Q                                     
060071,000030: 
060072,000031:    5347           55214        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
060073,000032:    5350           35353        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
060074,000033:    5351           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
060075,000034:    5352           14660                           TCF      BANKJUMP                              #  PUTS Q INTO A
060076,000035:    5353           20463                           CADR     SETUPDSP                              
060077,000036: 
060078,000037:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
060079,000038: 
060080,000039:    5354           50002        CHECKMM            INDEX    Q                                     
060081,000040:    5355           40000                           CS       0                                     
060082,000041:    5356           61214                           AD       MODREG                                
060083,000042:    5357           00006                           EXTEND                                         
060084,000043:    5360           16710                           BZF      Q+2                                   
060085,000044:    5361           16706                           TCF      Q+1                                   #  NO MATCH
060086,000045: 
060087,000046: 10,2000                                           SETLOC   PHASETAB                              
060088,000047: 10,2000                                           BANK                                           
060089,000048: 
060090,000049: 10,2463                                           COUNT*   $$/PHASE                              
060091,000050: 10,2463           00004        SETUPDSP           INHINT                                         
060092,000051: 10,2464           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
060093,000052: 10,2465           05120                           TC       NOVAC30                               #  EITHER A TASK OR JOB CAN COMETO NEWMODEX
060094,000053: 10,2466     1214                                  EBANK=   MODREG                                
060095,000054: 10,2466           03377 60102                     2CADR    DSPMMJOB                              
060096,000055: 
060097,000056: 10,2470           52071                           DXCH     RUPTREG1                              
060098,000057: 10,2471           00003                           RELINT                                         
060099,000058: 10,2472           52006                           DXCH     Z                                     #  RETURN
060100,000059: 
060101,000060: 10,2473  40,3377               DSPMMJOB           EQUALS   DSPMMJB                               
060102,000061: 
060103,000062:    4000                                           SETLOC   FFTAG1                                
060104,000063:    4000                                           BANK                                           

Page 1403

060106,000065: 
060107,000066:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
060108,000067:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
060109,000068: 
060110,000069:                                                                                                  #                TC      PHASCHNG
060111,000070:                                                                                                  #                OCT     XXXXX
060112,000071: 
060113,000072:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
060114,000073:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
060115,000074: 
060116,000075:                                                                                                  #        G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
060117,000076:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
060118,000077:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
060119,000078:                                                                                                  #                        LONGCALL TO BE RESTARTED.
060120,000079:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
060121,000080: 
060122,000081:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
060123,000082: 
060124,000083:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
060125,000084: 
060126,000085:                                                                                                  #  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,
060127,000086:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.              IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
060128,000087:                                                                                                  #  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
060129,000088:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
060130,000089: 
060131,000090:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
060132,000091:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
060133,000092: 
060134,000093:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
060135,000094:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
060136,000095: 
060137,000096:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
060138,000097:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
060139,000098:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
060140,000099:                                                                                                  #                                        LOCATION
060141,000100:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
060142,000101:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
060143,000102:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
060144,000103:                                                                                                  #                                        SHOULD BE A LONGCALL)
060145,000104:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
060146,000105:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
060147,000106:                                                                                                  #                                        LONGCALL TO BE RESTARTED
060148,000107: 
060149,000108:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
060150,000109:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
060151,000110: 
060152,000111:                                                                                                  #        TL0 1AD XXX CJW GGG
060153,000112: 
060154,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
060155,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
060156,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 1404

060158,000117:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
060159,000118:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
060160,000119:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
060161,000120:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
060162,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
060163,000122:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
060164,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
060165,000124:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
060166,000125: 
060167,000126:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
060168,000127:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
060169,000128:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
060170,000129:                                                                                                  #        AD+3                            ALSO GO TO AD+3
060171,000130: 
060172,000131:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO
060173,000132:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
060174,000133:                                                                                                  #        AD+2   -GENADR  DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
060175,000134:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
060176,000135:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
060177,000136:                                                                                                  #        AD+5                            BANK OF DELTIME. PHASCHNG RETURNS TO
060178,000137:                                                                                                  #                                        LOCATION AD+5
060179,000138: 
060180,000139:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
060181,000140:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
060182,000141: 
060183,000142:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
060184,000143:                                                                                                  #  BELOW AND ALSO START UP ONE FIXED RESTART, THAT IS EITHER AN G.1 OR A G.ODD OR THE FIRST ENTRY OF G.EVEN
060185,000144:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
060186,000145: 
060187,000146:                                                                                                  #        TL1 DAP PPP PPP GGG
060188,000147: 
060189,000148:                                                                                                  #  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
060190,000149:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
060191,000150:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
060192,000151:                                                                                                  #  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
060193,000152:                                                                                                  #  THE NEXT LOCATION.(THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
060194,000153: 
060195,000154:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
060196,000155:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
060197,000156:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
060198,000157:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
060199,000158:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
060200,000159:                                                                                                  #        AD+5                            GO TO AD+5
060201,000160: 
060202,000161:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
060203,000162:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
060204,000163:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
060205,000164:                                                                                                  #                                        BY MEANS OF GROUP 5
060206,000165: 

Page 1405

060208,000167: 
060209,000168:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
060210,000169: 
060211,000170: 
060212,000171:                                                                                                  #  SUMMARY OF BITS
060213,000172: 
060214,000173:                                                                                                  #  TYPE A                TL0 00P PPP PPP GGG
060215,000174: 
060216,000175:                                                                                                  #  TYPE B                TL1 DAP PPP PPP GGG
060217,000176: 
060218,000177:                                                                                                  #  TYPE C                TL0 1AD XXX CJW GGG
060219,000178: 
060220,000179: 

Page 1406

060222,000181: 
060223,000182:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
060224,000183:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
060225,000184:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
060226,000185: 
060227,000186:                                                                                                  #                TC      2PHSCHNG
060228,000187:                                                                                                  #                OCT     XXXXX
060229,000188:                                                                                                  #                OCT     YYYYY
060230,000189: 
060231,000190:                                                                                                  #  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
060232,000191:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
060233,000192:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
060234,000193: 
060235,000194:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
060236,000195:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
060237,000196:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
060238,000197:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
060239,000198:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
060240,000199: 
060241,000200:    5362                                           COUNT*   $$/PHASE                              
060242,000201:    5362           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
060243,000202:    5363           50002                           NDX      Q                                     
060244,000203:    5364           30000                           CA       0                                     
060245,000204:    5365           24002                           INCR     Q                                     
060246,000205:    5366           54072                           TS       TEMPP2                                
060247,000206: 
060248,000207:    5367           74774                           MASK     OCT7                                  
060249,000208:    5370           60000                           DOUBLE                                         
060250,000209:    5371           54071                           TS       TEMPG2                                
060251,000210: 
060252,000211:    5372           30072                           CA       TEMPP2                                
060253,000212:    5373           75056                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
060254,000213:    5374           00006                           EXTEND                                         
060255,000214:    5375           74755                           MP       BIT12                                 
060256,000215:    5376           56072                           XCH      TEMPP2                                
060257,000216: 
060258,000217:    5377           74752                           MASK     BIT15                                 
060259,000218:    5400           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
060260,000219: 
060261,000220:    5401           15405                           TCF      PHASCHNG   +3                         
060262,000221: 
060263,000222:    5402           00004        PHASCHNG           INHINT                                         
060264,000223:    5403           34770                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
060265,000224:    5404           54066                           TS       TEMPSW2                               
060266,000225: 
060267,000226:    5405           50002                 +3        NDX      Q                                     
060268,000227:    5406           30000                           CA       0                                     
060269,000228:    5407           24002                           INCR     Q                                     
060270,000229:    5410           54065                           TS       TEMPSW                                

Page 1407

060272,000231:    5411           00006                           EXTEND                                         
060273,000232:    5412           35415                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
060274,000233:    5413           52006                           DTCB                                           
060275,000234: 
060276,000235:    5414  E3,1400                                  EBANK=   LST1                                  
060277,000236:    5414           02473 20063  ADRPCHN2           2CADR    PHSCHNG2                              
060278,000237: 
060279,000238: 
060280,000239:    5416           22073        ONEORTWO           LXCH     TEMPBBCN                              
060281,000240:    5417           22006                           LXCH     BBANK                                 
060282,000241:    5420           22073                           LXCH     TEMPBBCN                              
060283,000242: 
060284,000243:    5421           75053                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
060285,000244:    5422           10000                           CCS      A                                     
060286,000245:    5423           15464                           TCF      CHECKB                                #  IT IS OF TYPE :B:
060287,000246: 
060288,000247:    5424           30062                           CA       TEMPP                                 
060289,000248:    5425           74762                           MASK     BIT7                                  
060290,000249:    5426           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
060291,000250:    5427           15451                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
060292,000251: 
060293,000252:    5430           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
060294,000253:    5431           31256                           CA       PHSPRDT1   -2                         
060295,000254:    5432           54070                 -1        TS       TEMPPR                                
060296,000255: 
060297,000256:    5433           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
060298,000257:    5434           74761                           MASK     BIT8                                  
060299,000258:    5435           10000                           CCS      A                                     
060300,000259:    5436           15455                           TCF      GETNEWNM                              
060301,000260: 
060302,000261:    5437           30002                           CA       Q                                     
060303,000262:    5440           54063                           TS       TEMPNM                                
060304,000263:    5441           30006                           CA       BB                                    
060305,000264:    5442           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
060306,000265:    5443           04007                           ROR      SUPERBNK                              
060307,000266:    5444           54064                           TS       TEMPBB                                
060308,000267: 
060309,000268:    5445           35450        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
060310,000269:    5446           22073                           LXCH     TEMPBBCN                              
060311,000270:    5447           52006                           DTCB                                           
060312,000271: 
060313,000272:    5450           02561        CON2ADR            GENADR   CON2                                  
060314,000273: 
060315,000274:    5451           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
060316,000275:    5452           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
060317,000276:    5453           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
060318,000277:    5454           15432                           TCF      CON1       -1                         
060319,000278: 
060320,000279:    5455           00006        GETNEWNM           EXTEND                                         

Page 1408

060322,000281:    5456           50002                           INDEX    Q                                     
060323,000282:    5457           30001                           DCA      0                                     
060324,000283:    5460           52064                           DXCH     TEMPNM                                
060325,000284:    5461           34767                           CA       TWO                                   
060326,000285:    5462           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
060327,000286: 
060328,000287:    5463           15445                           TCF      TOCON2                                
060329,000288: 
060330,000289:    5464     5053               OCT14000           EQUALS   PRIO14                                
060331,000290:    5464     0061               TEMPG              EQUALS   ITEMP1                                
060332,000291:    5464     0062               TEMPP              EQUALS   ITEMP2                                
060333,000292:    5464     0063               TEMPNM             EQUALS   ITEMP3                                
060334,000293:    5464     0064               TEMPBB             EQUALS   ITEMP4                                
060335,000294:    5464     0065               TEMPSW             EQUALS   ITEMP5                                
060336,000295:    5464     0066               TEMPSW2            EQUALS   ITEMP6                                
060337,000296:    5464     0070               TEMPPR             EQUALS   RUPTREG1                              
060338,000297:    5464     0071               TEMPG2             EQUALS   RUPTREG2                              
060339,000298:    5464     0072               TEMPP2             EQUALS   RUPTREG3                              
060340,000299: 
060341,000300:    5464     0073               TEMPBBCN           EQUALS   RUPTREG4                              
060342,000301:    5464  0000006               BB                 EQUALS   BBANK                                 
060343,000302: 
060344,000303: 10,2000                                           SETLOC   PHASETAB                              
060345,000304: 10,2000                                           BANK                                           
060346,000305: 
060347,000306: 10,2473  E3,1436                                  EBANK=   PHSNAME1                              
060348,000307: 10,2473                                           COUNT*   $$/PHASE                              
060349,000308: 10,2473           22073        PHSCHNG2           LXCH     TEMPBBCN                              
060350,000309: 10,2474           30065                           CA       TEMPSW                                
060351,000310: 10,2475           74774                           MASK     OCT7                                  
060352,000311: 10,2476           60000                           DOUBLE                                         
060353,000312: 10,2477           54061                           TS       TEMPG                                 
060354,000313: 
060355,000314: 10,2500           30065                           CA       TEMPSW                                
060356,000315: 10,2501           75056                           MASK     OCT17770                              
060357,000316: 10,2502           00006                           EXTEND                                         
060358,000317: 10,2503           74755                           MP       BIT12                                 
060359,000318: 10,2504           54062                           TS       TEMPP                                 
060360,000319: 
060361,000320: 10,2505           30065                           CA       TEMPSW                                
060362,000321: 10,2506           74076                           MASK     OCT60000                              
060363,000322: 10,2507           56065                           XCH      TEMPSW                                
060364,000323: 10,2510           75053                           MASK     OCT14000                              
060365,000324: 10,2511           10000                           CCS      A                                     
060366,000325: 
060367,000326: 10,2512           15416                           TCF      ONEORTWO                              
060368,000327: 
060369,000328: 10,2513           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
060370,000329: 10,2514           50061                           NDX      TEMPG                                 

Page 1409

060372,000331: 10,2515           55154                           TS       PHASE1     -2                         
060373,000332: 
060374,000333: 10,2516           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
060375,000334: 10,2517           12533                           TCF      BELOW2                                #  IT:S A PHASCHNG
060376,000335: 
060377,000336: 10,2520           12521                           TCF      +1                                    #  IT:S A 2PHSCHNG
060378,000337: 10,2521           40072                           CS       TEMPP2                                
060379,000338: 10,2522           22072                           LXCH     TEMPP2                                
060380,000339: 10,2523           50071                           NDX      TEMPG2                                
060381,000340: 10,2524           53154                           DXCH     -PHASE1    -2                         
060382,000341: 
060383,000342: 10,2525           10066                           CCS      TEMPSW2                               
060384,000343: 10,2526           12527                           NOOP                                           #  CAN:T GET HERE
060385,000344: 10,2527           12533                           TCF      BELOW2                                
060386,000345: 
060387,000346: 10,2530           40025                           CS       TIME1                                 
060388,000347: 10,2531           50071                           NDX      TEMPG2                                
060389,000348: 10,2532           55255                           TS       TBASE1     -2                         
060390,000349: 
060391,000350: 10,2533           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
060392,000351: 10,2534           12547                           TCF      BELOW3                                #  SET LONGBASE ONLY
060393,000352: 10,2535           12552                           TCF      BELOW4                                #  SET NEITHER
060394,000353: 
060395,000354: 10,2536           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
060396,000355: 10,2537           50061                           NDX      TEMPG                                 
060397,000356: 10,2540           55255                           TS       TBASE1     -2                         
060398,000357: 
060399,000358: 10,2541           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
060400,000359: 10,2542           62545                           AD       BIT14COM                              
060401,000360: 10,2543           10000                           CCS      A                                     
060402,000361: 10,2544           12545                           NOOP                                           #  ***** CANT GET HERE *****
060403,000362: 10,2545           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
060404,000363: 10,2546           12552                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
060405,000364: 
060406,000365: 10,2547           00006        BELOW3             EXTEND                                         #  SET LONGBASE
060407,000366: 10,2550           30025                           DCA      TIME2                                 
060408,000367: 10,2551           53303                           DXCH     LONGBASE                              
060409,000368: 
060410,000369: 10,2552           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
060411,000370: 10,2553           50061                           NDX      TEMPG                                 
060412,000371: 10,2554           55153                           TS       -PHASE1    -2                         
060413,000372: 
060414,000373: 10,2555           30002                           CA       Q                                     
060415,000374: 10,2556           22073                           LXCH     TEMPBBCN                              
060416,000375: 10,2557           00003                           RELINT                                         
060417,000376: 10,2560           52006                           DTCB                                           
060418,000377: 10,2561           22073        CON2               LXCH     TEMPBBCN                              
060419,000378: 
060420,000379: 10,2562           30062                           CA       TEMPP                                 
060421,000380: 10,2563           50061                           NDX      TEMPG                                 

Page 1410

060423,000382: 10,2564           55154                           TS       PHASE1     -2                         
060424,000383: 
060425,000384: 10,2565           30070                           CA       TEMPPR                                
060426,000385: 10,2566           50061                           NDX      TEMPG                                 
060427,000386: 10,2567           55256                           TS       PHSPRDT1   -2                         
060428,000387: 
060429,000388: 10,2570           00006                           EXTEND                                         
060430,000389: 10,2571           30064                           DCA      TEMPNM                                
060431,000390: 10,2572           50061                           NDX      TEMPG                                 
060432,000391: 10,2573           53435                           DXCH     PHSNAME1   -2                         
060433,000392: 
060434,000393: 10,2574           12516                           TCF      BELOW1                                
060435,000394: 
060436,000395:    4000                                           SETLOC   FFTAG1                                
060437,000396:    4000                                           BANK                                           
060438,000397: 
060439,000398:    5464                                           COUNT*   $$/PHASE                              
060440,000399:    5464           74755        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060441,000400:    5465           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060442,000401:    5466           15451                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060443,000402: 
060444,000403:    5467           15430                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY

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