Source Code

These source-code files were transcribed from a printout in Don Eyles's personal collection, scanned by archive.org, and financially sponsored by Linden Sims. A team of volunteers performed the transcription and proof-reading. The scanned page images are available at the Virtual AGC Project website, as well as higher-quality (but much larger) images at the Virtual AGC Project's collection in the Internet Archive. Report any problems by creating "issues" at the Virtual AGC Project's GitHub Repository.

Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 56 OF AGC PROGRAM ZERLINA BY ZOROASTER
	9:12 OCT. 21,1970
Note that the date is the date of the printout, not the date of the program revision.

044380,000002:                                                                                                  ## Copyright:   Public domain.
044381,000003:                                                                                                  ## Filename:    INTERPRETER.agc
044382,000004:                                                                                                  ## Purpose:     A log section of Zerlina 56, the final revision of
044383,000005:                                                                                                  ##              Don Eyles's offline development program for the variable 
044384,000006:                                                                                                  ##              guidance period servicer. It also includes a new P66 with LPD 
044385,000007:                                                                                                  ##              (Landing Point Designator) capability, based on an idea of John 
044386,000008:                                                                                                  ##              Young's. Neither of these advanced features were actually flown,
044387,000009:                                                                                                  ##              but Zerlina was also the birthplace of other big improvements to
044388,000010:                                                                                                  ##              Luminary including the terrain model and new (Luminary 1E)
044389,000011:                                                                                                  ##              analog display programs. Zerlina was branched off of Luminary 145,
044390,000012:                                                                                                  ##              and revision 56 includes all changes up to and including Luminary
044391,000013:                                                                                                  ##              183. It is therefore quite close to the Apollo 14 program,
044392,000014:                                                                                                  ##              Luminary 178, where not modified with new features.
044393,000015:                                                                                                  ## Reference:   pp. 993-1085
044394,000016:                                                                                                  ## Assembler:   yaYUL
044395,000017:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
044396,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
044397,000019:                                                                                                  ## Mod history: 2017-07-28 MAS  Created from Luminary 210.
044398,000020:                                                                                                  ##              2017-08-28 RSB  Completed transcribing through page 1032.  Pages
044399,000021:                                                                                                  ##                              1033-1085 remain.
044400,000022:                                                                                                  ##              2017-08-29 RSB  Completed remainder of transcription.
044401,000023:                                                                                                  ##              2021-05-30 ABS  B5TOBB -> B5TOB8
044402,000024: 

Page 993

044404,000026:                                                                                                  #  SECTION 1  DISPATCHER
044405,000027: 
044406,000028:                                                                                                  #           ENTRY TO THE INTERPRETER. INTPRET SETS LOC TO THE FIRST  INSTRUCTION, BANKSET TO THE BBANK OF THE
044407,000029:                                                                                                  #  OBJECT INTERPRETIVE PROGRAM, AND INTBIT15 TO THE BIT15 CONTENTS OF FBANK. INTERPRETIVE PROGRAMS MAY BE IN
044408,000030:                                                                                                  #  VIRTUALLY ALL BANKS PRESENT UNDER ANY SUPER-BANK SETTING, WITH THE RESTRICTION THAT PROGRAMS IN HIGH BANKS
044409,000031:                                                                                                  #  (BIT15 OF FBANK = 1) DO NOT REFER TO LOWBANKS, AND VICE-VERSA. THE INTERPRETER DOES NOT SWITCH SUPERBANKS.
044410,000032:                                                                                                  #  E-BANK SWITCHING OCCURS WHENEVER GENERAL ERASABLE (100 - 3777) IS ADDRESSED.
044411,000033: 
044412,000034:    6051                                           BLOCK    03                                    
044413,000035: 
044414,000036:    6051                                           COUNT*   $$/INTER                              
044415,000037:    6051           00003        INTPRET            RELINT                                         
044416,000038:    6052           00006                           EXTEND                                         #  SET LOC TO THE WORD FOLLOWING THE TC.
044417,000039:    6053           22164                           QXCH     LOC                                   
044418,000040: 
044419,000041:    6054           30006                 +2        CA       BBANK                                 #  INTERPRETIVE BRANCHES FINISH HERE.
044420,000042:    6055           54165                           TS       BANKSET                               
044421,000043:    6056           74735                           MASK     BIT15                                 #  GET 15TH BIT FOR INDEXABLE ADDRESSES.
044422,000044:    6057           54115                           TS       INTBIT15                              
044423,000045: 
044424,000046:    6060           54023                           TS       EDOP                                  #  MAKE SURE NO INSTRUCTIONS LEFT OVER
044425,000047: 
044426,000048:    6061           16102                           TCF      NEWOPS                                #  PICK UP OP CODE PAIR AND BEGIN.
044427,000049: 
044428,000050: 
044429,000051:    6062           22006        INTRSM             LXCH     BBANK                                 #  RESUME SUSPENDED INTERPRETIVE JOB
044430,000052:    6063           16054                           TCF      INTPRET    +3                         
044431,000053:                                                                                                  #           DLOAD LOADS MPAC, MPAC +1, LEAVING ZERO IN MPAC +2.
044432,000054: 
044433,000055:    6064           00006        DLOAD              EXTEND                                         
044434,000056:    6065           50116                           INDEX    ADDRWD                                
044435,000057:    6066           30001                           DCA      0                                     #  LOAD DP C(C(ADDRWD)) INTO MPAC,MPAX +1
044436,000058:    6067           52155        SLOAD2             DXCH     MPAC                                  
044437,000059:    6070           34755                           CAF      ZERO                                  #  ZERO MPAC +2
044438,000060: 

Page 994

044440,000062:                                                                                                  #           AT THE END OF MOST INSTRUCTIONS, CONTROL IS GIVEN TO DANZIG TO DISPATCH THE NEXT OPERATION.
044441,000063: 
044442,000064:    6071           54156                           TS       MPAC       +2                         #  AND DECLARE DP MODE
044443,000065: 
044444,000066:    6072           54163        NEWMODE            TS       MODE                                  #  PROLOGUE FOR MODE-CHANGING INSTRUCTIONS.
044445,000067: 
044446,000068:    6073           30165        DANZIG             CA       BANKSET                               #  SET BBANK BEFORE TESTING NEWJOB SO THAT
044447,000069:    6074           54006                           TS       BBANK                                 #  IT MAY BE SAVED DIRECTLY BY CHANJOB.
044448,000070: 
044449,000071:    6075           10023        NOIBNKSW           CCS      EDOP                                  #  SEE IF AN ORDER CODE IS LEFT OVER FROM
044450,000072:    6076           16111                           TCF      OPJUMP                                #  THE LAST PAIR RETRIEVED. IF SO, EXECUTE.
044451,000073:                                                                                                  #  EDOP IS SET TO ZERO ON ITS RE-EDITING.
044452,000074: 
044453,000075:    6077           10067                           CCS      NEWJOB                                #  SEE IF A JOB OF HIGHER PRIORITY IS
044454,000076:    6100           15126                           TCF      CHANG2                                #  PRESENT, AND IF SO, CHANGE JOBS.
044455,000077: 
044456,000078:    6101           24164                           INCR     LOC                                   #  ADVANCE THE LOCATION COUNTER.
044457,000079:                                                                                                  #           ITRACE (1) REFERS TO "NEWOPS".
044458,000080:    6102           50164        NEWOPS             INDEX    LOC                                   #  ENTRY TO BEGIN BY PICKING OP CODE PAIR.
044459,000081:    6103           30000                           CA       0                                     #  MAY BE AN OPCODE PAIR OR A STORE CODE.
044460,000082:    6104           10000                           CCS      A                                     #  TEST SIGN AND GET DABS(A).
044461,000083:    6105           16374                           TCF      DOSTORE                               #  PROCESS STORE CODE.
044462,000084: 
044463,000085:    6106           00177        LOW7               OCT      177                                   
044464,000086: 
044465,000087:    6107           54023                           TS       EDOP                                  #  OP CODE PAIR. LEAVE THE OTHER IN EDOP
044466,000088:    6110           76106                           MASK     LOW7                                  #  WHERE  CCS EDOP  WILL HONOR IT NEXT.
044467,000089: 
044468,000090:    6111           54020        OPJUMP             TS       CYR                                   #  LOWWD ENTERS HERE IF A RIGHT-HAND OP
044469,000091:    6112           10020                           CCS      CYR                                   #  CODE IS TO BE PROCESSED. TEST PREFICES.
044470,000092:    6113           16261                           TCF      OPJUMP2                               #  TEST SECOND PREFIX BIT.
044471,000093: 
044472,000094:    6114           16755                           TCF      EXIT                                  #  +0 OP CODE IS EXIT.
044473,000095: 

Page 995

044475,000097:                                                                                                  #           PROCESS ADDRESSES WHICH MAY BE DIRECT, INDEXED, OR REFERENCE THE PUSHDOWN LIST.
044476,000098: 
044477,000099:    6115           74753        ADDRESS            MASK     BIT1                                  #  SEE IF ADDRESS IS INDEXED. CYR CONTAINED
044478,000100:    6116           10000                           CCS      A                                     #  400XX, SO BIT 1 IS NOW AS IT WAS IN CYR.
044479,000101:    6117           16160                           TCF      INDEX                                 #  FORM INDEXED ADDRESS.
044480,000102: 
044481,000103:    6120           50164        DIRADRES           INDEX    LOC                                   #  LOOK AHEAD TO NEXT WORD TO SEE IF
044482,000104:    6121           40001        OCT40001           CS       1                                     #  ADDRESS IS GIVEN.
044483,000105:    6122           10000                           CCS      A                                     
044484,000106:    6123           16227                           TCF      PUSHUP                                #  IF NOT.
044485,000107: 
044486,000108:    6124           77773        NEG4               DEC      -4         B-14                       
044487,000109: 
044488,000110:    6125           24164                           INCR     LOC                                   #  IF SO, TO SHOW WE PICKED UP A WORD.
044489,000111:    6126           54116                           TS       ADDRWD                                
044490,000112: 

Page 996

044492,000114:                                                                                                  #           FINAL DIGESTION OF DIRECT ADDRESSES OF OP CODES WITH 01 PREFIX IS DONE HERE. IN EACH CASE, THE
044493,000115:                                                                                                  #  REQUIRED 12-BIT SUB-ADDRESS IS LEFT IN ADDRWD, WITH ANY REQUIRED E OR F BANK SWITCHING DONE. ADDRESSES LESS
044494,000116:                                                                                                  #  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.
044495,000117: 
044496,000118:    6127           66263                           AD       -ENDVAC                               #  SEE IF ADDRESS RELATIVE TO WORK AREA.
044497,000119:    6130           10000                           CCS      A                                     
044498,000120:    6131           67755                           AD       -ENDERAS                              #  IF NOT, SEE IF IN GENERAL ERASABLE.
044499,000121:    6132           16137                           TCF      IERASTST                              
044500,000122: 
044501,000123:    6133           30120        NETZERO            CA       FIXLOC                                #  IF SO, LEAVE THE MODIFIED ADDRESS IN
044502,000124:    6134           26116                           ADS      ADDRWD                                #  ADDRWD AND DISPATCH.
044503,000125:    6135           50020        ITR15              INDEX    CYR                                   #  THIS INDEX MAKES THE NEXT INSTRUCTION
044504,000126:    6136           76305                           7        INDJUMP    -1                         #  TCF INDJUMP + OP, EDITING CYR.
044505,000127: 
044506,000128:    6137           00006        IERASTST           EXTEND                                         
044507,000129:    6140           66150                           BZMF     GEADDR                                #  GO PROCESS GENERAL-ERASABLE ADDRESS.
044508,000130: 
044509,000131:    6141           75012                           MASK     LOW10                                 #  FIXED BANK ADDRESS. RESTORE AND ADD B15.
044510,000132:    6142           65012                           AD       LOW10                                 #  SWITCH BANKS AND LEAVE SUBADDRESS IN
044511,000133:    6143           56116                           XCH      ADDRWD                                #  ADDRWD FOR OPERAND RETRIEVAL. (THIS
044512,000134:    6144           60115                           AD       INTBIT15                              #  METHOD PRECLUDES USE OF THE LAST
044513,000135:    6145           54004                           TS       FBANK                                 #  LOCATION IN EACH FBANK.)
044514,000136:    6146           50020        ITR12              INDEX    CYR                                   
044515,000137:    6147           76305                           7        INDJUMP    -1                         
044516,000138: 
044517,000139:    6150           74357        GEADDR             MASK     LOW8                                  
044518,000140:    6151           65007                           AD       OCT1400                               
044519,000141:    6152           56116                           XCH      ADDRWD                                
044520,000142:    6153           54003                           TS       EBANK                                 
044521,000143:    6154           50020        ITR10              INDEX    CYR                                   
044522,000144:    6155           76305                           7        INDJUMP    -1                         
044523,000145: 

Page 997

044525,000147:                                                                                                  #           THE FOLLOWING ROUTINE PROCESSES INTERPRETIVE INDEXED ADDRESSES. AN INTERPRETER INDEX REGISTER MAY
044526,000148:                                                                                                  #  CONTAIN THE ADDRESS OF ANY ERASABLE REGISTER (0-42 BEING RELATIVE TO THE VAC AREA) OR ANY INTERPRETIVE PROGRAM
044527,000149:                                                                                                  #  BANK, OR ANY INTEGER IN THAT RANGE.
044528,000150: 
044529,000151:    6156           37745        DODLOAD*           CAF      DLOAD*                                #  STODL* COMES HERE TO PROCESS LOAD ADR.
044530,000152:    6157           54020                           TS       CYR                                   #  (STOVL* ENTERS HERE).
044531,000153: 
044532,000154:    6160           30120        INDEX              CA       FIXLOC                                #  SET UP INDEX LOCATION.
044533,000155:    6161           54130                           TS       INDEXLOC                              
044534,000156:    6162           24164                           INCR     LOC                                   #  (ADDRESS ALWAYS GIVEN).
044535,000157:    6163           50164                           INDEX    LOC                                   
044536,000158:    6164           40000                           CS       0                                     
044537,000159:    6165           10000                           CCS      A                                     #  INDEX 2 IF ADDRESS STORED COMPLEMENTED.
044538,000160:    6166           24130                           INCR     INDEXLOC                              
044539,000161:    6167           16170                           NOOP                                           
044540,000162: 
044541,000163:    6170           54116                           TS       ADDRWD                                #  14 BIT ADDRESS TO ADDRWD.
044542,000164:    6171           77754                           MASK     HIGH4                                 #  IF ADDRESS GREATER THAN 2K, ADD INTBIT15
044543,000165:    6172           00006                           EXTEND                                         
044544,000166:    6173           16176                           BZF      INDEX2                                
044545,000167:    6174           30115                           CA       INTBIT15                              
044546,000168:    6175           26116                           ADS      ADDRWD                                
044547,000169: 
044548,000170:    6176           50130        INDEX2             INDEX    INDEXLOC                              
044549,000171:    6177           40046                           CS       X1                                    
044550,000172:    6200           26116                           ADS      ADDRWD                                #  DO AUGMENT, IGNORING AND CORRECTING OVF.
044551,000173: 
044552,000174:    6201           77756                           MASK     HIGH9                                 #  SEE IF ADDRESS IS IN WORK AREA.
044553,000175:    6202           00006                           EXTEND                                         
044554,000176:    6203           16216                           BZF      INDWORK                               
044555,000177:    6204           77754                           MASK     HIGH4                                 #  SEE IF IN FIXED BANK.
044556,000178:    6205           00006                           EXTEND                                         
044557,000179:    6206           16220                           BZF      INDERASE                              
044558,000180: 
044559,000181:    6207           30116                           CA       ADDRWD                                #  IN FIXED - SWITCH BANKS AND CREATE
044560,000182:    6210           54004                           TS       FBANK                                 #  SUB-ADDRESS.
044561,000183:    6211           75012                           MASK     LOW10                                 
044562,000184:    6212           64741                           AD       2K                                    
044563,000185:    6213           54116                           TS       ADDRWD                                
044564,000186:    6214           50020        ITR11              INDEX    CYR                                   
044565,000187:    6215           36305                           3        INDJUMP    -1                         
044566,000188: 
044567,000189:    6216           30120        INDWORK            CA       FIXLOC                                #  MAKE ADDRWD RELATIVE TO WORK AREA.
044568,000190:    6217           16224                           TCF      ITR13      -1                         
044569,000191: 
044570,000192:    6220           35007        INDERASE           CA       OCT1400                               
044571,000193:    6221           56116                           XCH      ADDRWD                                
044572,000194:    6222           54003                           TS       EBANK                                 
044573,000195:    6223           74357                           MASK     LOW8                                  
044574,000196:    6224           26116                 -1        ADS      ADDRWD                                

Page 998

044576,000198:    6225           50020        ITR13              INDEX    CYR                                   
044577,000199:    6226           36305                           3        INDJUMP    -1                         
044578,000200: 

Page 999

044580,000202:                                                                                                  #           PUSH-UP ROUTINES. WHEN NO OPERAND ADDRESS IS GIVEN, THE APPROPRIATE OPERAND IS TAKEN FROM THE PUSH-DOWN
044581,000203:                                                                                                  #  LIST. IN MOST CASES THE MODE OF THE RESULT (VECTOR OR SCALAR) OF THE LAST ARITHMETIC OPERATION PERFORMED
044582,000204:                                                                                                  #  IS THE SAME AS THE TYPE OF OPERAND DESIRED (ALL ADD/SUBTRACT ETC.). EXCEPTIONS TO THIS GENERAL RULE ARE LISTED
044583,000205:                                                                                                  #  BELOW (NOTE THAT IN EVERY CASE THE MODE REGISTER IS LEFT INTACT):
044584,000206: 
044585,000207:                                                                                                  #           1.  VXSC AND V/SC WANT THE OPPOSITE TYPE OF OPERAND, E.G., IF THE LAST OPERATION YIELDED A VECTOR
044586,000208:                                                                                                  #  RESULT, VXSC WANTS A SCALAR.
044587,000209: 
044588,000210:                                                                                                  #           2.  THE LOAD CODES SHOULD LOAD THE ACCUMULATOR INDEPENDENT OF THE RESULT OF THE LAST OPERATION. THIS
044589,000211:                                                                                                  #  INCLUDES VLOAD, DLOAD, TLOAD, PDDL, AND PDVL (NO PUSHUP WITH SLOAD).
044590,000212: 
044591,000213:                                                                                                  #           3.  SOME ARITHMETIC OPERATIONS REQUIRE A STANDARD TYPE OF OPERAND REGARDLESS OF THE PREVIOUS OPERATION.
044592,000214:                                                                                                  #  THIS INCLUDES SIGN WANTING DP AND TAD REQUIRING TP.
044593,000215: 
044594,000216:    6227           34360        PUSHUP             CAF      OCT23                                 #  IF THE LOW 5 BITS OF CYR ARE LESS THAN
044595,000217:    6230           70020                           MASK     CYR                                   #  20, THIS OP REQUIRES SPECIAL ATTENTION.
044596,000218:    6231           66234                           AD       -OCT10                                #  (NO -0).
044597,000219:    6232           10000                           CCS      A                                     
044598,000220:    6233           16245                           TCF      REGUP                                 #  FOR ALL CODES GREATER THAN OCT 7.
044599,000221: 
044600,000222:    6234           77767        -OCT10             OCT      -10                                   
044601,000223: 
044602,000224:    6235           66124                           AD       NEG4                                  #  WE NOW HAVE 7 - OP CODE(MOD4). SEE IF
044603,000225:    6236           10000                           CCS      A                                     #  THE OP CODE (MOD4) IS THREE (REVERSE).
044604,000226:    6237           50000                           INDEX    A                                     #  NO - THE MODE IS DEFINITE. PICK UP THE
044605,000227:    6240           46256                           CS       NO.WDS                                
044606,000228:    6241           16247                           TCF      REGUP      +2                         
044607,000229: 
044608,000230:    6242           50163                           INDEX    MODE                                  #  FOR VXSC AND V/SC WE WANT THE REQUIRED
044609,000231:    6243           46254                           CS       REVCNT                                #  PUSHLOC DECREMENT WITHOUT CHANGING THE
044610,000232:    6244           16247                           TCF      REGUP      +2                         #  MODE AT THIS TIME.
044611,000233: 
044612,000234:    6245           50163        REGUP              INDEX    MODE                                  #  MOST ALL OP CODES PUSHUP HERE.
044613,000235:    6246           46256                           CS       NO.WDS                                
044614,000236:    6247           26166                 +2        ADS      PUSHLOC                               
044615,000237:    6250           54116                           TS       ADDRWD                                
044616,000238:    6251           50020        ITR14              INDEX    CYR                                   
044617,000239:    6252           76305                           7        INDJUMP    -1                         #  (THE INDEX MAKES THIS A TCF.)
044618,000240: 
044619,000241:    6253           00002                           OCT      2                                     #  REVERSE PUSHUP DECREMENT. VECTOR TAKES 2
044620,000242:    6254           00006        REVCNT             OCT      6                                     #  WORDS, SCALAR TAKES 6.
044621,000243:    6255           00006                           OCT      6                                     
044622,000244:    6256           00002        NO.WDS             OCT      2                                     #  CONVENTIONAL DECREMENT IS 6 WORDS VECTOR
044623,000245:    6257           00003        OCTAL3             OCT      3                                     #  2 IN DP, AND 3 IN TP.
044624,000246:    6260           00006                           OCT      6                                     
044625,000247: 

Page 1000

044627,000249:                                                                                                  #           TEST THE SECOND PREFIX BIT TO SEE IF THIS IS A MISCELLANEOUS OR A UNARY/SHORT SHIFT OPERATION.
044628,000250: 
044629,000251:    6261           10020        OPJUMP2            CCS      CYR                                   #  TEST SECOND PREFIX BIT.
044630,000252:    6262           16275                           TCF      OPJUMP3                               #  TEST THIRD BIT TO SEE IF UNARY OR SHIFT.
044631,000253: 
044632,000254:    6263           77722        -ENDVAC            DEC      -45        B-14                       
044633,000255: 
044634,000256:                                                                                                  #           THE FOLLOWING ROUTINE PROCESSES ADDRESSES OF SUFFIX CLASS 10. THEY ARE BASICALLY WORK AREA ADDRESSES
044635,000257:                                                                                                  #  IN THE RANGE 0 - 52, ERASABLE ECADR CONSTANTS FROM 100 - 3777, AND FCADRS ABOVE THAT. ALL 15 BITS ARE AVAILABLE
044636,000258:                                                                                                  #  IN CONTRAST TO SUFFIX 1, IN WHICH ONLY THE LOW ORDER 14 ARE AVAILABLE.
044637,000259: 
044638,000260:    6264           24164        15BITADR           INCR     LOC                                   #  (ENTRY HERE FROM STCALL).
044639,000261:    6265           50164                           INDEX    LOC                                   #  PICK UP ADDRESS WORD.
044640,000262:    6266           30000                           CA       0                                     
044641,000263:    6267           54117                           TS       POLISH                                #  WE MAY NEED A SUBADDRESS LATER.
044642,000264: 
044643,000265:    6270           35013                           CAF      LOW7+2K                               #  THESE INSTRUCTIONS ARE IN BANK 1.
044644,000266:    6271           54004                           TS       FBANK                                 
044645,000267:    6272           70020                           MASK     CYR                                   
044646,000268:    6273           50000        ITR7               INDEX    A                                     
044647,000269:    6274           16346                           TCF      MISCJUMP                              
044648,000270: 

Page 1001

044650,000272:                                                                                                  #           COMPLETE THE DISPATCHING OF UNARY AND SHORT SHIFT OPERATIONS.
044651,000273: 
044652,000274:    6275           54004        OPJUMP3            TS       FBANK                                 #  CALL IN BANK 0 (BITS 11-15 OF A ARE 0.)
044653,000275:                                                                                                  #           ITRACE (6) REFERS TO "OPJUMP3".
044654,000276:    6276           10020                           CCS      CYR                                   #  TEST THIRD PREFIX BIT.
044655,000277:    6277           50000                           INDEX    A                                     #  THE DECREMENTED UNARY CODE IS IN BITS
044656,000278:    6300           12000                           TCF      UNAJUMP                               #  1-4 OF A (ZERO, EXIT, HAS BEEN DETECTED)
044657,000279: 
044658,000280:    6301           10163                           CCS      MODE                                  #  ITS A SHORT SHIFT CODE. SEE IF PRESENT
044659,000281:    6302           12017                           TCF      SHORTT                                #  SCALAR OR VECTOR.
044660,000282:    6303           12017                           TCF      SHORTT                                
044661,000283:    6304           12121                           TCF      SHORTV                                #  CALLS THE APPROPRIATE ROUTINE.
044662,000284: 
044663,000285:    6305     4350               FBANKMSK           EQUALS   BANKMASK                              
044664,000286:    6305           00122        LVBUF              ADRES    VBUF                                  
044665,000287: 

Page 1002

044667,000289:                                                                                                  #           THE FOLLOWING IS THE JUMP TABLE FOR OP CODES WHICH MAY HAVE INDEXABLE ADDRESSES OR MAY PUSH UP.
044668,000290: 
044669,000291:    6306           16517        INDJUMP            TCF      VLOAD                                 #  00 - LOAD MPAC WITH A VECTOR.
044670,000292:    6307           17103                           TCF      TAD                                   #  01 - TRIPLE PRECISION ADD TO MPAC.
044671,000293:    6310           17667                           TCF      SIGN                                  #  02 - COMPLEMENT MPAC (V OR SC) IF X NEG.
044672,000294:    6311           17413                           TCF      VXSC                                  #  03 - VECTOR TIMES SCALAR.
044673,000295:    6312           16715                           TCF      CGOTO                                 #  04 - COMPUTED GO TO.
044674,000296:    6313           16502                           TCF      TLOAD                                 #  05 - LOAD MPAC WITH TRIPLE PRECISION.
044675,000297:    6314           16064                           TCF      DLOAD                                 #  06 - LOAD MPAC WITH A DP SCALAR.
044676,000298:    6315           17636                           TCF      V/SC                                  #  07 - VECTOR DIVIDED BY SCALAR.
044677,000299: 
044678,000300:    6316           16513                           TCF      SLOAD                                 #  10 - LOAD MPAC IN SINGLE PRECISION.
044679,000301:    6317           16632                           TCF      SSP                                   #  11 - SET SINGLE PRECISION INTO X.
044680,000302:    6320           16535                           TCF      PDDL                                  #  12 - PUSH DOWN MPAC AND RE-LOAD IN DP.
044681,000303:    6321           17346                           TCF      MXV                                   #  13 - MATRIX POST-MULTIPLIED BY VECTOR.
044682,000304:    6322           16571                           TCF      PDVL                                  #  14 - PUSH DOWN AND VECTOR LOAD.
044683,000305:    6323           16640                           TCF      CCALL                                 #  15 - COMPUTED CALL.
044684,000306:    6324           17351                           TCF      VXM                                   #  16 - MATRIX PRE-MULTIPLIED BY VECTOR.
044685,000307:    6325           17630                           TCF      TSLC                                  #  17 - NORMALIZE MPAC (SCALAR ONLY).
044686,000308: 
044687,000309:    6326           17606                           TCF      DMPR                                  #  20 - DP MULTIPLY AND ROUND.
044688,000310:    6327           17611                           TCF      DDV                                   #  21 - DP DIVIDE BY.
044689,000311:    6330           17615                           TCF      BDDV                                  #  22 - DP DIVIDE INTO.
044690,000312:    6331           17633                           TCF      GSHIFT                                #  23 - GENERAL SHIFT INSTRUCTION.
044691,000313:    6332           16763                           TCF      VAD                                   #  24 - VECTOR ADD.
044692,000314:    6333           16761                           TCF      VSU                                   #  25 - VECTOR SUBTRACT.
044693,000315:    6334           17050                           TCF      BVSU                                  #  26 - VECTOR SUBTRACT FROM.
044694,000316:    6335           17343                           TCF      DOT                                   #  27 - VECTOR DOT PRODUCT.
044695,000317: 
044696,000318:    6336           17472                           TCF      VXV                                   #  30 - VECTOR CROSS PRODUCT.
044697,000319:    6337           17437                           TCF      VPROJ                                 #  31 - VECTOR PROJECTION.
044698,000320:    6340           17017                           TCF      DSU                                   #  32 - DP SUBTRACT.
044699,000321:    6341           17074                           TCF      BDSU                                  #  33 - DP SUBTRACT FROM.
044700,000322:    6342           17007                           TCF      DAD                                   #  34 - DP ADD.
044701,000323:    6343           16343                           TCF      +0                                    #  35 - AVAILABLE
044702,000324:    6344           17604                           TCF      DMP1                                  #  36 - DP MULTIPLY.
044703,000325:    6345           17625                           TCF      SETPD                                 #  37 - SET PUSH DOWN POINTER (DIRECT ONLY)
044704,000326: 
044705,000327:                                                                                                  #  CODES 10 AND 14 MUST NOT PUSH UP. CODE 04 MAY BE USED FOR VECTOR DECLARE BEFORE PUSHUP IF DESIRED.
044706,000328: 

Page 1003

044708,000330:                                                                                                  #           THE FOLLOWING JUMP TABLE APPLIES TO INDEX, BRANCH, AND MISCELLANEOUS INSTRUCTIONS.
044709,000331: 
044710,000332:    6346           12350        MISCJUMP           TCF      AXT                                   #  00 - ADDRESS TO INDEX TRUE.
044711,000333:    6347           12355                           TCF      AXC                                   #  01 - ADDRESS TO INDEX COMPLEMENTED.
044712,000334:    6350           12360                           TCF      LXA                                   #  02 - LOAD INDEX FROM ERASABLE.
044713,000335:    6351           12364                           TCF      LXC                                   #  03 - LOAD INDEX FROM COMPLEMENT OF ERAS.
044714,000336:    6352           12370                           TCF      SXA                                   #  04 - STORE INDEX IN ERASABLE.
044715,000337:    6353           12376                           TCF      XCHX                                  #  05 - EXCHANGE INDEX WITH ERASABLE.
044716,000338:    6354           12412                           TCF      INCR                                  #  06 - INCREMENT INDEX REGISTER.
044717,000339:    6355           12421                           TCF      TIX                                   #  07 - TRANSFER ON INDEX.
044718,000340: 
044719,000341:    6356           12404                           TCF      XAD                                   #  10 - INDEX REGISTER ADD FROM ERASABLE.
044720,000342:    6357           12415                           TCF      XSU                                   #  11 - INDEX SUBTRACT FROM ERASABLE.
044721,000343:    6360           12473                           TCF      BZE/GOTO                              #  12 - BRANCH ZERO AND GOTO.
044722,000344:    6361           12500                           TCF      BPL/BMN                               #  13 - BRANCH PLUS AND BRANCH MINUS.
044723,000345:    6362           12453                           TCF      RTB/BHIZ                              #  14 - RETURN TO BASIC AND BRANCH HI ZERO.
044724,000346:    6363           12513                           TCF      CALL/ITA                              #  15 - CALL AND STORE QPRET.
044725,000347:    6364           12522                           TCF      SW/                                   #  16 - SWITCH INSTRUCTIONS AND AVAILABLE.
044726,000348:    6365           12463                           TCF      BOV(B)                                #  17 - BRANCH ON OVERFLOW TO BASIC OR INT.
044727,000349: 

