Source Code

This is the source-code for the Apollo 9 Command Module's Guidance Computer. These files were derived originally from the scan from MIT's Dibner Institute's now-discontinued website titled "History of Recent Science and Technology", which in turn was originally created by Gary Neff, though his high-quality scans were unfortunately reduced in legibility when presented online. The markings on the front of the printout imply that it was the original AGC developer Norm Brodeur's copy. A scan by Ron Burkey has superceded it, made from a more-legible copy from the collection of original AGC developer Fred Martin. The source code was transcribed from those images by Ron Burkey. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	ASSEMBLE REVISION 249 OF AGC PROGRAM COLOSSUS BY NASA 2021111-041
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

060095,000002:                                                                                                  ## Copyright:   Public domain.
060096,000003:                                                                                                  ## Filename:    PHASE_TABLE_MAINTENANCE.agc
060097,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus, build 249.
060098,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
060099,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 9.
060100,000007:                                                                                                  ## Assembler:   yaYUL
060101,000008:                                                                                                  ## Reference:   Starts on p. 1372
060102,000009:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
060103,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo.
060104,000011:                                                                                                  ## Mod history: 08/30/04 RSB.   Adapted from corresponding Luminary131 file.
060105,000012:                                                                                                  ##              2011-05-07 JL   Flagged SBANK= workarounds for future removal. 
060106,000013:                                                                                                  ##                              Removed workaround.
060107,000014:                                                                                                  ##              2017-01-06 RSB  Page numbers now agree with those on the
060108,000015:                                                                                                  ##                              original harcopy, as opposed to the PDF page
060109,000016:                                                                                                  ##                              numbers in 1701.pdf.
060110,000017:                                                                                                  ##              2017-01-18 RSB  Cross-diff'd comment text (not whitespace)
060111,000018:                                                                                                  ##                              vs the already-proofed corresponding Colossus
060112,000019:                                                                                                  ##                              237 and Comanche 55 source-code files
060113,000020:                                                                                                  ##                              and corrected errors found.
060114,000021:                                                                                                  ##              2017-06-17 MAS  Globally removed all SBANK= workarounds.
060115,000022:                                                                                                  ##
060116,000023:                                                                                                  ## The contents of the "Colossus249" files, in general, are transcribed 
060117,000024:                                                                                                  ## from a scanned copy of the program listing.  Notations on this
060118,000025:                                                                                                  ## document read, in part:
060119,000026:                                                                                                  ##
060120,000027:                                                                                                  ##      Assemble revision 249 of AGC program Colossus by NASA
060121,000028:                                                                                                  ##      2021111-041.  October 28, 1968.  
060122,000029:                                                                                                  ##
060123,000030:                                                                                                  ##      This AGC program shall also be referred to as
060124,000031:                                                                                                  ##                              Colossus 1A
060125,000032:                                                                                                  ##
060126,000033:                                                                                                  ##      Prepared by
060127,000034:                                                                                                  ##                      Massachusetts Institute of Technology
060128,000035:                                                                                                  ##                      75 Cambridge Parkway
060129,000036:                                                                                                  ##                      Cambridge, Massachusetts
060130,000037:                                                                                                  ##      under NASA contract NAS 9-4065.
060131,000038:                                                                                                  ##
060132,000039:                                                                                                  ## Refer directly to the online document mentioned above for further information.
060133,000040:                                                                                                  ## Please report any errors (relative to the scanned pages) to info@sandroid.org.
060134,000041:                                                                                                  ##
060135,000042:                                                                                                  ## In some cases, where the source code for Luminary 131 overlaps that of 
060136,000043:                                                                                                  ## Colossus 249, this code is instead copied from the corresponding Luminary 131
060137,000044:                                                                                                  ## source file, and then is proofed to incorporate any changes.
060138,000045: 

Page 1372

