Source Code

These source-code files are part of a reconstructed copy of Skylark 048, the Block II Command Module (CM) Apollo Guidance Computer (AGC) software for the Skylab-2, Skylab-3, Skylab-4, and Apollo-Soyuz Test Project missions.

They have been created via disassembly of binary dumps of the original core rope memory modules actually flown on Skylab-2, part numbers 2010802-541, 2010802-551, 2010802-561, 2010802-571, 2010802-581, and 2010802-591. Access to these modules was provided by the New Mexico Museum of Space History, who we are much indebted to.

The source code for the Apollo 15, 16, and 17 software, Artemis 072, was used as a starting point. Heavy use was made of TRW 4900.5-244, Programmed Guidance Equations for Skylark Command Module Earth Orbital Program, dated 14 February 1972. This document contains pseudocode of essentially all of Skylark, using original program labels which have been copied for this source reconstruction.

Since only binary dumps (rather than listings) of Skylark are available as source material, all comments and labels are approximate. They have been taken from the Programmed Guidance Equations or other AGC programs where possible, or, in some places, written from scratch to match what we believe would have been in the original listing.

056235,000002:                                                                                                  ## Copyright:   Public domain.
056236,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
056237,000004:                                                                                                  ## Purpose:     A section of Skylark revision 048.
056238,000005:                                                                                                  ##              It is part of the source code for the Apollo Guidance Computer (AGC)
056239,000006:                                                                                                  ##              for Skylab-2, Skylab-3, Skylab-4, and ASTP. No original listings of
056240,000007:                                                                                                  ##              this software are available; instead, this file was created via
056241,000008:                                                                                                  ##              disassembly of dumps of the core rope modules actually flown on
056242,000009:                                                                                                  ##              Skylab-2. Access to these modules was provided by the New Mexico
056243,000010:                                                                                                  ##              Museum of Space History.
056244,000011:                                                                                                  ## Assembler:   yaYUL
056245,000012:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
056246,000013:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
056247,000014:                                                                                                  ## Mod history: 2023-09-04 MAS  Created from Artemis 072.
056248,000015: 
056249,000016: 
056250,000017:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
056251,000018: 
056252,000019:    4000                                           SETLOC   FFTAG1                                
056253,000020:    4000                                           BANK                                           
056254,000021: 
056255,000022:    5357                                           COUNT*   $$/PHASE                              
056256,000023:    5357           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG. ENTRY FOR MODE IN FIXED.
056257,000024:    5360           30000                           CAF      0                                     
056258,000025:    5361           24002                           INCR     Q                                     
056259,000026: 
056260,000027:    5362           55204        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
056261,000028:    5363           35366        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
056262,000029:    5364           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
056263,000030:    5365           14671                           TCF      BANKJUMP                              #  PUTS Q INTO A
056264,000031:    5366           20343                           CADR     SETUPDSP                              
056265,000032: 
056266,000033:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1. OTHERWISE RETURN TO CALLER +2.
056267,000034: 
056268,000035:    5367           50002        CHECKMM            INDEX    Q                                     
056269,000036:    5370           40000                           CS       0                                     
056270,000037:    5371           61204                           AD       MODREG                                
056271,000038:    5372           00006                           EXTEND                                         
056272,000039:    5373           16710                           BZF      Q+2                                   
056273,000040:    5374           16706                           TCF      Q+1                                   #  NO MATCH
056274,000041: 
056275,000042: 10,2000                                           SETLOC   PHASETAB                              
056276,000043: 10,2000                                           BANK                                           
056277,000044: 
056278,000045: 10,2343                                           COUNT*   $$/PHASE                              
056279,000046: 10,2343           00004        SETUPDSP           INHINT                                         
056280,000047: 10,2344           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
056281,000048: 10,2345           05133                           TC       NOVAC30                               #  EITHER A TASK OR JOB CAN COMETO NEWMODEX
056282,000049: 10,2346     1204                                  EBANK=   MODREG                                
056283,000050: 10,2346           03401 60102                     2CADR    DSPMMJOB                              
056284,000051: 
056285,000052: 10,2350           52071                           DXCH     RUPTREG1                              
056286,000053: 10,2351           00003                           RELINT                                         
056287,000054: 10,2352           52006                           DXCH     Z                                     #  RETURN
056288,000055: 
056289,000056: 10,2353  40,3401               DSPMMJOB           EQUALS   DSPMMJB                               
056290,000057: 
056291,000058:    4000                                           SETLOC   FFTAG1                                
056292,000059:    4000                                           BANK                                           
056293,000060: 
056294,000061:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
056295,000062:                                                                                                  #  A, TYPE B, AND TYPE C. THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
056296,000063: 
056297,000064:                                                                                                  #                TC      PHASCHNG
056298,000065:                                                                                                  #                OCT     XXXXX
056299,000066: 
056300,000067:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
056301,000068:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
056302,000069: 
056303,000070:                                                                                                  #        G.0             INACTIVE, WILLNOT PERMIT A GROUP G RESTART
056304,000071:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
056305,000072:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
056306,000073:                                                                                                  #                        LONGCALL TO BE RESTARTED.
056307,000074:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
056308,000075: 
056309,000076:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
056310,000077: 
056311,000078:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
056312,000079: 
056313,000080:                                                                                                  #  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,
056314,000081:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.              IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
056315,000082:                                                                                                  #  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
056316,000083:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
056317,000084: 
056318,000085:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
056319,000086:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
056320,000087: 
056321,000088:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
056322,000089:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
056323,000090: 
056324,000091:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
056325,000092:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
056326,000093:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
056327,000094:                                                                                                  #                                        LOCATION
056328,000095:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
056329,000096:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
056330,000097:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
056331,000098:                                                                                                  #                                        SHOULD BE A LONGCALL)
056332,000099:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
056333,000100:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
056334,000101:                                                                                                  #                                        LONGCALL TO BE RESTARTED
056335,000102: 
056336,000103:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
056337,000104:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION. THE BITS ARE AS FOLLOWS,
056338,000105: 
056339,000106:                                                                                                  #        TL0 1AD XXX CJW GGG
056340,000107: 
056341,000108:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
056342,000109:                                                                                                  #  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
056343,000110:                                                                                                  #  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,
056344,000111:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION. IF D IS SET TO 1, A PRIORITY
056345,000112:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
056346,000113:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
056347,000114:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
056348,000115:                                                                                                  #  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
056349,000116:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
056350,000117:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
056351,000118:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
056352,000119: 
056353,000120:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
056354,000121:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
056355,000122:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
056356,000123:                                                                                                  #        AD+3                            ALSO GO TO AD+3
056357,000124: 
056358,000125:                                                                                                  #        AD      TC      PHASCHNG        GROUP  1 WOULD CAUSE CAUSE CALLCALL TO
056359,000126:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
056360,000127:                                                                                                  #        AD+2   -GENADR  DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
056361,000128:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTATIME STORED IN DELTIME.  THE
056362,000129:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
056363,000130:                                                                                                  #        AD+5                            BANK OF DELTIME. PHASCHNG RETURNS TO
056364,000131:                                                                                                  #                                        LOCATION AD+5
056365,000132: 
056366,000133:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
056367,000134:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
056368,000135: 
056369,000136:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES. IT WILL START UP A JOB AS INDICATED
056370,000137:                                                                                                  #  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
056371,000138:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
056372,000139: 
056373,000140:                                                                                                  #        TL1 DAP PPP PPP GGG
056374,000141: 
056375,000142:                                                                                                  #  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
056376,000143:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127. 1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
056377,000144:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
056378,000145:                                                                                                  #  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
056379,000146:                                                                                                  #  THE NEXT LOCATION.(THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
056380,000147: 
056381,000148:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
056382,000149:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
056383,000150:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
056384,000151:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
056385,000152:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
056386,000153:                                                                                                  #        AD+5                            GO TO AD+5
056387,000154: 
056388,000155:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
056389,000156:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
056390,000157:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
056391,000158:                                                                                                  #                                        BY MEANS OF GROUP 5
056392,000159: 
056393,000160: 
056394,000161:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
056395,000162: 
056396,000163: 
056397,000164:                                                                                                  #  SUMMARY OF BITS
056398,000165: 
056399,000166:                                                                                                  #  TYPE A                TL0 00P PPP PPP GGG
056400,000167: 
056401,000168:                                                                                                  #  TYPE B                TL1 DAP PPP PPP GGG
056402,000169: 
056403,000170:                                                                                                  #  TYPE C                TL0 1AD XXX CJW GGG
056404,000171: 
056405,000172: 
056406,000173: 
056407,000174:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
056408,000175:                                                                                                  #  GROUP. FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5. ALL 2PHSCHNG
056409,000176:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
056410,000177: 
056411,000178:                                                                                                  #                TC      2PHSCHNG
056412,000179:                                                                                                  #                OCT     XXXXX
056413,000180:                                                                                                  #                OCT     YYYYY
056414,000181: 
056415,000182:                                                                                                  #  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
056416,000183:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
056417,000184:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION. A COUPLE OF EXAMPLES MAY HELP,
056418,000185: 
056419,000186:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
056420,000187:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
056421,000188:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
056422,000189:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
056423,000190:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
056424,000191: 
056425,000192:    5375                                           COUNT*   $$/PHASE                              
056426,000193:    5375           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
056427,000194:    5376           50002                           NDX      Q                                     
056428,000195:    5377           30000                           CA       0                                     
056429,000196:    5400           24002                           INCR     Q                                     
056430,000197:    5401           54072                           TS       TEMPP2                                
056431,000198: 
056432,000199:    5402           75005                           MASK     OCT7                                  
056433,000200:    5403           60000                           DOUBLE                                         
056434,000201:    5404           54071                           TS       TEMPG2                                
056435,000202: 
056436,000203:    5405           30072                           CA       TEMPP2                                
056437,000204:    5406           75071                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
056438,000205:    5407           00006                           EXTEND                                         
056439,000206:    5410           74766                           MP       BIT12                                 
056440,000207:    5411           56072                           XCH      TEMPP2                                
056441,000208: 
056442,000209:    5412           74763                           MASK     BIT15                                 
056443,000210:    5413           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
056444,000211: 
056445,000212:    5414           15420                           TCF      PHASCHNG   +3                         
056446,000213: 
056447,000214:    5415           00004        PHASCHNG           INHINT                                         
056448,000215:    5416           35001                           CA       ONE                                   #  INDICATESWE CAME FROM A PHASCHNG ENTRY
056449,000216:    5417           54066                           TS       TEMPSW2                               
056450,000217: 
056451,000218:    5420           50002                 +3        NDX      Q                                     
056452,000219:    5421           30000                           CA       0                                     
056453,000220:    5422           24002                           INCR     Q                                     
056454,000221:    5423           54065                           TS       TEMPSW                                
056455,000222:    5424           00006                           EXTEND                                         
056456,000223:    5425           35430                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
056457,000224:    5426           52006                           DTCB                                           
056458,000225: 
056459,000226:    5427  E3,1400                                  EBANK=   LST1                                  
056460,000227:    5427           02353 20063  ADRPCHN2           2CADR    PHSCHNG2                              
056461,000228: 
056462,000229: 
056463,000230:    5431           22073        ONEORTWO           LXCH     TEMPBBCN                              
056464,000231:    5432           22006                           LXCH     BBANK                                 
056465,000232:    5433           22073                           LXCH     TEMPBBCN                              
056466,000233: 
056467,000234:    5434           75065                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
056468,000235:    5435           10000                           CCS      A                                     
056469,000236:    5436           15477                           TCF      CHECKB                                #  IT IS OF TYPE :B:
056470,000237: 
056471,000238:    5437           30062                           CA       TEMPP                                 
056472,000239:    5440           74773                           MASK     BIT7                                  
056473,000240:    5441           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
056474,000241:    5442           15464                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
056475,000242: 
056476,000243:    5443           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
056477,000244:    5444           31246                           CA       PHSPRDT1   -2                         
056478,000245:    5445           54070                 -1        TS       TEMPPR                                
056479,000246: 
056480,000247:    5446           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
056481,000248:    5447           74772                           MASK     BIT8                                  
056482,000249:    5450           10000                           CCS      A                                     
056483,000250:    5451           15470                           TCF      GETNEWNM                              
056484,000251: 
056485,000252:    5452           30002                           CA       Q                                     
056486,000253:    5453           54063                           TS       TEMPNM                                
056487,000254:    5454           30006                           CA       BB                                    
056488,000255:    5455           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
056489,000256:    5456           04007                           ROR      SUPERBNK                              
056490,000257:    5457           54064                           TS       TEMPBB                                
056491,000258: 
056492,000259:    5460           35463        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
056493,000260:    5461           22073                           LXCH     TEMPBBCN                              
056494,000261:    5462           52006                           DTCB                                           
056495,000262: 
056496,000263:    5463           02441        CON2ADR            GENADR   CON2                                  
056497,000264: 
056498,000265:    5464           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
056499,000266:    5465           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
056500,000267:    5466           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
056501,000268:    5467           15445                           TCF      CON1       -1                         
056502,000269: 
056503,000270:    5470           00006        GETNEWNM           EXTEND                                         
056504,000271:    5471           50002                           INDEX    Q                                     
056505,000272:    5472           30001                           DCA      0                                     
056506,000273:    5473           52064                           DXCH     TEMPNM                                
056507,000274:    5474           35000                           CA       TWO                                   
056508,000275:    5475           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
056509,000276: 
056510,000277:    5476           15460                           TCF      TOCON2                                
056511,000278: 
056512,000279:    5477     5065               OCT14000           EQUALS   PRIO14                                
056513,000280:    5477     0061               TEMPG              EQUALS   ITEMP1                                
056514,000281:    5477     0062               TEMPP              EQUALS   ITEMP2                                
056515,000282:    5477     0063               TEMPNM             EQUALS   ITEMP3                                
056516,000283:    5477     0064               TEMPBB             EQUALS   ITEMP4                                
056517,000284:    5477     0065               TEMPSW             EQUALS   ITEMP5                                
056518,000285:    5477     0066               TEMPSW2            EQUALS   ITEMP6                                
056519,000286:    5477     0070               TEMPPR             EQUALS   RUPTREG1                              
056520,000287:    5477     0071               TEMPG2             EQUALS   RUPTREG2                              
056521,000288:    5477     0072               TEMPP2             EQUALS   RUPTREG3                              
056522,000289: 
056523,000290:    5477     0073               TEMPBBCN           EQUALS   RUPTREG4                              
056524,000291:    5477  0000006               BB                 EQUALS   BBANK                                 
056525,000292: 
056526,000293: 10,2000                                           SETLOC   PHASETAB                              
056527,000294: 10,2000                                           BANK                                           
056528,000295: 
056529,000296: 10,2353  E3,1436                                  EBANK=   PHSNAME1                              
056530,000297: 10,2353                                           COUNT*   $$/PHASE                              
056531,000298: 10,2353           22073        PHSCHNG2           LXCH     TEMPBBCN                              
056532,000299: 10,2354           30065                           CA       TEMPSW                                
056533,000300: 10,2355           75005                           MASK     OCT7                                  
056534,000301: 10,2356           60000                           DOUBLE                                         
056535,000302: 10,2357           54061                           TS       TEMPG                                 
056536,000303: 
056537,000304: 10,2360           30065                           CA       TEMPSW                                
056538,000305: 10,2361           75071                           MASK     OCT17770                              
056539,000306: 10,2362           00006                           EXTEND                                         
056540,000307: 10,2363           74766                           MP       BIT12                                 
056541,000308: 10,2364           54062                           TS       TEMPP                                 
056542,000309: 
056543,000310: 10,2365           30065                           CA       TEMPSW                                
056544,000311: 10,2366           74076                           MASK     OCT60000                              
056545,000312: 10,2367           56065                           XCH      TEMPSW                                
056546,000313: 10,2370           75065                           MASK     OCT14000                              
056547,000314: 10,2371           10000                           CCS      A                                     
056548,000315: 
056549,000316: 10,2372           15431                           TCF      ONEORTWO                              
056550,000317: 
056551,000318: 10,2373           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
056552,000319: 10,2374           50061                           NDX      TEMPG                                 
056553,000320: 10,2375           55144                           TS       PHASE1     -2                         
056554,000321: 
056555,000322: 10,2376           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
056556,000323: 10,2377           12413                           TCF      BELOW2                                #  IT:S A PHASCHNG
056557,000324: 
056558,000325: 10,2400           12401                           TCF      +1                                    #  IT:S A 2PHSCHNG
056559,000326: 10,2401           40072                           CS       TEMPP2                                
056560,000327: 10,2402           22072                           LXCH     TEMPP2                                
056561,000328: 10,2403           50071                           NDX      TEMPG2                                
056562,000329: 10,2404           53144                           DXCH     -PHASE1    -2                         
056563,000330: 
056564,000331: 10,2405           10066                           CCS      TEMPSW2                               
056565,000332: 10,2406           12407                           NOOP                                           #  CAN:T GET HERE
056566,000333: 10,2407           12413                           TCF      BELOW2                                
056567,000334: 
056568,000335: 10,2410           40025                           CS       TIME1                                 
056569,000336: 10,2411           50071                           NDX      TEMPG2                                
056570,000337: 10,2412           55245                           TS       TBASE1     -2                         
056571,000338: 
056572,000339: 10,2413           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
056573,000340: 10,2414           12427                           TCF      BELOW3                                #  SET LONGBASE ONLY
056574,000341: 10,2415           12432                           TCF      BELOW4                                #  SET NEITHER
056575,000342: 
056576,000343: 10,2416           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
056577,000344: 10,2417           50061                           NDX      TEMPG                                 
056578,000345: 10,2420           55245                           TS       TBASE1     -2                         
056579,000346: 
056580,000347: 10,2421           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
056581,000348: 10,2422           62425                           AD       BIT14COM                              
056582,000349: 10,2423           10000                           CCS      A                                     
056583,000350: 10,2424           12425                           NOOP                                           #  ***** CANT GET HERE *****
056584,000351: 10,2425           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
056585,000352: 10,2426           12432                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
056586,000353: 
056587,000354: 10,2427           00006        BELOW3             EXTEND                                         #  SET LONGBASE
056588,000355: 10,2430           30025                           DCA      TIME2                                 
056589,000356: 10,2431           53273                           DXCH     LONGBASE                              
056590,000357: 
056591,000358: 10,2432           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
056592,000359: 10,2433           50061                           NDX      TEMPG                                 
056593,000360: 10,2434           55143                           TS       -PHASE1    -2                         
056594,000361: 
056595,000362: 10,2435           30002                           CA       Q                                     
056596,000363: 10,2436           22073                           LXCH     TEMPBBCN                              
056597,000364: 10,2437           00003                           RELINT                                         
056598,000365: 10,2440           52006                           DTCB                                           
056599,000366: 10,2441           22073        CON2               LXCH     TEMPBBCN                              
056600,000367: 
056601,000368: 10,2442           30062                           CA       TEMPP                                 
056602,000369: 10,2443           50061                           NDX      TEMPG                                 
056603,000370: 10,2444           55144                           TS       PHASE1     -2                         
056604,000371: 
056605,000372: 10,2445           30070                           CA       TEMPPR                                
056606,000373: 10,2446           50061                           NDX      TEMPG                                 
056607,000374: 10,2447           55246                           TS       PHSPRDT1   -2                         
056608,000375: 
056609,000376: 10,2450           00006                           EXTEND                                         
056610,000377: 10,2451           30064                           DCA      TEMPNM                                
056611,000378: 10,2452           50061                           NDX      TEMPG                                 
056612,000379: 10,2453           53435                           DXCH     PHSNAME1   -2                         
056613,000380: 
056614,000381: 10,2454           12376                           TCF      BELOW1                                
056615,000382: 
056616,000383:    4000                                           SETLOC   FFTAG1                                
056617,000384:    4000                                           BANK                                           
056618,000385: 
056619,000386:    5477                                           COUNT*   $$/PHASE                              
056620,000387:    5477           74766        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
056621,000388:    5500           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
056622,000389:    5501           15464                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
056623,000390: 
056624,000391:    5502           15443                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY

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