Page 1004

044729,000351:                                                                                                  #           THE FOLLOWING JUMP TABLE APPIES TO UNARY INSTRUCTIONS.
044730,000352: 
044731,000353:    6366                                           COUNT*   $$/INTER                              
044732,000354: 00,2000                                           BANK     0                                     #  00 - EXIT - DETECTED EARLIER.
044733,000355: 00,2000           13207        UNAJUMP            TCF      SQRT                                  #  01 - SQUARE ROOT.
044734,000356: 00,2001           13530                           TCF      SINE                                  #  02 - SIN.
044735,000357: 00,2002           13517                           TCF      COSINE                                #  03 - COS.
044736,000358: 00,2003           13610                           TCF      ARCSIN                                #  04 - ARC SIN.
044737,000359: 00,2004           13612                           TCF      ARCCOS                                #  05 - ARC COS.
044738,000360: 00,2005           13174                           TCF      DSQ                                   #  06 - DP SQUARE.
044739,000361: 00,2006           12116                           TCF      ROUND                                 #  07 - ROUND TO DP.
044740,000362: 
044741,000363: 00,2007           17702                           TCF      COMP                                  #  10 - COMPLEMENT VECTOR OR SCALAR.
044742,000364: 00,2010           13232                           TCF      VDEF                                  #  11 - VECTOR DEFINE.
044743,000365: 00,2011           13023                           TCF      UNIT                                  #  12 - UNIT VECTOR.
044744,000366: 00,2012           13176                           TCF      ABVALABS                              #  13 - LENGTH OF VECTOR OR MAG OF SCALAR.
044745,000367: 00,2013           13245                           TCF      VSQ                                   #  14 - SQUARE OF LENGTH OF VECTOR.
044746,000368: 00,2014           16366                           TCF      STADR                                 #  15 - PUSH UP ON STORE CODE.
044747,000369: 00,2015           13274                           TCF      RVQ                                   #  16 - RETURN VIA QPRET.
044748,000370: 00,2016           13247                           TCF      PUSH                                  #  17 - PUSH MPAC DOWN.
044749,000371: 

Page 1005

044751,000373:                                                                                                  #  SECTION 2  LOAD AND STORE PACKAGE.
044752,000374: 
044753,000375:                                                                                                  #           A SET OF EIGHT STORE CODES IS PROVIDED AS THE PRIMARY METHOD OF STORING THE MULTI-PURPOSE
044754,000376:                                                                                                  #  ACCUMULATOR (MPAC). IF IN THE DANZIG SECTION LOC REFERS TO AN ALGEBRAICALLY POSITIVE WORD, IT IS TAKEN AS A 
044755,000377:                                                                                                  #  STORE CODE WITH A CORRESPONDING ERASABLE ADDRESS. MOST OF THESE CODES ARE TWO ADDRESS, SPECIFYING THAT THE WORD
044756,000378:                                                                                                  #  FOLLOWING THE STORE CODE IS TO BE USED AS AN ADDRESS FROM WHICH TO RE-LOAD MPAC. FOUR OPTIONS ARE AVAILABLE:
044757,000379: 
044758,000380:                                                                                                  #           1. STORE               STORE MPAC. THE E ADDRESS MAY BE INDEXED.
044759,000381:                                                                                                  #           2. STODL               STORE MPAC AND RE-LOAD IT IN DP WITH THE NEXT ADDRESS (THE LOAD MAY BE INDEXED).
044760,000382:                                                                                                  #           3. STOVL               STORE MPAC AND RE-LOAD A VECTOR (AS ABOVE).
044761,000383:                                                                                                  #           4. STCALL              STORE AND DO A CALL (BOTH ADDRESSES MUST BE DIRECT HERE).
044762,000384: 
044763,000385:                                                                                                  #           STODL AND STOVL WILL TAKE FROM THE PUSH-DOWN LIST IF NO LOAD ADDRESS IS GIVEN.
044764,000386: 
044765,000387:    6366                                           BLOCK    3                                     
044766,000388: 
044767,000389:    6366                                           COUNT*   $$/INTER                              
044768,000390:    6366           30165        STADR              CA       BANKSET                               #  THE STADR CODE (PUSHUP UP ON STORE
044769,000391:    6367           54004                           TS       FBANK                                 #  ADDRESS) ENTERS HERE.
044770,000392:    6370           24164                           INCR     LOC                                   
044771,000393:    6371           50164        ITR1               INDEX    LOC                                   #  THE STORECODE WAS STORED COMPLEMENTED TO
044772,000394:    6372           40000                           CS       0                                     #  MAKE IT LOOK LIKE AN OPCODE PAIR.
044773,000395:    6373           67761                           AD       NEGONE                                #  (YUL CANT REMOVE 1 BECAUSE OF EARLY CCS)
044774,000396: 
044775,000397:    6374           54116        DOSTORE            TS       ADDRWD                                
044776,000398:    6375           74356                           MASK     LOW11                                 #  ENTRY FROM DISPATCHER. SAVE THE ERASABLE
044777,000399:    6376           56116                           XCH      ADDRWD                                #  ADDRESS AND JUMP ON THE STORE CODE NO.
044778,000400:    6377           77734                           MASK     B12T14                                
044779,000401:    6400           00006                           EXTEND                                         
044780,000402:    6401           74747                           MP       BIT5                                  #  EACH TRANSFER VECTOR ENTRY IS TWO WORDS.
044781,000403:    6402           50000        ITR0               INDEX    A                                     
044782,000404:    6403           16404                           TCF      STORJUMP                              
044783,000405: 

Page 1006

044785,000407:                                                                                                  #           STORE CODE JUMP TABLE. CALLS THE APPROPRIATE STORING ROUTINE AND EXITS TO DANZIG OR TO ADDRESS WITH
044786,000408:                                                                                                  #  A SUPPLIED OPERATION CODE.
044787,000409: 
044788,000410:                                                                                                  #           STORE STORE,1 AND STORE,2 RETURN TO DANZIG, THUS RESETTING THE EBANK TO ITS STATE AT INTPRET.
044789,000411: 
044790,000412:    6404           06434        STORJUMP           TC       STORE                                 #  STORE.
044791,000413:    6405           16073                           TCF      DANZIG                                #  PICK UP NEW OP CODE(S).
044792,000414:    6406           06426                           TC       STORE,1                               
044793,000415:    6407           16073                           TCF      DANZIG                                
044794,000416:    6410           06431                           TC       STORE,2                               
044795,000417:    6411           16073                           TCF      DANZIG                                
044796,000418: 
044797,000419:    6412           06434                           TC       STORE                                 #  STODL.
044798,000420:    6413           16472                           TCF      DODLOAD                               
044799,000421: 
044800,000422:    6414           06434                           TC       STORE                                 #  STODL WITH INDEXED LOAD ADDRESS.
044801,000423:    6415           16156                           TCF      DODLOAD*                              
044802,000424: 
044803,000425:    6416           06434                           TC       STORE                                 #  STOVL.
044804,000426:    6417           16475                           TCF      DOVLOAD                               
044805,000427: 
044806,000428:    6420           06434                           TC       STORE                                 #  STOVL WITH INDEXED LOAD ADDRESS.
044807,000429:    6421           16500                           TCF      DOVLOAD*                              
044808,000430:    6422           06434                           TC       STORE                                 #  STOTC.
044809,000431:    6423           34766                           CAF      CALLCODE                              
044810,000432:    6424           54020                           TS       CYR                                   
044811,000433:    6425           16264                           TCF      15BITADR                              #  GET A 15 BIT ADDRESS.
044812,000434: 

Page 1007

044814,000436:                                                                                                  #           STORE CODE ADDRESS PROCESSOR.
044815,000437: 
044816,000438:    6426           50120        STORE,1            INDEX    FIXLOC                                
044817,000439:    6427           40046                           CS       X1                                    
044818,000440:    6430           16433                           TCF      PRESTORE                              
044819,000441: 
044820,000442:    6431           50120        STORE,2            INDEX    FIXLOC                                
044821,000443:    6432           40047                           CS       X2                                    
044822,000444:    6433           26116        PRESTORE           ADS      ADDRWD                                #  RESULTANT ADDRESS IS IN ERASABLE.
044823,000445: 
044824,000446:    6434           40116        STORE              CS       ADDRWD                                
044825,000447:    6435           64772                           AD       DEC45                                 
044826,000448:    6436           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
044827,000449:    6437           30120                           CA       FIXLOC                                #  YES.
044828,000450:    6440           16445                           TCF      AHEAD5                                
044829,000451:    6441           35007                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
044830,000452:    6442           56116                           XCH      ADDRWD                                
044831,000453:    6443           54003                           TS       EBANK                                 
044832,000454:    6444           74357                           MASK     LOW8                                  
044833,000455:    6445           26116        AHEAD5             ADS      ADDRWD                                
044834,000456: 

Page 1008

044836,000458:                                                                                                  #           STORING ROUTINES. STORE DP, TP, OR VECTOR AS INDICATED BY MODE.
044837,000459: 
044838,000460:    6446           00006        STARTSTO           EXTEND                                         #  MPAC,+1 MUST BE STORED IN ANY EVENT.
044839,000461:                                                                                                  #           ITRACE (5) REFERS TO "STARTSTO".
044840,000462:    6447           30155                           DCA      MPAC                                  
044841,000463:    6450           50116                           INDEX    ADDRWD                                
044842,000464:    6451           52001                           DXCH     0                                     
044843,000465: 
044844,000466:    6452           10163                           CCS      MODE                                  
044845,000467:    6453           16466                           TCF      TSTORE                                
044846,000468:    6454           00002                           TC       Q                                     
044847,000469: 
044848,000470:    6455           00006        VSTORE             EXTEND                                         
044849,000471:    6456           30160                           DCA      MPAC       +3                         
044850,000472:    6457           50116                           INDEX    ADDRWD                                
044851,000473:    6460           52003                           DXCH     2                                     
044852,000474: 
044853,000475:    6461           00006                           EXTEND                                         
044854,000476:    6462           30162                           DCA      MPAC       +5                         
044855,000477:    6463           50116                           INDEX    ADDRWD                                
044856,000478:    6464           52005                           DXCH     4                                     
044857,000479:    6465           00002                           TC       Q                                     
044858,000480: 
044859,000481:    6466           30156        TSTORE             CA       MPAC       +2                         
044860,000482:    6467           50116                           INDEX    ADDRWD                                
044861,000483:    6470           54002                           TS       2                                     
044862,000484:    6471           00002                           TC       Q                                     
044863,000485: 

Page 1009

044865,000487:                                                                                                  #           ROUTINES TO BEGIN PROCESSING OF THE SECOND ADDRESS ASSOCIATED WITH ALL STORE-TYPE CODES EXCEPT STORE
044866,000488:                                                                                                  #  ITSELF.
044867,000489: 
044868,000490:    6472           37744        DODLOAD            CAF      DLOADCOD                              
044869,000491:    6473           54020                           TS       CYR                                   
044870,000492:    6474           16120                           TCF      DIRADRES                              #  GO GET A DIRECT ADDRESS.
044871,000493: 
044872,000494:    6475           34735        DOVLOAD            CAF      VLOADCOD                              
044873,000495:    6476           54020                           TS       CYR                                   
044874,000496:    6477           16120                           TCF      DIRADRES                              
044875,000497: 
044876,000498:    6500           36121        DOVLOAD*           CAF      VLOAD*                                
044877,000499:    6501           16157                           TCF      DODLOAD*   +1                         #  PROLOGUE TO INDEX ROUTINE.
044878,000500: 

Page 1010

044880,000502:                                                                                                  #           THE FOLLOWING LOAD INSTRUCTIONS ARE PROVIDED FOR LOADING THE MULTI-PURPOSE ACCUMULATOR MPAC.
044881,000503: 
044882,000504:    6502           50116        TLOAD              INDEX    ADDRWD                                
044883,000505:    6503           30002                           CA       2                                     #  LOAD A TRIPLE PRECISION ARGUMENT INTO
044884,000506:    6504           54156                           TS       MPAC       +2                         #  THE FIRST THREE MPAC REGISTERS, WITH THE
044885,000507:    6505           00006                           EXTEND                                         #  CONTENTS OF THE OTHER FOUR IRRELEVANT.
044886,000508:    6506           50116                           INDEX    ADDRWD                                
044887,000509:    6507           30001                           DCA      0                                     
044888,000510:    6510           52155                           DXCH     MPAC                                  
044889,000511:    6511           34753        TMODE              CAF      ONE                                   
044890,000512:    6512           16072                           TCF      NEWMODE                               #  DECLARE TRIPLE PRECISION MODE.
044891,000513: 
044892,000514:    6513           22007        SLOAD              ZL                                             #  LOAD A SINGLE PRECISION NUMBER INTO
044893,000515:    6514           50116                           INDEX    ADDRWD                                #  MPAC, SETTING MPAC+1,2 TO ZERO. THE
044894,000516:    6515           30000                           CA       0                                     #  CONTENTS OF THE REMAINING MPAC REGISTERS
044895,000517:    6516           16067                           TCF      SLOAD2                                #  ARE IRRELEVANT.
044896,000518: 
044897,000519:    6517           00006        VLOAD              EXTEND                                         #  LOAD A DOUBLE PRECISION VECTOR INTO
044898,000520:    6520           50116                           INDEX    ADDRWD                                #  MPAC,+1, MPAC+3,4, AND MPAC+5,6. THE
044899,000521:    6521           30001                           DCA      0                                     #  CONTENTS OF MPAC +2 ARE IRRELEVANT.
044900,000522:    6522           52155                           DXCH     MPAC                                  
044901,000523: 
044902,000524:    6523           00006        ENDVLOAD           EXTEND                                         #  PDVL COMES HERE TO FINISH UP FOR DP, TP.
044903,000525:    6524           50116                           INDEX    ADDRWD                                
044904,000526:    6525           30003                           DCA      2                                     
044905,000527:    6526           52160                           DXCH     MPAC       +3                         
044906,000528: 
044907,000529:    6527           00006                 +4        EXTEND                                         #  TPDVL FINISHES HERE.
044908,000530:    6530           50116                           INDEX    ADDRWD                                
044909,000531:    6531           30005                           DCA      4                                     
044910,000532:    6532           52162                           DXCH     MPAC       +5                         
044911,000533: 
044912,000534:    6533           44753        VMODE              CS       ONE                                   #  DECLARE VECTOR MODE.
044913,000535:    6534           16072                           TCF      NEWMODE                               
044914,000536: 

Page 1011

044916,000538:                                                                                                  #           THE FOLLOWING INSTRUCTIONS ARE PROVIDED FOR STORING OPERANDS IN THE PUSHDOWN LIST:
044917,000539: 
044918,000540:                                                                                                  #           1.  PUSH               PUSHDOWN AND NO LOAD.
044919,000541:                                                                                                  #           2.  PDDL               PUSHDOWN AND DOUBLE PRECISION LOAD.
044920,000542:                                                                                                  #           3.  PDVL               PUSHDOWN AND VECTOR LOAD.
044921,000543: 
044922,000544:    6535           00006        PDDL               EXTEND                                         
044923,000545:    6536           50116                           INDEX    ADDRWD                                #  LOAD MPAC,+1, PUSHING THE FORMER
044924,000546:    6537           30001                           DCA      0                                     #  CONTENTS DOWN.
044925,000547:    6540           52155                           DXCH     MPAC                                  
044926,000548:    6541           50166                           INDEX    PUSHLOC                               
044927,000549:    6542           52001                           DXCH     0                                     
044928,000550: 
044929,000551:    6543           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER APPRO-
044930,000552:    6544           36256                           CAF      NO.WDS                                #  PRIATELY.
044931,000553:    6545           26166                           ADS      PUSHLOC                               
044932,000554: 
044933,000555:    6546           10163                           CCS      MODE                                  
044934,000556:    6547           16564                           TCF      ENDTPUSH                              
044935,000557:    6550           16562                           TCF      ENDDPUSH                              
044936,000558: 
044937,000559:    6551           54163                           TS       MODE                                  #  NOW DP.
044938,000560:    6552           54156        ENDVPUSH           TS       MPAC       +2                         
044939,000561:    6553           52160                           DXCH     MPAC       +3                         #  PUSH DOWN THE REST OF THE VECTOR HERE.
044940,000562:    6554           50166                           INDEX    PUSHLOC                               
044941,000563:    6555           51775                           DXCH     0          -4                         
044942,000564: 
044943,000565:    6556           52162                           DXCH     MPAC       +5                         
044944,000566:    6557           50166                           INDEX    PUSHLOC                               
044945,000567:    6560           51777                           DXCH     0          -2                         
044946,000568: 
044947,000569:    6561           16073                           TCF      DANZIG                                
044948,000570: 
044949,000571:    6562           54156        ENDDPUSH           TS       MPAC       +2                         #  SET MPAC +2 TO ZERO AND EXIT ON DP.
044950,000572:    6563           16073                           TCF      DANZIG                                
044951,000573: 
044952,000574:    6564           54163        ENDTPUSH           TS       MODE                                  
044953,000575:    6565           56156                           XCH      MPAC       +2                         #  ON TRIPLE, SET MPAC +2 TO ZERO, PUSHING
044954,000576:    6566           50166                 +2        INDEX    PUSHLOC                               #  DOWN THE OLD CONTENTS
044955,000577:    6567           53777                           TS       0          -1                         
044956,000578:    6570           16073                           TCF      DANZIG                                
044957,000579: 

Page 1012

044959,000581:                                                                                                  #           PDVL - PUSHDOWN AND VECTOR LOAD.
044960,000582: 
044961,000583:    6571           00006        PDVL               EXTEND                                         #  RELOAD MPAC AND PUSH DOWN ITS CONTENTS.
044962,000584:    6572           50116                           INDEX    ADDRWD                                
044963,000585:    6573           30001                           DCA      0                                     
044964,000586:    6574           52155                           DXCH     MPAC                                  
044965,000587:    6575           50166                           INDEX    PUSHLOC                               
044966,000588:    6576           52001                           DXCH     0                                     
044967,000589: 
044968,000590:    6577           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER.
044969,000591:    6600           36256                           CAF      NO.WDS                                
044970,000592:    6601           26166                           ADS      PUSHLOC                               
044971,000593: 
044972,000594:    6602           10163                           CCS      MODE                                  #  TEST PAST MODE.
044973,000595:    6603           16622                           TCF      TPDVL                                 
044974,000596:    6604           16523                           TCF      ENDVLOAD                              #  JUST LOAD LAST FOUR REGISTERS ON DP.
044975,000597: 
044976,000598:    6605           00006        VPDVL              EXTEND                                         #  PUSHDOWN AND RE-LOAD LAST TWO COMPONENTS
044977,000599:    6606           50116                           INDEX    ADDRWD                                
044978,000600:    6607           30003                           DCA      2                                     
044979,000601:    6610           52160                           DXCH     MPAC       +3                         
044980,000602:    6611           50166                           INDEX    PUSHLOC                               
044981,000603:    6612           51775                           DXCH     0          -4                         
044982,000604: 
044983,000605:    6613           00006                           EXTEND                                         
044984,000606:    6614           50116                           INDEX    ADDRWD                                
044985,000607:    6615           30005                           DCA      4                                     
044986,000608:    6616           52162                           DXCH     MPAC       +5                         
044987,000609:    6617           50166                           INDEX    PUSHLOC                               
044988,000610:    6620           51777                           DXCH     0          -2                         
044989,000611: 
044990,000612:    6621           16073                           TCF      DANZIG                                
044991,000613: 
044992,000614:    6622           00006        TPDVL              EXTEND                                         #  ON TP, WE MUST LOAD THE Y COMPONENT
044993,000615:    6623           50116                           INDEX    ADDRWD                                #  BEFORE STORING MPAC +2 INCASE THIS IS A
044994,000616:    6624           30003                           DCA      2                                     #  PUSHUP.
044995,000617:    6625           52160                           DXCH     MPAC       +3                         
044996,000618: 
044997,000619:    6626           30156                           CA       MPAC       +2                         
044998,000620:    6627           50166                           INDEX    PUSHLOC                               #  IN DP.
044999,000621:    6630           53777                           TS       0          -1                         
045000,000622:    6631           16527                           TCF      ENDVLOAD   +4                         
045001,000623: 
045002,000624:                                                                                                  #           SSP (STORE SINGLE PRECISION) IS EXECUTED HERE.
045003,000625: 
045004,000626:    6632           24164        SSP                INCR     LOC                                   #  PICK UP THE WORD FOLLOWING THE GIVEN
045005,000627:    6633           50164                           INDEX    LOC                                   #  ADDRESS AND STORE IT AT X.
045006,000628:    6634           30000                           CA       0                                     
045007,000629:    6635           50116        STORE1             INDEX    ADDRWD                                #  SOME INDEX AND MISCELLANEOUS OPS END
045008,000630:    6636           54000                           TS       0                                     #  HERE.

Page 1013

045010,000632:    6637           16073                           TCF      DANZIG                                
045011,000633: 

Page 1014

045013,000635:                                                                                                  #  SEQUENCE CHANGING AND SUBROUTINE CALLING OPTIONS.
045014,000636: 
045015,000637:                                                                                                  #           THE FOLLOWING OPERATIONS ARE AVAILABLE FOR SEQUENCING CHANGING, BRANCHING, AND CALLING SUBROUTINES:
045016,000638: 
045017,000639:                                                                                                  #           1.  GOTO               GO TO.
045018,000640:                                                                                                  #           2.  CALL               CALL SUBROUTINE SETTING QPRET.
045019,000641:                                                                                                  #           3.  CGOTO              COMPUTED GO TO.
045020,000642:                                                                                                  #           4.  CCALL              COMPUTED CALL.
045021,000643:                                                                                                  #           7.  BPL                BRANCH IF MPAC POSITIVE OR ZERO.
045022,000644:                                                                                                  #           8.  BZE                BRANCH IF MPAC ZERO.
045023,000645:                                                                                                  #           9.  BMN                BRANCH IF MPAC NEGATIVE NON-ZERO.
045024,000646: 
045025,000647:    6640           24164        CCALL              INCR     LOC                                   #  MAINTAIN LOC FOR QPRET COMPUTATION.
045026,000648:    6641           50164                           INDEX    LOC                                   
045027,000649:    6642           30000                           CAF      0                                     #  GET BASE ADDRESS OF CADR LIST.
045028,000650:    6643           50116                           INDEX    ADDRWD                                
045029,000651:    6644           60000                           AD       0                                     #  ADD INCREMENT.
045030,000652:    6645           54004                           TS       FBANK                                 #  SELECT DESIRED CADR.
045031,000653:    6646           75012                           MASK     LOW10                                 
045032,000654:    6647           50000                           INDEX    A                                     
045033,000655:    6650           32000                           CAF      10000                                 
045034,000656:    6651           54117                           TS       POLISH                                
045035,000657: 
045036,000658:    6652           30165        CALL               CA       BANKSET                               #  FOR ANY OF THE CALL OPTIONS, MAKE UP THE
045037,000659:    6653           74350                           MASK     BANKMASK                              #  ADDRESS OF THE NEXT OP-CODE PAIR/STORE
045038,000660:    6654           64350                           AD       BANKMASK                              #  CODE AND LEAVE IT IN QPRET.  NOTE THAT
045039,000661:    6655           60164                           AD       LOC                                   #  BANKMASK = -(2000 - 1).
045040,000662:    6656           50120                           INDEX    FIXLOC                                
045041,000663:    6657           54052                           TS       QPRET                                 
045042,000664: 
045043,000665:    6660           30117        GOTO               CA       POLISH                                #  BASIC BRANCHING SEQUENCE.
045044,000666:    6661           77754                 +1        MASK     HIGH4                                 
045045,000667:    6662           00006                           EXTEND                                         
045046,000668:    6663           16674                           BZF      GOTOERS                               #  SEE IF ADDRESS POINTS TO FIXED OR ERAS.
045047,000669:    6664           30165                 +4        CA       BANKSET                               #  SET EBANK PART OF BBANK. NEXT, SET UP
045048,000670:    6665           54006                           TS       BBANK                                 #  FBANK. THE COMBINATION IS PICKED UP &
045049,000671:    6666           30117                           CA       POLISH                                #  PUT INTO BANKSET AT INTPRET +2.
045050,000672:    6667           54004                           TS       FBANK                                 
045051,000673:    6670           75012                           MASK     LOW10                                 
045052,000674:    6671           64741                           AD       2K                                    
045053,000675:    6672           54164                           TS       LOC                                   
045054,000676:    6673           16054                           TCF      INTPRET    +3                         
045055,000677: 
045056,000678:    6674  E3,1400                                  EBANK=   1400                                  #  SO YUL DOESN'T CUSS THE "CA 1400" BELOW.
045057,000679: 
045058,000680:    6674           30117        GOTOERS            CA       POLISH                                #  THE GIVEN ADDRESS IS IN ERASABLE - SEE
045059,000681:    6675           66263                           AD       -ENDVAC                               #  IF RELATIVE TO THE WORK AREA.
045060,000682:    6676           10000                           CCS      A                                     
045061,000683:    6677           30117                           CA       POLISH                                #  GENERAL ERASABLE.
045062,000684:    6700           16707                           TCF      GOTOGE                                
045063,000685: 

Page 1015

045065,000687:    6701           30120                           CA       FIXLOC                                #  WORK AREA.
045066,000688:    6702           60117                           AD       POLISH                                
045067,000689:    6703           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
045068,000690:    6704           30000                           CA       0                                     #  THE BRANCH ADDRESS.
045069,000691:    6705           54117                           TS       POLISH                                
045070,000692:    6706           16661                           TCF      GOTO       +1                         #  ALLOWS ARBITRARY INDIRECTNESS LEVELS.
045071,000693: 
045072,000694:    6707           54003        GOTOGE             TS       EBANK                                 
045073,000695:    6710           74357                           MASK     LOW8                                  
045074,000696:    6711           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
045075,000697:    6712           31400                           CA       1400                                  #  THE BRANCH ADDRESS.
045076,000698:    6713           54117                           TS       POLISH                                
045077,000699:    6714           16661                           TCF      GOTO       +1                         
045078,000700: 
045079,000701:    6715           50164        CGOTO              INDEX    LOC                                   #  COMPUTED GO TO. PICK UP ADDRESS OF CADR
045080,000702:    6716           30001                           CA       1                                     #  LIST.
045081,000703:    6717           50116                           INDEX    ADDRWD                                #  ADD MODIFIER.
045082,000704:    6720           60000                           AD       0                                     
045083,000705:    6721           54004                           TS       FBANK                                 #  SELECT GOTO ADDRESS.
045084,000706:    6722           75012                           MASK     LOW10                                 
045085,000707:    6723           50000                           INDEX    A                                     
045086,000708:    6724           32000                           CA       10000                                 
045087,000709:    6725           54117                           TS       POLISH                                
045088,000710:    6726           16661                           TCF      GOTO       +1                         #  WITH ADDRESS IN A.
045089,000711: 
045090,000712:    6727           30165        SWBRANCH           CA       BANKSET                               #  SWITCH INSTRUCTIONS WHICH ELECT TO
045091,000713:    6730           54004                           TS       FBANK                                 #  BRANCH COME HERE TO DO SO.
045092,000714:    6731           50164                           INDEX    LOC                                   
045093,000715:    6732           30001                           CA       1                                     
045094,000716:    6733           54117                           TS       POLISH                                
045095,000717:    6734           16661                           TCF      GOTO       +1                         
045096,000718: 

Page 1016

045098,000720:                                                                                                  #           TRIPLE PRECISION BRANCHING ROUTINE. IF CALLING TC IS AT L, RETURN IS AS FOLLOWS:
045099,000721: 
045100,000722:                                                                                                  #           L+1  IF MPAC IS GREATER THAN ZERO.
045101,000723:                                                                                                  #           L+2  IF MPAC IS EQUAL TO +0 OR -0.
045102,000724:                                                                                                  #           L+3  IF MPAC IS LESS THAN ZERO.
045103,000725: 
045104,000726:    6735           10154        BRANCH             CCS      MPAC                                  
045105,000727:    6736           00002                           TC       Q                                     
045106,000728:    6737           16741                           TCF      +2                                    #  ON ZERO.
045107,000729:    6740           16753                           TCF      NEG                                   
045108,000730: 
045109,000731:    6741           10155                           CCS      MPAC       +1                         
045110,000732:    6742           00002                           TC       Q                                     
045111,000733:    6743           16745                           TCF      +2                                    
045112,000734:    6744           16753                           TCF      NEG                                   
045113,000735: 
045114,000736:    6745           10156                           CCS      MPAC       +2                         
045115,000737:    6746           00002                           TC       Q                                     
045116,000738:    6747           16751                           TCF      +2                                    
045117,000739:    6750           16753                           TCF      NEG                                   
045118,000740: 
045119,000741:    6751           50002        Q+1                INDEX    Q                                     
045120,000742:    6752           00001                           TC       1                                     
045121,000743: 
045122,000744:    6753           50002        NEG                INDEX    Q                                     #  IF FIRST NON-ZERO REGISTER WAS NEGATIVE.
045123,000745:    6754           00002                           TC       2                                     
045124,000746: 
045125,000747: 
045126,000748:    6755     6753               Q+2                =        NEG                                   
045127,000749: 
045128,000750:                                                                                                  #           ITRACE (3) REFERS TO "EXIT".
045129,000751:    6755           30165        EXIT               CA       BANKSET                               #  RESTORE USER'S BANK SETTING, AND LEAVE
045130,000752:    6756           54006                           TS       BBANK                                 #  INTERPRETIVE MODE.
045131,000753:    6757           50164                           INDEX    LOC                                   
045132,000754:    6760           00001                           TC       1                                     
045133,000755: 

Page 1017