060140,000047:                                                                                                  #  SUBROUTINE TO UPDATE THE PROGRAM NUMBER DISPLAY ON THE DSKY.
060141,000048: 
060142,000049: 43,3722                                           COUNT    02/PHASE                              
060143,000050:    5243                                           BLOCK    02                                    
060144,000051:    4000                                           SETLOC   FFTAG1                                
060145,000052:    4000                                           BANK                                           
060146,000053: 
060147,000054:    5243           50002        NEWMODEX           INDEX    Q                                     #  UPDATE MODREG.  ENTRY FOR MODE IN FIXED.
060148,000055:    5244           30000                           CAF      0                                     
060149,000056:    5245           24002                           INCR     Q                                     
060150,000057: 
060151,000058:    5246           55011        NEWMODEA           TS       MODREG                                #  ENTRY FOR MODE IN A.
060152,000059:    5247           35252        MMDSPLAY           CAF      +3                                    #  DISPLAY MAJOR MODE.
060153,000060:    5250           22006        PREBJUMP           LXCH     BBANK                                 #  PUTS BBANK IN L
060154,000061:    5251           14577                           TCF      BANKJUMP                              #  PUTS Q INTO A
060155,000062:    5252           20344                           CADR     SETUPDSP                              
060156,000063: 
060157,000064:                                                                                                  #  RETURN TO CALLER +3 IF MODE = THAT AT CALLER +1.  OTHERWISE RETURN TO CALLER +2.
060158,000065: 
060159,000066:    5253           50002        CHECKMM            INDEX    Q                                     
060160,000067:    5254           40000                           CS       0                                     
060161,000068:    5255           61011                           AD       MODREG                                
060162,000069:    5256           00006                           EXTEND                                         
060163,000070:    5257           16710                           BZF      Q+2                                   
060164,000071:    5260           16706                           TCF      Q+1                                   #  NO MATCH
060165,000072: 
060166,000073:    5261     6711               TCQ                =        Q+2        +1                         
060167,000074: 
060168,000075: 14,3744                                           BANK     14                                    
060169,000076: 10,2000                                           SETLOC   PHASETAB                              
060170,000077: 10,2000                                           BANK                                           
060171,000078: 
060172,000079: 10,2344                                           COUNT    10/PHASE                              
060173,000080: 
060174,000081: 10,2344           00004        SETUPDSP           INHINT                                         
060175,000082: 10,2345           52071                           DXCH     RUPTREG1                              #  SAVE CALLER-S RETURN 2CADR
060176,000083: 10,2346           34371                           CAF      PRIO30                                #        EITHER A TASK OR JOB CAN COME TO
060177,000084: 10,2347           05027                           TC       NOVAC                                 #        NEWMODE X
060178,000085: 10,2350     1011                                  EBANK=   MODREG                                
060179,000086: 10,2350           03435 60102                     2CADR    DSPMMJOB                              
060180,000087: 
060181,000088: 10,2352           52071                           DXCH     RUPTREG1                              
060182,000089: 10,2353           00003                           RELINT                                         
060183,000090: 10,2354           52006                           DXCH     Z                                     #  RETURN
060184,000091: 
060185,000092: 10,2355  40,3435               DSPMMJOB           EQUALS   DSPMMJB                               
060186,000093: 
060187,000094:    5261                                           BLOCK    02                                    

Page 1373

060189,000096:    4000                                           SETLOC   FFTAG1                                
060190,000097:    4000                                           BANK                                           
060191,000098: 

Page 1374

