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.

045565,000002:                                                                                                  ## Copyright:   Public domain.
045566,000003:                                                                                                  ## Filename:    INTERPRETER.agc
045567,000004:                                                                                                  ## Purpose:     A section of Skylark revision 048.
045568,000005:                                                                                                  ##              It is part of the source code for the Apollo Guidance Computer (AGC)
045569,000006:                                                                                                  ##              for Skylab-2, Skylab-3, Skylab-4, and ASTP. No original listings of
045570,000007:                                                                                                  ##              this software are available; instead, this file was created via
045571,000008:                                                                                                  ##              disassembly of dumps of the core rope modules actually flown on
045572,000009:                                                                                                  ##              Skylab-2. Access to these modules was provided by the New Mexico
045573,000010:                                                                                                  ##              Museum of Space History.
045574,000011:                                                                                                  ## Assembler:   yaYUL
045575,000012:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
045576,000013:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
045577,000014:                                                                                                  ## Mod history: 2023-09-04 MAS  Created from Artemis 072.
045578,000015: 
045579,000016: 
045580,000017:                                                                                                  #  SECTION 1   DISPATCHER
045581,000018: 
045582,000019:                                                                                                  #           ENTRY TO THE INTERPRETER.  INTPRET SETS LOC TO THE FIRST INSTRUCTION, BANKSET TO THE BBANK OF THE
045583,000020:                                                                                                  #  OBJECT INTERPRETIVE PROGRAM, AND INTBIT15 TO THE BIT15 CONTENTS OF FBANK. INTERPRETIVE PROGRAMS MAY BE IN
045584,000021:                                                                                                  #  VIRTUALLY ALL BANKS PRESENT UNDER ANY SUPER-BANK SETTING, WITH THE RESTRICTION THAT PROGRAMS IN HIGH BANKS
045585,000022:                                                                                                  #  (BIT15 OF FBANK = 1) DO NOT REFER TO LOWBANKS, AND VICE-VERSA. THE INTERPRETER DOES NOT SWITCH SUPERBANKS.
045586,000023:                                                                                                  #  E-BANK SWITCHING OCCURS WHENEVER GENERAL ERASABLE (100-3777) IS ADDRESSED.
045587,000024: 
045588,000025:    6000                                           SETLOC   INTERF3                               
045589,000026:    6000                                           BANK                                           
045590,000027: 
045591,000028:    6006                                           COUNT*   $$/INTER                              
045592,000029:    6006           00003        INTPRET            RELINT                                         
045593,000030:    6007           00006                           EXTEND                                         #  SET LOC TO THE WORD FOLLOWING THE TC.
045594,000031:    6010           22164                 +2        QXCH     LOC                                   
045595,000032: 
045596,000033:    6011           30006                 +3        CA       BBANK                                 #  INTERPRETIVE BRANCHES FINISH HERE.
045597,000034:    6012           54165                           TS       BANKSET                               
045598,000035:    6013           74763                           MASK     BIT15                                 #  GET 15TH BIT FOR INDEXABLE ADDRESSES.
045599,000036:    6014           54115                           TS       INTBIT15                              
045600,000037: 
045601,000038:    6015           54023                           TS       EDOP                                  #  MAKE SURE NO INSTRUCTIONS LEFT OVER
045602,000039: 
045603,000040:    6016           16037                           TCF      NEWOPS                                #  PICK UP OP CODE PAIR AND BEGIN.
045604,000041: 
045605,000042:    6017           22006        INTRSM             LXCH     BBANK                                 #  RESUME SUSPENDED INTERPRETIVE JOB
045606,000043:    6020           16011                           TCF      INTPRET    +3                         
045607,000044: 
045608,000045:                                                                                                  #  DLOAD LOADS MPAC, MPAC +1, LEAVING ZERO IN MPAC +2.
045609,000046: 
045610,000047:    6021           00006        DLOAD              EXTEND                                         
045611,000048:    6022           50116                           INDEX    ADDRWD                                
045612,000049:    6023           30001                           DCA      0                                     #  LOAD DP C(C(ADDRWD)) INTO MPAC,MPAX +1
045613,000050:    6024           52155        SLOAD2             DXCH     MPAC                                  
045614,000051:    6025           35003                           CAF      ZERO                                  #  ZERO MPAC +2
045615,000052: 
045616,000053:                                                                                                  #  AT THE END OF MOST INSTRUCTIONS, CONTROL IS GIVEN TO DANZIG TO DISPATCH THE NEXT OPERATION.
045617,000054: 
045618,000055:    6026           54156                 +2        TS       MPAC       +2                         #  AND DECLARE DP MODE
045619,000056:    6027           54163        NEWMODE            TS       MODE                                  #  PROLOGUE FOR MODE-CHANGING INSTRUCTIONS.
045620,000057: 
045621,000058:    6030           30165        DANZIG             CA       BANKSET                               #  SET BBANK BEFORE TESTING NEWJOB SO THAT
045622,000059:    6031           54006                           TS       BBANK                                 #  IT MAY BE SAVED DIRECTLY BY CHANJOB.
045623,000060: 
045624,000061:    6032           10023        NOIBNKSW           CCS      EDOP                                  #  SEE IF AN ORDER CODE IS LEFT OVER FROM
045625,000062:    6033           16046                           TCF      OPJUMP                                #  THE LAST PAIR RETRIEVED. IF SO, EXECUTE.
045626,000063:                                                                                                  #  EDOP IS SET TO ZERO ON ITS RE-EDITING.
045627,000064: 
045628,000065:    6034           10067                           CCS      NEWJOB                                #  SEE IF A JOB OF HIGHER PRIORITY IS
045629,000066:    6035           15171                           TCF      CHANG2                                #  PRESENT, AND IF SO, CHANGE JOBS.
045630,000067: 
045631,000068:    6036           24164                           INCR     LOC                                   #  ADVANCE THE LOCATION COUNTER.
045632,000069:                                                                                                  #           ITRACE (1) REFERS TO "NEWOPS".
045633,000070:    6037           50164        NEWOPS             INDEX    LOC                                   #  ENTRY TO BEGIN BY PICKING OP CODE PAIR.
045634,000071:    6040           30000                           CA       0                                     #  MAY BE AN OPCODE PAIR OR A STORE CODE.
045635,000072:    6041           10000                           CCS      A                                     #  TEST SIGN AND GET DABS(A).
045636,000073:    6042           16331                           TCF      DOSTORE                               #  PROCESS STORE CODE.
045637,000074: 
045638,000075:    6043           00177        LOW7               OCT      177                                   
045639,000076: 
045640,000077:    6044           54023                           TS       EDOP                                  #  OP CODE PAIR. LEAVE THE OTHER IN EDOP
045641,000078:    6045           76043                           MASK     LOW7                                  #  WHERE  CCS EDOP  WILL HONOR IT NEXT.
045642,000079: 
045643,000080:    6046           54020        OPJUMP             TS       CYR                                   #  LOWWD ENTERS HERE IF A RIGHT-HAND OP
045644,000081:    6047           10020                           CCS      CYR                                   #  CODE IS TO BE PROCESSED. TEST PREFICES.
045645,000082:    6050           16216                           TCF      OPJUMP2                               #  TEST SECOND PREFIX BIT.
045646,000083: 
045647,000084:    6051           16712                           TCF      EXIT                                  #  +0 OP CODE IS EXIT.
045648,000085:                                                                                                  #  PROCESS ADDRESSES WHICH MAY BE DIRECT, INDEXED, OR REFERENCE THE PUSHDOWN LIST.
045649,000086: 
045650,000087:    6052           75001        ADDRESS            MASK     BIT1                                  #  SEE IF ADDRESS IS INDEXED. CYR CONTAINED
045651,000088:    6053           10000                           CCS      A                                     #  400XX, SO BIT 1 IS NOW AS IT WAS IN CYR.
045652,000089:    6054           16115                           TCF      INDEX                                 #  FORM INDEXED ADDRESS.
045653,000090: 
045654,000091:    6055           50164        DIRADRES           INDEX    LOC                                   #  LOOK AHEAD TO NEXT WORD TO SEE IF
045655,000092:    6056           40001        OCT40001           CS       1                                     #  ADDRESS IS GIVEN.
045656,000093:    6057           10000                           CCS      A                                     
045657,000094:    6060           16164                           TCF      PUSHUP                                #  IF NOT.
045658,000095: 
045659,000096:    6061           77773        NEG4               DEC      -4         B-14                       
045660,000097: 
045661,000098:    6062           24164                           INCR     LOC                                   #  IF SO, TO SHOW WE PICKED UP A WORD.
045662,000099:    6063           54116                           TS       ADDRWD                                
045663,000100: 
045664,000101:                                                                                                  #  FINAL DIGESTION OF DIRECT ADDRESSES OF OP CODES WITH 01 PREFIX IS DONE HERE.  IN EACH CASE, THE
045665,000102:                                                                                                  #  REQUIRED 12-BIT SUB-ADDRESS IS LEFT IN ADDRWD, WITH ANY REQUIRED E OR F BANK SWITCHING DONE. ADDRESSES LESS
045666,000103:                                                                                                  #  THAN 45D ARE TAKEN TO BE RELATIVE TO THE WORK AREA. THE OP CODE IS NOW IN BITS 1-5 OF CYR WITH BIT 14 = 1.
045667,000104: 
045668,000105:    6064           66220                           AD       -ENDVAC                               #  SEE IF ADDRESS RELATIVE TO WORK AREA.
045669,000106:    6065           10000                           CCS      A                                     
045670,000107:    6066           67676                           AD       -ENDERAS                              #  IF NOT, SEE IF IN GENERAL ERASABLE.
045671,000108:    6067           16074                           TCF      IERASTST                              
045672,000109: 
045673,000110:    6070           30120        NETZERO            CA       FIXLOC                                #  IF SO, LEAVE THE MODIFIED ADDRESS IN
045674,000111:    6071           26116                           ADS      ADDRWD                                #  ADDRWD AND DISPATCH.
045675,000112:    6072           50020        ITR15              INDEX    CYR                                   #  THIS INDEX MAKES THE NEXT INSTRUCTION
045676,000113:    6073           76242                           7        INDJUMP    -1                         #  TCF INDJUMP + OP, EDITING CYR.
045677,000114: 
045678,000115:    6074           00006        IERASTST           EXTEND                                         
045679,000116:    6075           66105                           BZMF     GEADDR                                #  GO PROCESS GENERAL-ERASABLE ADDRESS.
045680,000117: 
045681,000118:    6076           75053                           MASK     LOW10                                 #  FIXED BANK ADDRESS. RESTORE AND ADD B15.
045682,000119:    6077           65053                           AD       LOW10                                 #  SWITCH BANKS AND LEAVE SUBADDRESS IN
045683,000120:    6100           56116                           XCH      ADDRWD                                #  ADDRWD FOR OPERAND RETRIEVAL. (THIS
045684,000121:    6101           60115                           AD       INTBIT15                              #  METHOD PRECLUDES USE OF THE LAST
045685,000122:    6102           54004                           TS       FBANK                                 #  LOCATION IN EACH FBANK.)
045686,000123:    6103           50020        ITR12              INDEX    CYR                                   
045687,000124:    6104           76242                           7        INDJUMP    -1                         
045688,000125: 
045689,000126:    6105           74350        GEADDR             MASK     LOW8                                  
045690,000127:    6106           65037                           AD       OCT1400                               
045691,000128:    6107           56116                           XCH      ADDRWD                                
045692,000129:    6110           54003                           TS       EBANK                                 
045693,000130:    6111           50020        ITR10              INDEX    CYR                                   
045694,000131:    6112           76242                           7        INDJUMP    -1                         
045695,000132: 
045696,000133:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES INTERPRETIVE INDEXED ADDRESSES. AN INTERPRETER INDEX REGISTER MAY
045697,000134:                                                                                                  #  CONTAIN THE ADDRESS OF ANY ERASABLE REGISTER (0-42 BEING RELATIVE TO THE VAC AREA) OR ANY INTERPRETIVE PROGRAM
045698,000135:                                                                                                  #  BANK, OR ANY INTEGER IN THAT RANGE.
045699,000136: 
045700,000137:    6113           37666        DODLOAD*           CAF      DLOAD*                                #  STODL* COMES HERE TO PROCESS LOAD ADR.
045701,000138:    6114           54020                 +1        TS       CYR                                   #  (STOVL* ENTERS HERE).
045702,000139:    6115           30120        INDEX              CA       FIXLOC                                #  SET UP INDEX LOCATION.
045703,000140:    6116           54130                           TS       INDEXLOC                              
045704,000141:    6117           24164                           INCR     LOC                                   #  (ADDRESS ALWAYS GIVEN).
045705,000142:    6120           50164                           INDEX    LOC                                   
045706,000143:    6121           40000                           CS       0                                     
045707,000144:    6122           10000                           CCS      A                                     #  INDEX 2 IF ADDRESS STORED COMPLEMENTED.
045708,000145:    6123           24130                           INCR     INDEXLOC                              
045709,000146:    6124           16125                           NOOP                                           
045710,000147: 
045711,000148:    6125           54116                           TS       ADDRWD                                #  14 BIT ADDRESS TO ADDRWD.
045712,000149:    6126           77675                           MASK     HIGH4                                 #  IF ADDRESS GREATER THAN 2K, ADD INTBIT15
045713,000150:    6127           00006                           EXTEND                                         
045714,000151:    6130           16133                           BZF      INDEX2                                
045715,000152:    6131           30115                           CA       INTBIT15                              
045716,000153:    6132           26116                           ADS      ADDRWD                                
045717,000154: 
045718,000155:    6133           50130        INDEX2             INDEX    INDEXLOC                              
045719,000156:    6134           40046                           CS       X1                                    
045720,000157:    6135           26116                           ADS      ADDRWD                                #  DO AUGMENT, IGNORING AND CORRECTING OVF.
045721,000158: 
045722,000159:    6136           77677                           MASK     HIGH9                                 #  SEE IF ADDRESS IS IN WORK AREA.
045723,000160:    6137           00006                           EXTEND                                         
045724,000161:    6140           16153                           BZF      INDWORK                               
045725,000162:    6141           77675                           MASK     HIGH4                                 #  SEE IF IN FIXED BANK.
045726,000163:    6142           00006                           EXTEND                                         
045727,000164:    6143           16155                           BZF      INDERASE                              
045728,000165: 
045729,000166:    6144           30116                           CA       ADDRWD                                #  IN FIXED - SWITCH BANKS AND CREATE
045730,000167:    6145           54004                           TS       FBANK                                 #  SUB-ADDRESS.
045731,000168:    6146           75053                           MASK     LOW10                                 
045732,000169:    6147           64767                           AD       2K                                    
045733,000170:    6150           54116                           TS       ADDRWD                                
045734,000171:    6151           50020        ITR11              INDEX    CYR                                   
045735,000172:    6152           36242                           3        INDJUMP    -1                         
045736,000173: 
045737,000174:    6153           30120        INDWORK            CA       FIXLOC                                #  MAKE ADDRWD RELATIVE TO WORK AREA.
045738,000175:    6154           16161                           TCF      ITR13      -1                         
045739,000176: 
045740,000177:    6155           35037        INDERASE           CA       OCT1400                               
045741,000178:    6156           56116                           XCH      ADDRWD                                
045742,000179:    6157           54003                           TS       EBANK                                 
045743,000180:    6160           74350                           MASK     LOW8                                  
045744,000181:    6161           26116                 -1        ADS      ADDRWD                                
045745,000182:    6162           50020        ITR13              INDEX    CYR                                   
045746,000183:    6163           36242                           3        INDJUMP    -1                         
045747,000184: 
045748,000185:                                                                                                  #  PUSH-UP ROUTINES. WHEN NO OPERAND ADDRESS IS GIVEN, THE APPROPRIATE OPERAND IS TAKEN FROM THE PUSH-DOWN
045749,000186:                                                                                                  #  LIST. IN MOST CASES THE MODE OF THE RESULT (VECTOR OR SCALAR) OF THE LAST ARITHMETIC OPERATION PERFORMED
045750,000187:                                                                                                  #  IS THE SAME AS THE TYPE OF OPERAND DESIRED (ALL ADD/SUBTRACT ETC.). EXCEPTIONS TO THIS GENERAL RULE ARE LISTED
045751,000188:                                                                                                  #  BELOW (NOTE THAT IN EVERY CASE THE MODE REGISTER IS LEFT INTACT):
045752,000189: 
045753,000190:                                                                                                  #        1.      VXSC AND V/SC WANT THE OPPOSITE TYPE OF OPERAND, E.G., IF THE LAST OPERATION YIELDED A VECTOR
045754,000191:                                                                                                  #                RESULT, VXSC WANTS A SCALAR.
045755,000192: 
045756,000193:                                                                                                  #        2.      THE LOAD CODES SHOULD LOAD THE ACCUMULATOR INDEPENDENT OF THE RESULT OF THE LAST OPERATION. THIS
045757,000194:                                                                                                  #                INCLUDES VLOAD, DLOAD, TLOAD, PDDL, AND PDVL (NO PUSHUP WITH SLOAD).
045758,000195: 
045759,000196:                                                                                                  #        3.      SOME ARITHMETIC OPERATIONS REQUIRE A STANDARD TYPE OF OPERAND REGARDLESS OF THE PREVIOUS OPERATION.
045760,000197:                                                                                                  #                THIS INCLUDES SIGN WANTING DP AND TAD REQUIRING TP.
045761,000198: 
045762,000199:    6164           34351        PUSHUP             CAF      OCT23                                 #  IF THE LOW 5 BITS OF CYR ARE LESS THAN
045763,000200:    6165           70020                           MASK     CYR                                   #  20, THIS OP REQUIRES SPECIAL ATTENTION.
045764,000201:    6166           66171                           AD       -OCT10                                #  (NO -0).
045765,000202:    6167           10000                           CCS      A                                     
045766,000203:    6170           16202                           TCF      REGUP                                 #  FOR ALL CODES GREATER THAN OCT 7.
045767,000204: 
045768,000205:    6171           77767        -OCT10             OCT      -10                                   
045769,000206: 
045770,000207:    6172           66061                           AD       NEG4                                  #  WE NOW HAVE 7 - OP CODE(MOD4).  SEE IF
045771,000208:    6173           10000                           CCS      A                                     #  THE OP CODE (MOD4) IS THREE (REVERSE).
045772,000209:    6174           50000                           INDEX    A                                     #  NO - THE MODE IS DEFINITE. PICK UP THE
045773,000210:    6175           46213                           CS       NO.WDS                                
045774,000211:    6176           16204                           TCF      REGUP      +2                         
045775,000212: 
045776,000213:    6177           50163                           INDEX    MODE                                  #  FOR VXSC AND V/SC WE WANT THE REQUIRED
045777,000214:    6200           46211                           CS       REVCNT                                #  PUSHLOC DECREMENT WITHOUT CHANGING THE
045778,000215:    6201           16204                           TCF      REGUP      +2                         #  MODE AT THIS TIME.
045779,000216: 
045780,000217:    6202           50163        REGUP              INDEX    MODE                                  #  MOST ALL OP CODES PUSHUP HERE.
045781,000218:    6203           46213                           CS       NO.WDS                                
045782,000219:    6204           26166                 +2        ADS      PUSHLOC                               
045783,000220:    6205           54116                           TS       ADDRWD                                
045784,000221:    6206           50020        ITR14              INDEX    CYR                                   
045785,000222:    6207           76242                           7        INDJUMP    -1                         #  (THE INDEX MAKES THIS A TCF.)
045786,000223: 
045787,000224:    6210           00002                           OCT      2                                     #  REVERSE PUSHUP DECREMENT. VECTOR TAKES 2
045788,000225:    6211           00006        REVCNT             OCT      6                                     #  WORDS, SCALAR TAKES 6.
045789,000226:    6212           00006                           OCT      6                                     
045790,000227:    6213           00002        NO.WDS             OCT      2                                     #  CONVENTIONAL DECREMENT IS 6 WORDS VECTOR
045791,000228:    6214           00003        OCTAL3             OCT      3                                     #  2 IN DP, AND 3 IN TP.
045792,000229:    6215           00006                           OCT      6                                     
045793,000230: 
045794,000231:                                                                                                  #  TEST THE SECOND PREFIX BIT TO SEE IF THIS IS A MISCELLANEOUS OR A UNARY/SHORT SHIFT OPERATION.
045795,000232: 
045796,000233:    6216           10020        OPJUMP2            CCS      CYR                                   #  TEST SECOND PREFIX BIT.
045797,000234:    6217           16232                           TCF      OPJUMP3                               #  TEST THIRD BIT TO SEE IF UNARY OR SHIFT.
045798,000235: 
045799,000236:    6220           77722        -ENDVAC            DEC      -45        B-14                       
045800,000237: 
045801,000238:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES ADDRESSES OF SUFFIX CLASS 10. THEY ARE BASICALLY WORK AREA ADDRESSES
045802,000239:                                                                                                  #  IN THE RANGE 0 - 52, ERASABLE ECADR CONSTANTS FROM 100 - 3777, AND FCADRS ABOVE THAT. ALL 15 BITS ARE AVAILABLE
045803,000240:                                                                                                  #  IN CONTRAST TO SUFFIX 1, IN WHICH ONLY THE LOW ORDER 14 ARE AVAILABLE.
045804,000241: 
045805,000242:    6221           24164        15BITADR           INCR     LOC                                   #  (ENTRY HERE FROM STCALL).
045806,000243:    6222           50164                           INDEX    LOC                                   #  PICK UP ADDRESS WORD.
045807,000244:    6223           30000                           CA       0                                     
045808,000245:    6224           54117                           TS       POLISH                                #  WE MAY NEED A SUBADDRESS LATER.
045809,000246: 
045810,000247:    6225           35054                           CAF      LOW7+2K                               #  THESE INSTRUCTIONS ARE IN BANK 1.
045811,000248:    6226           54004                           TS       FBANK                                 
045812,000249:    6227           70020                           MASK     CYR                                   
045813,000250:    6230           50000        ITR7               INDEX    A                                     
045814,000251:    6231           16303                           TCF      MISCJUMP                              
045815,000252: 
045816,000253:                                                                                                  #  COMPLETE THE DISPATCHING OF UNARY AND SHORT SHIFT OPERATIONS.
045817,000254: 
045818,000255:    6232           54004        OPJUMP3            TS       FBANK                                 #  CALL IN BANK 0 (BITS 11-15 OF A ARE 0.)
045819,000256: 
045820,000257:    6233           10020                           CCS      CYR                                   #  TEST THIRD PREFIX BIT.
045821,000258:    6234           50000                           INDEX    A                                     #  THE DECREMENTED UNARY CODE IS IN BITS
045822,000259:    6235           12000                           TCF      UNAJUMP                               #  1-4 OF A (ZERO, EXIT, HAS BEEN DETECTED)
045823,000260: 
045824,000261:    6236           10163                           CCS      MODE                                  #  ITS A SHORT SHIFT CODE. SEE IF PRESENT
045825,000262:    6237           12017                           TCF      SHORTT                                #  SCALAR OR VECTOR.
045826,000263:    6240           12017                           TCF      SHORTT                                
045827,000264:    6241           12121                           TCF      SHORTV                                #  CALLS THE APPROPRIATE ROUTINE.
045828,000265: 
045829,000266:    6242     4344               FBANKMSK           EQUALS   BANKMASK                              
045830,000267:    6242           00122        LVBUF              ADRES    VBUF                                  
045831,000268: 
045832,000269:                                                                                                  #  THE FOLLOWING IS THE JUMP TABLE FOR OP CODES WHICH MAY HAVE INDEXABLE ADDRESSES OR MAY PUSH UP.
045833,000270: 
045834,000271:    6243           16454        INDJUMP            TCF      VLOAD                                 #  00 - LOAD MPAC WITH A VECTOR.
045835,000272:    6244           17040                           TCF      TAD                                   #  01 - TRIPLE PRECISION ADD TO MPAC.
045836,000273:    6245           17611                           TCF      SIGN                                  #  02 - COMPLEMENT MPAC (V OR SC) IF X NEG.
045837,000274:    6246           17335                           TCF      VXSC                                  #  03 - VECTOR TIMES SCALAR.
045838,000275:    6247           16652                           TCF      CGOTO                                 #  04 - COMPUTED GO TO.
045839,000276:    6250           16437                           TCF      TLOAD                                 #  05 - LOAD MPAC WITH TRIPLE PRECISION.
045840,000277:    6251           16021                           TCF      DLOAD                                 #  06 - LOAD MPAC WITH A DP SCALAR.
045841,000278:    6252           17560                           TCF      V/SC                                  #  07 - VECTOR DIVIDED BY SCALAR.
045842,000279: 
045843,000280:    6253           16450                           TCF      SLOAD                                 #  10 - LOAD MPAC IN SINGLE PRECISION.
045844,000281:    6254           16567                           TCF      SSP                                   #  11 - SET SINGLE PRECISION INTO X.
045845,000282:    6255           16472                           TCF      PDDL                                  #  12 - PUSH DOWN MPAC AND RE-LOAD IN DP.
045846,000283:    6256           17270                           TCF      MXV                                   #  13 - MATRIX POST-MULTIPLIED BY VECTOR.
045847,000284:    6257           16526                           TCF      PDVL                                  #  14 - PUSH DOWN AND VECTOR LOAD.
045848,000285:    6260           16575                           TCF      CCALL                                 #  15 - COMPUTED CALL.
045849,000286:    6261           17273                           TCF      VXM                                   #  16 - MATRIX PRE-MULTIPLIED BY VECTOR.
045850,000287:    6262           17552                           TCF      TSLC                                  #  17 - NORMALIZE MPAC (SCALAR ONLY).
045851,000288: 
045852,000289:    6263           17530                           TCF      DMPR                                  #  20 - DP MULTIPLY AND ROUND.
045853,000290:    6264           17533                           TCF      DDV                                   #  21 - DP DIVIDE BY.
045854,000291:    6265           17537                           TCF      BDDV                                  #  22 - DP DIVIDE INTO.
045855,000292:    6266           17555                           TCF      GSHIFT                                #  23 - GENERAL SHIFT INSTRUCTION.
045856,000293:    6267           16720                           TCF      VAD                                   #  24 - VECTOR ADD.
045857,000294:    6270           16716                           TCF      VSU                                   #  25 - VECTOR SUBTRACT.
045858,000295:    6271           17005                           TCF      BVSU                                  #  26 - VECTOR SUBTRACT FROM.
045859,000296:    6272           17265                           TCF      DOT                                   #  27 - VECTOR DOT PRODUCT.
045860,000297: 
045861,000298:    6273           17414                           TCF      VXV                                   #  30 - VECTOR CROSS PRODUCT.
045862,000299:    6274           17361                           TCF      VPROJ                                 #  31 - VECTOR PROJECTION.
045863,000300:    6275           16754                           TCF      DSU                                   #  32 - DP SUBTRACT.
045864,000301:    6276           17031                           TCF      BDSU                                  #  33 - DP SUBTRACT FROM.
045865,000302:    6277           16744                           TCF      DAD                                   #  34 - DP ADD.
045866,000303:    6300           16300                           TCF      +0                                    #  35 - AVAILABLE
045867,000304:    6301           17526                           TCF      DMP1                                  #  36 - DP MULTIPLY.
045868,000305:    6302           17547                           TCF      SETPD                                 #  37 - SET PUSH DOWN POINTER (DIRECT ONLY)
045869,000306: 
045870,000307:                                                                                                  #  CODES 10 AND 14 MUST NOT PUSH UP. CODE 04 MAY BE USED FOR VECTOR DECLARE BEFORE PUSHUP IF DESIRED.
045871,000308: 
045872,000309:                                                                                                  #  THE FOLLOWING JUMP TABLE APPLIES TO INDEX, BRANCH, AND MISCELLANEOUS INSTRUCTIONS.
045873,000310: 
045874,000311:    6303           12347        MISCJUMP           TCF      AXT                                   #  00 - ADDRESS TO INDEX TRUE.
045875,000312:    6304           12354                           TCF      AXC                                   #  01 - ADDRESS TO INDEX COMPLEMENTED.
045876,000313:    6305           12357                           TCF      LXA                                   #  02 - LOAD INDEX FROM ERASABLE.
045877,000314:    6306           12363                           TCF      LXC                                   #  03 - LOAD INDEX FROM COMPLEMENT OF ERAS.
045878,000315:    6307           12367                           TCF      SXA                                   #  04 - STORE INDEX IN ERASABLE.
045879,000316:    6310           12375                           TCF      XCHX                                  #  05 - EXCHANGE INDEX WITH ERASABLE.
045880,000317:    6311           12411                           TCF      INCR                                  #  06 - INCREMENT INDEX REGISTER.
045881,000318:    6312           12420                           TCF      TIX                                   #  07 - TRANSFER ON INDEX.
045882,000319: 
045883,000320:    6313           12403                           TCF      XAD                                   #  10 - INDEX REGISTER ADD FROM ERASABLE.
045884,000321:    6314           12414                           TCF      XSU                                   #  11 - INDEX SUBTRACT FROM ERASABLE.
045885,000322:    6315           12472                           TCF      BZE/GOTO                              #  12 - BRANCH ZERO AND GOTO.
045886,000323:    6316           12477                           TCF      BPL/BMN                               #  13 - BRANCH PLUS AND BRANCH MINUS.
045887,000324:    6317           12452                           TCF      RTB/BHIZ                              #  14 - RETURN TO BASIC AND BRANCH HI ZERO.
045888,000325:    6320           12512                           TCF      CALL/ITA                              #  15 - CALL AND STORE QPRET.
045889,000326:    6321           12521                           TCF      SW/                                   #  16 - SWITCH INSTRUCTIONS AND AVAILABLE.
045890,000327:    6322           12462                           TCF      BOV(B)                                #  17 - BRANCH ON OVERFLOW TO BASIC OR INT.
045891,000328: 
045892,000329:                                                                                                  #  THE FOLLOWING JUMP TABLE APPIES TO UNARY INSTRUCTIONS.
045893,000330: 
045894,000331: 00,2000                                           SETLOC   INTERB0                               
045895,000332: 00,2000                                           BANK                                           
045896,000333: 
045897,000334: 00,2000                                           COUNT*   $$/INTER                              
045898,000335: 00,2000           13206        UNAJUMP            TCF      SQRT                                  #  01 - SQUARE ROOT.
045899,000336: 00,2001           13525                           TCF      SINE                                  #  02 - SIN.
045900,000337: 00,2002           13514                           TCF      COSINE                                #  03 - COS.
045901,000338: 00,2003           13605                           TCF      ARCSIN                                #  04 - ARC SIN.
045902,000339: 00,2004           13607                           TCF      ARCCOS                                #  05 - ARC COS.
045903,000340: 00,2005           13173                           TCF      DSQ                                   #  06 - DP SQUARE.
045904,000341: 00,2006           12116                           TCF      ROUND                                 #  07 - ROUND TO DP.
045905,000342: 
045906,000343: 00,2007           17624                           TCF      COMP                                  #  10 - COMPLEMENT VECTOR OR SCALAR.
045907,000344: 00,2010           13231                           TCF      VDEF                                  #  11 - VECTOR DEFINE.
045908,000345: 00,2011           13022                           TCF      UNIT                                  #  12 - UNIT VECTOR.
045909,000346: 00,2012           13175                           TCF      ABVALABS                              #  13 - LENGTH OF VECTOR OR MAG OF SCALAR.
045910,000347: 00,2013           13244                           TCF      VSQ                                   #  14 - SQUARE OF LENGTH OF VECTOR.
045911,000348: 00,2014           16323                           TCF      STADR                                 #  15 - PUSH UP ON STORE CODE.
045912,000349: 00,2015           13273                           TCF      RVQ                                   #  16 - RETURN VIA QPRET.
045913,000350: 00,2016           13246                           TCF      PUSH                                  #  17 - PUSH MPAC DOWN.
045914,000351: 
045915,000352:                                                                                                  #  SECTION 2     LOAD AND STORE PACKAGE.
045916,000353: 
045917,000354:                                                                                                  #  A SET OF EIGHT STORE CODES IS PROVIDED AS THE PRIMARY METHOD OF STORING THE MULTI-PURPOSE
045918,000355:                                                                                                  #  ACCUMULATOR (MPAC). IF IN THE DANZIG SECTION LOC REFERS TO AN ALGEBRAICALLY POSITIVE WORD, IT IS TAKEN AS A 
045919,000356:                                                                                                  #  STORE CODE WITH A CORRESPONDING ERASABLE ADDRESS. MOST OF THESE CODES ARE TWO ADDRESS, SPECIFYING THAT THE WORD
045920,000357:                                                                                                  #  FOLLOWING THE STORE CODE IS TO BE USED AS AN ADDRESS FROM WHICH TO RE-LOAD MPAC. FOUR OPTIONS ARE AVAILABLE:
045921,000358: 
045922,000359:                                                                                                  #        1. STORE        STORE MPAC. THE E ADDRESS MAY BE INDEXED.
045923,000360:                                                                                                  #        2. STODL        STORE MPAC AND RE-LOAD IT IN DP WITH THE NEXT ADDRESS (THE LOAD MAY BE INDEXED).
045924,000361:                                                                                                  #        3. STOVL        STORE MPAC AND RE-LOAD A VECTOR (AS ABOVE).
045925,000362:                                                                                                  #        4. STCALL       STORE AND DO A CALL (BOTH ADDRESSES MUST BE DIRECT HERE).
045926,000363: 
045927,000364:                                                                                                  #  STODL AND STOVL WILL TAKE FROM THE PUSH-DOWN LIST IF NO LOAD ADDRESS IS GIVEN.
045928,000365: 
045929,000366:    6000                                           SETLOC   INTERF3                               
045930,000367:    6000                                           BANK                                           
045931,000368: 
045932,000369:    6323                                           COUNT*   $$/INTER                              
045933,000370:    6323           30165        STADR              CA       BANKSET                               #  THE STADR CODE (PUSHUP UP ON STORE
045934,000371:    6324           54004                           TS       FBANK                                 #  ADDRESS) ENTERS HERE.
045935,000372:    6325           24164                           INCR     LOC                                   
045936,000373:    6326           50164        ITR1               INDEX    LOC                                   #  THE STORECODE WAS STORED COMPLEMENTED TO
045937,000374:    6327           40000                           CS       0                                     #  MAKE IT LOOK LIKE AN OPCODE PAIR.
045938,000375:    6330           67702                           AD       NEGONE                                #  (YUL CANT REMOVE 1 BECAUSE OF EARLY CCS)
045939,000376: 
045940,000377:    6331           54116        DOSTORE            TS       ADDRWD                                
045941,000378:    6332           74347                           MASK     LOW11                                 #  ENTRY FROM DISPATCHER. SAVE THE ERASABLE
045942,000379:    6333           56116                           XCH      ADDRWD                                #  ADDRESS AND JUMP ON THE STORE CODE NO.
045943,000380:    6334           77656                           MASK     B12T14                                
045944,000381:    6335           00006                           EXTEND                                         
045945,000382:    6336           74775                           MP       BIT5                                  #  EACH TRANSFER VECTOR ENTRY IS TWO WORDS.
045946,000383:    6337           50000        ITR0               INDEX    A                                     
045947,000384:    6340           16341                           TCF      STORJUMP                              
045948,000385: 
045949,000386:                                                                                                  #  STORE CODE JUMP TABLE. CALLS THE APPROPRIATE STORING ROUTINE AND EXITS TO DANZIG OR TO ADDRESS WITH
045950,000387:                                                                                                  #  A SUPPLIED OPERATION CODE.
045951,000388: 
045952,000389:                                                                                                  #  STORE STORE,1 AND STORE,2 RETURN TO DANZIG, THUS RESETTING THE EBANK TO ITS STATE AT INTPRET.
045953,000390: 
045954,000391:    6341           06371        STORJUMP           TC       STORE                                 #  STORE.
045955,000392:    6342           16030                           TCF      DANZIG                                #  PICK UP NEW OP CODE(S).
045956,000393:    6343           06363                           TC       STORE,1                               
045957,000394:    6344           16030                           TCF      DANZIG                                
045958,000395:    6345           06366                           TC       STORE,2                               
045959,000396:    6346           16030                           TCF      DANZIG                                
045960,000397: 
045961,000398:    6347           06371                           TC       STORE                                 #  STODL.
045962,000399:    6350           16427                           TCF      DODLOAD                               
045963,000400: 
045964,000401:    6351           06371                           TC       STORE                                 #  STODL WITH INDEXED LOAD ADDRESS.
045965,000402:    6352           16113                           TCF      DODLOAD*                              
045966,000403: 
045967,000404:    6353           06371                           TC       STORE                                 #  STOVL.
045968,000405:    6354           16432                           TCF      DOVLOAD                               
045969,000406: 
045970,000407:    6355           06371                           TC       STORE                                 #  STOVL WITH INDEXED LOAD ADDRESS.
045971,000408:    6356           16435                           TCF      DOVLOAD*                              
045972,000409:    6357           06371                           TC       STORE                                 #  STOTC.
045973,000410:    6360           35013                           CAF      CALLCODE                              
045974,000411:    6361           54020                           TS       CYR                                   
045975,000412:    6362           16221                           TCF      15BITADR                              #  GET A 15 BIT ADDRESS.
045976,000413: 
045977,000414:                                                                                                  #  STORE CODE ADDRESS PROCESSOR.
045978,000415: 
045979,000416:    6363           50120        STORE,1            INDEX    FIXLOC                                
045980,000417:    6364           40046                           CS       X1                                    
045981,000418:    6365           16370                           TCF      PRESTORE                              
045982,000419: 
045983,000420:    6366           50120        STORE,2            INDEX    FIXLOC                                
045984,000421:    6367           40047                           CS       X2                                    
045985,000422:    6370           26116        PRESTORE           ADS      ADDRWD                                #  RESULTANT ADDRESS IS IN ERASABLE.
045986,000423: 
045987,000424:    6371           40116        STORE              CS       ADDRWD                                
045988,000425:    6372           65020                           AD       DEC45                                 
045989,000426:    6373           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
045990,000427:    6374           30120                           CA       FIXLOC                                #  YES.
045991,000428:    6375           16402                           TCF      AHEAD5                                
045992,000429:    6376           35037                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
045993,000430:    6377           56116                           XCH      ADDRWD                                
045994,000431:    6400           54003                           TS       EBANK                                 
045995,000432:    6401           74350                           MASK     LOW8                                  
045996,000433:    6402           26116        AHEAD5             ADS      ADDRWD                                
045997,000434: 
045998,000435:                                                                                                  #  STORING ROUTINES. STORE DP, TP, OR VECTOR AS INDICATED BY MODE.
045999,000436: 
046000,000437:    6403           00006        STARTSTO           EXTEND                                         #  MPAC,+1 MUST BE STORED IN ANY EVENT.
046001,000438:                                                                                                  #  ITRACE (5) REFERS TO "STARTSTO".
046002,000439:    6404           30155                           DCA      MPAC                                  
046003,000440:    6405           50116                           INDEX    ADDRWD                                
046004,000441:    6406           52001                           DXCH     0                                     
046005,000442: 
046006,000443:    6407           10163                           CCS      MODE                                  
046007,000444:    6410           16423                           TCF      TSTORE                                
046008,000445:    6411           00002                           TC       Q                                     
046009,000446: 
046010,000447:    6412           00006        VSTORE             EXTEND                                         
046011,000448:    6413           30160                           DCA      MPAC       +3                         
046012,000449:    6414           50116                           INDEX    ADDRWD                                
046013,000450:    6415           52003                           DXCH     2                                     
046014,000451: 
046015,000452:    6416           00006                           EXTEND                                         
046016,000453:    6417           30162                           DCA      MPAC       +5                         
046017,000454:    6420           50116                           INDEX    ADDRWD                                
046018,000455:    6421           52005                           DXCH     4                                     
046019,000456:    6422           00002                           TC       Q                                     
046020,000457: 
046021,000458:    6423           30156        TSTORE             CA       MPAC       +2                         
046022,000459:    6424           50116                           INDEX    ADDRWD                                
046023,000460:    6425           54002                           TS       2                                     
046024,000461:    6426           00002                           TC       Q                                     
046025,000462: 
046026,000463:                                                                                                  #  ROUTINES TO BEGIN PROCESSING OF THE SECOND ADDRESS ASSOCIATED WITH ALL STORE-TYPE CODES EXCEPT STORE
046027,000464:                                                                                                  #  ITSELF.
046028,000465: 
046029,000466:    6427           37665        DODLOAD            CAF      DLOADCOD                              
046030,000467:    6430           54020                           TS       CYR                                   
046031,000468:    6431           16055                           TCF      DIRADRES                              #  GO GET A DIRECT ADDRESS.
046032,000469: 
046033,000470:    6432           34763        DOVLOAD            CAF      VLOADCOD                              
046034,000471:    6433           54020                           TS       CYR                                   
046035,000472:    6434           16055                           TCF      DIRADRES                              
046036,000473: 
046037,000474:    6435           36056        DOVLOAD*           CAF      VLOAD*                                
046038,000475:    6436           16114                           TCF      DODLOAD*   +1                         #  PROLOGUE TO INDEX ROUTINE.
046039,000476: 
046040,000477:                                                                                                  #  THE FOLLOWING LOAD INSTRUCTIONS ARE PROVIDED FOR LOADING THE MULTI-PURPOSE ACCUMULATOR MPAC.
046041,000478: 
046042,000479:    6437           50116        TLOAD              INDEX    ADDRWD                                
046043,000480:    6440           30002                           CA       2                                     #  LOAD A TRIPLE PRECISION ARGUMENT INTO
046044,000481:    6441           54156                           TS       MPAC       +2                         #  THE FIRST THREE MPAC REGISTERS, WITH THE
046045,000482:    6442           00006                           EXTEND                                         #  CONTENTS OF THE OTHER FOUR IRRELEVANT.
046046,000483:    6443           50116                           INDEX    ADDRWD                                
046047,000484:    6444           30001                           DCA      0                                     
046048,000485:    6445           52155                           DXCH     MPAC                                  
046049,000486:    6446           35001        TMODE              CAF      ONE                                   
046050,000487:    6447           16027                           TCF      NEWMODE                               #  DECLARE TRIPLE PRECISION MODE.
046051,000488: 
046052,000489:    6450           22007        SLOAD              ZL                                             #  LOAD A SINGLE PRECISION NUMBER INTO
046053,000490:    6451           50116                           INDEX    ADDRWD                                #  MPAC, SETTING MPAC+1,2 TO ZERO. THE
046054,000491:    6452           30000                           CA       0                                     #  CONTENTS OF THE REMAINING MPAC REGISTERS
046055,000492:    6453           16024                           TCF      SLOAD2                                #  ARE IRRELEVANT.
046056,000493: 
046057,000494:    6454           00006        VLOAD              EXTEND                                         #  LOAD A DOUBLE PRECISION VECTOR INTO
046058,000495:    6455           50116                           INDEX    ADDRWD                                #  MPAC,+1, MPAC+3,4, AND MPAC+5,6. THE
046059,000496:    6456           30001                           DCA      0                                     #  CONTENTS OF MPAC +2 ARE IRRELEVANT.
046060,000497:    6457           52155                           DXCH     MPAC                                  
046061,000498: 
046062,000499:    6460           00006        ENDVLOAD           EXTEND                                         #  PDVL COMES HERE TO FINISH UP FOR DP, TP.
046063,000500:    6461           50116                           INDEX    ADDRWD                                
046064,000501:    6462           30003                           DCA      2                                     
046065,000502:    6463           52160                           DXCH     MPAC       +3                         
046066,000503: 
046067,000504:    6464           00006                 +4        EXTEND                                         #  TPDVL FINISHES HERE.
046068,000505:    6465           50116                           INDEX    ADDRWD                                
046069,000506:    6466           30005                           DCA      4                                     
046070,000507:    6467           52162                           DXCH     MPAC       +5                         
046071,000508: 
046072,000509:    6470           45001        VMODE              CS       ONE                                   #  DECLARE VECTOR MODE.
046073,000510:    6471           16027                           TCF      NEWMODE                               
046074,000511: 
046075,000512:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE PROVIDED FOR STORING OPERANDS IN THE PUSHDOWN LIST:
046076,000513:                                                                                                  #        1.      PUSH            PUSHDOWN AND NO LOAD.
046077,000514:                                                                                                  #        2.      PDDL            PUSHDOWN AND DOUBLE PRECISION LOAD.
046078,000515:                                                                                                  #        3.      PDVL            PUSHDOWN AND VECTOR LOAD.
046079,000516: 
046080,000517:    6472           00006        PDDL               EXTEND                                         
046081,000518:    6473           50116                           INDEX    ADDRWD                                #  LOAD MPAC,+1, PUSHING THE FORMER
046082,000519:    6474           30001                           DCA      0                                     #  CONTENTS DOWN.
046083,000520:    6475           52155                           DXCH     MPAC                                  
046084,000521:    6476           50166                           INDEX    PUSHLOC                               
046085,000522:    6477           52001                           DXCH     0                                     
046086,000523: 
046087,000524:    6500           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER APPRO-
046088,000525:    6501           36213                           CAF      NO.WDS                                #  PRIATELY.
046089,000526:    6502           26166                           ADS      PUSHLOC                               
046090,000527: 
046091,000528:    6503           10163                           CCS      MODE                                  
046092,000529:    6504           16521                           TCF      ENDTPUSH                              
046093,000530:    6505           16517                           TCF      ENDDPUSH                              
046094,000531: 
046095,000532:    6506           54163                           TS       MODE                                  #  NOW DP.
046096,000533:    6507           54156        ENDVPUSH           TS       MPAC       +2                         
046097,000534:    6510           52160                           DXCH     MPAC       +3                         #  PUSH DOWN THE REST OF THE VECTOR HERE.
046098,000535:    6511           50166                           INDEX    PUSHLOC                               
046099,000536:    6512           51775                           DXCH     0          -4                         
046100,000537: 
046101,000538:    6513           52162                           DXCH     MPAC       +5                         
046102,000539:    6514           50166                           INDEX    PUSHLOC                               
046103,000540:    6515           51777                           DXCH     0          -2                         
046104,000541: 
046105,000542:    6516           16030                           TCF      DANZIG                                
046106,000543: 
046107,000544:    6517           54156        ENDDPUSH           TS       MPAC       +2                         #  SET MPAC +2 TO ZERO AND EXIT ON DP.
046108,000545:    6520           16030                           TCF      DANZIG                                
046109,000546: 
046110,000547:    6521           54163        ENDTPUSH           TS       MODE                                  
046111,000548:    6522           56156                           XCH      MPAC       +2                         #  ON TRIPLE, SET MPAC +2 TO ZERO, PUSHING
046112,000549:    6523           50166                 +2        INDEX    PUSHLOC                               #  DOWN THE OLD CONTENTS
046113,000550:    6524           53777                           TS       0          -1                         
046114,000551:    6525           16030                           TCF      DANZIG                                
046115,000552: 
046116,000553:                                                                                                  #  PDVL - PUSHDOWN AND VECTOR LOAD.
046117,000554: 
046118,000555:    6526           00006        PDVL               EXTEND                                         #  RELOAD MPAC AND PUSH DOWN ITS CONTENTS.
046119,000556:    6527           50116                           INDEX    ADDRWD                                
046120,000557:    6530           30001                           DCA      0                                     
046121,000558:    6531           52155                           DXCH     MPAC                                  
046122,000559:    6532           50166                           INDEX    PUSHLOC                               
046123,000560:    6533           52001                           DXCH     0                                     
046124,000561: 
046125,000562:    6534           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER.
046126,000563:    6535           36213                           CAF      NO.WDS                                
046127,000564:    6536           26166                           ADS      PUSHLOC                               
046128,000565: 
046129,000566:    6537           10163                           CCS      MODE                                  #  TEST PAST MODE.
046130,000567:    6540           16557                           TCF      TPDVL                                 
046131,000568:    6541           16460                           TCF      ENDVLOAD                              #  JUST LOAD LAST FOUR REGISTERS ON DP.
046132,000569: 
046133,000570:    6542           00006        VPDVL              EXTEND                                         #  PUSHDOWN AND RE-LOAD LAST TWO COMPONENTS
046134,000571:    6543           50116                           INDEX    ADDRWD                                
046135,000572:    6544           30003                           DCA      2                                     
046136,000573:    6545           52160                           DXCH     MPAC       +3                         
046137,000574:    6546           50166                           INDEX    PUSHLOC                               
046138,000575:    6547           51775                           DXCH     0          -4                         
046139,000576: 
046140,000577:    6550           00006                           EXTEND                                         
046141,000578:    6551           50116                           INDEX    ADDRWD                                
046142,000579:    6552           30005                           DCA      4                                     
046143,000580:    6553           52162                           DXCH     MPAC       +5                         
046144,000581:    6554           50166                           INDEX    PUSHLOC                               
046145,000582:    6555           51777                           DXCH     0          -2                         
046146,000583: 
046147,000584:    6556           16030                           TCF      DANZIG                                
046148,000585: 
046149,000586:    6557           00006        TPDVL              EXTEND                                         #  ON TP, WE MUST LOAD THE Y COMPONENT
046150,000587:    6560           50116                           INDEX    ADDRWD                                #  BEFORE STORING MPAC +2 IN CASE THIS IS A
046151,000588:    6561           30003                           DCA      2                                     #  PUSHUP.
046152,000589:    6562           52160                           DXCH     MPAC       +3                         
046153,000590: 
046154,000591:    6563           30156                           CA       MPAC       +2                         
046155,000592:    6564           50166                           INDEX    PUSHLOC                               #  IN DP.
046156,000593:    6565           53777                           TS       0          -1                         
046157,000594:    6566           16464                           TCF      ENDVLOAD   +4                         
046158,000595: 
046159,000596:                                                                                                  #  SSP (STORE SINGLE PRECISION) IS EXECUTED HERE.
046160,000597: 
046161,000598:    6567           24164        SSP                INCR     LOC                                   #  PICK UP THE WORD FOLLOWING THE GIVEN
046162,000599:    6570           50164                           INDEX    LOC                                   #  ADDRESS AND STORE IT AT X.
046163,000600:    6571           30000                           CA       0                                     
046164,000601:    6572           50116        STORE1             INDEX    ADDRWD                                #  SOME INDEX AND MISCELLANEOUS OPS END
046165,000602:    6573           54000                           TS       0                                     #  HERE.
046166,000603:    6574           16030                           TCF      DANZIG                                
046167,000604: 
046168,000605:                                                                                                  #  SEQUENCE CHANGING AND SUBROUTINE CALLING OPTIONS.
046169,000606: 
046170,000607:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR SEQUENCING CHANGING, BRANCHING, AND CALLING SUBROUTINES:
046171,000608: 
046172,000609:                                                                                                  #        1.      GOTO            GO TO.
046173,000610:                                                                                                  #        2.      CALL            CALL SUBROUTINE SETTING QPRET.
046174,000611:                                                                                                  #        3.      CGOTO           COMPUTED GO TO.
046175,000612:                                                                                                  #        4.      CCALL           COMPUTED CALL.
046176,000613:                                                                                                  #        7.      BPL             BRANCH IF MPAC POSITIVE OR ZERO.
046177,000614:                                                                                                  #        8.      BZE             BRANCH IF MPAC ZERO.
046178,000615:                                                                                                  #        9.      BMN             BRANCH IF MPAC NEGATIVE NON-ZERO.
046179,000616: 
046180,000617:    6575           24164        CCALL              INCR     LOC                                   #  MAINTAIN LOC FOR QPRET COMPUTATION.
046181,000618:    6576           50164                           INDEX    LOC                                   
046182,000619:    6577           30000                           CAF      0                                     #  GET BASE ADDRESS OF CADR LIST.
046183,000620:    6600           50116                           INDEX    ADDRWD                                
046184,000621:    6601           60000                           AD       0                                     #  ADD INCREMENT.
046185,000622:    6602           54004                           TS       FBANK                                 #  SELECT DESIRED CADR.
046186,000623:    6603           75053                           MASK     LOW10                                 
046187,000624:    6604           50000                           INDEX    A                                     
046188,000625:    6605           32000                           CAF      10000                                 
046189,000626:    6606           54117                           TS       POLISH                                
046190,000627: 
046191,000628:    6607           30165        CALL               CA       BANKSET                               #  FOR ANY OF THE CALL OPTIONS, MAKE UP THE
046192,000629:    6610           74344                           MASK     BANKMASK                              #  ADDRESS OF THE NEXT OP-CODE PAIR/STORE
046193,000630:    6611           64344                           AD       BANKMASK                              #  CODE AND LEAVE IT IN QPRET.  NOTE THAT
046194,000631:    6612           60164                           AD       LOC                                   #  BANKMASK = -(2000 - 1).
046195,000632:    6613           50120                           INDEX    FIXLOC                                
046196,000633:    6614           54052                           TS       QPRET                                 
046197,000634: 
046198,000635:    6615           30117        GOTO               CA       POLISH                                #  BASIC BRANCHING SEQUENCE.
046199,000636:    6616           77675                 +1        MASK     HIGH4                                 
046200,000637:    6617           00006                           EXTEND                                         
046201,000638:    6620           16631                           BZF      GOTOERS                               #  SEE IF ADDRESS POINTS TO FIXED OR ERAS.
046202,000639:    6621           30165                 +4        CA       BANKSET                               #  SET EBANK PART OF BBANK. NEXT, SET UP
046203,000640:    6622           54006                           TS       BBANK                                 #  FBANK. THE COMBINATION IS PICKED UP &
046204,000641:    6623           30117                           CA       POLISH                                #  PUT INTO BANKSET AT INTPRET +2.
046205,000642:    6624           54004                           TS       FBANK                                 
046206,000643:    6625           75053                           MASK     LOW10                                 
046207,000644:    6626           64767                           AD       2K                                    
046208,000645:    6627           54164                           TS       LOC                                   
046209,000646:    6630           16011                           TCF      INTPRET    +3                         
046210,000647: 
046211,000648:    6631  E3,1400                                  EBANK=   1400                                  #  SO YUL DOESN'T CUSS THE "CA 1400" BELOW.
046212,000649: 
046213,000650:    6631           30117        GOTOERS            CA       POLISH                                #  THE GIVEN ADDRESS IS IN ERASABLE - SEE
046214,000651:    6632           66220                           AD       -ENDVAC                               #  IF RELATIVE TO THE WORK AREA.
046215,000652:    6633           10000                           CCS      A                                     
046216,000653:    6634           30117                           CA       POLISH                                #  GENERAL ERASABLE.
046217,000654:    6635           16644                           TCF      GOTOGE                                
046218,000655:    6636           30120                           CA       FIXLOC                                #  WORK AREA.
046219,000656:    6637           60117                           AD       POLISH                                
046220,000657:    6640           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
046221,000658:    6641           30000                           CA       0                                     #  THE BRANCH ADDRESS.
046222,000659:    6642           54117                           TS       POLISH                                
046223,000660:    6643           16616                           TCF      GOTO       +1                         #  ALLOWS ARBITRARY INDIRECTNESS LEVELS.
046224,000661: 
046225,000662:    6644           54003        GOTOGE             TS       EBANK                                 
046226,000663:    6645           74350                           MASK     LOW8                                  
046227,000664:    6646           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
046228,000665:    6647           31400                           CA       1400                                  #  THE BRANCH ADDRESS.
046229,000666:    6650           54117                           TS       POLISH                                
046230,000667:    6651           16616                           TCF      GOTO       +1                         
046231,000668: 
046232,000669:    6652           50164        CGOTO              INDEX    LOC                                   #  COMPUTED GO TO. PICK UP ADDRESS OF CADR
046233,000670:    6653           30001                           CA       1                                     #  LIST.
046234,000671:    6654           50116                           INDEX    ADDRWD                                #  ADD MODIFIER.
046235,000672:    6655           60000                           AD       0                                     
046236,000673:    6656           54004                           TS       FBANK                                 #  SELECT GOTO ADDRESS.
046237,000674:    6657           75053                           MASK     LOW10                                 
046238,000675:    6660           50000                           INDEX    A                                     
046239,000676:    6661           32000                           CA       10000                                 
046240,000677:    6662           54117                           TS       POLISH                                
046241,000678:    6663           16616                           TCF      GOTO       +1                         #  WITH ADDRESS IN A.
046242,000679: 
046243,000680:    6664           30165        SWBRANCH           CA       BANKSET                               #  SWITCH INSTRUCTIONS WHICH ELECT TO
046244,000681:    6665           54004                           TS       FBANK                                 #  BRANCH COME HERE TO DO SO.
046245,000682:    6666           50164                           INDEX    LOC                                   
046246,000683:    6667           30001                           CA       1                                     
046247,000684:    6670           54117                           TS       POLISH                                
046248,000685:    6671           16616                           TCF      GOTO       +1                         
046249,000686: 
046250,000687:                                                                                                  #  TRIPLE PRECISION BRANCHING ROUTINE. IF CALLING TC IS AT L, RETURN IS AS FOLLOWS:
046251,000688: 
046252,000689:                                                                                                  #        L+1     IF MPAC IS GREATER THAN ZERO.
046253,000690:                                                                                                  #        L+2     IF MPAC IS EQUAL TO +0 OR -0.
046254,000691:                                                                                                  #        L+3     IF MPAC IS LESS THAN ZERO.
046255,000692: 
046256,000693:    6672           10154        BRANCH             CCS      MPAC                                  
046257,000694:    6673           00002                           TC       Q                                     
046258,000695:    6674           16676                           TCF      +2                                    #  ON ZERO.
046259,000696:    6675           16710                           TCF      NEG                                   
046260,000697: 
046261,000698:    6676           10155                           CCS      MPAC       +1                         
046262,000699:    6677           00002                           TC       Q                                     
046263,000700:    6700           16702                           TCF      +2                                    
046264,000701:    6701           16710                           TCF      NEG                                   
046265,000702: 
046266,000703:    6702           10156                           CCS      MPAC       +2                         
046267,000704:    6703           00002                           TC       Q                                     
046268,000705:    6704           16706                           TCF      +2                                    
046269,000706:    6705           16710                           TCF      NEG                                   
046270,000707: 
046271,000708:    6706           50002        Q+1                INDEX    Q                                     
046272,000709:    6707           00001                           TC       1                                     
046273,000710: 
046274,000711:    6710           50002        NEG                INDEX    Q                                     #  IF FIRST NON-ZERO REGISTER WAS NEGATIVE.
046275,000712:    6711           00002        TCQ                TC       2                                     
046276,000713: 
046277,000714:    6712     6710               Q+2                =        NEG                                   
046278,000715: 
046279,000716:                                                                                                  #  ITRACE (3) REFERS TO "EXIT".
046280,000717: 
046281,000718:    6712           30165        EXIT               CA       BANKSET                               #  RESTORE USER'S BANK SETTING, AND LEAVE
046282,000719:    6713           54006                           TS       BBANK                                 #  INTERPRETIVE MODE.
046283,000720:    6714           50164                           INDEX    LOC                                   
046284,000721:    6715           00001                           TC       1                                     
046285,000722: 
046286,000723:                                                                                                  #  SECTION 3 - ADD/SUBTRACT PACKAGE.
046287,000724: 
046288,000725:                                                                                                  #  THE FOLLOWING OPERATIONS ARE PROVIDED FOR ADDING TO AND SUBTRACTING FROM THE MULTI-PURPOSE ACCUMULATOR
046289,000726:                                                                                                  #  MPAC:
046290,000727: 
046291,000728:                                                                                                  #        1.      DAD             DOUBLE PRECISION ADD.
046292,000729:                                                                                                  #        2.      DSU             DOUBLE PRECISION SUBTRACT.
046293,000730:                                                                                                  #        3.      BDSU            DOUBLE PRECISION SUBTRACT FROM.
046294,000731: 
046295,000732:                                                                                                  #        4.      TAD             TRIPLE PRECISION ADD.
046296,000733: 
046297,000734:                                                                                                  #        5.      VAD             VECTOR ADD.
046298,000735:                                                                                                  #        6.      VSU             VECTOR SUBTRACT.
046299,000736:                                                                                                  #        7.      BVSU            VECTOR SUBTRACT FROM.
046300,000737: 
046301,000738:                                                                                                  #  THE INTERPRETIVE OVERFLOW INDICATOR OVFIND IS SET NON-ZERO IF OVERFLOW OCCURS IN ANY OF THE ABOVE.
046302,000739: 
046303,000740:    6716           34763        VSU                CAF      BIT15                                 #  CHANGES 0 TO DCS.
046304,000741:    6717           16721                           TCF      +2                                    
046305,000742: 
046306,000743:    6720           34346        VAD                CAF      PRIO30                                #  CHANGES 0 TO DCA.
046307,000744:    6721           26116                           ADS      ADDRWD                                
046308,000745:    6722           00006                           EXTEND                                         
046309,000746:    6723           50116                           INDEX    ADDRWD                                
046310,000747:    6724           00003                           READ     HISCALAR                              #  DCA  2   OR   DCS  2
046311,000748:    6725           20160                           DAS      MPAC       +3                         
046312,000749:    6726           00006                           EXTEND                                         #  CHECK OVERFLOW.
046313,000750:    6727           16731                           BZF      +2                                    
046314,000751:    6730           06763                           TC       OVERFLWY                              
046315,000752: 
046316,000753:    6731           00006                           EXTEND                                         
046317,000754:    6732           50116                           INDEX    ADDRWD                                
046318,000755:    6733           00005                           READ     CHAN5                                 #  DCA  4   OR   DCS  4
046319,000756:    6734           20162                           DAS      MPAC       +5                         
046320,000757:    6735           00006                           EXTEND                                         
046321,000758:    6736           16740                           BZF      +2                                    
046322,000759:    6737           06760                           TC       OVERFLWZ                              
046323,000760: 
046324,000761:    6740           00006                           EXTEND                                         
046325,000762:    6741           50116                           INDEX    ADDRWD                                
046326,000763:    6742           00001                           READ     LCHAN                                 #  DCA  0   OR   DCS  0
046327,000764:    6743           16747                           TCF      ENDVXV                                
046328,000765: 
046329,000766:    6744           00006        DAD                EXTEND                                         
046330,000767:    6745           50116                           INDEX    ADDRWD                                
046331,000768:    6746           30001                           DCA      0                                     
046332,000769:    6747           20155        ENDVXV             DAS      MPAC                                  #  VXV FINISHES HERE.
046333,000770:    6750           00006                           EXTEND                                         
046334,000771:    6751           16030                           BZF      DANZIG                                
046335,000772: 
046336,000773:    6752           06766        SETOVF             TC       OVERFLOW                              
046337,000774:    6753           16030                           TCF      DANZIG                                
046338,000775: 
046339,000776:    6754           00006        DSU                EXTEND                                         
046340,000777:    6755           50116                           INDEX    ADDRWD                                
046341,000778:    6756           40001                           DCS      0                                     
046342,000779:    6757           16747                           TCF      ENDVXV                                
046343,000780: 
046344,000781:    6760           54001        OVERFLWZ           TS       L                                     #  ENTRY FOR THIRD COMPONENT.
046345,000782:    6761           35004                           CAF      FIVE                                  
046346,000783:    6762           16765                           TCF      +3                                    
046347,000784: 
046348,000785:    6763           54001        OVERFLWY           TS       L                                     #  ENTRY FOR SECOND COMPONENT.
046349,000786:    6764           36214                           CAF      THREE                                 
046350,000787:    6765           56001                           XCH      L                                     
046351,000788: 
046352,000789:    6766           50000        OVERFLOW           INDEX    A                                     #  ENTRY FOR 1ST COMP OR DP (L=0).
046353,000790:    6767           44762                           CS       LIMITS                                #  PICK UP POSMAX OR NEGMAX.
046354,000791:    6770           54130                           TS       BUF                                   
046355,000792:    6771           00006                           EXTEND                                         
046356,000793:    6772           24000                           AUG      A                                     
046357,000794:    6773           50001                           INDEX    L                                     
046358,000795:    6774           26155                           ADS      MPAC       +1                         
046359,000796:    6775           54007                           TS       7                                     
046360,000797:    6776           35003                           CAF      ZERO                                  
046361,000798:    6777           60130                           AD       BUF                                   
046362,000799:    7000           50001                           INDEX    L                                     
046363,000800:    7001           26154                           ADS      MPAC                                  
046364,000801:    7002           54007                           TS       7                                     
046365,000802:    7003           00002                           TC       Q                                     #  NO OVERFLOW EXIT.
046366,000803:    7004           17121                           TCF      SETOVF2                               #  SET OVFIND AND EXIT.
046367,000804: 
046368,000805:    7005           00006        BVSU               EXTEND                                         
046369,000806:    7006           50116                           INDEX    ADDRWD                                
046370,000807:    7007           30003                           DCA      2                                     
046371,000808:    7010           52160                           DXCH     MPAC       +3                         
046372,000809:    7011           00006                           EXTEND                                         
046373,000810:    7012           40001                           DCOM                                           
046374,000811:    7013           20160                           DAS      MPAC       +3                         
046375,000812:    7014           00006                           EXTEND                                         
046376,000813:    7015           17017                           BZF      +2                                    
046377,000814:    7016           06763                           TC       OVERFLWY                              
046378,000815: 
046379,000816:    7017           00006                           EXTEND                                         
046380,000817:    7020           50116                           INDEX    ADDRWD                                
046381,000818:    7021           30005                           DCA      4                                     
046382,000819:    7022           52162                           DXCH     MPAC       +5                         
046383,000820:    7023           00006                           EXTEND                                         
046384,000821:    7024           40001                           DCOM                                           
046385,000822:    7025           20162                           DAS      MPAC       +5                         
046386,000823:    7026           00006                           EXTEND                                         
046387,000824:    7027           17031                           BZF      +2                                    
046388,000825:    7030           06760                           TC       OVERFLWZ                              
046389,000826: 
046390,000827:    7031           00006        BDSU               EXTEND                                         
046391,000828:    7032           50116                           INDEX    ADDRWD                                
046392,000829:    7033           30001                           DCA      0                                     
046393,000830:    7034           52155                           DXCH     MPAC                                  
046394,000831:    7035           00006                           EXTEND                                         
046395,000832:    7036           40001                           DCOM                                           
046396,000833:    7037           16747                           TCF      ENDVXV                                
046397,000834: 
046398,000835:                                                                                                  #  TRIPLE PRECISION ADD ROUTINE.
046399,000836: 
046400,000837:    7040           00006        TAD                EXTEND                                         
046401,000838:    7041           50116                           INDEX    ADDRWD                                
046402,000839:    7042           30002                           DCA      1                                     #  ADD MINOR PARTS FIRST.
046403,000840:    7043           20156                           DAS      MPAC       +1                         
046404,000841:    7044           50116                           INDEX    ADDRWD                                
046405,000842:    7045           60000                           AD       0                                     
046406,000843:    7046           60154                           AD       MPAC                                  
046407,000844:    7047           54154                           TS       MPAC                                  
046408,000845:    7050           16030                           TCF      DANZIG                                
046409,000846: 
046410,000847:    7051           16752                           TCF      SETOVF                                #  SET OVFIND IF SUCH OCCURS.
046411,000848: 
046412,000849:                                                                                                  #  ARITHMETIC SUBROUTINES REQUIRED IN FIXED-FIXED.
046413,000850: 
046414,000851:                                                                                                  #        1.  DMPSUB      DOUBLE PRECISION MULTIPLY. MULTIPLY THE CONTENTS OF MPAC,+1 BY THE DP WORD WHOSE ADDRESS
046415,000852:                                                                                                  #                        IS IN ADDRWD AND LEAVE A TRIPLE PRECISION RESULT IN MPAC.
046416,000853:                                                                                                  #        2.  ROUNDSUB    ROUND THE TRIPLE PRECISON CONTENTS OF MPAC TO DOUBLE PRECISION.
046417,000854:                                                                                                  #        3.  DOTSUB      TAKE THE DOT PRODUCT OF THE VECTOR IN MPAC AND THE VECTOR WHOSE ADDRESS IS IN ADDRWD
046418,000855:                                                                                                  #                        AND LEAVE THE TRIPLE PRECISION RESULT IN MPAC.
046419,000856:                                                                                                  #        4.  POLY        USING THE CONTENTS OF MPAC AS A DP ARGUMENT, EVALUATE THE POLYNOMIAL WHOSE DEGREE AND
046420,000857:                                                                                                  #                        COEFFICIENTS IMMEDIATELY FOLLOW THE TC POLY INSTRUCTION (SEE ROUTINE FOR DETAILS.)
046421,000858: 
046422,000859:    7052           50002        DMP                INDEX    Q                                     #  BASIC SUBROUTINE FOR USE BY PINBALL, ETC
046423,000860:    7053           30000                           CAF      0                                     #  ADRES OF ARGUMENT FOLLOWS  TC DMP  . 
046424,000861:    7054           24002                           INCR     Q                                     
046425,000862:    7055           54116                 -1        TS       ADDRWD                                #  (PROLOGUE FOR SETTING ADDRWD.)
046426,000863: 
046427,000864:    7056           50116        DMPSUB             INDEX    ADDRWD                                #  GET MINOR PART OF OPERAND AT C(ADDRWD).
046428,000865:    7057           30001                           CA       1                                     
046429,000866:    7060           54156                           TS       MPAC       +2                         #  THIS WORKS FOR SQUARING MPAC AS WELL.
046430,000867:    7061           35003                           CAF      ZERO                                  #  SET MPAC +1 TO ZERO SO WE CAN ACCUMULATE
046431,000868:    7062           56155                           XCH      MPAC       +1                         #  THE PARTIAL PRODUCTS WITH DAS
046432,000869:    7063           54135                           TS       MPTEMP                                #  INSTRUCTIONS.
046433,000870:    7064           00006                           EXTEND                                         
046434,000871:    7065           70156                           MP       MPAC       +2                         #  MINOR OF MPAC X MINOR OF C(ADDRWD).
046435,000872: 
046436,000873:    7066           56156                           XCH      MPAC       +2                         #  DISCARD MINOR PART OF ABOVE RESULT AND
046437,000874:    7067           00006                           EXTEND                                         #  FORM MAJOR OF MPAC X MINOR OF C(ADDRWD).
046438,000875:    7070           70154                           MP       MPAC                                  
046439,000876:    7071           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
046440,000877: 
046441,000878:    7072           50116                           INDEX    ADDRWD                                #  GET MAJOR PART OF ARGUMENT AT C(ADDRWD).
046442,000879:    7073           30000                           CA       0                                     
046443,000880:    7074           56135                           XCH      MPTEMP                                #  SAVE AND BRING OUT MINOR OF MPAC.
046444,000881:    7075           00006        DMPSUB2            EXTEND                                         
046445,000882:    7076           70135                           MP       MPTEMP                                #  MAJOR OF C(ADDRWD) X MINOR OF MPAC.
046446,000883:    7077           20156                           DAS      MPAC       +1                         #  ACCUMULATE, SETTING A TO NET OVERFLOW.
046447,000884: 
046448,000885:    7100           56154                           XCH      MPAC                                  #  SETTING MPAC TO 0 OR +-1.
046449,000886:    7101           00006                           EXTEND                                         
046450,000887:    7102           70135                           MP       MPTEMP                                #  MAJOR OF MPAC X MAJOR OF C(ADDRWD).
046451,000888:    7103           20155                           DAS      MPAC                                  #  GUARANTEED NO OVERFLOW.
046452,000889:    7104           00002                           TC       Q                                     #  49 MCT = .573 MS. INCLUDING RETURN.
046453,000890: 
046454,000891:                                                                                                  #  ROUND MPAC TO DOUBLE PRECISION, SETTING OVFIND ON THE RARE EVENT OF OVERFLOW.
046455,000892: 
046456,000893:    7105           35003        ROUNDSUB           CAF      ZERO                                  #  SET MPAC +2 = 0 FOR SCALARS AND CHANGE
046457,000894:    7106           54163                 +1        TS       MODE                                  #  MODE TO DP.
046458,000895: 
046459,000896:    7107           56156        VROUND             XCH      MPAC       +2                         #  BUT WE NEEDNT TAKE THE TIME FOR VECTORS.
046460,000897:    7110           60000                           DOUBLE                                         
046461,000898:    7111           54001                           TS       L                                     
046462,000899:    7112           00002                           TC       Q                                     
046463,000900: 
046464,000901:    7113           60155                           AD       MPAC       +1                         #  ADD ROUNDING BIT IF MPAC +2 WAS GREATER
046465,000902:    7114           54155                           TS       MPAC       +1                         #  THAN .5 IN MAGNITUDE.
046466,000903:    7115           00002                           TC       Q                                     
046467,000904: 
046468,000905:    7116           60154                           AD       MPAC                                  #  PROPAGATE INTERFLOW.
046469,000906:    7117           54154                           TS       MPAC                                  
046470,000907:    7120           00002                           TC       Q                                     
046471,000908: 
046472,000909:    7121           54121        SETOVF2            TS       OVFIND                                #  (RARE).
046473,000910:    7122           00002                           TC       Q                                     
046474,000911: 
046475,000912:                                                                                                  #  THE DOT PRODUCT SUBROUTINE USUALLY FORMS THE DOT PRODUCT OF THE VECTOR IN MPAC WITH A STANDARD SIX
046476,000913:                                                                                                  #  REGISTER VECTOR WHOSE ADDRESS IS IN ADDRWD. IN THIS CASE C(DOTINC) ARE SET TO 2. VXM, HOWEVER, SETS C(DOTINC) TO
046477,000914:                                                                                                  #  6 SO THAT DOTSUB DOTS MPAC WITH A COLUMN VECTOR OF THE MATRIX IN QUESTION IN THIS CASE.
046478,000915: 
046479,000916:    7123           35000        PREDOT             CAF      TWO                                   #  PROLOGUE TO SET DOTINC TO 2.
046480,000917:    7124           54136                           TS       DOTINC                                
046481,000918: 
046482,000919:    7125           00006        DOTSUB             EXTEND                                         
046483,000920:    7126           22137                           QXCH     DOTRET                                #  SAVE RETURN.
046484,000921:    7127           07056                           TC       DMPSUB                                #  DOT X COMPONENTS.
046485,000922:    7130           52160                           DXCH     MPAC       +3                         #  POSITION Y COMPONENT OF MPAC FOR
046486,000923:    7131           52155                           DXCH     MPAC                                  #  MULTIPLICATION WHILE SAVING RESULT IN
046487,000924:    7132           52131                           DXCH     BUF                                   #  THREE WORD BUFFER, BUF.
046488,000925:    7133           30156                           CA       MPAC       +2                         
046489,000926:    7134           54132                           TS       BUF        +2                         
046490,000927: 
046491,000928:    7135           30136                           CA       DOTINC                                #  ADVANCE ADDRWD TO Y COMPONENT OF
046492,000929:    7136           26116                           ADS      ADDRWD                                #  OTHER ARGUMENT.
046493,000930:    7137           07056                           TC       DMPSUB                                
046494,000931:    7140           52156                           DXCH     MPAC       +1                         #  ACCUMULATE PARTIAL PRODUCTS.
046495,000932:    7141           20132                           DAS      BUF        +1                         
046496,000933:    7142           60154                           AD       MPAC                                  
046497,000934:    7143           60130                           AD       BUF                                   
046498,000935:    7144           54130                           TS       BUF                                   
046499,000936:    7145           17147                           TCF      +2                                    
046500,000937:    7146           54121                           TS       OVFIND                                #  IF OVERFLOW OCCURS.
046501,000938: 
046502,000939:    7147           52162                           DXCH     MPAC       +5                         #  MULTIPLY Z COMPONENTS.
046503,000940:    7150           52155                           DXCH     MPAC                                  
046504,000941:    7151           30136                           CA       DOTINC                                
046505,000942:    7152           26116                           ADS      ADDRWD                                
046506,000943:    7153           07056                           TC       DMPSUB                                
046507,000944:    7154           52132        ENDDOT             DXCH     BUF        +1                         #  LEAVE FINAL ACCUMULATION IN MPAC.
046508,000945:    7155           20156                           DAS      MPAC       +1                         
046509,000946:    7156           60154                           AD       MPAC                                  
046510,000947:    7157           60130                           AD       BUF                                   
046511,000948:    7160           54154                           TS       MPAC                                  
046512,000949:    7161           00137                           TC       DOTRET                                
046513,000950: 
046514,000951:    7162           06766                           TC       OVERFLOW                              #  ON OVERFLOW HERE.
046515,000952:    7163           00137                           TC       DOTRET                                
046516,000953: 
046517,000954:                                                                                                  #  DOUBLE PRECISION POLYNOMIAL EVALUATOR
046518,000955: 
046519,000956:                                                                                                  #                                  N        N-1
046520,000957:                                                                                                  #        THIS ROUTINE EVALUATES A X  + A   X    + ... + A  X + A  LEAVING THE DP RESULT IN MPAC ON EXIT.
046521,000958:                                                                                                  #                                N      N-1              1      0
046522,000959: 
046523,000960:                                                                                                  #  THE ROUTINE HAS TWO ENTRIES
046524,000961: 
046525,000962:                                                                                                  #        1. ENTRY THRU POWRSERS. THE COEFFICIENTS MAY BE EITHER IN FIXED OR ERASABLE, THE CALL IS BY
046526,000963:                                                                                                  #           TC POWRSERS, AND THE RETURN IS TO LOC(TC POWRSERS)+1. THE ENTERING DATA MUST BE AS FOLLOWS
046527,000964: 
046528,000965:                                                                                                  #                        A       SP      LOC-3           ADDRESS FOR REFERENCING COEF TABLE
046529,000966:                                                                                                  #                        L       SP      N-1             N IS THE DEGREE OF THE POWER SERIES
046530,000967:                                                                                                  #                        MPAC    DP      X               ARGUMENT
046531,000968: 
046532,000969:                                                                                                  #                        LOC-2N  DP      A(0)
046533,000970:                                                                                                  #                                ...
046534,000971:                                                                                                  #                        LOC     DP      A(N)
046535,000972: 
046536,000973:                                                                                                  #        2. ENTRY THRU POLY. THE CALL TO POLY AND THE ENTERING DATA MUST BE AS FOLLOWS
046537,000974: 
046538,000975:                                                                                                  #                        MPAC            DP              X               ARGUMENT
046539,000976: 
046540,000977:                                                                                                  #                        LOC             TC              POLY
046541,000978:                                                                                                  #                        LOC+1           SP              N-1
046542,000979:                                                                                                  #                        LOC+2           DP              A(0)
046543,000980:                                                                                                  #                                        ...
046544,000981:                                                                                                  #                        LOC+2N+2        DP              A(N)            RETURN IS TO LOC+2N+4
046545,000982: 
046546,000983:    7164           00006        POWRSERS           EXTEND                                         
046547,000984:    7165           22141                           QXCH     POLYRET                               #  RETURN ADDRESS
046548,000985:    7166           54117                           TS       POLISH                                #  POWER SERIES ADDRESS
046549,000986:    7167           22140                           LXCH     POLYCNT                               #  N-1 TO COUNTER
046550,000987:    7170           17201                           TCF      POLYCOM                               #  SKIP SET UP BY POLY
046551,000988: 
046552,000989:    7171           50002        POLY               INDEX    Q                                     
046553,000990:    7172           30000                           CAF      0                                     
046554,000991:    7173           54140                           TS       POLYCNT                               #  N-1 TO COUNTER
046555,000992:    7174           60000                           DOUBLE                                         
046556,000993:    7175           60002                           AD       Q                                     
046557,000994:    7176           54117                           TS       POLISH                                #  L(A(N))-3 TO POLISH
046558,000995:    7177           65004                           AD       FIVE                                  
046559,000996:    7200           54141                           TS       POLYRET                               #  STORE RETURN ADDRESS
046560,000997: 
046561,000998:    7201           36242        POLYCOM            CAF      LVBUF                                 #  INCOMING X WILL BE MOVED TO VBUF, SO
046562,000999:    7202           54116                           TS       ADDRWD                                #  SET ADDRWD SO DMPSUB WILL MPY BY VBUF.
046563,001000: 
046564,001001:    7203           00006                           EXTEND                                         
046565,001002:    7204           50117                           INDEX    POLISH                                
046566,001003:    7205           30004                           DCA      3                                     
046567,001004:    7206           52155                           DXCH     MPAC                                  #  LOAD A(N) INTO MPAC,
046568,001005:    7207           52123                           DXCH     VBUF                                  #  SAVING X IN VBUF
046569,001006:    7210           17214                           TCF      POLY2                                 
046570,001007: 
046571,001008:    7211           54140        POLYLOOP           TS       POLYCNT                               #  SAVE DECREMENTED LOOP COUNTER
046572,001009:    7212           45000                           CS       TWO                                   
046573,001010:    7213           26117                           ADS      POLISH                                #  REGRESS COEFFICIENT POINTER
046574,001011: 
046575,001012:    7214           07056        POLY2              TC       DMPSUB                                #  MULTIPLY BY X
046576,001013:    7215           00006                           EXTEND                                         
046577,001014:    7216           50117                           INDEX    POLISH                                
046578,001015:    7217           30002                           DCA      1                                     #  ADD IN NEXT COEFFICIENT
046579,001016:    7220           20155                           DAS      MPAC                                  #  USERS RESPONSIBILITY TO ASSURE NO OVFLOW
046580,001017: 
046581,001018:    7221           10140                           CCS      POLYCNT                               
046582,001019:    7222           17211                           TCF      POLYLOOP                              
046583,001020:    7223           00141                           TC       POLYRET                               #  RETURN CALLER
046584,001021: 
046585,001022:                                                                                                  #  MISCELLANEOUS MULTI-PRECISION ROUTINES REQUIRED IN FIXED-FIXED BUT NOT USED BY THE INTERPRETER.
046586,001023: 
046587,001024:    7224           35003        DPAGREE            CAF      ZERO                                  #  DOUBLE PRECISION ENTRY -
046588,001025:    7225           54156        BUFAGREE           TS       MPAC       +2                         #  ZERO LOW-ORDER WORD
046589,001026:    7226           22002        TPAGREE            LXCH     Q                                     #  FORCE SIGN AGREEMENT AMONG THE TRIPLE
046590,001027:    7227           06672                           TC       BRANCH                                #  PRECISION CONTENTS OF MPAC.  RETURNING
046591,001028:    7230           17234                           TCF      ARG+                                  #  WITH SIGNUM OF THE INPUT IN A.
046592,001029:    7231           17254                           TCF      ARGZERO                               
046593,001030: 
046594,001031:    7232           44761                           CS       POSMAX                                #  IF NEGATIVE.
046595,001032:    7233           17235                           TCF      +2                                    
046596,001033: 
046597,001034:    7234           34761        ARG+               CAF      POSMAX                                
046598,001035:    7235           54002                           TS       Q                                     
046599,001036:    7236           00006                           EXTEND                                         
046600,001037:    7237           24000                           AUG      A                                     #  FORMS +-1.0.
046601,001038:    7240           60156                           AD       MPAC       +2                         
046602,001039:    7241           54156                           TS       MPAC       +2                         
046603,001040:    7242           35003                           CAF      ZERO                                  
046604,001041:    7243           60002                           AD       Q                                     
046605,001042:    7244           60155                           AD       MPAC       +1                         
046606,001043:    7245           54155                           TS       MPAC       +1                         
046607,001044:    7246           35003                           CAF      ZERO                                  
046608,001045:    7247           60002                           AD       Q                                     #  Q STILL HAS POSMAX OR NEGMAX IN IT.
046609,001046:    7250           60154                           AD       MPAC                                  
046610,001047:    7251           54154        ARGZERO2           TS       MPAC                                  #  ALWAYS SKIPPING UNLESS ARGZERO.
046611,001048:    7252           54155                           TS       MPAC       +1                         
046612,001049:    7253           00001                           TC       L                                     #  RETURN VIA L.
046613,001050: 
046614,001051:    7254           54156        ARGZERO            TS       MPAC       +2                         #  SET ALL THREE MPAC REGISTERS TO ZERO.
046615,001052:    7255           17251                           TCF      ARGZERO2                              
046616,001053: 
046617,001054:                                                                                                  #  SHORTMP MULTIPLIES THE TP CONTENTS OF MPAC BY THE SINGLE PRECISION NUMBER ARRIVING IN A.
046618,001055: 
046619,001056:    7256           54135        SHORTMP            TS       MPTEMP                                
046620,001057:    7257           00006                 +1        EXTEND                                         
046621,001058:    7260           70156                           MP       MPAC       +2                         
046622,001059:    7261           54156                           TS       MPAC       +2                         
046623,001060:    7262           35003        SHORTMP2           CAF      ZERO                                  #  SO SUBSEQUENT DAS WILL WORK.
046624,001061:    7263           56155                           XCH      MPAC       +1                         
046625,001062:    7264           17075                           TCF      DMPSUB2                               
046626,001063: 
046627,001064:                                                                                                  #  MISCELLANEOUS VECTOR OPERATIONS. INCLUDED HERE ARE THE FOLLOWING:
046628,001065: 
046629,001066:                                                                                                  #        1.      DOT             DP VECTOR DOT PRODUCT.
046630,001067:                                                                                                  #        2.      VXV             DP VECTOR CROSS PRODUCT.
046631,001068:                                                                                                  #        3.      VXSC            DP VECTOR TIMES SCALAR.
046632,001069:                                                                                                  #        4.      V/SC            DP VECTOR DIVIDED BY SCALAR.
046633,001070:                                                                                                  #        5.      VPROJ           DP VECTOR PROJECTION. ( (MPAC.X)MPAC ).
046634,001071:                                                                                                  #        6.      VXM             DP VECTOR POST-MULTIPLIED BY MATRIX.
046635,001072:                                                                                                  #        7.      MXV             DP VECTOR PRE-MULTIPLIED BY MATRIX.
046636,001073: 
046637,001074:    7265           07123        DOT                TC       PREDOT                                #  DO THE DOT PRODUCT AND EXIT, CHANGING
046638,001075:    7266           35003        DMODE              CAF      ZERO                                  #  THE MODE TO DP SCALAR.
046639,001076:    7267           16027                           TCF      NEWMODE                               
046640,001077: 
046641,001078:    7270           35000        MXV                CAF      TWO                                   #  SET UP MATINC AND DOTINC FOR ROW
046642,001079:    7271           54140                           TS       MATINC                                #  VECTORS.
046643,001080:    7272           17276                           TCF      VXM/MXV                               #  GO TO COMMON PORTION.
046644,001081: 
046645,001082:    7273           44355        VXM                CS       TEN                                   #  SET MATINC AND DOTINC TO REFER TO MATRIX
046646,001083:    7274           54140                           TS       MATINC                                #  AS THREE COLUMN VECTORS.
046647,001084:    7275           36211                           CAF      SIX                                   
046648,001085: 
046649,001086:                                                                                                  #  COMMON PORTION OF MXV AND VXM.
046650,001087: 
046651,001088:    7276           54136        VXM/MXV            TS       DOTINC                                
046652,001089: 
046653,001090:                                                                                                  #  ITRACE (2) REFERS TO "VXM/MXV".
046654,001091: 
046655,001092:    7277           07466                           TC       MPACVBUF                              #  SAVE VECTOR IN MPAC FOR FURTHER USE.
046656,001093: 
046657,001094:    7300           07125                           TC       DOTSUB                                #  GO DOT TO GET X COMPONENT OF ANSWER.
046658,001095:    7301           00006                           EXTEND                                         
046659,001096:    7302           30123                           DCA      VBUF                                  #  MOVE MPAC VECTOR BACK INTO MPAC, SAVING
046660,001097:    7303           52155                           DXCH     MPAC                                  #  NEW X COMPONENT IN BUF2.
046661,001098:    7304           52134                           DXCH     BUF2                                  
046662,001099:    7305           00006                           EXTEND                                         
046663,001100:    7306           30125                           DCA      VBUF       +2                         
046664,001101:    7307           52160                           DXCH     MPAC       +3                         
046665,001102:    7310           00006                           EXTEND                                         
046666,001103:    7311           30127                           DCA      VBUF       +4                         
046667,001104:    7312           52162                           DXCH     MPAC       +5                         
046668,001105:    7313           30140                           CA       MATINC                                #  INITIALIZE ADDRWD FOR NEXT DOT PRODUCT.
046669,001106:    7314           26116                           ADS      ADDRWD                                #  FORMS BASE ADDRESS OF NEXT COLUMN(ROW).
046670,001107: 
046671,001108:    7315           07125                           TC       DOTSUB                                
046672,001109:    7316           52123                           DXCH     VBUF                                  #  MOVE GIVEN VECTOR BACK TO MPAC, SAVING Y
046673,001110:    7317           52155                           DXCH     MPAC                                  #  COMPONENT OF ANSWER IN VBUF +2.
046674,001111:    7320           52125                           DXCH     VBUF       +2                         
046675,001112:    7321           52160                           DXCH     MPAC       +3                         
046676,001113:    7322           52127                           DXCH     VBUF       +4                         
046677,001114:    7323           52162                           DXCH     MPAC       +5                         
046678,001115:    7324           30140                           CA       MATINC                                #  FORM ADDRESS OF LAST COLUMN OR ROW.
046679,001116:    7325           26116                           ADS      ADDRWD                                
046680,001117: 
046681,001118:    7326           07125                           TC       DOTSUB                                
046682,001119:    7327           52134                           DXCH     BUF2                                  #  ANSWER NOW COMPLETE. PUT COMPONENTS INTO
046683,001120:    7330           52155                           DXCH     MPAC                                  #  PROPER MPAC REGISTERS.
046684,001121:    7331           52162                           DXCH     MPAC       +5                         
046685,001122:    7332           52125                           DXCH     VBUF       +2                         
046686,001123:    7333           52160                           DXCH     MPAC       +3                         
046687,001124:    7334           16030                           TCF      DANZIG                                #  EXIT.
046688,001125: 
046689,001126:                                                                                                  #  VXSC - VECTOR TIMES SCALAR.
046690,001127: 
046691,001128:    7335           10163        VXSC               CCS      MODE                                  #  TEST PRESENT MODE.
046692,001129:    7336           17364                           TCF      DVXSC                                 #  SEPARATE ROUTINE WHEN SCALAR IS IN MPAC.
046693,001130:    7337           17364                           TCF      DVXSC                                 
046694,001131: 
046695,001132:    7340           07056        VVXSC              TC       DMPSUB                                #  COMPUTE X COMPONENT
046696,001133:    7341           07107                           TC       VROUND                                #  AND ROUND IT.
046697,001134:    7342           52160                           DXCH     MPAC       +3                         #  PUT Y COMPONENT INTO MPAC SAVING MPAC IN
046698,001135:    7343           52155                           DXCH     MPAC                                  #  MPAC +3.
046699,001136:    7344           52160                           DXCH     MPAC       +3                         
046700,001137: 
046701,001138:    7345           07056                           TC       DMPSUB                                #  DO SAME FOR Y AND Z COMPONENTS.
046702,001139:    7346           07107                           TC       VROUND                                
046703,001140:    7347           52162                           DXCH     MPAC       +5                         
046704,001141:    7350           52155                           DXCH     MPAC                                  
046705,001142:    7351           52162                           DXCH     MPAC       +5                         
046706,001143: 
046707,001144:    7352           07056                           TC       DMPSUB                                
046708,001145:    7353           07107                           TC       VROUND                                
046709,001146:    7354           52155        VROTATEX           DXCH     MPAC                                  #  EXIT USED TO RESTORE MPAC AFTER THIS
046710,001147:    7355           52162                           DXCH     MPAC       +5                         #  TYPE OF ROTATION. CALLED BY VECTOR SHIFT
046711,001148:    7356           52160                           DXCH     MPAC       +3                         #  RIGHT, V/SC, ETC.
046712,001149:    7357           52155                           DXCH     MPAC                                  
046713,001150:    7360           16030                           TCF      DANZIG                                
046714,001151: 
046715,001152:                                                                                                  #  DP VECTOR PROJECTION ROUTINE.
046716,001153: 
046717,001154:    7361           07123        VPROJ              TC       PREDOT                                #  (MPAC.X)MPAC IS COMPUTED AND LEFT IN
046718,001155:    7362           44777                           CS       FOUR                                  #  MPAC. DO DOT AND FALL INTO DVXSC.
046719,001156:    7363           26116                           ADS      ADDRWD                                
046720,001157: 
046721,001158:                                                                                                  #  VXSC WHEN SCALAR ARRIVES IN MPAC AND VECTOR IS AT X.
046722,001159: 
046723,001160:    7364           00006        DVXSC              EXTEND                                         #  SAVE SCALAR IN MPAC +3 AND GET X
046724,001161:    7365           30155                           DCA      MPAC                                  #  COMPONENT OF ANSWER.
046725,001162:    7366           52160                           DXCH     MPAC       +3                         
046726,001163:    7367           07056                           TC       DMPSUB                                
046727,001164:    7370           07107                           TC       VROUND                                
046728,001165: 
046729,001166:    7371           35000                           CAF      TWO                                   #  ADVANCE ADDRWD TO Y COMPONENT OF X.
046730,001167:    7372           26116                           ADS      ADDRWD                                
046731,001168:    7373           00006                           EXTEND                                         
046732,001169:    7374           30160                           DCA      MPAC       +3                         #  PUT SCALAR BACK INTO MPAC AND SAVE
046733,001170:    7375           52155                           DXCH     MPAC                                  #  X RESULT IN MPAC +5.
046734,001171:    7376           52162                           DXCH     MPAC       +5                         
046735,001172:    7377           07056                           TC       DMPSUB                                
046736,001173:    7400           07107                           TC       VROUND                                
046737,001174: 
046738,001175:    7401           35000                           CAF      TWO                                   
046739,001176:    7402           26116                           ADS      ADDRWD                                #  TO Z COMPONENT.
046740,001177:    7403           52160                           DXCH     MPAC       +3                         #  BRING SCALAR BACK, PUTTING Y RESULT IN
046741,001178:    7404           52155                           DXCH     MPAC                                  #  THE PROPER PLACE.
046742,001179:    7405           52160                           DXCH     MPAC       +3                         
046743,001180:    7406           07056                           TC       DMPSUB                                
046744,001181:    7407           07107                           TC       VROUND                                
046745,001182: 
046746,001183:    7410           52155                           DXCH     MPAC                                  #  PUT Z COMPONENT IN PROPER PLACE, ALSO
046747,001184:    7411           52162                           DXCH     MPAC       +5                         #  POSITIONING X.
046748,001185:    7412           52155                           DXCH     MPAC                                  
046749,001186: 
046750,001187:    7413           16470                           TCF      VMODE                                 #  MODE HAS CHANGED TO VECTOR.
046751,001188: 
046752,001189:                                                                                                  #  THE VECTOR CROSS PRODUCT ROUTINE CALCULATES (X M -X M ,X M -X M ,X M -X M ) WHERE M IS THE VECTOR IN
046753,001190:                                                                                                  #                                                3 2  2 3  1 3  3 1  2 1  1 2
046754,001191:                                                                                                  #  MPAC AND X THE VECTOR AT THE GIVEN ADDRESS.
046755,001192: 
046756,001193:    7414           00006        VXV                EXTEND                                         
046757,001194:    7415           30162                           DCA      MPAC       +5                         #  FORM UP M3X1, LEAVING M1 IN VBUF.
046758,001195:    7416           52155                           DXCH     MPAC                                  
046759,001196:    7417           52123                           DXCH     VBUF                                  
046760,001197:    7420           07056                           TC       DMPSUB                                #  BY X1.
046761,001198: 
046762,001199:    7421           00006                           EXTEND                                         
046763,001200:    7422           40160                           DCS      MPAC       +3                         #  CALCULATE -X1M2, SAVING X1M3 IN VBUF +2.
046764,001201:    7423           52155                           DXCH     MPAC                                  
046765,001202:    7424           52125                           DXCH     VBUF       +2                         
046766,001203:    7425           07056                           TC       DMPSUB                                
046767,001204: 
046768,001205:    7426           35000                           CAF      TWO                                   #  ADVANCE ADDRWD TO X2.
046769,001206:    7427           26116                           ADS      ADDRWD                                
046770,001207:    7430           00006                           EXTEND                                         
046771,001208:    7431           40162                           DCS      MPAC       +5                         #  PREPARE TO GET -X2M3, SAVING -X1M2 IN
046772,001209:    7432           52155                           DXCH     MPAC                                  #  MPAC +5.
046773,001210:    7433           52162                           DXCH     MPAC       +5                         
046774,001211:    7434           07056                           TC       DMPSUB                                
046775,001212: 
046776,001213:    7435           00006                           EXTEND                                         
046777,001214:    7436           30123                           DCA      VBUF                                  #  GET X2M1, SAVING -X2M3 IN VBUF +4.
046778,001215:    7437           52155                           DXCH     MPAC                                  
046779,001216:    7440           52127                           DXCH     VBUF       +4                         
046780,001217:    7441           07056                           TC       DMPSUB                                
046781,001218: 
046782,001219:    7442           35000                           CAF      TWO                                   #  ADVANCE ADDRWD TO X3.
046783,001220:    7443           26116                           ADS      ADDRWD                                
046784,001221:    7444           00006                           EXTEND                                         
046785,001222:    7445           40123                           DCS      VBUF                                  #  GET -X3M1, ADDING X2M1 TO MPAC +5 TO
046786,001223:    7446           52155                           DXCH     MPAC                                  #  COMPLETE THE Z COMPONENT OF THE ANSWER.
046787,001224:    7447           20162                           DAS      MPAC       +5                         
046788,001225: 
046789,001226:    7450           00006                           EXTEND                                         
046790,001227:    7451           17453                           BZF      +2                                    
046791,001228:    7452           06760                           TC       OVERFLWZ                              
046792,001229: 
046793,001230:    7453           07056                           TC       DMPSUB                                
046794,001231:    7454           52125                           DXCH     VBUF       +2                         #  MOVE X1M3 TO MPAC +3 SETTING UP FOR X3M2
046795,001232:    7455           52160                           DXCH     MPAC       +3                         #  AND ADD -X3M1 TO MPAC +3 TO COMPLETE THE
046796,001233:    7456           52155                           DXCH     MPAC                                  #  Y COMPONENT OF THE RESULT.
046797,001234:    7457           20160                           DAS      MPAC       +3                         
046798,001235: 
046799,001236:    7460           00006                           EXTEND                                         
046800,001237:    7461           17463                           BZF      +2                                    
046801,001238:    7462           06763                           TC       OVERFLWY                              
046802,001239: 
046803,001240:    7463           07056                           TC       DMPSUB                                
046804,001241:    7464           52127                           DXCH     VBUF       +4                         #  GO ADD -X2M3 TO X3M2 TO COMPLETE THE X
046805,001242:    7465           16747                           TCF      ENDVXV                                #  COMPONENT (TAIL END OF DAD).
046806,001243: 
046807,001244:                                                                                                  #  THE MPACVBUF SUBROUTINE SAVES THE VECTOR IN MPAC IN VBUF WITHOUT CLOBBERING MPAC.
046808,001245: 
046809,001246:    7466           00006        MPACVBUF           EXTEND                                         #  CALLED BY MXV, VXM, AND UNIT.
046810,001247:    7467           30155                           DCA      MPAC                                  
046811,001248:    7470           52123                           DXCH     VBUF                                  
046812,001249:    7471           00006                           EXTEND                                         
046813,001250:    7472           30160                           DCA      MPAC       +3                         
046814,001251:    7473           52125                           DXCH     VBUF       +2                         
046815,001252:    7474           00006                           EXTEND                                         
046816,001253:    7475           30162                           DCA      MPAC       +5                         
046817,001254:    7476           52127                           DXCH     VBUF       +4                         
046818,001255:    7477           00002                           TC       Q                                     #  RETURN TO CALLER.
046819,001256: 
046820,001257:                                                                                                  #  DOUBLE PRECISION SIGN AGREE ROUTINE. ARRIVE WITH INPUT IN A+L. OUTPUT IS IN A + L.
046821,001258: 
046822,001259:    7500           10000        ALSIGNAG           CCS      A                                     #  TEST UPPER PART.
046823,001260:    7501           17505                           TCF      UPPOS                                 #  IT IS POSITIVE
046824,001261:    7502           00002                           TC       Q                                     #  ZERO
046825,001262:    7503           17515                           TCF      UPNEG                                 #  NEGATIVE
046826,001263:    7504           00002                           TC       Q                                     #  ZERO
046827,001264: 
046828,001265:    7505           56001        UPPOS              XCH      L                                     #  SAVE DECREMENTED UPPER PART.
046829,001266:    7506           64764                           AD       HALF                                  
046830,001267:    7507           64764                           AD       HALF                                  
046831,001268:    7510           54000                           TS       A                                     #  SKIPS ON OVERFLOW
046832,001269:    7511           17513                           TCF      +2                                    
046833,001270:    7512           24001                           INCR     L                                     #  RESTORE UPPER TO ROIGINAL VALUE
046834,001271:    7513           56001                           XCH      L                                     #  SWAP A + L BACK.
046835,001272:    7514           00002                           TC       Q                                     
046836,001273: 
046837,001274:    7515           56001        UPNEG              XCH      L                                     #  SAVE COMPLEMENTED + DECREMENTED UPPER PT
046838,001275:    7516           64763                           AD       NEGMAX                                
046839,001276:    7517           67702                           AD       NEGONE                                
046840,001277:    7520           54000                           TS       A                                     
046841,001278:    7521           17523                           TCF      +2                                    #  DONT INCREMENT IF NO OVERFLOW.
046842,001279:    7522           24001                           INCR     L                                     
046843,001280:    7523           56001                           XCH      L                                     
046844,001281:    7524           40000                           COM                                            #  MAKE NEGATIVE AGAIN.
046845,001282:    7525           00002                           TC       Q                                     
046846,001283: 
046847,001284:                                                                                                  #  INTERPRETIVE INSTRUCTIONS WHOSE EXECUTION CONSISTS OF PRINCIPALLY CALLING SUBROUTINES.
046848,001285: 
046849,001286:    7526           07056        DMP1               TC       DMPSUB                                #  DMP INSTRUCTION.
046850,001287:    7527           16030                           TCF      DANZIG                                
046851,001288: 
046852,001289:    7530           07056        DMPR               TC       DMPSUB                                
046853,001290:    7531           07106                           TC       ROUNDSUB   +1                         #  (C(A) = +0).
046854,001291:    7532           16030                           TCF      DANZIG                                
046855,001292: 
046856,001293:    7533           00006        DDV                EXTEND                                         
046857,001294:    7534           50116                           INDEX    ADDRWD                                #  MOVE DIVIDEND INTO BUF.
046858,001295:    7535           30001                           DCA      0                                     
046859,001296:    7536           17543                           TCF      BDDV       +4                         
046860,001297: 
046861,001298:    7537           00006        BDDV               EXTEND                                         #  MOVE DIVISOR INTO MPAC SAVING MPAC, THE
046862,001299:    7540           50116                           INDEX    ADDRWD                                #  DIVIDEND, IN BUF.
046863,001300:    7541           30001                           DCA      0                                     
046864,001301:    7542           52155                           DXCH     MPAC                                  
046865,001302:    7543           52131                 +4        DXCH     BUF                                   
046866,001303:    7544           35003                           CAF      ZERO                                  #  DIVIDE ROUTINES IN BANK 0.
046867,001304:    7545           54004                           TS       FBANK                                 
046868,001305:    7546           12353                           TCF      DDV/BDDV                              
046869,001306: 
046870,001307:    7547           30116        SETPD              CA       ADDRWD                                #  MUST SET TO WORK AREA, OR EBANK TROUBLE.
046871,001308:    7550           54166                           TS       PUSHLOC                               
046872,001309:    7551           16032                           TCF      NOIBNKSW                              #  NO FBANK SWITCH REQUIRED.
046873,001310: 
046874,001311:    7552           35003        TSLC               CAF      ZERO                                  #  SHIFTING ROUTINES LOCATED IN BANK 00.
046875,001312:    7553           54004                           TS       FBANK                                 
046876,001313:    7554           12172                           TCF      TSLC2                                 
046877,001314: 
046878,001315:    7555           36043        GSHIFT             CAF      LOW7                                  #  USED AS MASK AT GENSHIFT. THIS PROCESSES
046879,001316:    7556           54004                           TS       FBANK                                 #  ANY SHIFT INSTRUCTION (EXCEPT TSLC) WITH
046880,001317:    7557           12214                           TCF      GENSHIFT                              #  AN ADDRESS (ROUTINES IN BANK 0).
046881,001318: 
046882,001319:                                                                                                  #  THE FOLLOWING IS THE PROLOGUE TO V/SC. IF THE PRESENT MODE IS VECTOR, IT SAVES THE SCALAR AT X IN BUF
046883,001320:                                                                                                  #  AND CALLS THE V/SC ROUTINE IN BANK 0. IF THE PRESENT MODE IS SCALAR, IT MOVES THE VECTOR AT X INTO MPAC, SAVING
046884,001321:                                                                                                  #  THE SCALAR IN MPAC IN BUF BEFORE CALLING THE V/SC ROUTINE IN BANK 0.
046885,001322: 
046886,001323:    7560           10163        V/SC               CCS      MODE                                  
046887,001324:    7561           17572                           TCF      DV/SC                                 #  MOVE VECTOR INTO MPAC.
046888,001325:    7562           17572                           TCF      DV/SC                                 
046889,001326: 
046890,001327:    7563           00006        VV/SC              EXTEND                                         
046891,001328:    7564           50116                           INDEX    ADDRWD                                
046892,001329:    7565           30001                           DCA      0                                     
046893,001330:    7566           52131        V/SC1              DXCH     BUF                                   #  IN BOTH CASES, VECTOR IS NOW IN MPAC AND
046894,001331:    7567           35003                           CAF      ZERO                                  #  SCALAR IN BUF.
046895,001332:    7570           54004                           TS       FBANK                                 
046896,001333:    7571           12653                           TCF      V/SC2                                 
046897,001334: 
046898,001335:    7572           00006        DV/SC              EXTEND                                         
046899,001336:    7573           50116                           INDEX    ADDRWD                                
046900,001337:    7574           30003                           DCA      2                                     
046901,001338:    7575           52160                           DXCH     MPAC       +3                         
046902,001339:    7576           00006                           EXTEND                                         
046903,001340:    7577           50116                           INDEX    ADDRWD                                
046904,001341:    7600           30005                           DCA      4                                     
046905,001342:    7601           52162                           DXCH     MPAC       +5                         
046906,001343: 
046907,001344:    7602           45001                           CS       ONE                                   #  CHANGE MODE TO VECTOR.
046908,001345:    7603           54163                           TS       MODE                                  
046909,001346: 
046910,001347:    7604           00006                           EXTEND                                         
046911,001348:    7605           50116                           INDEX    ADDRWD                                
046912,001349:    7606           30001                           DCA      0                                     
046913,001350:    7607           52155                           DXCH     MPAC                                  
046914,001351:    7610           17566                           TCF      V/SC1                                 #  FINISH PROLOGUE AT COMMON SECTION.
046915,001352: 
046916,001353:                                                                                                  #  SIGN AND COMPLEMENT INSTRUCTIONS.
046917,001354: 
046918,001355:    7611           50116        SIGN               INDEX    ADDRWD                                #  CALL COMP INSTRUCTION IF WORD AT X IS
046919,001356:    7612           10000                           CCS      0                                     #  NEGATIVE NON-ZERO.
046920,001357:    7613           16030                           TCF      DANZIG                                
046921,001358:    7614           17616                           TCF      +2                                    
046922,001359:    7615           17624                           TCF      COMP                                  #  DO THE COMPLEMENT.
046923,001360: 
046924,001361:    7616           50116                           INDEX    ADDRWD                                
046925,001362:    7617           10001        CCSL               CCS      1                                     
046926,001363:    7620           16030                           TCF      DANZIG                                
046927,001364:    7621           16030                           TCF      DANZIG                                
046928,001365:    7622           17624                           TCF      COMP                                  
046929,001366:    7623           16030                           TCF      DANZIG                                
046930,001367:    7624           00006        COMP               EXTEND                                         #  COMPLEMENT DP MPAC IN EVERY CASE.
046931,001368:    7625           40155                           DCS      MPAC                                  
046932,001369:    7626           52155                           DXCH     MPAC                                  
046933,001370: 
046934,001371:    7627           10163                           CCS      MODE                                  #  EITHER COMPLEMENT MPAC +3 OR THE REST OF
046935,001372:    7630           17641                           TCF      DCOMP                                 #  THE VECTOR ACCUMULATOR.
046936,001373:    7631           17641                           TCF      DCOMP                                 
046937,001374: 
046938,001375:    7632           00006                           EXTEND                                         #  VECTOR COMPLEMENT.
046939,001376:    7633           40160                           DCS      MPAC       +3                         
046940,001377:    7634           52160                           DXCH     MPAC       +3                         
046941,001378:    7635           00006                           EXTEND                                         
046942,001379:    7636           40162                           DCS      MPAC       +5                         
046943,001380:    7637           52162                           DXCH     MPAC       +5                         
046944,001381:    7640           16030                           TCF      DANZIG                                
046945,001382: 
046946,001383:    7641           40156        DCOMP              CS       MPAC       +2                         
046947,001384:    7642           54156                           TS       MPAC       +2                         
046948,001385:    7643           16030                           TCF      DANZIG                                
046949,001386: 
046950,001387:                                                                                                  #  THE FOLLOWING SHORT SHIFT CODES REQUIRE NO ADDRESS WORD:
046951,001388: 
046952,001389:                                                                                                  #        1.      SR1 TO SR4      SCALAR SHIFT RIGHT.
046953,001390:                                                                                                  #        2.      SR1R TO SR4R    SCALAR SHIFT RIGHT AND ROUND.
046954,001391:                                                                                                  #        3.      SL1 TO SL4      SCALAR SHIFT LEFT.
046955,001392:                                                                                                  #        4.      SL1R TO SL4R    SCALAR SHIFT LEFT AND ROUND.
046956,001393: 
046957,001394:                                                                                                  #        5.      VSR1 TO VSR8    VECTOR SHIFT RIGHT (ALWAYS ROUNDS).
046958,001395:                                                                                                  #        6.      VSL1 TO VSL8    VECTOR SHIFT LEFT (NEVER ROUNDS).
046959,001396: 
046960,001397:                                                                                                  #  THE FOLLOWING CODES REQUIRE AN ADDRESS WHICH MAY BE INDEXED:*
046961,001398: 
046962,001399:                                                                                                  #        1.      SR              SCALAR SHIFT RIGHT.
046963,001400:                                                                                                  #        2.      SRR             SCALAR SHIFT RIGHT AND ROUND.
046964,001401:                                                                                                  #        3.      SL              SCALAR SHIFT LEFT.
046965,001402:                                                                                                  #        4.      SLR             SCALAR SHIFT LEFT AND ROUND.
046966,001403: 
046967,001404:                                                                                                  #        5.      VSR             VECTOR SHIFT RIGHT.
046968,001405:                                                                                                  #        6.      VSL             VECTOR SHIFT LEFT.
046969,001406: 
046970,001407:                                                                                                  #  * IF THE ADDRESS IS INDEXED, AND THE INDEX MODIFICATION RESULTS IN A NEGATIVE SHIFT COUNT, A SHIFT OF THE
046971,001408:                                                                                                  #  ABSOLUTE VALUE OF THE COUNT IS DONE IN THE OPPOSITE DIRECTION.
046972,001409: 
046973,001410: 00,2000                                           SETLOC   INTERB0                               
046974,001411: 00,2000                                           BANK                                           
046975,001412: 
046976,001413: 00,2017                                           COUNT*   $$/INTER                              
046977,001414: 00,2017           36211        SHORTT             CAF      SIX                                   #  SCALAR SHORT SHIFTS COME HERE. THE SHIFT
046978,001415: 00,2020           70020                           MASK     CYR                                   #  COUNT-1 IS NOW IN BITS 2-3 OF CYR. THE
046979,001416: 00,2021           54021                           TS       SR                                    #  ROUNDING BIT IS IN BIT1 AT THIS POINT.
046980,001417: 
046981,001418: 00,2022           10020                           CCS      CYR                                   #  SEE IF RIGHT OR LEFT SHIFT DESIRED.
046982,001419: 00,2023           12101                           TCF      TSSL                                  #  SHIFT LEFT.
046983,001420: 
046984,001421: 00,2024           00024        SRDDV              DEC      20         B-14                       #  MPTEMP SETTING FOR SR BEFORE DDV.
046985,001422: 
046986,001423: 00,2025           50021        TSSR               INDEX    SR                                    #  GET SHIFTING BIT.
046987,001424: 00,2026           34764                           CAF      BIT14                                 
046988,001425: 00,2027           54135                           TS       MPTEMP                                
046989,001426: 
046990,001427: 00,2030           10020                           CCS      CYR                                   #  SEE IF A ROUND IS DESIRED.
046991,001428: 00,2031           02050        RIGHTR             TC       MPACSRND                              #  YES - SHIFT RIGHT AND ROUND.
046992,001429: 00,2032           16027                           TCF      NEWMODE                               #  SET MODE TO DP (C(A) = 0).
046993,001430: 00,2033           30135        MPACSHR            CA       MPTEMP                                #  DO A TRIPLE PRECISION SHIFT RIGHT.
046994,001431: 00,2034           00006                           EXTEND                                         
046995,001432: 00,2035           70156                           MP       MPAC       +2                         
046996,001433: 00,2036           54156                 +3        TS       MPAC       +2                         #  (EXIT FROM SQRT AND ABVAL).
046997,001434: 00,2037           30135                           CA       MPTEMP                                
046998,001435: 00,2040           00006                           EXTEND                                         
046999,001436: 00,2041           70154                           MP       MPAC                                  #  SHIFT MAJOR PART INTO A,L AND PLACE IN
047000,001437: 00,2042           52155                           DXCH     MPAC                                  #  MPAC,+1.
047001,001438: 00,2043           30135                           CA       MPTEMP                                
047002,001439: 00,2044           00006                           EXTEND                                         
047003,001440: 00,2045           70001                           MP       L                                     #  ORIGINAL C(MPAC +1).
047004,001441: 00,2046           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
047005,001442: 00,2047           16030                           TCF      DANZIG                                
047006,001443: 
047007,001444:                                                                                                  #  MPAC SHIFT RIGHT AND ROUND SUBROUTINES.
047008,001445: 
047009,001446: 00,2050           30156        MPACSRND           CA       MPAC       +2                         #  WE HAVE TO DO ALL THREE MULTIPLIES SINCE
047010,001447: 00,2051           00006                           EXTEND                                         #  MPAC +1 AND MPAC +2 MIGHT HAVE SIGN
047011,001448: 00,2052           70135                           MP       MPTEMP                                #  DISAGREEMENT WITH A SHIFT RIGHT OF 1.
047012,001449: 00,2053           56155                           XCH      MPAC       +1                         
047013,001450: 00,2054           00006                           EXTEND                                         
047014,001451: 00,2055           70135                           MP       MPTEMP                                
047015,001452: 00,2056           56155                           XCH      MPAC       +1                         #  TRIAL MINOR PART.
047016,001453: 00,2057           60001                           AD       L                                     
047017,001454: 
047018,001455: 00,2060           60000        VSHR2              DOUBLE                                         #  (FINISH VECTOR COMPONENT SHIFT RIGHT
047019,001456: 00,2061           54156                           TS       MPAC       +2                         #  AND ROUND.
047020,001457: 00,2062           12064                           TCF      +2                                    
047021,001458: 00,2063           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
047022,001459: 
047023,001460: 00,2064           35003                           CAF      ZERO                                  
047024,001461: 00,2065           54156                           TS       MPAC       +2                         
047025,001462: 00,2066           56154                           XCH      MPAC                                  #  SETTING TO ZERO SO FOLLOWING DAS WORKS.
047026,001463: 00,2067           00006                           EXTEND                                         
047027,001464: 00,2070           70135                           MP       MPTEMP                                
047028,001465: 00,2071           20155                           DAS      MPAC                                  #  AGAIN NO OVERFLOW.
047029,001466: 00,2072           00002                           TC       Q                                     
047030,001467: 
047031,001468: 00,2073           30135        VSHRRND            CA       MPTEMP                                #  ENTRY TO SHIFT RIGHT AND ROUND MPAC WHEN
047032,001469: 00,2074           00006                           EXTEND                                         #  MPAC CONTAINS A VECTOR COMPONENT.
047033,001470: 00,2075           70155                           MP       MPAC       +1                         
047034,001471: 00,2076           54155                           TS       MPAC       +1                         
047035,001472: 00,2077           56001                           XCH      L                                     
047036,001473: 00,2100           12060                           TCF      VSHR2                                 #  GO ADD ONE IF NECESSARY AND FINISH.
047037,001474: 
047038,001475:                                                                                                  #  ROUTINE FOR SHORT SCALAR SHIFT LEFT (AND MAYBE ROUND).
047039,001476: 
047040,001477: 00,2101           30021        TSSL               CA       SR                                    #  GET SHIFT COUNT FOR SR.
047041,001478: 00,2102           54135                 +1        TS       MPTEMP                                
047042,001479: 
047043,001480: 00,2103           00006                 +2        EXTEND                                         #  ENTRY HERE FROM SL FOR SCALARS.
047044,001481: 00,2104           30156                           DCA      MPAC       +1                         #  SHIFTING LEFT ONE PLACE AT A TIME IS
047045,001482: 00,2105           20156                           DAS      MPAC       +1                         #  FASTER THAN DOING THE WHOLE SHIFT WITH
047046,001483: 00,2106           60154                           AD       MPAC                                  #  MULTIPLIES ASSUMING THAT FREQUENCY OF
047047,001484: 00,2107           60154                           AD       MPAC                                  #  SHIFT COUNTS GOES DOWN RAPIDLY AS A
047048,001485: 00,2110           54154                           TS       MPAC                                  #  FUNCTION OF THEIR MAGNITUDE.
047049,001486: 00,2111           12113                           TCF      +2                                    
047050,001487: 00,2112           54121                           TS       OVFIND                                #  OVERFLOW. (LEAVES OVERFLOW-CORRECTED
047051,001488:                                                                                                  #  RESULT ANYWAY).
047052,001489: 00,2113           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNT.
047053,001490: 00,2114           12102                           TCF      TSSL       +1                         
047054,001491: 
047055,001492: 00,2115           10020                           CCS      CYR                                   #  SEE IF ROUND WANTED.
047056,001493: 00,2116           07105        ROUND              TC       ROUNDSUB                              #  YES - ROUND AND EXIT.
047057,001494: 00,2117           16030                           TCF      DANZIG                                #  SL LEAVES A ZERO IN CYR FOR NO ROUND.
047058,001495: 00,2120           16030                           TCF      DANZIG                                #  NO - EXIT IMMEDIATL
047059,001496: 
047060,001497:                                                                                                  #  VECTOR SHIFTING ROUTINES.
047061,001498: 
047062,001499: 00,2121           35005        SHORTV             CAF      LOW3                                  #  SAVE 3 BIT SHIFT COUNT - 1 WITHOUT
047063,001500: 00,2122           70020                           MASK     CYR                                   #  EDITING CYR.
047064,001501: 00,2123           54135                           TS       MPTEMP                                
047065,001502: 00,2124           10020                           CCS      CYR                                   #  SEE IF LEFT OR RIGHT SHIFT.
047066,001503: 00,2125           12145                           TCF      VSSL                                  #  VECTOR SHIFT LEFT.
047067,001504: 00,2126           00176        OCT176             OCT      176                                   #  USED IN PROCESSED SHIFTS WITH - COUNT.
047068,001505: 
047069,001506: 00,2127           50135        VSSR               INDEX    MPTEMP                                #  (ENTRY FROM SR).  PICK UP SHIFTING BIT.
047070,001507: 00,2130           34764                           CAF      BIT14                                 #  MPTEMP CONTAINS THE SHIFT COUNT - 1.
047071,001508: 00,2131           54135                           TS       MPTEMP                                
047072,001509: 00,2132           02073                           TC       VSHRRND                               #  SHIFT X COMPONENT.
047073,001510: 
047074,001511: 00,2133           52155                           DXCH     MPAC                                  #  SWAP X AND Y COMPONENTS.
047075,001512: 00,2134           52160                           DXCH     MPAC       +3                         
047076,001513: 00,2135           52155                           DXCH     MPAC                                  
047077,001514: 00,2136           02073                           TC       VSHRRND                               #  SHIFT Y COMPONENT.
047078,001515: 
047079,001516: 00,2137           52155                           DXCH     MPAC                                  #  SWAP Y AND Z COMPONENTS.
047080,001517: 00,2140           52162                           DXCH     MPAC       +5                         
047081,001518: 00,2141           52155                           DXCH     MPAC                                  
047082,001519: 00,2142           02073                           TC       VSHRRND                               #  SHIFT Z COMPONENT.
047083,001520: 
047084,001521: 00,2143           17354                           TCF      VROTATEX                              #  RESTORE COMPONENTS TO PROPER PLACES.
047085,001522: 
047086,001523:                                                                                                  #  VECTOR SHIFT LEFT - DONE ONE PLACE AT A TIME.
047087,001524: 
047088,001525: 00,2144           54135                 -1        TS       MPTEMP                                #  SHIFTING LOOP.
047089,001526: 
047090,001527: 00,2145           00006        VSSL               EXTEND                                         
047091,001528: 00,2146           30155                           DCA      MPAC                                  
047092,001529: 00,2147           20155                           DAS      MPAC                                  
047093,001530: 00,2150           00006                           EXTEND                                         
047094,001531: 00,2151           12153                           BZF      +2                                    
047095,001532: 00,2152           06766                           TC       OVERFLOW                              
047096,001533: 
047097,001534: 00,2153           00006                           EXTEND                                         
047098,001535: 00,2154           30160                           DCA      MPAC       +3                         
047099,001536: 00,2155           20160                           DAS      MPAC       +3                         
047100,001537: 00,2156           00006                           EXTEND                                         
047101,001538: 00,2157           12161                           BZF      +2                                    
047102,001539: 00,2160           06763                           TC       OVERFLWY                              
047103,001540: 
047104,001541: 00,2161           00006                           EXTEND                                         
047105,001542: 00,2162           30162                           DCA      MPAC       +5                         
047106,001543: 00,2163           20162                           DAS      MPAC       +5                         
047107,001544: 00,2164           00006                           EXTEND                                         
047108,001545: 00,2165           12167                           BZF      +2                                    
047109,001546: 00,2166           06760                           TC       OVERFLWZ                              
047110,001547: 
047111,001548: 00,2167           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNTER.
047112,001549: 00,2170           12144                           TCF      VSSL       -1                         
047113,001550: 00,2171           16030                           TCF      DANZIG                                #  EXIT.
047114,001551: 
047115,001552:                                                                                                  #  TSLC - TRIPLE SHIFT LEFT AND COUNT. SHIFTS MPAC LEFT UNTIL GREATER THAN .5 IN MAGNITUDE, LEAVING
047116,001553:                                                                                                  #  THE COMPLEMENT OF THE NUMBER OF SHIFTS REQUIRED IN X.
047117,001554: 
047118,001555: 00,2172           54135        TSLC2              TS       MPTEMP                                #  START BY ZEROING SHIFT COUNT (IN A NOW).
047119,001556: 00,2173           06672                           TC       BRANCH                                #  EXIT WITH NO SHIFTING IF ARGUMENT ZERO.
047120,001557: 00,2174           12176                           TCF      +2                                    
047121,001558: 00,2175           12212                           TCF      ENDTSLC                               #  STORES ZERO SHIFT COUNT IN THIS CASE.
047122,001559: 
047123,001560: 00,2176           07226                           TC       TPAGREE                               #  MAY CAUSE UPSHIFT OF ONE EXTRA PLACE.
047124,001561: 
047125,001562: 00,2177           30154                           CA       MPAC                                  #  BEGIN NORMALIZATION LOOP.
047126,001563: 00,2200           12207                           TCF      TSLCTEST                              
047127,001564: 
047128,001565: 00,2201           24135        TSLCLOOP           INCR     MPTEMP                                #  INCREMENT SHIFT COUNTER.
047129,001566: 00,2202           00006                           EXTEND                                         
047130,001567: 00,2203           30156                           DCA      MPAC       +1                         
047131,001568: 00,2204           20156                           DAS      MPAC       +1                         
047132,001569: 00,2205           60154                           AD       MPAC                                  
047133,001570: 00,2206           26154                           ADS      MPAC                                  
047134,001571: 00,2207           60000        TSLCTEST           DOUBLE                                         #  SEE IF (ANOTHER) SHIFT IS REQUIRED.
047135,001572: 00,2210           54000                           OVSK                                           
047136,001573: 00,2211           12201                           TCF      TSLCLOOP                              #  YES - INCREMENT COUNT AND SHIFT AGAIN.
047137,001574: 
047138,001575: 00,2212           40135        ENDTSLC            CS       MPTEMP                                
047139,001576: 00,2213           16572                           TCF      STORE1                                #  STORE SHIFT COUNT AND RETURN TO DANZIG.
047140,001577: 
047141,001578:                                                                                                  #           THE FOLLOWING ROUTINES PROCESSES THE GENERAL SHIFT INSTRUCTIONS SR, SRR, SL, AND SLR.
047142,001579:                                                                                                  #  THE GIVEN ADDRESS IS DECODED AS FOLLOWS:
047143,001580: 
047144,001581:                                                                                                  #        BITS 1-7        SHIFT COUNT (SUBADDRESS) LESS THAN 125 DECIMAL.
047145,001582:                                                                                                  #        BIT 8           PSEUDO SIGN BIT (DETECTS CHANGE IN SIGN IN INDEXED SHIFTS).
047146,001583:                                                                                                  #        BIT 9           0 FOR LEFT SHIFT, AND 1 FOR RIGHT SHIFT.
047147,001584:                                                                                                  #        BIT 10          1 FOR TERMINAL ROUND ON SCALAR SHIFTS, 0 OTHERWISE.
047148,001585:                                                                                                  #        BITS 11-13      0.
047149,001586:                                                                                                  #        BIT 14          1.
047150,001587:                                                                                                  #        BIT 15          0.
047151,001588: 
047152,001589:                                                                                                  #  THE ABOVE ENCODING IS DONE BY THE YUL SYSTEM.
047153,001590: 
047154,001591: 00,2214           70116        GENSHIFT           MASK     ADDRWD                                #  GET SHIFT COUNT, TESTING FOR ZERO.
047155,001592: 00,2215           10000                           CCS      A                                     #  (ARRIVES WITH C(A) = LOW7).
047156,001593: 00,2216           12224                           TCF      GENSHFT2                              #  IF NON-ZERO, PROCEED WITH DECREMENTED CT
047157,001594: 
047158,001595: 00,2217           34770                           CAF      BIT10                                 #  ZERO SHIFT COUNT. NO SHIFTS NEEDED BUT
047159,001596: 00,2220           70116                           MASK     ADDRWD                                #  WE MIGHT HAVE TO ROUND MPAC ON SLR AND
047160,001597: 00,2221           10000                           CCS      A                                     #  SRR (SCALAR ONLY).
047161,001598: 00,2222           07105                           TC       ROUNDSUB                              
047162,001599: 00,2223           16030                           TCF      DANZIG                                
047163,001600: 
047164,001601: 00,2224           54135        GENSHFT2           TS       MPTEMP                                #  DECREMENTED SHIFT COUNT TO MPTEMP.
047165,001602: 00,2225           34772                           CAF      BIT8                                  #  TEST MEANING OF LOW SEVEN BIT COUNT IN
047166,001603: 00,2226           00006                           EXTEND                                         #  MPTEMP NOW.
047167,001604: 00,2227           70116                           MP       ADDRWD                                
047168,001605: 00,2230           76214                           MASK     LOW2                                  #  JUMPS ON SHIFT DIRECTION (BIT8) AND
047169,001606: 00,2231           50000                           INDEX    A                                     
047170,001607: 00,2232           12233                           TCF      +1                                    #  ORIGINAL SHIFT DIRECTION (BIT 9).
047171,001608: 00,2233           12332                           TCF      RIGHT-                                #  NEGATIVE SHIFT COUNT FOR SL OR SLR.
047172,001609: 00,2234           12342                           TCF      LEFT                                  #  SL OR SLR.
047173,001610: 00,2235           12336                           TCF      LEFT-                                 #  NEGATIVE SHIFT COUNT WITH SR OR SRR.
047174,001611: 
047175,001612:                                                                                                  #  GENERAL SHIFT RIGHT.
047176,001613: 
047177,001614: 00,2236           10163        RIGHT              CCS      MODE                                  #  SEE IF VECTOR OR SCALAR.
047178,001615: 00,2237           12277                           TCF      GENSCR                                
047179,001616: 00,2240           12277                           TCF      GENSCR                                
047180,001617: 
047181,001618: 00,2241           30135                           CA       MPTEMP                                #  SEE IF SHIFT COUNT LESS THAN 14D.
047182,001619: 00,2242           63726        VRIGHT2            AD       NEG12                                 
047183,001620: 00,2243           00006                           EXTEND                                         
047184,001621: 00,2244           62127                           BZMF     VSSR                                  #  IF SO, BRANCH AND SHIFT IMMEDIATELY.
047185,001622: 
047186,001623: 00,2245           67702                           AD       NEGONE                                #  IF NOT, REDUCE MPTEMP BY A TOTAL OF 14,
047187,001624: 00,2246           54135                           TS       MPTEMP                                #  AND DO A SHIFT RIGHT AND ROUND BY 14.
047188,001625: 00,2247           35003                           CAF      ZERO                                  #  THE ROUND AT THIS STAGE MAY INTRODUCE A
047189,001626: 00,2250           54001                           TS       L                                     #  ONE BIT ERROR IN A SHIFT RIGHT 15D.
047190,001627: 00,2251           56154                           XCH      MPAC                                  
047191,001628: 00,2252           56155                           XCH      MPAC       +1                         
047192,001629: 00,2253           02272                           TC       SETROUND                              #  X COMPONENT NOW SHIFTED, SO MAKE UP THE
047193,001630: 00,2254           20155                           DAS      MPAC                                  #  ROUNDING QUANTITY (0 IN A AND 0 OR +-1
047194,001631:                                                                                                  #  IN L).
047195,001632: 00,2255           56157                           XCH      MPAC       +3                         #  REPEAT THE ABOVE PROCESS FOR Y AND Z.
047196,001633: 00,2256           56160                           XCH      MPAC       +4                         
047197,001634: 00,2257           02272                           TC       SETROUND                              
047198,001635: 00,2260           20160                           DAS      MPAC       +3                         #  NO OVERFLOW ON THESE ADDS.
047199,001636: 
047200,001637: 00,2261           56161                           XCH      MPAC       +5                         
047201,001638: 00,2262           56162                           XCH      MPAC       +6                         
047202,001639: 00,2263           02272                           TC       SETROUND                              
047203,001640: 00,2264           20162                           DAS      MPAC       +5                         
047204,001641: 
047205,001642: 00,2265           10135                           CCS      MPTEMP                                #  SEE IF DONE, DOING FINAL DECREMENT.
047206,001643: 00,2266           54135                           TS       MPTEMP                                
047207,001644: 00,2267           12242                           TCF      VRIGHT2                               
047208,001645: 00,2270           04604        BIASLO             DEC      .2974      B-1                        #  SQRT CONSTANT
047209,001646: 
047210,001647: 00,2271           16030                           TCF      DANZIG                                
047211,001648: 
047212,001649: 00,2272           60000        SETROUND           DOUBLE                                         #  MAKES UP ROUNDING QUANTITY FROM ARRIVING
047213,001650: 00,2273           54156                           TS       MPAC       +2                         #  C(A). L IS ZERO INITIALLY.
047214,001651: 00,2274           35003                           CAF      ZERO                                  
047215,001652: 00,2275           56001                           XCH      L                                     
047216,001653: 00,2276           00002                           TC       Q                                     #  RETURN AND DO THE DAS, RESETTING L TO 0.
047217,001654: 
047218,001655:                                                                                                  #  PROCESS SR AND SRR FOR SCALARS.
047219,001656: 
047220,001657: 00,2277           30135        GENSCR             CA       MPTEMP                                #  SEE IF THE ORIGINAL SHIFT COUNT WAS LESS
047221,001658: 00,2300           63726                 +1        AD       NEG12                                 #  THAN 14D.
047222,001659: 00,2301           00006                           EXTEND                                         
047223,001660: 00,2302           62322                           BZMF     DOSSHFT                               #  DO THE SHIFT IMMEDIATELY IF SO.
047224,001661: 
047225,001662: 00,2303           67702                 +4        AD       NEGONE                                #  IF NOT, DECREMENT SHIFT COUNT BY 14D AND
047226,001663: 00,2304           54135                           TS       MPTEMP                                #  SHIFT MPAC RIGHT 14 PLACES.
047227,001664: 00,2305           35003                           CAF      ZERO                                  
047228,001665: 00,2306           56154                           XCH      MPAC                                  
047229,001666: 00,2307           56155                           XCH      MPAC       +1                         
047230,001667: 00,2310           54156                           TS       MPAC       +2                         
047231,001668: 00,2311           10135                           CCS      MPTEMP                                #  SEE IF FINISHED, DO FINAL DECREMENT.
047232,001669: 00,2312           54135                           TS       MPTEMP                                
047233,001670: 00,2313           02300                           TC       GENSCR     +1                         
047234,001671: 00,2314           22650        SLOPEHI            DEC      .5884                                 #  SQRT CONSTANT.
047235,001672: 00,2315           34770                           CAF      BIT10                                 #  FINISHED WITH SHIFT. SEE IF ROUND
047236,001673: 00,2316           70116                           MASK     ADDRWD                                #  WANTED.
047237,001674: 00,2317           10000                           CCS      A                                     
047238,001675: 00,2320           07105                           TC       ROUNDSUB                              
047239,001676: 00,2321           16030                           TCF      DANZIG                                #  DO SO AND/OR EXIT.
047240,001677: 
047241,001678: 00,2322           50135        DOSSHFT            INDEX    MPTEMP                                #  PICK UP SHIFTING BIT.
047242,001679: 00,2323           34764                           CAF      BIT14                                 
047243,001680: 00,2324           54135                           TS       MPTEMP                                
047244,001681: 00,2325           34770                           CAF      BIT10                                 #  SEE IF TERMINAL ROUND DESIRED.
047245,001682: 00,2326           70116                           MASK     ADDRWD                                
047246,001683: 00,2327           10000                           CCS      A                                     
047247,001684: 00,2330           12031                           TCF      RIGHTR                                #  YES.
047248,001685: 00,2331           12033                           TCF      MPACSHR                               #  JUST SHIFT RIGHT.
047249,001686: 
047250,001687:                                                                                                  #  PROCESS THE RIGHT- (SL(R) WITH A NEGATIVE COUNT), LEFT-, AND LEFT OPTIONS.
047251,001688: 
047252,001689: 00,2332           40135        RIGHT-             CS       MPTEMP                                #  GET ABSOLUTE VALUE - 1 OF SHIFT COUNT
047253,001690: 00,2333           62126                           AD       OCT176                                #  UNDERSTANDING THAT BIT8 (PSEUDO-SIGN)
047254,001691: 00,2334           54135                           TS       MPTEMP                                #  WAS 1 INITIALLY.
047255,001692: 00,2335           12236                           TCF      RIGHT                                 #  DO NORMAL SHIFT RIGHT.
047256,001693: 
047257,001694: 00,2336           42126        LEFT-              CS       OCT176                                #  SAME PROLOGUE TO LEFT FOR INDEXED RIGHT
047258,001695: 00,2337           60135                           AD       MPTEMP                                #  SHIFTS WHOSE NET SHIFT COUNT IS NEGATIVE
047259,001696: 00,2340           40000                           COM                                            
047260,001697: 00,2341           54135                           TS       MPTEMP                                
047261,001698: 
047262,001699: 00,2342           10163        LEFT               CCS      MODE                                  #  SINCE LEFT SHIFTING IS SONE ONE PLACE AT
047263,001700: 00,2343           12346                           TCF      GENSCL                                #  A TIME, NO COMPARISON WITH 14 NEED BE
047264,001701: 00,2344           12346                           TCF      GENSCL                                #  DONE. FOR SCALARS, SEE IF TERMINAL ROUND
047265,001702: 00,2345           12145                           TCF      VSSL                                  #  DESIRED. FOR VECTORS, SHIFT IMMEDIATELY.
047266,001703: 
047267,001704: 00,2346           40116        GENSCL             CS       ADDRWD                                #  PUT ROUNDING BIT (BIT 10 OF ADDRWD) INTO
047268,001705: 00,2347           00006                           EXTEND                                         #  BIT 15 OF CYR WHERE THE ROUNDING BIT OF
047269,001706: 00,2350           74774                           MP       BIT6                                  #  A SHORT SHIFT LEFT WOULD BE
047270,001707: 00,2351           54020                           TS       CYR                                   
047271,001708: 00,2352           12103                           TCF      TSSL       +2                         #  DO THE SHIFT.
047272,001709: 
047273,001710:                                                                                                  #           SCALAR DIVISION INSTRUCTIONS, DDV AND BDDV, ARE EXECUTED HERE. AT THIS POINT, THE DIVIDEND IS IN MPAC
047274,001711:                                                                                                  #  AND THE DIVISOR IN BUF.
047275,001712: 
047276,001713: 00,2353           45001        DDV/BDDV           CS       ONE                                   #  INITIALIZATION.
047277,001714: 00,2354           54136                           TS       DVSIGN                                #  +-1 FOR POSITIVE QUOTIENT - -0 FOR NEG.
047278,001715: 00,2355           54137                           TS       DVNORMCT                              #  DIVIDEND NORMALIZATION COUNT.
047279,001716: 00,2356           54140                           TS       MAXDVSW                               #  NEAR-ONE DIVIDE FLAG.
047280,001717: 
047281,001718: 00,2357           10130                           CCS      BUF                                   #  FORCE BUF POSITIVE WITH THE MAJOR PART
047282,001719: 00,2360           12515                           TCF      BUFPOS                                #  NON-ZERO.
047283,001720: 00,2361           12363                           TCF      +2                                    
047284,001721: 00,2362           12530                           TCF      BUFNEG                                
047285,001722: 
047286,001723: 00,2363           07225        BUFZERO            TC       BUFAGREE                              
047287,001724: 00,2364           10154                           CCS      MPAC                                  #  TEST TO SEE IF MPAC NON-ZERO.  (TOO BIG)
047288,001725: 00,2365           12413                           TCF      OVF+                                  #  MAJOR PART OF DIVIDEND IS POSITIVE NON-0
047289,001726: 00,2366           12370                           TCF      +2                                    
047290,001727: 00,2367           12412                           TCF      OVF+       -1                         #  MAJOR PART OF DIVIDEND IS NEG. NON-ZERO
047291,001728: 
047292,001729: 00,2370           56131                           XCH      BUF        +1                         #  SHIFT DIVIDEND AND DIVISOR LEFT 14.
047293,001730: 00,2371           56130                           XCH      BUF                                   
047294,001731: 00,2372           56155                           XCH      MPAC       +1                         
047295,001732: 00,2373           56154                           XCH      MPAC                                  
047296,001733: 00,2374           10130                           CCS      BUF                                   #  TRY AGAIN ON FORMER MINOR PART.
047297,001734: 00,2375           12421                           TCF      BUF+                                  
047298,001735: 00,2376           12400                           TCF      +2                                    #  OVERFLOW ON ZERO DIVISOR.
047299,001736: 00,2377           12415                           TCF      BUF-                                  
047300,001737: 
047301,001738: 00,2400           40154                           CS       MPAC                                  #  SIGN OF MPAC DETERMINES SIGN OF RESULT.
047302,001739: 00,2401           00006        SGNDVOVF           EXTEND                                         
047303,001740: 00,2402           62404                           BZMF     +2                                    
047304,001741: 00,2403           24136                           INCR     DVSIGN                                #  NEGMAX IN MPAC PERHAPS.
047305,001742: 00,2404           34761        DVOVF              CAF      POSMAX                                #  ON DIVISION OVERFLOW OF ANY SORT, SET
047306,001743: 00,2405           54154                           TS       MPAC                                  #  SET DP MPAC TO +-POSMAX.
047307,001744: 00,2406           02627                           TC       FINALDV    +3                         
047308,001745: 00,2407           35001                           CAF      ONE                                   #  SET OVERFLOW INDICATOR AND EXIT.
047309,001746: 00,2410           54121                           TS       OVFIND                                
047310,001747: 00,2411           06030                           TC       DANZIG                                
047311,001748: 
047312,001749: 00,2412           24136                 -1        INCR     DVSIGN                                
047313,001750: 00,2413           40131        OVF+               CS       BUF        +1                         #  LOAD LOWER ORDER PART OF DIVISOR.
047314,001751: 00,2414           12401                           TCF      SGNDVOVF                              #  GET SIGN OF RESULT.
047315,001752: 
047316,001753: 00,2415           00006        BUF-               EXTEND                                         #  IF BUF IS NEGATIVE, COMPLEMENT IT AND
047317,001754: 00,2416           40131                           DCS      BUF                                   #  MAINTAIN DVSIGN FOR FINAL QUOTIENT SIGN.
047318,001755: 00,2417           52131                           DXCH     BUF                                   
047319,001756: 00,2420           24136                           INCR     DVSIGN                                #  NOW -0.
047320,001757: 00,2421           10154        BUF+               CCS      MPAC                                  #  FORCE MPAC POSITIVE, CHECKING FOR ZERO
047321,001758: 00,2422           12436                           TCF      MPAC+                                 #  DIVIDEND IN THE PROCESS.
047322,001759: 00,2423           12425                           TCF      +2                                    
047323,001760: 00,2424           12432                           TCF      MPAC-                                 
047324,001761: 00,2425           10155                           CCS      MPAC       +1                         
047325,001762: 00,2426           12436                           TCF      MPAC+                                 
047326,001763: 00,2427           16030                           TCF      DANZIG                                #  EXIT IMMEDIATELY ON ZERO DIVIDEND.
047327,001764: 00,2430           12432                           TCF      MPAC-                                 
047328,001765: 00,2431           16030                           TCF      DANZIG                                
047329,001766: 
047330,001767: 00,2432           00006        MPAC-              EXTEND                                         #  FORCE MPAC POSITIVE AS BUF IN BUF-.
047331,001768: 00,2433           40155                           DCS      MPAC                                  
047332,001769: 00,2434           52155                           DXCH     MPAC                                  
047333,001770: 00,2435           24136                           INCR     DVSIGN                                #  NOW +1 OR -0.
047334,001771: 
047335,001772: 00,2436           40154        MPAC+              CS       MPAC                                  #  CHECK FOR DIVISION OVERFLOW. IF THE
047336,001773: 00,2437           67702                           AD       NEGONE                                #  MAJOR PART OF THE DIVIDEND IS LESS THAN
047337,001774: 00,2440           60130                           AD       BUF                                   #  THE MAJOR PART OF THE DIVISOR BY AT
047338,001775: 00,2441           10000                           CCS      A                                     #  LEAST TWO, WE CAN PROCEED IMMEDIATELY
047339,001776: 00,2442           12504                           TCF      DVNORM                                #  WITHOUT NORMALIZATION PRODUCING A DVMAX.
047340,001777: 00,2443           60001        -1/2+2             OCT      60001                                 #  USED IN SQRTSUB.
047341,001778: 
047342,001779: 00,2444           12445                           TCF      +1                                    #  IF THE ABOVE DOES NOT HOLD, FORCE SIGN
047343,001780: 00,2445           34764                           CAF      HALF                                  #  AGREEMENT IN NUMERATOR AND DENOMINATOR
047344,001781: 00,2446           60000                           DOUBLE                                         #  TO FACILITATE OVERFLOW AND NEAR-ONE
047345,001782: 00,2447           60155                           AD       MPAC       +1                         #  CHECKING.
047346,001783: 00,2450           54155                           TS       MPAC       +1                         
047347,001784: 00,2451           35003                           CAF      ZERO                                  
047348,001785: 00,2452           64761                           AD       POSMAX                                
047349,001786: 00,2453           26154                           ADS      MPAC                                  
047350,001787: 
047351,001788: 00,2454           34764                           CAF      HALF                                  #  SAME FOR BUF.
047352,001789: 00,2455           60000                           DOUBLE                                         
047353,001790: 00,2456           60131                           AD       BUF        +1                         
047354,001791: 00,2457           54131                           TS       BUF        +1                         
047355,001792: 00,2460           35003                           CAF      ZERO                                  
047356,001793: 00,2461           64761                           AD       POSMAX                                
047357,001794: 00,2462           26130                           ADS      BUF                                   
047358,001795: 
047359,001796: 00,2463           40154                           CS       MPAC                                  #  CHECK MAGNITUDE OF SIGN-CORRECTED
047360,001797: 00,2464           60130                           AD       BUF                                   #  OPERANDS.
047361,001798: 00,2465           10000                           CCS      A                                     
047362,001799: 00,2466           12504                           TCF      DVNORM                                #  DIVIDE OK - WILL NOT BECOME MAXDV CASE.
047363,001800: 00,2467           00133        LBUF2              ADRES    BUF2                                  
047364,001801: 00,2470           12404                           TCF      DVOVF                                 #  DIVISOR NOT LESS THAN DIVIDEND - OVF.
047365,001802: 
047366,001803: 00,2471           54140                           TS       MAXDVSW                               #  IF THE MAJOR PARTS OF THE DIVIDEND AND
047367,001804: 00,2472           40155                           CS       MPAC       +1                         #  DIVISOR ARE EQUAL, A SPECIAL APPROXIMA-
047368,001805: 00,2473           60131                           AD       BUF        +1                         #  TION IS USED (PROVIDED THE DIVISION IS
047369,001806: 00,2474           00006                           EXTEND                                         #  POSSIBLE, OF COURSE).
047370,001807: 00,2475           62404                           BZMF     DVOVF                                 
047371,001808: 00,2476           12504                           TCF      DVNORM                                #  IF NO OVERFLOW.
047372,001809: 
047373,001810: 00,2477           00006        BUFNORM            EXTEND                                         #  ADD -1 TO AUGMENT SHIFT COUNT AND SHIFT
047374,001811: 00,2500           24137                           AUG      DVNORMCT                              #  LEFT ONE PLACE.
047375,001812: 00,2501           00006                           EXTEND                                         
047376,001813: 00,2502           30131                           DCA      BUF                                   
047377,001814: 00,2503           20131                           DAS      BUF                                   
047378,001815: 
047379,001816: 00,2504           30130        DVNORM             CA       BUF                                   #  SEE IF DIVISOR NORMALIZED YET.
047380,001817: 00,2505           60000                           DOUBLE                                         
047381,001818: 00,2506           54000                           OVSK                                           
047382,001819: 00,2507           12477                           TCF      BUFNORM                               #  NO - SHIFT LEFT ONE AND TRY AGAIN.
047383,001820: 
047384,001821: 00,2510           52155                           DXCH     MPAC                                  #  CALL DIVIDEND NORMALIZATION SEQUENCE
047385,001822: 00,2511           50137                           INDEX    DVNORMCT                              #  PRIOR TO DOING THE DIVIDE.
047386,001823: 00,2512           02564                           TC       MAXTEST                               
047387,001824: 
047388,001825: 00,2513           54156                           TS       MPAC       +2                         #  RETURNS WITH DIVISION DONE AND C(A) = 0.
047389,001826: 00,2514           16030                           TCF      DANZIG                                
047390,001827: 
047391,001828: 00,2515           10000        BUFPOS             CCS      A                                     
047392,001829: 00,2516           12421                           TCF      BUF+                                  #  TO BUF+ IF BUF IS GREATER THAN +1.
047393,001830: 
047394,001831: 00,2517           40131                           CS       BUF        +1                         #  IF BUF IS +1, FORCING SIGN AGREEMENT
047395,001832: 00,2520           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
047396,001833: 00,2521           62421                           BZMF     BUF+                                  #  BRANCH IF SIGNS AGREE.
047397,001834: 
047398,001835: 00,2522           34764                           CA       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
047399,001836: 00,2523           60000                 +6        DOUBLE                                         
047400,001837: 00,2524           26131                           ADS      BUF        +1                         
047401,001838: 00,2525           35003                           CA       ZERO                                  
047402,001839: 00,2526           54130                           TS       BUF                                   
047403,001840: 00,2527           12363                           TCF      BUFZERO                               
047404,001841: 
047405,001842: 00,2530           10000        BUFNEG             CCS      A                                     
047406,001843: 00,2531           12415                           TCF      BUF-                                  #  TO BUF- IF BUF IS LESS THAN -1.
047407,001844: 
047408,001845: 00,2532           30131                           CA       BUF        +1                         #  IF BUF IS -1, FORCING SIGN AGREEMENT
047409,001846: 00,2533           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
047410,001847: 00,2534           62415                           BZMF     BUF-                                  #  BRANCH IF SIGNS AGREE.
047411,001848: 
047412,001849: 00,2535           44764                           CS       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
047413,001850: 00,2536           12523                           TCF      BUFPOS     +6                         
047414,001851: 
047415,001852:                                                                                                  #  THE FOLLOWING ARE PROLOGUES TO SHIFT THE DIVIDEND ARRIVING IN A AND L BEFORE THE DIVIDE.
047416,001853: 
047417,001854: 00,2537           22021                 -21D      LXCH     SR                                    #  SPECIAL PROLOGUE FOR UNIT WHEN THE
047418,001855: 00,2540           00006                           EXTEND                                         #  LENGTH OF THE ARGUMENT WAS NOT LESS THAN
047419,001856: 00,2541           74764                           MP       HALF                                  #  .5. IN THIS CASE, EACH COMPONENT MUST BE
047420,001857: 00,2542           56001                           XCH      L                                     #  SHIFTED RIGHT ONE TO PRODUCE A HALF-UNIT
047421,001858: 00,2543           60021                           AD       SR                                    #  VECTOR.
047422,001859: 00,2544           56001                           XCH      L                                     
047423,001860: 00,2545           12570                           TCF      GENDDV     +1                         #  WITH DP DIVIDEND IN A,L.
047424,001861: 
047425,001862: 00,2546           20001                           DDOUBL                                         #  PROLOGUE WHICH NORMALIZES THE DIVIDEND
047426,001863: 00,2547           20001                           DDOUBL                                         #  WHEN IT IS KNOWN THAT NO DIVISION
047427,001864: 00,2550           20001                           DDOUBL                                         #  OVERFLOW WILL OCCUR.
047428,001865: 00,2551           20001                           DDOUBL                                         
047429,001866: 00,2552           20001                           DDOUBL                                         
047430,001867: 00,2553           20001                           DDOUBL                                         
047431,001868: 00,2554           20001                           DDOUBL                                         
047432,001869: 00,2555           20001                           DDOUBL                                         
047433,001870: 00,2556           20001                           DDOUBL                                         
047434,001871: 00,2557           20001                           DDOUBL                                         
047435,001872: 00,2560           20001                           DDOUBL                                         
047436,001873: 00,2561           20001                           DDOUBL                                         
047437,001874: 00,2562           20001                           DDOUBL                                         
047438,001875: 00,2563           52155                 -1        DXCH     MPAC                                  
047439,001876: 00,2564           10140        MAXTEST            CCS      MAXDVSW                               #  0 IF MAJORS MIGHT BE =, -1 OTHERWISE.
047440,001877: 00,2565           06552        BIASHI             DEC      .4192      B-1                        #  SQRT CONSTANTS
047441,001878: 
047442,001879: 00,2566           12641                           TCF      MAXDV                                 #  CHECK TO SEE IF THEY ARE NOW EQUAL.
047443,001880: 
047444,001881:                                                                                                  #  THE FOLLOWING IS A GENERAL PURPOSE DOUBLE PRECISION DIVISION ROUTINE. IT DIVIDES MPAC BY BUF AND LEAVES
047445,001882:                                                                                                  #  THE RESULT IN MPAC. THE FOLLOWING CONDITIONS MUST BE SATISFIED:
047446,001883: 
047447,001884:                                                                                                  #        1.      THE DIVISOR (BUF) MUST BE POSITIVE AND NOT LESS THAN .5.
047448,001885: 
047449,001886:                                                                                                  #        2.      THE DIVIDEND (MPAC) MUST BE POSITIVE WITH THE MAJOR PART OF MPAC STRICTLY LESS THAN THAT OF BUF
047450,001887:                                                                                                  #                (A SPECIAL APPROXIMATION, MAXDV, IS USED WHEN THE MAJOR PARTS ARE EQUAL).
047451,001888: 
047452,001889:                                                                                                  #  UNDERSTANDING THAT A/B = Q + S(R/B) WHERE S = 2(-14) AND Q AND R ARE QUOTIENT AND REMAINDER, RESPEC-
047453,001890:                                                                                                  #  TIVELY, THE FOLLOWING APPROXIMATION IS OBTAINED BY MULTIPLYING ABOVE AND BELOW BY C - SD AND NEGLECTING TERMS OF
047454,001891:                                                                                                  #  ORDER S-SQUARED (POSSIBLY INTRODUCING ERROR INTO THE LOW TWO BITS OF THE RESULT). SIGN AGREEMENT IS UNNECESSARY.
047455,001892: 
047456,001893:                                                                                                  #        A + SB .      (R - QD)                                             A + SB
047457,001894:                                                                                                  #        ------ = Q + S(------) WHERE Q AND R ARE QUOTIENT AND REMAINDER OF ------ RESPECTIVELY.
047458,001895:                                                                                                  #        C + SD        (  C   )                                                C
047459,001896: 
047460,001897: 00,2567           52155        GENDDV             DXCH     MPAC                                  #  WE NEED A AND B ONLY FOR FIRST DV.
047461,001898: 00,2570           00006                 +1        EXTEND                                         #  (SPECIAL UNIT PROLOGUE ENTERS HERE).
047462,001899: 00,2571           10130                           DV       BUF                                   #  A NOW CONTAINS Q AND L, R.
047463,001900: 00,2572           52155                           DXCH     MPAC                                  
047464,001901: 
047465,001902: 00,2573           40154                           CS       MPAC                                  #  FORM DIVIDEND FOR MINOR PART OF RESULT.
047466,001903: 00,2574           00006                           EXTEND                                         
047467,001904: 00,2575           70131                           MP       BUF        +1                         
047468,001905: 00,2576           60155                           AD       MPAC       +1                         #  OVERFLOW AT THIS POINT IS POSITIVE SINCE
047469,001906: 00,2577           54000                           OVSK                                           #  R IS POSITIVE IN EVERY CASE.
047470,001907: 00,2600           12605                           TCF      +5                                    
047471,001908: 
047472,001909: 00,2601           00006                           EXTEND                                         #  OVERFLOW CAN BE REMOVED BY SUBTRACTING C
047473,001910: 00,2602           60130                           SU       BUF                                   #  (BUF) ONCE SINCE R IS ALWAYS LESS THAN C
047474,001911: 00,2603           24154                           INCR     MPAC                                  #  IN THIS CASE. INCR COMPENSATES SUBTRACT.
047475,001912: 00,2604           12607                           TCF      +DOWN                                 #  (SINCE C(A) IS STILL POSITIVE).
047476,001913: 
047477,001914: 00,2605           00006                 +5        EXTEND                                         #  C(A) CAN BE MADE LESS THAN C IN MAGNI-
047478,001915: 00,2606           62617                           BZMF     -UP                                   #  TUDE BY DIMINISHING IT BY C (SINCE C IS
047479,001916:                                                                                                  #  NOT LESS THAN .5) UNLESS C(A) = 0.
047480,001917: 
047481,001918: 00,2607           00006        +DOWN              EXTEND                                         
047482,001919: 00,2610           60130                           SU       BUF                                   #  IF POSITIVE, REDUCE ONLY IF NECESSARY
047483,001920: 00,2611           00006                           EXTEND                                         #  SINCE THE COMPENSATING INCR MIGHT CAUSE
047484,001921: 00,2612           12615                           BZF      +3                                    #  OVERFLOW.
047485,001922: 00,2613           00006                           EXTEND                                         #  DONT SUBTRACT UNLESS RESULT IS POSITIVE
047486,001923: 00,2614           62623                           BZMF     ENDMAXDV                              #  OR ZERO.
047487,001924: 
047488,001925: 00,2615           24154                 +3        INCR     MPAC                                  #  KEEP SUBTRACT HERE AND COMPENSATE.
047489,001926: 00,2616           12624                           TCF      FINALDV                               
047490,001927: 
047491,001928: 00,2617           00006        -UP                EXTEND                                         #  IF ZERO, SET MINOR PART OF RESULT TO
047492,001929: 00,2620           12627                           BZF      FINALDV    +3                         #  ZERO.
047493,001930: 
047494,001931: 00,2621           00006                           EXTEND                                         #  IF NEGATIVE, ADD C TO A, SUBTRACTING ONE
047495,001932: 00,2622           26154                           DIM      MPAC                                  #  TO COMPENSATE. DIM IS OK HERE SINCE THE
047496,001933: 00,2623           60130        ENDMAXDV           AD       BUF                                   #  MAJOR PART NEVER GOES NEGATIVE.
047497,001934: 
047498,001935: 00,2624           22007        FINALDV            ZL                                             #  DO DV TO OBTAIN MINOR PART OF RESULT.
047499,001936: 00,2625           00006                           EXTEND                                         
047500,001937: 00,2626           10130                           DV       BUF                                   
047501,001938: 00,2627           54155                 +3        TS       MPAC       +1                         
047502,001939: 
047503,001940: 00,2630           10136                           CCS      DVSIGN                                #  LEAVE RESULT POSITIVE UNLESS C(DVSIGN)=
047504,001941: 00,2631           00002                           TC       Q                                     #  -0.
047505,001942: 00,2632           00002                           TC       Q                                     
047506,001943: 00,2633           00002                           TC       Q                                     
047507,001944: 
047508,001945: 00,2634           00006                           EXTEND                                         
047509,001946: 00,2635           40155                           DCS      MPAC                                  
047510,001947: 00,2636           52155                           DXCH     MPAC                                  
047511,001948: 00,2637           35003                           CAF      ZERO                                  #  SO WE ALWAYS RETURN WITH C(A) = 0.
047512,001949: 00,2640           00002                           TC       Q                                     
047513,001950: 
047514,001951:                                                                                                  #  IF THE MAJOR PARTS OF THE DIVISOR AND DIVIDEND ARE EQUAL, BUT THE MINOR PARTS ARE SUCH THAT THE
047515,001952:                                                                                                  #  DIVIDEND IS STRICTLY LESS THAN THE DIVISOR IN MAGNITUDE, THE FOLLOWING APPROXIMATION IS USED. THE ASSUMPTIONS
047516,001953:                                                                                                  #  ARE THE SAME AS THE GENERAL ROUTINE WITH THE ADDITION THAT SIGN AGREEMENT IS NECESSARY (B, C, & D POSITIVE).
047517,001954: 
047518,001955:                                                                                                  #        C + SB .          (C + B - D)
047519,001956:                                                                                                  #        ------ = 37777 + S(---------)
047520,001957:                                                                                                  #        C + SD            (    C    )
047521,001958: 
047522,001959:                                                                                                  #  THE DIVISION MAY BE PERFORMED IMMEDIATELY SINCE B IS STRICTLY LESS THAN D AND C IS NOT LESS THAN .5.
047523,001960: 
047524,001961: 00,2641           40154        MAXDV              CS       MPAC                                  #  SEE IF MAXDV CASE STILL HOLDS AFTER
047525,001962: 00,2642           60130                           AD       BUF                                   #  NORMALIZATION.
047526,001963: 00,2643           00006                           EXTEND                                         
047527,001964: 00,2644           12646                           BZF      +2                                    
047528,001965: 00,2645           12567                           TCF      GENDDV                                #  MPAC NOW LESS THAN BUF - DIVIDE AS USUAL
047529,001966: 
047530,001967: 00,2646           34761                 +2        CAF      POSMAX                                #  SET MAJOR PART OF RESULT.
047531,001968: 00,2647           54154                           TS       MPAC                                  
047532,001969: 
047533,001970: 00,2650           40131                           CS       BUF        +1                         #  FORM DIVIDEND OF MINOR PART OF RESULT.
047534,001971: 00,2651           60155                           AD       MPAC       +1                         
047535,001972: 00,2652           12623                           TCF      ENDMAXDV                              #  GO ADD C AND DO DIVIDE, ATTACHING SIGN
047536,001973:                                                                                                  #  BEFORE EXITING.
047537,001974: 
047538,001975:                                                                                                  #  VECTOR DIVIDED BY SCALAR, V/SC, IS EXECUTED HERE. THE VECTOR IS NOW IN MPAC WITH SCALAR IN BUF.
047539,001976: 
047540,001977: 00,2653           45001        V/SC2              CS       ONE                                   #  INITIALIZE DIVIDEND NORMALIZATION COUNT
047541,001978: 00,2654           54137                           TS       DVNORMCT                              #  AND DIVISION SIGN REGISTER.
047542,001979: 00,2655           54127                           TS       VBUF       +5                         
047543,001980: 
047544,001981: 00,2656           03007                           TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
047545,001982: 
047546,001983: 00,2657           52131                           DXCH     BUF                                   
047547,001984: 00,2660           07500                           TC       ALSIGNAG                              #  SIGN AGREE BUF
047548,001985: 00,2661           52131                           DXCH     BUF                                   
047549,001986: 00,2662           10130                           CCS      BUF                                   #  FORCE DIVISOR POSITIVE WITH MAJOR PART
047550,001987: 00,2663           12720                           TCF      /BUF+                                 #  NON-ZERO (IF POSSIBLE).
047551,001988: 00,2664           12666                           TCF      +2                                    
047552,001989: 00,2665           12714                           TCF      /BUF-                                 
047553,001990: 
047554,001991: 00,2666           56131                           XCH      BUF        +1                         #  SHIFT VECTOR AND SCALAR LEFT 14.
047555,001992: 00,2667           56130                           XCH      BUF                                   
047556,001993: 00,2670           56155                           XCH      MPAC       +1                         
047557,001994: 00,2671           56154                           XCH      MPAC                                  
047558,001995: 00,2672           00006                           EXTEND                                         #  CHECK FOR OVERFLOW IN EACH CASE.
047559,001996: 00,2673           12675                           BZF      +2                                    
047560,001997: 00,2674           12404                           TCF      DVOVF                                 
047561,001998: 
047562,001999: 00,2675           56160                           XCH      MPAC       +4                         
047563,002000: 00,2676           56157                           XCH      MPAC       +3                         
047564,002001: 00,2677           00006                           EXTEND                                         
047565,002002: 00,2700           12702                           BZF      +2                                    
047566,002003: 00,2701           12404                           TCF      DVOVF                                 
047567,002004: 
047568,002005: 00,2702           56162                           XCH      MPAC       +6                         
047569,002006: 00,2703           56161                           XCH      MPAC       +5                         
047570,002007: 00,2704           00006                           EXTEND                                         
047571,002008: 00,2705           12707                           BZF      +2                                    
047572,002009: 00,2706           12404                           TCF      DVOVF                                 
047573,002010: 
047574,002011: 00,2707           10130                           CCS      BUF                                   
047575,002012: 00,2710           12720                           TCF      /BUF+                                 
047576,002013: 00,2711           12404                           TCF      DVOVF                                 #  ZERO DIVISOR - OVERFLOW.
047577,002014: 00,2712           12714                           TCF      /BUF-                                 
047578,002015: 00,2713           12404                           TCF      DVOVF                                 
047579,002016: 
047580,002017: 00,2714           00006        /BUF-              EXTEND                                         #  ON NEGATIVE, COMPLEMENT BUF AND MAINTAIN
047581,002018: 00,2715           40131                           DCS      BUF                                   #  DVSIGN IN VBUF +5.
047582,002019: 00,2716           52131                           DXCH     BUF                                   
047583,002020: 00,2717           24127                           INCR     VBUF       +5                         
047584,002021: 
047585,002022: 00,2720           00006        /BUF+              EXTEND                                         
047586,002023: 00,2721           30131                           DCA      BUF                                   #  LEAVE ABS(ORIG DIVISOR) IN BUF2
047587,002024: 00,2722           52134                           DXCH     BUF2                                  #  FOR OVERFLOW TESTING
047588,002025: 00,2723           12731                           TCF      /NORM                                 #  NORMALIZE DIVISOR IN BUF.
047589,002026: 
047590,002027: 00,2724           00006        /NORM2             EXTEND                                         #  IF LESS THAN .5, AUGMENT DVNORMCT AND
047591,002028: 00,2725           24137                           AUG      DVNORMCT                              #  DOUBLE DIVISOR.
047592,002029: 00,2726           00006                           EXTEND                                         
047593,002030: 00,2727           30131                           DCA      BUF                                   
047594,002031: 00,2730           20131                           DAS      BUF                                   
047595,002032: 
047596,002033: 00,2731           30130        /NORM              CA       BUF                                   #  SEE IF DIVISOR NORMALIZED.
047597,002034: 00,2732           60000                           DOUBLE                                         
047598,002035: 00,2733           54000                           OVSK                                           
047599,002036: 00,2734           12724                           TCF      /NORM2                                #  DOUBLE AND TRY AGAIN IF NOT.
047600,002037: 
047601,002038: 00,2735           02747                           TC       V/SCDV                                #  DO X COMPONENT DIVIDE.
047602,002039: 00,2736           52160                           DXCH     MPAC       +3                         #  SUPPLY ARGUMENTS IN USUAL SEQUENCE.
047603,002040: 00,2737           52155                           DXCH     MPAC                                  
047604,002041: 00,2740           52160                           DXCH     MPAC       +3                         
047605,002042: 
047606,002043: 00,2741           02747                           TC       V/SCDV                                #  Y COMPONENT.
047607,002044: 00,2742           52162                           DXCH     MPAC       +5                         
047608,002045: 00,2743           52155                           DXCH     MPAC                                  
047609,002046: 00,2744           52162                           DXCH     MPAC       +5                         
047610,002047: 
047611,002048: 00,2745           02747                           TC       V/SCDV                                #  Z COMPONENT.
047612,002049: 00,2746           17354                           TCF      VROTATEX                              #  GO RE-ARRANGE COMPONENTS BEFORE EXIT.
047613,002050: 
047614,002051:                                                                                                  #  SUBROUTINE USED BY V/SC TO DIVIDE VECTOR COMPONENT IN MPAC,+1 BY THE SCALAR GIVEN IN BUF.
047615,002052: 
047616,002053: 00,2747           30127        V/SCDV             CA       VBUF       +5                         #  REFLECTS SIGN OF SCALAR.
047617,002054: 00,2750           54136                           TS       DVSIGN                                
047618,002055: 
047619,002056: 00,2751           10154                           CCS      MPAC                                  #  FORCE MPAC POSITIVE, EXITING ON ZERO.
047620,002057: 00,2752           12766                           TCF      /MPAC+                                
047621,002058: 00,2753           12755                           TCF      +2                                    
047622,002059: 00,2754           12762                           TCF      /MPAC-                                
047623,002060: 
047624,002061: 00,2755           10155                           CCS      MPAC       +1                         
047625,002062: 00,2756           12766                           TCF      /MPAC+                                
047626,002063: 00,2757           00002                           TC       Q                                     
047627,002064: 00,2760           12762                           TCF      /MPAC-                                
047628,002065: 00,2761           00002                           TC       Q                                     
047629,002066: 
047630,002067: 00,2762           00006        /MPAC-             EXTEND                                         #  USUAL COMPLEMENTING AND SETTING OF SIGN.
047631,002068: 00,2763           40155                           DCS      MPAC                                  
047632,002069: 00,2764           52155                           DXCH     MPAC                                  
047633,002070: 00,2765           24136                           INCR     DVSIGN                                
047634,002071: 
047635,002072: 00,2766           45001        /MPAC+             CS       ONE                                   #  INITIALIZE NEAR-ONE SWITCH.
047636,002073: 00,2767           54140                           TS       MAXDVSW                               
047637,002074: 
047638,002075: 00,2770           40154                           CS       MPAC                                  #  CHECK POSSIBLE OVERFLOW.
047639,002076: 00,2771           60133                           AD       BUF2                                  #  UNNORMALIZED INPUT DIVISOR.
047640,002077: 00,2772           10000                           CCS      A                                     
047641,002078: 00,2773           13003                           TCF      DDVCALL                               #  NOT NEAR-ONE
047642,002079: 00,2774           12776                           TCF      +2                                    #  +0 IS JUST POSSIBLE
047643,002080: 00,2775           12404                           TCF      DVOVF                                 #  NO HOPE
047644,002081: 00,2776           54140                           TS       MAXDVSW                               #  SIGNAL POSSIBLE NEAR-ONE CASE
047645,002082: 00,2777           40155                           CS       MPAC       +1                         #  SEE IF DIVISION CAN BE DONE
047646,002083: 00,3000           60134                           AD       BUF2       +1                         
047647,002084: 00,3001           00006                           EXTEND                                         
047648,002085: 00,3002           62404                           BZMF     DVOVF                                 
047649,002086: 
047650,002087: 00,3003           52155        DDVCALL            DXCH     MPAC                                  #  CALL PRE-DIVIDE NORMALIZATION.
047651,002088: 00,3004           50137                           INDEX    DVNORMCT                              
047652,002089: 00,3005           12564                           TCF      MAXTEST                               
047653,002090: 
047654,002091: 00,3006           32506        SLOPELO            DEC      .8324                                 
047655,002092: 
047656,002093: 00,3007           56002        VECAGREE           XCH      Q                                     #  SAVE Q IN A
047657,002094: 00,3010           52155                           DXCH     MPAC                                  
047658,002095: 00,3011           07500                           TC       ALSIGNAG                              #  SIGNAGREE MPAC
047659,002096: 00,3012           52155                           DXCH     MPAC                                  
047660,002097: 00,3013           52160                           DXCH     MPAC       +3                         
047661,002098: 00,3014           07500                           TC       ALSIGNAG                              #  SIGN AGREE MPAC +3
047662,002099: 00,3015           52160                           DXCH     MPAC       +3                         
047663,002100: 00,3016           52162                           DXCH     MPAC       +5                         
047664,002101: 00,3017           07500                           TC       ALSIGNAG                              #  SIGNAGREE MPAC +5
047665,002102: 00,3020           52162                           DXCH     MPAC       +5                         
047666,002103: 00,3021           00000                           TC       A                                     
047667,002104: 
047668,002105:                                                                                                  #  THE FOLLOWING ROUTINE EXECUTES THE UNIT INSTRUCTION, WHICH TAKES THE UNIT OF THE VECTOR IN MPAC.
047669,002106: 
047670,002107: 00,3022           03007        UNIT               TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
047671,002108: 00,3023           07466                           TC       MPACVBUF                              #  SAVE ARGUMENT IN VBUF
047672,002109: 00,3024           35003                           CAF      ZERO                                  #  MUST SENSE OVERFLOW IN FOLLOWING DOT.
047673,002110: 00,3025           56121                           XCH      OVFIND                                
047674,002111: 00,3026           54141                           TS       TEM1                                  
047675,002112: 00,3027           03316                           TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
047676,002113: 00,3030           30141                           CA       TEM1                                  
047677,002114: 00,3031           56121                           XCH      OVFIND                                
047678,002115: 00,3032           00006                           EXTEND                                         
047679,002116: 00,3033           13035                           BZF      +2                                    
047680,002117: 00,3034           12404                           TCF      DVOVF                                 
047681,002118: 00,3035           00006                           EXTEND                                         
047682,002119: 00,3036           30155                           DCA      MPAC                                  #  LEAVE THE SQUARE OF THE LENGTH OF THE
047683,002120: 00,3037           50120                           INDEX    FIXLOC                                #  ARGUMENT IN LVSQUARE.
047684,002121: 00,3040           52043                           DXCH     LVSQUARE                              
047685,002122: 
047686,002123: 00,3041           03342                           TC       SQRTSUB                               #  GO TAKE THE NORMALIZED SQUARE ROOT.
047687,002124: 
047688,002125: 00,3042           10154                           CCS      MPAC                                  #  CHECK FOR UNIT OVERFLOW.
047689,002126: 00,3043           13050                           TCF      +5                                    #  MPAC IS NOT LESS THAN .5 UNLESS
047690,002127: 00,3044           54001                           TS       L                                     
047691,002128: 00,3045           50120                           INDEX    FIXLOC                                
047692,002129: 00,3046           52045                           DXCH     LV                                    
047693,002130: 00,3047           12404                           TCF      DVOVF                                 #  INPUT TO SQRTSUB WAS 0.
047694,002131: 
047695,002132: 00,3050           44321                           CS       FOURTEEN                              #  SEE IF THE INPUT WAS SO SMALL THE THE
047696,002133: 00,3051           60135                           AD       MPTEMP                                #  FIRST TWO REGISTERS OF THE SQUARE WERE 0
047697,002134: 00,3052           10000                           CCS      A                                     
047698,002135: 00,3053           40000                           COM                                            #  IF SO, SAVE THE NEGATIVE OF THE SHIFT
047699,002136: 00,3054           13132                           TCF      SMALL                                 #  COUNT -15D.
047700,002137: 
047701,002138: 00,3055           13064                           TCF      LARGE                                 #  (THIS IS USUALLY THE CASE.)
047702,002139: 
047703,002140: 00,3056           45007                           CS       THIRTEEN                              #  IF THE SHIFT COUNT WAS EXACTLY 14, SET
047704,002141: 00,3057           54135                           TS       MPTEMP                                #  THE PRE-DIVIDE NORM COUNT TO -13D.
047705,002142: 
047706,002143: 00,3060           30154                           CA       MPAC                                  #  SHIFT THE LENGTH RIGHT 14 BEFORE STORING
047707,002144: 00,3061           54001        SMALL2             TS       L                                     #  (SMALL EXITS TO THIS POINT).
047708,002145: 00,3062           35003                           CAF      ZERO                                  
047709,002146: 00,3063           13111                           TCF      LARGE2                                #  GO TO STORE LENGTH AND PROCEED.
047710,002147: 
047711,002148: 00,3064           10135        LARGE              CCS      MPTEMP                                #  MOST ALL CASES COME HERE.
047712,002149: 00,3065           13073                           TCF      LARGE3                                #  SEE IF NO NORMALIZATION WAS REQUIRED BY
047713,002150: 00,3066           42024                           CS       SRDDV                                 #  SQRT, AND IF SO, SET UP FOR A SHIFT
047714,002151: 00,3067           54135                           TS       MPTEMP                                #  RIGHT 1 BEFORE DIVIDING TO PRODUCE
047715,002152: 00,3070           00006                           EXTEND                                         #  THE DESIRED HALF UNIT VECTOR.
047716,002153: 00,3071           30155                           DCA      MPAC                                  
047717,002154: 00,3072           13111                           TCF      LARGE2                                
047718,002155: 
047719,002156: 00,3073           40000        LARGE3             COM                                            #  LEAVE NEGATIVE OF SHIFT COUNT-1 FOR
047720,002157: 00,3074           54135                           TS       MPTEMP                                #  PREDIVIDE LEFT SHIFT.
047721,002158: 
047722,002159: 00,3075           40000                           COM                                            #  PICK UP REQUIRED SHIFTING BIT TO UNNORM-
047723,002160: 00,3076           50000                           INDEX    A                                     #  ALIZE THE SQRT RESULT.
047724,002161: 00,3077           34764                           CAF      BIT14                                 
047725,002162: 00,3100           54130                           TS       BUF                                   
047726,002163: 00,3101           00006                           EXTEND                                         
047727,002164: 00,3102           70155                           MP       MPAC       +1                         
047728,002165: 00,3103           56130                           XCH      BUF                                   
047729,002166: 00,3104           00006                           EXTEND                                         #  (UNNORMALIZE THE SQRT FOR LV).
047730,002167: 00,3105           70154                           MP       MPAC                                  
047731,002168: 00,3106           56001                           XCH      L                                     
047732,002169: 00,3107           60130                           AD       BUF                                   
047733,002170: 00,3110           56001                           XCH      L                                     
047734,002171: 
047735,002172: 00,3111           50120        LARGE2             INDEX    FIXLOC                                
047736,002173: 00,3112           52045                           DXCH     LV                                    #  LENGTH NOW STORED IN WORK AREA.
047737,002174: 
047738,002175: 00,3113           45001                           CS       ONE                                   
047739,002176: 00,3114           54140                           TS       MAXDVSW                               #  NO MAXDV CASES IN UNIT.
047740,002177: 
047741,002178: 00,3115           52123                           DXCH     VBUF                                  #  PREPARE X COMPONENT FOR DIVIDE, SETTING
047742,002179: 00,3116           52155                           DXCH     MPAC                                  #  LENGTH OF VECTOR AS DIVISOR IN BUF.
047743,002180: 00,3117           52131                           DXCH     BUF                                   
047744,002181: 00,3120           03150                           TC       UNITDV                                
047745,002182: 
047746,002183: 00,3121           52125                           DXCH     VBUF       +2                         #  DO Y AND Z IN USUAL FASHION SO WE CAN
047747,002184: 00,3122           52155                           DXCH     MPAC                                  #  EXIT THROUGH VROTATEX.
047748,002185: 00,3123           52160                           DXCH     MPAC       +3                         
047749,002186: 00,3124           03150                           TC       UNITDV                                
047750,002187: 
047751,002188: 00,3125           52127                           DXCH     VBUF       +4                         
047752,002189: 00,3126           52155                           DXCH     MPAC                                  
047753,002190: 00,3127           52162                           DXCH     MPAC       +5                         
047754,002191: 00,3130           03150                           TC       UNITDV                                
047755,002192: 00,3131           17354                           TCF      VROTATEX                              #  AND EXIT.
047756,002193: 
047757,002194:                                                                                                  #           IF THE LENGTH OF THE ARGUMENT VECTOR WAS LESS THAN 2(-28), EACH COMPONENT MUST BE SHIFTED LEFT AT LEAST
047758,002195:                                                                                                  #  14 PLACES BEFORE THE DIVIDE. NOTE THAT IN THIS CASE, THE MAJOR PART OF EACH COMPONENT IS ZERO.
047759,002196: 
047760,002197: 00,3132           54135        SMALL              TS       MPTEMP                                #  NEGATIVE OF PRE-DIVIDE SHIFT COUNT.
047761,002198: 
047762,002199: 00,3133           35003                           CAF      ZERO                                  #  SHIFT EACH COMPONENT LEFT 14.
047763,002200: 00,3134           56123                           XCH      VBUF       +1                         
047764,002201: 00,3135           56122                           XCH      VBUF                                  
047765,002202: 00,3136           56125                           XCH      VBUF       +3                         
047766,002203: 00,3137           56124                           XCH      VBUF       +2                         
047767,002204: 00,3140           56127                           XCH      VBUF       +5                         
047768,002205: 00,3141           56126                           XCH      VBUF       +4                         
047769,002206: 
047770,002207: 00,3142           40135                           CS       MPTEMP                                
047771,002208: 00,3143           50000                           INDEX    A                                     
047772,002209: 00,3144           34764                           CAF      BIT14                                 
047773,002210: 00,3145           00006                           EXTEND                                         
047774,002211: 00,3146           70154                           MP       MPAC                                  
047775,002212: 00,3147           13061                           TCF      SMALL2                                
047776,002213: 
047777,002214: 00,3150     5007               THIRTEEN           =        OCT15                                 
047778,002215: 00,3150     4321               FOURTEEN           =        OCT16                                 
047779,002216: 00,3150     4321               OCT16              =        R1D1                                  
047780,002217: 
047781,002218:                                                                                                  #  THE FOLLOWING ROUTINE SETS UP THE CALL TO THE DIVIDE ROUTINES.
047782,002219: 
047783,002220: 00,3150           10154        UNITDV             CCS      MPAC                                  #  FORCE MPAC POSITIVE IF POSSIBLE, SETTING
047784,002221: 00,3151           13167                           TCF      UMPAC+                                #  DVSIGN ACCORDING TO THE SIGN OF MPAC
047785,002222: 00,3152           13154                           TCF      +2                                    #  SINCE THE DIVISOR IS ALWAYS POSITIVE
047786,002223: 00,3153           13161                           TCF      UMPAC-                                #  HERE.
047787,002224: 
047788,002225: 00,3154           10155                           CCS      MPAC       +1                         
047789,002226: 00,3155           13167                           TCF      UMPAC+                                
047790,002227: 00,3156           00002                           TC       Q                                     #  EXIT IMMEDIATELY ON ZERO.
047791,002228: 00,3157           13161                           TCF      UMPAC-                                
047792,002229: 00,3160           00002                           TC       Q                                     
047793,002230: 
047794,002231: 00,3161           45003        UMPAC-             CS       ZERO                                  #  IF NEGATIVE, SET -0 IN DVSIGN FOR FINAL
047795,002232: 00,3162           54136                           TS       DVSIGN                                #  COMPLEMENT.
047796,002233: 00,3163           00006                           EXTEND                                         
047797,002234: 00,3164           40155                           DCS      MPAC                                  #  PICK UP ABSOLUTE VALUE OF ARG AND JUMP.
047798,002235: 00,3165           50135                           INDEX    MPTEMP                                
047799,002236: 00,3166           12563                           TCF      MAXTEST    -1                         
047800,002237: 
047801,002238: 00,3167           54136        UMPAC+             TS       DVSIGN                                #  SET DVSIGN FOR POSITIVE QUOTIENT.
047802,002239: 00,3170           52155                           DXCH     MPAC                                  
047803,002240: 00,3171           50135                           INDEX    MPTEMP                                
047804,002241: 00,3172           12563                           TCF      MAXTEST    -1                         
047805,002242: 
047806,002243:                                                                                                  #  MISCELLANEOUS UNARY OPERATIONS.
047807,002244: 
047808,002245: 00,3173           03277        DSQ                TC       DSQSUB                                #  SQUARE THE DP CONTENTS OF MPAC.
047809,002246: 00,3174           16030                           TCF      DANZIG                                
047810,002247: 
047811,002248: 00,3175           10163        ABVALABS           CCS      MODE                                  #  ABVAL OR ABS INSTRUCTION.
047812,002249: 00,3176           13225                           TCF      ABS                                   #  DO ABS ON SCALAR.
047813,002250: 00,3177           13225                           TCF      ABS                                   
047814,002251: 
047815,002252: 00,3200           03316        ABVAL              TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
047816,002253: 00,3201           22163                           LXCH     MODE                                  #  MODE IS NOW DP (L ZERO AFTER DAS).
047817,002254: 
047818,002255: 00,3202           00006                           EXTEND                                         #  STORE SQUARE OF LENGTH IN WORK AREA.
047819,002256: 00,3203           30155                           DCA      MPAC                                  
047820,002257: 00,3204           50120                           INDEX    FIXLOC                                
047821,002258: 00,3205           52043                           DXCH     LVSQUARE                              
047822,002259: 
047823,002260:                                                                                                  #  PROGRAM DESCRIPTION - SUBROUTINE SQRT
047824,002261:                                                                                                  #  
047825,002262:                                                                                                  #  FUNCTIONAL DESCRIPTION - DOUBLE PRECISION SQUARE ROOT ROUTINE
047826,002263:                                                                                                  #  
047827,002264:                                                                                                  #        THIS PROGRAM TAKES THE SQUARE ROOT OF THE 27 OR 28 MOST SIGNIFICANT BITS IN THE TRIPLE PRECISION SET OF
047828,002265:                                                                                                  #        NUMBERS - MPAC, MPAC+1, AND MPAC+2.  THE ROOT IS RETURNED DOUBLE PRECISION IN MPAC AND MPAC+1.
047829,002266:                                                                                                  #  
047830,002267:                                                                                                  #  WARNING - THIS SUBROUTINE USES A TRIPLE PRECISION INPUT. THE PROGRAMMER MUST ASSURE THE CONTENTS OF MPAC+2
047831,002268:                                                                                                  #        ESPECIALLY IF THE CONTENTS OF MPAC IS SMALL OR ZERO.  FOR DETAILS SEE STG MEMO NO.949.
047832,002269:                                                                                                  #  
047833,002270:                                                                                                  #  CALLING SEQUENCE - IN INTERPRETIVE MODE I.E., FOLLOWING TC  INTPRET, SQRT   NO ADDRESS IS ALLOWED
047834,002271: 
047835,002272:                                                                                                  #  INPUT SCALING  THE BINARY POINT IS ASSUMED TO THE RIGHT OF BIT 15. THE ANSWER IS RETURNED WITH THE SAME SCALING
047836,002273: 
047837,002274:                                                                                                  #  SUBROUTINES - GENSCR, MPACSHR, SQRTSUB, ABORT
047838,002275: 
047839,002276:                                                                                                  #  ABORT EXIT MODE - ABORTS ON NEGATIVE INPUT -1.2X10E-4 (77775  OCTAL) OR LESS.
047840,002277:                                                                                                  #        DISPLAYS ERROR CODE 1302
047841,002278:                                                                                                  #                TC      ABORT
047842,002279:                                                                                                  #                OCT     1302
047843,002280: 
047844,002281:                                                                                                  #  DEBRIS - LOCATIONS BUF, MPTEMP, ADDRWD ARE USED
047845,002282: 
047846,002283: 00,3206           03342        SQRT               TC       SQRTSUB                               #  TAKE THE SQUARE ROOT OF MPAC.
047847,002284: 00,3207           10135                           CCS      MPTEMP                                #  RETURNED NORMALIZED SQUARE ROOT. SEE IF
047848,002285: 00,3210           13212                           TCF      +2                                    #  ANY UN-NORMALIZATION REQUIRED AND EXIT
047849,002286: 00,3211           16030                           TCF      DANZIG                                #  IF NOT.
047850,002287: 
047851,002288: 00,3212           63726                           AD       NEG12                                 #  A RIGHT SHIFT OF MORE THAN 13 COULD BE
047852,002289: 00,3213           00006                           EXTEND                                         #  REQUIRED IF INPUT WAS ZERO IN MPAC,+1.
047853,002290: 00,3214           63220                           BZMF     SQRTSHFT                              #  GOES HERE IN MOST CASES.
047854,002291: 00,3215           22007                           ZL                                             #  IF A LONG SHIFT IS REQUIRED, GO TO
047855,002292: 00,3216           22116                           LXCH     ADDRWD                                #  GENERAL RIGHT SHIFT ROUTINES.
047856,002293: 00,3217           12303                           TCF      GENSCR     +4                         #  ADDRWD WAS ZERO TO PREVENT ROUND.
047857,002294: 
047858,002295: 00,3220           50135        SQRTSHFT           INDEX    MPTEMP                                #  SELECT SHIFTING BIT AND EXIT THROUGH
047859,002296: 00,3221           34763                           CAF      BIT15                                 #  SHIFT ROUTINES.
047860,002297: 00,3222           54135                           TS       MPTEMP                                
047861,002298: 00,3223           35003                           CAF      ZERO                                  #  TO ZERO MPAC +2 IN THE PROCESS.
047862,002299: 00,3224           12036                           TCF      MPACSHR    +3                         
047863,002300: 
047864,002301: 00,3225           06672        ABS                TC       BRANCH                                #  TEST SIGN OF MPAC AND COMPLEMENT IF
047865,002302: 00,3226           16030                           TCF      DANZIG                                
047866,002303: 00,3227           16030                           TCF      DANZIG                                
047867,002304: 00,3230           17624                           TCF      COMP                                  
047868,002305: 
047869,002306: 00,3231           44777        VDEF               CS       FOUR                                  #  VECTOR DEFINE - ESSENTIALLY TREATS
047870,002307: 00,3232           26166                           ADS      PUSHLOC                               #  SCALAR IN MPAC AS X COMPONENT, PUSHES UP
047871,002308: 00,3233           00006                           EXTEND                                         #  FOR Y AND THEN AGAIN FOR Z.
047872,002309: 00,3234           50000                           INDEX    A                                     
047873,002310: 00,3235           30003                           DCA      2                                     
047874,002311: 00,3236           52160                           DXCH     MPAC       +3                         
047875,002312: 00,3237           00006                           EXTEND                                         
047876,002313: 00,3240           50166                           INDEX    PUSHLOC                               
047877,002314: 00,3241           30001                           DCA      0                                     
047878,002315: 00,3242           52162                           DXCH     MPAC       +5                         
047879,002316: 00,3243           16470                           TCF      VMODE                                 #  MODE IS NON VECTOR.
047880,002317: 
047881,002318: 00,3244           03316        VSQ                TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
047882,002319: 00,3245           17266                           TCF      DMODE                                 #  MODE IS NOW DP.
047883,002320: 
047884,002321: 00,3246           00006        PUSH               EXTEND                                         #  PUSH DOWN MPAC LEAVING IT LOADED.
047885,002322: 00,3247           30155                           DCA      MPAC                                  
047886,002323: 00,3250           50166                           INDEX    PUSHLOC                               #  PUSH DOWN FIRST TWO REGISTERS IN EACH
047887,002324: 00,3251           52001                           DXCH     0                                     
047888,002325: 
047889,002326: 00,3252           50163                           INDEX    MODE                                  #  INCREMENT PUSHDOWN POINTER.
047890,002327: 00,3253           36213                           CAF      NO.WDS                                
047891,002328: 00,3254           26166                           ADS      PUSHLOC                               
047892,002329: 
047893,002330: 00,3255           10163                           CCS      MODE                                  
047894,002331: 00,3256           13271                           TCF      TPUSH                                 #  PUSH DOWN MPAC +2.
047895,002332: 00,3257           16030                           TCF      DANZIG                                #  DONE FOR DP.
047896,002333: 
047897,002334: 00,3260           00006                           EXTEND                                         #  ON VECTOR, PUSH DOWN Y AND Z COMPONENTS.
047898,002335: 00,3261           30160                           DCA      MPAC       +3                         
047899,002336: 00,3262           50166                           INDEX    PUSHLOC                               
047900,002337: 00,3263           51775                           DXCH     0          -4                         
047901,002338: 00,3264           00006                           EXTEND                                         
047902,002339: 00,3265           30162                           DCA      MPAC       +5                         
047903,002340: 00,3266           50166                           INDEX    PUSHLOC                               
047904,002341: 00,3267           51777                           DXCH     0          -2                         
047905,002342: 00,3270           16030                           TCF      DANZIG                                
047906,002343: 
047907,002344: 00,3271           30156        TPUSH              CA       MPAC       +2                         
047908,002345: 00,3272           16523                           TCF      ENDTPUSH   +2                         
047909,002346: 
047910,002347: 00,3273           50120        RVQ                INDEX    FIXLOC                                #  RVQ - RETURN IVA QPRET.
047911,002348: 00,3274           30052                           CA       QPRET                                 
047912,002349: 00,3275           54117                           TS       POLISH                                
047913,002350: 00,3276           16621                           TCF      GOTO       +4                         #  (ASSUME QPRET POINTS TO FIXED ONLY.)
047914,002351: 
047915,002352:                                                                                                  #           THE FOLLOWING SUBROUTINES ARE USED IN SQUARING MPAC, IN BOTH THE SCALAR AND VECTOR SENSE. THEY ARE
047916,002353:                                                                                                  #  SPECIAL CASES OF DMPSUB AND DOTSUB, PUT IN TO SAVE SOME TIME.
047917,002354: 
047918,002355: 00,3277           30155        DSQSUB             CA       MPAC       +1                         #  SQUARES THE SCALAR CONTENTS OF MPAC.
047919,002356: 00,3300           00006                           EXTEND                                         
047920,002357: 00,3301           70000                           SQUARE                                         
047921,002358: 00,3302           54156                           TS       MPAC       +2                         
047922,002359: 00,3303           35003                           CAF      ZERO                                  #  FORM 2(CROSS TERM).
047923,002360: 00,3304           56155                           XCH      MPAC       +1                         
047924,002361: 00,3305           00006                           EXTEND                                         
047925,002362: 00,3306           70154                           MP       MPAC                                  
047926,002363: 00,3307           20001                           DDOUBL                                         #  AND MAYBE OVERFLOW.
047927,002364: 00,3310           20156                           DAS      MPAC       +1                         #  AND SET A TO NET OVERFLOW.
047928,002365: 00,3311           56154                           XCH      MPAC                                  
047929,002366: 00,3312           00006                           EXTEND                                         
047930,002367: 00,3313           70000                           SQUARE                                         
047931,002368: 00,3314           20155                           DAS      MPAC                                  
047932,002369: 00,3315           00002                           TC       Q                                     
047933,002370: 
047934,002371: 00,3316           00006        VSQSUB             EXTEND                                         #  DOTS THE VECTOR IN MPAC WITH ITSELF.
047935,002372: 00,3317           22137                           QXCH     DOTRET                                
047936,002373: 00,3320           03277                           TC       DSQSUB                                #  SQUARE THE X COMPONENT.
047937,002374: 00,3321           52160                           DXCH     MPAC       +3                         
047938,002375: 00,3322           52155                           DXCH     MPAC                                  
047939,002376: 00,3323           52131                           DXCH     BUF                                   #  SO WE CAN END IN DOTSUB.
047940,002377: 00,3324           30156                           CA       MPAC       +2                         
047941,002378: 00,3325           54132                           TS       BUF        +2                         
047942,002379: 
047943,002380: 00,3326           03277                           TC       DSQSUB                                #  SQUARE Y COMPONENT.
047944,002381: 00,3327           52156                           DXCH     MPAC       +1                         
047945,002382: 00,3330           20132                           DAS      BUF        +1                         
047946,002383: 00,3331           60154                           AD       MPAC                                  
047947,002384: 00,3332           60130                           AD       BUF                                   
047948,002385: 00,3333           54130                           TS       BUF                                   
047949,002386: 00,3334           13336                           TCF      +2                                    
047950,002387: 00,3335           54121                           TS       OVFIND                                #  IF OVERFLOW.
047951,002388: 
047952,002389: 00,3336           52162                           DXCH     MPAC       +5                         
047953,002390: 00,3337           52155                           DXCH     MPAC                                  
047954,002391: 00,3340           03277                           TC       DSQSUB                                #  SQUARE Z COMPONENT.
047955,002392: 00,3341           17154                           TCF      ENDDOT                                #  END AS IN DOTSUB.
047956,002393: 
047957,002394:                                                                                                  #  DOUBLE PRECISION SQUARE ROOT ROUTINE. TAKE THE SQUARE ROOT OF THE TRIPLE PRECISION (MPAC +2 USED ONLY
047958,002395:                                                                                                  #  IN NORMALIZATION) CONTENTS OF MPAC AND LEAVE THE NORMALIZED RESULT IN MPAC (C(MPAC) GREATER THAN OR EQUAL TO
047959,002396:                                                                                                  #  .5). THE RIGHT SHIFT COUNT (TO UNNORMALIZE) IS LEFT IN MPTEMP.
047960,002397: 
047961,002398: 00,3342           35003        SQRTSUB            CAF      ZERO                                  #  START BY ZEROING RIGHT SHIFT COUNT.
047962,002399: 00,3343           54135                           TS       MPTEMP                                
047963,002400: 
047964,002401: 00,3344           10154                           CCS      MPAC                                  #  CHECK FOR POSITIVE ARGUMENT, SHIFTING
047965,002402: 00,3345           13403                           TCF      SMPAC+                                #  FIRST SIGNIFICANT MPAC REGISTER INTO
047966,002403: 00,3346           13350                           TCF      +2                                    #  MPAC ITSELF.
047967,002404: 00,3347           13372                           TCF      SQRTNEG                               #  SEE IF MAG OF ARGUMENT LESS THAN 10(-4).
047968,002405: 
047969,002406: 00,3350           56156                           XCH      MPAC       +2                         #  MPAC IS ZERO - SHIFT LEFT 14.
047970,002407: 00,3351           56155                           XCH      MPAC       +1                         
047971,002408: 00,3352           54154                           TS       MPAC                                  
047972,002409: 00,3353           35005                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
047973,002410: 00,3354           54135                           TS       MPTEMP                                
047974,002411: 
047975,002412: 00,3355           10154                           CCS      MPAC                                  #  SEE IF MPAC NOW PNZ.
047976,002413: 00,3356           13403                           TCF      SMPAC+                                
047977,002414: 00,3357           13361                           TCF      +2                                    
047978,002415: 00,3360           13375                           TCF      ZEROANS                               #  NEGATIVE BUT LESS THAN 10(-4) IN MAG.
047979,002416: 
047980,002417: 00,3361           56155                           XCH      MPAC       +1                         #  ZERO - SHIFT LEFT 14 AGAIN.
047981,002418: 00,3362           54154                           TS       MPAC                                  
047982,002419: 00,3363           35005                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
047983,002420: 00,3364           26135                           ADS      MPTEMP                                
047984,002421: 
047985,002422: 00,3365           10154                           CCS      MPAC                                  
047986,002423: 00,3366           13403                           TCF      SMPAC+                                
047987,002424: 00,3367           00002                           TC       Q                                     #  SQRT(0) = 0.
047988,002425: 00,3370           13375                           TCF      ZEROANS                               
047989,002426: 00,3371           13450                           TCF      FIXROOT                               #  DO NOT LEAVE SQRTSUB WITH -0 IN MPAC.
047990,002427: 
047991,002428: 00,3372           10000        SQRTNEG            CCS      A                                     #  ARGUMENT IS NEGATIVE, BUT SEE IF SIGN-
047992,002429: 00,3373           13401                           TCF      SQRTABRT                              #  CORRECTED ARGUMENT IS LESS THAN 10(-4)
047993,002430: 
047994,002431: 00,3374           10155                           CCS      MPAC       +1                         #  IN MAGNITUDE. IF SO, CALL ANSWER ZERO.
047995,002432: 00,3375           35003        ZEROANS            CAF      ZERO                                  #  FORCE ANSWER TO ZERO HERE.
047996,002433: 00,3376           13450                           TCF      FIXROOT                               
047997,002434: 00,3377           13401                           TCF      SQRTABRT                              
047998,002435: 00,3400           13450                           TCF      FIXROOT                               
047999,002436: 
048000,002437: 00,3401           05701        SQRTABRT           TC       POODOO                                
048001,002438: 00,3402           21302                           OCT      21302                                 #  SQRT CALLED WITH NEGATIVE ARGUMENT
048002,002439: 
048003,002440: 00,3403           62443        SMPAC+             AD       -1/2+2                                #  SEE IF ARGUMENT GREATER THAN OR EQUAL TO
048004,002441: 00,3404           00006                           EXTEND                                         #  .5.
048005,002442: 00,3405           63453                           BZMF     SRTEST                                #  IF SO, SEE IF LESS THAN .25.
048006,002443: 
048007,002444: 00,3406           52155                           DXCH     MPAC                                  #  WE WILL TAKE THE SQUARE ROOT OF MPAC/2.
048008,002445: 00,3407           22021                           LXCH     SR                                    #  SHIFT RIGHT 1 AND GO TO THE SQRT ROUTINE
048009,002446: 00,3410           00006                           EXTEND                                         
048010,002447: 00,3411           74764                           MP       HALF                                  
048011,002448: 00,3412           52155                           DXCH     MPAC                                  
048012,002449: 00,3413           56021                           XCH      SR                                    
048013,002450: 00,3414           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
048014,002451: 
048015,002452: 00,3415           32314        ARGHI              CAF      SLOPEHI                               #  ARGUMENT BETWEEN .25 AND .5. GET A
048016,002453: 00,3416           00006                           EXTEND                                         #  LINEAR APPROXIMATION FOR THIS RANGE.
048017,002454: 00,3417           70154                           MP       MPAC                                  
048018,002455: 00,3420           62565                           AD       BIASHI                                #  X0/2 = (MPAC/2)(SLOPEHI) + BIASHI/2.
048019,002456: 
048020,002457: 00,3421           54130                 +4        TS       BUF                                   #  X0/2 (ARGLO ENTERS HERE).
048021,002458: 00,3422           30154                           CA       MPAC                                  #  SINGLE-PRECISION THROUGHOUT.
048022,002459: 00,3423           00006                           EXTEND                                         
048023,002460: 00,3424           74764                           MP       HALF                                  #  .5(MPAC/2)
048024,002461: 00,3425           00006                           EXTEND                                         
048025,002462: 00,3426           10130                           DV       BUF                                   #  .5(MPAC/2)/(X0/2)
048026,002463: 00,3427           26130                           ADS      BUF                                   #  X1 = X0/2 + .5(MPAC/2)/(X0/2).
048027,002464: 
048028,002465: 00,3430           00006                           EXTEND                                         
048029,002466: 00,3431           74764                           MP       HALF                                  #  FORM UP X1/2.
048030,002467: 00,3432           52155                           DXCH     MPAC                                  #  SAVE AND BRING OUT ARGUMENT.
048031,002468: 00,3433           00006                           EXTEND                                         #  TAKE DP QUOTIENT WITH X1.
048032,002469: 00,3434           10130                           DV       BUF                                   
048033,002470: 00,3435           54131                           TS       BUF        +1                         #  SAVE MAJOR PART OF QUOTIENT.
048034,002471: 00,3436           35003                           CAF      ZERO                                  #  FORM MINOR PART OF QUOTIENT USING
048035,002472: 00,3437           56001                           XCH      L                                     #  (REMAINDER,0).
048036,002473: 00,3440           00006                           EXTEND                                         
048037,002474: 00,3441           10130                           DV       BUF                                   
048038,002475: 00,3442           54001                           TS       L                                     #  IN PREPARATION FOR DAS.
048039,002476: 00,3443           30131                           CA       BUF        +1                         
048040,002477: 00,3444           20155                           DAS      MPAC                                  #  X2 = X1/2 + (MPAC/2)X1
048041,002478: 
048042,002479: 00,3445           00006                           EXTEND                                         #  OVERFLOWS IF ARG. NEAR POSMAX.
048043,002480: 00,3446           13452                           BZF      TCQBNK00                              
048044,002481: 00,3447           34761                           CAF      POSMAX                                
048045,002482: 00,3450           54154        FIXROOT            TS       MPAC                                  
048046,002483: 00,3451           54155                           TS       MPAC       +1                         
048047,002484: 00,3452           00002        TCQBNK00           TC       Q                                     #  RETURN TO CALLER TO UNNORMALIZE, ETC.
048048,002485: 
048049,002486: 00,3453           64765        SRTEST             AD       QUARTER                               #  ARGUMENT WAS LESS THAN .5, SEE IF LESS
048050,002487: 00,3454           00006                           EXTEND                                         #  THAN .25.
048051,002488: 00,3455           63477                           BZMF     SQRTNORM                              #  IF SO, BEGIN NORMALIZATION.
048052,002489: 
048053,002490: 00,3456           52155                           DXCH     MPAC                                  #  IF BETWEEN .5 AND .25, SHIFT RIGHT 1 AND
048054,002491: 00,3457           22021                           LXCH     SR                                    #  START AT ARGLO.
048055,002492: 00,3460           00006                           EXTEND                                         
048056,002493: 00,3461           74764                           MP       HALF                                  
048057,002494: 00,3462           52155                           DXCH     MPAC                                  
048058,002495: 00,3463           56021                           XCH      SR                                    
048059,002496: 00,3464           26155                           ADS      MPAC       +1                         #  NO OVERFLOW.
048060,002497: 
048061,002498: 00,3465           33006        ARGLO              CAF      SLOPELO                               #  (NORMALIZED) ARGUMENT BETWEEN .125 AND
048062,002499: 00,3466           00006                           EXTEND                                         #  .25
048063,002500: 00,3467           70154                           MP       MPAC                                  
048064,002501: 00,3470           62270                           AD       BIASLO                                
048065,002502: 00,3471           13421                           TCF      ARGHI      +4                         #  BEGIN SQUARE ROOT.
048066,002503: 
048067,002504: 00,3472           00006        SQRTNM2            EXTEND                                         #  SHIFT LEFT 2 AND INCREMENT RIGHT SHIFT
048068,002505: 00,3473           30156                           DCA      MPAC       +1                         #  COUNT (FOR TERMINAL UNNORMALIZATION).
048069,002506: 00,3474           20156                           DAS      MPAC       +1                         
048070,002507: 00,3475           60154                           AD       MPAC                                  
048071,002508: 00,3476           26154                           ADS      MPAC                                  #  (NO OVERFLOW).
048072,002509: 
048073,002510: 00,3477           24135        SQRTNORM           INCR     MPTEMP                                #  FIRST TIME THROUGH, JUST SHIFT LEFT 1
048074,002511: 00,3500           00006                           EXTEND                                         #  (PUTS IN EFFECTIVE RIGHT SHIFT SINCE
048075,002512: 00,3501           30156                           DCA      MPAC       +1                         #  WE WANT MPAC/2).
048076,002513: 00,3502           20156                           DAS      MPAC       +1                         
048077,002514: 00,3503           60154                           AD       MPAC                                  
048078,002515: 00,3504           26154                           ADS      MPAC                                  #  (AGAIN NO OVERFLOW).
048079,002516: 00,3505           60000                           DOUBLE                                         
048080,002517: 00,3506           54022                           TS       CYL                                   
048081,002518: 
048082,002519: 00,3507           10022        NORMTEST           CCS      CYL                                   #  SEE IF ARGUMENT NOW NORMALIZED AT
048083,002520: 00,3510           10022                           CCS      CYL                                   #  GREATER THAN .125.
048084,002521: 00,3511           13472                           TCF      SQRTNM2                               #  NO - SHIFT LEFT 2 MORE AND TRY AGAIN.
048085,002522: 00,3512           13415                           TCF      ARGHI                                 #  YES - NOW BETWEEN .5 AND .25.
048086,002523: 00,3513           13465                           TCF      ARGLO                                 #  ARGUMENT NOW BETWEEN .25 AND .125.
048087,002524: 
048088,002525:                                                                                                  #  TRIGONOMETRIC FUNCTION PACKAGE.
048089,002526: 
048090,002527:                                                                                                  #        THE FOLLOWING TRIGONOMETRIC FUNCTIONS ARE AVAILABLE AS INTERPRETIVE OPERATIONS:
048091,002528: 
048092,002529:                                                                                                  #        1.      SIN             COMPUTES (1/2)SINE(2 PI MPAC).
048093,002530:                                                                                                  #        2.      COS             COMPUTES (1/2)COSINE(2 PI MPAC).
048094,002531: 
048095,002532:                                                                                                  #        3.      ASIN            COMPUTES (1/2PI)ARCSINE(2 MPAC).
048096,002533:                                                                                                  #        4.      ACOS            COMPUTES (1/2PI)ARCCOSINE(2 MPAC).
048097,002534: 
048098,002535:                                                                                                  #  SIN-ASIN AND COS-ACOS ARE MUTUALLY INVERSE, IE SIN(ASIN(X)) = X.
048099,002536: 
048100,002537: 00,3514           06672        COSINE             TC       BRANCH                                #  FINDS COSINE USING THE IDENTITY
048101,002538: 00,3515           13520                           TCF      +3                                    #  COS(X) = SIN(PI/2 - ABS(X)).
048102,002539: 00,3516           13523                           TCF      PRESINE                               
048103,002540: 00,3517           13523                           TCF      PRESINE                               
048104,002541: 
048105,002542: 00,3520           00006                 +3        EXTEND                                         
048106,002543: 00,3521           40155                           DCS      MPAC                                  
048107,002544: 00,3522           52155                           DXCH     MPAC                                  
048108,002545: 
048109,002546: 00,3523           34765        PRESINE            CAF      QUARTER                               #  PI/2 SCALED.
048110,002547: 00,3524           26154                           ADS      MPAC                                  
048111,002548: 
048112,002549: 00,3525           52155        SINE               DXCH     MPAC                                  #  DOUBLE ARGUMENT.
048113,002550: 00,3526           20001                 +1        DDOUBL                                         
048114,002551: 00,3527           54000                           OVSK                                           #  SEE IF OVERFLOW PRESENT.
048115,002552: 00,3530           13533                           TCF      +3                                    #  IF NOT, ARGUMENT OK AS IS.
048116,002553: 
048117,002554: 00,3531           00006                           EXTEND                                         #  IF SO, WE LOST (OR GAINED) PI, SO
048118,002555: 00,3532           40001                           DCOM                                           #  COMPLEMENT MPAC USING THE IDENTITY
048119,002556:                                                                                                  #  SIN(X-(+)PI) = SIN(-X).
048120,002557: 00,3533           52155                 +3        DXCH     MPAC                                  
048121,002558: 00,3534           30154                           CA       MPAC                                  #  SEE IF ARGUMENT GREATER THAN .5 IN
048122,002559: 00,3535           60000                           DOUBLE                                         #  MAGNITUDE. IF SO, REDUCE IT TO LESS THAN
048123,002560: 00,3536           54001                           TS       L                                     #  .5 (+-PI/2 SCALED) AS FOLLOWS:
048124,002561: 00,3537           13550                           TCF      SN1                                   
048125,002562: 
048126,002563: 00,3540           50000                           INDEX    A                                     #  IF POSITIVE, FORM PI - X, IF NEGATIVE
048127,002564: 00,3541           34763                           CAF      NEG1/2     +1                         #  USE -PI -X.
048128,002565: 00,3542           60000                           DOUBLE                                         
048129,002566: 00,3543           00006                           EXTEND                                         
048130,002567: 00,3544           60154                           SU       MPAC                                  #  GUARANTEED NO OVERFLOW.
048131,002568: 00,3545           54154                           TS       MPAC                                  
048132,002569: 00,3546           40155                           CS       MPAC       +1                         
048133,002570: 00,3547           54155                           TS       MPAC       +1                         
048134,002571: 
048135,002572: 00,3550           00006        SN1                EXTEND                                         #  SET UP TO EVALUATE HASTINGS POLYNOMIAL
048136,002573: 00,3551           30155                           DCA      MPAC                                  
048137,002574: 00,3552           52134                           DXCH     BUF2                                  
048138,002575: 00,3553           03277                           TC       DSQSUB                                #  SQUARE MPAC.
048139,002576: 
048140,002577: 00,3554           07171                           TC       POLY                                  #  EVALUATE FOURTH ORDER POLYNOMIAL.
048141,002578: 00,3555           00003                           DEC      3          B-14                       
048142,002579: 00,3556           14441 37325                     2DEC     +.3926990796                            
048143,002580: 00,3560           53250 60764                     2DEC     -.6459637111                            
048144,002581: 00,3562           12146 21276                     2DEC     +.318758717                            
048145,002582: 00,3564           75466 71471                     2DEC     -.074780249                            
048146,002583: 00,3566           00236 32757                     2DEC     +.009694988                            
048147,002584: 
048148,002585: 00,3570           32467                           CAF      LBUF2                                 #  MULTIPLY BY ARGUMENT AND SHIFT LEFT 2.
048149,002586: 00,3571           07055                           TC       DMPSUB     -1                         
048150,002587: 
048151,002588: 00,3572           00006                           EXTEND                                         
048152,002589: 00,3573           30156                           DCA      MPAC       +1                         
048153,002590: 00,3574           20156                           DAS      MPAC       +1                         
048154,002591: 00,3575           60154                           AD       MPAC                                  
048155,002592: 00,3576           26154                           ADS      MPAC                                  #  NEITHER SHIFT OVERFLOWS.
048156,002593: 00,3577           00006                           EXTEND                                         
048157,002594: 00,3600           30156                           DCA      MPAC       +1                         
048158,002595: 00,3601           20156                           DAS      MPAC       +1                         
048159,002596: 00,3602           60154                           AD       MPAC                                  
048160,002597: 00,3603           26154                           ADS      MPAC                                  
048161,002598: 00,3604           16030                           TCF      DANZIG                                
048162,002599: 
048163,002600:                                                                                                  #  ARCSIN/ARCCOS ROUTINE.
048164,002601: 
048165,002602: 00,3605           33626        ARCSIN             CAF      LASINEX                               #  COMPUTE ARCSIN BY USING THE IDENTITY
048166,002603: 00,3606           13610                           TCF      +2                                    #  ARCSIN(X) = PI/2 - ARCCOS(X).
048167,002604: 
048168,002605: 00,3607           33710        ARCCOS             CAF      LDANZIG                               #  (EXITS IMMEDIATELY).
048169,002606: 00,3610           54136                           TS       ESCAPE                                
048170,002607: 00,3611           06672                           TC       BRANCH                                #  TEST SIGN OF INPUT.
048171,002608: 00,3612           13622                           TCF      ACOSST                                #  START IMMEDIATELY IF POSITIVE.
048172,002609: 00,3613           13724                           TCF      ACOSZERO                              #  ARCCOS(0) = PI/2 = .25.
048173,002610: 00,3614           00006                           EXTEND                                         #  IF NEGATIVE, USE THE IDENTITY
048174,002611: 00,3615           40155                           DCS      MPAC                                  #  ARCCOS(X) = PI - ARCCOS(-X), FORCING
048175,002612: 00,3616           52155                           DXCH     MPAC                                  #  ARGUMENT POSITIVE.
048176,002613: 00,3617           33727                           CAF      TCSUBTR                               #  SET EXIT TO DO ABOVE BEFORE
048177,002614: 00,3620           56136                           XCH      ESCAPE                                #  ARCSIN/ARCCOS CONSIDERATIONS.
048178,002615: 00,3621           54137                           TS       ESCAPE2                               
048179,002616: 
048180,002617: 00,3622           44764        ACOSST             CS       HALF                                  #  TEST MAGNITUDE OF INPUT.
048181,002618: 00,3623           60154                           AD       MPAC                                  
048182,002619: 00,3624           10000                           CCS      A                                     
048183,002620: 00,3625           13716                           TCF      ACOSOVF                               #  THIS IS PROBABLY AN OVERFLOW CASE.
048184,002621: 
048185,002622: 00,3626           13704        LASINEX            TCF      ASINEX                                
048186,002623: 
048187,002624: 00,3627           13637                           TCF      ACOSST2                               #  NO OVERFLOW - PROCEED.
048188,002625: 
048189,002626: 00,3630           10155                           CCS      MPAC       +1                         #  IF MAJOR PART IS .5, CALL ANSWER 0
048190,002627: 00,3631           35003                           CAF      ZERO                                  #  UNLESS MINOR PART NEGATIVE.
048191,002628: 00,3632           13634                           TCF      ACOS=0                                
048192,002629: 
048193,002630: 00,3633           13637                           TCF      ACOSST2                               
048194,002631: 
048195,002632: 00,3634           54155        ACOS=0             TS       MPAC       +1                         
048196,002633: 00,3635           54154                 +1        TS       MPAC                                  
048197,002634: 00,3636           00136                           TC       ESCAPE                                
048198,002635: 
048199,002636: 00,3637           00006        ACOSST2            EXTEND                                         #  NOW THAT ARGUMENT IS IN PROPER RANGE,
048200,002637: 00,3640           40155                           DCS      MPAC                                  #  BEGIN COMPUTATION. USE HASTINGS
048201,002638: 00,3641           64764                           AD       HALF                                  #  APPROXIMATION ARCCOS(X) = SQRT(1-X)P(X)
048202,002639: 00,3642           52155                           DXCH     MPAC                                  #  IN A SCALED VERSION WHERE P(X) IS A
048203,002640: 00,3643           52134                           DXCH     BUF2                                  #  SEVENTH ORDER POLYNOMIAL.
048204,002641: 
048205,002642: 00,3644           03342                           TC       SQRTSUB                               #  RETURNS WITH NORMALIZED SQUARE ROOT.
048206,002643: 
048207,002644: 00,3645           10135                           CCS      MPTEMP                                #  SEE IF UN-NORMALIZATION REQUIRED.
048208,002645: 00,3646           13711                           TCF      ACOSSHR                               #  IF SO.
048209,002646: 
048210,002647: 00,3647           52155        ACOS3              DXCH     MPAC                                  #  SET UP FOR POLYNOMIAL EVALUATION.
048211,002648: 00,3650           52134                           DXCH     BUF2                                  
048212,002649: 00,3651           52155                           DXCH     MPAC                                  
048213,002650: 
048214,002651: 00,3652           07171                           TC       POLY                                  
048215,002652: 00,3653           00006                           DEC      6          B-14                       
048216,002653: 00,3654           13240 23630                     2DEC     +.353553385                            #  COEFFICIENTS ARE C 2(+I)/PISQRT(2) WHERE
048217,002654: 00,3656           74721 47775                     2DEC*    -.0483017006 B+1*                       #             I
048218,002655: 00,3660           02440 20237                     2DEC*    +.0200273085 B+2*                       #  WHERE C STANDS FOR ORIGINAL COEFFS.
048219,002656: 00,3662           75067 70742                     2DEC*    -.0112931863 B+3*                       
048220,002657: 00,3664           03436 26756                     2DEC*    +.00695311612 B+4*                       
048221,002658: 00,3666           74037 57640                     2DEC*    -.00384617957 B+5*                       
048222,002659: 00,3670           03046 07143                     2DEC*    +.001501297736 B+6*                       
048223,002660: 00,3672           76654 42244                     2DEC*    -.000284160334 B+7*                       
048224,002661: 
048225,002662: 00,3674           32467                           CAF      LBUF2                                 #  DO FINAL MULTIPLY AND GO TO ANY
048226,002663: 00,3675           07055                           TC       DMPSUB     -1                         #  EPILOGUE SEQUENCES.
048227,002664: 00,3676           00136                           TC       ESCAPE                                
048228,002665: 
048229,002666: 00,3677           00006        SUBTR              EXTEND                                         #  EPILOGUE FOR NEGATIVE INPUTS TO ARCCOS.
048230,002667: 00,3700           40155                           DCS      MPAC                                  
048231,002668: 00,3701           64764                           AD       HALF                                  #  FORMS PI - ARCCOS(-X) = ARCCOS(X).
048232,002669: 00,3702           52155                           DXCH     MPAC                                  
048233,002670: 00,3703           00137                           TC       ESCAPE2                               #  GO TO POSSIBLE ARCSIN EPILOGUE.
048234,002671: 
048235,002672: 00,3704           00006        ASINEX             EXTEND                                         
048236,002673: 00,3705           40155                           DCS      MPAC                                  #  ARCSIN EPILOGUE - GET ARCSIN(X)
048237,002674: 00,3706           64765                           AD       QUARTER                               #  = PI/2 - ARCCOS(X).
048238,002675: 00,3707           52155                           DXCH     MPAC                                  
048239,002676: 00,3710           16030        LDANZIG            TCF      DANZIG                                
048240,002677: 
048241,002678: 00,3711           50000        ACOSSHR            INDEX    A                                     #  THE SHIFT RIGHT IS LESS THAN 14 SINCE
048242,002679: 00,3712           34764                           CAF      BIT14                                 #  THE INPUT WAS NON-ZERO DP.
048243,002680: 00,3713           54135                           TS       MPTEMP                                
048244,002681: 00,3714           02073                           TC       VSHRRND                               #  DP SHIFT RIGHT AND ROUND.
048245,002682: 00,3715           13647                           TCF      ACOS3                                 #  PROCEED.
048246,002683: 
048247,002684: 00,3716           00006        ACOSOVF            EXTEND                                         #  IF MAJOR PART WAS ONLY 1 MORE THAN .5,
048248,002685: 00,3717           13634                           BZF      ACOS=0                                #  CALL ANSWER ZERO.
048249,002686: 
048250,002687: 00,3720           05644        ACOSABRT           TC       ALARM                                 #  IF OVERFLOW, CALL ANSWER ZERO BUT
048251,002688: 00,3721           01301                           OCT      1301                                  #  SOUND AN ALARM.
048252,002689: 
048253,002690: 00,3722           35003                           CAF      ZERO                                  
048254,002691: 00,3723           13634                           TCF      ACOS=0                                
048255,002692: 
048256,002693: 00,3724           34765        ACOSZERO           CAF      QUARTER                               #  ACOS(0) = PI/2.
048257,002694: 00,3725           13635                           TCF      ACOS=0     +1                         #  SET MPAC AND EXIT VIA ESCAPE.
048258,002695: 
048259,002696: 00,3726           77763        NEG12              DEC      -12        B-14                       
048260,002697: 00,3727           13677        TCSUBTR            TCF      SUBTR                                 
048261,002698: 
048262,002699:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE AVAILABLE FOR SETTING, MODIFYING, AND BRANCHING ON INDEX REGISTERS:
048263,002700: 
048264,002701:                                                                                                  #         1.     AXT             ADDRESS TO INDEX TRUE.
048265,002702:                                                                                                  #         1.     AXC             ADDRESS TO INDEX COMPLEMENTED.
048266,002703:                                                                                                  #         3.     LXA             LOAD INDEX FROM ERASABLE.
048267,002704:                                                                                                  #         4.     LXC             LOAD INDEX COMPLEMENTED FROM ERASABLE.
048268,002705:                                                                                                  #         5.     SXA             STORE INDEX IN ERASABLE.
048269,002706:                                                                                                  #         6.     XCHX            EXCHANGE INDEX REIGSTER WITH ERASABLE.
048270,002707: 
048271,002708:                                                                                                  #         7.     INCR            INCREMENT INDEX REGISTER.
048272,002709:                                                                                                  #         8.     XAD             ERASABLE ADD TO INDEX REGISTER.
048273,002710:                                                                                                  #         9.     XSU             ERASABLE SUBTRACT FROM INDEX REGISTER.
048274,002711: 
048275,002712:                                                                                                  #        10.     TIX             BRANCH ON INDEX REGISTER AND DECREMENT.
048276,002713: 
048277,002714: 01,2000                                           SETLOC   INTERB1                               
048278,002715: 01,2000                                           BANK                                           
048279,002716: 
048280,002717: 01,2347                                           COUNT*   $$/INTER                              
048281,002718: 01,2347           02444        AXT                TC       TAGSUB                                #  SELECT APPROPRIATE INDEX REGISTER.
048282,002719: 01,2350           30117                           CA       POLISH                                
048283,002720: 01,2351           50130        XSTORE             INDEX    INDEXLOC                              #  CONTAINS C(FIXLOC) OR C(FIXLOC)+1.
048284,002721: 01,2352           54046                           TS       X1                                    
048285,002722: 01,2353           16030                           TCF      DANZIG                                
048286,002723: 
048287,002724: 01,2354           02444        AXC                TC       TAGSUB                                
048288,002725: 01,2355           40117                           CS       POLISH                                
048289,002726: 01,2356           02351                           TC       XSTORE                                
048290,002727: 
048291,002728: 01,2357           02432        LXA                TC       15ADRERS                              #  LOAD INDEX REGISTER FROM ERASABLE.
048292,002729: 01,2360           50117                           INDEX    POLISH                                
048293,002730: 01,2361           30000                           CA       0                                     
048294,002731: 01,2362           12351                           TCF      XSTORE                                
048295,002732: 
048296,002733: 01,2363           02432        LXC                TC       15ADRERS                              #  LOAD NDX REG FROM ERASABLE COMPLEMENTED.
048297,002734: 01,2364           50117                           INDEX    POLISH                                
048298,002735: 01,2365           40000                           CS       0                                     
048299,002736: 01,2366           12351                           TCF      XSTORE                                
048300,002737: 
048301,002738: 01,2367           02432        SXA                TC       15ADRERS                              #  STORE INDEX REGISTER IN ERASABLE.
048302,002739: 01,2370           50130                           INDEX    INDEXLOC                              
048303,002740: 01,2371           30046                           CA       X1                                    
048304,002741: 01,2372           50117        MSTORE1            INDEX    POLISH                                
048305,002742: 01,2373           54000                           TS       0                                     
048306,002743: 01,2374           16030                           TCF      DANZIG                                
048307,002744: 
048308,002745: 01,2375           02432        XCHX               TC       15ADRERS                              #  EXCHANGE INDEX REGISTER WITH ERASABLE.
048309,002746: 01,2376           50117                           INDEX    POLISH                                
048310,002747: 01,2377           30000                           CA       0                                     
048311,002748: 01,2400           50130                           INDEX    INDEXLOC                              
048312,002749: 01,2401           56046                           XCH      X1                                    
048313,002750: 01,2402           12372                           TCF      MSTORE1                               
048314,002751: 
048315,002752: 01,2403           02432        XAD                TC       15ADRERS                              #  ADD ERASABLE TO INDEX REGISTER.
048316,002753: 01,2404           50117                           INDEX    POLISH                                
048317,002754: 01,2405           30000                           CA       0                                     
048318,002755: 01,2406           50130        XAD2               INDEX    INDEXLOC                              
048319,002756: 01,2407           26046                           ADS      X1                                    #  IGNORING OVERFLOWS.
048320,002757: 01,2410           16030                           TCF      DANZIG                                
048321,002758: 
048322,002759: 01,2411           02444        INCR               TC       TAGSUB                                #  INCREMENT INDEX REGISTER.
048323,002760: 01,2412           30117                           CA       POLISH                                
048324,002761: 01,2413           12406                           TCF      XAD2                                  
048325,002762: 
048326,002763: 01,2414           02432        XSU                TC       15ADRERS                              #  SUBTRACT ERASABLE FROM INDEX REGISTER.
048327,002764: 01,2415           50117                           INDEX    POLISH                                
048328,002765: 01,2416           40000                           CS       0                                     
048329,002766: 01,2417           12406                           TCF      XAD2                                  
048330,002767: 
048331,002768: 01,2420           02444        TIX                TC       TAGSUB                                #  BRANCH AND DECREMENT ON INDEX.
048332,002769: 01,2421           50130                           INDEX    INDEXLOC                              
048333,002770: 01,2422           40050                           CS       S1                                    
048334,002771: 01,2423           50130                           INDEX    INDEXLOC                              
048335,002772: 01,2424           60046                           AD       X1                                    
048336,002773: 01,2425           00006                           EXTEND                                         #  NO OPERATION IF DECREMENTED INDEX IS
048337,002774: 01,2426           66030                           BZMF     DANZIG                                #  NEGATIVE OR ZERO.
048338,002775: 
048339,002776: 01,2427           50130        DOTIXBR            INDEX    INDEXLOC                              
048340,002777: 01,2430           56046                           XCH      X1                                    #  IGNORING OVERFLOWS.
048341,002778: 
048342,002779: 01,2431           16615                           TCF      GOTO                                  #  DO THE BRANCH USING THE CADR IN POLISH.
048343,002780: 
048344,002781:                                                                                                  #  SUBROUTINE TO CONVERT AN ERASABLE ADDRESS (11 BITS) TO AN EBANK SETTING AND SUBADDRESS.
048345,002782: 
048346,002783: 01,2432           40117        15ADRERS           CS       POLISH                                
048347,002784: 01,2433           65020                           AD       DEC45                                 
048348,002785: 01,2434           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
048349,002786: 01,2435           30120                           CA       FIXLOC                                #  YES.  ADD FIXLOC.  EBANK OK AS IS.
048350,002787: 01,2436           12443                           TCF      +5                                    
048351,002788: 
048352,002789: 01,2437           35037                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
048353,002790: 01,2440           56117                           XCH      POLISH                                
048354,002791: 01,2441           54003                           TS       EBANK                                 
048355,002792: 01,2442           74350                           MASK     LOW8                                  
048356,002793: 01,2443           26117                 +5        ADS      POLISH                                #  FALL INTO TAGSUB, AND RETURN VIA Q.
048357,002794: 
048358,002795:                                                                                                  #  SUBROUTINE WHICH SETS THE ADDRESS OF THE SPECIFIED INDEX IN INDEXLOC. (ACTUALLY, THE ADDRESS -38D.)
048359,002796: 
048360,002797: 01,2444           30120        TAGSUB             CA       FIXLOC                                
048361,002798: 01,2445           54130                           TS       INDEXLOC                              
048362,002799: 
048363,002800: 01,2446           10020                           CCS      CYR                                   #  BIT 15 SPECIFIES INDEX.
048364,002801: 01,2447           24130                           INCR     INDEXLOC                              #  0 MEANS USE X2.
048365,002802: 01,2450           00002                           TC       Q                                     
048366,002803: 01,2451           00002                           TC       Q                                     #  1 FOR X1.
048367,002804: 
048368,002805:                                                                                                  #  MISCELLANEOUS OPERATION CODES WITH DIRECT ADDRESSES. INCLUDED HERE ARE:
048369,002806: 
048370,002807:                                                                                                  #        1.      ITA             STORE QPRET (RETURN ADDRESS) IN ERASABLE.
048371,002808:                                                                                                  #        2.      CALL            CALL A SUBROUTINE, LEAVING RETURN IN QPRET.
048372,002809:                                                                                                  #        3.      RTB             RETURN TO BASIC LANGUAGE AT THE GIVEN ADDRESS.
048373,002810:                                                                                                  #        4.      BHIZ            BRANCH IF THE HIGHORDER OF MPAC IS ZERO (SINGLE PRECISION).
048374,002811:                                                                                                  #        5.      BOV             BRANCH ON OVERFLOW.
048375,002812:                                                                                                  #        6.      GOTO            SIMPLE SEQUENCE CHANGE.
048376,002813: 
048377,002814: 01,2452           10020        RTB/BHIZ           CCS      CYR                                   
048378,002815: 01,2453           30117        RTB                CA       POLISH                                
048379,002816: 01,2454           04652                           TC       SWCALL     -1                         #  SO A "TC Q" FROM ROUTINE LEADS TO DANZIG
048380,002817: 
048381,002818: 01,2455           10154        BHIZ               CCS      MPAC                                  
048382,002819: 01,2456           16030                           TCF      DANZIG                                
048383,002820: 01,2457           16615                           TCF      GOTO                                  
048384,002821: 01,2460           16030                           TCF      DANZIG                                
048385,002822: 01,2461           16615                           TCF      GOTO                                  
048386,002823: 
048387,002824: 01,2462           10121        BOV(B)             CCS      OVFIND                                #  BRANCH ON OVERFLOW TO BASIC OR INTERP.
048388,002825: 01,2463           12465                           TCF      +2                                    
048389,002826: 01,2464           16030                           TCF      DANZIG                                
048390,002827: 01,2465           54121                           TS       OVFIND                                
048391,002828: 01,2466           10020                           CCS      CYR                                   
048392,002829: 01,2467           12453                           TCF      RTB                                   #  IF BASIC.
048393,002830: 01,2470           00360        B5TOB8             OCT      360                                   
048394,002831: 01,2471           16615                           TCF      GOTO                                  
048395,002832: 
048396,002833: 01,2472           10020        BZE/GOTO           CCS      CYR                                   #  SEE WHICH OP-CODE IS DESIRED.
048397,002834: 01,2473           06672                           TC       BRANCH                                #  DO BZE.
048398,002835: 01,2474           16030                           TCF      DANZIG                                
048399,002836: 01,2475           16615                           TCF      GOTO                                  #  DO GOTO.
048400,002837: 01,2476           16030                           TCF      DANZIG                                
048401,002838: 
048402,002839: 01,2477           10020        BPL/BMN            CCS      CYR                                   
048403,002840: 01,2500           12506                           TCF      BPL                                   
048404,002841: 01,2501           12000        5B10               DEC      5          B+10                       #  SHIFTS OP CODE IN SWITCH INSTRUCTION ADR
048405,002842: 
048406,002843: 01,2502           06672                           TC       BRANCH                                #  DO BMN.
048407,002844: 01,2503           16030                           TCF      DANZIG                                
048408,002845: 01,2504           16030                           TCF      DANZIG                                
048409,002846: 01,2505           16615                           TCF      GOTO                                  #  ONLY IF NNZ.
048410,002847: 
048411,002848: 01,2506           06672        BPL                TC       BRANCH                                
048412,002849: 01,2507           16615                           TCF      GOTO                                  #  IF POSITIVE OR ZERO.
048413,002850: 01,2510           16615                           TCF      GOTO                                  
048414,002851: 01,2511           16030                           TCF      DANZIG                                
048415,002852: 
048416,002853: 01,2512           10020        CALL/ITA           CCS      CYR                                   
048417,002854: 01,2513           16607                           TCF      CALL                                  
048418,002855: 
048419,002856: 01,2514           12515                           NOOP                                           #  CANNOT GET HERE
048420,002857: 01,2515           02432                           TC       15ADRERS                              #  STORE QPRET. (TAGSUB AFTER 15ADRERS IS
048421,002858: 01,2516           50120                           INDEX    FIXLOC                                #  SLOW IN THIS CASE, BUT SAVES STORAGE.)
048422,002859: 01,2517           30052                           CA       QPRET                                 
048423,002860: 01,2520           12372                           TCF      MSTORE1                               
048424,002861: 
048425,002862:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR ALTERING AND TESTING INTERPRETIVE SWITCHES:
048426,002863:                                                                                                  #  
048427,002864:                                                                                                  #        00      BONSET          SET A SWITCH AND DO A GOTO IF IT WAS ON.
048428,002865:                                                                                                  #        01      SETGO           SET A SWITCH AND DO A GOTO.
048429,002866:                                                                                                  #        02      BOFSET          SET A SWITCH AND DO A GOTO IF IT WAS OFF
048430,002867:                                                                                                  #        03      SET             SET A SWITCH.
048431,002868: 
048432,002869:                                                                                                  #        04      BONINV          INVERT A SWITCH AND BRANCH IF IT WAS ON.
048433,002870:                                                                                                  #        05      INVGO           INVERT A SWITCH AND DO A GOTO.
048434,002871:                                                                                                  #        06      BOFINV          INVERT A SWITCH AND BRANCH IF IT WAS OFF
048435,002872:                                                                                                  #        07      INVERT          INVERT A SWITCH.
048436,002873: 
048437,002874:                                                                                                  #        10      BONCLR          CLEAR A SWITCH AND BRANCH IF IT WAS ON.
048438,002875:                                                                                                  #        11      CLRGO           CLEAR A SWITCH AND DO A GOTO.
048439,002876:                                                                                                  #        12      BOFCLR          CLEAR A SWITCH AND BRANCH IF IT WAS OFF.
048440,002877:                                                                                                  #        13      CLEAR           CLEAR A SWITCH.
048441,002878: 
048442,002879:                                                                                                  #        14      BON             BRANCH IF A SWITCH WAS ON.
048443,002880:                                                                                                  #        16      BOFF            BRANCH IF A SWITCH WAS OFF.
048444,002881: 
048445,002882:                                                                                                  #  THE ADDRESS SUPPLIED WITH THE SWITCH INSTRUCTION IS INTERPRETED AS FOLLOWS:
048446,002883: 
048447,002884:                                                                                                  #        BITS 1-4        SWITCH BIT NUMBER (1-15).
048448,002885:                                                                                                  #        BITS 5-8        SWITCH OPERATION NUMBER.
048449,002886:                                                                                                  #        BITS 9-         SWITCH WORD NUMBER (UP TO 64 SWITCH WORDS).
048450,002887: 
048451,002888:                                                                                                  #  THE ADDRESS ITSELF IS MADE UP BY THE YUL SYSTEM ASSEMBLER. THE BRANCH INSTRUCTIONS REQUIRE TWO
048452,002889:                                                                                                  #  ADDRESSES, THE SECOND TAKEN AS THE DIRECT (OR INDIRECT IF IN ERASABLE) ADDRESS OF THE BRANCH.
048453,002890: 
048454,002891: 01,2521           35010        SWITCHES           CAF      LOW4                                  #  LEAVE THE SWITCH BIT IN  SWBIT  .
048455,002892: 01,2522           70117                           MASK     POLISH                                
048456,002893: 01,2523           50000                           INDEX    A                                     
048457,002894: 01,2524           34763                           CAF      BIT15                                 #  (NUMBER FROM LEFT TO RIGHT.)
048458,002895: 01,2525           54131                           TS       SWBIT                                 
048459,002896: 
048460,002897: 01,2526           34773                           CAF      BIT7                                  #  LEAVE THE SWITCH NUMBER IN SWWORD.
048461,002898: 01,2527           00006                           EXTEND                                         
048462,002899: 01,2530           70117                           MP       POLISH                                
048463,002900: 01,2531           54130                           TS       SWWORD                                
048464,002901: 
048465,002902: 01,2532           00004                           INHINT                                         #  DURING SWITCH CHANGE SO RUPT CAN USE TOO
048466,002903: 01,2533           50000                           INDEX    A                                     #  LEAVE THE SWITCH WORD ITSELF IN L.
048467,002904: 01,2534           30074                           CA       STATE                                 
048468,002905: 01,2535           54002                           TS       Q                                     #  Q WILL BE USED AS A CHANNEL.
048469,002906: 01,2536           34767                           CAF      BIT11                                 
048470,002907: 01,2537           00006                           EXTEND                                         #  DISPATCH SWITCH BIT OPERATION AS IN BITS
048471,002908: 01,2540           70117                           MP       POLISH                                #  7-8 OF POLISH.
048472,002909: 01,2541           73032                           MASK     B3TOB4                                #  GETS 4X2-BIT CODE.
048473,002910: 01,2542           50000                           INDEX    A                                     
048474,002911: 01,2543           12544                           TCF      +1                                    
048475,002912: 
048476,002913: 01,2544           30131                 +1        CA       SWBIT                                 #  00 - SET SWITCH IN QUESTION.
048477,002914: 01,2545           00006                           EXTEND                                         
048478,002915: 01,2546           04002                           ROR      QCHAN                                 
048479,002916: 01,2547           12556                           TCF      SWSTORE                               
048480,002917: 
048481,002918: 01,2550           30131                 +5        CA       SWBIT                                 #  01 - INVERT SWITCH.
048482,002919: 01,2551           00006                           EXTEND                                         
048483,002920: 01,2552           06002                           RXOR     QCHAN                                 
048484,002921: 01,2553           12556                           TCF      SWSTORE                               
048485,002922: 
048486,002923: 01,2554           40131                 +9D       CS       SWBIT                                 #  10 - CLEAR.
048487,002924: 01,2555           70002                           MASK     Q                                     
048488,002925: 01,2556           50130        SWSTORE            INDEX    SWWORD                                
048489,002926: 01,2557           54074                           TS       STATE                                 #  NEW SWITCH WORD.
048490,002927: 01,2560           00003                 +13D      RELINT                                         #  11 - NOOP.
048491,002928: 01,2561           34765                           CAF      BIT13                                 
048492,002929: 01,2562           00006                           EXTEND                                         #  DISPATCH SEQUCE CHANGING OR BRANCHING
048493,002930: 01,2563           70117                           MP       POLISH                                #  CODE.
048494,002931: 01,2564           73032                           MASK     B3TOB4                                
048495,002932: 01,2565           50000                           INDEX    A                                     
048496,002933: 01,2566           12567                           TCF      +1                                    #  ORIGINALLY STORED IN BITS 5-6.
048497,002934: 
048498,002935: 01,2567           40002                 +1        CS       Q                                     #  00 - BRANCH IF ON.
048499,002936: 01,2570           70131        TEST               MASK     SWBIT                                 
048500,002937: 01,2571           10000                           CCS      A                                     
048501,002938: 01,2572           12602                           TCF      SWSKIP                                
048502,002939: 
048503,002940: 01,2573           16664                 +5        TCF      SWBRANCH                              #  01 - GO TO.
048504,002941: 
048505,002942: 01,2574           12602                           TCF      SWSKIP                                #  HERE ONLY ON BIT 15.
048506,002943: 
048507,002944: 01,2575           12576                           NOOP                                           #  CANNOT GET HERE
048508,002945: 01,2576           12577                           NOOP                                           #  CANNOT GET HERE
048509,002946: 01,2577           30002                 +9D       CA       Q                                     #  10 - BRANCH IF OFF.
048510,002947: 01,2600           12570                           TCF      TEST                                  
048511,002948: 
048512,002949: 01,2601           12602                 +11D      NOOP                                           #  CANNOT GET HERE
048513,002950: 01,2602           24164        SWSKIP             INCR     LOC                                   
048514,002951: 
048515,002952: 01,2603           16030                 +13D      TCF      DANZIG                                #  11 - NOOP.
048516,002953: 
048517,002954: 01,2604  01,3032               B3TOB4             EQUALS   COREINC                               
048518,002955: 01,2604  01,2521               SW/                EQUALS   SWITCHES                              

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