045135,000757:                                                                                                  #  SECTION 3 - ADD/SUBTRACT PACKAGE.
045136,000758: 
045137,000759:                                                                                                  #           THE FOLLOWING OPERATIONS ARE PROVIDED FOR ADDING TO AND SUBTRACTING FROM THE MULTI-PURPOSE ACCUMULATOR
045138,000760:                                                                                                  #  MPAC:
045139,000761: 
045140,000762:                                                                                                  #           1.  DAD                DOUBLE PRECISION ADD.
045141,000763:                                                                                                  #           2.  DSU                DOUBLE PRECISION SUBTRACT.
045142,000764:                                                                                                  #           3.  BDSU               DOUBLE PRECISION SUBTRACT FROM.
045143,000765: 
045144,000766:                                                                                                  #           4.  TAD                TRIPLE PRECISION ADD.
045145,000767: 
045146,000768:                                                                                                  #           5.  VAD                VECTOR ADD.
045147,000769:                                                                                                  #           6.  VSU                VECTOR SUBTRACT.
045148,000770:                                                                                                  #           7.  BVSU               VECTOR SUBTRACT FROM.
045149,000771: 
045150,000772:                                                                                                  #  THE INTERPRETIVE OVERFLOW INDICATOR OVFIND IS SET NON-ZERO IF OVERFLOW OCCURS IN ANY OF THE ABOVE.
045151,000773: 
045152,000774:    6761           34735        VSU                CAF      BIT15                                 #  CHANGES 0 TO DCS.
045153,000775:    6762           16764                           TCF      +2                                    
045154,000776: 
045155,000777:    6763           34355        VAD                CAF      PRIO30                                #  CHANGES 0 TO DCA.
045156,000778:    6764           26116                           ADS      ADDRWD                                
045157,000779:    6765           00006                           EXTEND                                         
045158,000780:    6766           50116                           INDEX    ADDRWD                                
045159,000781:    6767           00003                           READ     HISCALAR                              #  DCA  2   OR   DCS  2
045160,000782:    6770           20160                           DAS      MPAC       +3                         
045161,000783:    6771           00006                           EXTEND                                         #  CHECK OVERFLOW.
045162,000784:    6772           16774                           BZF      +2                                    
045163,000785:    6773           07026                           TC       OVERFLWY                              
045164,000786: 
045165,000787:    6774           00006                           EXTEND                                         
045166,000788:    6775           50116                           INDEX    ADDRWD                                
045167,000789:    6776           00005                           READ     CHAN5                                 #  DCA  4  OR  DCS  4
045168,000790:    6777           20162                           DAS      MPAC       +5                         
045169,000791:    7000           00006                           EXTEND                                         
045170,000792:    7001           17003                           BZF      +2                                    
045171,000793:    7002           07023                           TC       OVERFLWZ                              
045172,000794: 
045173,000795:    7003           00006                           EXTEND                                         
045174,000796:    7004           50116                           INDEX    ADDRWD                                
045175,000797:    7005           00001                           READ     LCHAN                                 #  DCA  0  OR  DCS  0
045176,000798:    7006           17012                           TCF      ENDVXV                                
045177,000799: 
045178,000800:    7007           00006        DAD                EXTEND                                         
045179,000801:    7010           50116                           INDEX    ADDRWD                                
045180,000802:    7011           30001                           DCA      0                                     
045181,000803:    7012           20155        ENDVXV             DAS      MPAC                                  #  VXV FINISHES HERE.
045182,000804:    7013           00006                           EXTEND                                         
045183,000805:    7014           16073                           BZF      DANZIG                                
045184,000806: 

Page 1018

045186,000808:    7015           07031        SETOVF             TC       OVERFLOW                              
045187,000809:    7016           16073                           TCF      DANZIG                                
045188,000810: 

Page 1019

045190,000812:    7017           00006        DSU                EXTEND                                         
045191,000813:    7020           50116                           INDEX    ADDRWD                                
045192,000814:    7021           40001                           DCS      0                                     
045193,000815:    7022           17012                           TCF      ENDVXV                                
045194,000816: 
045195,000817:    7023           54001        OVERFLWZ           TS       L                                     #  ENTRY FOR THIRD COMPONENT.
045196,000818:    7024           34756                           CAF      FIVE                                  
045197,000819:    7025           17030                           TCF      +3                                    
045198,000820: 
045199,000821:    7026           54001        OVERFLWY           TS       L                                     #  ENTRY FOR SECOND COMPONENT.
045200,000822:    7027           36257                           CAF      THREE                                 
045201,000823:    7030           56001                           XCH      L                                     
045202,000824: 
045203,000825:    7031           50000        OVERFLOW           INDEX    A                                     #  ENTRY FOR 1ST COMP OR DP (L=0).
045204,000826:    7032           44734                           CS       LIMITS                                #  PICK UP POSMAX OR NEGMAX.
045205,000827:    7033           54130                           TS       BUF                                   
045206,000828:    7034           00006                           EXTEND                                         
045207,000829:    7035           24000                           AUG      A                                     #  FORCE OVERFLOW.
045208,000830:    7036           50001                           INDEX    L                                     
045209,000831:    7037           26155                           ADS      MPAC       +1                         
045210,000832:    7040           54007                           TS       7                                     
045211,000833:    7041           34755                           CAF      ZERO                                  
045212,000834:    7042           60130                           AD       BUF                                   
045213,000835:    7043           50001                           INDEX    L                                     
045214,000836:    7044           26154                           ADS      MPAC                                  
045215,000837:    7045           54007                           TS       7                                     
045216,000838:    7046           00002                           TC       Q                                     #  NO OVERFLOW EXIT.
045217,000839:    7047           17164                           TCF      SETOVF2                               #  SET OVFIND AND EXIT.
045218,000840: 
045219,000841:    7050           00006        BVSU               EXTEND                                         
045220,000842:    7051           50116                           INDEX    ADDRWD                                
045221,000843:    7052           30003                           DCA      2                                     
045222,000844:    7053           52160                           DXCH     MPAC       +3                         
045223,000845:    7054           00006                           EXTEND                                         
045224,000846:    7055           40001                           DCOM                                           
045225,000847:    7056           20160                           DAS      MPAC       +3                         
045226,000848:    7057           00006                           EXTEND                                         
045227,000849:    7060           17062                           BZF      +2                                    
045228,000850:    7061           07026                           TC       OVERFLWY                              
045229,000851: 
045230,000852:    7062           00006                           EXTEND                                         
045231,000853:    7063           50116                           INDEX    ADDRWD                                
045232,000854:    7064           30005                           DCA      4                                     
045233,000855:    7065           52162                           DXCH     MPAC       +5                         
045234,000856:    7066           00006                           EXTEND                                         
045235,000857:    7067           40001                           DCOM                                           
045236,000858:    7070           20162                           DAS      MPAC       +5                         
045237,000859:    7071           00006                           EXTEND                                         
045238,000860:    7072           17074                           BZF      +2                                    
045239,000861:    7073           07023                           TC       OVERFLWZ                              
045240,000862: 

Page 1020

045242,000864:    7074           00006        BDSU               EXTEND                                         
045243,000865:    7075           50116                           INDEX    ADDRWD                                
045244,000866:    7076           30001                           DCA      0                                     
045245,000867:    7077           52155                           DXCH     MPAC                                  
045246,000868:    7100           00006                           EXTEND                                         
045247,000869:    7101           40001                           DCOM                                           
045248,000870:    7102           17012                           TCF      ENDVXV                                
045249,000871: 

Page 1021

045251,000873:                                                                                                  #           TRIPLE PRECISION ADD ROUTINE.
045252,000874: 
045253,000875:    7103           00006        TAD                EXTEND                                         
045254,000876:    7104           50116                           INDEX    ADDRWD                                
045255,000877:    7105           30002                           DCA      1                                     #  ADD MINOR PARTS FIRST.
045256,000878:    7106           20156                           DAS      MPAC       +1                         
045257,000879:    7107           50116                           INDEX    ADDRWD                                
045258,000880:    7110           60000                           AD       0                                     
045259,000881:    7111           60154                           AD       MPAC                                  
045260,000882:    7112           54154                           TS       MPAC                                  
045261,000883:    7113           16073                           TCF      DANZIG                                
045262,000884: 
045263,000885:    7114           17015                           TCF      SETOVF                                #  SET OVFIND IF SUCH OCCURS.
045264,000886: 

Page 1022

045266,000888:                                                                                                  #  ARITHMETIC SUBROUTINES REQUIRED IN FIXED-FIXED.
045267,000889: 
045268,000890:                                                                                                  #           1.  DMPSUB     DOUBLE PRECISION MULTIPLY. MULTIPLY THE CONTENTS OF MPAC,+1 BY THE DP WORD WHOSE ADDRESS
045269,000891:                                                                                                  #                          IS IN ADDRWD AND LEAVE A TRIPLE PRECISION RESULT IN MPAC.
045270,000892:                                                                                                  #           2.  ROUNDSUB   ROUND THE TRIPLE PRECISON CONTENTS OF MPAC TO DOUBLE PRECISION.
045271,000893:                                                                                                  #           3.  DOTSUB     TAKE THE DOT PRODUCT OF THE VECTOR IN MPAC AND THE VECTOR WHOSE ADDRESS IS IN ADDRWD
045272,000894:                                                                                                  #                          AND LEAVE THE TRIPLE PRECISION RESULT IN MPAC.
045273,000895:                                                                                                  #           4.  POLY       USING THE CONTENTS OF MPAC AS A DP ARGUMENT, EVALUATE THE POLYNOMIAL WHOSE DEGREE AND
045274,000896:                                                                                                  #                          COEFFICIENTS IMMEDIATELY FOLLOW THE TC POLY INSTRUCTION (SEE ROUTINE FOR DETAILS.)
045275,000897: 
045276,000898: 
045277,000899:    7115           50002        DMP                INDEX    Q                                     #  BASIC SUBROUTINE FOR USE BY PINBALL, ETC
045278,000900:    7116           30000                           CAF      0                                     #  ADRES OF ARGUMENT FOLLOWS  TC DMP  .
045279,000901:    7117           24002                           INCR     Q                                     
045280,000902:    7120           54116                 -1        TS       ADDRWD                                #  (PROLOGUE FOR SETTING ADDRWD.)
045281,000903: 
045282,000904:    7121           50116        DMPSUB             INDEX    ADDRWD                                #  GET MINOR PART OF OPERAND AT C(ADDRWD).
045283,000905:    7122           30001                           CA       1                                     
045284,000906:    7123           54156                           TS       MPAC       +2                         #  THIS WORKS FOR SQUARING MPAC AS WELL.
045285,000907:    7124           34755                           CAF      ZERO                                  #  SET MPAC +1 TO ZERO SO WE CAN ACCUMULATE
045286,000908:    7125           56155                           XCH      MPAC       +1                         #  THE PARTIAL PRODUCTS WITH DAS
045287,000909:    7126           54135                           TS       MPTEMP                                #  INSTRUCTIONS.
045288,000910:    7127           00006                           EXTEND                                         
045289,000911:    7130           70156                           MP       MPAC       +2                         #  MINOR OF MPAC X MINOR OF C(ADDRWD).
045290,000912: 
045291,000913:    7131           56156                           XCH      MPAC       +2                         #  DISCARD MINOR PART OF ABOVE RESULT AND
045292,000914:    7132           00006                           EXTEND                                         #  FORM MAJOR OF MPAC X MINOR OF C(ADDRWD).
045293,000915:    7133           70154                           MP       MPAC                                  
045294,000916:    7134           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
045295,000917: 
045296,000918:    7135           50116                           INDEX    ADDRWD                                #  GET MAJOR PART OF ARGUMENT AT C(ADDRWD).
045297,000919:    7136           30000                           CA       0                                     
045298,000920:    7137           56135                           XCH      MPTEMP                                #  SAVE AND BRING OUT MINOR OF MPAC.
045299,000921:    7140           00006        DMPSUB2            EXTEND                                         
045300,000922:    7141           70135                           MP       MPTEMP                                #  MAJOR OF C(ADDRWD) X MINOR OF MPAC.
045301,000923:    7142           20156                           DAS      MPAC       +1                         #  ACCUMULATE, SETTING A TO NET OVERFLOW.
045302,000924: 
045303,000925:    7143           56154                           XCH      MPAC                                  #  SETTING MPAC TO 0 OR +-1.
045304,000926:    7144           00006                           EXTEND                                         
045305,000927:    7145           70135                           MP       MPTEMP                                #  MAJOR OF MPAC X MAJOR OF C(ADDRWD).
045306,000928:    7146           20155                           DAS      MPAC                                  #  GUARANTEED NO OVERFLOW.
045307,000929:    7147           00002                           TC       Q                                     #  49 MCT = .573 MS. INCLUDING RETURN.
045308,000930: 

Page 1023

045310,000932:                                                                                                  #           ROUND MPAC TO DOUBLE PRECISION, SETTING OVFIND ON THE RARE EVENT OF OVERFLOW.
045311,000933: 
045312,000934:    7150           34755        ROUNDSUB           CAF      ZERO                                  #  SET MPAC +2 = 0 FOR SCALARS AND CHANGE
045313,000935:    7151           54163                 +1        TS       MODE                                  #  MODE TO DP.
045314,000936: 
045315,000937:    7152           56156        VROUND             XCH      MPAC       +2                         #  BUT WE NEEDNT TAKE THE TIME FOR VECTORS.
045316,000938:    7153           60000                           DOUBLE                                         
045317,000939:    7154           54001                           TS       L                                     
045318,000940:    7155           00002                           TC       Q                                     
045319,000941: 
045320,000942:    7156           60155                           AD       MPAC       +1                         #  ADD ROUNDING BIT IF MPAC +2 WAS GREATER
045321,000943:    7157           54155                           TS       MPAC       +1                         #  THAN .5 IN MAGNITUDE.
045322,000944:    7160           00002                           TC       Q                                     
045323,000945: 
045324,000946:    7161           60154                           AD       MPAC                                  #  PROPAGATE INTERFLOW.
045325,000947:    7162           54154                           TS       MPAC                                  
045326,000948:    7163           00002                           TC       Q                                     
045327,000949: 
045328,000950:    7164           54121        SETOVF2            TS       OVFIND                                #  (RARE).
045329,000951:    7165           00002                           TC       Q                                     
045330,000952: 

Page 1024

045332,000954:                                                                                                  #           THE DOT PRODUCT SUBROUTINE USUALLY FORMS THE DOT PRODUCT OF THE VECTOR IN MPAC WITH A STANDARD SIX
045333,000955:                                                                                                  #  REGISTER VECTOR WHOSE ADDRESS IS IN ADDRWD. IN THIS CASE C(DOTINC) ARE SET TO 2. VXM, HOWEVER, SETS C(DOTINC) TO
045334,000956:                                                                                                  #  6 SO THAT DOTSUB DOTS MPAC WITH A COLUMN VECTOR OF THE MATRIX IN QUESTION IN THIS CASE.
045335,000957: 
045336,000958:    7166           34752        PREDOT             CAF      TWO                                   #  PROLOGUE TO SET DOTINC TO 2.
045337,000959:    7167           54136                           TS       DOTINC                                
045338,000960: 
045339,000961:    7170           00006        DOTSUB             EXTEND                                         
045340,000962:    7171           22137                           QXCH     DOTRET                                #  SAVE RETURN.
045341,000963:    7172           07121                           TC       DMPSUB                                #  DOT X COMPONENTS.
045342,000964:    7173           52160                           DXCH     MPAC       +3                         #  POSITION Y COMPONENT OF MPAC FOR
045343,000965:    7174           52155                           DXCH     MPAC                                  #  MULTIPLICATION WHILE SAVING RESULT IN
045344,000966:    7175           52131                           DXCH     BUF                                   #  THREE WORD BUFFER, BUF.
045345,000967:    7176           30156                           CA       MPAC       +2                         
045346,000968:    7177           54132                           TS       BUF        +2                         
045347,000969: 
045348,000970:    7200           30136                           CA       DOTINC                                #  ADVANCE ADDRWD TO Y COMPONENT OF
045349,000971:    7201           26116                           ADS      ADDRWD                                #  OTHER ARGUMENT.
045350,000972:    7202           07121                           TC       DMPSUB                                
045351,000973:    7203           52156                           DXCH     MPAC       +1                         #  ACCUMULATE PARTIAL PRODUCTS.
045352,000974:    7204           20132                           DAS      BUF        +1                         
045353,000975:    7205           60154                           AD       MPAC                                  
045354,000976:    7206           60130                           AD       BUF                                   
045355,000977:    7207           54130                           TS       BUF                                   
045356,000978:    7210           17212                           TCF      +2                                    
045357,000979:    7211           54121                           TS       OVFIND                                #  IF OVERFLOW OCCURS.
045358,000980: 
045359,000981:    7212           52162                           DXCH     MPAC       +5                         #  MULTIPLY Z COMPONENTS.
045360,000982:    7213           52155                           DXCH     MPAC                                  
045361,000983:    7214           30136                           CA       DOTINC                                
045362,000984:    7215           26116                           ADS      ADDRWD                                
045363,000985:    7216           07121                           TC       DMPSUB                                
045364,000986:    7217           52132        ENDDOT             DXCH     BUF        +1                         #  LEAVE FINAL ACCUMULATION IN MPAC.
045365,000987:    7220           20156                           DAS      MPAC       +1                         
045366,000988:    7221           60154                           AD       MPAC                                  
045367,000989:    7222           60130                           AD       BUF                                   
045368,000990:    7223           54154                           TS       MPAC                                  
045369,000991:    7224           00137                           TC       DOTRET                                
045370,000992: 
045371,000993:    7225           07031                           TC       OVERFLOW                              #  ON OVERFLOW HERE.
045372,000994:    7226           00137                           TC       DOTRET                                
045373,000995: 

Page 1025

045375,000997:                                                                                                  #  DOUBLE PRECISION POLYNOMIAL EVALUATOR
045376,000998: 
045377,000999:                                                                                                  #                                     N        N-1
045378,001000:                                                                                                  #           THIS ROUTINE EVALUATES A X  + A   X    + ... + A X + A  LEAVING THE DP RESULT IN MPAC ON EXIT.
045379,001001:                                                                                                  #                                   N      N-1              1     0
045380,001002: 
045381,001003:                                                                                                  #  THE ROUTINE HAS TWO ENTRIES
045382,001004: 
045383,001005:                                                                                                  #           1. ENTRY THRU POWRSERS. THE COEFFICIENTS MAY BE EITHER IN FIXED OR ERASABLE, THE CALL IS BY
045384,001006:                                                                                                  #              TC POWRSERS, AND THE RETURN IS TO LOC(TC POWRSERS)+1. THE ENTERING DATA MUST BE AS FOLLOWS
045385,001007: 
045386,001008:                                                                                                  #                                          A        SP     LOC-3           ADDRESS FOR REFERENCING COEF TABLE
045387,001009:                                                                                                  #                                          L        SP     N-1             N IS THE DEGREE OF THE POWER SERIES
045388,001010:                                                                                                  #                                          MPAC     DP     X               ARGUMENT
045389,001011: 
045390,001012:                                                                                                  #                                          LOC-2N   DP     A(0)
045391,001013:                                                                                                  #                                                   ...
045392,001014:                                                                                                  #                                          LOC      DP     A(N)
045393,001015: 
045394,001016:                                                                                                  #           2. ENTRY THRU POLY. THE CALL TO POLY AND THE ENTERING DATA MUST BE AS FOLLOWS
045395,001017: 
045396,001018:                                                                                                  #                                          MPAC     DP     X               ARGUMENT
045397,001019: 
045398,001020:                                                                                                  #                                          LOC      TC     POLY
045399,001021:                                                                                                  #                                          LOC+1    SP     N-1
045400,001022:                                                                                                  #                                          LOC+2    DP     A(0)
045401,001023:                                                                                                  #                                                   ...
045402,001024:                                                                                                  #                                          LOC+2N+2 DP     A(N)            RETURN IS TO LOC+2N+4
045403,001025: 
045404,001026:    7227           00006        POWRSERS           EXTEND                                         
045405,001027:    7230           22141                           QXCH     POLYRET                               #  RETURN ADDRESS
045406,001028:    7231           54117                           TS       POLISH                                #  POWER SERIES ADDRESS
045407,001029:    7232           22140                           LXCH     POLYCNT                               #  N-1 TO COUNTER
045408,001030:    7233           17244                           TCF      POLYCOM                               #  SKIP SET UP BY POLY
045409,001031: 
045410,001032:    7234           50002        POLY               INDEX    Q                                     
045411,001033:    7235           30000                           CAF      0                                     
045412,001034:    7236           54140                           TS       POLYCNT                               #  N-1 TO COUNTER
045413,001035:    7237           60000                           DOUBLE                                         
045414,001036:    7240           60002                           AD       Q                                     
045415,001037:    7241           54117                           TS       POLISH                                #  L(A(N))-3 TO POLISH
045416,001038:    7242           64756                           AD       FIVE                                  
045417,001039:    7243           54141                           TS       POLYRET                               #  STORE RETURN ADDRESS
045418,001040: 
045419,001041:    7244           36305        POLYCOM            CAF      LVBUF                                 #  INCOMING X WILL BE MOVED TO VBUF, SO
045420,001042:    7245           54116                           TS       ADDRWD                                #  SET ADDRWD SO DMPSUB WILL MPY BY VBUF.
045421,001043: 
045422,001044:    7246           00006                           EXTEND                                         
045423,001045:    7247           50117                           INDEX    POLISH                                
045424,001046:    7250           30004                           DCA      3                                     
045425,001047: 

Page 1026

045427,001049:    7251           52155                           DXCH     MPAC                                  #  LOAD A(N) INTO MPAC,
045428,001050:    7252           52123                           DXCH     VBUF                                  #  SAVING X IN VBUF
045429,001051:    7253           17257                           TCF      POLY2                                 
045430,001052: 
045431,001053:    7254           54140        POLYLOOP           TS       POLYCNT                               #  SAVE DECREMENTED LOOP COUNTER
045432,001054:    7255           44752                           CS       TWO                                   
045433,001055:    7256           26117                           ADS      POLISH                                #  REGRESS COEFFICIENT POINTER
045434,001056: 
045435,001057:    7257           07121        POLY2              TC       DMPSUB                                #  MULTIPLY BY X
045436,001058:    7260           00006                           EXTEND                                         
045437,001059:    7261           50117                           INDEX    POLISH                                
045438,001060:    7262           30002                           DCA      1                                     #  ADD IN NEXT COEFFICIENT
045439,001061:    7263           20155                           DAS      MPAC                                  #  USERS RESPONSIBILITY TO ASSURE NO OVFLOW
045440,001062: 
045441,001063:    7264           10140                           CCS      POLYCNT                               
045442,001064:    7265           17254                           TCF      POLYLOOP                              
045443,001065:    7266           00141                           TC       POLYRET                               #  RETURN CALLER
045444,001066: 

Page 1027

045446,001068:                                                                                                  #           MISCELLANEOUS MULTI-PRECISION ROUTINES REQUIRED IN FIXED-FIXED BUT NOT USED BY THE INTERPRETER.
045447,001069: 
045448,001070:    7267           34755        DPAGREE            CAF      ZERO                                  #  DOUBLE PRECISION ENTRY -
045449,001071:    7270           54156                           TS       MPAC       +2                         #  ZERO LOW-ORDER WORD
045450,001072: 
045451,001073:    7271           22002        TPAGREE            LXCH     Q                                     #  FORCE SIGN AGREEMENT AMONG THE TRIPLE
045452,001074:    7272           06735                           TC       BRANCH                                #  PRECISION CONTENTS OF MPAC.  RETURNING
045453,001075:    7273           17277                           TCF      ARG+                                  #  WITH SIGNUM OF THE INPUT IN A.
045454,001076:    7274           17317                           TCF      ARGZERO                               
045455,001077: 
045456,001078:    7275           44733                           CS       POSMAX                                #  IF NEGATIVE.
045457,001079:    7276           17300                           TCF      +2                                    
045458,001080: 
045459,001081:    7277           34733        ARG+               CAF      POSMAX                                
045460,001082:    7300           54002                           TS       Q                                     
045461,001083:    7301           00006                           EXTEND                                         
045462,001084:    7302           24000                           AUG      A                                     #  FORMS +-1.0.
045463,001085:    7303           60156                           AD       MPAC       +2                         
045464,001086:    7304           54156                           TS       MPAC       +2                         
045465,001087:    7305           34755                           CAF      ZERO                                  
045466,001088:    7306           60002                           AD       Q                                     
045467,001089:    7307           60155                           AD       MPAC       +1                         
045468,001090:    7310           54155                           TS       MPAC       +1                         
045469,001091:    7311           34755                           CAF      ZERO                                  
045470,001092:    7312           60002                           AD       Q                                     #  Q STILL HAS POSMAX OR NEGMAX IN IT.
045471,001093:    7313           60154                           AD       MPAC                                  
045472,001094:    7314           54154        ARGZERO2           TS       MPAC                                  #  ALWAYS SKIPPING UNLESS ARGZERO.
045473,001095:    7315           54155                           TS       MPAC       +1                         
045474,001096:    7316           00001                           TC       L                                     #  RETURN VIA L.
045475,001097: 
045476,001098:    7317           54156        ARGZERO            TS       MPAC       +2                         #  SET ALL THREE MPAC REGISTERS TO ZERO.
045477,001099:    7320           17314                           TCF      ARGZERO2                              
045478,001100: 
045479,001101:                                                                                                  #           SHORTMP MULTIPLIES THE TP CONTENTS OF MPAC BY THE SINGLE PRECISION NUMBER ARRIVING IN A.
045480,001102: 
045481,001103:    7321           54135        SHORTMP            TS       MPTEMP                                
045482,001104:    7322           00006                           EXTEND                                         
045483,001105:    7323           70156                           MP       MPAC       +2                         
045484,001106:    7324           54156                           TS       MPAC       +2                         
045485,001107:    7325           34755        SHORTMP2           CAF      ZERO                                  #  SO SUBSEQUENT DAS WILL WORK.
045486,001108:    7326           56155                           XCH      MPAC       +1                         
045487,001109:    7327           17140                           TCF      DMPSUB2                               
045488,001110: 

Page 1028

045490,001112:                                                                                                  #         DMPNSUB MULTIPLIES THE DP FRACTION ARRIVING IN MPAC BY THE SP
045491,001113:                                                                                                  #  INTEGER ARRIVING IN A.  THE DP PRODUCT DEPARTS BOTH IN MPAC AND IN
045492,001114:                                                                                                  #  A AND L.  NOTE THAT DMPNSUB NORMALLY INCREASES THE MAGNITUDE OF THE
045493,001115:                                                                                                  #  CONTENTS OF MPAC.  THE CUSTOMER MUST INSURE THAT B(A) X B(MPAC,MPAC+1)
045494,001116:                                                                                                  #  AND B(A) X B(MPAC) ARE LESS THAN 1 IN MAGNITUDE, WHERE B, AS IS OBVIOUS,
045495,001117:                                                                                                  #  INDICATES THE ARRIVING CONTENTS.
045496,001118: 
045497,001119:    7330           54135        DMPNSUB            TS       DMPNTEMP                              
045498,001120:    7331           00006                           EXTEND                                         
045499,001121:    7332           70155                           MP       MPAC       +1                         
045500,001122:    7333           52155                           DXCH     MPAC                                  #  LOW PRODUCT TO MPAC, HIGH FACTOR TO A
045501,001123:    7334           00006                           EXTEND                                         
045502,001124:    7335           70135                           MP       DMPNTEMP                              
045503,001125:    7336           30001                           CA       L                                     
045504,001126:    7337           26154                           ADS      MPAC                                  #  COMPLETING THE PRODUCT IN MPAC
045505,001127:    7340           00006                           EXTEND                                         
045506,001128:    7341           30155                           DCA      MPAC                                  #  BRINGING THE PRODUCT INTO A AND L
045507,001129:    7342           00002                           TC       Q                                     
045508,001130: 

Page 1029

045510,001132:                                                                                                  #  MISCELLANEOUS VECTOR OPERATIONS. INCLUDED HERE ARE THE FOLLOWING:
045511,001133: 
045512,001134:                                                                                                  #           1.  DOT                DP VECTOR DOT PRODUCT.
045513,001135:                                                                                                  #           2.  VXV                DP VECTOR CROSS PRODUCT.
045514,001136:                                                                                                  #           3.  VXSC               DP VECTOR TIMES SCALAR.
045515,001137:                                                                                                  #           4.  V/SC               DP VECTOR DIVIDED BY SCALAR.
045516,001138:                                                                                                  #           5.  VPROJ              DP VECTOR PROJECTION. ( (MPAC.X)MPAC ).
045517,001139:                                                                                                  #           6.  VXM                DP VECTOR POST-MULTIPLIED BY MATRIX.
045518,001140:                                                                                                  #           7.  MXV                DP VECTOR PRE-MULTIPLIED BY MATRIX.
045519,001141: 
045520,001142:    7343           07166        DOT                TC       PREDOT                                #  DO THE DOT PRODUCT AND EXIT, CHANGING
045521,001143:    7344           34755        DMODE              CAF      ZERO                                  #  THE MODE TO DP SCALAR.
045522,001144:    7345           16072                           TCF      NEWMODE                               
045523,001145: 
045524,001146: 
045525,001147:    7346           34752        MXV                CAF      TWO                                   #  SET UP MATINC AND DOTINC FOR ROW
045526,001148:    7347           54140                           TS       MATINC                                #  VECTORS.
045527,001149:    7350           17354                           TCF      VXM/MXV                               #  GO TO COMMON PORTION.
045528,001150: 
045529,001151:    7351           44363        VXM                CS       TEN                                   #  SET MATINC AND DOTINC TO REFER TO MATRIX
045530,001152:    7352           54140                           TS       MATINC                                #  AS THREE COLUMN VECTORS.
045531,001153:    7353           36254                           CAF      SIX                                   
045532,001154: 

Page 1030