060193,000100:                                                                                                  #  PHASCHNG IS THE MAIN WAY OF MAKING PHASE CHANGES FOR RESTARTS.  THERE ARE THREE FORMS OF PHASCHNG, KNOWN AS TYPE
060194,000101:                                                                                                  #  A, TYPE B, AND TYPE C.  THEY ARE ALL CALLED AS FOLLOWS, WHERE OCT XXXXX CONTAINS THE PHASE INFORMATION,
060195,000102:                                                                                                  #                TC      PHASCHNG
060196,000103:                                                                                                  #                OCT     XXXXX
060197,000104:                                                                                                  #  TYPE A IS CONCERNED WITH FIXED PHASE CHANGES, THAT IS, PHASE INFORMATION THAT IS STORED PERMANENTLY.  THESE
060198,000105:                                                                                                  #  OPTIONS ARE, WHERE G STANDS FOR A GROUP AND .X FOR THE PHASE,
060199,000106:                                                                                                  #        G.0             INACTIVE, WILL NOT PERMIT A GROUP G RESTART
060200,000107:                                                                                                  #        G.1             WILL CAUSE THE LAST DISPLAY TO BE REACTIVATED, USED MAINLY IN MANNED FLIGHTS
060201,000108:                                                                                                  #        G.EVEN          A DOUBLE TABLE RESTART, CAN CAUSE ANY COMBINATION OF TWO JOBS, TASKS, AND/OR
060202,000109:                                                                                                  #                        LONGCALL TO BE RESTARTED.
060203,000110:                                                                                                  #        G.ODD NOT .1    A SINGLE TABLE RESTART, CAN CAUSE EITHER A JOB, TASK, OR LONGCALL RESTART
060204,000111: 
060205,000112:                                                                                                  #  THIS INFORMATION IS PUT INTO THE OCTAL WORD AFTER TC PHASCHNG AS FOLLOWS
060206,000113:                                                                                                  #        TL0 00P PPP PPP GGG                                               ,
060207,000114:                                                                                                  #  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,
060208,000115:                                                                                                  #  OCTAL 0 - 127.  0:S MUST BE 0.  IF ONE WISHES TO HAVE THE TBASE OF GROUP G TO BE SET AT THIS TIME,
060209,000116:                                                                                                  #  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
060210,000117:                                                                                                  #  IT IS SET TO 0.  SOME EXAMPLES,
060211,000118:                                                                                                  #                TC      PHASCHNG        THIS WILL CAUSE GROUP 3 TO BE SET TO 0,
060212,000119:                                                                                                  #                OCT     00003           MAKING GROUP 3 INACTIVE
060213,000120: 
060214,000121:                                                                                                  #                TC      PHASCHNG        IF A RESTART OCCURS THIS WOULD CAUSE
060215,000122:                                                                                                  #                OCT     00012           GROUP 2 TO RESTART THE LAST DISPLAY
060216,000123: 
060217,000124:                                                                                                  #                TC      PHASCHNG        THIS SETS THE TBASE OF GROUP 4 AND IN
060218,000125:                                                                                                  #                OCT     40064           CASE OF A RESTART WOULD START UP THE TWO
060219,000126:                                                                                                  #                                        THINGS LOCATED IN THE DOUBLE 4.6 RESTART
060220,000127:                                                                                                  #                                        LOCATION
060221,000128: 
060222,000129:                                                                                                  #                TC      PHASCHNG        THIS SETS LONGBASE AND UPON A RESTART
060223,000130:                                                                                                  #                OCT     20135           CAUSES 5.13 TO BE RESTARTED (SINCE
060224,000131:                                                                                                  #                                        LONGBASE WAS SET THIS SINGLE ENTRY
060225,000132:                                                                                                  #                                        SHOULD BE A LONGCALL)
060226,000133: 
060227,000134:                                                                                                  #                TC      PHASCHNG        SINCE BOTH TBASE4 AND LONGBASE ARE SET,
060228,000135:                                                                                                  #                OCT     60124           4.12 SHOULD CONTAIN BOTH A TASK AND A
060229,000136:                                                                                                  #                                        LONGCALL TO BE RESTARTED
060230,000137: 
060231,000138:                                                                                                  #  TYPE C PHASCHNG CONTAINS THE VARIABLE TYPE OF PHASCHNG INFORMATION.  INSTEAD OF THE INFORMATION BEING IN A
060232,000139:                                                                                                  #  PERMANENT FORM, ONE STORES THE DESIRED RESTART INFORMATION IN A VARIABKE LOCATION.  THE BITS ARE AS FOLLOWS,
060233,000140:                                                                                                  #        TL0 1AD XXX CJW GGG
060234,000141:                                                                                                  #  WHERE EACH LETTER OR NUMBER STANDS FOR A BIT.  THE G:S STAND FOR THE GROUP, OCTAL 1 - 7.  IF THE RESTART IS TO
060235,000142:                                                                                                  #  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
060236,000143:                                                                                                  #  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 1375

