Source Code

These source-code files are part of a reconstructed copy of Luminary 98, a development version of the Apollo 11 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Luminary 99 revision 1 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes described in original Luminary memo 85, using asterisks indicating changed lines in the listing as a guide. While no listing of this version is known to exist, nor are the memory-bank checksums available, the reconstruction is believed to be correct because it was an an intermediate step in reconstructing Luminary 97 whose reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152G. Note that page numbers in the reconstructed code match those on the Luminary 099 revision 001 printout, although the added code would likely have changed page numbers for a real Luminary 98 listing.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

042675,000002:                                                                                                  ## Copyright:   Public domain.
042676,000003:                                                                                                  ## Filename:    INTERPRETER.agc
042677,000004:                                                                                                  ## Purpose:     A section of Luminary revision 98.
042678,000005:                                                                                                  ##              It is part of the reconstructed source code for the a
042679,000006:                                                                                                  ##              development version of the flight software for the Lunar 
042680,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 11.
042681,000008:                                                                                                  ##              The code has been recreated from a copy of Luminary 99
042682,000009:                                                                                                  ##              revision 001, using asterisks indicating changed lines in
042683,000010:                                                                                                  ##              the listing and Luminary Memo #85, which lists changes between
042684,000011:                                                                                                  ##              Luminary 98 and 99.
042685,000012:                                                                                                  ## Reference:   pp. 1002-1094
042686,000013:                                                                                                  ## Assembler:   yaYUL
042687,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
042688,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
042689,000016:                                                                                                  ## Mod history: 2019-07-28 MAS  Created from Luminary 99.
042690,000017:                                                                                                  ##              2021-05-30 ABS  Added IRT0 location symbol to match Luminary 99.
042691,000018:                                                                                                  ##                              B5TOBB -> B5TOB8
042692,000019: 

Page 1002

042694,000021:                                                                                                  #  SECTION 1   DISPATCHER
042695,000022: 
042696,000023:                                                                                                  #  ENTRY TO THE INTERPRETER.  INTPRET SETS LOC TO THE FIRST INSTRUCTION, BANKSET TO THE BBANK OF THE
042697,000024:                                                                                                  #  OBJECT INTERPRETIVE PROGRAM, AND INTBIT15 TO THE BIT15 CONTENTS OF FBANK.  INTERPRETIVE PROGRAMS MAY BE IN
042698,000025:                                                                                                  #  VIRTUALLY ALL BANKS PRESENT UNDER ANY SUPER-BANK SETTING, WITH THE RESTRICTION THAT PROGRAMS IN HIGH BANKS
042699,000026:                                                                                                  #  (BIT15 OF FBANK = 1) DO NOT REFER TO LOWBANKS, AND VICE-VERSA.  THE INTERPRETER DOES NOT SWITCH SUPERBANKS.
042700,000027:                                                                                                  #  E-BANK SWITCHING OCCURS WHENEVER GENERAL ERASABLE (100-3777) IS ADDRESSED.
042701,000028: 
042702,000029:    6037                                           BLOCK    03                                    
042703,000030: 
042704,000031:    6037                                           COUNT*   $$/INTER                              
042705,000032:    6037           00003        INTPRET            RELINT                                         
042706,000033:    6040           00006                           EXTEND                                         #  SET LOC TO THE WORD FOLLOWING THE TC.
042707,000034:    6041           22164                           QXCH     LOC                                   
042708,000035: 
042709,000036:    6042           30006                 +2        CA       BBANK                                 #  INTERPRETIVE BRANCHES FINISH HERE.
042710,000037:    6043           54165                           TS       BANKSET                               
042711,000038:    6044           74735                           MASK     BIT15                                 #  GET 15TH BIT FOR INDEXABLE ADDRESSES.
042712,000039:    6045           54115                           TS       INTBIT15                              
042713,000040: 
042714,000041:    6046           54023                           TS       EDOP                                  #  MAKE SURE NO INSTRUCTIONS LEFT OVER
042715,000042: 
042716,000043:    6047           16070                           TCF      NEWOPS                                #  PICK UP OP CODE PAIR AND BEGIN.
042717,000044: 
042718,000045:    6050           22006        INTRSM             LXCH     BBANK                                 #  RESUME SUSPENDED INTERPRETIVE JOB
042719,000046:    6051           16042                           TCF      INTPRET    +3                         
042720,000047: 
042721,000048:                                                                                                  #  DLOAD LOADS MPAC, MPAC +1, LEAVING ZERO IN MPAC +2.
042722,000049: 
042723,000050:    6052           00006        DLOAD              EXTEND                                         
042724,000051:    6053           50116                           INDEX    ADDRWD                                
042725,000052:    6054           30001                           DCA      0                                     #  LOAD DP C(C(ADDRWD)) INTO MPAC,MPAX +1
042726,000053:    6055           52155        SLOAD2             DXCH     MPAC                                  
042727,000054:    6056           34755                           CAF      ZERO                                  #  ZERO MPAC +2
042728,000055: 

Page 1003

042730,000057:                                                                                                  #  AT THE END OF MOST INSTRUCTIONS, CONTROL IS GIVEN TO DANZIG TO DISPATCH THE NEXT OPERATION.
042731,000058: 
042732,000059:    6057           54156                           TS       MPAC       +2                         #  AND DECLARE DP MODE
042733,000060: 
042734,000061:    6060           54163        NEWMODE            TS       MODE                                  #  PROLOGUE FOR MODE-CHANGING INSTRUCTIONS.
042735,000062: 
042736,000063:    6061           30165        DANZIG             CA       BANKSET                               #  SET BBANK BEFORE TESTING NEWJOB SO THAT
042737,000064:    6062           54006                           TS       BBANK                                 #  IT MAY BE SAVED DIRECTLY BY CHANJOB.
042738,000065: 
042739,000066:    6063           10023        NOIBNKSW           CCS      EDOP                                  #  SEE IF AN ORDER CODE IS LEFT OVER FROM
042740,000067:    6064           16077                           TCF      OPJUMP                                #  THE LAST PAIR RETRIEVED.  IF SO, EXECUTE.
042741,000068:                                                                                                  #  EDOP IS SET TO ZERO ON ITS RE-EDITING.
042742,000069: 
042743,000070:    6065           10067                           CCS      NEWJOB                                #  SEE IF A JOB OF HIGHER PRIORITY IS
042744,000071:    6066           15126                           TCF      CHANG2                                #  PRESENT, AND IF SO, CHANGE JOBS.
042745,000072: 
042746,000073:    6067           24164                           INCR     LOC                                   #  ADVANCE THE LOCATION COUNTER.
042747,000074: 
042748,000075:                                                                                                  #  ITRACE (1) REFERS TO "NEWOPS".
042749,000076:    6070           50164        NEWOPS             INDEX    LOC                                   #  ENTRY TO BEGIN BY PICKING OP CODE PAIR.
042750,000077:    6071           30000                           CA       0                                     #  MAY BE AN OPCODE PAIR OR A STORE CODE.
042751,000078:    6072           10000                           CCS      A                                     #  TEST SIGN AND GET DABS(A).
042752,000079:    6073           16362                           TCF      DOSTORE                               #  PROCESS STORE CODE.
042753,000080: 
042754,000081:    6074           00177        LOW7               OCT      177                                   
042755,000082: 
042756,000083:    6075           54023                           TS       EDOP                                  #  OP CODE PAIR.  LEAVE THE OTHER IN EDOP
042757,000084:    6076           76074                           MASK     LOW7                                  #  WHERE CCS EDOP WILL HONOR IT NEXT.
042758,000085: 
042759,000086:    6077           54020        OPJUMP             TS       CYR                                   #  LOWWD ENTERS HERE IF A RIGHT-HAND OP
042760,000087:    6100           10020                           CCS      CYR                                   #  CODE IS TO BE PROCESSED.  TEST PREFICES.
042761,000088:    6101           16247                           TCF      OPJUMP2                               #  TEST SECOND PREFIX BIT.
042762,000089: 
042763,000090:    6102           16743                           TCF      EXIT                                  #  +0 OP CODE IS EXIT.
042764,000091: 

Page 1004

042766,000093:                                                                                                  #  PROCESS ADDRESSES WHICH MAY BE DIRECT, INDEXED, OR REFERENCE THE PUSHDOWN LIST.
042767,000094: 
042768,000095:    6103           74753        ADDRESS            MASK     BIT1                                  #  SEE IF ADDRESS IS INDEXED.  CYR CONTAINED
042769,000096:    6104           10000                           CCS      A                                     #  400XX, SO BIT 1 IS NOW AS IT WAS IN CYR.
042770,000097:    6105           16146                           TCF      INDEX                                 #  FORM INDEXED ADDRESS.
042771,000098: 
042772,000099:    6106           50164        DIRADRES           INDEX    LOC                                   #  LOOK AHEAD TO NEXT WORD TO SEE IF
042773,000100:    6107           40001        OCT40001           CS       1                                     #  ADDRESS IS GIVEN.
042774,000101:    6110           10000                           CCS      A                                     
042775,000102:    6111           16215                           TCF      PUSHUP                                #  IF NOT.
042776,000103: 
042777,000104:    6112           77773        NEG4               DEC      -4         B-14                       
042778,000105: 
042779,000106:    6113           24164                           INCR     LOC                                   #  IF SO, TO SHOW WE PICKED UP A WORD.
042780,000107:    6114           54116                           TS       ADDRWD                                
042781,000108: 

Page 1005

042783,000110:                                                                                                  #  FINAL DIGESTION OF DIRECT ADDRESSES OF OP CODES WITH 01 PREFIX IS DONE HERE.   IN EACH CASE, THE
042784,000111:                                                                                                  #  REQUIRED 12-BIT SUB-ADDRESS IS LEFT IN ADDRWD, WITH ANY REQUIRED E OR F BANK SWITCHING DONE.  ADDRESSES LESS
042785,000112:                                                                                                  #  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.
042786,000113: 
042787,000114:    6115           66251                           AD       -ENDVAC                               #  SEE IF ADDRESS RELATIVE TO WORK AREA.
042788,000115:    6116           10000                           CCS      A                                     
042789,000116:    6117           67743                           AD       -ENDERAS                              #  IF NOT, SEE IF IN GENERAL ERASABLE.
042790,000117:    6120           16125                           TCF      IERASTST                              
042791,000118: 
042792,000119:    6121           30120        NETZERO            CA       FIXLOC                                #  IF SO, LEAVE THE MODIFIED ADDRESS IN
042793,000120:    6122           26116                           ADS      ADDRWD                                #  ADDRWD AND DISPATCH.
042794,000121:    6123           50020        ITR15              INDEX    CYR                                   #  THIS INDEX MAKES THE NEXT INSTRUCTION
042795,000122:    6124           76273                           7        INDJUMP    -1                         #  TCF INDJUMP + OP, EDITING CYR.
042796,000123: 
042797,000124:    6125           00006        IERASTST           EXTEND                                         
042798,000125:    6126           66136                           BZMF     GEADDR                                #  GO PROCESS GENERAL-ERASABLE ADDRESS.
042799,000126: 
042800,000127:    6127           75012                           MASK     LOW10                                 #  FIXED BANK ADDRESS. RESTORE AND ADD B15.
042801,000128:    6130           65012                           AD       LOW10                                 #  SWITCH BANKS AND LEAVE SUBADDRESS IN
042802,000129:    6131           56116                           XCH      ADDRWD                                #  ADDRWD FOR OPERAND RETRIEVAL. (THIS
042803,000130:    6132           60115                           AD       INTBIT15                              #  METHOD PRECLUDES USE OF THE LAST
042804,000131:    6133           54004                           TS       FBANK                                 #  LOCATION IN EACH FBANK.)
042805,000132:    6134           50020        ITR12              INDEX    CYR                                   
042806,000133:    6135           76273                           7        INDJUMP    -1                         
042807,000134: 
042808,000135:    6136           74357        GEADDR             MASK     LOW8                                  
042809,000136:    6137           65007                           AD       OCT1400                               
042810,000137:    6140           56116                           XCH      ADDRWD                                
042811,000138:    6141           54003                           TS       EBANK                                 
042812,000139:    6142           50020        ITR10              INDEX    CYR                                   
042813,000140:    6143           76273                           7        INDJUMP    -1                         
042814,000141: 

Page 1006

042816,000143:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES INTERPRETIVE INDEXED ADDRESSES.  AN INTERPRETER INDEX REGISTER MAY
042817,000144:                                                                                                  #  CONTAIN THE ADDRESS OF ANY ERASABLE REGISTER (0-42 BEING RELATIVE TO THE VAC AREA) OR ANY INTERPRETIVE PROGRAM
042818,000145:                                                                                                  #  BANK, OR ANY INTEGER IN THAT RANGE.
042819,000146: 
042820,000147:    6144           37733        DODLOAD*           CAF      DLOAD*                                #  STODL* COMES HERE TO PROCESS LOAD ADR.
042821,000148:    6145           54020                           TS       CYR                                   #  (STOVL* ENTERS HERE).
042822,000149: 
042823,000150:    6146           30120        INDEX              CA       FIXLOC                                #  SET UP INDEX LOCATION.
042824,000151:    6147           54130                           TS       INDEXLOC                              
042825,000152:    6150           24164                           INCR     LOC                                   #  (ADDRESS ALWAYS GIVEN).
042826,000153:    6151           50164                           INDEX    LOC                                   
042827,000154:    6152           40000                           CS       0                                     
042828,000155:    6153           10000                           CCS      A                                     #  INDEX 2 IF ADDRESS STORED COMPLEMENTED.
042829,000156:    6154           24130                           INCR     INDEXLOC                              
042830,000157:    6155           16156                           NOOP                                           
042831,000158: 
042832,000159:    6156           54116                           TS       ADDRWD                                #  14 BIT ADDRESS TO ADDRWD.
042833,000160:    6157           77742                           MASK     HIGH4                                 #  IF ADDRESS GREATER THAN 2K, ADD INTBIT15
042834,000161:    6160           00006                           EXTEND                                         
042835,000162:    6161           16164                           BZF      INDEX2                                
042836,000163:    6162           30115                           CA       INTBIT15                              
042837,000164:    6163           26116                           ADS      ADDRWD                                
042838,000165: 
042839,000166:    6164           50130        INDEX2             INDEX    INDEXLOC                              
042840,000167:    6165           40046                           CS       X1                                    
042841,000168:    6166           26116                           ADS      ADDRWD                                #  DO AUGMENT, IGNORING AND CORRECTING OVF.
042842,000169: 
042843,000170:    6167           77744                           MASK     HIGH9                                 #  SEE IF ADDRESS IS IN WORK AREA.
042844,000171:    6170           00006                           EXTEND                                         
042845,000172:    6171           16204                           BZF      INDWORK                               
042846,000173:    6172           77742                           MASK     HIGH4                                 #  SEE IF IN FIXED BANK.
042847,000174:    6173           00006                           EXTEND                                         
042848,000175:    6174           16206                           BZF      INDERASE                              
042849,000176: 
042850,000177:    6175           30116                           CA       ADDRWD                                #  IN FIXED - SWITCH BANKS AND CREATE
042851,000178:    6176           54004                           TS       FBANK                                 #  SUB-ADDRESS.
042852,000179:    6177           75012                           MASK     LOW10                                 
042853,000180:    6200           64741                           AD       2K                                    
042854,000181:    6201           54116                           TS       ADDRWD                                
042855,000182:    6202           50020        ITR11              INDEX    CYR                                   
042856,000183:    6203           36273                           3        INDJUMP    -1                         
042857,000184: 
042858,000185:    6204           30120        INDWORK            CA       FIXLOC                                #  MAKE ADDRWD RELATIVE TO WORK AREA.
042859,000186:    6205           16212                           TCF      ITR13      -1                         
042860,000187: 
042861,000188:    6206           35007        INDERASE           CA       OCT1400                               
042862,000189:    6207           56116                           XCH      ADDRWD                                
042863,000190:    6210           54003                           TS       EBANK                                 
042864,000191:    6211           74357                           MASK     LOW8                                  
042865,000192:    6212           26116                 -1        ADS      ADDRWD                                

Page 1007

042867,000194:    6213           50020        ITR13              INDEX    CYR                                   
042868,000195:    6214           36273                           3        INDJUMP    -1                         
042869,000196: 

Page 1008

042871,000198:                                                                                                  #  PUSH-UP ROUTINES.  WHEN NO OPERAND ADDRESS IS GIVEN, THE APPROPRIATE OPERAND IS TAKEN FROM THE PUSH-DOWN
042872,000199:                                                                                                  #  LIST.  IN MOST CASES THE MODE OF THE RESULT (VECTOR OR SCALAR) OF THE LAST ARITHMETIC OPERATION PERFORMED
042873,000200:                                                                                                  #  IS THE SAME AS THE TYPE OF OPERAND DESIRED (ALL ADD/SUBTRACT ETC.).  EXCEPTIONS TO THIS GENERAL RULE ARE LISTED
042874,000201:                                                                                                  #  BELOW (NOTE THAT IN EVERY CASE THE MODE REGISTER IS LEFT INTACT):
042875,000202: 
042876,000203:                                                                                                  #        1.      VXSC AND V/SC WANT THE OPPOSITE TYPE OF OPERAND, E.G., IF THE LAST OPERATION YIELDED A VECTOR
042877,000204:                                                                                                  #                RESULT, VXSC WANTS A SCALAR.
042878,000205: 
042879,000206:                                                                                                  #        2.      THE LOAD CODES SHOULD LOAD THE ACCUMULATOR INDEPENDENT OF THE RESULT OF THE LAST OPERATION.  THIS
042880,000207:                                                                                                  #                INCLUDES VLOAD, DLOAD, TLOAD, PDDL, AND PDVL (NO PUSHUP WITH SLOAD).
042881,000208: 
042882,000209:                                                                                                  #        3.      SOME ARITHMETIC OPERATIONS REQUIRE A STANDARD TYPE OF OPERAND REGARDLESS OF THE PREVIOUS OPERATION.
042883,000210:                                                                                                  #                THIS INCLUDES SIGN WANTING DP AND TAD REQUIRING TP.
042884,000211: 
042885,000212:    6215           34360        PUSHUP             CAF      OCT23                                 #  IF THE LOW 5 BITS OF CYR ARE LESS THAN
042886,000213:    6216           70020                           MASK     CYR                                   #  20, THIS OP REQUIRES SPECIAL ATTENTION.
042887,000214:    6217           66222                           AD       -OCT10                                #  (NO -0).
042888,000215:    6220           10000                           CCS      A                                     
042889,000216:    6221           16233                           TCF      REGUP                                 #  FOR ALL CODES GREATER THAN OCT 7.
042890,000217: 
042891,000218:    6222           77767        -OCT10             OCT      -10                                   
042892,000219: 
042893,000220:    6223           66112                           AD       NEG4                                  #  WE NOW HAVE 7 - OP CODE (MOD4).  SEE IF
042894,000221:    6224           10000                           CCS      A                                     #  THE OP CODE (MOD4) IS THREE (REVERSE).
042895,000222:    6225           50000                           INDEX    A                                     #  NO - THE MODE IS DEFINITE.  PICK UP THE
042896,000223:    6226           46244                           CS       NO.WDS                                
042897,000224:    6227           16235                           TCF      REGUP      +2                         
042898,000225: 
042899,000226:    6230           50163                           INDEX    MODE                                  #  FOR VXSC AND V/SC WE WANT THE REQUIRED
042900,000227:    6231           46242                           CS       REVCNT                                #  PUSHLOC DECREMENT WITHOUT CHANGING THE
042901,000228:    6232           16235                           TCF      REGUP      +2                         #  MODE AT THIS TIME.
042902,000229: 
042903,000230:    6233           50163        REGUP              INDEX    MODE                                  #  MOST ALL OP CODES PUSHUP HERE.
042904,000231:    6234           46244                           CS       NO.WDS                                
042905,000232:    6235           26166                 +2        ADS      PUSHLOC                               
042906,000233:    6236           54116                           TS       ADDRWD                                
042907,000234:    6237           50020        ITR14              INDEX    CYR                                   
042908,000235:    6240           76273                           7        INDJUMP    -1                         #  (THE INDEX MAKES THIS A TCF.)
042909,000236: 
042910,000237:    6241           00002                           OCT      2                                     #  REVERSE PUSHUP DECREMENT. VECTOR TAKES 2
042911,000238:    6242           00006        REVCNT             OCT      6                                     #  WORDS, SCALAR TAKES 6.
042912,000239:    6243           00006                           OCT      6                                     
042913,000240:    6244           00002        NO.WDS             OCT      2                                     #  CONVENTIONAL DECREMENT IS 6 WORDS VECTOR
042914,000241:    6245           00003        OCTAL3             OCT      3                                     #  2 IN DP, AND 3 IN TP.
042915,000242:    6246           00006                           OCT      6                                     
042916,000243: 

Page 1009

042918,000245:                                                                                                  #  TEST THE SECOND PREFIX BIT TO SEE IF THIS IS A MISCELLANEOUS OR A UNARY/SHORT SHIFT OPERATION.
042919,000246: 
042920,000247:    6247           10020        OPJUMP2            CCS      CYR                                   #  TEST SECOND PREFIX BIT.
042921,000248:    6250           16263                           TCF      OPJUMP3                               #  TEST THIRD BIT TO SEE IF UNARY OR SHIFT.
042922,000249: 
042923,000250:    6251           77722        -ENDVAC            DEC      -45        B-14                       
042924,000251: 
042925,000252:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES ADDRESSES OF SUFFIX CLASS 10.  THEY ARE BASICALLY WORK AREA ADDRESSES
042926,000253:                                                                                                  #  IN THE RANGE 0-52, ERASABLE ECADR CONSTANTS FROM 100-3777, AND FCADRS ABOVE THAT.  ALL 15 BITS ARE AVAILABLE
042927,000254:                                                                                                  #  IN CONTRAST TO SUFFIX 1, IN WHICH ONLY THE LOW ORDER 14 ARE AVAILABLE.
042928,000255: 
042929,000256:    6252           24164        15BITADR           INCR     LOC                                   #  (ENTRY HERE FROM STCALL).
042930,000257:    6253           50164                           INDEX    LOC                                   #  PICK UP ADDRESS WORD.
042931,000258:    6254           30000                           CA       0                                     
042932,000259:    6255           54117                           TS       POLISH                                #  WE MAY NEED A SUBADDRESS LATER.
042933,000260: 
042934,000261:    6256           35013                           CAF      LOW7+2K                               #  THESE INSTRUCTIONS ARE IN BANK 1.
042935,000262:    6257           54004                           TS       FBANK                                 
042936,000263:    6260           70020                           MASK     CYR                                   
042937,000264:    6261           50000        ITR7               INDEX    A                                     
042938,000265:    6262           16334                           TCF      MISCJUMP                              
042939,000266: 

Page 1010

042941,000268:                                                                                                  #  COMPLETE THE DISPATCHING OF UNARY AND SHORT SHIFT OPERATIONS.
042942,000269: 
042943,000270:    6263           54004        OPJUMP3            TS       FBANK                                 #  CALL IN BANK 0 (BITS 11-15 OF A ARE 0.)
042944,000271:                                                                                                  #  ITRACE (6) REFERS TO "OPJUMP3".
042945,000272:    6264           10020                           CCS      CYR                                   #  TEST THIRD PREFIX BIT.
042946,000273:    6265           50000                           INDEX    A                                     #  THE DECREMENTED UNARY CODE IS IN BITS
042947,000274:    6266           12000                           TCF      UNAJUMP                               #  1-4 OF A (ZERO, EXIT, HAS BEEN DETECTED)
042948,000275: 
042949,000276:    6267           10163                           CCS      MODE                                  #  ITS A SHORT SHIFT CODE.  SEE IF PRESENT
042950,000277:    6270           12017                           TCF      SHORTT                                #  SCALAR OR VECTOR.
042951,000278:    6271           12017                           TCF      SHORTT                                
042952,000279:    6272           12121                           TCF      SHORTV                                #  CALLS THE APPROPRIATE ROUTINE.
042953,000280: 
042954,000281:    6273     4350               FBANKMSK           EQUALS   BANKMASK                              
042955,000282:    6273           00122        LVBUF              ADRES    VBUF                                  
042956,000283: 

Page 1011

042958,000285:                                                                                                  #  THE FOLLOWING IS THE JUMP TABLE FOR OP CODES WHICH MAY HAVE INDEXABLE ADDRESSES OR MAY PUSH UP.
042959,000286: 
042960,000287:    6274           16505        INDJUMP            TCF      VLOAD                                 #  00 - LOAD MPAC WITH A VECTOR.
042961,000288:    6275           17071                           TCF      TAD                                   #  01 - TRIPLE PRECISION ADD TO MPAC.
042962,000289:    6276           17655                           TCF      SIGN                                  #  02 - COMPLEMENT MPAC (V OR SC) IF X NEG.
042963,000290:    6277           17401                           TCF      VXSC                                  #  03 - VECTOR TIMES SCALAR.
042964,000291:    6300           16703                           TCF      CGOTO                                 #  04 - COMPUTED GO TO.
042965,000292:    6301           16470                           TCF      TLOAD                                 #  05 - LOAD MPAC WITH TRIPLE PRECISION.
042966,000293:    6302           16052                           TCF      DLOAD                                 #  06 - LOAD MPAC WITH A DP SCALAR.
042967,000294:    6303           17624                           TCF      V/SC                                  #  07 - VECTOR DIVIDED BY SCALAR.
042968,000295: 
042969,000296:    6304           16501                           TCF      SLOAD                                 #  10 - LOAD MPACIN SINGLE PRECISION.
042970,000297:    6305           16620                           TCF      SSP                                   #  11 - SET SINGLE PRECISION INTO X.
042971,000298:    6306           16523                           TCF      PDDL                                  #  12 - PUSH DOWN MPAC AND RE-LOAD IN DP.
042972,000299:    6307           17334                           TCF      MXV                                   #  13 - MATRIX POST-MULTIPLIED BY VECTOR.
042973,000300:    6310           16557                           TCF      PDVL                                  #  14 - PUSH DOWN AND VECTOR LOAD.
042974,000301:    6311           16626                           TCF      CCALL                                 #  15 - COMPUTED CALL.
042975,000302:    6312           17337                           TCF      VXM                                   #  16 - MATRIX PRE-MULTIPLIED BY VECTOR.
042976,000303:    6313           17616                           TCF      TSLC                                  #  17 - NORMALIZE MPAC (SCALAR ONLY).
042977,000304: 
042978,000305:    6314           17574                           TCF      DMPR                                  #  20 - DP MULTIPLY AND ROUND.
042979,000306:    6315           17577                           TCF      DDV                                   #  21 - DP DIVIDE BY.
042980,000307:    6316           17603                           TCF      BDDV                                  #  22 - DP DIVIDE INTO.
042981,000308:    6317           17621                           TCF      GSHIFT                                #  23 - GENERAL SHIFT INSTRUCTION.
042982,000309:    6320           16751                           TCF      VAD                                   #  24 - VECTOR ADD.
042983,000310:    6321           16747                           TCF      VSU                                   #  25 - VECTOR SUBTRACT.
042984,000311:    6322           17036                           TCF      BVSU                                  #  26 - VECTOR SUBTRACT FROM.
042985,000312:    6323           17331                           TCF      DOT                                   #  27 - VECTOR DOT PRODUCT.
042986,000313: 
042987,000314:    6324           17460                           TCF      VXV                                   #  30 - VECTOR CROSS PRODUCT.
042988,000315:    6325           17425                           TCF      VPROJ                                 #  31 - VECTOR PROJECTION.
042989,000316:    6326           17005                           TCF      DSU                                   #  32 - DP SUBTRACT.
042990,000317:    6327           17062                           TCF      BDSU                                  #  33 - DP SUBTRACT FROM.
042991,000318:    6330           16775                           TCF      DAD                                   #  34 - DP ADD.
042992,000319:    6331           16331                           TCF      +0                                    #  35 - AVAILABLE
042993,000320:    6332           17572                           TCF      DMP1                                  #  36 - DP MULTIPLY.
042994,000321:    6333           17613                           TCF      SETPD                                 #  37 - SET PUSH DOWN POINTER (DIRECT ONLY)
042995,000322: 
042996,000323:                                                                                                  #  CODES 10 AND 14 MUST NOT PUSH UP. CODE 04 MAY BE USED FOR VECTOR DECLARE BEFORE PUSHUP IF DESIRED.
042997,000324: 

Page 1012

042999,000326:                                                                                                  #  THE FOLLOWING JUMP TABLE APPLIES TO INDEX, BRANCH, AND MISCELLANEOUS INSTRUCTIONS.
043000,000327: 
043001,000328:    6334           12344        MISCJUMP           TCF      AXT                                   #  00 - ADDRESS TO INDEX TRUE.
043002,000329:    6335           12351                           TCF      AXC                                   #  01 - ADDRESS TO INDEX COMPLEMENTED.
043003,000330:    6336           12354                           TCF      LXA                                   #  02 - LOAD INDEX FROM ERASABLE.
043004,000331:    6337           12360                           TCF      LXC                                   #  03 - LOAD INDEX FROM COMPLEMENT OF ERAS.
043005,000332:    6340           12364                           TCF      SXA                                   #  04 - STORE INDEX IN ERASABLE.
043006,000333:    6341           12372                           TCF      XCHX                                  #  05 - EXCHANGE INDEX WITH ERASABLE.
043007,000334:    6342           12406                           TCF      INCR                                  #  06 - INCREMENT INDEX REGISTER.
043008,000335:    6343           12415                           TCF      TIX                                   #  07 - TRANSFER ON INDEX.
043009,000336: 
043010,000337:    6344           12400                           TCF      XAD                                   #  10 - INDEX REGISTER ADD FROM ERASABLE.
043011,000338:    6345           12411                           TCF      XSU                                   #  11 - INDEX SUBTRACT FROM ERASABLE.
043012,000339:    6346           12467                           TCF      BZE/GOTO                              #  12 - BRANCH ZERO AND GOTO.
043013,000340:    6347           12474                           TCF      BPL/BMN                               #  13 - BRANCH PLUS AND BRANCH MINUS.
043014,000341:    6350           12447                           TCF      RTB/BHIZ                              #  14 - RETURN TO BASIC AND BRANCH HI ZERO.
043015,000342:    6351           12507                           TCF      CALL/ITA                              #  15 - CALL AND STORE QPRET.
043016,000343:    6352           12516                           TCF      SW/                                   #  16 - SWITCH INSTRUCTIONS AND AVAILABLE.
043017,000344:    6353           12457                           TCF      BOV(B)                                #  17 - BRANCH ON OVERFLOW TO BASIC OR INT.
043018,000345: 