045534,001156:                                                                                                  #           COMMON PORTION OF MXV AND VXM.
045535,001157: 
045536,001158:    7354           54136        VXM/MXV            TS       DOTINC                                
045537,001159:                                                                                                  #           ITRACE (2) REFERS TO "VXM/MXV".
045538,001160:    7355           07544                           TC       MPACVBUF                              #  SAVE VECTOR IN MPAC FOR FURTHER USE.
045539,001161: 
045540,001162:    7356           07170                           TC       DOTSUB                                #  GO DOT TO GET X COMPONENT OF ANSWER.
045541,001163:    7357           00006                           EXTEND                                         
045542,001164:    7360           30123                           DCA      VBUF                                  #  MOVE MPAC VECTOR BACK INTO MPAC, SAVING
045543,001165:    7361           52155                           DXCH     MPAC                                  #  NEW X COMPONENT IN BUF2.
045544,001166:    7362           52134                           DXCH     BUF2                                  
045545,001167:    7363           00006                           EXTEND                                         
045546,001168:    7364           30125                           DCA      VBUF       +2                         
045547,001169:    7365           52160                           DXCH     MPAC       +3                         
045548,001170:    7366           00006                           EXTEND                                         
045549,001171:    7367           30127                           DCA      VBUF       +4                         
045550,001172:    7370           52162                           DXCH     MPAC       +5                         
045551,001173:    7371           30140                           CA       MATINC                                #  INITIALIZE ADDRWD FOR NEXT DOT PRODUCT.
045552,001174:    7372           26116                           ADS      ADDRWD                                #  FORMS BASE ADDRESS OF NEXT COLUMN(ROW).
045553,001175: 
045554,001176:    7373           07170                           TC       DOTSUB                                
045555,001177:    7374           52123                           DXCH     VBUF                                  #  MOVE GIVEN VECTOR BACK TO MPAC, SAVING Y
045556,001178:    7375           52155                           DXCH     MPAC                                  #  COMPONENT OF ANSWER IN VBUF +2.
045557,001179:    7376           52125                           DXCH     VBUF       +2                         
045558,001180:    7377           52160                           DXCH     MPAC       +3                         
045559,001181:    7400           52127                           DXCH     VBUF       +4                         
045560,001182:    7401           52162                           DXCH     MPAC       +5                         
045561,001183:    7402           30140                           CA       MATINC                                #  FORM ADDRESS OF LAST COLUMN OR ROW.
045562,001184:    7403           26116                           ADS      ADDRWD                                
045563,001185: 
045564,001186:    7404           07170                           TC       DOTSUB                                
045565,001187:    7405           52134                           DXCH     BUF2                                  #  ANSWER NOW COMPLETE. PUT COMPONENTS INTO
045566,001188:    7406           52155                           DXCH     MPAC                                  #  PROPER MPAC REGISTERS.
045567,001189:    7407           52162                           DXCH     MPAC       +5                         
045568,001190:    7410           52125                           DXCH     VBUF       +2                         
045569,001191:    7411           52160                           DXCH     MPAC       +3                         
045570,001192:    7412           16073                           TCF      DANZIG                                #  EXIT.
045571,001193: 

Page 1031

045573,001195:                                                                                                  #           VXSC - VECTOR TIMES SCALAR.
045574,001196: 
045575,001197:    7413           10163        VXSC               CCS      MODE                                  #  TEST PRESENT MODE.
045576,001198:    7414           17442                           TCF      DVXSC                                 #  SEPARATE ROUTINE WHEN SCALAR IS IN MPAC.
045577,001199:    7415           17442                           TCF      DVXSC                                 
045578,001200: 
045579,001201:    7416           07121        VVXSC              TC       DMPSUB                                #  COMPUTE X COMPONENT
045580,001202:    7417           07152                           TC       VROUND                                #  AND ROUND IT.
045581,001203:    7420           52160                           DXCH     MPAC       +3                         #  PUT Y COMPONENT INTO MPAC SAVING MPAC IN
045582,001204:    7421           52155                           DXCH     MPAC                                  #  MPAC +3.
045583,001205:    7422           52160                           DXCH     MPAC       +3                         
045584,001206: 
045585,001207:    7423           07121                           TC       DMPSUB                                #  DO SAME FOR Y AND Z COMPONENTS.
045586,001208:    7424           07152                           TC       VROUND                                
045587,001209:    7425           52162                           DXCH     MPAC       +5                         
045588,001210:    7426           52155                           DXCH     MPAC                                  
045589,001211:    7427           52162                           DXCH     MPAC       +5                         
045590,001212: 
045591,001213:    7430           07121                           TC       DMPSUB                                
045592,001214:    7431           07152                           TC       VROUND                                
045593,001215:    7432           52155        VROTATEX           DXCH     MPAC                                  #  EXIT USED TO RESTORE MPAC AFTER THIS
045594,001216:    7433           52162                           DXCH     MPAC       +5                         #  TYPE OF ROTATION. CALLED BY VECTOR SHIFT
045595,001217:    7434           52160                           DXCH     MPAC       +3                         #  RIGHT, V/SC, ETC.
045596,001218:    7435           52155                           DXCH     MPAC                                  
045597,001219:    7436           16073                           TCF      DANZIG                                
045598,001220: 

Page 1032

045600,001222:                                                                                                  #           DP VECTOR PROJECTION ROUTINE.
045601,001223: 
045602,001224:    7437           07166        VPROJ              TC       PREDOT                                #  (MPAC.X)MPAC IS COMPUTED AND LEFT IN
045603,001225:    7440           44751                           CS       FOUR                                  #  MPAC. DO DOT AND FALL INTO DVXSC.
045604,001226:    7441           26116                           ADS      ADDRWD                                
045605,001227: 
045606,001228:                                                                                                  #           VXSC WHEN SCALAR ARRIVES IN MPAC AND VECTOR IS AT X.
045607,001229: 
045608,001230:    7442           00006        DVXSC              EXTEND                                         #  SAVE SCALAR IN MPAC +3 AND GET X
045609,001231:    7443           30155                           DCA      MPAC                                  #  COMPONENT OF ANSWER.
045610,001232:    7444           52160                           DXCH     MPAC       +3                         
045611,001233:    7445           07121                           TC       DMPSUB                                
045612,001234:    7446           07152                           TC       VROUND                                
045613,001235: 
045614,001236:    7447           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO Y COMPONENT OF X.
045615,001237:    7450           26116                           ADS      ADDRWD                                
045616,001238:    7451           00006                           EXTEND                                         
045617,001239:    7452           30160                           DCA      MPAC       +3                         #  PUT SCALAR BACK INTO MPAC AND SAVE
045618,001240:    7453           52155                           DXCH     MPAC                                  #  X RESULT IN MPAC +5.
045619,001241:    7454           52162                           DXCH     MPAC       +5                         
045620,001242:    7455           07121                           TC       DMPSUB                                
045621,001243:    7456           07152                           TC       VROUND                                
045622,001244: 
045623,001245:    7457           34752                           CAF      TWO                                   
045624,001246:    7460           26116                           ADS      ADDRWD                                #  TO Z COMPONENT.
045625,001247:    7461           52160                           DXCH     MPAC       +3                         #  BRING SCALAR BACK, PUTTING Y RESULT IN
045626,001248:    7462           52155                           DXCH     MPAC                                  #  THE PROPER PLACE.
045627,001249:    7463           52160                           DXCH     MPAC       +3                         
045628,001250:    7464           07121                           TC       DMPSUB                                
045629,001251:    7465           07152                           TC       VROUND                                
045630,001252: 
045631,001253:    7466           52155                           DXCH     MPAC                                  #  PUT Z COMPONENT IN PROPER PLACE, ALSO
045632,001254:    7467           52162                           DXCH     MPAC       +5                         #  POSITIONING X.
045633,001255:    7470           52155                           DXCH     MPAC                                  
045634,001256: 
045635,001257:    7471           16533                           TCF      VMODE                                 #  MODE HAS CHANGED TO VECTOR.
045636,001258: 

Page 1033

045638,001260:                                                                                                  #           THE VECTOR CROSS PRODUCT ROUTINE CALCULATES (X M -X M ,X M -X M ,X M -X M ) WHERE M IS THE VECTOR IN
045639,001261:                                                                                                  #                                                         3 2  2 3  1 3  3 1  2 1  1 2
045640,001262:                                                                                                  #  MPAC AND X THE VECTOR AT THE GIVEN ADDRESS.
045641,001263: 
045642,001264:    7472           00006        VXV                EXTEND                                         
045643,001265:    7473           30162                           DCA      MPAC       +5                         #  FORM UP M3X1, LEAVING M1 IN VBUF.
045644,001266:    7474           52155                           DXCH     MPAC                                  
045645,001267:    7475           52123                           DXCH     VBUF                                  
045646,001268:    7476           07121                           TC       DMPSUB                                #  BY X1.
045647,001269: 
045648,001270:    7477           00006                           EXTEND                                         
045649,001271:    7500           40160                           DCS      MPAC       +3                         #  CALCULATE -X1M2, SAVING X1M3 IN VBUF +2.
045650,001272:    7501           52155                           DXCH     MPAC                                  
045651,001273:    7502           52125                           DXCH     VBUF       +2                         
045652,001274:    7503           07121                           TC       DMPSUB                                
045653,001275: 
045654,001276:    7504           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X2.
045655,001277:    7505           26116                           ADS      ADDRWD                                
045656,001278:    7506           00006                           EXTEND                                         
045657,001279:    7507           40162                           DCS      MPAC       +5                         #  PREPARE TO GET -X2M3, SAVING -X1M2 IN
045658,001280:    7510           52155                           DXCH     MPAC                                  #  MPAC +5.
045659,001281:    7511           52162                           DXCH     MPAC       +5                         
045660,001282:    7512           07121                           TC       DMPSUB                                
045661,001283: 
045662,001284:    7513           00006                           EXTEND                                         
045663,001285:    7514           30123                           DCA      VBUF                                  #  GET X2M1, SAVING -X2M3 IN VBUF +4.
045664,001286:    7515           52155                           DXCH     MPAC                                  
045665,001287:    7516           52127                           DXCH     VBUF       +4                         
045666,001288:    7517           07121                           TC       DMPSUB                                
045667,001289: 
045668,001290:    7520           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X3.
045669,001291:    7521           26116                           ADS      ADDRWD                                
045670,001292:    7522           00006                           EXTEND                                         
045671,001293:    7523           40123                           DCS      VBUF                                  #  GET -X3M1, ADDING X2M1 TO MPAC +5 TO
045672,001294:    7524           52155                           DXCH     MPAC                                  #  COMPLETE THE Z COMPONENT OF THE ANSWER.
045673,001295:    7525           20162                           DAS      MPAC       +5                         
045674,001296: 
045675,001297:    7526           00006                           EXTEND                                         
045676,001298:    7527           17531                           BZF      +2                                    
045677,001299:    7530           07023                           TC       OVERFLWZ                              
045678,001300: 
045679,001301:    7531           07121                           TC       DMPSUB                                
045680,001302:    7532           52125                           DXCH     VBUF       +2                         #  MOVE X1M3 TO MPAC +3 SETTING UP FOR X3M2
045681,001303:    7533           52160                           DXCH     MPAC       +3                         #  AND ADD -X3M1 TO MPAC +3 TO COMPLETE THE
045682,001304:    7534           52155                           DXCH     MPAC                                  #  Y COMPONENT OF THE RESULT.
045683,001305:    7535           20160                           DAS      MPAC       +3                         
045684,001306: 
045685,001307:    7536           00006                           EXTEND                                         
045686,001308:    7537           17541                           BZF      +2                                    

Page 1034

045688,001310:    7540           07026                           TC       OVERFLWY                              
045689,001311: 
045690,001312:    7541           07121                           TC       DMPSUB                                
045691,001313:    7542           52127                           DXCH     VBUF       +4                         #  GO ADD -X2M3 TO X3M2 TO COMPLETE THE X
045692,001314:    7543           17012                           TCF      ENDVXV                                #  COMPONENT (TAIL END OF DAD).
045693,001315: 
045694,001316:                                                                                                  #           THE MPACVBUF SUBROUTINE SAVES THE VECTOR IN MPAC IN VBUF WITHOUT CLOBBERING MPAC.
045695,001317: 
045696,001318:    7544           00006        MPACVBUF           EXTEND                                         #  CALLED BY MXV, VXM, AND UNIT.
045697,001319:    7545           30155                           DCA      MPAC                                  
045698,001320:    7546           52123                           DXCH     VBUF                                  
045699,001321:    7547           00006                           EXTEND                                         
045700,001322:    7550           30160                           DCA      MPAC       +3                         
045701,001323:    7551           52125                           DXCH     VBUF       +2                         
045702,001324:    7552           00006                           EXTEND                                         
045703,001325:    7553           30162                           DCA      MPAC       +5                         
045704,001326:    7554           52127                           DXCH     VBUF       +4                         
045705,001327:    7555           00002                           TC       Q                                     #  RETURN TO CALLER.
045706,001328: 
045707,001329: 
045708,001330:                                                                                                  #           DOUBLE PRECISION SIGN AGREE ROUTINE. ARRIVE WITH INPUT IN A+L. OUTPUT IS IN A + L.
045709,001331: 
045710,001332:    7556           10000        ALSIGNAG           CCS      A                                     #  TEST UPPER PART.
045711,001333:    7557           17563                           TCF      UPPOS                                 #  IT IS POSITIVE
045712,001334:    7560           00002                           TC       Q                                     #  ZERO
045713,001335:    7561           17573                           TCF      UPNEG                                 #  NEGATIVE
045714,001336:    7562           00002                           TC       Q                                     #  ZERO
045715,001337: 
045716,001338:    7563           56001        UPPOS              XCH      L                                     #  SAVE DECREMENTED UPPER PART.
045717,001339:    7564           64736                           AD       HALF                                  
045718,001340:    7565           64736                           AD       HALF                                  
045719,001341:    7566           54000                           TS       A                                     #  SKIPS ON OVERFLOW
045720,001342:    7567           17571                           TCF      +2                                    
045721,001343:    7570           24001                           INCR     L                                     #  RESTORE UPPER TO ROIGINAL VALUE
045722,001344:    7571           56001                           XCH      L                                     #  SWAP A + L BACK.
045723,001345:    7572           00002                           TC       Q                                     
045724,001346: 
045725,001347:    7573           56001        UPNEG              XCH      L                                     #  SAVE COMPLEMENTED + DECREMENTED UPPER PT
045726,001348:    7574           64735                           AD       NEGMAX                                
045727,001349:    7575           67761                           AD       NEGONE                                
045728,001350:    7576           54000                           TS       A                                     
045729,001351:    7577           17601                           TCF      +2                                    #  DONT INCREMENT IF NO OVERFLOW.
045730,001352:    7600           24001                           INCR     L                                     
045731,001353:    7601           56001                           XCH      L                                     
045732,001354:    7602           40000                           COM                                            #  MAKE NEGATIVE AGAIN.
045733,001355:    7603           00002                           TC       Q                                     
045734,001356: 

Page 1035

045736,001358:                                                                                                  #           INTERPRETIVE INSTRUCTIONS WHOSE EXECUTION CONSISTS OF PRINCIPALLY CALLING SUBROUTINES.
045737,001359: 
045738,001360:    7604           07121        DMP1               TC       DMPSUB                                #  DMP INSTRUCTION.
045739,001361:    7605           16073                           TCF      DANZIG                                
045740,001362: 
045741,001363:    7606           07121        DMPR               TC       DMPSUB                                
045742,001364:    7607           07151                           TC       ROUNDSUB   +1                         #  (C(A) = +0).
045743,001365:    7610           16073                           TCF      DANZIG                                
045744,001366: 
045745,001367:    7611           00006        DDV                EXTEND                                         
045746,001368:    7612           50116                           INDEX    ADDRWD                                #  MOVE DIVIDEND INTO BUF.
045747,001369:    7613           30001                           DCA      0                                     
045748,001370:    7614           17621                           TCF      BDDV       +4                         
045749,001371: 
045750,001372:    7615           00006        BDDV               EXTEND                                         #  MOVE DIVISOR INTO MPAC SAVING MPAC, THE
045751,001373:    7616           50116                           INDEX    ADDRWD                                #  DIVIDEND, IN BUF.
045752,001374:    7617           30001                           DCA      0                                     
045753,001375:    7620           52155                           DXCH     MPAC                                  
045754,001376:    7621           52131                 +4        DXCH     BUF                                   
045755,001377:    7622           34755                           CAF      ZERO                                  #  DIVIDE ROUTINES IN BANK 0.
045756,001378:    7623           54004                           TS       FBANK                                 
045757,001379:    7624           12353                           TCF      DDV/BDDV                              
045758,001380: 
045759,001381:    7625           30116        SETPD              CA       ADDRWD                                #  MUST SET TO WORK AREA, OR EBANK TROUBLE.
045760,001382:    7626           54166                           TS       PUSHLOC                               
045761,001383:    7627           16075                           TCF      NOIBNKSW                              #  NO FBANK SWITCH REQUIRED.
045762,001384: 
045763,001385:    7630           34755        TSLC               CAF      ZERO                                  #  SHIFTING ROUTINES LOCATED IN BANK 00.
045764,001386:    7631           54004                           TS       FBANK                                 
045765,001387:    7632           12172                           TCF      TSLC2                                 
045766,001388: 
045767,001389:    7633           36106        GSHIFT             CAF      LOW7                                  #  USED AS MASK AT GENSHIFT. THIS PROCESSES
045768,001390:    7634           54004                           TS       FBANK                                 #  ANY SHIFT INSTRUCTION (EXCEPT TSLC) WITH
045769,001391:    7635           12214                           TCF      GENSHIFT                              #  AN ADDRESS (ROUTINES IN BANK 0).
045770,001392: 

Page 1036

045772,001394:                                                                                                  #           THE FOLLOWING IS THE PROLOGUE TO V/SC. IF THE PRESENT MODE IS VECTOR, IT SAVES THE SCALAR AT X IN BUF
045773,001395:                                                                                                  #  AND CALLS THE V/SC ROUTINE IN BANK 0. IF THE PRESENT MODE IS SCALAR, IT MOVES THE VECTOR AT X INTO MPAC, SAVING
045774,001396:                                                                                                  #  THE SCALAR IN MPAC IN BUF BEFORE CALLING THE V/SC ROUTINE IN BANK 0.
045775,001397: 
045776,001398:    7636           10163        V/SC               CCS      MODE                                  
045777,001399:    7637           17650                           TCF      DV/SC                                 #  MOVE VECTOR INTO MPAC.
045778,001400:    7640           17650                           TCF      DV/SC                                 
045779,001401: 
045780,001402:    7641           00006        VV/SC              EXTEND                                         
045781,001403:    7642           50116                           INDEX    ADDRWD                                
045782,001404:    7643           30001                           DCA      0                                     
045783,001405:    7644           52131        V/SC1              DXCH     BUF                                   #  IN BOTH CASES, VECTOR IS NOW IN MPAC AND
045784,001406:    7645           34755                           CAF      ZERO                                  #  SCALAR IN BUF.
045785,001407:    7646           54004                           TS       FBANK                                 
045786,001408:    7647           12654                           TCF      V/SC2                                 
045787,001409: 
045788,001410:    7650           00006        DV/SC              EXTEND                                         
045789,001411:    7651           50116                           INDEX    ADDRWD                                
045790,001412:    7652           30003                           DCA      2                                     
045791,001413:    7653           52160                           DXCH     MPAC       +3                         
045792,001414:    7654           00006                           EXTEND                                         
045793,001415:    7655           50116                           INDEX    ADDRWD                                
045794,001416:    7656           30005                           DCA      4                                     
045795,001417:    7657           52162                           DXCH     MPAC       +5                         
045796,001418: 
045797,001419:    7660           44753                           CS       ONE                                   #  CHANGE MODE TO VECTOR.
045798,001420:    7661           54163                           TS       MODE                                  
045799,001421: 
045800,001422:    7662           00006                           EXTEND                                         
045801,001423:    7663           50116                           INDEX    ADDRWD                                
045802,001424:    7664           30001                           DCA      0                                     
045803,001425:    7665           52155                           DXCH     MPAC                                  
045804,001426:    7666           17644                           TCF      V/SC1                                 #  FINISH PROLOGUE AT COMMON SECTION.
045805,001427: 

Page 1037

045807,001429:                                                                                                  #           SIGN AND COMPLEMENT INSTRUCTIONS.
045808,001430: 
045809,001431:    7667           50116        SIGN               INDEX    ADDRWD                                #  CALL COMP INSTRUCTION IF WORD AT X IS
045810,001432:    7670           10000                           CCS      0                                     #  NEGATIVE NON-ZERO.
045811,001433:    7671           16073                           TCF      DANZIG                                
045812,001434:    7672           17674                           TCF      +2                                    
045813,001435:    7673           17702                           TCF      COMP                                  #  DO THE COMPLEMENT.
045814,001436: 
045815,001437:    7674           50116                           INDEX    ADDRWD                                
045816,001438:    7675           10001        CCSL               CCS      1                                     
045817,001439:    7676           16073                           TCF      DANZIG                                
045818,001440:    7677           16073                           TCF      DANZIG                                
045819,001441:    7700           17702                           TCF      COMP                                  
045820,001442:    7701           16073                           TCF      DANZIG                                
045821,001443:    7702           00006        COMP               EXTEND                                         #  COMPLEMENT DP MPAC IN EVERY CASE.
045822,001444:    7703           40155                           DCS      MPAC                                  
045823,001445:    7704           52155                           DXCH     MPAC                                  
045824,001446: 
045825,001447:    7705           10163                           CCS      MODE                                  #  EITHER COMPLEMENT MPAC +3 OR THE REST OF
045826,001448:    7706           17717                           TCF      DCOMP                                 #  THE VECTOR ACCUMULATOR.
045827,001449:    7707           17717                           TCF      DCOMP                                 
045828,001450: 
045829,001451:    7710           00006                           EXTEND                                         #  VECTOR COMPLEMENT.
045830,001452:    7711           40160                           DCS      MPAC       +3                         
045831,001453:    7712           52160                           DXCH     MPAC       +3                         
045832,001454:    7713           00006                           EXTEND                                         
045833,001455:    7714           40162                           DCS      MPAC       +5                         
045834,001456:    7715           52162                           DXCH     MPAC       +5                         
045835,001457:    7716           16073                           TCF      DANZIG                                
045836,001458: 
045837,001459:    7717           40156        DCOMP              CS       MPAC       +2                         
045838,001460:    7720           54156                           TS       MPAC       +2                         
045839,001461:    7721           16073                           TCF      DANZIG                                
045840,001462: 

Page 1038

045842,001464:                                                                                                  #           THE FOLLOWING SHORT SHIFT CODES REQUIRE NO ADDRESS WORD:
045843,001465: 
045844,001466:                                                                                                  #           1.  SR1 TO SR4         SCALAR SHIFT RIGHT.
045845,001467:                                                                                                  #           2.  SR1R TO SR4R       SCALAR SHIFT RIGHT AND ROUND.
045846,001468:                                                                                                  #           3.  SL1 TO SL4         SCALAR SHIFT LEFT.
045847,001469:                                                                                                  #           4.  SL1R TO SL4R       SCALAR SHIFT LEFT AND ROUND.
045848,001470: 
045849,001471:                                                                                                  #           5.  VSR1 TO VSR8       VECTOR SHIFT RIGHT (ALWAYS ROUNDS).
045850,001472:                                                                                                  #           6.  VSL1 TO VSL8       VECTOR SHIFT LEFT (NEVER ROUNDS).
045851,001473: 
045852,001474:                                                                                                  #           THE FOLLOWING CODES REQUIRE AN ADDRESS WHICH MAY BE INDEXED:*
045853,001475: 
045854,001476:                                                                                                  #           1.  SR                 SCALAR SHIFT RIGHT.
045855,001477:                                                                                                  #           2.  SRR                SCALAR SHIFT RIGHT AND ROUND.
045856,001478:                                                                                                  #           3.  SL                 SCALAR SHIFT LEFT.
045857,001479:                                                                                                  #           4.  SLR                SCALAR SHIFT LEFT AND ROUND.
045858,001480: 
045859,001481:                                                                                                  #           5.  VSR                VECTOR SHIFT RIGHT.
045860,001482:                                                                                                  #           6.  VSL                VECTOR SHIFT LEFT.
045861,001483: 
045862,001484:                                                                                                  #  *  IF THE ADDRESS IS INDEXED, AND THE INDEX MODIFICATION RESULTS IN A NEGATIVE SHIFT COUNT, A SHIFT OF THE
045863,001485:                                                                                                  #  ABSOLUTE VALUE OF THE COUNT IS DONE IN THE OPPOSITE DIRECTION.
045864,001486: 
045865,001487: 
045866,001488: 00,2017                                           BANK     00                                    
045867,001489: 
045868,001490: 00,2017                                           COUNT*   $$/INTER                              
045869,001491: 00,2017           36254        SHORTT             CAF      SIX                                   #  SCALAR SHORT SHIFTS COME HERE. THE SHIFT
045870,001492: 00,2020           70020                           MASK     CYR                                   #  COUNT-1 IS NOW IN BITS 2-3 OF CYR. THE
045871,001493: 00,2021           54021                           TS       SR                                    #  ROUNDING BIT IS IN BIT1 AT THIS POINT.
045872,001494: 
045873,001495: 00,2022           10020                           CCS      CYR                                   #  SEE IF RIGHT OR LEFT SHIFT DESIRED.
045874,001496: 00,2023           12101                           TCF      TSSL                                  #  SHIFT LEFT.
045875,001497: 
045876,001498: 00,2024           00024        SRDDV              DEC      20         B-14                       #  MPTEMP SETTING FOR SR BEFORE DDV.
045877,001499: 
045878,001500: 00,2025           50021        TSSR               INDEX    SR                                    #  GET SHIFTING BIT.
045879,001501: 00,2026           34736                           CAF      BIT14                                 
045880,001502: 00,2027           54135                           TS       MPTEMP                                
045881,001503: 
045882,001504: 00,2030           10020                           CCS      CYR                                   #  SEE IF A ROUND IS DESIRED.
045883,001505: 00,2031           02050        RIGHTR             TC       MPACSRND                              #  YES - SHIFT RIGHT AND ROUND.
045884,001506: 00,2032           16072                           TCF      NEWMODE                               #  SET MODE TO DP (C(A) = 0).
045885,001507: 00,2033           30135        MPACSHR            CA       MPTEMP                                #  DO A TRIPLE PRECISION SHIFT RIGHT.
045886,001508: 00,2034           00006                           EXTEND                                         
045887,001509: 00,2035           70156                           MP       MPAC       +2                         
045888,001510: 00,2036           54156                 +3        TS       MPAC       +2                         #  (EXIT FROM SQRT AND ABVAL).
045889,001511: 00,2037           30135                           CA       MPTEMP                                
045890,001512: 00,2040           00006                           EXTEND                                         
045891,001513: 00,2041           70154                           MP       MPAC                                  #  SHIFT MAJOR PART INTO A,L AND PLACE IN

Page 1039

045893,001515: 00,2042           52155                           DXCH     MPAC                                  #  MPAC,+1.
045894,001516: 00,2043           30135                           CA       MPTEMP                                
045895,001517: 00,2044           00006                           EXTEND                                         
045896,001518: 00,2045           70001                           MP       L                                     #  ORIGINAL C(MPAC +1).
045897,001519: 00,2046           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
045898,001520: 00,2047           16073                           TCF      DANZIG                                
045899,001521: 
045900,001522:                                                                                                  #           MPAC SHIFT RIGHT AND ROUND SUBROUTINES.
045901,001523: 
045902,001524: 00,2050           30156        MPACSRND           CA       MPAC       +2                         #  WE HAVE TO DO ALL THREE MULTIPLIES SINCE
045903,001525: 00,2051           00006                           EXTEND                                         #  MPAC +1 AND MPAC +2 MIGHT HAVE SIGN
045904,001526: 00,2052           70135                           MP       MPTEMP                                #  DISAGREEMENT WITH A SHIFT RIGHT OF 1.
045905,001527: 00,2053           56155                           XCH      MPAC       +1                         
045906,001528: 00,2054           00006                           EXTEND                                         
045907,001529: 00,2055           70135                           MP       MPTEMP                                
045908,001530: 00,2056           56155                           XCH      MPAC       +1                         #  TRIAL MINOR PART.
045909,001531: 00,2057           60001                           AD       L                                     
045910,001532: 
045911,001533: 00,2060           60000        VSHR2              DOUBLE                                         #  (FINISH VECTOR COMPONENT SHIFT RIGHT
045912,001534: 00,2061           54156                           TS       MPAC       +2                         #  AND ROUND.
045913,001535: 00,2062           12064                           TCF      +2                                    
045914,001536: 00,2063           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
045915,001537: 
045916,001538: 00,2064           34755                           CAF      ZERO                                  
045917,001539: 00,2065           54156                           TS       MPAC       +2                         
045918,001540: 00,2066           56154                           XCH      MPAC                                  #  SETTING TO ZERO SO FOLLOWING DAS WORKS.
045919,001541: 00,2067           00006                           EXTEND                                         
045920,001542: 00,2070           70135                           MP       MPTEMP                                
045921,001543: 00,2071           20155                           DAS      MPAC                                  #  AGAIN NO OVERFLOW.
045922,001544: 00,2072           00002                           TC       Q                                     
045923,001545: 
045924,001546: 00,2073           30135        VSHRRND            CA       MPTEMP                                #  ENTRY TO SHIFT RIGHT AND ROUND MPAC WHEN
045925,001547: 00,2074           00006                           EXTEND                                         #  MPAC CONTAINS A VECTOR COMPONENT.
045926,001548: 00,2075           70155                           MP       MPAC       +1                         
045927,001549: 00,2076           54155                           TS       MPAC       +1                         
045928,001550: 00,2077           56001                           XCH      L                                     
045929,001551: 00,2100           12060                           TCF      VSHR2                                 #  GO ADD ONE IF NECESSARY AND FINISH.
045930,001552: 

Page 1040

045932,001554:                                                                                                  #           ROUTINE FOR SHORT SCALAR SHIFT LEFT (AND MAYBE ROUND).
045933,001555: 
045934,001556: 00,2101           30021        TSSL               CA       SR                                    #  GET SHIFT COUNT FOR SR.
045935,001557: 00,2102           54135                 +1        TS       MPTEMP                                
045936,001558: 
045937,001559: 00,2103           00006                 +2        EXTEND                                         #  ENTRY HERE FROM SL FOR SCALARS.
045938,001560: 00,2104           30156                           DCA      MPAC       +1                         #  SHIFTING LEFT ONE PLACE AT A TIME IS
045939,001561: 00,2105           20156                           DAS      MPAC       +1                         #  FASTER THAN DOING THE WHOLE SHIFT WITH
045940,001562: 00,2106           60154                           AD       MPAC                                  #  MULTIPLIES ASSUMING THAT FREQUENCY OF
045941,001563: 00,2107           60154                           AD       MPAC                                  #  SHIFT COUNTS GOES DOWN RAPIDLY AS A
045942,001564: 00,2110           54154                           TS       MPAC                                  #  FUNCTION OF THEIR MAGNITUDE.
045943,001565: 00,2111           12113                           TCF      +2                                    
045944,001566: 00,2112           54121                           TS       OVFIND                                #  OVERFLOW. (LEAVES OVERFLOW-CORRECTED
045945,001567:                                                                                                  #  RESULT ANYWAY).
045946,001568: 00,2113           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNT.
045947,001569: 00,2114           12102                           TCF      TSSL       +1                         
045948,001570: 
045949,001571: 00,2115           10020                           CCS      CYR                                   #  SEE IF ROUND WANTED.
045950,001572: 00,2116           07150        ROUND              TC       ROUNDSUB                              #  YES - ROUND AND EXIT.
045951,001573: 00,2117           16073                           TCF      DANZIG                                #  SL LEAVES A ZERO IN CYR FOR NO ROUND.
045952,001574: 00,2120           16073                           TCF      DANZIG                                #  NO - EXIT IMMEDIATL
045953,001575: 