060238,000145:                                                                                                  #  AND L FOR LONGBASE.  THE BITS A AND D ARE CONCERNED WITH THE VARIABLE INFORMATION.  IF D IS SET TO 1, A PRIORITY
060239,000146:                                                                                                  #  OR DELTA TIME WILL BE READ FROM THE NEXT LOCATION AFTER THE OCTAL INFORMATION, IF THIS IS TO BE INDIRECT, THAT
060240,000147:                                                                                                  #  IS, THE NAME OF A LOCATION COMT+INING THE INFORMATION (DELTA TIME ONLY), THEN THIS IS GIVEN AS THE -GENADR OF
060241,000148:                                                                                                  #  THAT LOCATION WHICH CONTAINS THE DELTA TIME.  IF THE OLD PRIORITY OR DELTA TIME IS TO BE USED, THAT WHICH IS
060242,000149:                                                                                                  #  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
060243,000150:                                                                                                  #  THAT WOULD BE RESTARTED DURING A RESTART IS THE NEXT LOCATION AFTER THE PHASE INFORMATION, THAT IS, EITHER
060244,000151:                                                                                                  #  (TC PHASCHNG) +2 OR +3, DEPENDING ON WHETHER D HAD BEEN SET OR NOT.  IF A IS SET TO 1, THEN THE ADDRESS THAT
060245,000152:                                                                                                  #  WOULD BE RESTARTED IS THE 2CADR THAT IS READ FROM THE NEXT TWO LOCATIONS.  EXAMPLES,
060246,000153:                                                                                                  #        AD      TC      PHASCHNG        THIS WOULD CAUSE LOCATION AD +3 TO BE
060247,000154:                                                                                                  #        AD+1    OCT     05023           RESTARTED BY GROUP THREE WITH A PRIORITY
060248,000155:                                                                                                  #        AD+2    OCT     23000           OF 23.  NOTE UPON RETURNING IT WOULD
060249,000156:                                                                                                  #        AD+3                            ALSO GO TO AD+3
060250,000157: 
060251,000158:                                                                                                  #        AD      TC      PHASCHNG        GROUP 1 WOULD CAUSE CAUSE CALLCALL TO
060252,000159:                                                                                                  #        AD+1    OCT     27441           BE STARTED AS A LONGCALL FROM THE TIME
060253,000160:                                                                                                  #        AD+2    -GENADR DELTIME         STORED IN LONGBASE (LONGBASE WAS SET) BY
060254,000161:                                                                                                  #        AD+3    2CADR   CALLCALL        A DELTA TIME STORED IN DELTIME.  THE
060255,000162:                                                                                                  #        AD+4                            BBCON OF THE 2CADR SHOULD CONTAIN THE E
060256,000163:                                                                                                  #        AD+5                            BANK OF DELTIME.  PHASCHNG RETURNS TO
060257,000164:                                                                                                  #                                        LOCATION AD+5
060258,000165: 
060259,000166:                                                                                                  #  NOTE THAT IF A VARIABLE PRIORITY IS GIVEN FOR A JOB, THE JOB WILL BE RESTARTED AS A NOVAC IF THE PRIORITY IS
060260,000167:                                                                                                  #  NEGATIVE, AS A FINDVAC IF THE PRIORITY IS POSITIVE.
060261,000168: 
060262,000169:                                                                                                  #  TYPE B PHASCHNG IS A COMBINATION OF VARIABLE AND FIXED PHASE CHANGES.  IT WILL START UP A JOB AS INDICATED
060263,000170:                                                                                                  #  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
060264,000171:                                                                                                  #  DOUBLE ENTRY.  THE BIT INFORMATION IS AS FOLLOWS,
060265,000172:                                                                                                  #        TL1 DAP PPP PPP GGG
060266,000173:                                                                                                  #  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
060267,000174:                                                                                                  #  PHASE INFORMATION, OCTAL 0 - 127.  1 MUST BE 1.  AND AGAIN T STANDS FOR THE TBASE AND L FOR LONGBASE.  D THIS
060268,000175:                                                                                                  #  TIME STANDS ONLY FOR PRIORITY SINCE THIS WILL BE CONSIDERED A JOB, AND IT MUST BE GIVEN DIRECTLY IF GIVEN.
060269,000176:                                                                                                  #  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
060270,000177:                                                                                                  #  THE NEXT LOCATION.  (THE RETURN LOCATION OF PHASCHNG) EXAMPLES,
060271,000178:                                                                                                  #        AD      TC      PHASCHNG        TBASE IS SET AND A RESTART CAUSE GROUP 3
060272,000179:                                                                                                  #        AD+1    OCT     56043           TO START THE JOB AJOBAJOB WITH PRIORITY
060273,000180:                                                                                                  #        AD+2    OCT     31000           31 AND THE FIRST ENTRY OF 3.4SPOT (WE CAN
060274,000181:                                                                                                  #        AD+3    2CADR   AJOBAJOB        ASSUME IT IS A TASK SINCE WE SET TBASE3)
060275,000182:                                                                                                  #        AD+4                            UPON RETURN FROM PHASCHNG CONTROL WOULD
060276,000183:                                                                                                  #        AD+5                            GO TO AD+5
060277,000184: 
060278,000185:                                                                                                  #        AD      TC      PHASCHNG        UPON A RESTART THE LAST DISPLAY WOULD BE
060279,000186:                                                                                                  #        AD+1    OCT     10015           RESTARTED AND A JOB WITH THE PREVIOUSLY
060280,000187:                                                                                                  #        AD+2                            STORED PRIORITY WOULD BE BEGUN AT AD+2
060281,000188:                                                                                                  #                                        BY MEANS OF GROUP 5