Page 1013

043020,000347:                                                                                                  #  THE FOLLOWING JUMP TABLE APPIES TO UNARY INSTRUCTIONS.
043021,000348: 
043022,000349:    6354                                           COUNT*   $$/INTER                              
043023,000350: 00,2000                                           BANK     0                                     #  00 - EXIT - DETECTED EARLIER.
043024,000351: 00,2000           13207        UNAJUMP            TCF      SQRT                                  #  01 - SQUARE ROOT.
043025,000352: 00,2001           13530                           TCF      SINE                                  #  02 - SIN.
043026,000353: 00,2002           13517                           TCF      COSINE                                #  03 - COS.
043027,000354: 00,2003           13610                           TCF      ARCSIN                                #  04 - ARC SIN.
043028,000355: 00,2004           13612                           TCF      ARCCOS                                #  05 - ARC COS.
043029,000356: 00,2005           13174                           TCF      DSQ                                   #  06 - DP SQUARE.
043030,000357: 00,2006           12116                           TCF      ROUND                                 #  07 - ROUND TO DP.
043031,000358: 
043032,000359: 00,2007           17670                           TCF      COMP                                  #  10 - COMPLEMENT VECTOR OR SCALAR.
043033,000360: 00,2010           13232                           TCF      VDEF                                  #  11 - VECTOR DEFINE.
043034,000361: 00,2011           13023                           TCF      UNIT                                  #  12 - UNIT VECTOR.
043035,000362: 00,2012           13176                           TCF      ABVALABS                              #  13 - LENGTH OF VECTOR OR MAG OF SCALAR.
043036,000363: 00,2013           13245                           TCF      VSQ                                   #  14 - SQUARE OF LENGTH OF VECTOR.
043037,000364: 00,2014           16354                           TCF      STADR                                 #  15 - PUSH UP ON STORE CODE.
043038,000365: 00,2015           13274                           TCF      RVQ                                   #  16 - RETURN VIA QPRET.
043039,000366: 00,2016           13247                           TCF      PUSH                                  #  17 - PUSH MPAC DOWN.
043040,000367: 

Page 1014

043042,000369:                                                                                                  #  SECTION 2     LOAD AND STORE PACKAGE.
043043,000370: 
043044,000371:                                                                                                  #  A SET OF EIGHT STORE CODES IS PROVIDED AS THE PRIMARY METHOD OF STORING THE MULTI-PURPOSE
043045,000372:                                                                                                  #  ACCUMULATOR (MPAC).  IF IN THE DANZIG SECTION LOC REFERS TO AN ALGEBRAICALLY POSITIVE WORD, IT IS TAKEN AS A 
043046,000373:                                                                                                  #  STORE CODE WITH A CORRESPONDING ERASABLE ADDRESS.  MOST OF THESE CODES ARE TWO ADDRESS, SPECIFYING THAT THE WORD
043047,000374:                                                                                                  #  FOLLOWING THE STORE CODE IS TO BE USED AS AN ADDRESS FROM WHICH TO RE-LOAD MPAC.  FOUR OPTIONS ARE AVAILABLE:
043048,000375: 
043049,000376:                                                                                                  #        1. STORE        STORE MPAC.  THE E ADDRESS MAY BE INDEXED.
043050,000377:                                                                                                  #        2. STODL        STORE MPAC AND RE-LOAD IT IN DP WITH THE NEXT ADDRESS (THE LOAD MAY BE INDEXED).
043051,000378:                                                                                                  #        3. STOVL        STORE MPAC AND RE-LOAD A VECTOR (AS ABOVE).
043052,000379:                                                                                                  #        4. STCALL       STORE AND DO A CALL (BOTH ADDRESSES MUST BE DIRECT HERE).
043053,000380: 
043054,000381:                                                                                                  #  STODL AND STOVL WILL TAKE FROM THE PUSH-DOWN LIST IF NO LOAD ADDRESS IS GIVEN.
043055,000382: 
043056,000383:    6354                                           BLOCK    3                                     
043057,000384: 
043058,000385:    6354                                           COUNT*   $$/INTER                              
043059,000386:    6354           30165        STADR              CA       BANKSET                               #  THE STADR CODE (PUSHUP UP ON STORE
043060,000387:    6355           54004                           TS       FBANK                                 #  ADDRESS) ENTERS HERE.
043061,000388:    6356           24164                           INCR     LOC                                   
043062,000389:    6357           50164        ITR1               INDEX    LOC                                   #  THE STORECODE WAS STORED COMPLEMENTED TO
043063,000390:    6360           40000                           CS       0                                     #  MAKE IT LOOK LIKE AN OPCODE PAIR.
043064,000391:    6361           67747                           AD       NEGONE                                #  (YUL CANT REMOVE 1 BECAUSE OF EARLY CCS)
043065,000392: 
043066,000393:    6362           54116        DOSTORE            TS       ADDRWD                                
043067,000394:    6363           74356                           MASK     LOW11                                 #  ENTRY FROM DISPATCHER.  SAVE THE ERASABLE
043068,000395:    6364           56116                           XCH      ADDRWD                                #  ADDRESS AND JUMP ON THE STORE CODE NO.
043069,000396:    6365           77722                           MASK     B12T14                                
043070,000397:    6366           00006                           EXTEND                                         
043071,000398:    6367           74747                           MP       BIT5                                  #  EACH TRANSFER VECTOR ENTRY IS TWO WORDS.
043072,000399:    6370           50000        ITR0               INDEX    A                                     
043073,000400:    6371           16372                           TCF      STORJUMP                              
043074,000401: 

Page 1015

043076,000403:                                                                                                  #  STORE CODE JUMP TABLE.  CALLS THE APPROPRIATE STORING ROUTINE AND EXITS TO DANZIG OR TO ADDRESS WITH
043077,000404:                                                                                                  #  A SUPPLIED OPERATION CODE.
043078,000405: 
043079,000406:                                                                                                  #  STORE STORE,1 AND STORE,2 RETURN TO DANZIG, THUS RESETTING THE EBANK TO ITS STATE AT INTPRET.
043080,000407: 
043081,000408:    6372           06422        STORJUMP           TC       STORE                                 #  STORE.
043082,000409:    6373           16061                           TCF      DANZIG                                #  PICK UP NEW OP CODE(S).
043083,000410:    6374           06414                           TC       STORE,1                               
043084,000411:    6375           16061                           TCF      DANZIG                                
043085,000412:    6376           06417                           TC       STORE,2                               
043086,000413:    6377           16061                           TCF      DANZIG                                
043087,000414: 
043088,000415:    6400           06422                           TC       STORE                                 #  STODL.
043089,000416:    6401           16460                           TCF      DODLOAD                               
043090,000417: 
043091,000418:    6402           06422                           TC       STORE                                 #  STODL WITH INDEXED LOAD ADDRESS.
043092,000419:    6403           16144                           TCF      DODLOAD*                              
043093,000420: 
043094,000421:    6404           06422                           TC       STORE                                 #  STOVL.
043095,000422:    6405           16463                           TCF      DOVLOAD                               
043096,000423: 
043097,000424:    6406           06422                           TC       STORE                                 #  STOVL WITH INDEXED LOAD ADDRESS.
043098,000425:    6407           16466                           TCF      DOVLOAD*                              
043099,000426:    6410           06422                           TC       STORE                                 #  STOTC.
043100,000427:    6411           34766                           CAF      CALLCODE                              
043101,000428:    6412           54020                           TS       CYR                                   
043102,000429:    6413           16252                           TCF      15BITADR                              #  GET A 15 BIT ADDRESS.
043103,000430: 

Page 1016

043105,000432:                                                                                                  #  STORE CODE ADDRESS PROCESSOR.
043106,000433: 
043107,000434:    6414           50120        STORE,1            INDEX    FIXLOC                                
043108,000435:    6415           40046                           CS       X1                                    
043109,000436:    6416           16421                           TCF      PRESTORE                              
043110,000437: 
043111,000438:    6417           50120        STORE,2            INDEX    FIXLOC                                
043112,000439:    6420           40047                           CS       X2                                    
043113,000440:    6421           26116        PRESTORE           ADS      ADDRWD                                #  RESULTANT ADDRESS IS IN ERASABLE.
043114,000441: 
043115,000442:    6422           40116        STORE              CS       ADDRWD                                
043116,000443:    6423           64772                           AD       DEC45                                 
043117,000444:    6424           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
043118,000445:    6425           30120                           CA       FIXLOC                                #  YES.
043119,000446:    6426           16433                           TCF      AHEAD5                                
043120,000447:    6427           35007                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
043121,000448:    6430           56116                           XCH      ADDRWD                                
043122,000449:    6431           54003                           TS       EBANK                                 
043123,000450:    6432           74357                           MASK     LOW8                                  
043124,000451:    6433           26116        AHEAD5             ADS      ADDRWD                                
043125,000452: 

Page 1017

043127,000454:                                                                                                  #  STORING ROUTINES.  STORE DP, TP, OR VECTOR AS INDICATED BY MODE.
043128,000455: 
043129,000456:    6434           00006        STARTSTO           EXTEND                                         #  MPAC,+1 MUST BE STORED IN ANY EVENT.
043130,000457:                                                                                                  #  ITRACE (5) REFERS TO "STARTSTO".
043131,000458:    6435           30155                           DCA      MPAC                                  
043132,000459:    6436           50116                           INDEX    ADDRWD                                
043133,000460:    6437           52001                           DXCH     0                                     
043134,000461: 
043135,000462:    6440           10163                           CCS      MODE                                  
043136,000463:    6441           16454                           TCF      TSTORE                                
043137,000464:    6442           00002                           TC       Q                                     
043138,000465: 
043139,000466:    6443           00006        VSTORE             EXTEND                                         
043140,000467:    6444           30160                           DCA      MPAC       +3                         
043141,000468:    6445           50116                           INDEX    ADDRWD                                
043142,000469:    6446           52003                           DXCH     2                                     
043143,000470: 
043144,000471:    6447           00006                           EXTEND                                         
043145,000472:    6450           30162                           DCA      MPAC       +5                         
043146,000473:    6451           50116                           INDEX    ADDRWD                                
043147,000474:    6452           52005                           DXCH     4                                     
043148,000475:    6453           00002                           TC       Q                                     
043149,000476: 
043150,000477:    6454           30156        TSTORE             CA       MPAC       +2                         
043151,000478:    6455           50116                           INDEX    ADDRWD                                
043152,000479:    6456           54002                           TS       2                                     
043153,000480:    6457           00002                           TC       Q                                     
043154,000481: 

Page 1018

043156,000483:                                                                                                  #  ROUTINES TO BEGIN PROCESSING OF THE SECOND ADDRESS ASSOCIATED WITH ALL STORE-TYPE CODES EXCEPT STORE
043157,000484:                                                                                                  #  ITSELF.
043158,000485: 
043159,000486:    6460           37732        DODLOAD            CAF      DLOADCOD                              
043160,000487:    6461           54020                           TS       CYR                                   
043161,000488:    6462           16106                           TCF      DIRADRES                              #  GO GET A DIRECT ADDRESS.
043162,000489: 
043163,000490:    6463           34735        DOVLOAD            CAF      VLOADCOD                              
043164,000491:    6464           54020                           TS       CYR                                   
043165,000492:    6465           16106                           TCF      DIRADRES                              
043166,000493: 
043167,000494:    6466           36107        DOVLOAD*           CAF      VLOAD*                                
043168,000495:    6467           16145                           TCF      DODLOAD*   +1                         #  PROLOGUE TO INDEX ROUTINE.
043169,000496: 

Page 1019

043171,000498:                                                                                                  #  THE FOLLOWING LOAD INSTRUCTIONS ARE PROVIDED FOR LOADING THE MULTI-PURPOSE ACCUMULATOR MPAC.
043172,000499: 
043173,000500:    6470           50116        TLOAD              INDEX    ADDRWD                                
043174,000501:    6471           30002                           CA       2                                     #  LOAD A TRIPLE PRECISION ARGUMENT INTO
043175,000502:    6472           54156                           TS       MPAC       +2                         #  THE FIRST THREE MPAC REGISTERS, WITH THE
043176,000503:    6473           00006                           EXTEND                                         #  CONTENTS OF THE OTHER FOUR IRRELEVANT.
043177,000504:    6474           50116                           INDEX    ADDRWD                                
043178,000505:    6475           30001                           DCA      0                                     
043179,000506:    6476           52155                           DXCH     MPAC                                  
043180,000507:    6477           34753        TMODE              CAF      ONE                                   
043181,000508:    6500           16060                           TCF      NEWMODE                               #  DECLARE TRIPLE PRECISION MODE.
043182,000509: 
043183,000510:    6501           22007        SLOAD              ZL                                             #  LOAD A SINGLE PRECISION NUMBER INTO
043184,000511:    6502           50116                           INDEX    ADDRWD                                #  MPAC, SETTING MPAC+1,2 TO ZERO.  THE
043185,000512:    6503           30000                           CA       0                                     #  CONTENTS OF THE REMAINING MPAC REGISTERS
043186,000513:    6504           16055                           TCF      SLOAD2                                #  ARE IRRELEVANT.
043187,000514: 
043188,000515:    6505           00006        VLOAD              EXTEND                                         #  LOAD A DOUBLE PRECISION VECTOR INTO
043189,000516:    6506           50116                           INDEX    ADDRWD                                #  MPAC,+1, MPAC+3,4, AND MPAC+5,6.  THE
043190,000517:    6507           30001                           DCA      0                                     #  CONTENTS OF MPAC +2 ARE IRRELEVANT.
043191,000518:    6510           52155                           DXCH     MPAC                                  
043192,000519: 
043193,000520:    6511           00006        ENDVLOAD           EXTEND                                         #  PDVL COMES HERE TO FINISH UP FOR DP, TP.
043194,000521:    6512           50116                           INDEX    ADDRWD                                
043195,000522:    6513           30003                           DCA      2                                     
043196,000523:    6514           52160                           DXCH     MPAC       +3                         
043197,000524: 
043198,000525:    6515           00006                 +4        EXTEND                                         #  TPDVL FINISHES HERE.
043199,000526:    6516           50116                           INDEX    ADDRWD                                
043200,000527:    6517           30005                           DCA      4                                     
043201,000528:    6520           52162                           DXCH     MPAC       +5                         
043202,000529: 
043203,000530:    6521           44753        VMODE              CS       ONE                                   #  DECLARE VECTOR MODE.
043204,000531:    6522           16060                           TCF      NEWMODE                               
043205,000532: 

Page 1020

043207,000534:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE PROVIDED FOR STORING OPERANDS IN THE PUSHDOWN LIST:
043208,000535:                                                                                                  #        1.      PUSH            PUSHDOWN AND NO LOAD.
043209,000536:                                                                                                  #        2.      PDDL            PUSHDOWN AND DOUBLE PRECISION LOAD.
043210,000537:                                                                                                  #        3.      PDVL            PUSHDOWN AND VECTOR LOAD.
043211,000538: 
043212,000539:    6523           00006        PDDL               EXTEND                                         
043213,000540:    6524           50116                           INDEX    ADDRWD                                #  LOAD MPAC,+1, PUSHING THE FORMER
043214,000541:    6525           30001                           DCA      0                                     #  CONTENTS DOWN.
043215,000542:    6526           52155                           DXCH     MPAC                                  
043216,000543:    6527           50166                           INDEX    PUSHLOC                               
043217,000544:    6530           52001                           DXCH     0                                     
043218,000545: 
043219,000546:    6531           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER APPRO-
043220,000547:    6532           36244                           CAF      NO.WDS                                #  PRIATELY.
043221,000548:    6533           26166                           ADS      PUSHLOC                               
043222,000549: 
043223,000550:    6534           10163                           CCS      MODE                                  
043224,000551:    6535           16552                           TCF      ENDTPUSH                              
043225,000552:    6536           16550                           TCF      ENDDPUSH                              
043226,000553: 
043227,000554:    6537           54163                           TS       MODE                                  #  NOW DP.
043228,000555:    6540           54156        ENDVPUSH           TS       MPAC       +2                         
043229,000556:    6541           52160                           DXCH     MPAC       +3                         #  PUSH DOWN THE REST OF THE VECTOR HERE.
043230,000557:    6542           50166                           INDEX    PUSHLOC                               
043231,000558:    6543           51775                           DXCH     0          -4                         
043232,000559: 
043233,000560:    6544           52162                           DXCH     MPAC       +5                         
043234,000561:    6545           50166                           INDEX    PUSHLOC                               
043235,000562:    6546           51777                           DXCH     0          -2                         
043236,000563: 
043237,000564:    6547           16061                           TCF      DANZIG                                
043238,000565: 
043239,000566:    6550           54156        ENDDPUSH           TS       MPAC       +2                         #  SET MPAC +2 TO ZERO AND EXIT ON DP.
043240,000567:    6551           16061                           TCF      DANZIG                                
043241,000568: 
043242,000569:    6552           54163        ENDTPUSH           TS       MODE                                  
043243,000570:    6553           56156                           XCH      MPAC       +2                         #  ON TRIPLE, SET MPAC +2 TO ZERO, PUSHING
043244,000571:    6554           50166                 +2        INDEX    PUSHLOC                               #  DOWN THE OLD CONTENTS
043245,000572:    6555           53777                           TS       0          -1                         
043246,000573:    6556           16061                           TCF      DANZIG                                
043247,000574: 

Page 1021

043249,000576:                                                                                                  #  PDVL - PUSHDOWN AND VECTOR LOAD.
043250,000577: 
043251,000578:    6557           00006        PDVL               EXTEND                                         #  RELOAD MPAC AND PUSH DOWN ITS CONTENTS.
043252,000579:    6560           50116                           INDEX    ADDRWD                                
043253,000580:    6561           30001                           DCA      0                                     
043254,000581:    6562           52155                           DXCH     MPAC                                  
043255,000582:    6563           50166                           INDEX    PUSHLOC                               
043256,000583:    6564           52001                           DXCH     0                                     
043257,000584: 
043258,000585:    6565           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER.
043259,000586:    6566           36244                           CAF      NO.WDS                                
043260,000587:    6567           26166                           ADS      PUSHLOC                               
043261,000588: 
043262,000589:    6570           10163                           CCS      MODE                                  #  TEST PAST MODE.
043263,000590:    6571           16610                           TCF      TPDVL                                 
043264,000591:    6572           16511                           TCF      ENDVLOAD                              #  JUST LOAD LAST FOUR REGISTERS ON DP.
043265,000592: 
043266,000593:    6573           00006        VPDVL              EXTEND                                         #  PUSHDOWN AND RE-LOAD LAST TWO COMPONENTS
043267,000594:    6574           50116                           INDEX    ADDRWD                                
043268,000595:    6575           30003                           DCA      2                                     
043269,000596:    6576           52160                           DXCH     MPAC       +3                         
043270,000597:    6577           50166                           INDEX    PUSHLOC                               
043271,000598:    6600           51775                           DXCH     0          -4                         
043272,000599: 
043273,000600:    6601           00006                           EXTEND                                         
043274,000601:    6602           50116                           INDEX    ADDRWD                                
043275,000602:    6603           30005                           DCA      4                                     
043276,000603:    6604           52162                           DXCH     MPAC       +5                         
043277,000604:    6605           50166                           INDEX    PUSHLOC                               
043278,000605:    6606           51777                           DXCH     0          -2                         
043279,000606: 
043280,000607:    6607           16061                           TCF      DANZIG                                
043281,000608: 
043282,000609:    6610           00006        TPDVL              EXTEND                                         #  ON TP, WE MUST LOAD THE Y COMPONENT
043283,000610:    6611           50116                           INDEX    ADDRWD                                #  BEFORE STORING MPAC +2 IN CASE THIS IS A
043284,000611:    6612           30003                           DCA      2                                     #  PUSHUP.
043285,000612:    6613           52160                           DXCH     MPAC       +3                         
043286,000613: 
043287,000614:    6614           30156                           CA       MPAC       +2                         
043288,000615:    6615           50166                           INDEX    PUSHLOC                               #  IN DP.
043289,000616:    6616           53777                           TS       0          -1                         
043290,000617:    6617           16515                           TCF      ENDVLOAD   +4                         
043291,000618: 
043292,000619:                                                                                                  #  SSP (STORE SINGLE PRECISION) IS EXECUTED HERE.
043293,000620: 
043294,000621:    6620           24164        SSP                INCR     LOC                                   #  PICK UP THE WORD FOLLOWING THE GIVEN
043295,000622:    6621           50164                           INDEX    LOC                                   #  ADDRESS AND STORE IT AT X.
043296,000623:    6622           30000                           CA       0                                     
043297,000624:    6623           50116        STORE1             INDEX    ADDRWD                                #  SOME INDEX AND MISCELLANEOUS OPS END
043298,000625:    6624           54000                           TS       0                                     #  HERE.

Page 1022

043300,000627:    6625           16061                           TCF      DANZIG                                
043301,000628: 

Page 1023

043303,000630:                                                                                                  #  SEQUENCE CHANGING AND SUBROUTINE CALLING OPTIONS.
043304,000631: 
043305,000632:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR SEQUENCING CHANGING, BRANCHING, AND CALLING SUBROUTINES:
043306,000633:                                                                                                  #        1.      GOTO            GO TO.
043307,000634:                                                                                                  #        2.      CALL            CALL SUBROUTINE SETTING QPRET.
043308,000635:                                                                                                  #        3.      CGOTO           COMPUTED GO TO.
043309,000636:                                                                                                  #        4.      CCALL           COMPUTED CALL.
043310,000637:                                                                                                  #        7.      BPL             BRANCH IF MPAC POSITIVE OR ZERO.
043311,000638:                                                                                                  #        8.      BZE             BRANCH IF MPAC ZERO.
043312,000639:                                                                                                  #        9.      BMN             BRANCH IF MPAC NEGATIVE NON-ZERO.
043313,000640: 
043314,000641:    6626           24164        CCALL              INCR     LOC                                   #  MAINTAIN LOC FOR QPRET COMPUTATION.
043315,000642:    6627           50164                           INDEX    LOC                                   
043316,000643:    6630           30000                           CAF      0                                     #  GET BASE ADDRESS OF CADR LIST.
043317,000644:    6631           50116                           INDEX    ADDRWD                                
043318,000645:    6632           60000                           AD       0                                     #  ADD INCREMENT.
043319,000646:    6633           54004                           TS       FBANK                                 #  SELECT DESIRED CADR.
043320,000647:    6634           75012                           MASK     LOW10                                 
043321,000648:    6635           50000                           INDEX    A                                     
043322,000649:    6636           32000                           CAF      10000                                 
043323,000650:    6637           54117                           TS       POLISH                                
043324,000651: 
043325,000652:    6640           30165        CALL               CA       BANKSET                               #  FOR ANY OF THE CALL OPTIONS, MAKE UP THE
043326,000653:    6641           74350                           MASK     BANKMASK                              #  ADDRESS OF THE NEXT OP-CODE PAIR/STORE
043327,000654:    6642           64350                           AD       BANKMASK                              #  CODE AND LEAVE IT IN QPRET.  NOTE THAT
043328,000655:    6643           60164                           AD       LOC                                   #  BANKMASK = -(2000 - 1).
043329,000656:    6644           50120                           INDEX    FIXLOC                                
043330,000657:    6645           54052                           TS       QPRET                                 
043331,000658: 
043332,000659:    6646           30117        GOTO               CA       POLISH                                #  BASIC BRANCHING SEQUENCE.
043333,000660:    6647           77742                 +1        MASK     HIGH4                                 
043334,000661:    6650           00006                           EXTEND                                         
043335,000662:    6651           16662                           BZF      GOTOERS                               #  SEE IF ADDRESS POINTS TO FIXED OR ERAS.
043336,000663:    6652           30165                 +4        CA       BANKSET                               #  SET EBANK PART OF BBANK.  NEXT, SET UP
043337,000664:    6653           54006                           TS       BBANK                                 #  FBANK.  THE COMBINATION IS PICKED UP &
043338,000665:    6654           30117                           CA       POLISH                                #  PUT INTO BANKSET AT INTPRET +2.
043339,000666:    6655           54004                           TS       FBANK                                 
043340,000667:    6656           75012                           MASK     LOW10                                 
043341,000668:    6657           64741                           AD       2K                                    
043342,000669:    6660           54164                           TS       LOC                                   
043343,000670:    6661           16042                           TCF      INTPRET    +3                         
043344,000671: 
043345,000672:    6662  E3,1400                                  EBANK=   1400                                  #  SO YUL DOESN'T CUSS THE "CA 1400" BELOW.
043346,000673: 
043347,000674:    6662           30117        GOTOERS            CA       POLISH                                #  THE GIVEN ADDRESS IS IN ERASABLE - SEE
043348,000675:    6663           66251                           AD       -ENDVAC                               #  IF RELATIVE TO THE WORK AREA.
043349,000676:    6664           10000                           CCS      A                                     
043350,000677:    6665           30117                           CA       POLISH                                #  GENERAL ERASABLE.
043351,000678:    6666           16675                           TCF      GOTOGE                                
043352,000679: 

Page 1024

043354,000681:    6667           30120                           CA       FIXLOC                                #  WORK AREA.
043355,000682:    6670           60117                           AD       POLISH                                
043356,000683:    6671           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
043357,000684:    6672           30000                           CA       0                                     #  THE BRANCH ADDRESS.
043358,000685:    6673           54117                           TS       POLISH                                
043359,000686:    6674           16647                           TCF      GOTO       +1                         #  ALLOWS ARBITRARY INDIRECTNESS LEVELS.
043360,000687: 
043361,000688:    6675           54003        GOTOGE             TS       EBANK                                 
043362,000689:    6676           74357                           MASK     LOW8                                  
043363,000690:    6677           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
043364,000691:    6700           31400                           CA       1400                                  #  THE BRANCH ADDRESS.
043365,000692:    6701           54117                           TS       POLISH                                
043366,000693:    6702           16647                           TCF      GOTO       +1                         
043367,000694: 
043368,000695:    6703           50164        CGOTO              INDEX    LOC                                   #  COMPUTED GO TO.  PICK UP ADDRESS OF CADR
043369,000696:    6704           30001                           CA       1                                     #  LIST.
043370,000697:    6705           50116                           INDEX    ADDRWD                                #  ADD MODIFIER.
043371,000698:    6706           60000                           AD       0                                     
043372,000699:    6707           54004                           TS       FBANK                                 #  SELECT GOTO ADDRESS.
043373,000700:    6710           75012                           MASK     LOW10                                 
043374,000701:    6711           50000                           INDEX    A                                     
043375,000702:    6712           32000                           CA       10000                                 
043376,000703:    6713           54117                           TS       POLISH                                
043377,000704:    6714           16647                           TCF      GOTO       +1                         #  WITH ADDRESS IN A.
043378,000705: 
043379,000706:    6715           30165        SWBRANCH           CA       BANKSET                               #  SWITCH INSTRUCTIONS WHICH ELECT TO
043380,000707:    6716           54004                           TS       FBANK                                 #  BRANCH COME HERE TO DO SO.
043381,000708:    6717           50164                           INDEX    LOC                                   
043382,000709:    6720           30001                           CA       1                                     
043383,000710:    6721           54117                           TS       POLISH                                
043384,000711:    6722           16647                           TCF      GOTO       +1                         
043385,000712: 

Page 1025

043387,000714:                                                                                                  #  TRIPLE PRECISION BRANCHING ROUTINE.  IF CALLING TC IS AT L, RETURN IS AS FOLLOWS:
043388,000715:                                                                                                  #        L+1     IF MPAC IS GREATER THAN ZERO.
043389,000716:                                                                                                  #        L+2     IF MPAC IS EQUAL TO +0 OR -0.
043390,000717:                                                                                                  #        L+3     IF MPAC IS LESS THAN ZERO.
043391,000718: 
043392,000719:    6723           10154        BRANCH             CCS      MPAC                                  
043393,000720:    6724           00002                           TC       Q                                     
043394,000721:    6725           16727                           TCF      +2                                    #  ON ZERO.
043395,000722:    6726           16741                           TCF      NEG                                   
043396,000723: 
043397,000724:    6727           10155                           CCS      MPAC       +1                         
043398,000725:    6730           00002                           TC       Q                                     
043399,000726:    6731           16733                           TCF      +2                                    
043400,000727:    6732           16741                           TCF      NEG                                   
043401,000728: 
043402,000729:    6733           10156                           CCS      MPAC       +2                         
043403,000730:    6734           00002                           TC       Q                                     
043404,000731:    6735           16737                           TCF      +2                                    
043405,000732:    6736           16741                           TCF      NEG                                   
043406,000733: 
043407,000734:    6737           50002        Q+1                INDEX    Q                                     
043408,000735:    6740           00001                           TC       1                                     
043409,000736: 
043410,000737:    6741           50002        NEG                INDEX    Q                                     #  IF FIRST NON-ZERO REGISTER WAS NEGATIVE.
043411,000738:    6742           00002                           TC       2                                     
043412,000739: 
043413,000740:    6743     6741               Q+2                =        NEG                                   
043414,000741: 
043415,000742:                                                                                                  #  ITRACE (3) REFERS TO "EXIT".
043416,000743: 
043417,000744:    6743           30165        EXIT               CA       BANKSET                               #  RESTORE USER'S BANK SETTING, AND LEAVE
043418,000745:    6744           54006                           TS       BBANK                                 #  INTERPRETIVE MODE.
043419,000746:    6745           50164                           INDEX    LOC                                   
043420,000747:    6746           00001                           TC       1                                     
043421,000748: 

Page 1026