Page 1041

045955,001577:                                                                                                  #  VECTOR SHIFTING ROUTINES.
045956,001578: 
045957,001579: 00,2121           34757        SHORTV             CAF      LOW3                                  #  SAVE 3 BIT SHIFT COUNT - 1 WITHOUT
045958,001580: 00,2122           70020                           MASK     CYR                                   #  EDITING CYR.
045959,001581: 00,2123           54135                           TS       MPTEMP                                
045960,001582: 00,2124           10020                           CCS      CYR                                   #  SEE IF LEFT OR RIGHT SHIFT.
045961,001583: 00,2125           12145                           TCF      VSSL                                  #  VECTOR SHIFT LEFT.
045962,001584: 00,2126           00176        OCT176             OCT      176                                   #  USED IN PROCESSED SHIFTS WITH - COUNT.
045963,001585: 
045964,001586: 00,2127           50135        VSSR               INDEX    MPTEMP                                #  (ENTRY FROM SR). PICK UP SHIFTING BIT.
045965,001587: 00,2130           34736                           CAF      BIT14                                 #  MPTEMP CONTAINS THE SHIFT COUNT - 1.
045966,001588: 00,2131           54135                           TS       MPTEMP                                
045967,001589: 00,2132           02073                           TC       VSHRRND                               #  SHIFT X COMPONENT.
045968,001590: 
045969,001591: 00,2133           52155                           DXCH     MPAC                                  #  SWAP X AND Y COMPONENTS.
045970,001592: 00,2134           52160                           DXCH     MPAC       +3                         
045971,001593: 00,2135           52155                           DXCH     MPAC                                  
045972,001594: 00,2136           02073                           TC       VSHRRND                               #  SHIFT Y COMPONENT.
045973,001595: 
045974,001596: 00,2137           52155                           DXCH     MPAC                                  #  SWAP Y AND Z COMPONENTS.
045975,001597: 00,2140           52162                           DXCH     MPAC       +5                         
045976,001598: 00,2141           52155                           DXCH     MPAC                                  
045977,001599: 00,2142           02073                           TC       VSHRRND                               #  SHIFT Z COMPONENT.
045978,001600: 
045979,001601: 00,2143           17432                           TCF      VROTATEX                              #  RESTORE COMPONENTS TO PROPER PLACES.
045980,001602: 

Page 1042

045982,001604:                                                                                                  #  VECTOR SHIFT LEFT - DONE ONE PLACE AT A TIME.
045983,001605: 
045984,001606: 00,2144           54135                 -1        TS       MPTEMP                                #  SHIFTING LOOP.
045985,001607: 
045986,001608: 00,2145           00006        VSSL               EXTEND                                         
045987,001609: 00,2146           30155                           DCA      MPAC                                  
045988,001610: 00,2147           20155                           DAS      MPAC                                  
045989,001611: 00,2150           00006                           EXTEND                                         
045990,001612: 00,2151           12153                           BZF      +2                                    
045991,001613: 00,2152           07031                           TC       OVERFLOW                              
045992,001614: 
045993,001615: 00,2153           00006                           EXTEND                                         
045994,001616: 00,2154           30160                           DCA      MPAC       +3                         
045995,001617: 00,2155           20160                           DAS      MPAC       +3                         
045996,001618: 00,2156           00006                           EXTEND                                         
045997,001619: 00,2157           12161                           BZF      +2                                    
045998,001620: 00,2160           07026                           TC       OVERFLWY                              
045999,001621: 
046000,001622: 00,2161           00006                           EXTEND                                         
046001,001623: 00,2162           30162                           DCA      MPAC       +5                         
046002,001624: 00,2163           20162                           DAS      MPAC       +5                         
046003,001625: 00,2164           00006                           EXTEND                                         
046004,001626: 00,2165           12167                           BZF      +2                                    
046005,001627: 00,2166           07023                           TC       OVERFLWZ                              
046006,001628: 
046007,001629: 00,2167           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNTER.
046008,001630: 00,2170           12144                           TCF      VSSL       -1                         
046009,001631: 00,2171           16073                           TCF      DANZIG                                #  EXIT.
046010,001632: 

Page 1043

046012,001634:                                                                                                  #           TSLC - TRIPLE SHIFT LEFT AND COUNT. SHIFTS MPAC LEFT UNTIL GREATER THAN .5 IN MAGNITUDE, LEAVING
046013,001635:                                                                                                  #  THE COMPLEMENT OF THE NUMBER OF SHIFTS REQUIRED IN X.
046014,001636: 
046015,001637: 00,2172           54135        TSLC2              TS       MPTEMP                                #  START BY ZEROING SHIFT COUNT (IN A NOW).
046016,001638: 00,2173           06735                           TC       BRANCH                                #  EXIT WITH NO SHIFTING IF ARGUMENT ZERO.
046017,001639: 00,2174           12176                           TCF      +2                                    
046018,001640: 00,2175           12212                           TCF      ENDTSLC                               #  STORES ZERO SHIFT COUNT IN THIS CASE.
046019,001641: 
046020,001642: 00,2176           07271                           TC       TPAGREE                               #  MAY CAUSE UPSHIFT OF ONE EXTRA PLACE.
046021,001643: 
046022,001644: 00,2177           30154                           CA       MPAC                                  #  BEGIN NORMALIZATION LOOP.
046023,001645: 00,2200           12207                           TCF      TSLCTEST                              
046024,001646: 
046025,001647: 00,2201           24135        TSLCLOOP           INCR     MPTEMP                                #  INCREMENT SHIFT COUNTER.
046026,001648: 00,2202           00006                           EXTEND                                         
046027,001649: 00,2203           30156                           DCA      MPAC       +1                         
046028,001650: 00,2204           20156                           DAS      MPAC       +1                         
046029,001651: 00,2205           60154                           AD       MPAC                                  
046030,001652: 00,2206           26154                           ADS      MPAC                                  
046031,001653: 00,2207           60000        TSLCTEST           DOUBLE                                         #  SEE IF (ANOTHER) SHIFT IS REQUIRED.
046032,001654: 00,2210           54000                           OVSK                                           
046033,001655: 00,2211           12201                           TCF      TSLCLOOP                              #  YES - INCREMENT COUNT AND SHIFT AGAIN.
046034,001656: 
046035,001657: 00,2212           40135        ENDTSLC            CS       MPTEMP                                
046036,001658: 00,2213           16635                           TCF      STORE1                                #  STORE SHIFT COUNT AND RETURN TO DANZIG.
046037,001659: 

Page 1044

046039,001661:                                                                                                  #           THE FOLLOWING ROUTINES PROCESSES THE GENERAL SHIFT INSTRUCTIONS SR, SRR, SL, AND SLR.
046040,001662:                                                                                                  #  THE GIVEN ADDRESS IS DECODED AS FOLLOWS:
046041,001663: 
046042,001664:                                                                                                  #           BITS 1-7    SHIFT COUNT (SUBADDRESS) LESS THAN 125 DECIMAL.
046043,001665:                                                                                                  #           BIT 8       PSEUDO SIGN BIT (DETECTS CHANGE IN SIGN IN INDEXED SHIFTS).
046044,001666:                                                                                                  #           BIT 9       0 FOR LEFT SHIFT, AND 1 FOR RIGHT SHIFT.
046045,001667:                                                                                                  #           BIT 10      1 FOR TERMINAL ROUND ON SCALAR SHIFTS, 0 OTHERWISE.
046046,001668:                                                                                                  #           BITS 11-13  0.
046047,001669:                                                                                                  #           BIT 14      1.
046048,001670:                                                                                                  #           BIT 15      0.
046049,001671: 
046050,001672:                                                                                                  #  THE ABOVE ENCODING IS DONE BY THE YUL SYSTEM.
046051,001673: 
046052,001674: 
046053,001675: 00,2214           70116        GENSHIFT           MASK     ADDRWD                                #  GET SHIFT COUNT, TESTING FOR ZERO.
046054,001676: 00,2215           10000                           CCS      A                                     #  (ARRIVES WITH C(A) = LOW7).
046055,001677: 00,2216           12224                           TCF      GENSHFT2                              #  IF NON-ZERO, PROCEED WITH DECREMENTED CT
046056,001678: 
046057,001679: 00,2217           34742                           CAF      BIT10                                 #  ZERO SHIFT COUNT. NO SHIFTS NEEDED BUT
046058,001680: 00,2220           70116                           MASK     ADDRWD                                #  WE MIGHT HAVE TO ROUND MPAC ON SLR AND
046059,001681: 00,2221           10000                           CCS      A                                     #  SRR (SCALAR ONLY).
046060,001682: 00,2222           07150                           TC       ROUNDSUB                              
046061,001683: 00,2223           16073                           TCF      DANZIG                                
046062,001684: 
046063,001685: 00,2224           54135        GENSHFT2           TS       MPTEMP                                #  DECREMENTED SHIFT COUNT TO MPTEMP.
046064,001686: 00,2225           34744                           CAF      BIT8                                  #  TEST MEANING OF LOW SEVEN BIT COUNT IN
046065,001687: 00,2226           00006                           EXTEND                                         #  MPTEMP NOW.
046066,001688: 00,2227           70116                           MP       ADDRWD                                
046067,001689: 00,2230           76257                           MASK     LOW2                                  #  JUMPS ON SHIFT DIRECTION (BIT8) AND
046068,001690: 00,2231           50000                           INDEX    A                                     
046069,001691: 00,2232           12233                           TCF      +1                                    #  ORIGINAL SHIFT DIRECTION (BIT 9).
046070,001692: 00,2233           12332                           TCF      RIGHT-                                #  NEGATIVE SHIFT COUNT FOR SL OR SLR.
046071,001693: 00,2234           12342                           TCF      LEFT                                  #  SL OR SLR.
046072,001694: 00,2235           12336                           TCF      LEFT-                                 #  NEGATIVE SHIFT COUNT WITH SR OR SRR.
046073,001695: 

Page 1045

046075,001697:                                                                                                  #           GENERAL SHIFT RIGHT.
046076,001698: 
046077,001699: 00,2236           10163        RIGHT              CCS      MODE                                  #  SEE IF VECTOR OR SCALAR.
046078,001700: 00,2237           12277                           TCF      GENSCR                                
046079,001701: 00,2240           12277                           TCF      GENSCR                                
046080,001702: 
046081,001703: 00,2241           30135                           CA       MPTEMP                                #  SEE IF SHIFT COUNT LESS THAN 14D.
046082,001704: 00,2242           63733        VRIGHT2            AD       NEG12                                 
046083,001705: 00,2243           00006                           EXTEND                                         
046084,001706: 00,2244           62127                           BZMF     VSSR                                  #  IF SO, BRANCH AND SHIFT IMMEDIATELY.
046085,001707: 
046086,001708: 00,2245           67761                           AD       NEGONE                                #  IF NOT, REDUCE MPTEMP BY A TOTAL OF 14,
046087,001709: 00,2246           54135                           TS       MPTEMP                                #  AND DO A SHIFT RIGHT AND ROUND BY 14.
046088,001710: 00,2247           34755                           CAF      ZERO                                  #  THE ROUND AT THIS STAGE MAY INTRODUCE A
046089,001711: 00,2250           54001                           TS       L                                     #  ONE BIT ERROR IN A SHIFT RIGHT 15D.
046090,001712: 00,2251           56154                           XCH      MPAC                                  
046091,001713: 00,2252           56155                           XCH      MPAC       +1                         
046092,001714: 00,2253           02272                           TC       SETROUND                              #  X COMPONENT NOW SHIFTED, SO MAKE UP THE
046093,001715: 00,2254           20155                           DAS      MPAC                                  #  ROUNDING QUANTITY (0 IN A AND 0 OR +-1
046094,001716:                                                                                                  #  IN L).
046095,001717: 00,2255           56157                           XCH      MPAC       +3                         #  REPEAT THE ABOVE PROCESS FOR Y AND Z.
046096,001718: 00,2256           56160                           XCH      MPAC       +4                         
046097,001719: 00,2257           02272                           TC       SETROUND                              
046098,001720: 00,2260           20160                           DAS      MPAC       +3                         #  NO OVERFLOW ON THESE ADDS.
046099,001721: 
046100,001722: 00,2261           56161                           XCH      MPAC       +5                         
046101,001723: 00,2262           56162                           XCH      MPAC       +6                         
046102,001724: 00,2263           02272                           TC       SETROUND                              
046103,001725: 00,2264           20162                           DAS      MPAC       +5                         
046104,001726: 
046105,001727: 00,2265           10135                           CCS      MPTEMP                                #  SEE IF DONE, DOING FINAL DECREMENT.
046106,001728: 00,2266           54135                           TS       MPTEMP                                
046107,001729: 00,2267           12242                           TCF      VRIGHT2                               
046108,001730: 00,2270           04604        BIASLO             DEC      .2974      B-1                        #  SQRT CONSTANT
046109,001731: 
046110,001732: 00,2271           16073                           TCF      DANZIG                                
046111,001733: 
046112,001734: 00,2272           60000        SETROUND           DOUBLE                                         #  MAKES UP ROUNDING QUANTITY FROM ARRIVING
046113,001735: 00,2273           54156                           TS       MPAC       +2                         #  C(A). L IS ZERO INITIALLY.
046114,001736: 00,2274           34755                           CAF      ZERO                                  
046115,001737: 00,2275           56001                           XCH      L                                     
046116,001738: 00,2276           00002                           TC       Q                                     #  RETURN AND DO THE DAS, RESETTING L TO 0.
046117,001739: 

Page 1046

046119,001741:                                                                                                  #           PROCESS SR AND SRR FOR SCALARS.
046120,001742: 
046121,001743: 00,2277           30135        GENSCR             CA       MPTEMP                                #  SEE IF THE ORIGINAL SHIFT COUNT WAS LESS
046122,001744: 00,2300           63733                 +1        AD       NEG12                                 #  THAN 14D.
046123,001745: 00,2301           00006                           EXTEND                                         
046124,001746: 00,2302           62322                           BZMF     DOSSHFT                               #  DO THE SHIFT IMMEDIATELY IF SO.
046125,001747: 
046126,001748: 00,2303           67761                 +4        AD       NEGONE                                #  IF NOT, DECREMENT SHIFT COUNT BY 14D AND
046127,001749: 00,2304           54135                           TS       MPTEMP                                #  SHIFT MPAC RIGHT 14 PLACES.
046128,001750: 00,2305           34755                           CAF      ZERO                                  
046129,001751: 00,2306           56154                           XCH      MPAC                                  
046130,001752: 00,2307           56155                           XCH      MPAC       +1                         
046131,001753: 00,2310           54156                           TS       MPAC       +2                         
046132,001754: 00,2311           10135                           CCS      MPTEMP                                #  SEE IF FINISHED, DO FINAL DECREMENT.
046133,001755: 00,2312           54135                           TS       MPTEMP                                
046134,001756: 00,2313           02300                           TC       GENSCR     +1                         
046135,001757: 00,2314           22650        SLOPEHI            DEC      .5884                                 #  SQRT CONSTANT.
046136,001758: 00,2315           34742                           CAF      BIT10                                 #  FINISHED WITH SHIFT. SEE IF ROUND
046137,001759: 00,2316           70116                           MASK     ADDRWD                                #  WANTED.
046138,001760: 00,2317           10000                           CCS      A                                     
046139,001761: 00,2320           07150                           TC       ROUNDSUB                              
046140,001762: 00,2321           16073                           TCF      DANZIG                                #  DO SO AND/OR EXIT.
046141,001763: 
046142,001764: 00,2322           50135        DOSSHFT            INDEX    MPTEMP                                #  PICK UP SHIFTING BIT.
046143,001765: 00,2323           34736                           CAF      BIT14                                 
046144,001766: 00,2324           54135                           TS       MPTEMP                                
046145,001767: 00,2325           34742                           CAF      BIT10                                 #  SEE IF TERMINAL ROUND DESIRED.
046146,001768: 00,2326           70116                           MASK     ADDRWD                                
046147,001769: 00,2327           10000                           CCS      A                                     
046148,001770: 00,2330           12031                           TCF      RIGHTR                                #  YES.
046149,001771: 00,2331           12033                           TCF      MPACSHR                               #  JUST SHIFT RIGHT.
046150,001772: 

Page 1047

046152,001774:                                                                                                  #           PROCESS THE RIGHT- (SL(R) WITH A NEGATIVE COUNT), LEFT-, AND LEFT OPTIONS.
046153,001775: 
046154,001776: 00,2332           40135        RIGHT-             CS       MPTEMP                                #  GET ABSOLUTE VALUE - 1 OF SHIFT COUNT
046155,001777: 00,2333           62126                           AD       OCT176                                #  UNDERSTANDING THAT BIT8 (PSEUDO-SIGN)
046156,001778: 00,2334           54135                           TS       MPTEMP                                #  WAS 1 INITIALLY.
046157,001779: 00,2335           12236                           TCF      RIGHT                                 #  DO NORMAL SHIFT RIGHT.
046158,001780: 
046159,001781: 00,2336           42126        LEFT-              CS       OCT176                                #  SAME PROLOGUE TO LEFT FOR INDEXED RIGHT
046160,001782: 00,2337           60135                           AD       MPTEMP                                #  SHIFTS WHOSE NET SHIFT COUNT IS NEGATIVE
046161,001783: 00,2340           40000                           COM                                            
046162,001784: 00,2341           54135                           TS       MPTEMP                                
046163,001785: 
046164,001786: 00,2342           10163        LEFT               CCS      MODE                                  #  SINCE LEFT SHIFTING IS SONE ONE PLACE AT
046165,001787: 00,2343           12346                           TCF      GENSCL                                #  A TIME, NO COMPARISON WITH 14 NEED BE
046166,001788: 00,2344           12346                           TCF      GENSCL                                #  DONE. FOR SCALARS, SEE IF TERMINAL ROUND
046167,001789: 00,2345           12145                           TCF      VSSL                                  #  DESIRED. FOR VECTORS, SHIFT IMMEDIATELY.
046168,001790: 
046169,001791: 00,2346           40116        GENSCL             CS       ADDRWD                                #  PUT ROUNDING BIT (BIT 10 OF ADDRWD)INTO
046170,001792: 00,2347           00006                           EXTEND                                         #  BIT 15 OF CYR WHERE THE ROUNDING BIT OF
046171,001793: 00,2350           74746                           MP       BIT6                                  #  A SHORT SHIFT LEFT WOULD BE
046172,001794: 00,2351           54020                           TS       CYR                                   
046173,001795: 00,2352           12103                           TCF      TSSL       +2                         #  DO THE SHIFT.
046174,001796: 

Page 1048

046176,001798:                                                                                                  #           SCALAR DIVISION INSTRUCTIONS, DDV AND BDDV, ARE EXECUTED HERE. AT THIS POINT, THE DIVIDEND IS IN MPAC
046177,001799:                                                                                                  #  AND THE DIVISOR IN BUF.
046178,001800: 
046179,001801: 00,2353           44753        DDV/BDDV           CS       ONE                                   #  INITIALIZATION.
046180,001802: 00,2354           54136                           TS       DVSIGN                                #  +-1 FOR POSITIVE QUOTIENT - -0 FOR NEG.
046181,001803: 00,2355           54137                           TS       DVNORMCT                              #  DIVIDEND NORMALIZATION COUNT.
046182,001804: 00,2356           54140                           TS       MAXDVSW                               #  NEAR-ONE DIVIDE FLAG.
046183,001805: 
046184,001806: 00,2357           10130                           CCS      BUF                                   #  FORCE BUF POSITIVE WITH THE MAJOR PART
046185,001807: 00,2360           12516                           TCF      BUFPOS                                #  NON-ZERO.
046186,001808: 00,2361           12363                           TCF      +2                                    
046187,001809: 00,2362           12531                           TCF      BUFNEG                                
046188,001810: 
046189,001811: 00,2363           54156        BUFZERO            TS       MPAC       +2                         #  ZERO THIS.
046190,001812: 00,2364           07271                           TC       TPAGREE                               #  FORCE SIGN AGREEMENT BEFORE OVERFLOW
046191,001813: 
046192,001814: 00,2365           10154                           CCS      MPAC                                  #  TEST TO SEE IF MPAC NON-ZERO.  (TOO BIG)
046193,001815: 00,2366           12414                           TCF      OVF+                                  #  MAJOR PART OF DIVIDEND IS POSITIVE NON-0
046194,001816: 00,2367           12371                           TCF      +2                                    
046195,001817: 00,2370           12413                           TCF      OVF+       -1                         #  MAJOR PART OF DIVIDEND IS NEG. NON-ZERO
046196,001818: 
046197,001819: 00,2371           56131                           XCH      BUF        +1                         #  SHIFT DIVIDEND AND DIVISOR LEFT 14.
046198,001820: 00,2372           56130                           XCH      BUF                                   
046199,001821: 00,2373           56155                           XCH      MPAC       +1                         
046200,001822: 00,2374           56154                           XCH      MPAC                                  
046201,001823: 00,2375           10130                           CCS      BUF                                   #  TRY AGAIN ON FORMER MINOR PART.
046202,001824: 00,2376           12422                           TCF      BUF+                                  
046203,001825: 00,2377           12401                           TCF      +2                                    #  OVERFLOW ON ZERO DIVISOR.
046204,001826: 00,2400           12416                           TCF      BUF-                                  
046205,001827: 
046206,001828: 00,2401           40154                           CS       MPAC                                  #  SIGN OF MPAC DETERMINES SIGN OF RESULT.
046207,001829: 00,2402           00006        SGNDVOVF           EXTEND                                         
046208,001830: 00,2403           62405                           BZMF     +2                                    
046209,001831: 00,2404           24136                           INCR     DVSIGN                                #  NEGMAX IN MPAC PERHAPS.
046210,001832: 00,2405           34733        DVOVF              CAF      POSMAX                                #  ON DIVISION OVERFLOW OF ANY SORT, SET
046211,001833: 00,2406           54154                           TS       MPAC                                  #  SET DP MPAC TO +-POSMAX.
046212,001834: 00,2407           02630                           TC       FINALDV    +3                         
046213,001835: 00,2410           34753                           CAF      ONE                                   #  SET OVERFLOW INDICATOR AND EXIT.
046214,001836: 00,2411           54121                           TS       OVFIND                                
046215,001837: 00,2412           06073                           TC       DANZIG                                
046216,001838: 
046217,001839: 00,2413           24136                 -1        INCR     DVSIGN                                
046218,001840: 00,2414           40131        OVF+               CS       BUF        +1                         #  LOAD LOWER ORDER PART OF DIVISOR.
046219,001841: 00,2415           12402                           TCF      SGNDVOVF                              #  GET SIGN OF RESULT.
046220,001842: 
046221,001843: 00,2416           00006        BUF-               EXTEND                                         #  IF BUF IS NEGATIVE, COMPLEMENT IT AND
046222,001844: 00,2417           40131                           DCS      BUF                                   #  MAINTAIN DVSIGN FOR FINAL QUOTIENT SIGN.
046223,001845: 00,2420           52131                           DXCH     BUF                                   
046224,001846: 00,2421           24136                           INCR     DVSIGN                                #  NOW -0.
046225,001847: 

Page 1049

046227,001849: 00,2422           10154        BUF+               CCS      MPAC                                  #  FORCE MPAC POSITIVE, CHECKING FOR ZERO
046228,001850: 00,2423           12437                           TCF      MPAC+                                 #  DIVIDEND IN THE PROCESS.
046229,001851: 00,2424           12426                           TCF      +2                                    
046230,001852: 00,2425           12433                           TCF      MPAC-                                 
046231,001853: 00,2426           10155                           CCS      MPAC       +1                         
046232,001854: 00,2427           12437                           TCF      MPAC+                                 
046233,001855: 00,2430           16073                           TCF      DANZIG                                #  EXIT IMMEDIATELY ON ZERO DIVIDEND.
046234,001856: 00,2431           12433                           TCF      MPAC-                                 
046235,001857: 00,2432           16073                           TCF      DANZIG                                
046236,001858: 
046237,001859: 00,2433           00006        MPAC-              EXTEND                                         #  FORCE MPAC POSITIVE AS BUF IN BUF-.
046238,001860: 00,2434           40155                           DCS      MPAC                                  
046239,001861: 00,2435           52155                           DXCH     MPAC                                  
046240,001862: 00,2436           24136                           INCR     DVSIGN                                #  NOW +1 OR -0.
046241,001863: 

Page 1050

046243,001865: 00,2437           40154        MPAC+              CS       MPAC                                  #  CHECK FOR DIVISION OVERFLOW. IF THE
046244,001866: 00,2440           67761                           AD       NEGONE                                #  MAJOR PART OF THE DIVIDEND IS LESS THAN
046245,001867: 00,2441           60130                           AD       BUF                                   #  THE MAJOR PART OF THE DIVISOR BY AT
046246,001868: 00,2442           10000                           CCS      A                                     #  LEAST TWO, WE CAN PROCEED IMMEDIATELY
046247,001869: 00,2443           12505                           TCF      DVNORM                                #  WITHOUT NORMALIZATION PRODUCING A DVMAX.
046248,001870: 00,2444           60001        -1/2+2             OCT      60001                                 #  USED IN SQRTSUB.
046249,001871: 
046250,001872: 00,2445           12446                           TCF      +1                                    #  IF THE ABOVE DOES NOT HOLD, FORCE SIGN
046251,001873: 00,2446           34736                           CAF      HALF                                  #  AGREEMENT IN NUMERATOR AND DENOMINATOR
046252,001874: 00,2447           60000                           DOUBLE                                         #  TO FACILITATE OVERFLOW AND NEAR-ONE
046253,001875: 00,2450           60155                           AD       MPAC       +1                         #  CHECKING.
046254,001876: 00,2451           54155                           TS       MPAC       +1                         
046255,001877: 00,2452           34755                           CAF      ZERO                                  
046256,001878: 00,2453           64733                           AD       POSMAX                                
046257,001879: 00,2454           26154                           ADS      MPAC                                  
046258,001880: 
046259,001881: 00,2455           34736                           CAF      HALF                                  #  SAME FOR BUF.
046260,001882: 00,2456           60000                           DOUBLE                                         
046261,001883: 00,2457           60131                           AD       BUF        +1                         
046262,001884: 00,2460           54131                           TS       BUF        +1                         
046263,001885: 00,2461           34755                           CAF      ZERO                                  
046264,001886: 00,2462           64733                           AD       POSMAX                                
046265,001887: 00,2463           26130                           ADS      BUF                                   
046266,001888: 
046267,001889: 00,2464           40154                           CS       MPAC                                  #  CHECK MAGNITUDE OF SIGN-CORRECTED
046268,001890: 00,2465           60130                           AD       BUF                                   #  OPERANDS.
046269,001891: 00,2466           10000                           CCS      A                                     
046270,001892: 00,2467           12505                           TCF      DVNORM                                #  DIVIDE OK - WILL NOT BECOME MAXDV CASE.
046271,001893: 00,2470           00133        LBUF2              ADRES    BUF2                                  
046272,001894: 00,2471           12405                           TCF      DVOVF                                 #  DIVISOR NOT LESS THAN DIVIDEND - OVF.
046273,001895: 
046274,001896: 00,2472           54140                           TS       MAXDVSW                               #  IF THE MAJOR PARTS OF THE DIVIDEND AND
046275,001897: 00,2473           40155                           CS       MPAC       +1                         #  DIVISOR ARE EQUAL, A SPECIAL APPROXIMA-
046276,001898: 00,2474           60131                           AD       BUF        +1                         #  TION IS USED (PROVIDED THE DIVISION IS
046277,001899: 00,2475           00006                           EXTEND                                         #  POSSIBLE, OF COURSE).
046278,001900: 00,2476           62405                           BZMF     DVOVF                                 
046279,001901: 00,2477           12505                           TCF      DVNORM                                #  IF NO OVERFLOW.
046280,001902: 

Page 1051

046282,001904: 00,2500           00006        BUFNORM            EXTEND                                         #  ADD -1 TO AUGMENT SHIFT COUNT AND SHIFT
046283,001905: 00,2501           24137                           AUG      DVNORMCT                              #  LEFT ONE PLACE.
046284,001906: 00,2502           00006                           EXTEND                                         
046285,001907: 00,2503           30131                           DCA      BUF                                   
046286,001908: 00,2504           20131                           DAS      BUF                                   
046287,001909: 
046288,001910: 00,2505           30130        DVNORM             CA       BUF                                   #  SEE IF DIVISOR NORMALIZED YET.
046289,001911: 00,2506           60000                           DOUBLE                                         
046290,001912: 00,2507           54000                           OVSK                                           
046291,001913: 00,2510           12500                           TCF      BUFNORM                               #  NO - SHIFT LEFT ONE AND TRY AGAIN.
046292,001914: 
046293,001915: 00,2511           52155                           DXCH     MPAC                                  #  CALL DIVIDEND NORMALIZATION SEQUENCE
046294,001916: 00,2512           50137                           INDEX    DVNORMCT                              #  PRIOR TO DOING THE DIVIDE.
046295,001917: 00,2513           02565                           TC       MAXTEST                               
046296,001918: 
046297,001919: 00,2514           54156                           TS       MPAC       +2                         #  RETURNS WITH DIVISION DONE AND C(A) = 0.
046298,001920: 00,2515           16073                           TCF      DANZIG                                
046299,001921: 
046300,001922: 00,2516           10000        BUFPOS             CCS      A                                     
046301,001923: 00,2517           12422                           TCF      BUF+                                  #  TO BUF+ IF BUF IS GREATER THAN +1.
046302,001924: 
046303,001925: 00,2520           40131                           CS       BUF        +1                         #  IF BUF IS +1, FORCING SIGN AGREEMENT
046304,001926: 00,2521           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
046305,001927: 00,2522           62422                           BZMF     BUF+                                  #  BRANCH IF SIGNS AGREE.
046306,001928: 
046307,001929: 00,2523           34736                           CA       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
046308,001930: 00,2524           60000                 +6        DOUBLE                                         
046309,001931: 00,2525           26131                           ADS      BUF        +1                         
046310,001932: 00,2526           34755                           CA       ZERO                                  
046311,001933: 00,2527           54130                           TS       BUF                                   
046312,001934: 00,2530           12363                           TCF      BUFZERO                               
046313,001935: 
046314,001936: 00,2531           10000        BUFNEG             CCS      A                                     
046315,001937: 00,2532           12416                           TCF      BUF-                                  #  TO BUF- IF BUF IS LESS THAN -1.
046316,001938: 
046317,001939: 00,2533           30131                           CA       BUF        +1                         #  IF BUF IS -1, FORCING SIGN AGREEMENT
046318,001940: 00,2534           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
046319,001941: 00,2535           62416                           BZMF     BUF-                                  #  BRANCH IF SIGNS AGREE.
046320,001942: 
046321,001943: 00,2536           44736                           CS       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
046322,001944: 00,2537           12524                           TCF      BUFPOS     +6                         
046323,001945: 