Page 1376

060283,000190:                                                                                                  #  THE NOVAC-FINDVAC CHOICE FOR JOBS HOLDS HERE ALSO - NEGATIVE PRIORITY CAUSES A NOVAC CALL, POSITIVE A FINDVAC.
060284,000191: 
060285,000192:                                                                                                  #  SUMMARY OF BITS
060286,000193:                                                                                                  #        TYPE A          TL0 00P PPP PPP GGG
060287,000194:                                                                                                  #        TYPE B          TL1 DAP PPP PPP GGG
060288,000195:                                                                                                  #        TYPE C          TL0 1AD XXX CJW GGG
060289,000196: 

Page 1377

060291,000198:                                                                                                  #  2PHSCHNG IS USED WHEN ONE WISHES TO START UP A GROUP OR CHANGE A GROUP WHILE UNDER THE CONTROL OF A DIFFERENT
060292,000199:                                                                                                  #  GROUP.  FOR EXAMPLE, CHANGE THE PHASE OF GROUP 3 WHILE THE PORTION OF THE PROGRAM IS UNDER GROUP 5.  ALL 2PHSCHNG
060293,000200:                                                                                                  #  CALLS ARE MADE IN THE FOLLOWING MANNER,
060294,000201:                                                                                                  #                TC      2PHSCHNG
060295,000202:                                                                                                  #                OCT     XXXXX
060296,000203:                                                                                                  #                OCT     YYYYY
060297,000204:                                                                                                  #  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
060298,000205:                                                                                                  #  DIFFERENCE --- NOTE- IF LONGBASE IS TO BE SET THIS INFORMATION IS GIVEN IN THE OCT YYYYY INFORMATION, IT WILL
060299,000206:                                                                                                  #  BE DISREGARDED IF GIVEN WITH THE OCT XXXXX INFORMATION.  A COUPLE OF EXAMPLES MAY HELP,
060300,000207:                                                                                                  #        AD      TC      2PHSCHNG        SET TBASE3 AND IF A RESTART OCCURS START
060301,000208:                                                                                                  #        AD+1    OCT     40083           THE TWO ENTRIES IN 3.8 TABLE LOCATION
060302,000209:                                                                                                  #        AD+2    OCT     05025           THIS IS OF TYPE C, SET THE JOB TO BE
060303,000210:                                                                                                  #        AD+3    OCT     18000           TO BE LOCATION AD+4, WITH A PRIORITY 18,
060304,000211:                                                                                                  #        AD+4                            FOR GROUP 5 PHASE INFORMATION
060305,000212: 
060306,000213:    5261                                           COUNT    02/PHASE                              
060307,000214: 
060308,000215:    5261           00004        2PHSCHNG           INHINT                                         #  THE ENTRY FOR A DOUBLE PHASE CHANGE
060309,000216:    5262           50002                           NDX      Q                                     
060310,000217:    5263           30000                           CA       0                                     
060311,000218:    5264           24002                           INCR     Q                                     
060312,000219:    5265           54072                           TS       TEMPP2                                
060313,000220: 
060314,000221:    5266           74716                           MASK     OCT7                                  
060315,000222:    5267           60000                           DOUBLE                                         
060316,000223:    5270           54071                           TS       TEMPG2                                
060317,000224: 
060318,000225:    5271           30072                           CA       TEMPP2                                
060319,000226:    5272           74765                           MASK     OCT17770                              #  NEED ONLY 1770, BUT WHY GET A NEW CONST.
060320,000227:    5273           00006                           EXTEND                                         
060321,000228:    5274           74677                           MP       BIT12                                 
060322,000229:    5275           56072                           XCH      TEMPP2                                
060323,000230: 
060324,000231:    5276           74674                           MASK     BIT15                                 
060325,000232:    5277           54066                           TS       TEMPSW2                               #  INDICATES WHETHER TO SET TBASE OR NOT
060326,000233: 
060327,000234:    5300           15304                           TCF      PHASCHNG   +3                         
060328,000235: 
060329,000236:    5301           00004        PHASCHNG           INHINT                                         
060330,000237:    5302           34712                           CA       ONE                                   #  INDICATES WE CAME FROM A PHASCHNG ENTRY
060331,000238:    5303           54066                           TS       TEMPSW2                               
060332,000239: 
060333,000240:    5304           50002                           NDX      Q                                     
060334,000241:    5305           30000                           CA       0                                     
060335,000242:    5306           24002                           INCR     Q                                     
060336,000243:    5307           54065                           TS       TEMPSW                                