043423,000750:                                                                                                  #  SECTION 3 - ADD/SUBTRACT PACKAGE.
043424,000751: 
043425,000752:                                                                                                  #           THE FOLLOWING OPERATIONS ARE PROVIDED FOR ADDING TO AND SUBTRACTING FROM THE MULTI-PURPOSE ACCUMULATOR
043426,000753:                                                                                                  #  MPAC:
043427,000754: 
043428,000755:                                                                                                  #        1.      DAD     DOUBLE PRECISION ADD.
043429,000756:                                                                                                  #        2.      DSU     DOUBLE PRECISION SUBTRACT.
043430,000757:                                                                                                  #        3.      BDSU    DOUBLE PRECISION SUBTRACT FROM.
043431,000758:                                                                                                  #        4.      TAD     TRIPLE PRECISION ADD.
043432,000759:                                                                                                  #        5.      VAD     VECTOR ADD.
043433,000760:                                                                                                  #        6.      VSU     VECTOR SUBTRACT.
043434,000761:                                                                                                  #        7.      BVSU    VECTOR SUBTRACT FROM.
043435,000762:                                                                                                  #  THE INTERPRETIVE OVERFLOW INDICATOR OVFIND IS SET NON-ZERO IF OVERFLOW OCCURS IN ANY OF THE ABOVE.
043436,000763: 
043437,000764:    6747           34735        VSU                CAF      BIT15                                 #  CHANGES 0 TO DCS.
043438,000765:    6750           16752                           TCF      +2                                    
043439,000766: 
043440,000767:    6751           34355        VAD                CAF      PRIO30                                #  CHANGES 0 TO DCA.
043441,000768:    6752           26116                           ADS      ADDRWD                                
043442,000769:    6753           00006                           EXTEND                                         
043443,000770:    6754           50116                           INDEX    ADDRWD                                
043444,000771:    6755           00003                           READ     HISCALAR                              #  DCA 2 OR DCS 2
043445,000772:    6756           20160                           DAS      MPAC       +3                         
043446,000773:    6757           00006                           EXTEND                                         #  CHECK OVERFLOW.
043447,000774:    6760           16762                           BZF      +2                                    
043448,000775:    6761           07014                           TC       OVERFLWY                              
043449,000776: 
043450,000777:    6762           00006                           EXTEND                                         
043451,000778:    6763           50116                           INDEX    ADDRWD                                
043452,000779:    6764           00005                           READ     CHAN5                                 #  DCA 4 OR DCS 4
043453,000780:    6765           20162                           DAS      MPAC       +5                         
043454,000781:    6766           00006                           EXTEND                                         
043455,000782:    6767           16771                           BZF      +2                                    
043456,000783:    6770           07011                           TC       OVERFLWZ                              
043457,000784: 
043458,000785:    6771           00006                           EXTEND                                         
043459,000786:    6772           50116                           INDEX    ADDRWD                                
043460,000787:    6773           00001                           READ     LCHAN                                 #  DCA 0 OR DCS 0
043461,000788:    6774           17000                           TCF      ENDVXV                                
043462,000789: 
043463,000790:    6775           00006        DAD                EXTEND                                         
043464,000791:    6776           50116                           INDEX    ADDRWD                                
043465,000792:    6777           30001                           DCA      0                                     
043466,000793:    7000           20155        ENDVXV             DAS      MPAC                                  #  VXV FINISHES HERE.
043467,000794:    7001           00006                           EXTEND                                         
043468,000795:    7002           16061                           BZF      DANZIG                                
043469,000796: 

Page 1027

043471,000798:    7003           07017        SETOVF             TC       OVERFLOW                              
043472,000799:    7004           16061                           TCF      DANZIG                                
043473,000800: 

Page 1028

043475,000802:    7005           00006        DSU                EXTEND                                         
043476,000803:    7006           50116                           INDEX    ADDRWD                                
043477,000804:    7007           40001                           DCS      0                                     
043478,000805:    7010           17000                           TCF      ENDVXV                                
043479,000806: 
043480,000807:    7011           54001        OVERFLWZ           TS       L                                     #  ENTRY FOR THIRD COMPONENT.
043481,000808:    7012           34756                           CAF      FIVE                                  
043482,000809:    7013           17016                           TCF      +3                                    
043483,000810: 
043484,000811:    7014           54001        OVERFLWY           TS       L                                     #  ENTRY FOR SECOND COMPONENT.
043485,000812:    7015           36245                           CAF      THREE                                 
043486,000813:    7016           56001                           XCH      L                                     
043487,000814: 
043488,000815:    7017           50000        OVERFLOW           INDEX    A                                     #  ENTRY FOR 1ST COMP OR DP (L=0).
043489,000816:    7020           44734                           CS       LIMITS                                #  PICK UP POSMAX OR NEGMAX.
043490,000817:    7021           54130                           TS       BUF                                   
043491,000818:    7022           00006                           EXTEND                                         
043492,000819:    7023           24000                           AUG      A                                     #  FORCE OVERFLOW.
043493,000820:    7024           50001                           INDEX    L                                     
043494,000821:    7025           26155                           ADS      MPAC       +1                         
043495,000822:    7026           54007                           TS       7                                     
043496,000823:    7027           34755                           CAF      ZERO                                  
043497,000824:    7030           60130                           AD       BUF                                   
043498,000825:    7031           50001                           INDEX    L                                     
043499,000826:    7032           26154                           ADS      MPAC                                  
043500,000827:    7033           54007                           TS       7                                     
043501,000828:    7034           00002                           TC       Q                                     #  NO OVERFLOW EXIT.
043502,000829:    7035           17152                           TCF      SETOVF2                               #  SET OVFIND AND EXIT.
043503,000830: 
043504,000831:    7036           00006        BVSU               EXTEND                                         
043505,000832:    7037           50116                           INDEX    ADDRWD                                
043506,000833:    7040           30003                           DCA      2                                     
043507,000834:    7041           52160                           DXCH     MPAC       +3                         
043508,000835:    7042           00006                           EXTEND                                         
043509,000836:    7043           40001                           DCOM                                           
043510,000837:    7044           20160                           DAS      MPAC       +3                         
043511,000838:    7045           00006                           EXTEND                                         
043512,000839:    7046           17050                           BZF      +2                                    
043513,000840:    7047           07014                           TC       OVERFLWY                              
043514,000841: 
043515,000842:    7050           00006                           EXTEND                                         
043516,000843:    7051           50116                           INDEX    ADDRWD                                
043517,000844:    7052           30005                           DCA      4                                     
043518,000845:    7053           52162                           DXCH     MPAC       +5                         
043519,000846:    7054           00006                           EXTEND                                         
043520,000847:    7055           40001                           DCOM                                           
043521,000848:    7056           20162                           DAS      MPAC       +5                         
043522,000849:    7057           00006                           EXTEND                                         
043523,000850:    7060           17062                           BZF      +2                                    
043524,000851:    7061           07011                           TC       OVERFLWZ                              
043525,000852: 

Page 1029

043527,000854:    7062           00006        BDSU               EXTEND                                         
043528,000855:    7063           50116                           INDEX    ADDRWD                                
043529,000856:    7064           30001                           DCA      0                                     
043530,000857:    7065           52155                           DXCH     MPAC                                  
043531,000858:    7066           00006                           EXTEND                                         
043532,000859:    7067           40001                           DCOM                                           
043533,000860:    7070           17000                           TCF      ENDVXV                                
043534,000861: 

Page 1030

043536,000863:                                                                                                  #  TRIPLE PRECISION ADD ROUTINE.
043537,000864: 
043538,000865:    7071           00006        TAD                EXTEND                                         
043539,000866:    7072           50116                           INDEX    ADDRWD                                
043540,000867:    7073           30002                           DCA      1                                     #  ADD MINOR PARTS FIRST.
043541,000868:    7074           20156                           DAS      MPAC       +1                         
043542,000869:    7075           50116                           INDEX    ADDRWD                                
043543,000870:    7076           60000                           AD       0                                     
043544,000871:    7077           60154                           AD       MPAC                                  
043545,000872:    7100           54154                           TS       MPAC                                  
043546,000873:    7101           16061                           TCF      DANZIG                                
043547,000874: 
043548,000875:    7102           17003                           TCF      SETOVF                                #  SET OVFIND IF SUCH OCCURS.
043549,000876: 

Page 1031

043551,000878:                                                                                                  #  ARITHMETIC SUBROUTINES REQUIRED IN FIXED-FIXED.
043552,000879:                                                                                                  #        1.  DMPSUB      DOUBLE PRECISION MULTIPLY. MULTIPLY THE CONTENTS OF MPAC,+1 BY THE DP WORD WHOSE ADDRESS
043553,000880:                                                                                                  #                        IS IN ADDRWD AND LEAVE A TRIPLE PRECISION RESULT IN MPAC.
043554,000881:                                                                                                  #        2.  ROUNDSUB    ROUND THE TRIPLE PRECISON CONTENTS OF MPAC TO DOUBLE PRECISION.
043555,000882:                                                                                                  #        3.  DOTSUB      TAKE THE DOT PRODUCT OF THE VECTOR IN MPAC AND THE VECTOR WHOSE ADDRESS IS IN ADDRWD
043556,000883:                                                                                                  #                        AND LEAVE THE TRIPLE PRECISION RESULT IN MPAC.
043557,000884:                                                                                                  #        4.  POLY        USING THE CONTENTS OF MPAC AS A DP ARGUMENT, EVALUATE THE POLYNOMIAL WHOSE DEGREE AND
043558,000885:                                                                                                  #                        COEFFICIENTS IMMEDIATELY FOLLOW THE TC POLY INSTRUCTION (SEE ROUTINE FOR DETAILS.)
043559,000886: 
043560,000887:    7103           50002        DMP                INDEX    Q                                     #  BASIC SUBROUTINE FOR USE BY PINBALL, ETC
043561,000888:    7104           30000                           CAF      0                                     #  ADRES OF ARGUMENT FOLLOWS  TC DMP .
043562,000889:    7105           24002                           INCR     Q                                     
043563,000890:    7106           54116                 -1        TS       ADDRWD                                #  (PROLOGUE FOR SETTING ADDRWD.)
043564,000891: 
043565,000892:    7107           50116        DMPSUB             INDEX    ADDRWD                                #  GET MINOR PART OF OPERAND AT C(ADDRWD).
043566,000893:    7110           30001                           CA       1                                     
043567,000894:    7111           54156                           TS       MPAC       +2                         #  THIS WORKS FOR SQUARING MPAC AS WELL.
043568,000895:    7112           34755                           CAF      ZERO                                  #  SET MPAC +1 TO ZERO SO WE CAN ACCUMULATE
043569,000896:    7113           56155                           XCH      MPAC       +1                         #  THE PARTIAL PRODUCTS WITH DAS
043570,000897:    7114           54135                           TS       MPTEMP                                #  INSTRUCTIONS.
043571,000898:    7115           00006                           EXTEND                                         
043572,000899:    7116           70156                           MP       MPAC       +2                         #  MINOR OF MPAC X MINOR OF C(ADDRWD).
043573,000900: 
043574,000901:    7117           56156                           XCH      MPAC       +2                         #  DISCARD MINOR PART OF ABOVE RESULT AND
043575,000902:    7120           00006                           EXTEND                                         #  FORM MAJOR OF MPAC X MINOR OF C(ADDRWD).
043576,000903:    7121           70154                           MP       MPAC                                  
043577,000904:    7122           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
043578,000905: 
043579,000906:    7123           50116                           INDEX    ADDRWD                                #  GET MAJOR PART OF ARGUMENT AT C(ADDRWD).
043580,000907:    7124           30000                           CA       0                                     
043581,000908:    7125           56135                           XCH      MPTEMP                                #  SAVE AND BRING OUT MINOR OF MPAC.
043582,000909:    7126           00006        DMPSUB2            EXTEND                                         
043583,000910:    7127           70135                           MP       MPTEMP                                #  MAJOR OF C(ADDRWD) X MINOR OF MPAC.
043584,000911:    7130           20156                           DAS      MPAC       +1                         #  ACCUMULATE, SETTING A TO NET OVERFLOW.
043585,000912: 
043586,000913:    7131           56154                           XCH      MPAC                                  #  SETTING MPAC TO 0 OR +-1.
043587,000914:    7132           00006                           EXTEND                                         
043588,000915:    7133           70135                           MP       MPTEMP                                #  MAJOR OF MPAC X MAJOR OF C(ADDRWD).
043589,000916:    7134           20155                           DAS      MPAC                                  #  GUARANTEED NO OVERFLOW.
043590,000917:    7135           00002                           TC       Q                                     #  49 MCT = .573 MS. INCLUDING RETURN.
043591,000918: 

Page 1032

043593,000920:                                                                                                  #  ROUND MPAC TO DOUBLE PRECISION, SETTING OVFIND ON THE RARE EVENT OF OVERFLOW.
043594,000921: 
043595,000922:    7136           34755        ROUNDSUB           CAF      ZERO                                  #  SET MPAC +2 = 0 FOR SCALARS AND CHANGE
043596,000923:    7137           54163                 +1        TS       MODE                                  #  MODE TO DP.
043597,000924: 
043598,000925:    7140           56156        VROUND             XCH      MPAC       +2                         #  BUT WE NEEDNT TAKE THE TIME FOR VECTORS.
043599,000926:    7141           60000                           DOUBLE                                         
043600,000927:    7142           54001                           TS       L                                     
043601,000928:    7143           00002                           TC       Q                                     
043602,000929: 
043603,000930:    7144           60155                           AD       MPAC       +1                         #  ADD ROUNDING BIT IF MPAC +2 WAS GREATER
043604,000931:    7145           54155                           TS       MPAC       +1                         #  THAN .5 IN MAGNITUDE.
043605,000932:    7146           00002                           TC       Q                                     
043606,000933: 
043607,000934:    7147           60154                           AD       MPAC                                  #  PROPAGATE INTERFLOW.
043608,000935:    7150           54154                           TS       MPAC                                  
043609,000936:    7151           00002                           TC       Q                                     
043610,000937: 
043611,000938:    7152           54121        SETOVF2            TS       OVFIND                                #  (RARE).
043612,000939:    7153           00002                           TC       Q                                     
043613,000940: 

Page 1033

043615,000942:                                                                                                  #  THE DOT PRODUCT SUBROUTINE USUALLY FORMS THE DOT PRODUCT OF THE VECTOR IN MPAC WITH A STANDARD SIX
043616,000943:                                                                                                  #  REGISTER VECTOR WHOSE ADDRESS IS IN ADDRWD.  IN THIS CASE C(DOTINC) ARE SET TO 2.   VXM, HOWEVER, SETS C(DOTINC) TO
043617,000944:                                                                                                  #  6 SO THAT DOTSUB DOTS MPAC WITH A COLUMN VECTOR OF THE MATRIX IN QUESTION IN THIS CASE.
043618,000945: 
043619,000946:    7154           34752        PREDOT             CAF      TWO                                   #  PROLOGUE TO SET DOTINC TO 2.
043620,000947:    7155           54136                           TS       DOTINC                                
043621,000948: 
043622,000949:    7156           00006        DOTSUB             EXTEND                                         
043623,000950:    7157           22137                           QXCH     DOTRET                                #  SAVE RETURN.
043624,000951:    7160           07107                           TC       DMPSUB                                #  DOT X COMPONENTS.
043625,000952:    7161           52160                           DXCH     MPAC       +3                         #  POSITION Y COMPONENT OF MPAC FOR
043626,000953:    7162           52155                           DXCH     MPAC                                  #  MULTIPLICATION WHILE SAVING RESULT IN
043627,000954:    7163           52131                           DXCH     BUF                                   #  THREE WORD BUFFER, BUF.
043628,000955:    7164           30156                           CA       MPAC       +2                         
043629,000956:    7165           54132                           TS       BUF        +2                         
043630,000957: 
043631,000958:    7166           30136                           CA       DOTINC                                #  ADVANCE ADDRWD TO Y COMPONENT OF
043632,000959:    7167           26116                           ADS      ADDRWD                                #  OTHER ARGUMENT.
043633,000960:    7170           07107                           TC       DMPSUB                                
043634,000961:    7171           52156                           DXCH     MPAC       +1                         #  ACCUMULATE PARTIAL PRODUCTS.
043635,000962:    7172           20132                           DAS      BUF        +1                         
043636,000963:    7173           60154                           AD       MPAC                                  
043637,000964:    7174           60130                           AD       BUF                                   
043638,000965:    7175           54130                           TS       BUF                                   
043639,000966:    7176           17200                           TCF      +2                                    
043640,000967:    7177           54121                           TS       OVFIND                                #  IF OVERFLOW OCCURS.
043641,000968: 
043642,000969:    7200           52162                           DXCH     MPAC       +5                         #  MULTIPLY Z COMPONENTS.
043643,000970:    7201           52155                           DXCH     MPAC                                  
043644,000971:    7202           30136                           CA       DOTINC                                
043645,000972:    7203           26116                           ADS      ADDRWD                                
043646,000973:    7204           07107                           TC       DMPSUB                                
043647,000974:    7205           52132        ENDDOT             DXCH     BUF        +1                         #  LEAVE FINAL ACCUMULATION IN MPAC.
043648,000975:    7206           20156                           DAS      MPAC       +1                         
043649,000976:    7207           60154                           AD       MPAC                                  
043650,000977:    7210           60130                           AD       BUF                                   
043651,000978:    7211           54154                           TS       MPAC                                  
043652,000979:    7212           00137                           TC       DOTRET                                
043653,000980: 
043654,000981:    7213           07017                           TC       OVERFLOW                              #  ON OVERFLOW HERE.
043655,000982:    7214           00137                           TC       DOTRET                                
043656,000983: 

Page 1034

043658,000985:                                                                                                  #  DOUBLE PRECISION POLYNOMIAL EVALUATOR
043659,000986:                                                                                                  #                                  N        N-1
043660,000987:                                                                                                  #        THIS ROUTINE EVALUATES A X  + A   X    + ... + A  X + A  LEAVING THE DP RESULT IN MPAC ON EXIT.
043661,000988:                                                                                                  #                                N      N-1              1      0
043662,000989: 
043663,000990:                                                                                                  #  THE ROUTINE HAS TWO ENTRIES
043664,000991: 
043665,000992:                                                                                                  #        1.      ENTRY THRU POWRSERS.  THE COEFFICIENTS MAY BE EITHER IN FIXED OR ERASABLE, THE CALL IS BY
043666,000993:                                                                                                  #                TC POWRSERS, AND THE RETURN IS TO LOC(TC POWRSERS)+1.  THE ENTERING DATA MUST BE AS FOLLOWS
043667,000994: 
043668,000995:                                                                                                  #                        A               SP      LOC-3           ADDRESS FOR REFERENCING COEF TABLE
043669,000996:                                                                                                  #                        L               SP      N-1             N IS THE DEGREE OF THE POWER SERIES
043670,000997:                                                                                                  #                        MPAC            DP      X               ARGUMENT
043671,000998:                                                                                                  #                        LOC-2N          DP      A(0)
043672,000999:                                                                                                  #                                        ...
043673,001000:                                                                                                  #                        LOC             DP      A(N)
043674,001001: 
043675,001002:                                                                                                  #        2.      ENTRY THRU POLY.  THE CALL TO POLY AND THE ENTERING DATA MUST BE AS FOLLOWS
043676,001003: 
043677,001004:                                                                                                  #                        MPAC            DP      X               ARGUMENT
043678,001005:                                                                                                  #                        LOC             TC      POLY
043679,001006:                                                                                                  #                        LOC+1           SP      N-1
043680,001007:                                                                                                  #                        LOC+2           DP      A(0)
043681,001008:                                                                                                  #                                        ...
043682,001009:                                                                                                  #                        LOC+2N+2        DP      A(N)            RETURN IS TO LOC+2N+4
043683,001010: 
043684,001011:    7215           00006        POWRSERS           EXTEND                                         
043685,001012:    7216           22141                           QXCH     POLYRET                               #  RETURN ADDRESS
043686,001013:    7217           54117                           TS       POLISH                                #  POWER SERIES ADDRESS
043687,001014:    7220           22140                           LXCH     POLYCNT                               #  N-1 TO COUNTER
043688,001015:    7221           17232                           TCF      POLYCOM                               #  SKIP SET UP BY POLY
043689,001016: 
043690,001017:    7222           50002        POLY               INDEX    Q                                     
043691,001018:    7223           30000                           CAF      0                                     
043692,001019:    7224           54140                           TS       POLYCNT                               #  N-1 TO COUNTER
043693,001020:    7225           60000                           DOUBLE                                         
043694,001021:    7226           60002                           AD       Q                                     
043695,001022:    7227           54117                           TS       POLISH                                #  L(A(N))-3 TO POLISH
043696,001023:    7230           64756                           AD       FIVE                                  
043697,001024:    7231           54141                           TS       POLYRET                               #  STORE RETURN ADDRESS
043698,001025: 
043699,001026:    7232           36273        POLYCOM            CAF      LVBUF                                 #  INCOMING X WILL BE MOVED TO VBUF, SO
043700,001027:    7233           54116                           TS       ADDRWD                                #  SET ADDRWD SO DMPSUB WILL MPY BY VBUF.
043701,001028: 
043702,001029:    7234           00006                           EXTEND                                         
043703,001030:    7235           50117                           INDEX    POLISH                                
043704,001031:    7236           30004                           DCA      3                                     
043705,001032: 

Page 1035

043707,001034:    7237           52155                           DXCH     MPAC                                  #  LOAD A(N) INTO MPAC,
043708,001035:    7240           52123                           DXCH     VBUF                                  #  SAVING X IN VBUF
043709,001036:    7241           17245                           TCF      POLY2                                 
043710,001037: 
043711,001038:    7242           54140        POLYLOOP           TS       POLYCNT                               #  SAVE DECREMENTED LOOP COUNTER
043712,001039:    7243           44752                           CS       TWO                                   
043713,001040:    7244           26117                           ADS      POLISH                                #  REGRESS COEFFICIENT POINTER
043714,001041: 
043715,001042:    7245           07107        POLY2              TC       DMPSUB                                #  MULTIPLY BY X
043716,001043:    7246           00006                           EXTEND                                         
043717,001044:    7247           50117                           INDEX    POLISH                                
043718,001045:    7250           30002                           DCA      1                                     #  ADD IN NEXT COEFFICIENT
043719,001046:    7251           20155                           DAS      MPAC                                  #  USERS RESPONSIBILITY TO ASSURE NO OVFLOW
043720,001047: 
043721,001048:    7252           10140                           CCS      POLYCNT                               
043722,001049:    7253           17242                           TCF      POLYLOOP                              
043723,001050:    7254           00141                           TC       POLYRET                               #  RETURN CALLER
043724,001051: 

Page 1036

043726,001053:                                                                                                  #  MISCELLANEOUS MULTI-PRECISION ROUTINES REQUIRED IN FIXED-FIXED BUT NOT USED BY THE INTERPRETER.
043727,001054: 
043728,001055:    7255           34755        DPAGREE            CAF      ZERO                                  #  DOUBLE PRECISION ENTRY -
043729,001056:    7256           54156                           TS       MPAC       +2                         #  ZERO LOW-ORDER WORD
043730,001057: 
043731,001058:    7257           22002        TPAGREE            LXCH     Q                                     #  FORCE SIGN AGREEMENT AMONG THE TRIPLE
043732,001059:    7260           06723                           TC       BRANCH                                #  PRECISION CONTENTS OF MPAC.  RETURNING
043733,001060:    7261           17265                           TCF      ARG+                                  #  WITH SIGNUM OF THE INPUT IN A.
043734,001061:    7262           17305                           TCF      ARGZERO                               
043735,001062: 
043736,001063:    7263           44733                           CS       POSMAX                                #  IF NEGATIVE.
043737,001064:    7264           17266                           TCF      +2                                    
043738,001065: 
043739,001066:    7265           34733        ARG+               CAF      POSMAX                                
043740,001067:    7266           54002                           TS       Q                                     
043741,001068:    7267           00006                           EXTEND                                         
043742,001069:    7270           24000                           AUG      A                                     #  FORMS +-1.0.
043743,001070:    7271           60156                           AD       MPAC       +2                         
043744,001071:    7272           54156                           TS       MPAC       +2                         
043745,001072:    7273           34755                           CAF      ZERO                                  
043746,001073:    7274           60002                           AD       Q                                     
043747,001074:    7275           60155                           AD       MPAC       +1                         
043748,001075:    7276           54155                           TS       MPAC       +1                         
043749,001076:    7277           34755                           CAF      ZERO                                  
043750,001077:    7300           60002                           AD       Q                                     #  Q STILL HAS POSMAX OR NEGMAX IN IT.
043751,001078:    7301           60154                           AD       MPAC                                  
043752,001079:    7302           54154        ARGZERO2           TS       MPAC                                  #  ALWAYS SKIPPING UNLESS ARGZERO.
043753,001080:    7303           54155                           TS       MPAC       +1                         
043754,001081:    7304           00001                           TC       L                                     #  RETURN VIA L.
043755,001082: 
043756,001083:    7305           54156        ARGZERO            TS       MPAC       +2                         #  SET ALL THREE MPAC REGISTERS TO ZERO.
043757,001084:    7306           17302                           TCF      ARGZERO2                              
043758,001085: 
043759,001086:                                                                                                  #  SHORTMP MULTIPLIES THE TP CONTENTS OF MPAC BY THE SINGLE PRECISION NUMBER ARRIVING IN A.
043760,001087: 
043761,001088:    7307           54135        SHORTMP            TS       MPTEMP                                
043762,001089:    7310           00006                           EXTEND                                         
043763,001090:    7311           70156                           MP       MPAC       +2                         
043764,001091:    7312           54156                           TS       MPAC       +2                         
043765,001092:    7313           34755        SHORTMP2           CAF      ZERO                                  #  SO SUBSEQUENT DAS WILL WORK.
043766,001093:    7314           56155                           XCH      MPAC       +1                         
043767,001094:    7315           17126                           TCF      DMPSUB2                               
043768,001095: 

Page 1037

043770,001097:                                                                                                  #  DMPNSUB MULTIPLIES THE DP FRACTION ARRIVING IN MPAC BY THE SP
043771,001098:                                                                                                  #  INTEGER ARRIVING IN A.  THE DP PRODUCT DEPARTS BOTH IN MPAC AND IN
043772,001099:                                                                                                  #  A AND L.  NOTE THAT DMPNSUB NORMALLY INCREASES THE MAGNITUDE OF THE
043773,001100:                                                                                                  #  CONTENTS OF MPAC.  THE CUSTOMER MUST INSURE THAT B(A) X B(MPAC,MPAC+1)
043774,001101:                                                                                                  #  AND B(A) X B(MPAC) ARE LESS THAN 1 IN MAGNITUDE, WHERE B, AS IS OBVIOUS,
043775,001102:                                                                                                  #  INDICATES THE ARRIVING CONTENTS.
043776,001103: 
043777,001104:    7316           54135        DMPNSUB            TS       DMPNTEMP                              
043778,001105:    7317           00006                           EXTEND                                         
043779,001106:    7320           70155                           MP       MPAC       +1                         
043780,001107:    7321           52155                           DXCH     MPAC                                  #  LOW PRODUCT TO MPAC, HIGH FACTOR TO A
043781,001108:    7322           00006                           EXTEND                                         
043782,001109:    7323           70135                           MP       DMPNTEMP                              
043783,001110:    7324           30001                           CA       L                                     
043784,001111:    7325           26154                           ADS      MPAC                                  #  COMPLETING THE PRODUCT IN MPAC
043785,001112:    7326           00006                           EXTEND                                         
043786,001113:    7327           30155                           DCA      MPAC                                  #  BRINGING THE PRODUCT INTO A AND L
043787,001114:    7330           00002                           TC       Q                                     
043788,001115: 

Page 1038

043790,001117:                                                                                                  #  MISCELLANEOUS VECTOR OPERATIONS.  INCLUDED HERE ARE THE FOLLOWING:
043791,001118:                                                                                                  #        1.      DOT     DP VECTOR DOT PRODUCT.
043792,001119:                                                                                                  #        2.      VXV     DP VECTOR CROSS PRODUCT.
043793,001120:                                                                                                  #        3.      VXSC    DP VECTOR TIMES SCALAR.
043794,001121:                                                                                                  #        4.      V/SC    DP VECTOR DIVIDED BY SCALAR.
043795,001122:                                                                                                  #        5.      VPROJ   DP VECTOR PROJECTION.  ( (MPAC.X)MPAC ).
043796,001123:                                                                                                  #        6.      VXM     DP VECTOR POST-MULTIPLIED BY MATRIX.
043797,001124:                                                                                                  #        7.      MXV     DP VECTOR PRE-MULTIPLIED BY MATRIX.
043798,001125: 
043799,001126:    7331           07154        DOT                TC       PREDOT                                #  DO THE DOT PRODUCT AND EXIT, CHANGING
043800,001127:    7332           34755        DMODE              CAF      ZERO                                  #  THE MODE TO DP SCALAR.
043801,001128:    7333           16060                           TCF      NEWMODE                               
043802,001129: 
043803,001130:    7334           34752        MXV                CAF      TWO                                   #  SET UP MATINC AND DOTINC FOR ROW
043804,001131:    7335           54140                           TS       MATINC                                #  VECTORS.
043805,001132:    7336           17342                           TCF      VXM/MXV                               #  GO TO COMMON PORTION.
043806,001133: 
043807,001134:    7337           44363        VXM                CS       TEN                                   #  SET MATINC AND DOTINC TO REFER TO MATRIX
043808,001135:    7340           54140                           TS       MATINC                                #  AS THREE COLUMN VECTORS.
043809,001136:    7341           36242                           CAF      SIX                                   
043810,001137: 

Page 1039

043812,001139:                                                                                                  #  COMMON PORTION OF MXV AND VXM.
043813,001140: 
043814,001141:    7342           54136        VXM/MXV            TS       DOTINC                                
043815,001142:                                                                                                  #  ITRACE (2) REFERS TO "VXM/MXV".
043816,001143:    7343           07532                           TC       MPACVBUF                              #  SAVE VECTOR IN MPAC FOR FURTHER USE.
043817,001144: 
043818,001145:    7344           07156                           TC       DOTSUB                                #  GO DOT TO GET X COMPONENT OF ANSWER.
043819,001146:    7345           00006                           EXTEND                                         
043820,001147:    7346           30123                           DCA      VBUF                                  #  MOVE MPAC VECTOR BACK INTO MPAC, SAVING
043821,001148:    7347           52155                           DXCH     MPAC                                  #  NEW X COMPONENT IN BUF2.
043822,001149:    7350           52134                           DXCH     BUF2                                  
043823,001150:    7351           00006                           EXTEND                                         
043824,001151:    7352           30125                           DCA      VBUF       +2                         
043825,001152:    7353           52160                           DXCH     MPAC       +3                         
043826,001153:    7354           00006                           EXTEND                                         
043827,001154:    7355           30127                           DCA      VBUF       +4                         
043828,001155:    7356           52162                           DXCH     MPAC       +5                         
043829,001156:    7357           30140                           CA       MATINC                                #  INITIALIZE ADDRWD FOR NEXT DOT PRODUCT.
043830,001157:    7360           26116                           ADS      ADDRWD                                #  FORMS BASE ADDRESS OF NEXT COLUMN(ROW).
043831,001158: 
043832,001159:    7361           07156                           TC       DOTSUB                                
043833,001160:    7362           52123                           DXCH     VBUF                                  #  MOVE GIVEN VECTOR BACK TO MPAC, SAVING Y
043834,001161:    7363           52155                           DXCH     MPAC                                  #  COMPONENT OF ANSWER IN VBUF +2.
043835,001162:    7364           52125                           DXCH     VBUF       +2                         
043836,001163:    7365           52160                           DXCH     MPAC       +3                         
043837,001164:    7366           52127                           DXCH     VBUF       +4                         
043838,001165:    7367           52162                           DXCH     MPAC       +5                         
043839,001166:    7370           30140                           CA       MATINC                                #  FORM ADDRESS OF LAST COLUMN OR ROW.
043840,001167:    7371           26116                           ADS      ADDRWD                                
043841,001168: 
043842,001169:    7372           07156                           TC       DOTSUB                                
043843,001170:    7373           52134                           DXCH     BUF2                                  #  ANSWER NOW COMPLETE. PUT COMPONENTS INTO
043844,001171:    7374           52155                           DXCH     MPAC                                  #  PROPER MPAC REGISTERS.
043845,001172:    7375           52162                           DXCH     MPAC       +5                         
043846,001173:    7376           52125                           DXCH     VBUF       +2                         
043847,001174:    7377           52160                           DXCH     MPAC       +3                         
043848,001175:    7400           16061                           TCF      DANZIG                                #  EXIT.
043849,001176: 