Page 1052

046325,001947:                                                                                                  #           THE FOLLOWING ARE PROLOGUES TO SHIFT THE DIVIDEND ARRIVING IN A AND L BEFORE THE DIVIDE.
046326,001948: 
046327,001949: 00,2540           22021                 -21D      LXCH     SR                                    #  SPECIAL PROLOGUE FOR UNIT WHEN THE
046328,001950: 00,2541           00006                           EXTEND                                         #  LENGTH OF THE ARGUMENT WAS NOT LESS THAN
046329,001951: 00,2542           74736                           MP       HALF                                  #  .5. IN THIS CASE, EACH COMPONENT MUST BE
046330,001952: 00,2543           56001                           XCH      L                                     #  SHIFTED RIGHT ONE TO PRODUCE A HALF-UNIT
046331,001953: 00,2544           60021                           AD       SR                                    #  VECTOR.
046332,001954: 00,2545           56001                           XCH      L                                     
046333,001955: 00,2546           12571                           TCF      GENDDV     +1                         #  WITH DP DIVIDEND IN A,L.
046334,001956: 
046335,001957: 00,2547           20001                           DDOUBL                                         #  PROLOGUE WHICH NORMALIZES THE DIVIDEND
046336,001958: 00,2550           20001                           DDOUBL                                         #  WHEN IT IS KNOWN THAT NO DIVISION
046337,001959: 00,2551           20001                           DDOUBL                                         #  OVERFLOW WILL OCCUR.
046338,001960: 00,2552           20001                           DDOUBL                                         
046339,001961: 00,2553           20001                           DDOUBL                                         
046340,001962: 00,2554           20001                           DDOUBL                                         
046341,001963: 00,2555           20001                           DDOUBL                                         
046342,001964: 00,2556           20001                           DDOUBL                                         
046343,001965: 00,2557           20001                           DDOUBL                                         
046344,001966: 00,2560           20001                           DDOUBL                                         
046345,001967: 00,2561           20001                           DDOUBL                                         
046346,001968: 00,2562           20001                           DDOUBL                                         
046347,001969: 00,2563           20001                           DDOUBL                                         
046348,001970: 00,2564           52155                           DXCH     MPAC                                  
046349,001971: 
046350,001972: 00,2565           10140        MAXTEST            CCS      MAXDVSW                               #  0 IF MAJORS MIGHT BE =, -1 OTHERWISE.
046351,001973: 00,2566           06552        BIASHI             DEC      .4192      B-1                        #  SQRT CONSTANTS
046352,001974: 
046353,001975: 00,2567           12642                           TCF      MAXDV                                 #  CHECK TO SEE IF THEY ARE NOW EQUAL.
046354,001976: 

Page 1053

046356,001978:                                                                                                  #           THE FOLLOWING IS A GENERAL PURPOSE DOUBLE PRECISION DIVISION ROUTINE. IT DIVIDES MPAC BY BUF AND LEAVES
046357,001979:                                                                                                  #  THE RESULT IN MPAC. THE FOLLOWING CONDITIONS MUST BE SATISFIED:
046358,001980: 
046359,001981:                                                                                                  #           1.  THE DIVISOR (BUF) MUST BE POSITIVE AND NOT LESS THAN .5.
046360,001982: 
046361,001983:                                                                                                  #           2.  THE DIVIDEND (MPAC) MUST BE POSITIVE WITH THE MAJOR PART OF MPAC STRICTLY LESS THAN THAT OF BUF
046362,001984:                                                                                                  #  (A SPECIAL APPROXIMATION, MAXDV, IS USED WHEN THE MAJOR PARTS ARE EQUAL).
046363,001985: 
046364,001986:                                                                                                  #           UNDERSTANDING THAT A/B = Q + S(R/B) WHERE S = 2(-14) AND Q AND R ARE QUOTIENT AND REMAINDER, RESPEC-
046365,001987:                                                                                                  #  TIVELY, THE FOLLOWING APPROXIMATION IS OBTAINED BY MULTIPLYING ABOVE AND BELOW BY C - SD AND NEGLECTING TERMS OF
046366,001988:                                                                                                  #  ORDER S-SQUARED (POSSIBLY INTRODUCING ERROR INTO THE LOW TWO BITS OF THE RESULT). SIGN AGREEMENT IS UNNECESSARY.
046367,001989: 
046368,001990:                                                                                                  #           A + SB .      (R - QD)                                             A + SB
046369,001991:                                                                                                  #           ------ = Q + S(------) WHERE Q AND R ARE QUOTIENT AND REMAINDER OF ------ RESPECTIVELY.
046370,001992:                                                                                                  #           C + SD        (  C   )                                               C
046371,001993: 
046372,001994: 
046373,001995: 00,2570           52155        GENDDV             DXCH     MPAC                                  #  WE NEED A AND B ONLY FOR FIRST DV.
046374,001996: 00,2571           00006                 +1        EXTEND                                         #  (SPECIAL UNIT PROLOGUE ENTERS HERE).
046375,001997: 00,2572           10130                           DV       BUF                                   #  A NOW CONTAINS Q AND L, R.
046376,001998: 00,2573           52155                           DXCH     MPAC                                  
046377,001999: 
046378,002000: 00,2574           40154                           CS       MPAC                                  #  FORM DIVIDEND FOR MINOR PART OF RESULT.
046379,002001: 00,2575           00006                           EXTEND                                         
046380,002002: 00,2576           70131                           MP       BUF        +1                         
046381,002003: 00,2577           60155                           AD       MPAC       +1                         #  OVERFLOW AT THIS POINT IS POSITIVE SINCE
046382,002004: 00,2600           54000                           OVSK                                           #  R IS POSITIVE IN EVERY CASE.
046383,002005: 00,2601           12606                           TCF      +5                                    
046384,002006: 
046385,002007: 00,2602           00006                           EXTEND                                         #  OVERFLOW CAN BE REMOVED BY SUBTRACTING C
046386,002008: 00,2603           60130                           SU       BUF                                   #  (BUF) ONCE SINCE R IS ALWAYS LESS THAN C
046387,002009: 00,2604           24154                           INCR     MPAC                                  #  IN THIS CASE. INCR COMPENSATES SUBTRACT.
046388,002010: 00,2605           12610                           TCF      +DOWN                                 #  (SINCE C(A) IS STILL POSITIVE).
046389,002011: 
046390,002012: 00,2606           00006                 +5        EXTEND                                         #  C(A) CAN BE MADE LESS THAN C IN MAGNI-
046391,002013: 00,2607           62620                           BZMF     -UP                                   #  TUDE BY DIMINISHING IT BY C (SINCE C IS
046392,002014:                                                                                                  #  NOT LESS THAN .5) UNLESS C(A) = 0.
046393,002015: 

Page 1054

046395,002017: 00,2610           00006        +DOWN              EXTEND                                         
046396,002018: 00,2611           60130                           SU       BUF                                   #  IF POSITIVE, REDUCE ONLY IF NECESSARY
046397,002019: 00,2612           00006                           EXTEND                                         #  SINCE THE COMPENSATING INCR MIGHT CAUSE
046398,002020: 00,2613           12616                           BZF      +3                                    #  OVERFLOW.
046399,002021: 00,2614           00006                           EXTEND                                         #  DONT SUBTRACT UNLESS RESULT IS POSITIVE
046400,002022: 00,2615           62624                           BZMF     ENDMAXDV                              #  OR ZERO.
046401,002023: 
046402,002024: 00,2616           24154                 +3        INCR     MPAC                                  #  KEEP SUBTRACT HERE AND COMPENSATE.
046403,002025: 00,2617           12625                           TCF      FINALDV                               
046404,002026: 
046405,002027: 00,2620           00006        -UP                EXTEND                                         #  IF ZERO, SET MINOR PART OF RESULT TO
046406,002028: 00,2621           12630                           BZF      FINALDV    +3                         #  ZERO.
046407,002029: 
046408,002030: 00,2622           00006                           EXTEND                                         #  IF NEGATIVE, ADD C TO A, SUBTRACTING ONE
046409,002031: 00,2623           26154                           DIM      MPAC                                  #  TO COMPENSATE. DIM IS OK HERE SINCE THE
046410,002032: 00,2624           60130        ENDMAXDV           AD       BUF                                   #  MAJOR PART NEVER GOES NEGATIVE.
046411,002033: 

Page 1055

046413,002035: 00,2625           22007        FINALDV            ZL                                             #  DO DV TO OBTAIN MINOR PART OF RESULT.
046414,002036: 00,2626           00006                           EXTEND                                         
046415,002037: 00,2627           10130                           DV       BUF                                   
046416,002038: 00,2630           54155                 +3        TS       MPAC       +1                         
046417,002039: 
046418,002040: 00,2631           10136                           CCS      DVSIGN                                #  LEAVE RESULT POSITIVE UNLESS C(DVSIGN)=
046419,002041: 00,2632           00002                           TC       Q                                     #  -0.
046420,002042: 00,2633           00002                           TC       Q                                     
046421,002043: 00,2634           00002                           TC       Q                                     
046422,002044: 
046423,002045: 00,2635           00006                           EXTEND                                         
046424,002046: 00,2636           40155                           DCS      MPAC                                  
046425,002047: 00,2637           52155                           DXCH     MPAC                                  
046426,002048: 00,2640           34755                           CAF      ZERO                                  #  SO WE ALWAYS RETURN WITH C(A) = 0.
046427,002049: 00,2641           00002                           TC       Q                                     
046428,002050: 

Page 1056

046430,002052:                                                                                                  #           IF THE MAJOR PARTS OF THE DIVISOR AND DIVIDEND ARE EQUAL, BUT THE MINOR PARTS ARE SUCH THAT THE
046431,002053:                                                                                                  #  DIVIDEND IS STRICTLY LESS THAN THE DIVISOR IN MAGNITUDE, THE FOLLOWING APPROXIMATION IS USED. THE ASSUMPTIONS
046432,002054:                                                                                                  #  ARE THE SAME AS THE GENERAL ROUTINE WITH THE ADDITION THAT SIGN AGREEMENT IS NECESSARY (B, C, & D POSITIVE).
046433,002055: 
046434,002056:                                                                                                  #                  C + SB .          (C + B - D)
046435,002057:                                                                                                  #                  ------ = 37777 + S(---------)
046436,002058:                                                                                                  #                  C + SD            (    C    )
046437,002059: 
046438,002060:                                                                                                  #           THE DIVISION MAY BE PERFORMED IMMEDIATELY SINCE B IS STRICTLY LESS THAN D AND C IS NOT LESS THAN .5.
046439,002061: 
046440,002062: 00,2642           40154        MAXDV              CS       MPAC                                  #  SEE IF MAXDV CASE STILL HOLDS AFTER
046441,002063: 00,2643           60130                           AD       BUF                                   #  NORMALIZATION.
046442,002064: 00,2644           00006                           EXTEND                                         
046443,002065: 00,2645           12647                           BZF      +2                                    
046444,002066: 00,2646           12570                           TCF      GENDDV                                #  MPAC NOW LESS THAN BUF - DIVIDE AS USUAL
046445,002067: 
046446,002068: 00,2647           34733                 +2        CAF      POSMAX                                #  SET MAJOR PART OF RESULT.
046447,002069: 00,2650           54154                           TS       MPAC                                  
046448,002070: 
046449,002071: 00,2651           40131                           CS       BUF        +1                         #  FORM DIVIDEND OF MINOR PART OF RESULT.
046450,002072: 00,2652           60155                           AD       MPAC       +1                         
046451,002073: 00,2653           12624                           TCF      ENDMAXDV                              #  GO ADD C AND DO DIVIDE, ATTACHING SIGN
046452,002074:                                                                                                  #  BEFORE EXITING.
046453,002075: 

Page 1057

046455,002077:                                                                                                  #           VECTOR DIVIDED BY SCALAR, V/SC, IS EXECUTED HERE. THE VECTOR IS NOW IN MPAC WITH SCALAR IN BUF.
046456,002078: 
046457,002079: 00,2654           44753        V/SC2              CS       ONE                                   #  INITIALIZE DIVIDEND NORMALIZATION COUNT
046458,002080: 00,2655           54137                           TS       DVNORMCT                              #  AND DIVISION SIGN REGISTER.
046459,002081: 00,2656           54127                           TS       VBUF       +5                         
046460,002082: 
046461,002083: 00,2657           03010                           TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
046462,002084: 
046463,002085: 00,2660           52131                           DXCH     BUF                                   
046464,002086: 00,2661           07556                           TC       ALSIGNAG                              #  SIGN AGREE BUF
046465,002087: 00,2662           52131                           DXCH     BUF                                   
046466,002088: 00,2663           10130                           CCS      BUF                                   #  FORCE DIVISOR POSITIVE WITH MAJOR PART
046467,002089: 00,2664           12721                           TCF      /BUF+                                 #  NON-ZERO (IF POSSIBLE).
046468,002090: 00,2665           12667                           TCF      +2                                    
046469,002091: 00,2666           12715                           TCF      /BUF-                                 
046470,002092: 
046471,002093: 00,2667           56131                           XCH      BUF        +1                         #  SHIFT VECTOR AND SCALAR LEFT 14.
046472,002094: 00,2670           56130                           XCH      BUF                                   
046473,002095: 00,2671           56155                           XCH      MPAC       +1                         
046474,002096: 00,2672           56154                           XCH      MPAC                                  
046475,002097: 00,2673           00006                           EXTEND                                         #  CHECK FOR OVERFLOW IN EACH CASE.
046476,002098: 00,2674           12676                           BZF      +2                                    
046477,002099: 00,2675           12405                           TCF      DVOVF                                 
046478,002100: 
046479,002101: 00,2676           56160                           XCH      MPAC       +4                         
046480,002102: 00,2677           56157                           XCH      MPAC       +3                         
046481,002103: 00,2700           00006                           EXTEND                                         
046482,002104: 00,2701           12703                           BZF      +2                                    
046483,002105: 00,2702           12405                           TCF      DVOVF                                 
046484,002106: 
046485,002107: 00,2703           56162                           XCH      MPAC       +6                         
046486,002108: 00,2704           56161                           XCH      MPAC       +5                         
046487,002109: 00,2705           00006                           EXTEND                                         
046488,002110: 00,2706           12710                           BZF      +2                                    
046489,002111: 00,2707           12405                           TCF      DVOVF                                 
046490,002112: 
046491,002113: 00,2710           10130                           CCS      BUF                                   
046492,002114: 00,2711           12721                           TCF      /BUF+                                 
046493,002115: 00,2712           12405                           TCF      DVOVF                                 #  ZERO DIVISOR - OVERFLOW.
046494,002116: 00,2713           12715                           TCF      /BUF-                                 
046495,002117: 00,2714           12405                           TCF      DVOVF                                 
046496,002118: 
046497,002119: 00,2715           00006        /BUF-              EXTEND                                         #  ON NEGATIVE, COMPLEMENT BUF AND MAINTAIN
046498,002120: 00,2716           40131                           DCS      BUF                                   #  DVSIGN IN VBUF +5.
046499,002121: 00,2717           52131                           DXCH     BUF                                   
046500,002122: 00,2720           24127                           INCR     VBUF       +5                         
046501,002123: 

Page 1058

046503,002125: 00,2721           00006        /BUF+              EXTEND                                         
046504,002126: 00,2722           30131                           DCA      BUF                                   #  LEAVE ABS(ORIG DIVISOR) IN BUF2
046505,002127: 00,2723           52134                           DXCH     BUF2                                  #  FOR OVERFLOW TESTING
046506,002128: 00,2724           12732                           TCF      /NORM                                 #  NORMALIZE DIVISOR IN BUF.
046507,002129: 
046508,002130: 00,2725           00006        /NORM2             EXTEND                                         #  IF LESS THAN .5, AUGMENT DVNORMCT AND
046509,002131: 00,2726           24137                           AUG      DVNORMCT                              #  DOUBLE DIVISOR.
046510,002132: 00,2727           00006                           EXTEND                                         
046511,002133: 00,2730           30131                           DCA      BUF                                   
046512,002134: 00,2731           20131                           DAS      BUF                                   
046513,002135: 
046514,002136: 00,2732           30130        /NORM              CA       BUF                                   #  SEE IF DIVISOR NORMALIZED.
046515,002137: 00,2733           60000                           DOUBLE                                         
046516,002138: 00,2734           54000                           OVSK                                           
046517,002139: 00,2735           12725                           TCF      /NORM2                                #  DOUBLE AND TRY AGAIN IF NOT.
046518,002140: 
046519,002141: 00,2736           02750                           TC       V/SCDV                                #  DO X COMPONENT DIVIDE.
046520,002142: 00,2737           52160                           DXCH     MPAC       +3                         #  SUPPLY ARGUMENTS IN USUAL SEQUENCE.
046521,002143: 00,2740           52155                           DXCH     MPAC                                  
046522,002144: 00,2741           52160                           DXCH     MPAC       +3                         
046523,002145: 
046524,002146: 00,2742           02750                           TC       V/SCDV                                #  Y COMPONENT.
046525,002147: 00,2743           52162                           DXCH     MPAC       +5                         
046526,002148: 00,2744           52155                           DXCH     MPAC                                  
046527,002149: 00,2745           52162                           DXCH     MPAC       +5                         
046528,002150: 
046529,002151: 00,2746           02750                           TC       V/SCDV                                #  Z COMPONENT.
046530,002152: 00,2747           17432                           TCF      VROTATEX                              #  GO RE-ARRANGE COMPONENTS BEFORE EXIT.
046531,002153: 

Page 1059

046533,002155:                                                                                                  #           SUBROUTINE USED BY V/SC TO DIVIDE VECTOR COMPONENT IN MPAC,+1 BY THE SCALAR GIVEN IN BUF.
046534,002156: 
046535,002157: 00,2750           30127        V/SCDV             CA       VBUF       +5                         #  REFLECTS SIGN OF SCALAR.
046536,002158: 00,2751           54136                           TS       DVSIGN                                
046537,002159: 
046538,002160: 00,2752           10154                           CCS      MPAC                                  #  FORCE MPAC POSITIVE, EXITING ON ZERO.
046539,002161: 00,2753           12767                           TCF      /MPAC+                                
046540,002162: 00,2754           12756                           TCF      +2                                    
046541,002163: 00,2755           12763                           TCF      /MPAC-                                
046542,002164: 
046543,002165: 00,2756           10155                           CCS      MPAC       +1                         
046544,002166: 00,2757           12767                           TCF      /MPAC+                                
046545,002167: 00,2760           00002                           TC       Q                                     
046546,002168: 00,2761           12763                           TCF      /MPAC-                                
046547,002169: 00,2762           00002                           TC       Q                                     
046548,002170: 
046549,002171: 00,2763           00006        /MPAC-             EXTEND                                         #  USUAL COMPLEMENTING AND SETTING OF SIGN.
046550,002172: 00,2764           40155                           DCS      MPAC                                  
046551,002173: 00,2765           52155                           DXCH     MPAC                                  
046552,002174: 00,2766           24136                           INCR     DVSIGN                                
046553,002175: 
046554,002176: 00,2767           44753        /MPAC+             CS       ONE                                   #  INITIALIZE NEAR-ONE SWITCH.
046555,002177: 00,2770           54140                           TS       MAXDVSW                               
046556,002178: 
046557,002179: 00,2771           40154                           CS       MPAC                                  #  CHECK POSSIBLE OVERFLOW.
046558,002180: 00,2772           60133                           AD       BUF2                                  #  UNNORMALIZED INPUT DIVISOR.
046559,002181: 00,2773           10000                           CCS      A                                     
046560,002182: 00,2774           13004                           TCF      DDVCALL                               #  NOT NEAR-ONE
046561,002183: 00,2775           12777                           TCF      +2                                    #  +0 IS JUST POSSIBLE
046562,002184: 00,2776           12405                           TCF      DVOVF                                 #  NO HOPE
046563,002185: 00,2777           54140                           TS       MAXDVSW                               #  SIGNAL POSSIBLE NEAR-ONE CASE
046564,002186: 00,3000           40155                           CS       MPAC       +1                         #  SEE IF DIVISION CAN BE DONE
046565,002187: 00,3001           60134                           AD       BUF2       +1                         
046566,002188: 00,3002           00006                           EXTEND                                         
046567,002189: 00,3003           62405                           BZMF     DVOVF                                 
046568,002190: 
046569,002191: 00,3004           52155        DDVCALL            DXCH     MPAC                                  #  CALL PRE-DIVIDE NORMALIZATION.
046570,002192: 00,3005           50137                           INDEX    DVNORMCT                              
046571,002193: 00,3006           12565                           TCF      MAXTEST                               
046572,002194: 

Page 1060

046574,002196: 00,3007           32506        SLOPELO            DEC      .8324                                 
046575,002197: 
046576,002198: 00,3010           56002        VECAGREE           XCH      Q                                     #  SAVE Q IN A
046577,002199: 00,3011           52155                           DXCH     MPAC                                  
046578,002200: 00,3012           07556                           TC       ALSIGNAG                              #  SIGNAGREE MPAC
046579,002201: 00,3013           52155                           DXCH     MPAC                                  
046580,002202: 00,3014           52160                           DXCH     MPAC       +3                         
046581,002203: 00,3015           07556                           TC       ALSIGNAG                              #  SIGN AGREE MPAC +3
046582,002204: 00,3016           52160                           DXCH     MPAC       +3                         
046583,002205: 00,3017           52162                           DXCH     MPAC       +5                         
046584,002206: 00,3020           07556                           TC       ALSIGNAG                              #  SIGNAGREE MPAC +5
046585,002207: 00,3021           52162                           DXCH     MPAC       +5                         
046586,002208: 00,3022           00000                           TC       A                                     
046587,002209: 

Page 1061

046589,002211:                                                                                                  #           THE FOLLOWING ROUTINE EXECUTES THE UNIT INSTRUCTION, WHICH TAKES THE UNIT OF THE VECTOR IN MPAC.
046590,002212: 
046591,002213: 00,3023           03010        UNIT               TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
046592,002214: 00,3024           07544                           TC       MPACVBUF                              #  SAVE ARGUMENT IN VBUF
046593,002215: 00,3025           34755                           CAF      ZERO                                  #  MUST SENSE OVERFLOW IN FOLLOWING DOT.
046594,002216: 00,3026           56121                           XCH      OVFIND                                
046595,002217: 00,3027           54141                           TS       TEM1                                  
046596,002218: 00,3030           03317                           TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
046597,002219: 00,3031           30141                           CA       TEM1                                  
046598,002220: 00,3032           56121                           XCH      OVFIND                                
046599,002221: 00,3033           00006                           EXTEND                                         
046600,002222: 00,3034           13036                           BZF      +2                                    
046601,002223: 00,3035           12405                           TCF      DVOVF                                 
046602,002224: 00,3036           00006                           EXTEND                                         
046603,002225: 00,3037           30155                           DCA      MPAC                                  #  LEAVE THE SQUARE OF THE LENGTH OF THE
046604,002226: 00,3040           50120                           INDEX    FIXLOC                                #  ARGUMENT IN LVSQUARE.
046605,002227: 00,3041           52043                           DXCH     LVSQUARE                              
046606,002228: 
046607,002229: 00,3042           03343                           TC       SQRTSUB                               #  GO TAKE THE NORMALIZED SQUARE ROOT.
046608,002230: 
046609,002231: 00,3043           10154                           CCS      MPAC                                  #  CHECK FOR UNIT OVERFLOW.
046610,002232: 00,3044           13051                           TCF      +5                                    #  MPAC IS NOT LESS THAN .5 UNLESS
046611,002233: 00,3045           54001                           TS       L                                     
046612,002234: 00,3046           50120                           INDEX    FIXLOC                                
046613,002235: 00,3047           52045                           DXCH     LV                                    
046614,002236: 00,3050           12405                           TCF      DVOVF                                 #  INPUT TO SQRTSUB WAS 0.
046615,002237: 
046616,002238: 00,3051           44317                           CS       FOURTEEN                              #  SEE IF THE INPUT WAS SO SMALL THE THE
046617,002239: 00,3052           60135                           AD       MPTEMP                                #  FIRST TWO REGISTERS OF THE SQUARE WERE 0
046618,002240: 00,3053           10000                           CCS      A                                     
046619,002241: 00,3054           40000                           COM                                            #  IF SO, SAVE THE NEGATIVE OF THE SHIFT
046620,002242: 00,3055           13133                           TCF      SMALL                                 #  COUNT -15D.
046621,002243: 
046622,002244: 00,3056           13065                           TCF      LARGE                                 #  (THIS IS USUALLY THE CASE.)
046623,002245: 
046624,002246: 00,3057           44761                           CS       THIRTEEN                              #  IF THE SHIFT COUNT WAS EXACTLY 14, SET
046625,002247: 00,3060           54135                           TS       MPTEMP                                #  THE PRE-DIVIDE NORM COUNT TO -13D.
046626,002248: 
046627,002249: 00,3061           30154                           CA       MPAC                                  #  SHIFT THE LENGTH RIGHT 14 BEFORE STORING
046628,002250: 00,3062           54001        SMALL2             TS       L                                     #  (SMALL EXITS TO THIS POINT).
046629,002251: 00,3063           34755                           CAF      ZERO                                  
046630,002252: 00,3064           13112                           TCF      LARGE2                                #  GO TO STORE LENGTH AND PROCEED.
046631,002253: 
046632,002254: 00,3065           10135        LARGE              CCS      MPTEMP                                #  MOST ALL CASES COME HERE.
046633,002255: 00,3066           13074                           TCF      LARGE3                                #  SEE IF NO NORMALIZATION WAS REQUIRED BY
046634,002256: 
046635,002257: 00,3067           42024                           CS       SRDDV                                 #  SQRT, AND IF SO, SET UP FOR A SHIFT
046636,002258: 00,3070           54135                           TS       MPTEMP                                #  RIGHT 1 BEFORE DIVIDING TO PRODUCE
046637,002259: 00,3071           00006                           EXTEND                                         #  THE DESIRED HALF UNIT VECTOR.
046638,002260: 00,3072           30155                           DCA      MPAC                                  

Page 1062

046640,002262: 00,3073           13112                           TCF      LARGE2                                
046641,002263: 

Page 1063

046643,002265: 00,3074           40000        LARGE3             COM                                            #  LEAVE NEGATIVE OF SHIFT COUNT-1 FOR
046644,002266: 00,3075           54135                           TS       MPTEMP                                #  PREDIVIDE LEFT SHIFT.
046645,002267: 
046646,002268: 00,3076           40000                           COM                                            #  PICK UP REQUIRED SHIFTING BIT TO UNNORM-
046647,002269: 00,3077           50000                           INDEX    A                                     #  ALIZE THE SQRT RESULT.
046648,002270: 00,3100           34736                           CAF      BIT14                                 
046649,002271: 00,3101           54130                           TS       BUF                                   
046650,002272: 00,3102           00006                           EXTEND                                         
046651,002273: 00,3103           70155                           MP       MPAC       +1                         
046652,002274: 00,3104           56130                           XCH      BUF                                   
046653,002275: 00,3105           00006                           EXTEND                                         #  (UNNORMALIZE THE SQRT FOR LV).
046654,002276: 00,3106           70154                           MP       MPAC                                  
046655,002277: 00,3107           56001                           XCH      L                                     
046656,002278: 00,3110           60130                           AD       BUF                                   
046657,002279: 00,3111           56001                           XCH      L                                     
046658,002280: 
046659,002281: 00,3112           50120        LARGE2             INDEX    FIXLOC                                
046660,002282: 00,3113           52045                           DXCH     LV                                    #  LENGTH NOW STORED IN WORK AREA.
046661,002283: 
046662,002284: 00,3114           44753                           CS       ONE                                   
046663,002285: 00,3115           54140                           TS       MAXDVSW                               #  NO MAXDV CASES IN UNIT.
046664,002286: 
046665,002287: 00,3116           52123                           DXCH     VBUF                                  #  PREPARE X COMPONENT FOR DIVIDE, SETTING
046666,002288: 00,3117           52155                           DXCH     MPAC                                  #  LENGTH OF VECTOR AS DIVISOR IN BUF.
046667,002289: 00,3120           52131                           DXCH     BUF                                   
046668,002290: 00,3121           03151                           TC       UNITDV                                
046669,002291: 
046670,002292: 00,3122           52125                           DXCH     VBUF       +2                         #  DO Y AND Z IN USUAL FASHION SO WE CAN
046671,002293: 00,3123           52155                           DXCH     MPAC                                  #  EXIT THROUGH VROTATEX.
046672,002294: 00,3124           52160                           DXCH     MPAC       +3                         
046673,002295: 00,3125           03151                           TC       UNITDV                                
046674,002296: 
046675,002297: 00,3126           52127                           DXCH     VBUF       +4                         
046676,002298: 00,3127           52155                           DXCH     MPAC                                  
046677,002299: 00,3130           52162                           DXCH     MPAC       +5                         
046678,002300: 00,3131           03151                           TC       UNITDV                                
046679,002301: 00,3132           17432                           TCF      VROTATEX                              #  AND EXIT.
046680,002302: 

Page 1064

046682,002304:                                                                                                  #           IF THE LENGTH OF THE ARGUMENT VECTOR WAS LESS THAN 2(-28), EACH COMPONENT MUST BE SHIFTED LEFT AT LEAST
046683,002305:                                                                                                  #  14 PLACES BEFORE THE DIVIDE. NOTE THAT IN THIS CASE, THE MAJOR PART OF EACH COMPONENT IS ZERO.
046684,002306: 
046685,002307: 00,3133           54135        SMALL              TS       MPTEMP                                #  NEGATIVE OF PRE-DIVIDE SHIFT COUNT.
046686,002308: 
046687,002309: 00,3134           34755                           CAF      ZERO                                  #  SHIFT EACH COMPONENT LEFT 14.
046688,002310: 00,3135           56123                           XCH      VBUF       +1                         
046689,002311: 00,3136           56122                           XCH      VBUF                                  
046690,002312: 00,3137           56125                           XCH      VBUF       +3                         
046691,002313: 00,3140           56124                           XCH      VBUF       +2                         
046692,002314: 00,3141           56127                           XCH      VBUF       +5                         
046693,002315: 00,3142           56126                           XCH      VBUF       +4                         
046694,002316: 
046695,002317: 00,3143           40135                           CS       MPTEMP                                
046696,002318: 00,3144           50000                           INDEX    A                                     
046697,002319: 00,3145           34736                           CAF      BIT14                                 
046698,002320: 00,3146           00006                           EXTEND                                         
046699,002321: 00,3147           70154                           MP       MPAC                                  
046700,002322: 00,3150           13062                           TCF      SMALL2                                
046701,002323: 
046702,002324: 00,3151     4761               THIRTEEN           =        OCT15                                 
046703,002325: 00,3151     4317               FOURTEEN           =        OCT16                                 
046704,002326: 00,3151     4317               OCT16              =        R1D1                                  
046705,002327: 