Page 1378

060338,000245:    5310           00006                           EXTEND                                         
060339,000246:    5311           35314                           DCA      ADRPCHN2                              #  OFF TO SWITCHED BANK
060340,000247:    5312           52006                           DTCB                                           
060341,000248: 
060342,000249:    5313  E3,1400                                  EBANK=   LST1                                  
060343,000250:    5313           02355 20103  ADRPCHN2           2CADR    PHSCHNG2                              
060344,000251: 
060345,000252:    5315           22073        ONEORTWO           LXCH     TEMPBBCN                              
060346,000253:    5316           22006                           LXCH     BBANK                                 
060347,000254:    5317           22073                           LXCH     TEMPBBCN                              
060348,000255: 
060349,000256:    5320           74761                           MASK     OCT14000                              #  SEE WHAT KIND OF PHASE CHANGE IT IS
060350,000257:    5321           10000                           CCS      A                                     
060351,000258:    5322           15363                           TCF      CHECKB                                #  IT IS OF TYPE :B:
060352,000259: 
060353,000260:    5323           30062                           CA       TEMPP                                 
060354,000261:    5324           74704                           MASK     BIT7                                  
060355,000262:    5325           10000                           CCS      A                                     #  SHALL WE USE THE OLD PRIORITY
060356,000263:    5326           15350                           TCF      GETPRIO                               #  NO GET A NEW PRIORITY (OR DELTA T)
060357,000264: 
060358,000265:    5327           50061        OLDPRIO            NDX      TEMPG                                 #  USE THE OLD PRIORITY (OR DELTA T)
060359,000266:    5330           31052                           CA       PHSPRDT1   -2                         
060360,000267:    5331           54070                           TS       TEMPPR                                
060361,000268: 
060362,000269:    5332           30062        CON1               CA       TEMPP                                 #  SEE IF A 2CADR IS GIVEN
060363,000270:    5333           74703                           MASK     BIT8                                  
060364,000271:    5334           10000                           CCS      A                                     
060365,000272:    5335           15354                           TCF      GETNEWNM                              
060366,000273: 
060367,000274:    5336           30002                           CA       Q                                     
060368,000275:    5337           54063                           TS       TEMPNM                                
060369,000276:    5340           30006                           CA       BB                                    
060370,000277:    5341           00006                           EXTEND                                         #  PICK UP USERS SUPERBANK
060371,000278:    5342           04007                           ROR      SUPERBNK                              
060372,000279:    5343           54064                           TS       TEMPBB                                
060373,000280: 
060374,000281:    5344           35347        TOCON2             CA       CON2ADR                               #  BACK TO SWITCHED BANK
060375,000282:    5345           22073                           LXCH     TEMPBBCN                              
060376,000283:    5346           52006                           DTCB                                           
060377,000284: 
060378,000285:    5347           02443        CON2ADR            GENADR   CON2                                  
060379,000286: 
060380,000287:    5350           50002        GETPRIO            NDX      Q                                     #  DON:T CARE IF DIRECT OR INDIRECT
060381,000288:    5351           30000                           CA       0                                     #  LEAVE THAT DECISION TO RESTARTS
060382,000289:    5352           24002                           INCR     Q                                     #  OBTAIN RETURN ADDRESS
060383,000290:    5353           15331                           TCF      CON1       -1                         
060384,000291: 
060385,000292:    5354           00006        GETNEWNM           EXTEND                                         

Page 1379