Page 1040

043851,001178:                                                                                                  #  VXSC - VECTOR TIMES SCALAR.
043852,001179: 
043853,001180:    7401           10163        VXSC               CCS      MODE                                  #  TEST PRESENT MODE.
043854,001181:    7402           17430                           TCF      DVXSC                                 #  SEPARATE ROUTINE WHEN SCALAR IS IN MPAC.
043855,001182:    7403           17430                           TCF      DVXSC                                 
043856,001183: 
043857,001184:    7404           07107        VVXSC              TC       DMPSUB                                #  COMPUTE X COMPONENT
043858,001185:    7405           07140                           TC       VROUND                                #  AND ROUND IT.
043859,001186:    7406           52160                           DXCH     MPAC       +3                         #  PUT Y COMPONENT INTO MPAC SAVING MPAC IN
043860,001187:    7407           52155                           DXCH     MPAC                                  #  MPAC +3.
043861,001188:    7410           52160                           DXCH     MPAC       +3                         
043862,001189: 
043863,001190:    7411           07107                           TC       DMPSUB                                #  DO SAME FOR Y AND Z COMPONENTS.
043864,001191:    7412           07140                           TC       VROUND                                
043865,001192:    7413           52162                           DXCH     MPAC       +5                         
043866,001193:    7414           52155                           DXCH     MPAC                                  
043867,001194:    7415           52162                           DXCH     MPAC       +5                         
043868,001195: 
043869,001196:    7416           07107                           TC       DMPSUB                                
043870,001197:    7417           07140                           TC       VROUND                                
043871,001198:    7420           52155        VROTATEX           DXCH     MPAC                                  #  EXIT USED TO RESTORE MPAC AFTER THIS
043872,001199:    7421           52162                           DXCH     MPAC       +5                         #  TYPE OF ROTATION.  CALLED BY VECTOR SHIFT
043873,001200:    7422           52160                           DXCH     MPAC       +3                         #  RIGHT, V/SC, ETC.
043874,001201:    7423           52155                           DXCH     MPAC                                  
043875,001202:    7424           16061                           TCF      DANZIG                                
043876,001203: 

Page 1041

043878,001205:                                                                                                  #  DP VECTOR PROJECTION ROUTINE.
043879,001206: 
043880,001207:    7425           07154        VPROJ              TC       PREDOT                                #  (MPAC.X)MPAC IS COMPUTED AND LEFT IN
043881,001208:    7426           44751                           CS       FOUR                                  #  MPAC.  DO DOT AND FALL INTO DVXSC.
043882,001209:    7427           26116                           ADS      ADDRWD                                
043883,001210: 
043884,001211:                                                                                                  #  VXSC WHEN SCALAR ARRIVES IN MPAC AND VECTOR IS AT X.
043885,001212: 
043886,001213:    7430           00006        DVXSC              EXTEND                                         #  SAVE SCALAR IN MPAC +3 AND GET X
043887,001214:    7431           30155                           DCA      MPAC                                  #  COMPONENT OF ANSWER.
043888,001215:    7432           52160                           DXCH     MPAC       +3                         
043889,001216:    7433           07107                           TC       DMPSUB                                
043890,001217:    7434           07140                           TC       VROUND                                
043891,001218: 
043892,001219:    7435           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO Y COMPONENT OF X.
043893,001220:    7436           26116                           ADS      ADDRWD                                
043894,001221:    7437           00006                           EXTEND                                         
043895,001222:    7440           30160                           DCA      MPAC       +3                         #  PUT SCALAR BACK INTO MPAC AND SAVE
043896,001223:    7441           52155                           DXCH     MPAC                                  #  X RESULT IN MPAC +5.
043897,001224:    7442           52162                           DXCH     MPAC       +5                         
043898,001225:    7443           07107                           TC       DMPSUB                                
043899,001226:    7444           07140                           TC       VROUND                                
043900,001227: 
043901,001228:    7445           34752                           CAF      TWO                                   
043902,001229:    7446           26116                           ADS      ADDRWD                                #  TO Z COMPONENT.
043903,001230:    7447           52160                           DXCH     MPAC       +3                         #  BRING SCALAR BACK, PUTTING Y RESULT IN
043904,001231:    7450           52155                           DXCH     MPAC                                  #  THE PROPER PLACE.
043905,001232:    7451           52160                           DXCH     MPAC       +3                         
043906,001233:    7452           07107                           TC       DMPSUB                                
043907,001234:    7453           07140                           TC       VROUND                                
043908,001235: 
043909,001236:    7454           52155                           DXCH     MPAC                                  #  PUT Z COMPONENT IN PROPER PLACE, ALSO
043910,001237:    7455           52162                           DXCH     MPAC       +5                         #  POSITIONING X.
043911,001238:    7456           52155                           DXCH     MPAC                                  
043912,001239: 
043913,001240:    7457           16521                           TCF      VMODE                                 #  MODE HAS CHANGED TO VECTOR.
043914,001241: 

Page 1042

043916,001243:                                                                                                  #           THE VECTOR CROSS PRODUCT ROUTINE CALCULATES (X M -X M ,X M -X M ,X M -X M ) WHERE M IS THE VECTOR IN
043917,001244:                                                                                                  #                                                         3 2  2 3  1 3  3 1  2 1  1 2
043918,001245:                                                                                                  #  MPAC AND X THE VECTOR AT THE GIVEN ADDRESS.
043919,001246: 
043920,001247:    7460           00006        VXV                EXTEND                                         
043921,001248:    7461           30162                           DCA      MPAC       +5                         #  FORM UP M3X1, LEAVING M1 IN VBUF.
043922,001249:    7462           52155                           DXCH     MPAC                                  
043923,001250:    7463           52123                           DXCH     VBUF                                  
043924,001251:    7464           07107                           TC       DMPSUB                                #  BY X1.
043925,001252: 
043926,001253:    7465           00006                           EXTEND                                         
043927,001254:    7466           40160                           DCS      MPAC       +3                         #  CALCULATE -X1M2, SAVING X1M3 IN VBUF +2.
043928,001255:    7467           52155                           DXCH     MPAC                                  
043929,001256:    7470           52125                           DXCH     VBUF       +2                         
043930,001257:    7471           07107                           TC       DMPSUB                                
043931,001258: 
043932,001259:    7472           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X2.
043933,001260:    7473           26116                           ADS      ADDRWD                                
043934,001261:    7474           00006                           EXTEND                                         
043935,001262:    7475           40162                           DCS      MPAC       +5                         #  PREPARE TO GET -X2M3, SAVING -X1M2 IN
043936,001263:    7476           52155                           DXCH     MPAC                                  #  MPAC +5.
043937,001264:    7477           52162                           DXCH     MPAC       +5                         
043938,001265:    7500           07107                           TC       DMPSUB                                
043939,001266: 
043940,001267:    7501           00006                           EXTEND                                         
043941,001268:    7502           30123                           DCA      VBUF                                  #  GET X2M1, SAVING -X2M3 IN VBUF +4.
043942,001269:    7503           52155                           DXCH     MPAC                                  
043943,001270:    7504           52127                           DXCH     VBUF       +4                         
043944,001271:    7505           07107                           TC       DMPSUB                                
043945,001272: 
043946,001273:    7506           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X3.
043947,001274:    7507           26116                           ADS      ADDRWD                                
043948,001275:    7510           00006                           EXTEND                                         
043949,001276:    7511           40123                           DCS      VBUF                                  #  GET -X3M1, ADDING X2M1 TO MPAC +5 TO
043950,001277:    7512           52155                           DXCH     MPAC                                  #  COMPLETE THE Z COMPONENT OF THE ANSWER.
043951,001278:    7513           20162                           DAS      MPAC       +5                         
043952,001279: 
043953,001280:    7514           00006                           EXTEND                                         
043954,001281:    7515           17517                           BZF      +2                                    
043955,001282:    7516           07011                           TC       OVERFLWZ                              
043956,001283: 
043957,001284:    7517           07107                           TC       DMPSUB                                
043958,001285:    7520           52125                           DXCH     VBUF       +2                         #  MOVE X1M3 TO MPAC +3 SETTING UP FOR X3M2
043959,001286:    7521           52160                           DXCH     MPAC       +3                         #  AND ADD -X3M1 TO MPAC +3 TO COMPLETE THE
043960,001287:    7522           52155                           DXCH     MPAC                                  #  Y COMPONENT OF THE RESULT.
043961,001288:    7523           20160                           DAS      MPAC       +3                         
043962,001289: 
043963,001290:    7524           00006                           EXTEND                                         
043964,001291:    7525           17527                           BZF      +2                                    

Page 1043

043966,001293:    7526           07014                           TC       OVERFLWY                              
043967,001294: 
043968,001295:    7527           07107                           TC       DMPSUB                                
043969,001296:    7530           52127                           DXCH     VBUF       +4                         #  GO ADD -X2M3 TO X3M2 TO COMPLETE THE X
043970,001297:    7531           17000                           TCF      ENDVXV                                #  COMPONENT (TAIL END OF DAD).
043971,001298: 
043972,001299:                                                                                                  #  THE MPACVBUF SUBROUTINE SAVES THE VECTOR IN MPAC IN VBUF WITHOUT CLOBBERING MPAC.
043973,001300: 
043974,001301:    7532           00006        MPACVBUF           EXTEND                                         #  CALLED BY MXV, VXM, AND UNIT.
043975,001302:    7533           30155                           DCA      MPAC                                  
043976,001303:    7534           52123                           DXCH     VBUF                                  
043977,001304:    7535           00006                           EXTEND                                         
043978,001305:    7536           30160                           DCA      MPAC       +3                         
043979,001306:    7537           52125                           DXCH     VBUF       +2                         
043980,001307:    7540           00006                           EXTEND                                         
043981,001308:    7541           30162                           DCA      MPAC       +5                         
043982,001309:    7542           52127                           DXCH     VBUF       +4                         
043983,001310:    7543           00002                           TC       Q                                     #  RETURN TO CALLER.
043984,001311: 
043985,001312:                                                                                                  #  DOUBLE PRECISION SIGN AGREE ROUTINE.  ARRIVE WITH INPUT IN A+L.  OUTPUT IS IN A + L.
043986,001313: 
043987,001314:    7544           10000        ALSIGNAG           CCS      A                                     #  TEST UPPER PART.
043988,001315:    7545           17551                           TCF      UPPOS                                 #  IT IS POSITIVE
043989,001316:    7546           00002                           TC       Q                                     #  ZERO
043990,001317:    7547           17561                           TCF      UPNEG                                 #  NEGATIVE
043991,001318:    7550           00002                           TC       Q                                     #  ZERO
043992,001319: 
043993,001320:    7551           56001        UPPOS              XCH      L                                     #  SAVE DECREMENTED UPPER PART.
043994,001321:    7552           64736                           AD       HALF                                  
043995,001322:    7553           64736                           AD       HALF                                  
043996,001323:    7554           54000                           TS       A                                     #  SKIPS ON OVERFLOW
043997,001324:    7555           17557                           TCF      +2                                    
043998,001325:    7556           24001                           INCR     L                                     #  RESTORE UPPER TO ROIGINAL VALUE
043999,001326:    7557           56001                           XCH      L                                     #  SWAP A + L BACK.
044000,001327:    7560           00002                           TC       Q                                     
044001,001328: 
044002,001329:    7561           56001        UPNEG              XCH      L                                     #  SAVE COMPLEMENTED + DECREMENTED UPPER PT
044003,001330:    7562           64735                           AD       NEGMAX                                
044004,001331:    7563           67747                           AD       NEGONE                                
044005,001332:    7564           54000                           TS       A                                     
044006,001333:    7565           17567                           TCF      +2                                    #  DONT INCREMENT IF NO OVERFLOW.
044007,001334:    7566           24001                           INCR     L                                     
044008,001335:    7567           56001                           XCH      L                                     
044009,001336:    7570           40000                           COM                                            #  MAKE NEGATIVE AGAIN.
044010,001337:    7571           00002                           TC       Q                                     
044011,001338: 

Page 1044

044013,001340:                                                                                                  #  INTERPRETIVE INSTRUCTIONS WHOSE EXECUTION CONSISTS OF PRINCIPALLY CALLING SUBROUTINES.
044014,001341: 
044015,001342:    7572           07107        DMP1               TC       DMPSUB                                #  DMP INSTRUCTION.
044016,001343:    7573           16061                           TCF      DANZIG                                
044017,001344: 
044018,001345:    7574           07107        DMPR               TC       DMPSUB                                
044019,001346:    7575           07137                           TC       ROUNDSUB   +1                         #  (C(A) = +0).
044020,001347:    7576           16061                           TCF      DANZIG                                
044021,001348: 
044022,001349:    7577           00006        DDV                EXTEND                                         
044023,001350:    7600           50116                           INDEX    ADDRWD                                #  MOVE DIVIDEND INTO BUF.
044024,001351:    7601           30001                           DCA      0                                     
044025,001352:    7602           17607                           TCF      BDDV       +4                         
044026,001353: 
044027,001354:    7603           00006        BDDV               EXTEND                                         #  MOVE DIVISOR INTO MPAC SAVING MPAC, THE
044028,001355:    7604           50116                           INDEX    ADDRWD                                #  DIVIDEND, IN BUF.
044029,001356:    7605           30001                           DCA      0                                     
044030,001357:    7606           52155                           DXCH     MPAC                                  
044031,001358:    7607           52131                 +4        DXCH     BUF                                   
044032,001359:    7610           34755                           CAF      ZERO                                  #  DIVIDE ROUTINES IN BANK 0.
044033,001360:    7611           54004                           TS       FBANK                                 
044034,001361:    7612           12353                           TCF      DDV/BDDV                              
044035,001362: 
044036,001363:    7613           30116        SETPD              CA       ADDRWD                                #  MUST SET TO WORK AREA, OR EBANK TROUBLE.
044037,001364:    7614           54166                           TS       PUSHLOC                               
044038,001365:    7615           16063                           TCF      NOIBNKSW                              #  NO FBANK SWITCH REQUIRED.
044039,001366: 
044040,001367:    7616           34755        TSLC               CAF      ZERO                                  #  SHIFTING ROUTINES LOCATED IN BANK 00.
044041,001368:    7617           54004                           TS       FBANK                                 
044042,001369:    7620           12172                           TCF      TSLC2                                 
044043,001370: 
044044,001371:    7621           36074        GSHIFT             CAF      LOW7                                  #  USED AS MASK AT GENSHIFT. THIS PROCESSES
044045,001372:    7622           54004                           TS       FBANK                                 #  ANY SHIFT INSTRUCTION (EXCEPT TSLC) WITH
044046,001373:    7623           12214                           TCF      GENSHIFT                              #  AN ADDRESS (ROUTINES IN BANK 0).
044047,001374: 

Page 1045

044049,001376:                                                                                                  #  THE FOLLOWING IS THE PROLOGUE TO V/SC.  IF THE PRESENT MODE IS VECTOR, IT SAVES THE SCALAR AT X IN BUF
044050,001377:                                                                                                  #  AND CALLS THE V/SC ROUTINE IN BANK 0.  IF THE PRESENT MODE IS SCALAR, IT MOVES THE VECTOR AT X INTO MPAC, SAVING
044051,001378:                                                                                                  #  THE SCALAR IN MPAC IN BUF BEFORE CALLING THE V/SC ROUTINE IN BANK 0.
044052,001379: 
044053,001380:    7624           10163        V/SC               CCS      MODE                                  
044054,001381:    7625           17636                           TCF      DV/SC                                 #  MOVE VECTOR INTO MPAC.
044055,001382:    7626           17636                           TCF      DV/SC                                 
044056,001383: 
044057,001384:    7627           00006        VV/SC              EXTEND                                         
044058,001385:    7630           50116                           INDEX    ADDRWD                                
044059,001386:    7631           30001                           DCA      0                                     
044060,001387:    7632           52131        V/SC1              DXCH     BUF                                   #  IN BOTH CASES, VECTOR IS NOW IN MPAC AND
044061,001388:    7633           34755                           CAF      ZERO                                  #  SCALAR IN BUF.
044062,001389:    7634           54004                           TS       FBANK                                 
044063,001390:    7635           12654                           TCF      V/SC2                                 
044064,001391: 
044065,001392:    7636           00006        DV/SC              EXTEND                                         
044066,001393:    7637           50116                           INDEX    ADDRWD                                
044067,001394:    7640           30003                           DCA      2                                     
044068,001395:    7641           52160                           DXCH     MPAC       +3                         
044069,001396:    7642           00006                           EXTEND                                         
044070,001397:    7643           50116                           INDEX    ADDRWD                                
044071,001398:    7644           30005                           DCA      4                                     
044072,001399:    7645           52162                           DXCH     MPAC       +5                         
044073,001400: 
044074,001401:    7646           44753                           CS       ONE                                   #  CHANGE MODE TO VECTOR.
044075,001402:    7647           54163                           TS       MODE                                  
044076,001403: 
044077,001404:    7650           00006                           EXTEND                                         
044078,001405:    7651           50116                           INDEX    ADDRWD                                
044079,001406:    7652           30001                           DCA      0                                     
044080,001407:    7653           52155                           DXCH     MPAC                                  
044081,001408:    7654           17632                           TCF      V/SC1                                 #  FINISH PROLOGUE AT COMMON SECTION.
044082,001409: 

Page 1046

044084,001411:                                                                                                  #  SIGN AND COMPLEMENT INSTRUCTIONS.
044085,001412: 
044086,001413:    7655           50116        SIGN               INDEX    ADDRWD                                #  CALL COMP INSTRUCTION IF WORD AT X IS
044087,001414:    7656           10000                           CCS      0                                     #  NEGATIVE NON-ZERO.
044088,001415:    7657           16061                           TCF      DANZIG                                
044089,001416:    7660           17662                           TCF      +2                                    
044090,001417:    7661           17670                           TCF      COMP                                  #  DO THE COMPLEMENT.
044091,001418: 
044092,001419:    7662           50116                           INDEX    ADDRWD                                
044093,001420:    7663           10001        CCSL               CCS      1                                     
044094,001421:    7664           16061                           TCF      DANZIG                                
044095,001422:    7665           16061                           TCF      DANZIG                                
044096,001423:    7666           17670                           TCF      COMP                                  
044097,001424:    7667           16061                           TCF      DANZIG                                
044098,001425:    7670           00006        COMP               EXTEND                                         #  COMPLEMENT DP MPAC IN EVERY CASE.
044099,001426:    7671           40155                           DCS      MPAC                                  
044100,001427:    7672           52155                           DXCH     MPAC                                  
044101,001428: 
044102,001429:    7673           10163                           CCS      MODE                                  #  EITHER COMPLEMENT MPAC +3 OR THE REST OF
044103,001430:    7674           17705                           TCF      DCOMP                                 #  THE VECTOR ACCUMULATOR.
044104,001431:    7675           17705                           TCF      DCOMP                                 
044105,001432: 
044106,001433:    7676           00006                           EXTEND                                         #  VECTOR COMPLEMENT.
044107,001434:    7677           40160                           DCS      MPAC       +3                         
044108,001435:    7700           52160                           DXCH     MPAC       +3                         
044109,001436:    7701           00006                           EXTEND                                         
044110,001437:    7702           40162                           DCS      MPAC       +5                         
044111,001438:    7703           52162                           DXCH     MPAC       +5                         
044112,001439:    7704           16061                           TCF      DANZIG                                
044113,001440: 
044114,001441:    7705           40156        DCOMP              CS       MPAC       +2                         
044115,001442:    7706           54156                           TS       MPAC       +2                         
044116,001443:    7707           16061                           TCF      DANZIG                                
044117,001444: 

Page 1047

044119,001446:                                                                                                  #  THE FOLLOWING SHORT SHIFT CODES REQUIRE NO ADDRESS WORD:
044120,001447:                                                                                                  #        1.      SR1 TO SR4      SCALAR SHIFT RIGHT.
044121,001448:                                                                                                  #        2.      SR1R TO SR4R    SCALAR SHIFT RIGHT AND ROUND.
044122,001449:                                                                                                  #        3.      SL1 TO SL4      SCALAR SHIFT LEFT.
044123,001450:                                                                                                  #        4.      SL1R TO SL4R    SCALAR SHIFT LEFT AND ROUND.
044124,001451:                                                                                                  #        5.      VSR1 TO VSR8    VECTOR SHIFT RIGHT (ALWAYS ROUNDS).
044125,001452:                                                                                                  #        6.      VSL1 TO VSL8    VECTOR SHIFT LEFT (NEVER ROUNDS).
044126,001453:                                                                                                  #  THE FOLLOWING CODES REQUIRE AN ADDRESS WHICH MAY BE INDEXED:*
044127,001454:                                                                                                  #        1.      SR              SCALAR SHIFT RIGHT.
044128,001455:                                                                                                  #        2.      SRR             SCALAR SHIFT RIGHT AND ROUND.
044129,001456:                                                                                                  #        3.      SL              SCALAR SHIFT LEFT.
044130,001457:                                                                                                  #        4.      SLR             SCALAR SHIFT LEFT AND ROUND.
044131,001458:                                                                                                  #        5.      VSR             VECTOR SHIFT RIGHT.
044132,001459:                                                                                                  #        6.      VSL             VECTOR SHIFT LEFT.
044133,001460:                                                                                                  #  * IF THE ADDRESS IS INDEXED, AND THE INDEX MODIFICATION RESULTS IN A NEGATIVE SHIFT COUNT, A SHIFT OF THE
044134,001461:                                                                                                  #  ABSOLUTE VALUE OF THE COUNT IS DONE IN THE OPPOSITE DIRECTION.
044135,001462: 
044136,001463: 00,2017                                           BANK     00                                    
044137,001464: 
044138,001465: 00,2017                                           COUNT*   $$/INTER                              
044139,001466: 00,2017           36242        SHORTT             CAF      SIX                                   #  SCALAR SHORT SHIFTS COME HERE.  THE SHIFT
044140,001467: 00,2020           70020                           MASK     CYR                                   #  COUNT-1 IS NOW IN BITS 2-3 OF CYR.  THE
044141,001468: 00,2021           54021                           TS       SR                                    #  ROUNDING BIT IS IN BIT1 AT THIS POINT.
044142,001469: 
044143,001470: 00,2022           10020                           CCS      CYR                                   #  SEE IF RIGHT OR LEFT SHIFT DESIRED.
044144,001471: 00,2023           12101                           TCF      TSSL                                  #  SHIFT LEFT.
044145,001472: 
044146,001473: 00,2024           00024        SRDDV              DEC      20         B-14                       #  MPTEMP SETTING FOR SR BEFORE DDV.
044147,001474: 
044148,001475: 00,2025           50021        TSSR               INDEX    SR                                    #  GET SHIFTING BIT.
044149,001476: 00,2026           34736                           CAF      BIT14                                 
044150,001477: 00,2027           54135                           TS       MPTEMP                                
044151,001478: 
044152,001479: 00,2030           10020                           CCS      CYR                                   #  SEE IF A ROUND IS DESIRED.
044153,001480: 00,2031           02050        RIGHTR             TC       MPACSRND                              #  YES - SHIFT RIGHT AND ROUND.
044154,001481: 00,2032           16060                           TCF      NEWMODE                               #  SET MODE TO DP (C(A) = 0).
044155,001482: 00,2033           30135        MPACSHR            CA       MPTEMP                                #  DO A TRIPLE PRECISION SHIFT RIGHT.
044156,001483: 00,2034           00006                           EXTEND                                         
044157,001484: 00,2035           70156                           MP       MPAC       +2                         
044158,001485: 00,2036           54156                 +3        TS       MPAC       +2                         #  (EXIT FROM SQRT AND ABVAL).
044159,001486: 00,2037           30135                           CA       MPTEMP                                
044160,001487: 00,2040           00006                           EXTEND                                         
044161,001488: 00,2041           70154                           MP       MPAC                                  #  SHIFT MAJOR PART INTO A,L AND PLACE IN

Page 1048

044163,001490: 00,2042           52155                           DXCH     MPAC                                  #  MPAC,+1.
044164,001491: 00,2043           30135                           CA       MPTEMP                                
044165,001492: 00,2044           00006                           EXTEND                                         
044166,001493: 00,2045           70001                           MP       L                                     #  ORIGINAL C(MPAC +1).
044167,001494: 00,2046           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
044168,001495: 00,2047           16061                           TCF      DANZIG                                
044169,001496: 
044170,001497:                                                                                                  #  MPAC SHIFT RIGHT AND ROUND SUBROUTINES.
044171,001498: 
044172,001499: 00,2050           30156        MPACSRND           CA       MPAC       +2                         #  WE HAVE TO DO ALL THREE MULTIPLIES SINCE
044173,001500: 00,2051           00006                           EXTEND                                         #  MPAC +1 AND MPAC +2 MIGHT HAVE SIGN
044174,001501: 00,2052           70135                           MP       MPTEMP                                #  DISAGREEMENT WITH A SHIFT RIGHT OF 1.
044175,001502: 00,2053           56155                           XCH      MPAC       +1                         
044176,001503: 00,2054           00006                           EXTEND                                         
044177,001504: 00,2055           70135                           MP       MPTEMP                                
044178,001505: 00,2056           56155                           XCH      MPAC       +1                         #  TRIAL MINOR PART.
044179,001506: 00,2057           60001                           AD       L                                     
044180,001507: 
044181,001508: 00,2060           60000        VSHR2              DOUBLE                                         #  (FINISH VECTOR COMPONENT SHIFT RIGHT
044182,001509: 00,2061           54156                           TS       MPAC       +2                         #  AND ROUND.
044183,001510: 00,2062           12064                           TCF      +2                                    
044184,001511: 00,2063           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
044185,001512: 
044186,001513: 00,2064           34755                           CAF      ZERO                                  
044187,001514: 00,2065           54156                           TS       MPAC       +2                         
044188,001515: 00,2066           56154                           XCH      MPAC                                  #  SETTING TO ZERO SO FOLLOWING DAS WORKS.
044189,001516: 00,2067           00006                           EXTEND                                         
044190,001517: 00,2070           70135                           MP       MPTEMP                                
044191,001518: 00,2071           20155                           DAS      MPAC                                  #  AGAIN NO OVERFLOW.
044192,001519: 00,2072           00002                           TC       Q                                     
044193,001520: 
044194,001521: 00,2073           30135        VSHRRND            CA       MPTEMP                                #  ENTRY TO SHIFT RIGHT AND ROUND MPAC WHEN
044195,001522: 00,2074           00006                           EXTEND                                         #  MPAC CONTAINS A VECTOR COMPONENT.
044196,001523: 00,2075           70155                           MP       MPAC       +1                         
044197,001524: 00,2076           54155                           TS       MPAC       +1                         
044198,001525: 00,2077           56001                           XCH      L                                     
044199,001526: 00,2100           12060                           TCF      VSHR2                                 #  GO ADD ONE IF NECESSARY AND FINISH.
044200,001527: 

Page 1049

044202,001529:                                                                                                  #  ROUTINE FOR SHORT SCALAR SHIFT LEFT (AND MAYBE ROUND).
044203,001530: 
044204,001531: 00,2101           30021        TSSL               CA       SR                                    #  GET SHIFT COUNT FOR SR.
044205,001532: 00,2102           54135                 +1        TS       MPTEMP                                
044206,001533: 
044207,001534: 00,2103           00006                 +2        EXTEND                                         #  ENTRY HERE FROM SL FOR SCALARS.
044208,001535: 00,2104           30156                           DCA      MPAC       +1                         #  SHIFTING LEFT ONE PLACE AT A TIME IS
044209,001536: 00,2105           20156                           DAS      MPAC       +1                         #  FASTER THAN DOING THE WHOLE SHIFT WITH
044210,001537: 00,2106           60154                           AD       MPAC                                  #  MULTIPLIES ASSUMING THAT FREQUENCY OF
044211,001538: 00,2107           60154                           AD       MPAC                                  #  SHIFT COUNTS GOES DOWN RAPIDLY AS A
044212,001539: 00,2110           54154                           TS       MPAC                                  #  FUNCTION OF THEIR MAGNITUDE.
044213,001540: 00,2111           12113                           TCF      +2                                    
044214,001541: 00,2112           54121                           TS       OVFIND                                #  OVERFLOW.  (LEAVES OVERFLOW-CORRECTED
044215,001542:                                                                                                  #  RESULT ANYWAY).
044216,001543: 00,2113           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNT.
044217,001544: 00,2114           12102                           TCF      TSSL       +1                         
044218,001545: 
044219,001546: 00,2115           10020                           CCS      CYR                                   #  SEE IF ROUND WANTED.
044220,001547: 00,2116           07136        ROUND              TC       ROUNDSUB                              #  YES - ROUND AND EXIT.
044221,001548: 00,2117           16061                           TCF      DANZIG                                #  SL LEAVES A ZERO IN CYR FOR NO ROUND.
044222,001549: 00,2120           16061                           TCF      DANZIG                                #  NO - EXIT IMMEDIATL
044223,001550: 

Page 1050