Page 1065

046707,002329:                                                                                                  #           THE FOLLOWING ROUTINE SETS UP THE CALL TO THE DIVIDE ROUTINES.
046708,002330: 
046709,002331: 00,3151           10154        UNITDV             CCS      MPAC                                  #  FORCE MPAC POSITIVE IF POSSIBLE, SETTING
046710,002332: 00,3152           13170                           TCF      UMPAC+                                #  DVSIGN ACCORDING TO THE SIGN OF MPAC
046711,002333: 00,3153           13155                           TCF      +2                                    #  SINCE THE DIVISOR IS ALWAYS POSITIVE
046712,002334: 00,3154           13162                           TCF      UMPAC-                                #  HERE.
046713,002335: 
046714,002336: 00,3155           10155                           CCS      MPAC       +1                         
046715,002337: 00,3156           13170                           TCF      UMPAC+                                
046716,002338: 00,3157           00002                           TC       Q                                     #  EXIT IMMEDIATELY ON ZERO.
046717,002339: 00,3160           13162                           TCF      UMPAC-                                
046718,002340: 00,3161           00002                           TC       Q                                     
046719,002341: 
046720,002342: 00,3162           44755        UMPAC-             CS       ZERO                                  #  IF NEGATIVE, SET -0 IN DVSIGN FOR FINAL
046721,002343: 00,3163           54136                           TS       DVSIGN                                #  COMPLEMENT.
046722,002344: 00,3164           00006                           EXTEND                                         
046723,002345: 00,3165           40155                           DCS      MPAC                                  #  PICK UP ABSOLUTE VALUE OF ARG AND JUMP.
046724,002346: 00,3166           50135                           INDEX    MPTEMP                                
046725,002347: 00,3167           12564                           TCF      MAXTEST    -1                         
046726,002348: 
046727,002349: 00,3170           54136        UMPAC+             TS       DVSIGN                                #  SET DVSIGN FOR POSITIVE QUOTIENT.
046728,002350: 00,3171           52155                           DXCH     MPAC                                  
046729,002351: 00,3172           50135                           INDEX    MPTEMP                                
046730,002352: 00,3173           12564                           TCF      MAXTEST    -1                         
046731,002353: 

Page 1066

046733,002355:                                                                                                  #           MISCELLANEOUS UNARY OPERATIONS.
046734,002356: 
046735,002357: 00,3174           03300        DSQ                TC       DSQSUB                                #  SQUARE THE DP CONTENTS OF MPAC.
046736,002358: 00,3175           16073                           TCF      DANZIG                                
046737,002359: 
046738,002360: 00,3176           10163        ABVALABS           CCS      MODE                                  #  ABVAL OR ABS INSTRUCTION.
046739,002361: 00,3177           13226                           TCF      ABS                                   #  DO ABS ON SCALAR.
046740,002362: 00,3200           13226                           TCF      ABS                                   
046741,002363: 
046742,002364: 00,3201           03317        ABVAL              TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
046743,002365: 00,3202           22163                           LXCH     MODE                                  #  MODE IS NOW DP (L ZERO AFTER DAS).
046744,002366: 
046745,002367: 00,3203           00006                           EXTEND                                         #  STORE SQUARE OF LENGTH IN WORK AREA.
046746,002368: 00,3204           30155                           DCA      MPAC                                  
046747,002369: 00,3205           50120                           INDEX    FIXLOC                                
046748,002370: 00,3206           52043                           DXCH     LVSQUARE                              
046749,002371: 

Page 1067

046751,002373:                                                                                                  #  PROGRAM DESCRIPTION- SUBROUTINE SQRT
046752,002374:                                                                                                  #  FUNCTIONAL DESCRIPTION-DOUBLE PRECISION SQUARE ROOT ROUTINE
046753,002375:                                                                                                  #      THIS PROGRAM TAKES THE SQUARE ROOT OF THE 27 OR 28 MOST SIGNIFICANT BITS IN THE TRIPLE PRECISION SET OF
046754,002376:                                                                                                  #      NUMBERS-MPAC,MPAC+1,AND MPAC+2.  THE ROOT IS RETURNED DOUBLE        PRECISION IN MPAC AND MPAC+1.
046755,002377:                                                                                                  #  WARNING- THIS SUBROUTINE USES A TRIPLE PRECISION INPUT. THE PROGRAMMER  MUST ASSURE THE CONTENTS OF MPAC+2
046756,002378:                                                                                                  #      ESPECIALLY IF THE CONTENTS OF MPAC IS SMALL OR ZERO.  FOR DETAILS SEE STG MEMO NO.949.
046757,002379:                                                                                                  #  CALLING SEQUENCE- IN INTERPRETIVE MODE I.E., FOLLOWING TC  INTPRET,SQRT   NO ADDRESS IS ALLOWED
046758,002380:                                                                                                  #  INPUT SCALING  THE BINARY POINT IS ASSUMED TO THE RIGHT OF BIT 15. THE  ANSWER IS RETURNED WITH THE SAME SCALING
046759,002381:                                                                                                  #  SUBROUTINES- GENSCR,MPACSHR, SQRTSUB,ABORT
046760,002382:                                                                                                  #  ABORT EXIT MODE- ABORTS ON NEGATIVE INPUT -1.2X10E-4 (77775  OCTAL)     OR LESS.
046761,002383:                                                                                                  #      DISPLAYS ERROR CODE 1302
046762,002384:                                                                                                  #                  TC   ABORT
046763,002385:                                                                                                  #                  OCT  1302
046764,002386:                                                                                                  #  DEBRIS -  LOCATIONS BUF,MPTEMP,ADDRWD ARE USED
046765,002387: 00,3207           03343        SQRT               TC       SQRTSUB                               #  TAKE THE SQUARE ROOT OF MPAC.
046766,002388: 00,3210           10135                           CCS      MPTEMP                                #  RETURNED NORMALIZED SQUARE ROOT. SEE IF
046767,002389: 00,3211           13213                           TCF      +2                                    #  ANY UN-NORMALIZATION REQUIRED AND EXIT
046768,002390: 00,3212           16073                           TCF      DANZIG                                #  IF NOT.
046769,002391: 
046770,002392: 00,3213           63733                           AD       NEG12                                 #  A RIGHT SHIFT OF MORE THAN 13 COULD BE
046771,002393: 00,3214           00006                           EXTEND                                         #  REQUIRED IF INPUT WAS ZERO IN MPAC,+1.
046772,002394: 00,3215           63221                           BZMF     SQRTSHFT                              #  GOES HERE IN MOST CASES.
046773,002395: 00,3216           22007                           ZL                                             #  IF A LONG SHIFT IS REQUIRED, GO TO
046774,002396: 00,3217           22116                           LXCH     ADDRWD                                #  GENERAL RIGHT SHIFT ROUTINES.
046775,002397: 00,3220           12303                           TCF      GENSCR     +4                         #  ADDRWD WAS ZERO TO PREVENT ROUND.
046776,002398: 
046777,002399: 00,3221           50135        SQRTSHFT           INDEX    MPTEMP                                #  SELECT SHIFTING BIT AND EXIT THROUGH
046778,002400: 00,3222           34735                           CAF      BIT15                                 #  SHIFT ROUTINES.
046779,002401: 00,3223           54135                           TS       MPTEMP                                
046780,002402: 00,3224           34755                           CAF      ZERO                                  #  TO ZERO MPAC +2 IN THE PROCESS.
046781,002403: 00,3225           12036                           TCF      MPACSHR    +3                         
046782,002404: 
046783,002405: 00,3226           06735        ABS                TC       BRANCH                                #  TEST SIGN OF MPAC AND COMPLEMENT IF
046784,002406: 00,3227           16073                           TCF      DANZIG                                
046785,002407: 00,3230           16073                           TCF      DANZIG                                
046786,002408: 00,3231           17702                           TCF      COMP                                  
046787,002409: 

Page 1068

046789,002411: 00,3232           44751        VDEF               CS       FOUR                                  #  VECTOR DEFINE - ESSENTIALLY TREATS
046790,002412: 00,3233           26166                           ADS      PUSHLOC                               #  SCALAR IN MPAC AS X COMPONENT, PUSHES UP
046791,002413: 00,3234           00006                           EXTEND                                         #  FOR Y AND THEN AGAIN FOR Z.
046792,002414: 00,3235           50000                           INDEX    A                                     
046793,002415: 00,3236           30003                           DCA      2                                     
046794,002416: 00,3237           52160                           DXCH     MPAC       +3                         
046795,002417: 00,3240           00006                           EXTEND                                         
046796,002418: 00,3241           50166                           INDEX    PUSHLOC                               
046797,002419: 00,3242           30001                           DCA      0                                     
046798,002420: 00,3243           52162                           DXCH     MPAC       +5                         
046799,002421: 00,3244           16533                           TCF      VMODE                                 #  MODE IS NON VECTOR.
046800,002422: 
046801,002423: 00,3245           03317        VSQ                TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
046802,002424: 00,3246           17344                           TCF      DMODE                                 #  MODE IS NOW DP.
046803,002425: 
046804,002426: 00,3247           00006        PUSH               EXTEND                                         #  PUSH DOWN MPAC LEAVING IT LOADED.
046805,002427: 00,3250           30155                           DCA      MPAC                                  
046806,002428: 00,3251           50166                           INDEX    PUSHLOC                               #  PUSH DOWN FIRST TWO REGISTERS IN EACH
046807,002429: 00,3252           52001                           DXCH     0                                     
046808,002430: 
046809,002431: 00,3253           50163                           INDEX    MODE                                  #  INCREMENT PUSHDOWN POINTER.
046810,002432: 00,3254           36256                           CAF      NO.WDS                                
046811,002433: 00,3255           26166                           ADS      PUSHLOC                               
046812,002434: 
046813,002435: 00,3256           10163                           CCS      MODE                                  
046814,002436: 00,3257           13272                           TCF      TPUSH                                 #  PUSH DOWN MPAC +2.
046815,002437: 00,3260           16073                           TCF      DANZIG                                #  DONE FOR DP.
046816,002438: 
046817,002439: 00,3261           00006                           EXTEND                                         #  ON VECTOR, PUSH DOWN Y AND Z COMPONENTS.
046818,002440: 00,3262           30160                           DCA      MPAC       +3                         
046819,002441: 00,3263           50166                           INDEX    PUSHLOC                               
046820,002442: 00,3264           51775                           DXCH     0          -4                         
046821,002443: 00,3265           00006                           EXTEND                                         
046822,002444: 00,3266           30162                           DCA      MPAC       +5                         
046823,002445: 00,3267           50166                           INDEX    PUSHLOC                               
046824,002446: 00,3270           51777                           DXCH     0          -2                         
046825,002447: 00,3271           16073                           TCF      DANZIG                                
046826,002448: 
046827,002449: 00,3272           30156        TPUSH              CA       MPAC       +2                         
046828,002450: 00,3273           16566                           TCF      ENDTPUSH   +2                         
046829,002451: 
046830,002452: 00,3274           50120        RVQ                INDEX    FIXLOC                                #  RVQ - RETURN IVA QPRET.
046831,002453: 00,3275           30052                           CA       QPRET                                 
046832,002454: 00,3276           54117                           TS       POLISH                                
046833,002455: 00,3277           16664                           TCF      GOTO       +4                         #  (ASSUME QPRET POINTS TO FIXED ONLY.)
046834,002456: 

Page 1069

046836,002458:                                                                                                  #           THE FOLLOWING SUBROUTINES ARE USED IN SQUARING MPAC, IN BOTH THE SCALAR AND VECTOR SENSE. THEY ARE
046837,002459:                                                                                                  #  SPECIAL CASES OF DMPSUB AND DOTSUB, PUT IN TO SAVE SOME TIME.
046838,002460: 
046839,002461: 00,3300           30155        DSQSUB             CA       MPAC       +1                         #  SQUARES THE SCALAR CONTENTS OF MPAC.
046840,002462: 00,3301           00006                           EXTEND                                         
046841,002463: 00,3302           70000                           SQUARE                                         
046842,002464: 00,3303           54156                           TS       MPAC       +2                         
046843,002465: 00,3304           34755                           CAF      ZERO                                  #  FORM 2(CROSS TERM).
046844,002466: 00,3305           56155                           XCH      MPAC       +1                         
046845,002467: 00,3306           00006                           EXTEND                                         
046846,002468: 00,3307           70154                           MP       MPAC                                  
046847,002469: 00,3310           20001                           DDOUBL                                         #  AND MAYBE OVERFLOW.
046848,002470: 00,3311           20156                           DAS      MPAC       +1                         #  AND SET A TO NET OVERFLOW.
046849,002471: 00,3312           56154                           XCH      MPAC                                  
046850,002472: 00,3313           00006                           EXTEND                                         
046851,002473: 00,3314           70000                           SQUARE                                         
046852,002474: 00,3315           20155                           DAS      MPAC                                  
046853,002475: 00,3316           00002                           TC       Q                                     
046854,002476: 
046855,002477: 00,3317           00006        VSQSUB             EXTEND                                         #  DOTS THE VECTOR IN MPAC WITH ITSELF.
046856,002478: 00,3320           22137                           QXCH     DOTRET                                
046857,002479: 00,3321           03300                           TC       DSQSUB                                #  SQUARE THE X COMPONENT.
046858,002480: 00,3322           52160                           DXCH     MPAC       +3                         
046859,002481: 00,3323           52155                           DXCH     MPAC                                  
046860,002482: 00,3324           52131                           DXCH     BUF                                   #  SO WE CAN END IN DOTSUB.
046861,002483: 00,3325           30156                           CA       MPAC       +2                         
046862,002484: 00,3326           54132                           TS       BUF        +2                         
046863,002485: 
046864,002486: 00,3327           03300                           TC       DSQSUB                                #  SQUARE Y COMPONENT.
046865,002487: 00,3330           52156                           DXCH     MPAC       +1                         
046866,002488: 00,3331           20132                           DAS      BUF        +1                         
046867,002489: 00,3332           60154                           AD       MPAC                                  
046868,002490: 00,3333           60130                           AD       BUF                                   
046869,002491: 00,3334           54130                           TS       BUF                                   
046870,002492: 00,3335           13337                           TCF      +2                                    
046871,002493: 00,3336           54121                           TS       OVFIND                                #  IF OVERFLOW.
046872,002494: 
046873,002495: 00,3337           52162                           DXCH     MPAC       +5                         
046874,002496: 00,3340           52155                           DXCH     MPAC                                  
046875,002497: 00,3341           03300                           TC       DSQSUB                                #  SQUARE Z COMPONENT.
046876,002498: 00,3342           17217                           TCF      ENDDOT                                #  END AS IN DOTSUB.
046877,002499: 

Page 1070

046879,002501:                                                                                                  #           DOUBLE PRECISION SQUARE ROOT ROUTINE. TAKE THE SQUARE ROOT OF THE TRIPLE PRECISION (MPAC +2 USED ONLY
046880,002502:                                                                                                  #  IN NORMALIZATION) CONTENTS OF MPAC AND LEAVE THE NORMALIZED RESULT IN MPAC (C(MPAC) GREATER THAN OR EQUAL TO
046881,002503:                                                                                                  #  .5). THE RIGHT SHIFT COUNT (TO UNNORMALIZE) IS LEFT IN MPTEMP.
046882,002504: 
046883,002505: 00,3343           34755        SQRTSUB            CAF      ZERO                                  #  START BY ZEROING RIGHT SHIFT COUNT.
046884,002506: 00,3344           54135                           TS       MPTEMP                                
046885,002507: 
046886,002508: 00,3345           10154                           CCS      MPAC                                  #  CHECK FOR POSITIVE ARGUMENT, SHIFTING
046887,002509: 00,3346           13405                           TCF      SMPAC+                                #  FIRST SIGNIFICANT MPAC REGISTER INTO
046888,002510: 00,3347           13351                           TCF      +2                                    #  MPAC ITSELF.
046889,002511: 00,3350           13373                           TCF      SQRTNEG                               #  SEE IF MAG OF ARGUMENT LESS THAN 10(-4).
046890,002512: 
046891,002513: 00,3351           56156                           XCH      MPAC       +2                         #  MPAC IS ZERO - SHIFT LEFT 14.
046892,002514: 00,3352           56155                           XCH      MPAC       +1                         
046893,002515: 00,3353           54154                           TS       MPAC                                  
046894,002516: 00,3354           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
046895,002517: 00,3355           54135                           TS       MPTEMP                                
046896,002518: 
046897,002519: 00,3356           10154                           CCS      MPAC                                  #  SEE IF MPAC NOW PNZ.
046898,002520: 00,3357           13405                           TCF      SMPAC+                                
046899,002521: 00,3360           13362                           TCF      +2                                    
046900,002522: 00,3361           13376                           TCF      ZEROANS                               #  NEGATIVE BUT LESS THAN 10(-4) IN MAG.
046901,002523: 
046902,002524: 00,3362           56155                           XCH      MPAC       +1                         #  ZERO - SHIFT LEFT 14 AGAIN.
046903,002525: 00,3363           54154                           TS       MPAC                                  
046904,002526: 00,3364           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
046905,002527: 00,3365           26135                           ADS      MPTEMP                                
046906,002528: 
046907,002529: 00,3366           10154                           CCS      MPAC                                  
046908,002530: 00,3367           13405                           TCF      SMPAC+                                
046909,002531: 00,3370           00002                           TC       Q                                     #  SQRT(0) = 0.
046910,002532: 00,3371           13376                           TCF      ZEROANS                               
046911,002533: 00,3372           13453                           TCF      FIXROOT                               #  DO NOT LEAVE SQRTSUB WITH -0 IN MPAC.
046912,002534: 
046913,002535: 00,3373           10000        SQRTNEG            CCS      A                                     #  ARGUMENT IS NEGATIVE, BUT SEE IF SIGN-
046914,002536: 00,3374           13402                           TCF      SQRTABRT                              #  CORRECTED ARGUMENT IS LESS THAN 10(-4)
046915,002537: 
046916,002538: 00,3375           10155                           CCS      MPAC       +1                         #  IN MAGNITUDE. IF SO, CALL ANSWER ZERO.
046917,002539: 00,3376           34755        ZEROANS            CAF      ZERO                                  #  FORCE ANSWER TO ZERO HERE.
046918,002540: 00,3377           13453                           TCF      FIXROOT                               
046919,002541: 00,3400           13402                           TCF      SQRTABRT                              
046920,002542: 00,3401           13453                           TCF      FIXROOT                               
046921,002543: 
046922,002544: 00,3402           52165        SQRTABRT           DXCH     LOC                                   
046923,002545: 00,3403           05727                           TC       POODOO1                               
046924,002546: 00,3404           21302                           OCT      21302                                 
046925,002547: 
046926,002548: 00,3405           62444        SMPAC+             AD       -1/2+2                                #  SEE IF ARGUMENT GREATER THAN OR EQUAL TO

Page 1071

046928,002550: 00,3406           00006                           EXTEND                                         #  .5.
046929,002551: 00,3407           63456                           BZMF     SRTEST                                #  IF SO, SEE IF LESS THAN .25.
046930,002552: 
046931,002553: 00,3410           52155                           DXCH     MPAC                                  #  WE WILL TAKE THE SQUARE ROOT OF MPAC/2.
046932,002554: 00,3411           22021                           LXCH     SR                                    #  SHIFT RIGHT 1 AND GO TO THE SQRT ROUTINE
046933,002555: 00,3412           00006                           EXTEND                                         
046934,002556: 00,3413           74736                           MP       HALF                                  
046935,002557: 00,3414           52155                           DXCH     MPAC                                  
046936,002558: 00,3415           56021                           XCH      SR                                    
046937,002559: 00,3416           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
046938,002560: 
046939,002561: 00,3417           32314        ARGHI              CAF      SLOPEHI                               #  ARGUMENT BETWEEN .25 AND .5. GET A
046940,002562: 00,3420           00006                           EXTEND                                         #  LINEAR APPROXIMATION FOR THIS RANGE.
046941,002563: 00,3421           70154                           MP       MPAC                                  
046942,002564: 00,3422           62566                           AD       BIASHI                                #  X0/2 = (MPAC/2)(SLOPEHI) + BIASHI/2.
046943,002565: 
046944,002566: 00,3423           54130                 +4        TS       BUF                                   #  X0/2 (ARGLO ENTERS HERE).
046945,002567: 00,3424           30154                           CA       MPAC                                  #  SINGLE-PRECISION THROUGHOUT.
046946,002568: 00,3425           22007                           ZL                                             
046947,002569: 00,3426           00006                           EXTEND                                         
046948,002570: 00,3427           10130                           DV       BUF                                   #  (MPAC/2)/(X0/2)
046949,002571: 00,3430           00006                           EXTEND                                         
046950,002572: 00,3431           74736                           MP       HALF                                  
046951,002573: 00,3432           26130                           ADS      BUF                                   #  X1 = X0/2 + .5(MPAC/2)/(X0/2).
046952,002574: 
046953,002575: 00,3433           00006                           EXTEND                                         
046954,002576: 00,3434           74736                           MP       HALF                                  #  FORM UP X1/2.
046955,002577: 00,3435           52155                           DXCH     MPAC                                  #  SAVE AND BRING OUT ARGUMENT.
046956,002578: 00,3436           00006                           EXTEND                                         #  TAKE DP QUOTIENT WITH X1.
046957,002579: 00,3437           10130                           DV       BUF                                   
046958,002580: 00,3440           54131                           TS       BUF        +1                         #  SAVE MAJOR PART OF QUOTIENT.
046959,002581: 00,3441           34755                           CAF      ZERO                                  #  FORM MINOR PART OF QUOTIENT USING
046960,002582: 00,3442           56001                           XCH      L                                     #  (REMAINDER,0).
046961,002583: 00,3443           00006                           EXTEND                                         
046962,002584: 00,3444           10130                           DV       BUF                                   
046963,002585: 00,3445           54001                           TS       L                                     #  IN PREPARATION FOR DAS.
046964,002586: 00,3446           30131                           CA       BUF        +1                         
046965,002587: 00,3447           20155                           DAS      MPAC                                  #  X2 = X1/2 + (MPAC/2)X1
046966,002588: 
046967,002589: 00,3450           00006                           EXTEND                                         #  OVERFLOWS IF ARG. NEAR POSMAX.
046968,002590: 00,3451           13455                           BZF      TCQBNK00                              
046969,002591: 00,3452           34733                           CAF      POSMAX                                
046970,002592: 00,3453           54154        FIXROOT            TS       MPAC                                  
046971,002593: 00,3454           54155                           TS       MPAC       +1                         
046972,002594: 00,3455           00002        TCQBNK00           TC       Q                                     #  RETURN TO CALLER TO UNNORMALIZE, ETC.
046973,002595: 

Page 1072

046975,002597: 00,3456           64737        SRTEST             AD       QUARTER                               #  ARGUMENT WAS LESS THAN .5, SEE IF LESS
046976,002598: 00,3457           00006                           EXTEND                                         #  THAN .25.
046977,002599: 00,3460           63502                           BZMF     SQRTNORM                              #  IF SO, BEGIN NORMALIZATION.
046978,002600: 
046979,002601: 00,3461           52155                           DXCH     MPAC                                  #  IF BETWEEN .5 AND .25, SHIFT RIGHT 1 AND
046980,002602: 00,3462           22021                           LXCH     SR                                    #  START AT ARGLO.
046981,002603: 00,3463           00006                           EXTEND                                         
046982,002604: 00,3464           74736                           MP       HALF                                  
046983,002605: 00,3465           52155                           DXCH     MPAC                                  
046984,002606: 00,3466           56021                           XCH      SR                                    
046985,002607: 00,3467           26155                           ADS      MPAC       +1                         #  NO OVERFLOW.
046986,002608: 
046987,002609: 00,3470           33007        ARGLO              CAF      SLOPELO                               #  (NORMALIZED) ARGUMENT BETWEEN .125 AND
046988,002610: 00,3471           00006                           EXTEND                                         #  .25
046989,002611: 00,3472           70154                           MP       MPAC                                  
046990,002612: 00,3473           62270                           AD       BIASLO                                
046991,002613: 00,3474           13423                           TCF      ARGHI      +4                         #  BEGIN SQUARE ROOT.
046992,002614: 
046993,002615: 00,3475           00006        SQRTNM2            EXTEND                                         #  SHIFT LEFT 2 AND INCREMENT RIGHT SHIFT
046994,002616: 00,3476           30156                           DCA      MPAC       +1                         #  COUNT (FOR TERMINAL UNNORMALIZATION).
046995,002617: 00,3477           20156                           DAS      MPAC       +1                         
046996,002618: 00,3500           60154                           AD       MPAC                                  
046997,002619: 00,3501           26154                           ADS      MPAC                                  #  (NO OVERFLOW).
046998,002620: 
046999,002621: 00,3502           24135        SQRTNORM           INCR     MPTEMP                                #  FIRST TIME THROUGH, JUST SHIFT LEFT 1
047000,002622: 00,3503           00006                           EXTEND                                         #  (PUTS IN EFFECTIVE RIGHT SHIFT SINCE
047001,002623: 00,3504           30156                           DCA      MPAC       +1                         #  WE WANT MPAC/2).
047002,002624: 00,3505           20156                           DAS      MPAC       +1                         
047003,002625: 00,3506           60154                           AD       MPAC                                  
047004,002626: 00,3507           26154                           ADS      MPAC                                  #  (AGAIN NO OVERFLOW).
047005,002627: 00,3510           60000                           DOUBLE                                         
047006,002628: 00,3511           54022                           TS       CYL                                   
047007,002629: 
047008,002630: 00,3512           10022        NORMTEST           CCS      CYL                                   #  SEE IF ARGUMENT NOW NORMALIZED AT
047009,002631: 00,3513           10022                           CCS      CYL                                   #  GREATER THAN .125.
047010,002632: 00,3514           13475                           TCF      SQRTNM2                               #  NO - SHIFT LEFT 2 MORE AND TRY AGAIN.
047011,002633: 00,3515           13417                           TCF      ARGHI                                 #  YES - NOW BETWEEN .5 AND .25.
047012,002634: 00,3516           13470                           TCF      ARGLO                                 #  ARGUMENT NOW BETWEEN .25 AND .125.
047013,002635: 

Page 1073

047015,002637:                                                                                                  #  TRIGONOMETRIC FUNCTION PACKAGE.
047016,002638: 
047017,002639:                                                                                                  #           THE FOLLOWING TRIGONOMETRIC FUNCTIONS ARE AVAILABLE AS INTERPRETIVE OPERATIONS:
047018,002640: 
047019,002641:                                                                                                  #           1.  SIN                COMPUTES (1/2)SINE(2 PI MPAC).
047020,002642:                                                                                                  #           2.  COS                COMPUTES (1/2)COSINE(2 PI MPAC).
047021,002643: 
047022,002644:                                                                                                  #           3.  ASIN               COMPUTES (1/2PI)ARCSINE(2 MPAC).
047023,002645:                                                                                                  #           4.  ACOS               COMPUTES (1/2PI)ARCCOSINE(2 MPAC).
047024,002646: 
047025,002647:                                                                                                  #  SIN-ASIN AND COS-ACOS ARE MUTUALLY INVERSE, IE SIN(ASIN(X)) = X.
047026,002648: 
047027,002649: 00,3517           06735        COSINE             TC       BRANCH                                #  FINDS COSINE USING THE IDENTITY
047028,002650: 00,3520           13523                           TCF      +3                                    #  COS(X) = SIN(PI/2 - ABS(X)).
047029,002651: 00,3521           13526                           TCF      PRESINE                               
047030,002652: 00,3522           13526                           TCF      PRESINE                               
047031,002653: 
047032,002654: 00,3523           00006                 +3        EXTEND                                         
047033,002655: 00,3524           40155                           DCS      MPAC                                  
047034,002656: 00,3525           52155                           DXCH     MPAC                                  
047035,002657: 
047036,002658: 00,3526           34737        PRESINE            CAF      QUARTER                               #  PI/2 SCALED.
047037,002659: 00,3527           26154                           ADS      MPAC                                  
047038,002660: 
047039,002661: 
047040,002662: 00,3530           52155        SINE               DXCH     MPAC                                  #  DOUBLE ARGUMENT.
047041,002663: 00,3531           20001                           DDOUBL                                         
047042,002664: 00,3532           54000                           OVSK                                           #  SEE IF OVERFLOW PRESENT.
047043,002665: 00,3533           13536                           TCF      +3                                    #  IF NOT, ARGUMENT OK AS IS.
047044,002666: 
047045,002667: 00,3534           00006                           EXTEND                                         #  IF SO, WE LOST (OR GAINED) PI, SO
047046,002668: 00,3535           40001                           DCOM                                           #  COMPLEMENT MPAC USING THE IDENTITY
047047,002669:                                                                                                  #  SIN(X-(+)PI) = SIN(-X).
047048,002670: 00,3536           52155                 +3        DXCH     MPAC                                  
047049,002671: 00,3537           30154                           CA       MPAC                                  #  SEE IF ARGUMENT GREATER THAN .5 IN
047050,002672: 00,3540           60000                           DOUBLE                                         #  MAGNITUDE. IF SO, REDUCE IT TO LESS THAN
047051,002673: 00,3541           54001                           TS       L                                     #  .5 (+-PI/2 SCALED) AS FOLLOWS:
047052,002674: 00,3542           13553                           TCF      SN1                                   
047053,002675: 
047054,002676: 00,3543           50000                           INDEX    A                                     #  IF POSITIVE, FORM PI - X, IF NEGATIVE
047055,002677: 00,3544           34735                           CAF      NEG1/2     +1                         #  USE -PI - X.
047056,002678: 00,3545           60000                           DOUBLE                                         
047057,002679: 00,3546           00006                           EXTEND                                         
047058,002680: 00,3547           60154                           SU       MPAC                                  #  GUARANTEED NO OVERFLOW.
047059,002681: 00,3550           54154                           TS       MPAC                                  
047060,002682: 00,3551           40155                           CS       MPAC       +1                         
047061,002683: 00,3552           54155                           TS       MPAC       +1                         
047062,002684: 

Page 1074