060387,000294:    5355           50002                           INDEX    Q                                     
060388,000295:    5356           30001                           DCA      0                                     
060389,000296:    5357           52064                           DXCH     TEMPNM                                
060390,000297:    5360           34711                           CA       TWO                                   
060391,000298:    5361           26002                           ADS      Q                                     #  OBTAIN RETURN ADDRESS
060392,000299: 
060393,000300:    5362           15344                           TCF      TOCON2                                
060394,000301: 
060395,000302:    5363     4761               OCT14000           EQUALS   PRIO14                                
060396,000303:    5363     0061               TEMPG              EQUALS   ITEMP1                                
060397,000304:    5363     0062               TEMPP              EQUALS   ITEMP2                                
060398,000305:    5363     0063               TEMPNM             EQUALS   ITEMP3                                
060399,000306:    5363     0064               TEMPBB             EQUALS   ITEMP4                                
060400,000307:    5363     0065               TEMPSW             EQUALS   ITEMP5                                
060401,000308:    5363     0066               TEMPSW2            EQUALS   ITEMP6                                
060402,000309:    5363     0070               TEMPPR             EQUALS   RUPTREG1                              
060403,000310:    5363     0071               TEMPG2             EQUALS   RUPTREG2                              
060404,000311:    5363     0072               TEMPP2             EQUALS   RUPTREG3                              
060405,000312: 
060406,000313:    5363     0073               TEMPBBCN           EQUALS   RUPTREG4                              
060407,000314:    5363  0000006               BB                 EQUALS   BBANK                                 
060408,000315: 
060409,000316: 14,3744                                           BANK     14                                    
060410,000317: 10,2000                                           SETLOC   PHASETAB                              
060411,000318: 10,2000                                           BANK                                           
060412,000319: 
060413,000320: 10,2355  E3,1436                                  EBANK=   PHSNAME1                              
060414,000321: 10,2355                                           COUNT    10/PHASE                              
060415,000322: 
060416,000323: 10,2355           22073        PHSCHNG2           LXCH     TEMPBBCN                              
060417,000324: 10,2356           30065                           CA       TEMPSW                                
060418,000325: 10,2357           74716                           MASK     OCT7                                  
060419,000326: 10,2360           60000                           DOUBLE                                         
060420,000327: 10,2361           54061                           TS       TEMPG                                 
060421,000328: 
060422,000329: 10,2362           30065                           CA       TEMPSW                                
060423,000330: 10,2363           74765                           MASK     OCT17770                              
060424,000331: 10,2364           00006                           EXTEND                                         
060425,000332: 10,2365           74677                           MP       BIT12                                 
060426,000333: 10,2366           54062                           TS       TEMPP                                 
060427,000334: 
060428,000335: 10,2367           30065                           CA       TEMPSW                                
060429,000336: 10,2370           74105                           MASK     OCT60000                              
060430,000337: 10,2371           56065                           XCH      TEMPSW                                
060431,000338: 10,2372           74761                           MASK     OCT14000                              
060432,000339: 10,2373           10000                           CCS      A                                     
060433,000340: 10,2374           15315                           TCF      ONEORTWO                              
060434,000341: 

Page 1380