044225,001552:                                                                                                  #  VECTOR SHIFTING ROUTINES.
044226,001553: 
044227,001554: 00,2121           34757        SHORTV             CAF      LOW3                                  #  SAVE 3 BIT SHIFT COUNT - 1 WITHOUT
044228,001555: 00,2122           70020                           MASK     CYR                                   #  EDITING CYR.
044229,001556: 00,2123           54135                           TS       MPTEMP                                
044230,001557: 00,2124           10020                           CCS      CYR                                   #  SEE IF LEFT OR RIGHT SHIFT.
044231,001558: 00,2125           12145                           TCF      VSSL                                  #  VECTOR SHIFT LEFT.
044232,001559: 00,2126           00176        OCT176             OCT      176                                   #  USED IN PROCESSED SHIFTS WITH - COUNT.
044233,001560: 
044234,001561: 00,2127           50135        VSSR               INDEX    MPTEMP                                #  (ENTRY FROM SR).  PICK UP SHIFTING BIT.
044235,001562: 00,2130           34736                           CAF      BIT14                                 #  MPTEMP CONTAINS THE SHIFT COUNT - 1.
044236,001563: 00,2131           54135                           TS       MPTEMP                                
044237,001564: 00,2132           02073                           TC       VSHRRND                               #  SHIFT X COMPONENT.
044238,001565: 
044239,001566: 00,2133           52155                           DXCH     MPAC                                  #  SWAP X AND Y COMPONENTS.
044240,001567: 00,2134           52160                           DXCH     MPAC       +3                         
044241,001568: 00,2135           52155                           DXCH     MPAC                                  
044242,001569: 00,2136           02073                           TC       VSHRRND                               #  SHIFT Y COMPONENT.
044243,001570: 
044244,001571: 00,2137           52155                           DXCH     MPAC                                  #  SWAP Y AND Z COMPONENTS.
044245,001572: 00,2140           52162                           DXCH     MPAC       +5                         
044246,001573: 00,2141           52155                           DXCH     MPAC                                  
044247,001574: 00,2142           02073                           TC       VSHRRND                               #  SHIFT Z COMPONENT.
044248,001575: 
044249,001576: 00,2143           17420                           TCF      VROTATEX                              #  RESTORE COMPONENTS TO PROPER PLACES.
044250,001577: 

Page 1051

044252,001579:                                                                                                  #  VECTOR SHIFT LEFT - DONE ONE PLACE AT A TIME.
044253,001580: 
044254,001581: 00,2144           54135                 -1        TS       MPTEMP                                #  SHIFTING LOOP.
044255,001582: 
044256,001583: 00,2145           00006        VSSL               EXTEND                                         
044257,001584: 00,2146           30155                           DCA      MPAC                                  
044258,001585: 00,2147           20155                           DAS      MPAC                                  
044259,001586: 00,2150           00006                           EXTEND                                         
044260,001587: 00,2151           12153                           BZF      +2                                    
044261,001588: 00,2152           07017                           TC       OVERFLOW                              
044262,001589: 
044263,001590: 00,2153           00006                           EXTEND                                         
044264,001591: 00,2154           30160                           DCA      MPAC       +3                         
044265,001592: 00,2155           20160                           DAS      MPAC       +3                         
044266,001593: 00,2156           00006                           EXTEND                                         
044267,001594: 00,2157           12161                           BZF      +2                                    
044268,001595: 00,2160           07014                           TC       OVERFLWY                              
044269,001596: 
044270,001597: 00,2161           00006                           EXTEND                                         
044271,001598: 00,2162           30162                           DCA      MPAC       +5                         
044272,001599: 00,2163           20162                           DAS      MPAC       +5                         
044273,001600: 00,2164           00006                           EXTEND                                         
044274,001601: 00,2165           12167                           BZF      +2                                    
044275,001602: 00,2166           07011                           TC       OVERFLWZ                              
044276,001603: 
044277,001604: 00,2167           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNTER.
044278,001605: 00,2170           12144                           TCF      VSSL       -1                         
044279,001606: 00,2171           16061                           TCF      DANZIG                                #  EXIT.
044280,001607: 

Page 1052

044282,001609:                                                                                                  #  TSLC - TRIPLE SHIFT LEFT AND COUNT.  SHIFTS MPAC LEFT UNTIL GREATER THAN .5 IN MAGNITUDE, LEAVING
044283,001610:                                                                                                  #  THE COMPLEMENT OF THE NUMBER OF SHIFTS REQUIRED IN X.
044284,001611: 
044285,001612: 00,2172           54135        TSLC2              TS       MPTEMP                                #  START BY ZEROING SHIFT COUNT (IN A NOW).
044286,001613: 00,2173           06723                           TC       BRANCH                                #  EXIT WITH NO SHIFTING IF ARGUMENT ZERO.
044287,001614: 00,2174           12176                           TCF      +2                                    
044288,001615: 00,2175           12212                           TCF      ENDTSLC                               #  STORES ZERO SHIFT COUNT IN THIS CASE.
044289,001616: 
044290,001617: 00,2176           07257                           TC       TPAGREE                               #  MAY CAUSE UPSHIFT OF ONE EXTRA PLACE.
044291,001618: 
044292,001619: 00,2177           30154                           CA       MPAC                                  #  BEGIN NORMALIZATION LOOP.
044293,001620: 00,2200           12207                           TCF      TSLCTEST                              
044294,001621: 
044295,001622: 00,2201           24135        TSLCLOOP           INCR     MPTEMP                                #  INCREMENT SHIFT COUNTER.
044296,001623: 00,2202           00006                           EXTEND                                         
044297,001624: 00,2203           30156                           DCA      MPAC       +1                         
044298,001625: 00,2204           20156                           DAS      MPAC       +1                         
044299,001626: 00,2205           60154                           AD       MPAC                                  
044300,001627: 00,2206           26154                           ADS      MPAC                                  
044301,001628: 00,2207           60000        TSLCTEST           DOUBLE                                         #  SEE IF (ANOTHER) SHIFT IS REQUIRED.
044302,001629: 00,2210           54000                           OVSK                                           
044303,001630: 00,2211           12201                           TCF      TSLCLOOP                              #  YES - INCREMENT COUNT AND SHIFT AGAIN.
044304,001631: 
044305,001632: 00,2212           40135        ENDTSLC            CS       MPTEMP                                
044306,001633: 00,2213           16623                           TCF      STORE1                                #  STORE SHIFT COUNT AND RETURN TO DANZIG.
044307,001634: 

Page 1053

044309,001636:                                                                                                  #  THE FOLLOWING ROUTINES PROCESSES THE GENERAL SHIFT INSTRUCTIONS SR, SRR, SL, AND SLR.
044310,001637:                                                                                                  #  THE GIVEN ADDRESS IS DECODED AS FOLLOWS:
044311,001638:                                                                                                  #        BITS 1-7        SHIFT COUNT (SUBADDRESS) LESS THAN 125 DECIMAL.
044312,001639:                                                                                                  #        BIT 8           PSEUDO SIGN BIT (DETECTS CHANGE IN SIGN IN INDEXED SHIFTS).
044313,001640:                                                                                                  #        BIT 9           0 FOR LEFT SHIFT, AND 1 FOR RIGHT SHIFT.
044314,001641:                                                                                                  #        BIT 10          1 FOR TERMINAL ROUND ON SCALAR SHIFTS, 0 OTHERWISE.
044315,001642:                                                                                                  #        BITS 11-13      0.
044316,001643:                                                                                                  #        BIT 14          1.
044317,001644:                                                                                                  #        BIT 15          0.
044318,001645:                                                                                                  #  THE ABOVE ENCODING IS DONE BY THE YUL SYSTEM.
044319,001646: 
044320,001647: 00,2214           70116        GENSHIFT           MASK     ADDRWD                                #  GET SHIFT COUNT, TESTING FOR ZERO.
044321,001648: 00,2215           10000                           CCS      A                                     #  (ARRIVES WITH C(A) = LOW7).
044322,001649: 00,2216           12224                           TCF      GENSHFT2                              #  IF NON-ZERO, PROCEED WITH DECREMENTED CT
044323,001650: 
044324,001651: 00,2217           34742                           CAF      BIT10                                 #  ZERO SHIFT COUNT.  NO SHIFTS NEEDED BUT
044325,001652: 00,2220           70116                           MASK     ADDRWD                                #  WE MIGHT HAVE TO ROUND MPAC ON SLR AND
044326,001653: 00,2221           10000                           CCS      A                                     #  SRR (SCALAR ONLY).
044327,001654: 00,2222           07136                           TC       ROUNDSUB                              
044328,001655: 00,2223           16061                           TCF      DANZIG                                
044329,001656: 
044330,001657: 00,2224           54135        GENSHFT2           TS       MPTEMP                                #  DECREMENTED SHIFT COUNT TO MPTEMP.
044331,001658: 00,2225           34744                           CAF      BIT8                                  #  TEST MEANING OF LOW SEVEN BIT COUNT IN
044332,001659: 00,2226           00006                           EXTEND                                         #  MPTEMP NOW.
044333,001660: 00,2227           70116                           MP       ADDRWD                                
044334,001661: 00,2230           76245                           MASK     LOW2                                  #  JUMPS ON SHIFT DIRECTION (BIT8) AND
044335,001662: 00,2231           50000                           INDEX    A                                     
044336,001663: 00,2232           12233                           TCF      +1                                    #  ORIGINAL SHIFT DIRECTION (BIT 9).
044337,001664: 00,2233           12332                           TCF      RIGHT-                                #  NEGATIVE SHIFT COUNT FOR SL OR SLR.
044338,001665: 00,2234           12342                           TCF      LEFT                                  #  SL OR SLR.
044339,001666: 00,2235           12336                           TCF      LEFT-                                 #  NEGATIVE SHIFT COUNT WITH SR OR SRR.
044340,001667: 

Page 1054

044342,001669:                                                                                                  #  GENERAL SHIFT RIGHT.
044343,001670: 
044344,001671: 00,2236           10163        RIGHT              CCS      MODE                                  #  SEE IF VECTOR OR SCALAR.
044345,001672: 00,2237           12277                           TCF      GENSCR                                
044346,001673: 00,2240           12277                           TCF      GENSCR                                
044347,001674: 
044348,001675: 00,2241           30135                           CA       MPTEMP                                #  SEE IF SHIFT COUNT LESS THAN 14D.
044349,001676: 00,2242           63733        VRIGHT2            AD       NEG12                                 
044350,001677: 00,2243           00006                           EXTEND                                         
044351,001678: 00,2244           62127                           BZMF     VSSR                                  #  IF SO, BRANCH AND SHIFT IMMEDIATELY.
044352,001679: 
044353,001680: 00,2245           67747                           AD       NEGONE                                #  IF NOT, REDUCE MPTEMP BY A TOTAL OF 14,
044354,001681: 00,2246           54135                           TS       MPTEMP                                #  AND DO A SHIFT RIGHT AND ROUND BY 14.
044355,001682: 00,2247           34755                           CAF      ZERO                                  #  THE ROUND AT THIS STAGE MAY INTRODUCE A
044356,001683: 00,2250           54001                           TS       L                                     #  ONE BIT ERROR IN A SHIFT RIGHT 15D.
044357,001684: 00,2251           56154                           XCH      MPAC                                  
044358,001685: 00,2252           56155                           XCH      MPAC       +1                         
044359,001686: 00,2253           02272                           TC       SETROUND                              #  X COMPONENT NOW SHIFTED, SO MAKE UP THE
044360,001687: 00,2254           20155                           DAS      MPAC                                  #  ROUNDING QUANTITY (0 IN A AND 0 OR +-1
044361,001688:                                                                                                  #  IN L).
044362,001689: 00,2255           56157                           XCH      MPAC       +3                         #  REPEAT THE ABOVE PROCESS FOR Y AND Z.
044363,001690: 00,2256           56160                           XCH      MPAC       +4                         
044364,001691: 00,2257           02272                           TC       SETROUND                              
044365,001692: 00,2260           20160                           DAS      MPAC       +3                         #  NO OVERFLOW ON THESE ADDS.
044366,001693: 
044367,001694: 00,2261           56161                           XCH      MPAC       +5                         
044368,001695: 00,2262           56162                           XCH      MPAC       +6                         
044369,001696: 00,2263           02272                           TC       SETROUND                              
044370,001697: 00,2264           20162                           DAS      MPAC       +5                         
044371,001698: 
044372,001699: 00,2265           10135                           CCS      MPTEMP                                #  SEE IF DONE, DOING FINAL DECREMENT.
044373,001700: 00,2266           54135                           TS       MPTEMP                                
044374,001701: 00,2267           12242                           TCF      VRIGHT2                               
044375,001702: 00,2270           04604        BIASLO             DEC      .2974      B-1                        #  SQRT CONSTANT
044376,001703: 
044377,001704: 00,2271           16061                           TCF      DANZIG                                
044378,001705: 
044379,001706: 00,2272           60000        SETROUND           DOUBLE                                         #  MAKES UP ROUNDING QUANTITY FROM ARRIVING
044380,001707: 00,2273           54156                           TS       MPAC       +2                         #  C(A).  L IS ZERO INITIALLY.
044381,001708: 00,2274           34755                           CAF      ZERO                                  
044382,001709: 00,2275           56001                           XCH      L                                     
044383,001710: 00,2276           00002                           TC       Q                                     #  RETURN AND DO THE DAS, RESETTING L TO 0.
044384,001711: 

Page 1055

044386,001713:                                                                                                  #  PROCESS SR AND SRR FOR SCALARS.
044387,001714: 
044388,001715: 00,2277           30135        GENSCR             CA       MPTEMP                                #  SEE IF THE ORIGINAL SHIFT COUNT WAS LESS
044389,001716: 00,2300           63733                 +1        AD       NEG12                                 #  THAN 14D.
044390,001717: 00,2301           00006                           EXTEND                                         
044391,001718: 00,2302           62322                           BZMF     DOSSHFT                               #  DO THE SHIFT IMMEDIATELY IF SO.
044392,001719: 
044393,001720: 00,2303           67747                 +4        AD       NEGONE                                #  IF NOT, DECREMENT SHIFT COUNT BY 14D AND
044394,001721: 00,2304           54135                           TS       MPTEMP                                #  SHIFT MPAC RIGHT 14 PLACES.
044395,001722: 00,2305           34755                           CAF      ZERO                                  
044396,001723: 00,2306           56154                           XCH      MPAC                                  
044397,001724: 00,2307           56155                           XCH      MPAC       +1                         
044398,001725: 00,2310           54156                           TS       MPAC       +2                         
044399,001726: 00,2311           10135                           CCS      MPTEMP                                #  SEE IF FINISHED, DO FINAL DECREMENT.
044400,001727: 00,2312           54135                           TS       MPTEMP                                
044401,001728: 00,2313           02300                           TC       GENSCR     +1                         
044402,001729: 00,2314           22650        SLOPEHI            DEC      .5884                                 #  SQRT CONSTANT.
044403,001730: 00,2315           34742                           CAF      BIT10                                 #  FINISHED WITH SHIFT.  SEE IF ROUND
044404,001731: 00,2316           70116                           MASK     ADDRWD                                #  WANTED.
044405,001732: 00,2317           10000                           CCS      A                                     
044406,001733: 00,2320           07136                           TC       ROUNDSUB                              
044407,001734: 00,2321           16061                           TCF      DANZIG                                #  DO SO AND/OR EXIT.
044408,001735: 
044409,001736: 00,2322           50135        DOSSHFT            INDEX    MPTEMP                                #  PICK UP SHIFTING BIT.
044410,001737: 00,2323           34736                           CAF      BIT14                                 
044411,001738: 00,2324           54135                           TS       MPTEMP                                
044412,001739: 00,2325           34742                           CAF      BIT10                                 #  SEE IF TERMINAL ROUND DESIRED.
044413,001740: 00,2326           70116                           MASK     ADDRWD                                
044414,001741: 00,2327           10000                           CCS      A                                     
044415,001742: 00,2330           12031                           TCF      RIGHTR                                #  YES.
044416,001743: 00,2331           12033                           TCF      MPACSHR                               #  JUST SHIFT RIGHT.
044417,001744: 

Page 1056

044419,001746:                                                                                                  #  PROCESS THE RIGHT- (SL(R) WITH A NEGATIVE COUNT), LEFT-, AND LEFT OPTIONS.
044420,001747: 
044421,001748: 00,2332           40135        RIGHT-             CS       MPTEMP                                #  GET ABSOLUTE VALUE - 1 OF SHIFT COUNT
044422,001749: 00,2333           62126                           AD       OCT176                                #  UNDERSTANDING THAT BIT8 (PSEUDO-SIGN)
044423,001750: 00,2334           54135                           TS       MPTEMP                                #  WAS 1 INITIALLY.
044424,001751: 00,2335           12236                           TCF      RIGHT                                 #  DO NORMAL SHIFT RIGHT.
044425,001752: 
044426,001753: 00,2336           42126        LEFT-              CS       OCT176                                #  SAME PROLOGUE TO LEFT FOR INDEXED RIGHT
044427,001754: 00,2337           60135                           AD       MPTEMP                                #  SHIFTS WHOSE NET SHIFT COUNT IS NEGATIVE
044428,001755: 00,2340           40000                           COM                                            
044429,001756: 00,2341           54135                           TS       MPTEMP                                
044430,001757: 
044431,001758: 00,2342           10163        LEFT               CCS      MODE                                  #  SINCE LEFT SHIFTING IS SONE ONE PLACE AT
044432,001759: 00,2343           12346                           TCF      GENSCL                                #  A TIME, NO COMPARISON WITH 14 NEED BE
044433,001760: 00,2344           12346                           TCF      GENSCL                                #  DONE.  FOR SCALARS, SEE IF TERMINAL ROUND
044434,001761: 00,2345           12145                           TCF      VSSL                                  #  DESIRED.  FOR VECTORS, SHIFT IMMEDIATELY.
044435,001762: 
044436,001763: 00,2346           40116        GENSCL             CS       ADDRWD                                #  PUT ROUNDING BIT (BIT 10 OF ADDRWD) INTO
044437,001764: 00,2347           00006                           EXTEND                                         #  BIT 15 OF CYR WHERE THE ROUNDING BIT OF
044438,001765: 00,2350           74746                           MP       BIT6                                  #  A SHORT SHIFT LEFT WOULD BE
044439,001766: 00,2351           54020                           TS       CYR                                   
044440,001767: 00,2352           12103                           TCF      TSSL       +2                         #  DO THE SHIFT.
044441,001768: 

Page 1057

044443,001770:                                                                                                  #  SCALAR DIVISION INSTRUCTIONS, DDV AND BDDV, ARE EXECUTED HERE.  AT THIS POINT, THE DIVIDEND IS IN MPAC
044444,001771:                                                                                                  #  AND THE DIVISOR IN BUF.
044445,001772: 
044446,001773: 00,2353           44753        DDV/BDDV           CS       ONE                                   #  INITIALIZATION.
044447,001774: 00,2354           54136                           TS       DVSIGN                                #  +-1 FOR POSITIVE QUOTIENT - -0 FOR NEG.
044448,001775: 00,2355           54137                           TS       DVNORMCT                              #  DIVIDEND NORMALIZATION COUNT.
044449,001776: 00,2356           54140                           TS       MAXDVSW                               #  NEAR-ONE DIVIDE FLAG.
044450,001777: 
044451,001778: 00,2357           10130                           CCS      BUF                                   #  FORCE BUF POSITIVE WITH THE MAJOR PART
044452,001779: 00,2360           12516                           TCF      BUFPOS                                #  NON-ZERO.
044453,001780: 00,2361           12363                           TCF      +2                                    
044454,001781: 00,2362           12531                           TCF      BUFNEG                                
044455,001782: 
044456,001783: 00,2363           54156        BUFZERO            TS       MPAC       +2                         #  ZERO THIS.
044457,001784: 00,2364           07257                           TC       TPAGREE                               #  FORCE SIGN AGREEMENT BEFORE OVERFLOW
044458,001785: 
044459,001786: 00,2365           10154                           CCS      MPAC                                  #  TEST TO SEE IF MPAC NON-ZERO.  (TOO BIG)
044460,001787: 00,2366           12414                           TCF      OVF+                                  #  MAJOR PART OF DIVIDEND IS POSITIVE NON-0
044461,001788: 00,2367           12371                           TCF      +2                                    
044462,001789: 00,2370           12413                           TCF      OVF+       -1                         #  MAJOR PART OF DIVIDEND IS NEG. NON-ZERO
044463,001790: 
044464,001791: 00,2371           56131                           XCH      BUF        +1                         #  SHIFT DIVIDEND AND DIVISOR LEFT 14.
044465,001792: 00,2372           56130                           XCH      BUF                                   
044466,001793: 00,2373           56155                           XCH      MPAC       +1                         
044467,001794: 00,2374           56154                           XCH      MPAC                                  
044468,001795: 00,2375           10130                           CCS      BUF                                   #  TRY AGAIN ON FORMER MINOR PART.
044469,001796: 00,2376           12422                           TCF      BUF+                                  
044470,001797: 00,2377           12401                           TCF      +2                                    #  OVERFLOW ON ZERO DIVISOR.
044471,001798: 00,2400           12416                           TCF      BUF-                                  
044472,001799: 
044473,001800: 00,2401           40154                           CS       MPAC                                  #  SIGN OF MPAC DETERMINES SIGN OF RESULT.
044474,001801: 00,2402           00006        SGNDVOVF           EXTEND                                         
044475,001802: 00,2403           62405                           BZMF     +2                                    
044476,001803: 00,2404           24136                           INCR     DVSIGN                                #  NEGMAX IN MPAC PERHAPS.
044477,001804: 00,2405           34733        DVOVF              CAF      POSMAX                                #  ON DIVISION OVERFLOW OF ANY SORT, SET
044478,001805: 00,2406           54154                           TS       MPAC                                  #  SET DP MPAC TO +-POSMAX.
044479,001806: 00,2407           02630                           TC       FINALDV    +3                         
044480,001807: 00,2410           34753                           CAF      ONE                                   #  SET OVERFLOW INDICATOR AND EXIT.
044481,001808: 00,2411           54121                           TS       OVFIND                                
044482,001809: 00,2412           06061                           TC       DANZIG                                
044483,001810: 
044484,001811: 00,2413           24136                 -1        INCR     DVSIGN                                
044485,001812: 00,2414           40131        OVF+               CS       BUF        +1                         #  LOAD LOWER ORDER PART OF DIVISOR.
044486,001813: 00,2415           12402                           TCF      SGNDVOVF                              #  GET SIGN OF RESULT.
044487,001814: 
044488,001815: 00,2416           00006        BUF-               EXTEND                                         #  IF BUF IS NEGATIVE, COMPLEMENT IT AND
044489,001816: 00,2417           40131                           DCS      BUF                                   #  MAINTAIN DVSIGN FOR FINAL QUOTIENT SIGN.
044490,001817: 00,2420           52131                           DXCH     BUF                                   
044491,001818: 00,2421           24136                           INCR     DVSIGN                                #  NOW -0.
044492,001819: 

Page 1058

044494,001821: 00,2422           10154        BUF+               CCS      MPAC                                  #  FORCE MPAC POSITIVE, CHECKING FOR ZERO
044495,001822: 00,2423           12437                           TCF      MPAC+                                 #  DIVIDEND IN THE PROCESS.
044496,001823: 00,2424           12426                           TCF      +2                                    
044497,001824: 00,2425           12433                           TCF      MPAC-                                 
044498,001825: 00,2426           10155                           CCS      MPAC       +1                         
044499,001826: 00,2427           12437                           TCF      MPAC+                                 
044500,001827: 00,2430           16061                           TCF      DANZIG                                #  EXIT IMMEDIATELY ON ZERO DIVIDEND.
044501,001828: 00,2431           12433                           TCF      MPAC-                                 
044502,001829: 00,2432           16061                           TCF      DANZIG                                
044503,001830: 
044504,001831: 00,2433           00006        MPAC-              EXTEND                                         #  FORCE MPAC POSITIVE AS BUF IN BUF-.
044505,001832: 00,2434           40155                           DCS      MPAC                                  
044506,001833: 00,2435           52155                           DXCH     MPAC                                  
044507,001834: 00,2436           24136                           INCR     DVSIGN                                #  NOW +1 OR -0.
044508,001835: 

Page 1059

044510,001837: 00,2437           40154        MPAC+              CS       MPAC                                  #  CHECK FOR DIVISION OVERFLOW.  IF THE
044511,001838: 00,2440           67747                           AD       NEGONE                                #  MAJOR PART OF THE DIVIDEND IS LESS THAN
044512,001839: 00,2441           60130                           AD       BUF                                   #  THE MAJOR PART OF THE DIVISOR BY AT
044513,001840: 00,2442           10000                           CCS      A                                     #  LEAST TWO, WE CAN PROCEED IMMEDIATELY
044514,001841: 00,2443           12505                           TCF      DVNORM                                #  WITHOUT NORMALIZATION PRODUCING A DVMAX.
044515,001842: 00,2444           60001        -1/2+2             OCT      60001                                 #  USED IN SQRTSUB.
044516,001843: 
044517,001844: 00,2445           12446                           TCF      +1                                    #  IF THE ABOVE DOES NOT HOLD, FORCE SIGN
044518,001845: 00,2446           34736                           CAF      HALF                                  #  AGREEMENT IN NUMERATOR AND DENOMINATOR
044519,001846: 00,2447           60000                           DOUBLE                                         #  TO FACILITATE OVERFLOW AND NEAR-ONE
044520,001847: 00,2450           60155                           AD       MPAC       +1                         #  CHECKING.
044521,001848: 00,2451           54155                           TS       MPAC       +1                         
044522,001849: 00,2452           34755                           CAF      ZERO                                  
044523,001850: 00,2453           64733                           AD       POSMAX                                
044524,001851: 00,2454           26154                           ADS      MPAC                                  
044525,001852: 
044526,001853: 00,2455           34736                           CAF      HALF                                  #  SAME FOR BUF.
044527,001854: 00,2456           60000                           DOUBLE                                         
044528,001855: 00,2457           60131                           AD       BUF        +1                         
044529,001856: 00,2460           54131                           TS       BUF        +1                         
044530,001857: 00,2461           34755                           CAF      ZERO                                  
044531,001858: 00,2462           64733                           AD       POSMAX                                
044532,001859: 00,2463           26130                           ADS      BUF                                   
044533,001860: 
044534,001861: 00,2464           40154                           CS       MPAC                                  #  CHECK MAGNITUDE OF SIGN-CORRECTED
044535,001862: 00,2465           60130                           AD       BUF                                   #  OPERANDS.
044536,001863: 00,2466           10000                           CCS      A                                     
044537,001864: 00,2467           12505                           TCF      DVNORM                                #  DIVIDE OK - WILL NOT BECOME MAXDV CASE.
044538,001865: 00,2470           00133        LBUF2              ADRES    BUF2                                  
044539,001866: 00,2471           12405                           TCF      DVOVF                                 #  DIVISOR NOT LESS THAN DIVIDEND - OVF.
044540,001867: 
044541,001868: 00,2472           54140                           TS       MAXDVSW                               #  IF THE MAJOR PARTS OF THE DIVIDEND AND
044542,001869: 00,2473           40155                           CS       MPAC       +1                         #  DIVISOR ARE EQUAL, A SPECIAL APPROXIMA-
044543,001870: 00,2474           60131                           AD       BUF        +1                         #  TION IS USED (PROVIDED THE DIVISION IS
044544,001871: 00,2475           00006                           EXTEND                                         #  POSSIBLE, OF COURSE).
044545,001872: 00,2476           62405                           BZMF     DVOVF                                 
044546,001873: 00,2477           12505                           TCF      DVNORM                                #  IF NO OVERFLOW.
044547,001874: 

Page 1060

044549,001876: 00,2500           00006        BUFNORM            EXTEND                                         #  ADD -1 TO AUGMENT SHIFT COUNT AND SHIFT
044550,001877: 00,2501           24137                           AUG      DVNORMCT                              #  LEFT ONE PLACE.
044551,001878: 00,2502           00006                           EXTEND                                         
044552,001879: 00,2503           30131                           DCA      BUF                                   
044553,001880: 00,2504           20131                           DAS      BUF                                   
044554,001881: 
044555,001882: 00,2505           30130        DVNORM             CA       BUF                                   #  SEE IF DIVISOR NORMALIZED YET.
044556,001883: 00,2506           60000                           DOUBLE                                         
044557,001884: 00,2507           54000                           OVSK                                           
044558,001885: 00,2510           12500                           TCF      BUFNORM                               #  NO - SHIFT LEFT ONE AND TRY AGAIN.
044559,001886: 
044560,001887: 00,2511           52155                           DXCH     MPAC                                  #  CALL DIVIDEND NORMALIZATION SEQUENCE
044561,001888: 00,2512           50137                           INDEX    DVNORMCT                              #  PRIOR TO DOING THE DIVIDE.
044562,001889: 00,2513           02565                           TC       MAXTEST                               
044563,001890: 
044564,001891: 00,2514           54156                           TS       MPAC       +2                         #  RETURNS WITH DIVISION DONE AND C(A) = 0.
044565,001892: 00,2515           16061                           TCF      DANZIG                                
044566,001893: 
044567,001894: 00,2516           10000        BUFPOS             CCS      A                                     
044568,001895: 00,2517           12422                           TCF      BUF+                                  #  TO BUF+ IF BUF IS GREATER THAN +1.
044569,001896: 
044570,001897: 00,2520           40131                           CS       BUF        +1                         #  IF BUF IS +1, FORCING SIGN AGREEMENT
044571,001898: 00,2521           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
044572,001899: 00,2522           62422                           BZMF     BUF+                                  #  BRANCH IF SIGNS AGREE.
044573,001900: 
044574,001901: 00,2523           34736                           CA       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
044575,001902: 00,2524           60000                 +6        DOUBLE                                         
044576,001903: 00,2525           26131                           ADS      BUF        +1                         
044577,001904: 00,2526           34755                           CA       ZERO                                  
044578,001905: 00,2527           54130                           TS       BUF                                   
044579,001906: 00,2530           12363                           TCF      BUFZERO                               
044580,001907: 
044581,001908: 00,2531           10000        BUFNEG             CCS      A                                     
044582,001909: 00,2532           12416                           TCF      BUF-                                  #  TO BUF- IF BUF IS LESS THAN -1.
044583,001910: 
044584,001911: 00,2533           30131                           CA       BUF        +1                         #  IF BUF IS -1, FORCING SIGN AGREEMENT
044585,001912: 00,2534           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
044586,001913: 00,2535           62416                           BZMF     BUF-                                  #  BRANCH IF SIGNS AGREE.
044587,001914: 
044588,001915: 00,2536           44736                           CS       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
044589,001916: 00,2537           12524                           TCF      BUFPOS     +6                         
044590,001917: 

Page 1061