047064,002686: 00,3553           00006        SN1                EXTEND                                         #  SET UP TO EVALUATE HASTINGS POLYNOMIAL
047065,002687: 00,3554           30155                           DCA      MPAC                                  
047066,002688: 00,3555           52134                           DXCH     BUF2                                  
047067,002689: 00,3556           03300                           TC       DSQSUB                                #  SQUARE MPAC.
047068,002690: 
047069,002691: 00,3557           07234                           TC       POLY                                  #  EVALUATE FOURTH ORDER POLYNOMIAL.
047070,002692: 00,3560           00003                           DEC      3          B-14                       
047071,002693: 00,3561           14441 37325                     2DEC     +.3926990796                            
047072,002694: 
047073,002695: 00,3563           53250 60764                     2DEC     -.6459637111                            
047074,002696: 
047075,002697: 00,3565           12146 21276                     2DEC     +.318758717                            
047076,002698: 
047077,002699: 00,3567           75466 71471                     2DEC     -.074780249                            
047078,002700: 
047079,002701: 00,3571           00236 32757                     2DEC     +.009694988                            
047080,002702: 
047081,002703: 
047082,002704: 00,3573           32470                           CAF      LBUF2                                 #  MULTIPLY BY ARGUMENT AND SHIFT LEFT 2.
047083,002705: 00,3574           07120                           TC       DMPSUB     -1                         
047084,002706: 
047085,002707: 00,3575           00006                           EXTEND                                         
047086,002708: 00,3576           30156                           DCA      MPAC       +1                         
047087,002709: 00,3577           20156                           DAS      MPAC       +1                         
047088,002710: 00,3600           60154                           AD       MPAC                                  
047089,002711: 00,3601           26154                           ADS      MPAC                                  #  NEITHER SHIFT OVERFLOWS.
047090,002712: 00,3602           00006                           EXTEND                                         
047091,002713: 00,3603           30156                           DCA      MPAC       +1                         
047092,002714: 00,3604           20156                           DAS      MPAC       +1                         
047093,002715: 00,3605           60154                           AD       MPAC                                  
047094,002716: 00,3606           26154                           ADS      MPAC                                  
047095,002717: 00,3607           16073                           TCF      DANZIG                                
047096,002718: 

Page 1075

047098,002720:                                                                                                  #           ARCSIN/ARCCOS ROUTINE.
047099,002721: 
047100,002722: 00,3610           33631        ARCSIN             CAF      LASINEX                               #  COMPUTE ARCSIN BY USING THE IDENTITY
047101,002723: 00,3611           13613                           TCF      +2                                    #  ARCSIN(X) = PI/2 - ARCCOS(X).
047102,002724: 
047103,002725: 00,3612           33713        ARCCOS             CAF      LDANZIG                               #  (EXITS IMMEDIATELY).
047104,002726: 00,3613           54136                           TS       ESCAPE                                
047105,002727: 00,3614           06735                           TC       BRANCH                                #  TEST SIGN OF INPUT.
047106,002728: 00,3615           13625                           TCF      ACOSST                                #  START IMMEDIATELY IF POSITIVE.
047107,002729: 00,3616           13731                           TCF      ACOSZERO                              #  ARCCOS(0) = PI/2 = .25.
047108,002730: 00,3617           00006                           EXTEND                                         #  IF NEGATIVE, USE THE IDENTITY
047109,002731: 00,3620           40155                           DCS      MPAC                                  #  ARCCOS(X) = PI - ARCCOS(-X), FORCING
047110,002732: 00,3621           52155                           DXCH     MPAC                                  #  ARGUMENT POSITIVE.
047111,002733: 00,3622           33734                           CAF      TCSUBTR                               #  SET EXIT  TO DO ABOVE BEFORE
047112,002734: 00,3623           56136                           XCH      ESCAPE                                #  ARCSIN/ARCCOS CONSIDERATIONS.
047113,002735: 00,3624           54137                           TS       ESCAPE2                               
047114,002736: 
047115,002737: 00,3625           44736        ACOSST             CS       HALF                                  #  TEST MAGNITUDE OF INPUT.
047116,002738: 00,3626           60154                           AD       MPAC                                  
047117,002739: 00,3627           10000                           CCS      A                                     
047118,002740: 00,3630           13721                           TCF      ACOSOVF                               #  THIS IS PROBABLY AN OVERFLOW CASE.
047119,002741: 
047120,002742: 00,3631           13707        LASINEX            TCF      ASINEX                                
047121,002743: 
047122,002744: 00,3632           13642                           TCF      ACOSST2                               #  NO OVERFLOW - PROCEED.
047123,002745: 
047124,002746: 00,3633           10155                           CCS      MPAC       +1                         #  IF MAJOR PART IS .5, CALL ANSWER 0
047125,002747: 00,3634           34755                           CAF      ZERO                                  #  UNLESS MINOR PART NEGATIVE.
047126,002748: 00,3635           13637                           TCF      ACOS=0                                
047127,002749: 
047128,002750: 00,3636           13642                           TCF      ACOSST2                               
047129,002751: 
047130,002752: 00,3637           54155        ACOS=0             TS       MPAC       +1                         
047131,002753: 00,3640           54154                           TS       MPAC                                  
047132,002754: 00,3641           00136                           TC       ESCAPE                                
047133,002755: 
047134,002756: 00,3642           00006        ACOSST2            EXTEND                                         #  NOW THAT ARGUMENT IS IN PROPER RANGE,
047135,002757: 00,3643           40155                           DCS      MPAC                                  #  BEGIN COMPUTATION. USE HASTINGS
047136,002758: 00,3644           64736                           AD       HALF                                  #  APPROXIMATION ARCCOS(X) = SQRT(1-X)P(X)
047137,002759: 00,3645           52155                           DXCH     MPAC                                  #  IN A SCALED VERSION WHERE P(X) IS A
047138,002760: 00,3646           52134                           DXCH     BUF2                                  #  SEVENTH ORDER POLYNOMIAL.
047139,002761: 
047140,002762: 00,3647           03343                           TC       SQRTSUB                               #  RETURNS WITH NORMALIZED SQUARE ROOT.
047141,002763: 
047142,002764: 00,3650           10135                           CCS      MPTEMP                                #  SEE IF UN-NORMALIZATION REQUIRED.
047143,002765: 00,3651           13714                           TCF      ACOSSHR                               #  IF SO.
047144,002766: 

Page 1076

047146,002768: 00,3652           52155        ACOS3              DXCH     MPAC                                  #  SET UP FOR POLYNOMIAL EVALUATION.
047147,002769: 00,3653           52134                           DXCH     BUF2                                  
047148,002770: 00,3654           52155                           DXCH     MPAC                                  
047149,002771: 
047150,002772: 00,3655           07234                           TC       POLY                                  
047151,002773: 00,3656           00006                           DEC      6          B-14                       
047152,002774: 00,3657           13240 23630                     2DEC     +.353553385                            #  COEFFICIENTS ARE C 2(+I)/PISQRT(2) WHERE
047153,002775: 
047154,002776: 00,3661           74721 47775                     2DEC*    -.0483017006 B+1*                       #                    I
047155,002777: 
047156,002778: 00,3663           02440 20237                     2DEC*    +.0200273085 B+2*                       #       WHERE C STANDS FOR ORIGINAL COEFFS.
047157,002779: 
047158,002780: 00,3665           75067 70742                     2DEC*    -.0112931863 B+3*                       
047159,002781: 
047160,002782: 00,3667           03436 26756                     2DEC*    +.00695311612 B+4*                       
047161,002783: 
047162,002784: 00,3671           74037 57640                     2DEC*    -.00384617957 B+5*                       
047163,002785: 
047164,002786: 00,3673           03046 07143                     2DEC*    +.001501297736 B+6*                       
047165,002787: 
047166,002788: 00,3675           76654 42244                     2DEC*    -.000284160334 B+7*                       
047167,002789: 
047168,002790: 
047169,002791: 00,3677           32470                           CAF      LBUF2                                 #  DO FINAL MULTIPLY AND GO TO ANY
047170,002792: 00,3700           07120                           TC       DMPSUB     -1                         #  EPILOGUE SEQUENCES.
047171,002793: 00,3701           00136                           TC       ESCAPE                                
047172,002794: 
047173,002795: 00,3702           00006        SUBTR              EXTEND                                         #  EPILOGUE FOR NEGATIVE INPUTS TO ARCCOS.
047174,002796: 00,3703           40155                           DCS      MPAC                                  
047175,002797: 00,3704           64736                           AD       HALF                                  #  FORMS PI - ARCCOS(-X) = ARCCOS(X).
047176,002798: 00,3705           52155                           DXCH     MPAC                                  
047177,002799: 00,3706           00137                           TC       ESCAPE2                               #  GO TO POSSIBLE ARCSIN EPILOGUE.
047178,002800: 
047179,002801: 00,3707           00006        ASINEX             EXTEND                                         
047180,002802: 00,3710           40155                           DCS      MPAC                                  #  ARCSIN EPILOGUE - GET ARCSIN(X)
047181,002803: 00,3711           64737                           AD       QUARTER                               #  = PI/2 - ARCCOS(X).
047182,002804: 00,3712           52155                           DXCH     MPAC                                  
047183,002805: 00,3713           16073        LDANZIG            TCF      DANZIG                                
047184,002806: 

Page 1077

047186,002808: 00,3714           50000        ACOSSHR            INDEX    A                                     #  THE SHIFT RIGHT IS LESS THAN 14 SINCE
047187,002809: 00,3715           34736                           CAF      BIT14                                 #  THE INPUT WAS NON-ZERO DP.
047188,002810: 00,3716           54135                           TS       MPTEMP                                
047189,002811: 00,3717           02073                           TC       VSHRRND                               #  DP SHIFT RIGHT AND ROUND.
047190,002812: 00,3720           13652                           TCF      ACOS3                                 #  PROCEED.
047191,002813: 
047192,002814: 00,3721           00006        ACOSOVF            EXTEND                                         #  IF MAJOR PART WAS ONLY 1 MORE THAN .5,
047193,002815: 00,3722           13637                           BZF      ACOS=0                                #  CALL ANSWER ZERO.
047194,002816: 
047195,002817: 00,3723           00006        ACOSABRT           EXTEND                                         #  IF OVERFLOW, CALL ANSWER ZERO BUT
047196,002818: 00,3724           30165                           DCA      LOC                                   #  SOUND AN ALARM.
047197,002819: 00,3725           05733                           TC       ALARM1                                
047198,002820: 00,3726           01301                           OCT      1301                                  
047199,002821: 
047200,002822: 00,3727           34755                           CAF      ZERO                                  
047201,002823: 00,3730           13637                           TCF      ACOS=0                                
047202,002824: 
047203,002825: 00,3731           34737        ACOSZERO           CAF      QUARTER                               #  ACOS(0) = PI/2.
047204,002826: 00,3732           13640                           TCF      ACOS=0     +1                         #  SET MPAC AND EXIT VIA ESCAPE.
047205,002827: 
047206,002828: 00,3733           77763        NEG12              DEC      -12        B-14                       
047207,002829: 00,3734           13702        TCSUBTR            TCF      SUBTR                                 
047208,002830: 

Page 1078

047210,002832:                                                                                                  #           THE FOLLOWING INSTRUCTIONS ARE AVAILABLE FOR SETTING, MODIFYING, AND BRANCHING ON INDEX REGISTERS:
047211,002833: 
047212,002834:                                                                                                  #           1.  AXT                ADDRESS TO INDEX TRUE.
047213,002835:                                                                                                  #           1.  AXC                ADDRESS TO INDEX COMPLEMENTED.
047214,002836:                                                                                                  #           3.  LXA                LOAD INDEX FROM ERASABLE.
047215,002837:                                                                                                  #           4.  LXC                LOAD INDEX COMPLEMENTED FROM ERASABLE.
047216,002838:                                                                                                  #           5.  SXA                STORE INDEX IN ERASABLE.
047217,002839:                                                                                                  #           6.  XCHX               EXCHANGE INDEX REIGSTER WITH ERASABLE.
047218,002840: 
047219,002841:                                                                                                  #           7.  INCR               INCREMENT INDEX REGISTER.
047220,002842:                                                                                                  #           8.  XAD                ERASABLE ADD TO INDEX REGISTER.
047221,002843:                                                                                                  #           9.  XSU                ERASABLE SUBTRACT FROM INDEX REGISTER.
047222,002844: 
047223,002845:                                                                                                  #          10.  TIX                BRANCH ON INDEX REGISTER AND DECREMENT.
047224,002846: 
047225,002847: 01,2350                                           BANK     01                                    
047226,002848: 
047227,002849: 01,2350                                           COUNT*   $$/INTER                              
047228,002850: 01,2350           02445        AXT                TC       TAGSUB                                #  SELECT APPROPRIATE INDEX REGISTER.
047229,002851: 01,2351           30117                           CA       POLISH                                
047230,002852: 01,2352           50130        XSTORE             INDEX    INDEXLOC                              #  CONTAINS C(FIXLOC) OR C(FIXLOC)+1.
047231,002853: 01,2353           54046                           TS       X1                                    
047232,002854: 01,2354           16073                           TCF      DANZIG                                
047233,002855: 
047234,002856: 01,2355           02445        AXC                TC       TAGSUB                                
047235,002857: 01,2356           40117                           CS       POLISH                                
047236,002858: 01,2357           02352                           TC       XSTORE                                
047237,002859: 
047238,002860: 01,2360           02433        LXA                TC       15ADRERS                              #  LOAD INDEX REGISTER FROM ERASABLE.
047239,002861: 01,2361           50117                           INDEX    POLISH                                
047240,002862: 01,2362           30000                           CA       0                                     
047241,002863: 01,2363           12352                           TCF      XSTORE                                
047242,002864: 
047243,002865: 01,2364           02433        LXC                TC       15ADRERS                              #  LOAD NDX REG FROM ERASABLE COMPLEMENTED.
047244,002866: 01,2365           50117                           INDEX    POLISH                                
047245,002867: 01,2366           40000                           CS       0                                     
047246,002868: 01,2367           12352                           TCF      XSTORE                                
047247,002869: 
047248,002870: 01,2370           02433        SXA                TC       15ADRERS                              #  STORE INDEX REGISTER IN ERASABLE.
047249,002871: 01,2371           50130                           INDEX    INDEXLOC                              
047250,002872: 01,2372           30046                           CA       X1                                    
047251,002873: 01,2373           50117        MSTORE1            INDEX    POLISH                                
047252,002874: 01,2374           54000                           TS       0                                     
047253,002875: 01,2375           16073                           TCF      DANZIG                                
047254,002876: 

Page 1079

047256,002878: 01,2376           02433        XCHX               TC       15ADRERS                              #  EXCHANGE INDEX REGISTER WITH ERASABLE.
047257,002879: 01,2377           50117                           INDEX    POLISH                                
047258,002880: 01,2400           30000                           CA       0                                     
047259,002881: 01,2401           50130                           INDEX    INDEXLOC                              
047260,002882: 01,2402           56046                           XCH      X1                                    
047261,002883: 01,2403           12373                           TCF      MSTORE1                               
047262,002884: 
047263,002885: 01,2404           02433        XAD                TC       15ADRERS                              #  ADD ERASABLE TO INDEX REGISTER.
047264,002886: 01,2405           50117                           INDEX    POLISH                                
047265,002887: 01,2406           30000                           CA       0                                     
047266,002888: 01,2407           50130        XAD2               INDEX    INDEXLOC                              
047267,002889: 01,2410           26046                           ADS      X1                                    #  IGNORING OVERFLOWS.
047268,002890: 01,2411           16073                           TCF      DANZIG                                
047269,002891: 
047270,002892: 01,2412           02445        INCR               TC       TAGSUB                                #  INCREMENT INDEX REGISTER.
047271,002893: 01,2413           30117                           CA       POLISH                                
047272,002894: 01,2414           12407                           TCF      XAD2                                  
047273,002895: 
047274,002896: 01,2415           02433        XSU                TC       15ADRERS                              #  SUBTRACT ERASABLE FROM INDEX REGISTER.
047275,002897: 01,2416           50117                           INDEX    POLISH                                
047276,002898: 01,2417           40000                           CS       0                                     
047277,002899: 01,2420           12407                           TCF      XAD2                                  
047278,002900: 
047279,002901: 01,2421           02445        TIX                TC       TAGSUB                                #  BRANCH AND DECREMENT ON INDEX.
047280,002902: 01,2422           50130                           INDEX    INDEXLOC                              
047281,002903: 01,2423           40050                           CS       S1                                    
047282,002904: 01,2424           50130                           INDEX    INDEXLOC                              
047283,002905: 01,2425           60046                           AD       X1                                    
047284,002906: 01,2426           00006                           EXTEND                                         #  NO OPERATION IF DECREMENTED INDEX IS
047285,002907: 01,2427           66073                           BZMF     DANZIG                                #  NEGATIVE OR ZERO.
047286,002908: 
047287,002909: 01,2430           50130        DOTIXBR            INDEX    INDEXLOC                              
047288,002910: 01,2431           56046                           XCH      X1                                    #  IGNORING OVERFLOWS.
047289,002911: 
047290,002912: 01,2432           16660                           TCF      GOTO                                  #  DO THE BRANCH USING THE CADR IN POLISH.
047291,002913: 

Page 1080

047293,002915:                                                                                                  #           SUBROUTINE TO CONVERT AN ERASABLE ADDRESS (11 BITS) TO AN EBANK SETTING AND SUBADDRESS.
047294,002916: 
047295,002917: 01,2433           40117        15ADRERS           CS       POLISH                                
047296,002918: 01,2434           64772                           AD       DEC45                                 
047297,002919: 01,2435           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
047298,002920: 01,2436           30120                           CA       FIXLOC                                #  YES.  ADD FIXLOC.  EBANK OK AS IS.
047299,002921: 01,2437           12444                           TCF      +5                                    
047300,002922: 
047301,002923: 01,2440           35007                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
047302,002924: 01,2441           56117                           XCH      POLISH                                
047303,002925: 01,2442           54003                           TS       EBANK                                 
047304,002926: 01,2443           74357                           MASK     LOW8                                  
047305,002927: 01,2444           26117                 +5        ADS      POLISH                                #  FALL INTO TAGSUB, AND RETURN VIA Q.
047306,002928: 
047307,002929:                                                                                                  #           SUBROUTINE WHICH SETS THE ADDRESS OF THE SPECIFIED INDEX IN INDEXLOC. (ACTUALLY, THE ADDRESS -38D.)
047308,002930: 
047309,002931: 01,2445           30120        TAGSUB             CA       FIXLOC                                
047310,002932: 01,2446           54130                           TS       INDEXLOC                              
047311,002933: 
047312,002934: 01,2447           10020                           CCS      CYR                                   #  BIT 15 SPECIFIES INDEX.
047313,002935: 01,2450           24130                           INCR     INDEXLOC                              #  0 MEANS USE X2.
047314,002936: 01,2451           00002                           TC       Q                                     
047315,002937: 01,2452           00002                           TC       Q                                     #  1 FOR X1.
047316,002938: 

Page 1081

047318,002940:                                                                                                  #           MISCELLANEOUS OPERATION CODES WITH DIRECT ADDRESSES. INCLUDED HERE ARE:
047319,002941: 
047320,002942:                                                                                                  #           1.  ITA                STORE QPRET (RETURN ADDRESS) IN ERASABLE.
047321,002943:                                                                                                  #           2.  CALL               CALL A SUBROUTINE, LEAVING RETURN IN QPRET.
047322,002944:                                                                                                  #           3.  RTB                RETURN TO BASIC LANGUAGE AT THE GIVEN ADDRESS.
047323,002945:                                                                                                  #           4.  BHIZ               BRANCH IF THE HIGH ORDER OF MPAC IS ZERO (SINGLE PRECISION).
047324,002946:                                                                                                  #           5.  BOV                BRANCH ON OVERFLOW.
047325,002947:                                                                                                  #           6.  GOTO               SIMPLE SEQUENCE CHANGE.
047326,002948: 
047327,002949: 01,2453           10020        RTB/BHIZ           CCS      CYR                                   
047328,002950: 01,2454           30117        RTB                CA       POLISH                                
047329,002951: 01,2455           04621                           TC       SWCALL     -1                         #  SO A "TC Q" FROM ROUTINE LEADS TO DANZIG
047330,002952: 
047331,002953: 01,2456           10154        BHIZ               CCS      MPAC                                  
047332,002954: 01,2457           16073                           TCF      DANZIG                                
047333,002955: 01,2460           16660                           TCF      GOTO                                  
047334,002956: 01,2461           16073                           TCF      DANZIG                                
047335,002957: 01,2462           16660                           TCF      GOTO                                  
047336,002958: 
047337,002959: 01,2463           10121        BOV(B)             CCS      OVFIND                                #  BRANCH ON OVERFLOW TO BASIC OR INTERP.
047338,002960: 01,2464           12466                           TCF      +2                                    
047339,002961: 01,2465           16073                           TCF      DANZIG                                
047340,002962: 01,2466           54121                           TS       OVFIND                                
047341,002963: 01,2467           10020                           CCS      CYR                                   
047342,002964: 01,2470           12454                           TCF      RTB                                   #  IF BASIC.
047343,002965: 01,2471           00360        B5TOB8             OCT      360                                   
047344,002966: 01,2472           16660                           TCF      GOTO                                  
047345,002967: 

Page 1082

047347,002969: 01,2473           10020        BZE/GOTO           CCS      CYR                                   #  SEE WHICH OP-CODE IS DESIRED.
047348,002970: 01,2474           06735                           TC       BRANCH                                #  DO BZE.
047349,002971: 01,2475           16073                           TCF      DANZIG                                
047350,002972: 01,2476           16660                           TCF      GOTO                                  #  DO GOTO.
047351,002973: 01,2477           16073                           TCF      DANZIG                                
047352,002974: 
047353,002975: 01,2500           10020        BPL/BMN            CCS      CYR                                   
047354,002976: 01,2501           12507                           TCF      BPL                                   
047355,002977: 01,2502           12000        5B10               DEC      5          B+10                       #  SHIFTS OP CODE IN SWITCH INSTRUCTION ADR
047356,002978: 
047357,002979: 01,2503           06735                           TC       BRANCH                                #  DO BMN.
047358,002980: 01,2504           16073                           TCF      DANZIG                                
047359,002981: 01,2505           16073                           TCF      DANZIG                                
047360,002982: 01,2506           16660                           TCF      GOTO                                  #  ONLY IF NNZ.
047361,002983: 
047362,002984: 01,2507           06735        BPL                TC       BRANCH                                
047363,002985: 01,2510           16660                           TCF      GOTO                                  #  IF POSITIVE OR ZERO.
047364,002986: 01,2511           16660                           TCF      GOTO                                  
047365,002987: 01,2512           16073                           TCF      DANZIG                                
047366,002988: 
047367,002989: 01,2513           10020        CALL/ITA           CCS      CYR                                   
047368,002990: 01,2514           16652                           TCF      CALL                                  
047369,002991: 
047370,002992: 01,2515           05706                           TC       CCSHOLE                               
047371,002993: 01,2516           02433                           TC       15ADRERS                              #  STORE QPRET. (TAGSUB AFTER 15ADRERS IS
047372,002994: 01,2517           50120                           INDEX    FIXLOC                                #  SLOW IN THIS CASE, BUT SAVES STORAGE.)
047373,002995: 01,2520           30052                           CA       QPRET                                 
047374,002996: 01,2521           12373                           TCF      MSTORE1                               
047375,002997: 

Page 1083

047377,002999:                                                                                                  #           THE FOLLOWING OPERATIONS ARE AVAILABLE FOR ALTERING AND TESTING INTERPRETIVE SWITCHES:
047378,003000: 
047379,003001:                                                                                                  #  00       BONSET                 SET A SWITCH AND DO A GOTO IF IT WAS ON.
047380,003002:                                                                                                  #  01       SETGO                  SET A SWITCH AND DO A GOTO.
047381,003003:                                                                                                  #  02       BOFSET                 SET A SWITCH AND DO A GOTO IF IT WAS OFF
047382,003004:                                                                                                  #  03       SET                    SET A SWITCH.
047383,003005: 
047384,003006:                                                                                                  #  04       BONINV                 INVERT A SWITCH AND BRANCH IF IT WAS ON.
047385,003007:                                                                                                  #  05       INVGO                  INVERT A SWITCH AND DO A GOTO.
047386,003008:                                                                                                  #  06       BOFINV                 INVERT A SWITCH AND BRANCH IF IT WAS OFF
047387,003009:                                                                                                  #  07       INVERT                 INVERT A SWITCH.
047388,003010: 
047389,003011:                                                                                                  #  10       BONCLR                 CLEAR A SWITCH AND BRANCH IF IT WAS ON.
047390,003012:                                                                                                  #  11       CLRGO                  CLEAR A SWITCH AND DO A GOTO.
047391,003013:                                                                                                  #  12       BOFCLR                 CLEAR A SWITCH AND BRANCH IF IT WAS OFF.
047392,003014:                                                                                                  #  13       CLEAR                  CLEAR A SWITCH.
047393,003015: 
047394,003016:                                                                                                  #  14       BON                    BRANCH IF A SWITCH WAS ON.
047395,003017:                                                                                                  #  16       BOFF                   BRANCH IF A SWITCH WAS OFF.
047396,003018: 
047397,003019: 
047398,003020:                                                                                                  #           THE ADDRESS SUPPLIED WITH THE SWITCH INSTRUCTION IS INTERPRETED AS FOLLOWS:
047399,003021: 
047400,003022:                                                                                                  #           BITS 1-4    SWITCH BIT NUMBER (1-15).
047401,003023:                                                                                                  #           BITS 5-8    SWITCH OPERATION NUMBER.
047402,003024:                                                                                                  #           BITS 9-     SWITCH WORD NUMBER (UP TO 64 SWITCH WORDS).
047403,003025: 
047404,003026:                                                                                                  #           THE ADDRESS ITSELF IS MADE UP BY THE YUL SYSTEM ASSEMBLER. THE BRANCH INSTRUCTIONS REQUIRE TWO
047405,003027:                                                                                                  #  ADDRESSES, THE SECOND TAKEN AS THE DIRECT (OR INDIRECT IF IN ERASABLE) ADDRESS OF THE BRANCH.
047406,003028: 
047407,003029: 
047408,003030: 01,2522           34762        SWITCHES           CAF      LOW4                                  #  LEAVE THE SWITCH BIT IN  SWBIT  .
047409,003031: 01,2523           70117                           MASK     POLISH                                
047410,003032: 01,2524           50000                           INDEX    A                                     
047411,003033: 01,2525           34735                           CAF      BIT15                                 #  (NUMBER FROM LEFT TO RIGHT.)
047412,003034: 01,2526           54131                           TS       SWBIT                                 
047413,003035: 
047414,003036: 01,2527           34745                           CAF      BIT7                                  #  LEAVE THE SWITCH NUMBER IN SWWORD.
047415,003037: 01,2530           00006                           EXTEND                                         
047416,003038: 01,2531           70117                           MP       POLISH                                
047417,003039: 01,2532           54130                           TS       SWWORD                                
047418,003040: 
047419,003041: 01,2533           00004                           INHINT                                         #  DURING SWITCH CHANGE SO RUPT CAN USE TOO
047420,003042: 01,2534           50000                           INDEX    A                                     #  LEAVE THE SWITCH WORD ITSELF IN L.
047421,003043: 01,2535           30074                           CA       STATE                                 
047422,003044: 01,2536           54002                           TS       Q                                     #  Q WILL BE USED AS A CHANNEL.

Page 1084

047424,003046: 01,2537           34741                           CAF      BIT11                                 
047425,003047: 01,2540           00006                           EXTEND                                         #  DISPATCH SWITCH BIT OPERATION AS IN BITS
047426,003048: 01,2541           70117                           MP       POLISH                                #  7-8 OF POLISH.
047427,003049: 01,2542           72602                           MASK     B3TOB4                                #  GETS 4X2-BIT CODE.
047428,003050: 01,2543           50000                           INDEX    A                                     
047429,003051: 01,2544           12545                           TCF      +1                                    
047430,003052: 
047431,003053: 01,2545           30131                 +1        CA       SWBIT                                 #  00 - SET SWITCH IN QUESTION.
047432,003054: 01,2546           00006                           EXTEND                                         
047433,003055: 01,2547           04002                           ROR      QCHAN                                 
047434,003056: 01,2550           12557                           TCF      SWSTORE                               
047435,003057: 
047436,003058: 01,2551           30131                 +5        CA       SWBIT                                 #  01 - INVERT SWITCH.
047437,003059: 01,2552           00006                           EXTEND                                         
047438,003060: 01,2553           06002                           RXOR     QCHAN                                 
047439,003061: 01,2554           12557                           TCF      SWSTORE                               
047440,003062: 
047441,003063: 01,2555           40131                 +9D       CS       SWBIT                                 #  10 - CLEAR.
047442,003064: 01,2556           70002                           MASK     Q                                     
047443,003065: 01,2557           50130        SWSTORE            INDEX    SWWORD                                
047444,003066: 01,2560           54074                           TS       STATE                                 #  NEW SWITCH WORD.
047445,003067: 

Page 1085

047447,003069: 01,2561           00003                 +13D      RELINT                                         #  11 - NOOP.
047448,003070: 01,2562           34737                           CAF      BIT13                                 
047449,003071: 01,2563           00006                           EXTEND                                         #  DISPATCH SEQUCE CHANGING OR BRANCHING
047450,003072: 01,2564           70117                           MP       POLISH                                #  CODE.
047451,003073: 01,2565           72602                           MASK     B3TOB4                                
047452,003074: 01,2566           50000                           INDEX    A                                     
047453,003075: 01,2567           12570                           TCF      +1                                    #  ORIGINALLY STORED IN BITS 5-6.
047454,003076: 
047455,003077: 01,2570           40002                 +1        CS       Q                                     #  00 - BRANCH IF ON.
047456,003078: 01,2571           70131        TEST               MASK     SWBIT                                 
047457,003079: 01,2572           10000                           CCS      A                                     
047458,003080: 01,2573           12603                           TCF      SWSKIP                                
047459,003081: 
047460,003082: 01,2574           16727                 +5        TCF      SWBRANCH                              #  01 - GO TO.
047461,003083: 
047462,003084: 01,2575           12603                           TCF      SWSKIP                                #  HERE ONLY ON BIT 15.
047463,003085: 
047464,003086: 01,2576           05706                           TC       CCSHOLE                               
047465,003087: 01,2577           05706                           TC       CCSHOLE                               
047466,003088: 
047467,003089: 01,2600           30002                 +9D       CA       Q                                     #  10 - BRANCH IF OFF.
047468,003090: 01,2601           12571                           TCF      TEST                                  
047469,003091: 
047470,003092: 01,2602           00014        B3TOB4             OCT      0014                                  
047471,003093: 01,2603           24164        SWSKIP             INCR     LOC                                   
047472,003094: 
047473,003095: 01,2604  01,2522               SW/                EQUALS   SWITCHES                              
047474,003096: 
047475,003097: 01,2604           16073                 +13D      TCF      DANZIG                                #  11 - NOOP.

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