060436,000343: 10,2375           30062                           CA       TEMPP                                 #  START STORING THE PHASE INFORMATION
060437,000344: 10,2376           50061                           NDX      TEMPG                                 
060438,000345: 10,2377           54751                           TS       PHASE1     -2                         
060439,000346: 
060440,000347: 10,2400           10066        BELOW1             CCS      TEMPSW2                               #  IS IT A PHASCHNG OR A 2PHSCHNG
060441,000348: 10,2401           12415                           TCF      BELOW2                                #  IT:S A PHASCHNG
060442,000349: 
060443,000350: 10,2402           12403                           TCF      +1                                    #  IT:S A 2PHSCHNG
060444,000351: 10,2403           40072                           CS       TEMPP2                                
060445,000352: 10,2404           22072                           LXCH     TEMPP2                                
060446,000353: 10,2405           50071                           NDX      TEMPG2                                
060447,000354: 10,2406           52751                           DXCH     -PHASE1    -2                         
060448,000355: 
060449,000356: 10,2407           10066                           CCS      TEMPSW2                               
060450,000357: 10,2410           12411                           NOOP                                           #  CAN:T GET HERE
060451,000358: 10,2411           12415                           TCF      BELOW2                                
060452,000359: 
060453,000360: 10,2412           40025                           CS       TIME1                                 
060454,000361: 10,2413           50071                           NDX      TEMPG2                                
060455,000362: 10,2414           55051                           TS       TBASE1     -2                         
060456,000363: 
060457,000364: 10,2415           10065        BELOW2             CCS      TEMPSW                                #  SEE IF WE SHOULD SET TBASE OR LONGBASE
060458,000365: 10,2416           12431                           TCF      BELOW3                                #  SET LONGBASE ONLY
060459,000366: 10,2417           12434                           TCF      BELOW4                                #  SET NEITHER
060460,000367: 
060461,000368: 10,2420           40025                           CS       TIME1                                 #  SET TBASE TO BEGIN WITH
060462,000369: 10,2421           50061                           NDX      TEMPG                                 
060463,000370: 10,2422           55051                           TS       TBASE1     -2                         
060464,000371: 
060465,000372: 10,2423           30065                           CA       TEMPSW                                #  SHALL WE NOW SET LONGBASE
060466,000373: 10,2424           62427                           AD       BIT14COM                              
060467,000374: 10,2425           10000                           CCS      A                                     
060468,000375: 10,2426           12427                           NOOP                                           #  ***** CANT GET HERE *****
060469,000376: 10,2427           17777        BIT14COM           OCT      17777                                 #  ***** CANT GET HERE *****
060470,000377: 10,2430           12434                           TCF      BELOW4                                #  NO WE NEED ONLY SET TBASE
060471,000378: 
060472,000379: 10,2431           00006        BELOW3             EXTEND                                         #  SET LONGBASE
060473,000380: 10,2432           30025                           DCA      TIME2                                 
060474,000381: 10,2433           53136                           DXCH     LONGBASE                              
060475,000382: 
060476,000383: 10,2434           40062        BELOW4             CS       TEMPP                                 #  AND STORE THE FINAL PART OF THE PHASE
060477,000384: 10,2435           50061                           NDX      TEMPG                                 
060478,000385: 10,2436           54750                           TS       -PHASE1    -2                         
060479,000386: 
060480,000387: 10,2437           30002                           CA       Q                                     
060481,000388: 10,2440           22073                           LXCH     TEMPBBCN                              
060482,000389: 10,2441           00003                           RELINT                                         
060483,000390: 10,2442           52006                           DTCB                                           
060484,000391: 10,2443           22073        CON2               LXCH     TEMPBBCN                              

Page 1381

060486,000393: 10,2444           30062                           CA       TEMPP                                 
060487,000394: 10,2445           50061                           NDX      TEMPG                                 
060488,000395: 10,2446           54751                           TS       PHASE1     -2                         
060489,000396: 
060490,000397: 10,2447           30070                           CA       TEMPPR                                
060491,000398: 10,2450           50061                           NDX      TEMPG                                 
060492,000399: 10,2451           55052                           TS       PHSPRDT1   -2                         
060493,000400: 
060494,000401: 10,2452           00006                           EXTEND                                         
060495,000402: 10,2453           30064                           DCA      TEMPNM                                
060496,000403: 10,2454           50061                           NDX      TEMPG                                 
060497,000404: 10,2455           53435                           DXCH     PHSNAME1   -2                         
060498,000405: 
060499,000406: 10,2456           12400                           TCF      BELOW1                                
060500,000407: 
060501,000408:    5363                                           BLOCK    02                                    
060502,000409:    4000                                           SETLOC   FFTAG1                                
060503,000410:    4000                                           BANK                                           
060504,000411: 
060505,000412:    5363                                           COUNT    02/PHASE                              
060506,000413: 
060507,000414:    5363           74677        CHECKB             MASK     BIT12                                 #  SINCE THIS IS OF TYPE B, THIS BIT SHOULD
060508,000415:    5364           10000                           CCS      A                                     #  BE HERE IF WE ARE TO GET A NEW PRIORITY
060509,000416:    5365           15350                           TCF      GETPRIO                               #  IT IS, SO GET NEW PRIORITY
060510,000417: 
060511,000418:    5366           15327                           TCF      OLDPRIO                               #  IT ISN:T, USE THE OLD PRIORITY
060512,000419: 
060513,000420: 
060514,000421: 

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