044592,001919:                                                                                                  #  THE FOLLOWING ARE PROLOGUES TO SHIFT THE DIVIDEND ARRIVING IN A AND L BEFORE THE DIVIDE.
044593,001920: 
044594,001921: 00,2540           22021                 -21D      LXCH     SR                                    #  SPECIAL PROLOGUE FOR UNIT WHEN THE
044595,001922: 00,2541           00006                           EXTEND                                         #  LENGTH OF THE ARGUMENT WAS NOT LESS THAN
044596,001923: 00,2542           74736                           MP       HALF                                  #  .5.  IN THIS CASE, EACH COMPONENT MUST BE
044597,001924: 00,2543           56001                           XCH      L                                     #  SHIFTED RIGHT ONE TO PRODUCE A HALF-UNIT
044598,001925: 00,2544           60021                           AD       SR                                    #  VECTOR.
044599,001926: 00,2545           56001                           XCH      L                                     
044600,001927: 00,2546           12571                           TCF      GENDDV     +1                         #  WITH DP DIVIDEND IN A,L.
044601,001928: 
044602,001929: 00,2547           20001                           DDOUBL                                         #  PROLOGUE WHICH NORMALIZES THE DIVIDEND
044603,001930: 00,2550           20001                           DDOUBL                                         #  WHEN IT IS KNOWN THAT NO DIVISION
044604,001931: 00,2551           20001                           DDOUBL                                         #  OVERFLOW WILL OCCUR.
044605,001932: 00,2552           20001                           DDOUBL                                         
044606,001933: 00,2553           20001                           DDOUBL                                         
044607,001934: 00,2554           20001                           DDOUBL                                         
044608,001935: 00,2555           20001                           DDOUBL                                         
044609,001936: 00,2556           20001                           DDOUBL                                         
044610,001937: 00,2557           20001                           DDOUBL                                         
044611,001938: 00,2560           20001                           DDOUBL                                         
044612,001939: 00,2561           20001                           DDOUBL                                         
044613,001940: 00,2562           20001                           DDOUBL                                         
044614,001941: 00,2563           20001                           DDOUBL                                         
044615,001942: 00,2564           52155                           DXCH     MPAC                                  
044616,001943: 
044617,001944: 00,2565           10140        MAXTEST            CCS      MAXDVSW                               #  0 IF MAJORS MIGHT BE =, -1 OTHERWISE.
044618,001945: 00,2566           06552        BIASHI             DEC      .4192      B-1                        #  SQRT CONSTANTS
044619,001946: 
044620,001947: 00,2567           12642                           TCF      MAXDV                                 #  CHECK TO SEE IF THEY ARE NOW EQUAL.
044621,001948: 

Page 1062

044623,001950:                                                                                                  #  THE FOLLOWING IS A GENERAL PURPOSE DOUBLE PRECISION DIVISION ROUTINE.  IT DIVIDES MPAC BY BUF AND LEAVES
044624,001951:                                                                                                  #  THE RESULT IN MPAC.  THE FOLLOWING CONDITIONS MUST BE SATISFIED:
044625,001952: 
044626,001953:                                                                                                  #        1.      THE DIVISOR (BUF) MUST BE POSITIVE AND NOT LESS THAN .5.
044627,001954: 
044628,001955:                                                                                                  #        2.      THE DIVIDEND (MPAC) MUST BE POSITIVE WITH THE MAJOR PART OF MPAC STRICTLY LESS THAN THAT OF BUF
044629,001956:                                                                                                  #                (A SPECIAL APPROXIMATION, MAXDV, IS USED WHEN THE MAJOR PARTS ARE EQUAL).
044630,001957: 
044631,001958:                                                                                                  #  UNDERSTANDING THAT A/B = Q + S(R/B) WHERE S = 2(-14) AND Q AND R ARE QUOTIENT AND REMAINDER, RESPEC-
044632,001959:                                                                                                  #  TIVELY, THE FOLLOWING APPROXIMATION IS OBTAINED BY MULTIPLYING ABOVE AND BELOW BY C - SD AND NEGLECTING TERMS OF
044633,001960:                                                                                                  #  ORDER S-SQUARED (POSSIBLY INTRODUCING ERROR INTO THE LOW TWO BITS OF THE RESULT).  SIGN AGREEMENT IS UNNECESSARY.
044634,001961: 
044635,001962:                                                                                                  #        A + SB .      (R - QD)                                             A + SB
044636,001963:                                                                                                  #        ------ = Q + S(------) WHERE Q AND R ARE QUOTIENT AND REMAINDER OF ------ RESPECTIVELY.
044637,001964:                                                                                                  #        C + SD        (  C   )                                                C
044638,001965: 
044639,001966: 00,2570           52155        GENDDV             DXCH     MPAC                                  #  WE NEED A AND B ONLY FOR FIRST DV.
044640,001967: 00,2571           00006                 +1        EXTEND                                         #  (SPECIAL UNIT PROLOGUE ENTERS HERE).
044641,001968: 00,2572           10130                           DV       BUF                                   #  A NOW CONTAINS Q AND L, R.
044642,001969: 00,2573           52155                           DXCH     MPAC                                  
044643,001970: 
044644,001971: 00,2574           40154                           CS       MPAC                                  #  FORM DIVIDEND FOR MINOR PART OF RESULT.
044645,001972: 00,2575           00006                           EXTEND                                         
044646,001973: 00,2576           70131                           MP       BUF        +1                         
044647,001974: 00,2577           60155                           AD       MPAC       +1                         #  OVERFLOW AT THIS POINT IS POSITIVE SINCE
044648,001975: 00,2600           54000                           OVSK                                           #  R IS POSITIVE IN EVERY CASE.
044649,001976: 00,2601           12606                           TCF      +5                                    
044650,001977: 
044651,001978: 00,2602           00006                           EXTEND                                         #  OVERFLOW CAN BE REMOVED BY SUBTRACTING C
044652,001979: 00,2603           60130                           SU       BUF                                   #  (BUF) ONCE SINCE R IS ALWAYS LESS THAN C
044653,001980: 00,2604           24154                           INCR     MPAC                                  #  IN THIS CASE.  INCR COMPENSATES SUBTRACT.
044654,001981: 00,2605           12610                           TCF      +DOWN                                 #  (SINCE C(A) IS STILL POSITIVE).
044655,001982: 
044656,001983: 00,2606           00006                 +5        EXTEND                                         #  C(A) CAN BE MADE LESS THAN C IN MAGNI-
044657,001984: 00,2607           62620                           BZMF     -UP                                   #  TUDE BY DIMINISHING IT BY C (SINCE C IS
044658,001985:                                                                                                  #  NOT LESS THAN .5) UNLESS C(A) = 0.
044659,001986: 

Page 1063

044661,001988: 00,2610           00006        +DOWN              EXTEND                                         
044662,001989: 00,2611           60130                           SU       BUF                                   #  IF POSITIVE, REDUCE ONLY IF NECESSARY
044663,001990: 00,2612           00006                           EXTEND                                         #  SINCE THE COMPENSATING INCR MIGHT CAUSE
044664,001991: 00,2613           12616                           BZF      +3                                    #  OVERFLOW.
044665,001992: 00,2614           00006                           EXTEND                                         #  DONT SUBTRACT UNLESS RESULT IS POSITIVE
044666,001993: 00,2615           62624                           BZMF     ENDMAXDV                              #  OR ZERO.
044667,001994: 
044668,001995: 00,2616           24154                 +3        INCR     MPAC                                  #  KEEP SUBTRACT HERE AND COMPENSATE.
044669,001996: 00,2617           12625                           TCF      FINALDV                               
044670,001997: 
044671,001998: 00,2620           00006        -UP                EXTEND                                         #  IF ZERO, SET MINOR PART OF RESULT TO
044672,001999: 00,2621           12630                           BZF      FINALDV    +3                         #  ZERO.
044673,002000: 
044674,002001: 00,2622           00006                           EXTEND                                         #  IF NEGATIVE, ADD C TO A, SUBTRACTING ONE
044675,002002: 00,2623           26154                           DIM      MPAC                                  #  TO COMPENSATE.  DIM IS OK HERE SINCE THE
044676,002003: 00,2624           60130        ENDMAXDV           AD       BUF                                   #  MAJOR PART NEVER GOES NEGATIVE.
044677,002004: 

Page 1064

044679,002006: 00,2625           22007        FINALDV            ZL                                             #  DO DV TO OBTAIN MINOR PART OF RESULT.
044680,002007: 00,2626           00006                           EXTEND                                         
044681,002008: 00,2627           10130                           DV       BUF                                   
044682,002009: 00,2630           54155                 +3        TS       MPAC       +1                         
044683,002010: 
044684,002011: 00,2631           10136                           CCS      DVSIGN                                #  LEAVE RESULT POSITIVE UNLESS C(DVSIGN)=
044685,002012: 00,2632           00002                           TC       Q                                     #  -0.
044686,002013: 00,2633           00002                           TC       Q                                     
044687,002014: 00,2634           00002                           TC       Q                                     
044688,002015: 
044689,002016: 00,2635           00006                           EXTEND                                         
044690,002017: 00,2636           40155                           DCS      MPAC                                  
044691,002018: 00,2637           52155                           DXCH     MPAC                                  
044692,002019: 00,2640           34755                           CAF      ZERO                                  #  SO WE ALWAYS RETURN WITH C(A) = 0.
044693,002020: 00,2641           00002                           TC       Q                                     
044694,002021: 

Page 1065

044696,002023:                                                                                                  #  IF THE MAJOR PARTS OF THE DIVISOR AND DIVIDEND ARE EQUAL, BUT THE MINOR PARTS ARE SUCH THAT THE
044697,002024:                                                                                                  #  DIVIDEND IS STRICTLY LESS THAN THE DIVISOR IN MAGNITUDE, THE FOLLOWING APPROXIMATION IS USED.  THE ASSUMPTIONS
044698,002025:                                                                                                  #  ARE THE SAME AS THE GENERAL ROUTINE WITH THE ADDITION THAT SIGN AGREEMENT IS NECESSARY (B, C, & D POSITIVE).
044699,002026: 
044700,002027:                                                                                                  #        C + SB .          (C + B - D)
044701,002028:                                                                                                  #        ------ = 37777 + S(---------)
044702,002029:                                                                                                  #        C + SD            (    C    )
044703,002030: 
044704,002031:                                                                                                  #  THE DIVISION MAY BE PERFORMED IMMEDIATELY SINCE B IS STRICTLY LESS THAN D AND C IS NOT LESS THAN .5.
044705,002032: 
044706,002033: 00,2642           40154        MAXDV              CS       MPAC                                  #  SEE IF MAXDV CASE STILL HOLDS AFTER
044707,002034: 00,2643           60130                           AD       BUF                                   #  NORMALIZATION.
044708,002035: 00,2644           00006                           EXTEND                                         
044709,002036: 00,2645           12647                           BZF      +2                                    
044710,002037: 00,2646           12570                           TCF      GENDDV                                #  MPAC NOW LESS THAN BUF - DIVIDE AS USUAL
044711,002038: 
044712,002039: 00,2647           34733                 +2        CAF      POSMAX                                #  SET MAJOR PART OF RESULT.
044713,002040: 00,2650           54154                           TS       MPAC                                  
044714,002041: 
044715,002042: 00,2651           40131                           CS       BUF        +1                         #  FORM DIVIDEND OF MINOR PART OF RESULT.
044716,002043: 00,2652           60155                           AD       MPAC       +1                         
044717,002044: 00,2653           12624                           TCF      ENDMAXDV                              #  GO ADD C AND DO DIVIDE, ATTACHING SIGN
044718,002045:                                                                                                  #  BEFORE EXITING.
044719,002046: 

Page 1066

044721,002048:                                                                                                  #  VECTOR DIVIDED BY SCALAR, V/SC, IS EXECUTED HERE.  THE VECTOR IS NOW IN MPAC WITH SCALAR IN BUF.
044722,002049: 
044723,002050: 00,2654           44753        V/SC2              CS       ONE                                   #  INITIALIZE DIVIDEND NORMALIZATION COUNT
044724,002051: 00,2655           54137                           TS       DVNORMCT                              #  AND DIVISION SIGN REGISTER.
044725,002052: 00,2656           54127                           TS       VBUF       +5                         
044726,002053: 
044727,002054: 00,2657           03010                           TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
044728,002055: 
044729,002056: 00,2660           52131                           DXCH     BUF                                   
044730,002057: 00,2661           07544                           TC       ALSIGNAG                              #  SIGN AGREE BUF
044731,002058: 00,2662           52131                           DXCH     BUF                                   
044732,002059: 00,2663           10130                           CCS      BUF                                   #  FORCE DIVISOR POSITIVE WITH MAJOR PART
044733,002060: 00,2664           12721                           TCF      /BUF+                                 #  NON-ZERO (IF POSSIBLE).
044734,002061: 00,2665           12667                           TCF      +2                                    
044735,002062: 00,2666           12715                           TCF      /BUF-                                 
044736,002063: 
044737,002064: 00,2667           56131                           XCH      BUF        +1                         #  SHIFT VECTOR AND SCALAR LEFT 14.
044738,002065: 00,2670           56130                           XCH      BUF                                   
044739,002066: 00,2671           56155                           XCH      MPAC       +1                         
044740,002067: 00,2672           56154                           XCH      MPAC                                  
044741,002068: 00,2673           00006                           EXTEND                                         #  CHECK FOR OVERFLOW IN EACH CASE.
044742,002069: 00,2674           12676                           BZF      +2                                    
044743,002070: 00,2675           12405                           TCF      DVOVF                                 
044744,002071: 
044745,002072: 00,2676           56160                           XCH      MPAC       +4                         
044746,002073: 00,2677           56157                           XCH      MPAC       +3                         
044747,002074: 00,2700           00006                           EXTEND                                         
044748,002075: 00,2701           12703                           BZF      +2                                    
044749,002076: 00,2702           12405                           TCF      DVOVF                                 
044750,002077: 
044751,002078: 00,2703           56162                           XCH      MPAC       +6                         
044752,002079: 00,2704           56161                           XCH      MPAC       +5                         
044753,002080: 00,2705           00006                           EXTEND                                         
044754,002081: 00,2706           12710                           BZF      +2                                    
044755,002082: 00,2707           12405                           TCF      DVOVF                                 
044756,002083: 
044757,002084: 00,2710           10130                           CCS      BUF                                   
044758,002085: 00,2711           12721                           TCF      /BUF+                                 
044759,002086: 00,2712           12405                           TCF      DVOVF                                 #  ZERO DIVISOR - OVERFLOW.
044760,002087: 00,2713           12715                           TCF      /BUF-                                 
044761,002088: 00,2714           12405                           TCF      DVOVF                                 
044762,002089: 
044763,002090: 00,2715           00006        /BUF-              EXTEND                                         #  ON NEGATIVE, COMPLEMENT BUF AND MAINTAIN
044764,002091: 00,2716           40131                           DCS      BUF                                   #  DVSIGN IN VBUF +5.
044765,002092: 00,2717           52131                           DXCH     BUF                                   
044766,002093: 00,2720           24127                           INCR     VBUF       +5                         
044767,002094: 

Page 1067

044769,002096: 00,2721           00006        /BUF+              EXTEND                                         
044770,002097: 00,2722           30131                           DCA      BUF                                   #  LEAVE ABS(ORIG DIVISOR) IN BUF2
044771,002098: 00,2723           52134                           DXCH     BUF2                                  #  FOR OVERFLOW TESTING
044772,002099: 00,2724           12732                           TCF      /NORM                                 #  NORMALIZE DIVISOR IN BUF.
044773,002100: 
044774,002101: 00,2725           00006        /NORM2             EXTEND                                         #  IF LESS THAN .5, AUGMENT DVNORMCT AND
044775,002102: 00,2726           24137                           AUG      DVNORMCT                              #  DOUBLE DIVISOR.
044776,002103: 00,2727           00006                           EXTEND                                         
044777,002104: 00,2730           30131                           DCA      BUF                                   
044778,002105: 00,2731           20131                           DAS      BUF                                   
044779,002106: 
044780,002107: 00,2732           30130        /NORM              CA       BUF                                   #  SEE IF DIVISOR NORMALIZED.
044781,002108: 00,2733           60000                           DOUBLE                                         
044782,002109: 00,2734           54000                           OVSK                                           
044783,002110: 00,2735           12725                           TCF      /NORM2                                #  DOUBLE AND TRY AGAIN IF NOT.
044784,002111: 
044785,002112: 00,2736           02750                           TC       V/SCDV                                #  DO X COMPONENT DIVIDE.
044786,002113: 00,2737           52160                           DXCH     MPAC       +3                         #  SUPPLY ARGUMENTS IN USUAL SEQUENCE.
044787,002114: 00,2740           52155                           DXCH     MPAC                                  
044788,002115: 00,2741           52160                           DXCH     MPAC       +3                         
044789,002116: 
044790,002117: 00,2742           02750                           TC       V/SCDV                                #  Y COMPONENT.
044791,002118: 00,2743           52162                           DXCH     MPAC       +5                         
044792,002119: 00,2744           52155                           DXCH     MPAC                                  
044793,002120: 00,2745           52162                           DXCH     MPAC       +5                         
044794,002121: 
044795,002122: 00,2746           02750                           TC       V/SCDV                                #  Z COMPONENT.
044796,002123: 00,2747           17420                           TCF      VROTATEX                              #  GO RE-ARRANGE COMPONENTS BEFORE EXIT.
044797,002124: 

Page 1068

044799,002126:                                                                                                  #  SUBROUTINE USED BY V/SC TO DIVIDE VECTOR COMPONENT IN MPAC,+1 BY THE SCALAR GIVEN IN BUF.
044800,002127: 
044801,002128: 00,2750           30127        V/SCDV             CA       VBUF       +5                         #  REFLECTS SIGN OF SCALAR.
044802,002129: 00,2751           54136                           TS       DVSIGN                                
044803,002130: 
044804,002131: 00,2752           10154                           CCS      MPAC                                  #  FORCE MPAC POSITIVE, EXITING ON ZERO.
044805,002132: 00,2753           12767                           TCF      /MPAC+                                
044806,002133: 00,2754           12756                           TCF      +2                                    
044807,002134: 00,2755           12763                           TCF      /MPAC-                                
044808,002135: 
044809,002136: 00,2756           10155                           CCS      MPAC       +1                         
044810,002137: 00,2757           12767                           TCF      /MPAC+                                
044811,002138: 00,2760           00002                           TC       Q                                     
044812,002139: 00,2761           12763                           TCF      /MPAC-                                
044813,002140: 00,2762           00002                           TC       Q                                     
044814,002141: 
044815,002142: 00,2763           00006        /MPAC-             EXTEND                                         #  USUAL COMPLEMENTING AND SETTING OF SIGN.
044816,002143: 00,2764           40155                           DCS      MPAC                                  
044817,002144: 00,2765           52155                           DXCH     MPAC                                  
044818,002145: 00,2766           24136                           INCR     DVSIGN                                
044819,002146: 
044820,002147: 00,2767           44753        /MPAC+             CS       ONE                                   #  INITIALIZE NEAR-ONE SWITCH.
044821,002148: 00,2770           54140                           TS       MAXDVSW                               
044822,002149: 
044823,002150: 00,2771           40154                           CS       MPAC                                  #  CHECK POSSIBLE OVERFLOW.
044824,002151: 00,2772           60133                           AD       BUF2                                  #  UNNORMALIZED INPUT DIVISOR.
044825,002152: 00,2773           10000                           CCS      A                                     
044826,002153: 00,2774           13004                           TCF      DDVCALL                               #  NOT NEAR-ONE
044827,002154: 00,2775           12777                           TCF      +2                                    #  +0 IS JUST POSSIBLE
044828,002155: 00,2776           12405                           TCF      DVOVF                                 #  NO HOPE
044829,002156: 00,2777           54140                           TS       MAXDVSW                               #  SIGNAL POSSIBLE NEAR-ONE CASE
044830,002157: 00,3000           40155                           CS       MPAC       +1                         #  SEE IF DIVISION CAN BE DONE
044831,002158: 00,3001           60134                           AD       BUF2       +1                         
044832,002159: 00,3002           00006                           EXTEND                                         
044833,002160: 00,3003           62405                           BZMF     DVOVF                                 
044834,002161: 
044835,002162: 00,3004           52155        DDVCALL            DXCH     MPAC                                  #  CALL PRE-DIVIDE NORMALIZATION.
044836,002163: 00,3005           50137                           INDEX    DVNORMCT                              
044837,002164: 00,3006           12565                           TCF      MAXTEST                               
044838,002165: 

Page 1069

044840,002167: 00,3007           32506        SLOPELO            DEC      .8324                                 
044841,002168: 
044842,002169: 00,3010           56002        VECAGREE           XCH      Q                                     #  SAVE Q IN A
044843,002170: 00,3011           52155                           DXCH     MPAC                                  
044844,002171: 00,3012           07544                           TC       ALSIGNAG                              #  SIGNAGREE MPAC
044845,002172: 00,3013           52155                           DXCH     MPAC                                  
044846,002173: 00,3014           52160                           DXCH     MPAC       +3                         
044847,002174: 00,3015           07544                           TC       ALSIGNAG                              #  SIGN AGREE MPAC +3
044848,002175: 00,3016           52160                           DXCH     MPAC       +3                         
044849,002176: 00,3017           52162                           DXCH     MPAC       +5                         
044850,002177: 00,3020           07544                           TC       ALSIGNAG                              #  SIGNAGREE MPAC +5
044851,002178: 00,3021           52162                           DXCH     MPAC       +5                         
044852,002179: 00,3022           00000                           TC       A                                     
044853,002180: 

Page 1070

044855,002182:                                                                                                  #  THE FOLLOWING ROUTINE EXECUTES THE UNIT INSTRUCTION, WHICH TAKES THE UNIT OF THE VECTOR IN MPAC.
044856,002183: 
044857,002184: 00,3023           03010        UNIT               TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
044858,002185: 00,3024           07532                           TC       MPACVBUF                              #  SAVE ARGUMENT IN VBUF
044859,002186: 00,3025           34755                           CAF      ZERO                                  #  MUST SENSE OVERFLOW IN FOLLOWING DOT.
044860,002187: 00,3026           56121                           XCH      OVFIND                                
044861,002188: 00,3027           54141                           TS       TEM1                                  
044862,002189: 00,3030           03317                           TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
044863,002190: 00,3031           30141                           CA       TEM1                                  
044864,002191: 00,3032           56121                           XCH      OVFIND                                
044865,002192: 00,3033           00006                           EXTEND                                         
044866,002193: 00,3034           13036                           BZF      +2                                    
044867,002194: 00,3035           12405                           TCF      DVOVF                                 
044868,002195: 00,3036           00006                           EXTEND                                         
044869,002196: 00,3037           30155                           DCA      MPAC                                  #  LEAVE THE SQUARE OF THE LENGTH OF THE
044870,002197: 00,3040           50120                           INDEX    FIXLOC                                #  ARGUMENT IN LVSQUARE.
044871,002198: 00,3041           52043                           DXCH     LVSQUARE                              
044872,002199: 
044873,002200: 00,3042           03343                           TC       SQRTSUB                               #  GO TAKE THE NORMALIZED SQUARE ROOT.
044874,002201: 
044875,002202: 00,3043           10154                           CCS      MPAC                                  #  CHECK FOR UNIT OVERFLOW.
044876,002203: 00,3044           13051                           TCF      +5                                    #  MPAC IS NOT LESS THAN .5 UNLESS
044877,002204: 00,3045           54001                           TS       L                                     
044878,002205: 00,3046           50120                           INDEX    FIXLOC                                
044879,002206: 00,3047           52045                           DXCH     LV                                    
044880,002207: 00,3050           12405                           TCF      DVOVF                                 #  INPUT TO SQRTSUB WAS 0.
044881,002208: 
044882,002209: 00,3051           44317                           CS       FOURTEEN                              #  SEE IF THE INPUT WAS SO SMALL THE THE
044883,002210: 00,3052           60135                           AD       MPTEMP                                #  FIRST TWO REGISTERS OF THE SQUARE WERE 0
044884,002211: 00,3053           10000                           CCS      A                                     
044885,002212: 00,3054           40000                           COM                                            #  IF SO, SAVE THE NEGATIVE OF THE SHIFT
044886,002213: 00,3055           13133                           TCF      SMALL                                 #  COUNT -15D.
044887,002214: 
044888,002215: 00,3056           13065                           TCF      LARGE                                 #  (THIS IS USUALLY THE CASE.)
044889,002216: 
044890,002217: 00,3057           44761                           CS       THIRTEEN                              #  IF THE SHIFT COUNT WAS EXACTLY 14, SET
044891,002218: 00,3060           54135                           TS       MPTEMP                                #  THE PRE-DIVIDE NORM COUNT TO -13D.
044892,002219: 
044893,002220: 00,3061           30154                           CA       MPAC                                  #  SHIFT THE LENGTH RIGHT 14 BEFORE STORING
044894,002221: 00,3062           54001        SMALL2             TS       L                                     #  (SMALL EXITS TO THIS POINT).
044895,002222: 00,3063           34755                           CAF      ZERO                                  
044896,002223: 00,3064           13112                           TCF      LARGE2                                #  GO TO STORE LENGTH AND PROCEED.
044897,002224: 
044898,002225: 00,3065           10135        LARGE              CCS      MPTEMP                                #  MOST ALL CASES COME HERE.
044899,002226: 00,3066           13074                           TCF      LARGE3                                #  SEE IF NO NORMALIZATION WAS REQUIRED BY
044900,002227: 
044901,002228: 00,3067           42024                           CS       SRDDV                                 #  SQRT, AND IF SO, SET UP FOR A SHIFT
044902,002229: 00,3070           54135                           TS       MPTEMP                                #  RIGHT 1 BEFORE DIVIDING TO PRODUCE
044903,002230: 00,3071           00006                           EXTEND                                         #  THE DESIRED HALF UNIT VECTOR.
044904,002231: 00,3072           30155                           DCA      MPAC                                  

Page 1071

044906,002233: 00,3073           13112                           TCF      LARGE2                                
044907,002234: 

Page 1072

044909,002236: 00,3074           40000        LARGE3             COM                                            #  LEAVE NEGATIVE OF SHIFT COUNT-1 FOR
044910,002237: 00,3075           54135                           TS       MPTEMP                                #  PREDIVIDE LEFT SHIFT.
044911,002238: 
044912,002239: 00,3076           40000                           COM                                            #  PICK UP REQUIRED SHIFTING BIT TO UNNORM-
044913,002240: 00,3077           50000                           INDEX    A                                     #  ALIZE THE SQRT RESULT.
044914,002241: 00,3100           34736                           CAF      BIT14                                 
044915,002242: 00,3101           54130                           TS       BUF                                   
044916,002243: 00,3102           00006                           EXTEND                                         
044917,002244: 00,3103           70155                           MP       MPAC       +1                         
044918,002245: 00,3104           56130                           XCH      BUF                                   
044919,002246: 00,3105           00006                           EXTEND                                         #  (UNNORMALIZE THE SQRT FOR LV).
044920,002247: 00,3106           70154                           MP       MPAC                                  
044921,002248: 00,3107           56001                           XCH      L                                     
044922,002249: 00,3110           60130                           AD       BUF                                   
044923,002250: 00,3111           56001                           XCH      L                                     
044924,002251: 
044925,002252: 00,3112           50120        LARGE2             INDEX    FIXLOC                                
044926,002253: 00,3113           52045                           DXCH     LV                                    #  LENGTH NOW STORED IN WORK AREA.
044927,002254: 
044928,002255: 00,3114           44753                           CS       ONE                                   
044929,002256: 00,3115           54140                           TS       MAXDVSW                               #  NO MAXDV CASES IN UNIT.
044930,002257: 
044931,002258: 00,3116           52123                           DXCH     VBUF                                  #  PREPARE X COMPONENT FOR DIVIDE, SETTING
044932,002259: 00,3117           52155                           DXCH     MPAC                                  #  LENGTH OF VECTOR AS DIVISOR IN BUF.
044933,002260: 00,3120           52131                           DXCH     BUF                                   
044934,002261: 00,3121           03151                           TC       UNITDV                                
044935,002262: 
044936,002263: 00,3122           52125                           DXCH     VBUF       +2                         #  DO Y AND Z IN USUAL FASHION SO WE CAN
044937,002264: 00,3123           52155                           DXCH     MPAC                                  #  EXIT THROUGH VROTATEX.
044938,002265: 00,3124           52160                           DXCH     MPAC       +3                         
044939,002266: 00,3125           03151                           TC       UNITDV                                
044940,002267: 
044941,002268: 00,3126           52127                           DXCH     VBUF       +4                         
044942,002269: 00,3127           52155                           DXCH     MPAC                                  
044943,002270: 00,3130           52162                           DXCH     MPAC       +5                         
044944,002271: 00,3131           03151                           TC       UNITDV                                
044945,002272: 00,3132           17420                           TCF      VROTATEX                              #  AND EXIT.
044946,002273: 

Page 1073

044948,002275:                                                                                                  #  IF THE LENGTH OF THE ARGUMENT VECTOR WAS LESS THAN 2(-28), EACH COMPONENT MUST BE SHIFTED LEFT AT LEAST
044949,002276:                                                                                                  #  14 PLACES BEFORE THE DIVIDE. NOTE THAT IN THIS CASE, THE MAJOR PART OF EACH COMPONENT IS ZERO.
044950,002277: 
044951,002278: 00,3133           54135        SMALL              TS       MPTEMP                                #  NEGATIVE OF PRE-DIVIDE SHIFT COUNT.
044952,002279: 
044953,002280: 00,3134           34755                           CAF      ZERO                                  #  SHIFT EACH COMPONENT LEFT 14.
044954,002281: 00,3135           56123                           XCH      VBUF       +1                         
044955,002282: 00,3136           56122                           XCH      VBUF                                  
044956,002283: 00,3137           56125                           XCH      VBUF       +3                         
044957,002284: 00,3140           56124                           XCH      VBUF       +2                         
044958,002285: 00,3141           56127                           XCH      VBUF       +5                         
044959,002286: 00,3142           56126                           XCH      VBUF       +4                         
044960,002287: 
044961,002288: 00,3143           40135                           CS       MPTEMP                                
044962,002289: 00,3144           50000                           INDEX    A                                     
044963,002290: 00,3145           34736                           CAF      BIT14                                 
044964,002291: 00,3146           00006                           EXTEND                                         
044965,002292: 00,3147           70154                           MP       MPAC                                  
044966,002293: 00,3150           13062                           TCF      SMALL2                                
044967,002294: 
044968,002295: 00,3151     4761               THIRTEEN           =        OCT15                                 
044969,002296: 00,3151     4317               FOURTEEN           =        OCT16                                 
044970,002297: 00,3151     4317               OCT16              =        R1D1                                  
044971,002298: 

Page 1074

044973,002300:                                                                                                  #  THE FOLLOWING ROUTINE SETS UP THE CALL TO THE DIVIDE ROUTINES.
044974,002301: 
044975,002302: 00,3151           10154        UNITDV             CCS      MPAC                                  #  FORCE MPAC POSITIVE IF POSSIBLE, SETTING
044976,002303: 00,3152           13170                           TCF      UMPAC+                                #  DVSIGN ACCORDING TO THE SIGN OF MPAC
044977,002304: 00,3153           13155                           TCF      +2                                    #  SINCE THE DIVISOR IS ALWAYS POSITIVE
044978,002305: 00,3154           13162                           TCF      UMPAC-                                #  HERE.
044979,002306: 
044980,002307: 00,3155           10155                           CCS      MPAC       +1                         
044981,002308: 00,3156           13170                           TCF      UMPAC+                                
044982,002309: 00,3157           00002                           TC       Q                                     #  EXIT IMMEDIATELY ON ZERO.
044983,002310: 00,3160           13162                           TCF      UMPAC-                                
044984,002311: 00,3161           00002                           TC       Q                                     
044985,002312: 
044986,002313: 00,3162           44755        UMPAC-             CS       ZERO                                  #  IF NEGATIVE, SET -0 IN DVSIGN FOR FINAL
044987,002314: 00,3163           54136                           TS       DVSIGN                                #  COMPLEMENT.
044988,002315: 00,3164           00006                           EXTEND                                         
044989,002316: 00,3165           40155                           DCS      MPAC                                  #  PICK UP ABSOLUTE VALUE OF ARG AND JUMP.
044990,002317: 00,3166           50135                           INDEX    MPTEMP                                
044991,002318: 00,3167           12564                           TCF      MAXTEST    -1                         
044992,002319: 
044993,002320: 00,3170           54136        UMPAC+             TS       DVSIGN                                #  SET DVSIGN FOR POSITIVE QUOTIENT.
044994,002321: 00,3171           52155                           DXCH     MPAC                                  
044995,002322: 00,3172           50135                           INDEX    MPTEMP                                
044996,002323: 00,3173           12564                           TCF      MAXTEST    -1                         
044997,002324: 

Page 1075

044999,002326:                                                                                                  #  MISCELLANEOUS UNARY OPERATIONS.
045000,002327: 
045001,002328: 00,3174           03300        DSQ                TC       DSQSUB                                #  SQUARE THE DP CONTENTS OF MPAC.
045002,002329: 00,3175           16061                           TCF      DANZIG                                
045003,002330: 
045004,002331: 00,3176           10163        ABVALABS           CCS      MODE                                  #  ABVAL OR ABS INSTRUCTION.
045005,002332: 00,3177           13226                           TCF      ABS                                   #  DO ABS ON SCALAR.
045006,002333: 00,3200           13226                           TCF      ABS                                   
045007,002334: 
045008,002335: 00,3201           03317        ABVAL              TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045009,002336: 00,3202           22163                           LXCH     MODE                                  #  MODE IS NOW DP (L ZERO AFTER DAS).
045010,002337: 
045011,002338: 00,3203           00006                           EXTEND                                         #  STORE SQUARE OF LENGTH IN WORK AREA.
045012,002339: 00,3204           30155                           DCA      MPAC                                  
045013,002340: 00,3205           50120                           INDEX    FIXLOC                                
045014,002341: 00,3206           52043                           DXCH     LVSQUARE                              
045015,002342: 

Page 1076

045017,002344:                                                                                                  #  PROGRAM DESCRIPTION - SUBROUTINE SQRT
045018,002345: 
045019,002346:                                                                                                  #  FUNCTIONAL DESCRIPTION - DOUBLE PRECISION SQUARE ROOT ROUTINE
045020,002347:                                                                                                  #        THIS PROGRAM TAKES THE SQUARE ROOT OF THE 27 OR 28 MOST SIGNIFICANT BITS IN THE TRIPLE PRECISION SET OF
045021,002348:                                                                                                  #        NUMBERS - MPAC, MPAC+1, AND MPAC+2.  THE ROOT IS RETURNED DOUBLE PRECISION IN MPAC AND MPAC+1.
045022,002349: 
045023,002350:                                                                                                  #  WARNING - THIS SUBROUTINE USES A TRIPLE PRECISION INPUT.  THE PROGRAMMER MUST ASSURE THE CONTENTS OF MPAC+2
045024,002351:                                                                                                  #        ESPECIALLY IF THE CONTENTS OF MPAC IS SMALL OR ZERO.  FOR DETAILS SEE STG MEMO NO.949.
045025,002352: 
045026,002353:                                                                                                  #  CALLING SEQUENCE - IN INTERPRETIVE MODE I.E., FOLLOWING TC  INTPRET,SQRT   NO ADDRESS IS ALLOWED
045027,002354:                                                                                                  #        INPUT SCALING  THE BINARY POINT IS ASSUMED TO THE RIGHT OF BIT 15.  THE ANSWER IS RETURNED WITH THE SAME SCALING
045028,002355: 
045029,002356:                                                                                                  #  SUBROUTINES - GENSCR, MPACSHR, SQRTSUB, ABORT
045030,002357: 
045031,002358:                                                                                                  #  ABORT EXIT MODE - ABORTS ON NEGATIVE INPUT -1.2X10E-4 (77775 OCTAL) OR LESS.
045032,002359:                                                                                                  #        DISPLAYS ERROR CODE 1302
045033,002360:                                                                                                  #                TC      ABORT
045034,002361:                                                                                                  #                OCT     1302
045035,002362: 
045036,002363:                                                                                                  #  DEBRIS - LOCATIONS BUF, MPTEMP, ADDRWD ARE USED
045037,002364: 
045038,002365: 00,3207           03343        SQRT               TC       SQRTSUB                               #  TAKE THE SQUARE ROOT OF MPAC.
045039,002366: 00,3210           10135                           CCS      MPTEMP                                #  RETURNED NORMALIZED SQUARE ROOT.  SEE IF
045040,002367: 00,3211           13213                           TCF      +2                                    #  ANY UN-NORMALIZATION REQUIRED AND EXIT
045041,002368: 00,3212           16061                           TCF      DANZIG                                #  IF NOT.
045042,002369: 
045043,002370: 00,3213           63733                           AD       NEG12                                 #  A RIGHT SHIFT OF MORE THAN 13 COULD BE
045044,002371: 00,3214           00006                           EXTEND                                         #  REQUIRED IF INPUT WAS ZERO IN MPAC,+1.
045045,002372: 00,3215           63221                           BZMF     SQRTSHFT                              #  GOES HERE IN MOST CASES.
045046,002373: 00,3216           22007                           ZL                                             #  IF A LONG SHIFT IS REQUIRED, GO TO
045047,002374: 00,3217           22116                           LXCH     ADDRWD                                #  GENERAL RIGHT SHIFT ROUTINES.
045048,002375: 00,3220           12303                           TCF      GENSCR     +4                         #  ADDRWD WAS ZERO TO PREVENT ROUND.
045049,002376: 
045050,002377: 00,3221           50135        SQRTSHFT           INDEX    MPTEMP                                #  SELECT SHIFTING BIT AND EXIT THROUGH
045051,002378: 00,3222           34735                           CAF      BIT15                                 #  SHIFT ROUTINES.
045052,002379: 00,3223           54135                           TS       MPTEMP                                
045053,002380: 00,3224           34755                           CAF      ZERO                                  #  TO ZERO MPAC +2 IN THE PROCESS.
045054,002381: 00,3225           12036                           TCF      MPACSHR    +3                         
045055,002382: 
045056,002383: 00,3226           06723        ABS                TC       BRANCH                                #  TEST SIGN OF MPAC AND COMPLEMENT IF
045057,002384: 00,3227           16061                           TCF      DANZIG                                
045058,002385: 00,3230           16061                           TCF      DANZIG                                
045059,002386: 00,3231           17670                           TCF      COMP                                  
045060,002387: 

Page 1077

045062,002389: 00,3232           44751        VDEF               CS       FOUR                                  #  VECTOR DEFINE - ESSENTIALLY TREATS
045063,002390: 00,3233           26166                           ADS      PUSHLOC                               #  SCALAR IN MPAC AS X COMPONENT, PUSHES UP
045064,002391: 00,3234           00006                           EXTEND                                         #  FOR Y AND THEN AGAIN FOR Z.
045065,002392: 00,3235           50000                           INDEX    A                                     
045066,002393: 00,3236           30003                           DCA      2                                     
045067,002394: 00,3237           52160                           DXCH     MPAC       +3                         
045068,002395: 00,3240           00006                           EXTEND                                         
045069,002396: 00,3241           50166                           INDEX    PUSHLOC                               
045070,002397: 00,3242           30001                           DCA      0                                     
045071,002398: 00,3243           52162                           DXCH     MPAC       +5                         
045072,002399: 00,3244           16521                           TCF      VMODE                                 #  MODE IS NON VECTOR.
045073,002400: 
045074,002401: 00,3245           03317        VSQ                TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045075,002402: 00,3246           17332                           TCF      DMODE                                 #  MODE IS NOW DP.
045076,002403: 
045077,002404: 00,3247           00006        PUSH               EXTEND                                         #  PUSH DOWN MPAC LEAVING IT LOADED.
045078,002405: 00,3250           30155                           DCA      MPAC                                  
045079,002406: 00,3251           50166                           INDEX    PUSHLOC                               #  PUSH DOWN FIRST TWO REGISTERS IN EACH
045080,002407: 00,3252           52001                           DXCH     0                                     
045081,002408: 
045082,002409: 00,3253           50163                           INDEX    MODE                                  #  INCREMENT PUSHDOWN POINTER.
045083,002410: 00,3254           36244                           CAF      NO.WDS                                
045084,002411: 00,3255           26166                           ADS      PUSHLOC                               
045085,002412: 
045086,002413: 00,3256           10163                           CCS      MODE                                  
045087,002414: 00,3257           13272                           TCF      TPUSH                                 #  PUSH DOWN MPAC +2.
045088,002415: 00,3260           16061                           TCF      DANZIG                                #  DONE FOR DP.
045089,002416: 
045090,002417: 00,3261           00006                           EXTEND                                         #  ON VECTOR, PUSH DOWN Y AND Z COMPONENTS.
045091,002418: 00,3262           30160                           DCA      MPAC       +3                         
045092,002419: 00,3263           50166                           INDEX    PUSHLOC                               
045093,002420: 00,3264           51775                           DXCH     0          -4                         
045094,002421: 00,3265           00006                           EXTEND                                         
045095,002422: 00,3266           30162                           DCA      MPAC       +5                         
045096,002423: 00,3267           50166                           INDEX    PUSHLOC                               
045097,002424: 00,3270           51777                           DXCH     0          -2                         
045098,002425: 00,3271           16061                           TCF      DANZIG                                
045099,002426: 
045100,002427: 00,3272           30156        TPUSH              CA       MPAC       +2                         
045101,002428: 00,3273           16554                           TCF      ENDTPUSH   +2                         
045102,002429: 
045103,002430: 00,3274           50120        RVQ                INDEX    FIXLOC                                #  RVQ - RETURN IVA QPRET.
045104,002431: 00,3275           30052                           CA       QPRET                                 
045105,002432: 00,3276           54117                           TS       POLISH                                
045106,002433: 00,3277           16652                           TCF      GOTO       +4                         #  (ASSUME QPRET POINTS TO FIXED ONLY.)
045107,002434: 

Page 1078

045109,002436:                                                                                                  #  THE FOLLOWING SUBROUTINES ARE USED IN SQUARING MPAC, IN BOTH THE SCALAR AND VECTOR SENSE.  THEY ARE
045110,002437:                                                                                                  #  SPECIAL CASES OF DMPSUB AND DOTSUB, PUT IN TO SAVE SOME TIME.
045111,002438: 
045112,002439: 00,3300           30155        DSQSUB             CA       MPAC       +1                         #  SQUARES THE SCALAR CONTENTS OF MPAC.
045113,002440: 00,3301           00006                           EXTEND                                         
045114,002441: 00,3302           70000                           SQUARE                                         
045115,002442: 00,3303           54156                           TS       MPAC       +2                         
045116,002443: 00,3304           34755                           CAF      ZERO                                  #  FORM 2(CROSS TERM).
045117,002444: 00,3305           56155                           XCH      MPAC       +1                         
045118,002445: 00,3306           00006                           EXTEND                                         
045119,002446: 00,3307           70154                           MP       MPAC                                  
045120,002447: 00,3310           20001                           DDOUBL                                         #  AND MAYBE OVERFLOW.
045121,002448: 00,3311           20156                           DAS      MPAC       +1                         #  AND SET A TO NET OVERFLOW.
045122,002449: 00,3312           56154                           XCH      MPAC                                  
045123,002450: 00,3313           00006                           EXTEND                                         
045124,002451: 00,3314           70000                           SQUARE                                         
045125,002452: 00,3315           20155                           DAS      MPAC                                  
045126,002453: 00,3316           00002                           TC       Q                                     
045127,002454: 
045128,002455: 00,3317           00006        VSQSUB             EXTEND                                         #  DOTS THE VECTOR IN MPAC WITH ITSELF.
045129,002456: 00,3320           22137                           QXCH     DOTRET                                
045130,002457: 00,3321           03300                           TC       DSQSUB                                #  SQUARE THE X COMPONENT.
045131,002458: 00,3322           52160                           DXCH     MPAC       +3                         
045132,002459: 00,3323           52155                           DXCH     MPAC                                  
045133,002460: 00,3324           52131                           DXCH     BUF                                   #  SO WE CAN END IN DOTSUB.
045134,002461: 00,3325           30156                           CA       MPAC       +2                         
045135,002462: 00,3326           54132                           TS       BUF        +2                         
045136,002463: 
045137,002464: 00,3327           03300                           TC       DSQSUB                                #  SQUARE Y COMPONENT.
045138,002465: 00,3330           52156                           DXCH     MPAC       +1                         
045139,002466: 00,3331           20132                           DAS      BUF        +1                         
045140,002467: 00,3332           60154                           AD       MPAC                                  
045141,002468: 00,3333           60130                           AD       BUF                                   
045142,002469: 00,3334           54130                           TS       BUF                                   
045143,002470: 00,3335           13337                           TCF      +2                                    
045144,002471: 00,3336           54121                           TS       OVFIND                                #  IF OVERFLOW.
045145,002472: 
045146,002473: 00,3337           52162                           DXCH     MPAC       +5                         
045147,002474: 00,3340           52155                           DXCH     MPAC                                  
045148,002475: 00,3341           03300                           TC       DSQSUB                                #  SQUARE Z COMPONENT.
045149,002476: 00,3342           17205                           TCF      ENDDOT                                #  END AS IN DOTSUB.
045150,002477: 

Page 1079

045152,002479:                                                                                                  #  DOUBLE PRECISION SQUARE ROOT ROUTINE.  TAKE THE SQUARE ROOT OF THE TRIPLE PRECISION (MPAC +2 USED ONLY
045153,002480:                                                                                                  #  IN NORMALIZATION) CONTENTS OF MPAC AND LEAVE THE NORMALIZED RESULT IN MPAC (C(MPAC) GREATER THAN OR EQUAL TO
045154,002481:                                                                                                  #  .5).  THE RIGHT SHIFT COUNT (TO UNNORMALIZE) IS LEFT IN MPTEMP.
045155,002482: 
045156,002483: 00,3343           34755        SQRTSUB            CAF      ZERO                                  #  START BY ZEROING RIGHT SHIFT COUNT.
045157,002484: 00,3344           54135                           TS       MPTEMP                                
045158,002485: 
045159,002486: 00,3345           10154                           CCS      MPAC                                  #  CHECK FOR POSITIVE ARGUMENT, SHIFTING
045160,002487: 00,3346           13405                           TCF      SMPAC+                                #  FIRST SIGNIFICANT MPAC REGISTER INTO
045161,002488: 00,3347           13351                           TCF      +2                                    #  MPAC ITSELF.
045162,002489: 00,3350           13373                           TCF      SQRTNEG                               #  SEE IF MAG OF ARGUMENT LESS THAN 10(-4).
045163,002490: 
045164,002491: 00,3351           56156                           XCH      MPAC       +2                         #  MPAC IS ZERO - SHIFT LEFT 14.
045165,002492: 00,3352           56155                           XCH      MPAC       +1                         
045166,002493: 00,3353           54154                           TS       MPAC                                  
045167,002494: 00,3354           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
045168,002495: 00,3355           54135                           TS       MPTEMP                                
045169,002496: 
045170,002497: 00,3356           10154                           CCS      MPAC                                  #  SEE IF MPAC NOW PNZ.
045171,002498: 00,3357           13405                           TCF      SMPAC+                                
045172,002499: 00,3360           13362                           TCF      +2                                    
045173,002500: 00,3361           13376                           TCF      ZEROANS                               #  NEGATIVE BUT LESS THAN 10(-4) IN MAG.
045174,002501: 
045175,002502: 00,3362           56155                           XCH      MPAC       +1                         #  ZERO - SHIFT LEFT 14 AGAIN.
045176,002503: 00,3363           54154                           TS       MPAC                                  
045177,002504: 00,3364           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
045178,002505: 00,3365           26135                           ADS      MPTEMP                                
045179,002506: 
045180,002507: 00,3366           10154                           CCS      MPAC                                  
045181,002508: 00,3367           13405                           TCF      SMPAC+                                
045182,002509: 00,3370           00002                           TC       Q                                     #  SQRT(0) = 0.
045183,002510: 00,3371           13376                           TCF      ZEROANS                               
045184,002511: 00,3372           13453                           TCF      FIXROOT                               #  DO NOT LEAVE SQRTSUB WITH -0 IN MPAC.
045185,002512: 
045186,002513: 00,3373           10000        SQRTNEG            CCS      A                                     #  ARGUMENT IS NEGATIVE, BUT SEE IF SIGN-
045187,002514: 00,3374           13402                           TCF      SQRTABRT                              #  CORRECTED ARGUMENT IS LESS THAN 10(-4)
045188,002515: 
045189,002516: 00,3375           10155                           CCS      MPAC       +1                         #  IN MAGNITUDE.  IF SO, CALL ANSWER ZERO.
045190,002517: 00,3376           34755        ZEROANS            CAF      ZERO                                  #  FORCE ANSWER TO ZERO HERE.
045191,002518: 00,3377           13453                           TCF      FIXROOT                               
045192,002519: 00,3400           13402                           TCF      SQRTABRT                              
045193,002520: 00,3401           13453                           TCF      FIXROOT                               
045194,002521: 
045195,002522: 00,3402           52165        SQRTABRT           DXCH     LOC                                   
045196,002523: 00,3403           05726                           TC       POODOO1                               
045197,002524: 00,3404           01302                           OCT      1302                                  
045198,002525: 

Page 1080

045200,002527: 00,3405           62444        SMPAC+             AD       -1/2+2                                #  SEE IF ARGUMENT GREATER THAN OR EQUAL TO
045201,002528: 00,3406           00006                           EXTEND                                         #  .5.
045202,002529: 00,3407           63456                           BZMF     SRTEST                                #  IF SO, SEE IF LESS THAN .25.
045203,002530: 
045204,002531: 00,3410           52155                           DXCH     MPAC                                  #  WE WILL TAKE THE SQUARE ROOT OF MPAC/2.
045205,002532: 00,3411           22021                           LXCH     SR                                    #  SHIFT RIGHT 1 AND GO TO THE SQRT ROUTINE
045206,002533: 00,3412           00006                           EXTEND                                         
045207,002534: 00,3413           74736                           MP       HALF                                  
045208,002535: 00,3414           52155                           DXCH     MPAC                                  
045209,002536: 00,3415           56021                           XCH      SR                                    
045210,002537: 00,3416           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
045211,002538: 
045212,002539: 00,3417           32314        ARGHI              CAF      SLOPEHI                               #  ARGUMENT BETWEEN .25 AND .5. GET A
045213,002540: 00,3420           00006                           EXTEND                                         #  LINEAR APPROXIMATION FOR THIS RANGE.
045214,002541: 00,3421           70154                           MP       MPAC                                  
045215,002542: 00,3422           62566                           AD       BIASHI                                #  X0/2 = (MPAC/2)(SLOPEHI) + BIASHI/2.
045216,002543: 
045217,002544: 00,3423           54130                 +4        TS       BUF                                   #  X0/2 (ARGLO ENTERS HERE).
045218,002545: 00,3424           30154                           CA       MPAC                                  #  SINGLE-PRECISION THROUGHOUT.
045219,002546: 00,3425           22007                           ZL                                             
045220,002547: 00,3426           00006                           EXTEND                                         
045221,002548: 00,3427           10130                           DV       BUF                                   #  (MPAC/2)/(X0/2)
045222,002549: 00,3430           00006                           EXTEND                                         
045223,002550: 00,3431           74736                           MP       HALF                                  
045224,002551: 00,3432           26130                           ADS      BUF                                   #  X1 = X0/2 + .5(MPAC/2)/(X0/2).
045225,002552: 
045226,002553: 00,3433           00006                           EXTEND                                         
045227,002554: 00,3434           74736                           MP       HALF                                  #  FORM UP X1/2.
045228,002555: 00,3435           52155                           DXCH     MPAC                                  #  SAVE AND BRING OUT ARGUMENT.
045229,002556: 00,3436           00006                           EXTEND                                         #  TAKE DP QUOTIENT WITH X1.
045230,002557: 00,3437           10130                           DV       BUF                                   
045231,002558: 00,3440           54131                           TS       BUF        +1                         #  SAVE MAJOR PART OF QUOTIENT.
045232,002559: 00,3441           34755                           CAF      ZERO                                  #  FORM MINOR PART OF QUOTIENT USING
045233,002560: 00,3442           56001                           XCH      L                                     #  (REMAINDER,0).
045234,002561: 00,3443           00006                           EXTEND                                         
045235,002562: 00,3444           10130                           DV       BUF                                   
045236,002563: 00,3445           54001                           TS       L                                     #  IN PREPARATION FOR DAS.
045237,002564: 00,3446           30131                           CA       BUF        +1                         
045238,002565: 00,3447           20155                           DAS      MPAC                                  #  X2 = X1/2 + (MPAC/2)X1
045239,002566: 
045240,002567: 00,3450           00006                           EXTEND                                         #  OVERFLOWS IF ARG. NEAR POSMAX.
045241,002568: 00,3451           13455                           BZF      TCQBNK00                              
045242,002569: 00,3452           34733                           CAF      POSMAX                                
045243,002570: 00,3453           54154        FIXROOT            TS       MPAC                                  
045244,002571: 00,3454           54155                           TS       MPAC       +1                         
045245,002572: 00,3455           00002        TCQBNK00           TC       Q                                     #  RETURN TO CALLER TO UNNORMALIZE, ETC.
045246,002573: 

Page 1081

045248,002575: 00,3456           64737        SRTEST             AD       QUARTER                               #  ARGUMENT WAS LESS THAN .5, SEE IF LESS
045249,002576: 00,3457           00006                           EXTEND                                         #  THAN .25.
045250,002577: 00,3460           63502                           BZMF     SQRTNORM                              #  IF SO, BEGIN NORMALIZATION.
045251,002578: 
045252,002579: 00,3461           52155                           DXCH     MPAC                                  #  IF BETWEEN .5 AND .25, SHIFT RIGHT 1 AND
045253,002580: 00,3462           22021                           LXCH     SR                                    #  START AT ARGLO.
045254,002581: 00,3463           00006                           EXTEND                                         
045255,002582: 00,3464           74736                           MP       HALF                                  
045256,002583: 00,3465           52155                           DXCH     MPAC                                  
045257,002584: 00,3466           56021                           XCH      SR                                    
045258,002585: 00,3467           26155                           ADS      MPAC       +1                         #  NO OVERFLOW.
045259,002586: 
045260,002587: 00,3470           33007        ARGLO              CAF      SLOPELO                               #  (NORMALIZED) ARGUMENT BETWEEN .125 AND
045261,002588: 00,3471           00006                           EXTEND                                         #  .25
045262,002589: 00,3472           70154                           MP       MPAC                                  
045263,002590: 00,3473           62270                           AD       BIASLO                                
045264,002591: 00,3474           13423                           TCF      ARGHI      +4                         #  BEGIN SQUARE ROOT.
045265,002592: 
045266,002593: 00,3475           00006        SQRTNM2            EXTEND                                         #  SHIFT LEFT 2 AND INCREMENT RIGHT SHIFT
045267,002594: 00,3476           30156                           DCA      MPAC       +1                         #  COUNT (FOR TERMINAL UNNORMALIZATION).
045268,002595: 00,3477           20156                           DAS      MPAC       +1                         
045269,002596: 00,3500           60154                           AD       MPAC                                  
045270,002597: 00,3501           26154                           ADS      MPAC                                  #  (NO OVERFLOW).
045271,002598: 
045272,002599: 00,3502           24135        SQRTNORM           INCR     MPTEMP                                #  FIRST TIME THROUGH, JUST SHIFT LEFT 1
045273,002600: 00,3503           00006                           EXTEND                                         #  (PUTS IN EFFECTIVE RIGHT SHIFT SINCE
045274,002601: 00,3504           30156                           DCA      MPAC       +1                         #  WE WANT MPAC/2).
045275,002602: 00,3505           20156                           DAS      MPAC       +1                         
045276,002603: 00,3506           60154                           AD       MPAC                                  
045277,002604: 00,3507           26154                           ADS      MPAC                                  #  (AGAIN NO OVERFLOW).
045278,002605: 00,3510           60000                           DOUBLE                                         
045279,002606: 00,3511           54022                           TS       CYL                                   
045280,002607: 
045281,002608: 00,3512           10022        NORMTEST           CCS      CYL                                   #  SEE IF ARGUMENT NOW NORMALIZED AT
045282,002609: 00,3513           10022                           CCS      CYL                                   #  GREATER THAN .125.
045283,002610: 00,3514           13475                           TCF      SQRTNM2                               #  NO - SHIFT LEFT 2 MORE AND TRY AGAIN.
045284,002611: 00,3515           13417                           TCF      ARGHI                                 #  YES - NOW BETWEEN .5 AND .25.
045285,002612: 00,3516           13470                           TCF      ARGLO                                 #  ARGUMENT NOW BETWEEN .25 AND .125.
045286,002613: 

Page 1082

045288,002615:                                                                                                  #  TRIGONOMETRIC FUNCTION PACKAGE.
045289,002616:                                                                                                  #        THE FOLLOWING TRIGONOMETRIC FUNCTIONS ARE AVAILABLE AS INTERPRETIVE OPERATIONS:
045290,002617:                                                                                                  #        1.      SIN             COMPUTES (1/2)SINE(2 PI MPAC).
045291,002618:                                                                                                  #        2.      COS             COMPUTES (1/2)COSINE(2 PI MPAC).
045292,002619:                                                                                                  #        3.      ASIN            COMPUTES (1/2PI)ARCSINE(2 MPAC).
045293,002620:                                                                                                  #        4.      ACOS            COMPUTES (1/2PI)ARCCOSINE(2 MPAC).
045294,002621: 
045295,002622:                                                                                                  #  SIN-ASIN AND COS-ACOS ARE MUTUALLY INVERSE, IE SIN(ASIN(X)) = X.
045296,002623: 
045297,002624: 00,3517           06723        COSINE             TC       BRANCH                                #  FINDS COSINE USING THE IDENTITY
045298,002625: 00,3520           13523                           TCF      +3                                    #  COS(X) = SIN(PI/2 - ABS(X)).
045299,002626: 00,3521           13526                           TCF      PRESINE                               
045300,002627: 00,3522           13526                           TCF      PRESINE                               
045301,002628: 
045302,002629: 00,3523           00006                 +3        EXTEND                                         
045303,002630: 00,3524           40155                           DCS      MPAC                                  
045304,002631: 00,3525           52155                           DXCH     MPAC                                  
045305,002632: 
045306,002633: 00,3526           34737        PRESINE            CAF      QUARTER                               #  PI/2 SCALED.
045307,002634: 00,3527           26154                           ADS      MPAC                                  
045308,002635: 
045309,002636: 00,3530           52155        SINE               DXCH     MPAC                                  #  DOUBLE ARGUMENT.
045310,002637: 00,3531           20001                           DDOUBL                                         
045311,002638: 00,3532           54000                           OVSK                                           #  SEE IF OVERFLOW PRESENT.
045312,002639: 00,3533           13536                           TCF      +3                                    #  IF NOT, ARGUMENT OK AS IS.
045313,002640: 
045314,002641: 00,3534           00006                           EXTEND                                         #  IF SO, WE LOST (OR GAINED) PI, SO
045315,002642: 00,3535           40001                           DCOM                                           #  COMPLEMENT MPAC USING THE IDENTITY
045316,002643:                                                                                                  #  SIN(X-(+)PI) = SIN(-X).
045317,002644: 00,3536           52155                 +3        DXCH     MPAC                                  
045318,002645: 00,3537           30154                           CA       MPAC                                  #  SEE IF ARGUMENT GREATER THAN .5 IN
045319,002646: 00,3540           60000                           DOUBLE                                         #  MAGNITUDE.  IF SO, REDUCE IT TO LESS THAN
045320,002647: 00,3541           54001                           TS       L                                     #  .5 (+-PI/2 SCALED) AS FOLLOWS:
045321,002648: 00,3542           13553                           TCF      SN1                                   
045322,002649: 
045323,002650: 00,3543           50000                           INDEX    A                                     #  IF POSITIVE, FORM PI - X, IF NEGATIVE
045324,002651: 00,3544           34735                           CAF      NEG1/2     +1                         #  USE -PI -X.
045325,002652: 00,3545           60000                           DOUBLE                                         
045326,002653: 00,3546           00006                           EXTEND                                         
045327,002654: 00,3547           60154                           SU       MPAC                                  #  GUARANTEED NO OVERFLOW.
045328,002655: 00,3550           54154                           TS       MPAC                                  
045329,002656: 00,3551           40155                           CS       MPAC       +1                         
045330,002657: 00,3552           54155                           TS       MPAC       +1                         
045331,002658: 

Page 1083

045333,002660: 00,3553           00006        SN1                EXTEND                                         #  SET UP TO EVALUATE HASTINGS POLYNOMIAL
045334,002661: 00,3554           30155                           DCA      MPAC                                  
045335,002662: 00,3555           52134                           DXCH     BUF2                                  
045336,002663: 00,3556           03300                           TC       DSQSUB                                #  SQUARE MPAC.
045337,002664: 
045338,002665: 00,3557           07222                           TC       POLY                                  #  EVALUATE FOURTH ORDER POLYNOMIAL.
045339,002666: 00,3560           00003                           DEC      3          B-14                       
045340,002667: 00,3561           14441 37325                     2DEC     +.3926990796                            
045341,002668: 
045342,002669: 00,3563           53250 60764                     2DEC     -.6459637111                            
045343,002670: 
045344,002671: 00,3565           12146 21276                     2DEC     +.318758717                            
045345,002672: 
045346,002673: 00,3567           75466 71471                     2DEC     -.074780249                            
045347,002674: 
045348,002675: 00,3571           00236 32757                     2DEC     +.009694988                            
045349,002676: 
045350,002677: 00,3573           32470                           CAF      LBUF2                                 #  MULTIPLY BY ARGUMENT AND SHIFT LEFT 2.
045351,002678: 00,3574           07106                           TC       DMPSUB     -1                         
045352,002679: 
045353,002680: 00,3575           00006                           EXTEND                                         
045354,002681: 00,3576           30156                           DCA      MPAC       +1                         
045355,002682: 00,3577           20156                           DAS      MPAC       +1                         
045356,002683: 00,3600           60154                           AD       MPAC                                  
045357,002684: 00,3601           26154                           ADS      MPAC                                  #  NEITHER SHIFT OVERFLOWS.
045358,002685: 00,3602           00006                           EXTEND                                         
045359,002686: 00,3603           30156                           DCA      MPAC       +1                         
045360,002687: 00,3604           20156                           DAS      MPAC       +1                         
045361,002688: 00,3605           60154                           AD       MPAC                                  
045362,002689: 00,3606           26154                           ADS      MPAC                                  
045363,002690: 00,3607           16061                           TCF      DANZIG                                
045364,002691: 

Page 1084

045366,002693:                                                                                                  #  ARCSIN/ARCCOS ROUTINE.
045367,002694: 
045368,002695: 00,3610           33631        ARCSIN             CAF      LASINEX                               #  COMPUTE ARCSIN BY USING THE IDENTITY
045369,002696: 00,3611           13613                           TCF      +2                                    #  ARCSIN(X) = PI/2 - ARCCOS(X).
045370,002697: 
045371,002698: 00,3612           33713        ARCCOS             CAF      LDANZIG                               #  (EXITS IMMEDIATELY).
045372,002699: 00,3613           54136                           TS       ESCAPE                                
045373,002700: 00,3614           06723                           TC       BRANCH                                #  TEST SIGN OF INPUT.
045374,002701: 00,3615           13625                           TCF      ACOSST                                #  START IMMEDIATELY IF POSITIVE.
045375,002702: 00,3616           13731                           TCF      ACOSZERO                              #  ARCCOS(0) = PI/2 = .25.
045376,002703: 00,3617           00006                           EXTEND                                         #  IF NEGATIVE, USE THE IDENTITY
045377,002704: 00,3620           40155                           DCS      MPAC                                  #  ARCCOS(X) = PI - ARCCOS(-X), FORCING
045378,002705: 00,3621           52155                           DXCH     MPAC                                  #  ARGUMENT POSITIVE.
045379,002706: 00,3622           33734                           CAF      TCSUBTR                               #  SET EXIT TO DO ABOVE BEFORE
045380,002707: 00,3623           56136                           XCH      ESCAPE                                #  ARCSIN/ARCCOS CONSIDERATIONS.
045381,002708: 00,3624           54137                           TS       ESCAPE2                               
045382,002709: 
045383,002710: 00,3625           44736        ACOSST             CS       HALF                                  #  TEST MAGNITUDE OF INPUT.
045384,002711: 00,3626           60154                           AD       MPAC                                  
045385,002712: 00,3627           10000                           CCS      A                                     
045386,002713: 00,3630           13721                           TCF      ACOSOVF                               #  THIS IS PROBABLY AN OVERFLOW CASE.
045387,002714: 
045388,002715: 00,3631           13707        LASINEX            TCF      ASINEX                                
045389,002716: 
045390,002717: 00,3632           13642                           TCF      ACOSST2                               #  NO OVERFLOW - PROCEED.
045391,002718: 
045392,002719: 00,3633           10155                           CCS      MPAC       +1                         #  IF MAJOR PART IS .5, CALL ANSWER 0
045393,002720: 00,3634           34755                           CAF      ZERO                                  #  UNLESS MINOR PART NEGATIVE.
045394,002721: 00,3635           13637                           TCF      ACOS=0                                
045395,002722: 
045396,002723: 00,3636           13642                           TCF      ACOSST2                               
045397,002724: 
045398,002725: 00,3637           54155        ACOS=0             TS       MPAC       +1                         
045399,002726: 00,3640           54154                           TS       MPAC                                  
045400,002727: 00,3641           00136                           TC       ESCAPE                                
045401,002728: 
045402,002729: 00,3642           00006        ACOSST2            EXTEND                                         #  NOW THAT ARGUMENT IS IN PROPER RANGE,
045403,002730: 00,3643           40155                           DCS      MPAC                                  #  BEGIN COMPUTATION.  USE HASTINGS
045404,002731: 00,3644           64736                           AD       HALF                                  #  APPROXIMATION ARCCOS(X) = SQRT(1-X)P(X)
045405,002732: 00,3645           52155                           DXCH     MPAC                                  #  IN A SCALED VERSION WHERE P(X) IS A
045406,002733: 00,3646           52134                           DXCH     BUF2                                  #  SEVENTH ORDER POLYNOMIAL.
045407,002734: 
045408,002735: 00,3647           03343                           TC       SQRTSUB                               #  RETURNS WITH NORMALIZED SQUARE ROOT.
045409,002736: 
045410,002737: 00,3650           10135                           CCS      MPTEMP                                #  SEE IF UN-NORMALIZATION REQUIRED.
045411,002738: 00,3651           13714                           TCF      ACOSSHR                               #  IF SO.
045412,002739: 

Page 1085

045414,002741: 00,3652           52155        ACOS3              DXCH     MPAC                                  #  SET UP FOR POLYNOMIAL EVALUATION.
045415,002742: 00,3653           52134                           DXCH     BUF2                                  
045416,002743: 00,3654           52155                           DXCH     MPAC                                  
045417,002744: 
045418,002745: 00,3655           07222                           TC       POLY                                  
045419,002746: 00,3656           00006                           DEC      6          B-14                       
045420,002747: 00,3657           13240 23630                     2DEC     +.353553385                            #  COEFFICIENTS ARE C 2(+I)/PISQRT(2) WHERE
045421,002748: 
045422,002749: 00,3661           74721 47775                     2DEC*    -.0483017006 B+1*                       #  I
045423,002750: 
045424,002751: 00,3663           02440 20237                     2DEC*    +.0200273085 B+2*                       #  WHERE C STANDS FOR ORIGINAL COEFFS.
045425,002752: 
045426,002753: 00,3665           75067 70742                     2DEC*    -.0112931863 B+3*                       
045427,002754: 
045428,002755: 00,3667           03436 26756                     2DEC*    +.00695311612 B+4*                       
045429,002756: 
045430,002757: 00,3671           74037 57640                     2DEC*    -.00384617957 B+5*                       
045431,002758: 
045432,002759: 00,3673           03046 07143                     2DEC*    +.001501297736 B+6*                       
045433,002760: 
045434,002761: 00,3675           76654 42244                     2DEC*    -.000284160334 B+7*                       
045435,002762: 
045436,002763: 
045437,002764: 00,3677           32470                           CAF      LBUF2                                 #  DO FINAL MULTIPLY AND GO TO ANY
045438,002765: 00,3700           07106                           TC       DMPSUB     -1                         #  EPILOGUE SEQUENCES.
045439,002766: 00,3701           00136                           TC       ESCAPE                                
045440,002767: 
045441,002768: 00,3702           00006        SUBTR              EXTEND                                         #  EPILOGUE FOR NEGATIVE INPUTS TO ARCCOS.
045442,002769: 00,3703           40155                           DCS      MPAC                                  
045443,002770: 00,3704           64736                           AD       HALF                                  #  FORMS PI - ARCCOS(-X) = ARCCOS(X).
045444,002771: 00,3705           52155                           DXCH     MPAC                                  
045445,002772: 00,3706           00137                           TC       ESCAPE2                               #  GO TO POSSIBLE ARCSIN EPILOGUE.
045446,002773: 
045447,002774: 00,3707           00006        ASINEX             EXTEND                                         
045448,002775: 00,3710           40155                           DCS      MPAC                                  #  ARCSIN EPILOGUE - GET ARCSIN(X)
045449,002776: 00,3711           64737                           AD       QUARTER                               #  = PI/2 - ARCCOS(X).
045450,002777: 00,3712           52155                           DXCH     MPAC                                  
045451,002778: 00,3713           16061        LDANZIG            TCF      DANZIG                                
045452,002779: 

Page 1086

045454,002781: 00,3714           50000        ACOSSHR            INDEX    A                                     #  THE SHIFT RIGHT IS LESS THAN 14 SINCE
045455,002782: 00,3715           34736                           CAF      BIT14                                 #  THE INPUT WAS NON-ZERO DP.
045456,002783: 00,3716           54135                           TS       MPTEMP                                
045457,002784: 00,3717           02073                           TC       VSHRRND                               #  DP SHIFT RIGHT AND ROUND.
045458,002785: 00,3720           13652                           TCF      ACOS3                                 #  PROCEED.
045459,002786: 
045460,002787: 00,3721           00006        ACOSOVF            EXTEND                                         #  IF MAJOR PART WAS ONLY 1 MORE THAN .5,
045461,002788: 00,3722           13637                           BZF      ACOS=0                                #  CALL ANSWER ZERO.
045462,002789: 
045463,002790: 00,3723           00006        ACOSABRT           EXTEND                                         #  IF OVERFLOW, CALL ANSWER ZERO BUT
045464,002791: 00,3724           30165                           DCA      LOC                                   #  SOUND AN ALARM.
045465,002792: 00,3725           05732                           TC       ALARM1                                
045466,002793: 00,3726           01301                           OCT      1301                                  
045467,002794: 
045468,002795: 00,3727           34755                           CAF      ZERO                                  
045469,002796: 00,3730           13637                           TCF      ACOS=0                                
045470,002797: 
045471,002798: 00,3731           34737        ACOSZERO           CAF      QUARTER                               #  ACOS(0) = PI/2.
045472,002799: 00,3732           13640                           TCF      ACOS=0     +1                         #  SET MPAC AND EXIT VIA ESCAPE.
045473,002800: 
045474,002801: 00,3733           77763        NEG12              DEC      -12        B-14                       
045475,002802: 00,3734           13702        TCSUBTR            TCF      SUBTR                                 
045476,002803: 

Page 1087

045478,002805:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE AVAILABLE FOR SETTING, MODIFYING, AND BRANCHING ON INDEX REGISTERS:
045479,002806:                                                                                                  #        1.      AXT     ADDRESS TO INDEX TRUE.
045480,002807:                                                                                                  #        1.      AXC     ADDRESS TO INDEX COMPLEMENTED.
045481,002808:                                                                                                  #        3.      LXA     LOAD INDEX FROM ERASABLE.
045482,002809:                                                                                                  #        4.      LXC     LOAD INDEX COMPLEMENTED FROM ERASABLE.
045483,002810:                                                                                                  #        5.      SXA     STORE INDEX IN ERASABLE.
045484,002811:                                                                                                  #        6.      XCHX    EXCHANGE INDEX REIGSTER WITH ERASABLE.
045485,002812: 
045486,002813:                                                                                                  #        7.      INCR    INCREMENT INDEX REGISTER.
045487,002814:                                                                                                  #        8.      XAD     ERASABLE ADD TO INDEX REGISTER.
045488,002815:                                                                                                  #        9.      XSU     ERASABLE SUBTRACT FROM INDEX REGISTER.
045489,002816:                                                                                                  #        10.     TIX     BRANCH ON INDEX REGISTER AND DECREMENT.
045490,002817: 
045491,002818: 01,2344                                           BANK     01                                    
045492,002819: 
045493,002820: 01,2344                                           COUNT*   $$/INTER                              
045494,002821: 01,2344           02441        AXT                TC       TAGSUB                                #  SELECT APPROPRIATE INDEX REGISTER.
045495,002822: 01,2345           30117                           CA       POLISH                                
045496,002823: 01,2346           50130        XSTORE             INDEX    INDEXLOC                              #  CONTAINS C(FIXLOC) OR C(FIXLOC)+1.
045497,002824: 01,2347           54046                           TS       X1                                    
045498,002825: 01,2350           16061                           TCF      DANZIG                                
045499,002826: 
045500,002827: 01,2351           02441        AXC                TC       TAGSUB                                
045501,002828: 01,2352           40117                           CS       POLISH                                
045502,002829: 01,2353           02346                           TC       XSTORE                                
045503,002830: 
045504,002831: 01,2354           02427        LXA                TC       15ADRERS                              #  LOAD INDEX REGISTER FROM ERASABLE.
045505,002832: 01,2355           50117                           INDEX    POLISH                                
045506,002833: 01,2356           30000                           CA       0                                     
045507,002834: 01,2357           12346                           TCF      XSTORE                                
045508,002835: 
045509,002836: 01,2360           02427        LXC                TC       15ADRERS                              #  LOAD NDX REG FROM ERASABLE COMPLEMENTED.
045510,002837: 01,2361           50117                           INDEX    POLISH                                
045511,002838: 01,2362           40000                           CS       0                                     
045512,002839: 01,2363           12346                           TCF      XSTORE                                
045513,002840: 
045514,002841: 01,2364           02427        SXA                TC       15ADRERS                              #  STORE INDEX REGISTER IN ERASABLE.
045515,002842: 01,2365           50130                           INDEX    INDEXLOC                              
045516,002843: 01,2366           30046                           CA       X1                                    
045517,002844: 01,2367           50117        MSTORE1            INDEX    POLISH                                
045518,002845: 01,2370           54000                           TS       0                                     
045519,002846: 01,2371           16061                           TCF      DANZIG                                
045520,002847: 

Page 1088

045522,002849: 01,2372           02427        XCHX               TC       15ADRERS                              #  EXCHANGE INDEX REGISTER WITH ERASABLE.
045523,002850: 01,2373           50117                           INDEX    POLISH                                
045524,002851: 01,2374           30000                           CA       0                                     
045525,002852: 01,2375           50130                           INDEX    INDEXLOC                              
045526,002853: 01,2376           56046                           XCH      X1                                    
045527,002854: 01,2377           12367                           TCF      MSTORE1                               
045528,002855: 
045529,002856: 01,2400           02427        XAD                TC       15ADRERS                              #  ADD ERASABLE TO INDEX REGISTER.
045530,002857: 01,2401           50117                           INDEX    POLISH                                
045531,002858: 01,2402           30000                           CA       0                                     
045532,002859: 01,2403           50130        XAD2               INDEX    INDEXLOC                              
045533,002860: 01,2404           26046                           ADS      X1                                    #  IGNORING OVERFLOWS.
045534,002861: 01,2405           16061                           TCF      DANZIG                                
045535,002862: 
045536,002863: 01,2406           02441        INCR               TC       TAGSUB                                #  INCREMENT INDEX REGISTER.
045537,002864: 01,2407           30117                           CA       POLISH                                
045538,002865: 01,2410           12403                           TCF      XAD2                                  
045539,002866: 
045540,002867: 01,2411           02427        XSU                TC       15ADRERS                              #  SUBTRACT ERASABLE FROM INDEX REGISTER.
045541,002868: 01,2412           50117                           INDEX    POLISH                                
045542,002869: 01,2413           40000                           CS       0                                     
045543,002870: 01,2414           12403                           TCF      XAD2                                  
045544,002871: 
045545,002872: 01,2415           02441        TIX                TC       TAGSUB                                #  BRANCH AND DECREMENT ON INDEX.
045546,002873: 01,2416           50130                           INDEX    INDEXLOC                              
045547,002874: 01,2417           40050                           CS       S1                                    
045548,002875: 01,2420           50130                           INDEX    INDEXLOC                              
045549,002876: 01,2421           60046                           AD       X1                                    
045550,002877: 01,2422           00006                           EXTEND                                         #  NO OPERATION IF DECREMENTED INDEX IS
045551,002878: 01,2423           66061                           BZMF     DANZIG                                #  NEGATIVE OR ZERO.
045552,002879: 
045553,002880: 01,2424           50130        DOTIXBR            INDEX    INDEXLOC                              
045554,002881: 01,2425           56046                           XCH      X1                                    #  IGNORING OVERFLOWS.
045555,002882: 
045556,002883: 01,2426           16646                           TCF      GOTO                                  #  DO THE BRANCH USING THE CADR IN POLISH.
045557,002884: 

Page 1089

045559,002886:                                                                                                  #  SUBROUTINE TO CONVERT AN ERASABLE ADDRESS (11 BITS) TO AN EBANK SETTING AND SUBADDRESS.
045560,002887: 
045561,002888: 01,2427           40117        15ADRERS           CS       POLISH                                
045562,002889: 01,2430           64772                           AD       DEC45                                 
045563,002890: 01,2431           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
045564,002891: 01,2432           30120                           CA       FIXLOC                                #  YES.  ADD FIXLOC.  EBANK OK AS IS.
045565,002892: 01,2433           12440                           TCF      +5                                    
045566,002893: 
045567,002894: 01,2434           35007                           CA       OCT1400                               #  NO. SET EBANK & MAKE UP SUBADDRESS.
045568,002895: 01,2435           56117                           XCH      POLISH                                
045569,002896: 01,2436           54003                           TS       EBANK                                 
045570,002897: 01,2437           74357                           MASK     LOW8                                  
045571,002898: 01,2440           26117                 +5        ADS      POLISH                                #  FALL INTO TAGSUB, AND RETURN VIA Q.
045572,002899: 
045573,002900:                                                                                                  #  SUBROUTINE WHICH SETS THE ADDRESS OF THE SPECIFIED INDEX IN INDEXLOC.  (ACTUALLY, THE ADDRESS -38D.)
045574,002901: 
045575,002902: 01,2441           30120        TAGSUB             CA       FIXLOC                                
045576,002903: 01,2442           54130                           TS       INDEXLOC                              
045577,002904: 
045578,002905: 01,2443           10020                           CCS      CYR                                   #  BIT 15 SPECIFIES INDEX.
045579,002906: 01,2444           24130                           INCR     INDEXLOC                              #  0 MEANS USE X2.
045580,002907: 01,2445           00002                           TC       Q                                     
045581,002908: 01,2446           00002                           TC       Q                                     #  1 FOR X1.
045582,002909: 

Page 1090

045584,002911:                                                                                                  #  MISCELLANEOUS OPERATION CODES WITH DIRECT ADDRESSES.  INCLUDED HERE ARE:
045585,002912:                                                                                                  #        1.      ITA     STORE QPRET (RETURN ADDRESS) IN ERASABLE.
045586,002913:                                                                                                  #        2.      CALL    CALL A SUBROUTINE, LEAVING RETURN IN QPRET.
045587,002914:                                                                                                  #        3.      RTB     RETURN TO BASIC LANGUAGE AT THE GIVEN ADDRESS.
045588,002915:                                                                                                  #        4.      BHIZ    BRANCH IF THE HIGH ORDER OF MPAC IS ZERO (SINGLE PRECISION).
045589,002916:                                                                                                  #        5.      BOV     BRANCH ON OVERFLOW.
045590,002917:                                                                                                  #        6.      GOTO    SIMPLE SEQUENCE CHANGE.
045591,002918: 
045592,002919: 01,2447           10020        RTB/BHIZ           CCS      CYR                                   
045593,002920: 01,2450           30117        RTB                CA       POLISH                                
045594,002921: 01,2451           04621                           TC       SWCALL     -1                         #  SO A "TC Q" FROM ROUTINE LEADS TO DANZIG
045595,002922: 
045596,002923: 01,2452           10154        BHIZ               CCS      MPAC                                  
045597,002924: 01,2453           16061                           TCF      DANZIG                                
045598,002925: 01,2454           16646                           TCF      GOTO                                  
045599,002926: 01,2455           16061                           TCF      DANZIG                                
045600,002927: 01,2456           16646                           TCF      GOTO                                  
045601,002928: 
045602,002929: 01,2457           10121        BOV(B)             CCS      OVFIND                                #  BRANCH ON OVERFLOW TO BASIC OR INTERP.
045603,002930: 01,2460           12462                           TCF      +2                                    
045604,002931: 01,2461           16061                           TCF      DANZIG                                
045605,002932: 01,2462           54121                           TS       OVFIND                                
045606,002933: 01,2463           10020                           CCS      CYR                                   
045607,002934: 01,2464           12450                           TCF      RTB                                   #  IF BASIC.
045608,002935: 01,2465           00360        B5TOB8             OCT      360                                   
045609,002936: 01,2466           16646                           TCF      GOTO                                  
045610,002937: 

Page 1091

045612,002939: 01,2467           10020        BZE/GOTO           CCS      CYR                                   #  SEE WHICH OP-CODE IS DESIRED.
045613,002940: 01,2470           06723                           TC       BRANCH                                #  DO BZE.
045614,002941: 01,2471           16061                           TCF      DANZIG                                
045615,002942: 01,2472           16646                           TCF      GOTO                                  #  DO GOTO.
045616,002943: 01,2473           16061                           TCF      DANZIG                                
045617,002944: 
045618,002945: 01,2474           10020        BPL/BMN            CCS      CYR                                   
045619,002946: 01,2475           12503                           TCF      BPL                                   
045620,002947: 01,2476           12000        5B10               DEC      5          B+10                       #  SHIFTS OP CODE IN SWITCH INSTRUCTION ADR
045621,002948: 
045622,002949: 01,2477           06723                           TC       BRANCH                                #  DO BMN.
045623,002950: 01,2500           16061                           TCF      DANZIG                                
045624,002951: 01,2501           16061                           TCF      DANZIG                                
045625,002952: 01,2502           16646                           TCF      GOTO                                  #  ONLY IF NNZ.
045626,002953: 
045627,002954: 01,2503           06723        BPL                TC       BRANCH                                
045628,002955: 01,2504           16646                           TCF      GOTO                                  #  IF POSITIVE OR ZERO.
045629,002956: 01,2505           16646                           TCF      GOTO                                  
045630,002957: 01,2506           16061                           TCF      DANZIG                                
045631,002958: 
045632,002959: 01,2507           10020        CALL/ITA           CCS      CYR                                   
045633,002960: 01,2510           16640                           TCF      CALL                                  
045634,002961: 
045635,002962: 01,2511           05705                           TC       CCSHOLE                               
045636,002963: 01,2512           02427                           TC       15ADRERS                              #  STORE QPRET.  (TAGSUB AFTER 15ADRERS IS
045637,002964: 01,2513           50120                           INDEX    FIXLOC                                #  SLOW IN THIS CASE, BUT SAVES STORAGE.)
045638,002965: 01,2514           30052                           CA       QPRET                                 
045639,002966: 01,2515           12367                           TCF      MSTORE1                               
045640,002967: 

Page 1092

045642,002969:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR ALTERING AND TESTING INTERPRETIVE SWITCHES:
045643,002970: 
045644,002971:                                                                                                  #        00      BONSET          SET A SWITCH AND DO A GOTO IF IT WAS ON.
045645,002972:                                                                                                  #        01      SETGO           SET A SWITCH AND DO A GOTO.
045646,002973:                                                                                                  #        02      BOFSET          SET A SWITCH AND DOA GOTO IF IT WAS OFF
045647,002974:                                                                                                  #        03      SET             SET A SWITCH.
045648,002975: 
045649,002976:                                                                                                  #        04      BONINV          INVERT A SWITCH AND BRANCH IF IT WAS ON.
045650,002977:                                                                                                  #        05      INVGO           INVERT A SWITCH AND DO A GOTO.
045651,002978:                                                                                                  #        06      BOFINV          INVERT A SWITCH AND BRANCH IF IT WAS OFF
045652,002979:                                                                                                  #        07      INVERT          INVERT A SWITCH.
045653,002980: 
045654,002981:                                                                                                  #        10      BONCLR          CLEAR A SWITCH AND BRANCH IF IT WAS ON.
045655,002982:                                                                                                  #        11      CLRGO           CLEAR A SWITCH AND DO A GOTO.
045656,002983:                                                                                                  #        12      BOFCLR          CLEAR A SWITCH AND BRANCH IF IT WAS OFF.
045657,002984:                                                                                                  #        13      CLEAR           CLEAR A SWITCH.
045658,002985: 
045659,002986:                                                                                                  #        14      BON             BRANCH IF A SWITCH WAS ON.
045660,002987:                                                                                                  #        16      BOFF            BRANCH IF A SWITCH WAS OFF.
045661,002988: 
045662,002989:                                                                                                  #  THE ADDRESS SUPPLIED WITH THE SWITCH INSTRUCTION IS INTERPRETED AS FOLLOWS:
045663,002990: 
045664,002991:                                                                                                  #        BITS 1-4        SWITCH BIT NUMBER (1-15).
045665,002992:                                                                                                  #        BITS 5-8        SWITCH OPERATION NUMBER.
045666,002993:                                                                                                  #        BITS 9-         SWITCH WORD NUMBER (UP TO 64 SWITCH WORDS).
045667,002994: 
045668,002995:                                                                                                  #  THE ADDRESS ITSELF IS MADE UP BY THE YUL SYSTEM ASSEMBLER.  THE BRANCH INSTRUCTIONS REQUIRE TWO
045669,002996:                                                                                                  #  ADDRESSES, THE SECOND TAKEN AS THE DIRECT (OR INDIRECT IF IN ERASABLE) ADDRESS OF THE BRANCH.
045670,002997: 
045671,002998: 01,2516           34762        SWITCHES           CAF      LOW4                                  #  LEAVE THE SWITCH BIT IN SWBIT.
045672,002999: 01,2517           70117                           MASK     POLISH                                
045673,003000: 01,2520           50000                           INDEX    A                                     
045674,003001: 01,2521           34735                           CAF      BIT15                                 #  (NUMBER FROM LEFT TO RIGHT.)
045675,003002: 01,2522           54131                           TS       SWBIT                                 
045676,003003: 
045677,003004: 01,2523           34745                           CAF      BIT7                                  #  LEAVE THE SWITCH NUMBER IN SWWORD.
045678,003005: 01,2524           00006                           EXTEND                                         
045679,003006: 01,2525           70117                           MP       POLISH                                
045680,003007: 01,2526           54130                           TS       SWWORD                                
045681,003008: 
045682,003009: 01,2527           00004                           INHINT                                         #  DURING SWITCH CHANGE SO RUPT CAN USE TOO
045683,003010: 01,2530           50000                           INDEX    A                                     #  LEAVE THE SWITCH WORD ITSELF IN L.
045684,003011: 01,2531           30074                           CA       STATE                                 
045685,003012: 01,2532           54002                           TS       Q                                     #  Q WILL BE USED AS A CHANNEL.

Page 1093

045687,003014: 01,2533           34741                           CAF      BIT11                                 
045688,003015: 01,2534           00006                           EXTEND                                         #  DISPATCH SWITCH BIT OPERATION AS IN BITS
045689,003016: 01,2535           70117                           MP       POLISH                                #  7-8 OF POLISH.
045690,003017: 01,2536           72576                           MASK     B3TOB4                                #  GETS 4X2-BIT CODE.
045691,003018: 01,2537           50000                           INDEX    A                                     
045692,003019: 01,2540           12541                           TCF      +1                                    
045693,003020: 
045694,003021: 01,2541           30131                 +1        CA       SWBIT                                 #  00 - SET SWITCH IN QUESTION.
045695,003022: 01,2542           00006                           EXTEND                                         
045696,003023: 01,2543           04002                           ROR      QCHAN                                 
045697,003024: 01,2544           12553                           TCF      SWSTORE                               
045698,003025: 
045699,003026: 01,2545           30131                 +5        CA       SWBIT                                 #  01 - INVERT SWITCH.
045700,003027: 01,2546           00006                           EXTEND                                         
045701,003028: 01,2547           06002                           RXOR     QCHAN                                 
045702,003029: 01,2550           12553                           TCF      SWSTORE                               
045703,003030: 
045704,003031: 01,2551           40131                 +9D       CS       SWBIT                                 #  10 - CLEAR.
045705,003032: 01,2552           70002                           MASK     Q                                     
045706,003033: 01,2553           50130        SWSTORE            INDEX    SWWORD                                
045707,003034: 01,2554           54074                           TS       STATE                                 #  NEW SWITCH WORD.
045708,003035: 

Page 1094

045710,003037: 01,2555           00003                 +13D      RELINT                                         #  11 - NOOP.
045711,003038: 01,2556           34737                           CAF      BIT13                                 
045712,003039: 01,2557           00006                           EXTEND                                         #  DISPATCH SEQUCE CHANGING OR BRANCHING
045713,003040: 01,2560           70117                           MP       POLISH                                #  CODE.
045714,003041: 01,2561           72576                           MASK     B3TOB4                                
045715,003042: 01,2562           50000                           INDEX    A                                     
045716,003043: 01,2563           12564                           TCF      +1                                    #  ORIGINALLY STORED IN BITS 5-6.
045717,003044: 
045718,003045: 01,2564           40002                 +1        CS       Q                                     #  00 - BRANCH IF ON.
045719,003046: 01,2565           70131        TEST               MASK     SWBIT                                 
045720,003047: 01,2566           10000                           CCS      A                                     
045721,003048: 01,2567           12577                           TCF      SWSKIP                                
045722,003049: 
045723,003050: 01,2570           16715                 +5        TCF      SWBRANCH                              #  01 - GO TO.
045724,003051: 
045725,003052: 01,2571           12577                           TCF      SWSKIP                                #  HERE ONLY ON BIT 15.
045726,003053: 
045727,003054: 01,2572           05705                           TC       CCSHOLE                               
045728,003055: 01,2573           05705                           TC       CCSHOLE                               
045729,003056: 
045730,003057: 01,2574           30002                 +9D       CA       Q                                     #  10 - BRANCH IF OFF.
045731,003058: 01,2575           12565                           TCF      TEST                                  
045732,003059: 
045733,003060: 01,2576           00014        B3TOB4             OCT      0014                                  
045734,003061: 01,2577           24164        SWSKIP             INCR     LOC                                   
045735,003062: 
045736,003063: 01,2600  01,2516               SW/                EQUALS   SWITCHES                              
045737,003064: 
045738,003065: 01,2600           16061                 +13D      TCF      DANZIG                                #  11 - NOOP.
045739,003066: 

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