Source Code

This is an attempt to recreate Luminary 99 Rev 2, otherwise known as LUM99R2, from Luminary 99 Rev 1 and ephemeris data from Luminary 116. The differences are confined to the last 10-12 lines of the CONTROLLED CONSTANTS. Luminary 99 Rev 1 source-code was transcribed from a printout in the MIT Museum, while Luminary 116 source code was transcribed from a printout belonging to Don Eyles. AGC developer James Kernan, the "rope mother" for the Apollo 11 Lunar Module's AGC, explains as follows: "At the last minute, Dan Lickly, our chief engineer, appeared with ephemerides updates and it took two tries to get it right. The result was that we created Lum99 Revision 1 and Lum99 Revision 2." It is suspected that the former is what's in the MIT Museum, and the latter is what we are trying to recreate here. As for which revision actually flew in Apollo 11, all of the other available surviving evidence points to Rev 1 rather than to Rev 2, so we're just not sure!

042908,000002:                                                                                                  ## Copyright:   Public domain.
042909,000003:                                                                                                  ## Filename:    INTERPRETER.agc
042910,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
042911,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
042912,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
042913,000007:                                                                                                  ## Assembler:   yaYUL
042914,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
042915,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
042916,000010:                                                                                                  ## Pages:       1002-1094
042917,000011:                                                                                                  ## Mod history: 2009-05-25 RSB  Adapted from the corresponding 
042918,000012:                                                                                                  ##                              Luminary131 file, using page 
042919,000013:                                                                                                  ##                              images from Luminary 1A.
042920,000014:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
042921,000015:                                                                                                  ##              2011-05-08 JL   Removed workarounds.
042922,000016:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
042923,000017:                                                                                                  ##                              and corrected the errors found.
042924,000018:                                                                                                  ##              2017-01-28 RSB  Back-ported some comment-text fixes made in Luminary 69.
042925,000019:                                                                                                  ##              2017-02-05 RSB  Back-ported comment corrections 
042926,000020:                                                                                                  ##                              identified while proofing Artemis 072.
042927,000021:                                                                                                  ##              2017-03-03 RSB  Snapshot of Luminary 99 Rev 1. 
042928,000022:                                                                                                  ##              2017-03-13 RSB  Comment-text fixes noted in proofing Luminary 116.
042929,000023:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
042930,000024:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
042931,000025: 

Page 1002

042933,000027:                                                                                                  #  SECTION 1   DISPATCHER
042934,000028: 
042935,000029:                                                                                                  #  ENTRY TO THE INTERPRETER.  INTPRET SETS LOC TO THE FIRST INSTRUCTION, BANKSET TO THE BBANK OF THE
042936,000030:                                                                                                  #  OBJECT INTERPRETIVE PROGRAM, AND INTBIT15 TO THE BIT15 CONTENTS OF FBANK.  INTERPRETIVE PROGRAMS MAY BE IN
042937,000031:                                                                                                  #  VIRTUALLY ALL BANKS PRESENT UNDER ANY SUPER-BANK SETTING, WITH THE RESTRICTION THAT PROGRAMS IN HIGH BANKS
042938,000032:                                                                                                  #  (BIT15 OF FBANK = 1) DO NOT REFER TO LOWBANKS, AND VICE-VERSA.  THE INTERPRETER DOES NOT SWITCH SUPERBANKS.
042939,000033:                                                                                                  #  E-BANK SWITCHING OCCURS WHENEVER GENERAL ERASABLE (100-3777) IS ADDRESSED.
042940,000034: 
042941,000035:    6037                                           BLOCK    03                                    
042942,000036: 
042943,000037:    6037                                           COUNT*   $$/INTER                              
042944,000038:    6037           00003        INTPRET            RELINT                                         
042945,000039:    6040           00006                           EXTEND                                         #  SET LOC TO THE WORD FOLLOWING THE TC.
042946,000040:    6041           22164                           QXCH     LOC                                   
042947,000041: 
042948,000042:    6042           30006                 +2        CA       BBANK                                 #  INTERPRETIVE BRANCHES FINISH HERE.
042949,000043:    6043           54165                           TS       BANKSET                               
042950,000044:    6044           74735                           MASK     BIT15                                 #  GET 15TH BIT FOR INDEXABLE ADDRESSES.
042951,000045:    6045           54115                           TS       INTBIT15                              
042952,000046: 
042953,000047:    6046           54023                           TS       EDOP                                  #  MAKE SURE NO INSTRUCTIONS LEFT OVER
042954,000048: 
042955,000049:    6047           16070                           TCF      NEWOPS                                #  PICK UP OP CODE PAIR AND BEGIN.
042956,000050: 
042957,000051:    6050           22006        INTRSM             LXCH     BBANK                                 #  RESUME SUSPENDED INTERPRETIVE JOB
042958,000052:    6051           16042                           TCF      INTPRET    +3                         
042959,000053: 
042960,000054:                                                                                                  #  DLOAD LOADS MPAC, MPAC +1, LEAVING ZERO IN MPAC +2.
042961,000055: 
042962,000056:    6052           00006        DLOAD              EXTEND                                         
042963,000057:    6053           50116                           INDEX    ADDRWD                                
042964,000058:    6054           30001                           DCA      0                                     #  LOAD DP C(C(ADDRWD)) INTO MPAC,MPAX +1
042965,000059:    6055           52155        SLOAD2             DXCH     MPAC                                  
042966,000060:    6056           34755                           CAF      ZERO                                  #  ZERO MPAC +2
042967,000061: 

Page 1003

042969,000063:                                                                                                  #  AT THE END OF MOST INSTRUCTIONS, CONTROL IS GIVEN TO DANZIG TO DISPATCH THE NEXT OPERATION.
042970,000064: 
042971,000065:    6057           54156                           TS       MPAC       +2                         #  AND DECLARE DP MODE
042972,000066: 
042973,000067:    6060           54163        NEWMODE            TS       MODE                                  #  PROLOGUE FOR MODE-CHANGING INSTRUCTIONS.
042974,000068: 
042975,000069:    6061           30165        DANZIG             CA       BANKSET                               #  SET BBANK BEFORE TESTING NEWJOB SO THAT
042976,000070:    6062           54006                           TS       BBANK                                 #  IT MAY BE SAVED DIRECTLY BY CHANJOB.
042977,000071: 
042978,000072:    6063           10023        NOIBNKSW           CCS      EDOP                                  #  SEE IF AN ORDER CODE IS LEFT OVER FROM
042979,000073:    6064           16077                           TCF      OPJUMP                                #  THE LAST PAIR RETRIEVED.  IF SO, EXECUTE.
042980,000074:                                                                                                  #  EDOP IS SET TO ZERO ON ITS RE-EDITING.
042981,000075: 
042982,000076:    6065           10067                           CCS      NEWJOB                                #  SEE IF A JOB OF HIGHER PRIORITY IS
042983,000077:    6066           15126                           TCF      CHANG2                                #  PRESENT, AND IF SO, CHANGE JOBS.
042984,000078: 
042985,000079:    6067           24164                           INCR     LOC                                   #  ADVANCE THE LOCATION COUNTER.
042986,000080: 
042987,000081:                                                                                                  #  ITRACE (1) REFERS TO "NEWOPS".
042988,000082:    6070           50164        NEWOPS             INDEX    LOC                                   #  ENTRY TO BEGIN BY PICKING OP CODE PAIR.
042989,000083:    6071           30000                           CA       0                                     #  MAY BE AN OPCODE PAIR OR A STORE CODE.
042990,000084:    6072           10000                           CCS      A                                     #  TEST SIGN AND GET DABS(A).
042991,000085:    6073           16362                           TCF      DOSTORE                               #  PROCESS STORE CODE.
042992,000086: 
042993,000087:    6074           00177        LOW7               OCT      177                                   
042994,000088: 
042995,000089:    6075           54023                           TS       EDOP                                  #  OP CODE PAIR.  LEAVE THE OTHER IN EDOP
042996,000090:    6076           76074                           MASK     LOW7                                  #  WHERE CCS EDOP WILL HONOR IT NEXT.
042997,000091: 
042998,000092:    6077           54020        OPJUMP             TS       CYR                                   #  LOWWD ENTERS HERE IF A RIGHT-HAND OP
042999,000093:    6100           10020                           CCS      CYR                                   #  CODE IS TO BE PROCESSED.  TEST PREFICES.
043000,000094:    6101           16247                           TCF      OPJUMP2                               #  TEST SECOND PREFIX BIT.
043001,000095: 
043002,000096:    6102           16743                           TCF      EXIT                                  #  +0 OP CODE IS EXIT.
043003,000097: 

Page 1004

043005,000099:                                                                                                  #  PROCESS ADDRESSES WHICH MAY BE DIRECT, INDEXED, OR REFERENCE THE PUSHDOWN LIST.
043006,000100: 
043007,000101:    6103           74753        ADDRESS            MASK     BIT1                                  #  SEE IF ADDRESS IS INDEXED.  CYR CONTAINED
043008,000102:    6104           10000                           CCS      A                                     #  400XX, SO BIT 1 IS NOW AS IT WAS IN CYR.
043009,000103:    6105           16146                           TCF      INDEX                                 #  FORM INDEXED ADDRESS.
043010,000104: 
043011,000105:    6106           50164        DIRADRES           INDEX    LOC                                   #  LOOK AHEAD TO NEXT WORD TO SEE IF
043012,000106:    6107           40001        OCT40001           CS       1                                     #  ADDRESS IS GIVEN.
043013,000107:    6110           10000                           CCS      A                                     
043014,000108:    6111           16215                           TCF      PUSHUP                                #  IF NOT.
043015,000109: 
043016,000110:    6112           77773        NEG4               DEC      -4         B-14                       
043017,000111: 
043018,000112:    6113           24164                           INCR     LOC                                   #  IF SO, TO SHOW WE PICKED UP A WORD.
043019,000113:    6114           54116                           TS       ADDRWD                                
043020,000114: 

Page 1005

043022,000116:                                                                                                  #  FINAL DIGESTION OF DIRECT ADDRESSES OF OP CODES WITH 01 PREFIX IS DONE HERE.   IN EACH CASE, THE
043023,000117:                                                                                                  #  REQUIRED 12-BIT SUB-ADDRESS IS LEFT IN ADDRWD, WITH ANY REQUIRED E OR F BANK SWITCHING DONE.  ADDRESSES LESS
043024,000118:                                                                                                  #  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.
043025,000119: 
043026,000120:    6115           66251                           AD       -ENDVAC                               #  SEE IF ADDRESS RELATIVE TO WORK AREA.
043027,000121:    6116           10000                           CCS      A                                     
043028,000122:    6117           67743                           AD       -ENDERAS                              #  IF NOT, SEE IF IN GENERAL ERASABLE.
043029,000123:    6120           16125                           TCF      IERASTST                              
043030,000124: 
043031,000125:    6121           30120        NETZERO            CA       FIXLOC                                #  IF SO, LEAVE THE MODIFIED ADDRESS IN
043032,000126:    6122           26116                           ADS      ADDRWD                                #  ADDRWD AND DISPATCH.
043033,000127:    6123           50020        ITR15              INDEX    CYR                                   #  THIS INDEX MAKES THE NEXT INSTRUCTION
043034,000128:    6124           76273                           7        INDJUMP    -1                         #  TCF INDJUMP + OP, EDITING CYR.
043035,000129: 
043036,000130:    6125           00006        IERASTST           EXTEND                                         
043037,000131:    6126           66136                           BZMF     GEADDR                                #  GO PROCESS GENERAL-ERASABLE ADDRESS.
043038,000132: 
043039,000133:    6127           75012                           MASK     LOW10                                 #  FIXED BANK ADDRESS. RESTORE AND ADD B15.
043040,000134:    6130           65012                           AD       LOW10                                 #  SWITCH BANKS AND LEAVE SUBADDRESS IN
043041,000135:    6131           56116                           XCH      ADDRWD                                #  ADDRWD FOR OPERAND RETRIEVAL. (THIS
043042,000136:    6132           60115                           AD       INTBIT15                              #  METHOD PRECLUDES USE OF THE LAST
043043,000137:    6133           54004                           TS       FBANK                                 #  LOCATION IN EACH FBANK.)
043044,000138:    6134           50020        ITR12              INDEX    CYR                                   
043045,000139:    6135           76273                           7        INDJUMP    -1                         
043046,000140: 
043047,000141:    6136           74357        GEADDR             MASK     LOW8                                  
043048,000142:    6137           65007                           AD       OCT1400                               
043049,000143:    6140           56116                           XCH      ADDRWD                                
043050,000144:    6141           54003                           TS       EBANK                                 
043051,000145:    6142           50020        ITR10              INDEX    CYR                                   
043052,000146:    6143           76273                           7        INDJUMP    -1                         
043053,000147: 

Page 1006

043055,000149:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES INTERPRETIVE INDEXED ADDRESSES.  AN INTERPRETER INDEX REGISTER MAY
043056,000150:                                                                                                  #  CONTAIN THE ADDRESS OF ANY ERASABLE REGISTER (0-42 BEING RELATIVE TO THE VAC AREA) OR ANY INTERPRETIVE PROGRAM
043057,000151:                                                                                                  #  BANK, OR ANY INTEGER IN THAT RANGE.
043058,000152: 
043059,000153:    6144           37733        DODLOAD*           CAF      DLOAD*                                #  STODL* COMES HERE TO PROCESS LOAD ADR.
043060,000154:    6145           54020                           TS       CYR                                   #  (STOVL* ENTERS HERE).
043061,000155: 
043062,000156:    6146           30120        INDEX              CA       FIXLOC                                #  SET UP INDEX LOCATION.
043063,000157:    6147           54130                           TS       INDEXLOC                              
043064,000158:    6150           24164                           INCR     LOC                                   #  (ADDRESS ALWAYS GIVEN).
043065,000159:    6151           50164                           INDEX    LOC                                   
043066,000160:    6152           40000                           CS       0                                     
043067,000161:    6153           10000                           CCS      A                                     #  INDEX 2 IF ADDRESS STORED COMPLEMENTED.
043068,000162:    6154           24130                           INCR     INDEXLOC                              
043069,000163:    6155           16156                           NOOP                                           
043070,000164: 
043071,000165:    6156           54116                           TS       ADDRWD                                #  14 BIT ADDRESS TO ADDRWD.
043072,000166:    6157           77742                           MASK     HIGH4                                 #  IF ADDRESS GREATER THAN 2K, ADD INTBIT15
043073,000167:    6160           00006                           EXTEND                                         
043074,000168:    6161           16164                           BZF      INDEX2                                
043075,000169:    6162           30115                           CA       INTBIT15                              
043076,000170:    6163           26116                           ADS      ADDRWD                                
043077,000171: 
043078,000172:    6164           50130        INDEX2             INDEX    INDEXLOC                              
043079,000173:    6165           40046                           CS       X1                                    
043080,000174:    6166           26116                           ADS      ADDRWD                                #  DO AUGMENT, IGNORING AND CORRECTING OVF.
043081,000175: 
043082,000176:    6167           77744                           MASK     HIGH9                                 #  SEE IF ADDRESS IS IN WORK AREA.
043083,000177:    6170           00006                           EXTEND                                         
043084,000178:    6171           16204                           BZF      INDWORK                               
043085,000179:    6172           77742                           MASK     HIGH4                                 #  SEE IF IN FIXED BANK.
043086,000180:    6173           00006                           EXTEND                                         
043087,000181:    6174           16206                           BZF      INDERASE                              
043088,000182: 
043089,000183:    6175           30116                           CA       ADDRWD                                #  IN FIXED - SWITCH BANKS AND CREATE
043090,000184:    6176           54004                           TS       FBANK                                 #  SUB-ADDRESS.
043091,000185:    6177           75012                           MASK     LOW10                                 
043092,000186:    6200           64741                           AD       2K                                    
043093,000187:    6201           54116                           TS       ADDRWD                                
043094,000188:    6202           50020        ITR11              INDEX    CYR                                   
043095,000189:    6203           36273                           3        INDJUMP    -1                         
043096,000190: 
043097,000191:    6204           30120        INDWORK            CA       FIXLOC                                #  MAKE ADDRWD RELATIVE TO WORK AREA.
043098,000192:    6205           16212                           TCF      ITR13      -1                         
043099,000193: 
043100,000194:    6206           35007        INDERASE           CA       OCT1400                               
043101,000195:    6207           56116                           XCH      ADDRWD                                
043102,000196:    6210           54003                           TS       EBANK                                 
043103,000197:    6211           74357                           MASK     LOW8                                  
043104,000198:    6212           26116                 -1        ADS      ADDRWD                                

Page 1007

043106,000200:    6213           50020        ITR13              INDEX    CYR                                   
043107,000201:    6214           36273                           3        INDJUMP    -1                         
043108,000202: 

Page 1008

043110,000204:                                                                                                  #  PUSH-UP ROUTINES.  WHEN NO OPERAND ADDRESS IS GIVEN, THE APPROPRIATE OPERAND IS TAKEN FROM THE PUSH-DOWN
043111,000205:                                                                                                  #  LIST.  IN MOST CASES THE MODE OF THE RESULT (VECTOR OR SCALAR) OF THE LAST ARITHMETIC OPERATION PERFORMED
043112,000206:                                                                                                  #  IS THE SAME AS THE TYPE OF OPERAND DESIRED (ALL ADD/SUBTRACT ETC.).  EXCEPTIONS TO THIS GENERAL RULE ARE LISTED
043113,000207:                                                                                                  #  BELOW (NOTE THAT IN EVERY CASE THE MODE REGISTER IS LEFT INTACT):
043114,000208: 
043115,000209:                                                                                                  #        1.      VXSC AND V/SC WANT THE OPPOSITE TYPE OF OPERAND, E.G., IF THE LAST OPERATION YIELDED A VECTOR
043116,000210:                                                                                                  #                RESULT, VXSC WANTS A SCALAR.
043117,000211: 
043118,000212:                                                                                                  #        2.      THE LOAD CODES SHOULD LOAD THE ACCUMULATOR INDEPENDENT OF THE RESULT OF THE LAST OPERATION.  THIS
043119,000213:                                                                                                  #                INCLUDES VLOAD, DLOAD, TLOAD, PDDL, AND PDVL (NO PUSHUP WITH SLOAD).
043120,000214: 
043121,000215:                                                                                                  #        3.      SOME ARITHMETIC OPERATIONS REQUIRE A STANDARD TYPE OF OPERAND REGARDLESS OF THE PREVIOUS OPERATION.
043122,000216:                                                                                                  #                THIS INCLUDES SIGN WANTING DP AND TAD REQUIRING TP.
043123,000217: 
043124,000218:    6215           34360        PUSHUP             CAF      OCT23                                 #  IF THE LOW 5 BITS OF CYR ARE LESS THAN
043125,000219:    6216           70020                           MASK     CYR                                   #  20, THIS OP REQUIRES SPECIAL ATTENTION.
043126,000220:    6217           66222                           AD       -OCT10                                #  (NO -0).
043127,000221:    6220           10000                           CCS      A                                     
043128,000222:    6221           16233                           TCF      REGUP                                 #  FOR ALL CODES GREATER THAN OCT 7.
043129,000223: 
043130,000224:    6222           77767        -OCT10             OCT      -10                                   
043131,000225: 
043132,000226:    6223           66112                           AD       NEG4                                  #  WE NOW HAVE 7 - OP CODE (MOD4).  SEE IF
043133,000227:    6224           10000                           CCS      A                                     #  THE OP CODE (MOD4) IS THREE (REVERSE).
043134,000228:    6225           50000                           INDEX    A                                     #  NO - THE MODE IS DEFINITE.  PICK UP THE
043135,000229:    6226           46244                           CS       NO.WDS                                
043136,000230:    6227           16235                           TCF      REGUP      +2                         
043137,000231: 
043138,000232:    6230           50163                           INDEX    MODE                                  #  FOR VXSC AND V/SC WE WANT THE REQUIRED
043139,000233:    6231           46242                           CS       REVCNT                                #  PUSHLOC DECREMENT WITHOUT CHANGING THE
043140,000234:    6232           16235                           TCF      REGUP      +2                         #  MODE AT THIS TIME.
043141,000235: 
043142,000236:    6233           50163        REGUP              INDEX    MODE                                  #  MOST ALL OP CODES PUSHUP HERE.
043143,000237:    6234           46244                           CS       NO.WDS                                
043144,000238:    6235           26166                 +2        ADS      PUSHLOC                               
043145,000239:    6236           54116                           TS       ADDRWD                                
043146,000240:    6237           50020        ITR14              INDEX    CYR                                   
043147,000241:    6240           76273                           7        INDJUMP    -1                         #  (THE INDEX MAKES THIS A TCF.)
043148,000242: 
043149,000243:    6241           00002                           OCT      2                                     #  REVERSE PUSHUP DECREMENT. VECTOR TAKES 2
043150,000244:    6242           00006        REVCNT             OCT      6                                     #  WORDS, SCALAR TAKES 6.
043151,000245:    6243           00006                           OCT      6                                     
043152,000246:    6244           00002        NO.WDS             OCT      2                                     #  CONVENTIONAL DECREMENT IS 6 WORDS VECTOR
043153,000247:    6245           00003        OCTAL3             OCT      3                                     #  2 IN DP, AND 3 IN TP.
043154,000248:    6246           00006                           OCT      6                                     
043155,000249: 

Page 1009

043157,000251:                                                                                                  #  TEST THE SECOND PREFIX BIT TO SEE IF THIS IS A MISCELLANEOUS OR A UNARY/SHORT SHIFT OPERATION.
043158,000252: 
043159,000253:    6247           10020        OPJUMP2            CCS      CYR                                   #  TEST SECOND PREFIX BIT.
043160,000254:    6250           16263                           TCF      OPJUMP3                               #  TEST THIRD BIT TO SEE IF UNARY OR SHIFT.
043161,000255: 
043162,000256:    6251           77722        -ENDVAC            DEC      -45        B-14                       
043163,000257: 
043164,000258:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES ADDRESSES OF SUFFIX CLASS 10.  THEY ARE BASICALLY WORK AREA ADDRESSES
043165,000259:                                                                                                  #  IN THE RANGE 0-52, ERASABLE ECADR CONSTANTS FROM 100-3777, AND FCADRS ABOVE THAT.  ALL 15 BITS ARE AVAILABLE
043166,000260:                                                                                                  #  IN CONTRAST TO SUFFIX 1, IN WHICH ONLY THE LOW ORDER 14 ARE AVAILABLE.
043167,000261: 
043168,000262:    6252           24164        15BITADR           INCR     LOC                                   #  (ENTRY HERE FROM STCALL).
043169,000263:    6253           50164                           INDEX    LOC                                   #  PICK UP ADDRESS WORD.
043170,000264:    6254           30000                           CA       0                                     
043171,000265:    6255           54117                           TS       POLISH                                #  WE MAY NEED A SUBADDRESS LATER.
043172,000266: 
043173,000267:    6256           35013                           CAF      LOW7+2K                               #  THESE INSTRUCTIONS ARE IN BANK 1.
043174,000268:    6257           54004                           TS       FBANK                                 
043175,000269:    6260           70020                           MASK     CYR                                   
043176,000270:    6261           50000        ITR7               INDEX    A                                     
043177,000271:    6262           16334                           TCF      MISCJUMP                              
043178,000272: 

Page 1010

043180,000274:                                                                                                  #  COMPLETE THE DISPATCHING OF UNARY AND SHORT SHIFT OPERATIONS.
043181,000275: 
043182,000276:    6263           54004        OPJUMP3            TS       FBANK                                 #  CALL IN BANK 0 (BITS 11-15 OF A ARE 0.)
043183,000277:                                                                                                  #  ITRACE (6) REFERS TO "OPJUMP3".
043184,000278:    6264           10020                           CCS      CYR                                   #  TEST THIRD PREFIX BIT.
043185,000279:    6265           50000                           INDEX    A                                     #  THE DECREMENTED UNARY CODE IS IN BITS
043186,000280:    6266           12000                           TCF      UNAJUMP                               #  1-4 OF A (ZERO, EXIT, HAS BEEN DETECTED)
043187,000281: 
043188,000282:    6267           10163                           CCS      MODE                                  #  ITS A SHORT SHIFT CODE.  SEE IF PRESENT
043189,000283:    6270           12017                           TCF      SHORTT                                #  SCALAR OR VECTOR.
043190,000284:    6271           12017                           TCF      SHORTT                                
043191,000285:    6272           12121                           TCF      SHORTV                                #  CALLS THE APPROPRIATE ROUTINE.
043192,000286: 
043193,000287:    6273     4350               FBANKMSK           EQUALS   BANKMASK                              
043194,000288:    6273           00122        LVBUF              ADRES    VBUF                                  
043195,000289: 

Page 1011

043197,000291:                                                                                                  #  THE FOLLOWING IS THE JUMP TABLE FOR OP CODES WHICH MAY HAVE INDEXABLE ADDRESSES OR MAY PUSH UP.
043198,000292: 
043199,000293:    6274           16505        INDJUMP            TCF      VLOAD                                 #  00 - LOAD MPAC WITH A VECTOR.
043200,000294:    6275           17071                           TCF      TAD                                   #  01 - TRIPLE PRECISION ADD TO MPAC.
043201,000295:    6276           17655                           TCF      SIGN                                  #  02 - COMPLEMENT MPAC (V OR SC) IF X NEG.
043202,000296:    6277           17401                           TCF      VXSC                                  #  03 - VECTOR TIMES SCALAR.
043203,000297:    6300           16703                           TCF      CGOTO                                 #  04 - COMPUTED GO TO.
043204,000298:    6301           16470                           TCF      TLOAD                                 #  05 - LOAD MPAC WITH TRIPLE PRECISION.
043205,000299:    6302           16052                           TCF      DLOAD                                 #  06 - LOAD MPAC WITH A DP SCALAR.
043206,000300:    6303           17624                           TCF      V/SC                                  #  07 - VECTOR DIVIDED BY SCALAR.
043207,000301: 
043208,000302:    6304           16501                           TCF      SLOAD                                 #  10 - LOAD MPACIN SINGLE PRECISION.
043209,000303:    6305           16620                           TCF      SSP                                   #  11 - SET SINGLE PRECISION INTO X.
043210,000304:    6306           16523                           TCF      PDDL                                  #  12 - PUSH DOWN MPAC AND RE-LOAD IN DP.
043211,000305:    6307           17334                           TCF      MXV                                   #  13 - MATRIX POST-MULTIPLIED BY VECTOR.
043212,000306:    6310           16557                           TCF      PDVL                                  #  14 - PUSH DOWN AND VECTOR LOAD.
043213,000307:    6311           16626                           TCF      CCALL                                 #  15 - COMPUTED CALL.
043214,000308:    6312           17337                           TCF      VXM                                   #  16 - MATRIX PRE-MULTIPLIED BY VECTOR.
043215,000309:    6313           17616                           TCF      TSLC                                  #  17 - NORMALIZE MPAC (SCALAR ONLY).
043216,000310: 
043217,000311:    6314           17574                           TCF      DMPR                                  #  20 - DP MULTIPLY AND ROUND.
043218,000312:    6315           17577                           TCF      DDV                                   #  21 - DP DIVIDE BY.
043219,000313:    6316           17603                           TCF      BDDV                                  #  22 - DP DIVIDE INTO.
043220,000314:    6317           17621                           TCF      GSHIFT                                #  23 - GENERAL SHIFT INSTRUCTION.
043221,000315:    6320           16751                           TCF      VAD                                   #  24 - VECTOR ADD.
043222,000316:    6321           16747                           TCF      VSU                                   #  25 - VECTOR SUBTRACT.
043223,000317:    6322           17036                           TCF      BVSU                                  #  26 - VECTOR SUBTRACT FROM.
043224,000318:    6323           17331                           TCF      DOT                                   #  27 - VECTOR DOT PRODUCT.
043225,000319: 
043226,000320:    6324           17460                           TCF      VXV                                   #  30 - VECTOR CROSS PRODUCT.
043227,000321:    6325           17425                           TCF      VPROJ                                 #  31 - VECTOR PROJECTION.
043228,000322:    6326           17005                           TCF      DSU                                   #  32 - DP SUBTRACT.
043229,000323:    6327           17062                           TCF      BDSU                                  #  33 - DP SUBTRACT FROM.
043230,000324:    6330           16775                           TCF      DAD                                   #  34 - DP ADD.
043231,000325:    6331           16331                           TCF      +0                                    #  35 - AVAILABLE
043232,000326:    6332           17572                           TCF      DMP1                                  #  36 - DP MULTIPLY.
043233,000327:    6333           17613                           TCF      SETPD                                 #  37 - SET PUSH DOWN POINTER (DIRECT ONLY)
043234,000328: 
043235,000329:                                                                                                  #  CODES 10 AND 14 MUST NOT PUSH UP. CODE 04 MAY BE USED FOR VECTOR DECLARE BEFORE PUSHUP IF DESIRED.
043236,000330: 

Page 1012

043238,000332:                                                                                                  #  THE FOLLOWING JUMP TABLE APPLIES TO INDEX, BRANCH, AND MISCELLANEOUS INSTRUCTIONS.
043239,000333: 
043240,000334:    6334           12344        MISCJUMP           TCF      AXT                                   #  00 - ADDRESS TO INDEX TRUE.
043241,000335:    6335           12351                           TCF      AXC                                   #  01 - ADDRESS TO INDEX COMPLEMENTED.
043242,000336:    6336           12354                           TCF      LXA                                   #  02 - LOAD INDEX FROM ERASABLE.
043243,000337:    6337           12360                           TCF      LXC                                   #  03 - LOAD INDEX FROM COMPLEMENT OF ERAS.
043244,000338:    6340           12364                           TCF      SXA                                   #  04 - STORE INDEX IN ERASABLE.
043245,000339:    6341           12372                           TCF      XCHX                                  #  05 - EXCHANGE INDEX WITH ERASABLE.
043246,000340:    6342           12406                           TCF      INCR                                  #  06 - INCREMENT INDEX REGISTER.
043247,000341:    6343           12415                           TCF      TIX                                   #  07 - TRANSFER ON INDEX.
043248,000342: 
043249,000343:    6344           12400                           TCF      XAD                                   #  10 - INDEX REGISTER ADD FROM ERASABLE.
043250,000344:    6345           12411                           TCF      XSU                                   #  11 - INDEX SUBTRACT FROM ERASABLE.
043251,000345:    6346           12467                           TCF      BZE/GOTO                              #  12 - BRANCH ZERO AND GOTO.
043252,000346:    6347           12474                           TCF      BPL/BMN                               #  13 - BRANCH PLUS AND BRANCH MINUS.
043253,000347:    6350           12447                           TCF      RTB/BHIZ                              #  14 - RETURN TO BASIC AND BRANCH HI ZERO.
043254,000348:    6351           12507                           TCF      CALL/ITA                              #  15 - CALL AND STORE QPRET.
043255,000349:    6352           12516                           TCF      SW/                                   #  16 - SWITCH INSTRUCTIONS AND AVAILABLE.
043256,000350:    6353           12457                           TCF      BOV(B)                                #  17 - BRANCH ON OVERFLOW TO BASIC OR INT.
043257,000351: 

Page 1013

043259,000353:                                                                                                  #  THE FOLLOWING JUMP TABLE APPIES TO UNARY INSTRUCTIONS.
043260,000354: 
043261,000355:    6354                                           COUNT*   $$/INTER                              
043262,000356: 00,2000                                           BANK     0                                     #  00 - EXIT - DETECTED EARLIER.
043263,000357: 00,2000           13207        UNAJUMP            TCF      SQRT                                  #  01 - SQUARE ROOT.
043264,000358: 00,2001           13530                           TCF      SINE                                  #  02 - SIN.
043265,000359: 00,2002           13517                           TCF      COSINE                                #  03 - COS.
043266,000360: 00,2003           13610                           TCF      ARCSIN                                #  04 - ARC SIN.
043267,000361: 00,2004           13612                           TCF      ARCCOS                                #  05 - ARC COS.
043268,000362: 00,2005           13174                           TCF      DSQ                                   #  06 - DP SQUARE.
043269,000363: 00,2006           12116                           TCF      ROUND                                 #  07 - ROUND TO DP.
043270,000364: 
043271,000365: 00,2007           17670                           TCF      COMP                                  #  10 - COMPLEMENT VECTOR OR SCALAR.
043272,000366: 00,2010           13232                           TCF      VDEF                                  #  11 - VECTOR DEFINE.
043273,000367: 00,2011           13023                           TCF      UNIT                                  #  12 - UNIT VECTOR.
043274,000368: 00,2012           13176                           TCF      ABVALABS                              #  13 - LENGTH OF VECTOR OR MAG OF SCALAR.
043275,000369: 00,2013           13245                           TCF      VSQ                                   #  14 - SQUARE OF LENGTH OF VECTOR.
043276,000370: 00,2014           16354                           TCF      STADR                                 #  15 - PUSH UP ON STORE CODE.
043277,000371: 00,2015           13274                           TCF      RVQ                                   #  16 - RETURN VIA QPRET.
043278,000372: 00,2016           13247                           TCF      PUSH                                  #  17 - PUSH MPAC DOWN.
043279,000373: 

Page 1014

043281,000375:                                                                                                  #  SECTION 2     LOAD AND STORE PACKAGE.
043282,000376: 
043283,000377:                                                                                                  #  A SET OF EIGHT STORE CODES IS PROVIDED AS THE PRIMARY METHOD OF STORING THE MULTI-PURPOSE
043284,000378:                                                                                                  #  ACCUMULATOR (MPAC).  IF IN THE DANZIG SECTION LOC REFERS TO AN ALGEBRAICALLY POSITIVE WORD, IT IS TAKEN AS A 
043285,000379:                                                                                                  #  STORE CODE WITH A CORRESPONDING ERASABLE ADDRESS.  MOST OF THESE CODES ARE TWO ADDRESS, SPECIFYING THAT THE WORD
043286,000380:                                                                                                  #  FOLLOWING THE STORE CODE IS TO BE USED AS AN ADDRESS FROM WHICH TO RE-LOAD MPAC.  FOUR OPTIONS ARE AVAILABLE:
043287,000381: 
043288,000382:                                                                                                  #        1. STORE        STORE MPAC.  THE E ADDRESS MAY BE INDEXED.
043289,000383:                                                                                                  #        2. STODL        STORE MPAC AND RE-LOAD IT IN DP WITH THE NEXT ADDRESS (THE LOAD MAY BE INDEXED).
043290,000384:                                                                                                  #        3. STOVL        STORE MPAC AND RE-LOAD A VECTOR (AS ABOVE).
043291,000385:                                                                                                  #        4. STCALL       STORE AND DO A CALL (BOTH ADDRESSES MUST BE DIRECT HERE).
043292,000386: 
043293,000387:                                                                                                  #  STODL AND STOVL WILL TAKE FROM THE PUSH-DOWN LIST IF NO LOAD ADDRESS IS GIVEN.
043294,000388: 
043295,000389:    6354                                           BLOCK    3                                     
043296,000390: 
043297,000391:    6354                                           COUNT*   $$/INTER                              
043298,000392:    6354           30165        STADR              CA       BANKSET                               #  THE STADR CODE (PUSHUP UP ON STORE
043299,000393:    6355           54004                           TS       FBANK                                 #  ADDRESS) ENTERS HERE.
043300,000394:    6356           24164                           INCR     LOC                                   
043301,000395:    6357           50164        ITR1               INDEX    LOC                                   #  THE STORECODE WAS STORED COMPLEMENTED TO
043302,000396:    6360           40000                           CS       0                                     #  MAKE IT LOOK LIKE AN OPCODE PAIR.
043303,000397:    6361           67747                           AD       NEGONE                                #  (YUL CANT REMOVE 1 BECAUSE OF EARLY CCS)
043304,000398: 
043305,000399:    6362           54116        DOSTORE            TS       ADDRWD                                
043306,000400:    6363           74356                           MASK     LOW11                                 #  ENTRY FROM DISPATCHER.  SAVE THE ERASABLE
043307,000401:    6364           56116                           XCH      ADDRWD                                #  ADDRESS AND JUMP ON THE STORE CODE NO.
043308,000402:    6365           77722                           MASK     B12T14                                
043309,000403:    6366           00006                           EXTEND                                         
043310,000404:    6367           74747                           MP       BIT5                                  #  EACH TRANSFER VECTOR ENTRY IS TWO WORDS.
043311,000405:    6370           50000                           INDEX    A                                     
043312,000406:    6371           16372                           TCF      STORJUMP                              
043313,000407: 

Page 1015

043315,000409:                                                                                                  #  STORE CODE JUMP TABLE.  CALLS THE APPROPRIATE STORING ROUTINE AND EXITS TO DANZIG OR TO ADDRESS WITH
043316,000410:                                                                                                  #  A SUPPLIED OPERATION CODE.
043317,000411: 
043318,000412:                                                                                                  #  STORE STORE,1 AND STORE,2 RETURN TO DANZIG, THUS RESETTING THE EBANK TO ITS STATE AT INTPRET.
043319,000413: 
043320,000414:    6372           06422        STORJUMP           TC       STORE                                 #  STORE.
043321,000415:    6373           16061                           TCF      DANZIG                                #  PICK UP NEW OP CODE(S).
043322,000416:    6374           06414                           TC       STORE,1                               
043323,000417:    6375           16061                           TCF      DANZIG                                
043324,000418:    6376           06417                           TC       STORE,2                               
043325,000419:    6377           16061                           TCF      DANZIG                                
043326,000420: 
043327,000421:    6400           06422                           TC       STORE                                 #  STODL.
043328,000422:    6401           16460                           TCF      DODLOAD                               
043329,000423: 
043330,000424:    6402           06422                           TC       STORE                                 #  STODL WITH INDEXED LOAD ADDRESS.
043331,000425:    6403           16144                           TCF      DODLOAD*                              
043332,000426: 
043333,000427:    6404           06422                           TC       STORE                                 #  STOVL.
043334,000428:    6405           16463                           TCF      DOVLOAD                               
043335,000429: 
043336,000430:    6406           06422                           TC       STORE                                 #  STOVL WITH INDEXED LOAD ADDRESS.
043337,000431:    6407           16466                           TCF      DOVLOAD*                              
043338,000432:    6410           06422                           TC       STORE                                 #  STOTC.
043339,000433:    6411           34766                           CAF      CALLCODE                              
043340,000434:    6412           54020                           TS       CYR                                   
043341,000435:    6413           16252                           TCF      15BITADR                              #  GET A 15 BIT ADDRESS.
043342,000436: 

Page 1016

043344,000438:                                                                                                  #  STORE CODE ADDRESS PROCESSOR.
043345,000439: 
043346,000440:    6414           50120        STORE,1            INDEX    FIXLOC                                
043347,000441:    6415           40046                           CS       X1                                    
043348,000442:    6416           16421                           TCF      PRESTORE                              
043349,000443: 
043350,000444:    6417           50120        STORE,2            INDEX    FIXLOC                                
043351,000445:    6420           40047                           CS       X2                                    
043352,000446:    6421           26116        PRESTORE           ADS      ADDRWD                                #  RESULTANT ADDRESS IS IN ERASABLE.
043353,000447: 
043354,000448:    6422           40116        STORE              CS       ADDRWD                                
043355,000449:    6423           64772                           AD       DEC45                                 
043356,000450:    6424           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
043357,000451:    6425           30120                           CA       FIXLOC                                #  YES.
043358,000452:    6426           16433                           TCF      AHEAD5                                
043359,000453:    6427           35007                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
043360,000454:    6430           56116                           XCH      ADDRWD                                
043361,000455:    6431           54003                           TS       EBANK                                 
043362,000456:    6432           74357                           MASK     LOW8                                  
043363,000457:    6433           26116        AHEAD5             ADS      ADDRWD                                
043364,000458: 

Page 1017

043366,000460:                                                                                                  #  STORING ROUTINES.  STORE DP, TP, OR VECTOR AS INDICATED BY MODE.
043367,000461: 
043368,000462:    6434           00006        STARTSTO           EXTEND                                         #  MPAC,+1 MUST BE STORED IN ANY EVENT.
043369,000463:                                                                                                  #  ITRACE (5) REFERS TO "STARTSTO".
043370,000464:    6435           30155                           DCA      MPAC                                  
043371,000465:    6436           50116                           INDEX    ADDRWD                                
043372,000466:    6437           52001                           DXCH     0                                     
043373,000467: 
043374,000468:    6440           10163                           CCS      MODE                                  
043375,000469:    6441           16454                           TCF      TSTORE                                
043376,000470:    6442           00002                           TC       Q                                     
043377,000471: 
043378,000472:    6443           00006        VSTORE             EXTEND                                         
043379,000473:    6444           30160                           DCA      MPAC       +3                         
043380,000474:    6445           50116                           INDEX    ADDRWD                                
043381,000475:    6446           52003                           DXCH     2                                     
043382,000476: 
043383,000477:    6447           00006                           EXTEND                                         
043384,000478:    6450           30162                           DCA      MPAC       +5                         
043385,000479:    6451           50116                           INDEX    ADDRWD                                
043386,000480:    6452           52005                           DXCH     4                                     
043387,000481:    6453           00002                           TC       Q                                     
043388,000482: 
043389,000483:    6454           30156        TSTORE             CA       MPAC       +2                         
043390,000484:    6455           50116                           INDEX    ADDRWD                                
043391,000485:    6456           54002                           TS       2                                     
043392,000486:    6457           00002                           TC       Q                                     
043393,000487: 

Page 1018

043395,000489:                                                                                                  #  ROUTINES TO BEGIN PROCESSING OF THE SECOND ADDRESS ASSOCIATED WITH ALL STORE-TYPE CODES EXCEPT STORE
043396,000490:                                                                                                  #  ITSELF.
043397,000491: 
043398,000492:    6460           37732        DODLOAD            CAF      DLOADCOD                              
043399,000493:    6461           54020                           TS       CYR                                   
043400,000494:    6462           16106                           TCF      DIRADRES                              #  GO GET A DIRECT ADDRESS.
043401,000495: 
043402,000496:    6463           34735        DOVLOAD            CAF      VLOADCOD                              
043403,000497:    6464           54020                           TS       CYR                                   
043404,000498:    6465           16106                           TCF      DIRADRES                              
043405,000499: 
043406,000500:    6466           36107        DOVLOAD*           CAF      VLOAD*                                
043407,000501:    6467           16145                           TCF      DODLOAD*   +1                         #  PROLOGUE TO INDEX ROUTINE.
043408,000502: 

Page 1019

043410,000504:                                                                                                  #  THE FOLLOWING LOAD INSTRUCTIONS ARE PROVIDED FOR LOADING THE MULTI-PURPOSE ACCUMULATOR MPAC.
043411,000505: 
043412,000506:    6470           50116        TLOAD              INDEX    ADDRWD                                
043413,000507:    6471           30002                           CA       2                                     #  LOAD A TRIPLE PRECISION ARGUMENT INTO
043414,000508:    6472           54156                           TS       MPAC       +2                         #  THE FIRST THREE MPAC REGISTERS, WITH THE
043415,000509:    6473           00006                           EXTEND                                         #  CONTENTS OF THE OTHER FOUR IRRELEVANT.
043416,000510:    6474           50116                           INDEX    ADDRWD                                
043417,000511:    6475           30001                           DCA      0                                     
043418,000512:    6476           52155                           DXCH     MPAC                                  
043419,000513:    6477           34753        TMODE              CAF      ONE                                   
043420,000514:    6500           16060                           TCF      NEWMODE                               #  DECLARE TRIPLE PRECISION MODE.
043421,000515: 
043422,000516:    6501           22007        SLOAD              ZL                                             #  LOAD A SINGLE PRECISION NUMBER INTO
043423,000517:    6502           50116                           INDEX    ADDRWD                                #  MPAC, SETTING MPAC+1,2 TO ZERO.  THE
043424,000518:    6503           30000                           CA       0                                     #  CONTENTS OF THE REMAINING MPAC REGISTERS
043425,000519:    6504           16055                           TCF      SLOAD2                                #  ARE IRRELEVANT.
043426,000520: 
043427,000521:    6505           00006        VLOAD              EXTEND                                         #  LOAD A DOUBLE PRECISION VECTOR INTO
043428,000522:    6506           50116                           INDEX    ADDRWD                                #  MPAC,+1, MPAC+3,4, AND MPAC+5,6.  THE
043429,000523:    6507           30001                           DCA      0                                     #  CONTENTS OF MPAC +2 ARE IRRELEVANT.
043430,000524:    6510           52155                           DXCH     MPAC                                  
043431,000525: 
043432,000526:    6511           00006        ENDVLOAD           EXTEND                                         #  PDVL COMES HERE TO FINISH UP FOR DP, TP.
043433,000527:    6512           50116                           INDEX    ADDRWD                                
043434,000528:    6513           30003                           DCA      2                                     
043435,000529:    6514           52160                           DXCH     MPAC       +3                         
043436,000530: 
043437,000531:    6515           00006                 +4        EXTEND                                         #  TPDVL FINISHES HERE.
043438,000532:    6516           50116                           INDEX    ADDRWD                                
043439,000533:    6517           30005                           DCA      4                                     
043440,000534:    6520           52162                           DXCH     MPAC       +5                         
043441,000535: 
043442,000536:    6521           44753        VMODE              CS       ONE                                   #  DECLARE VECTOR MODE.
043443,000537:    6522           16060                           TCF      NEWMODE                               
043444,000538: 

Page 1020

043446,000540:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE PROVIDED FOR STORING OPERANDS IN THE PUSHDOWN LIST:
043447,000541:                                                                                                  #        1.      PUSH            PUSHDOWN AND NO LOAD.
043448,000542:                                                                                                  #        2.      PDDL            PUSHDOWN AND DOUBLE PRECISION LOAD.
043449,000543:                                                                                                  #        3.      PDVL            PUSHDOWN AND VECTOR LOAD.
043450,000544: 
043451,000545:    6523           00006        PDDL               EXTEND                                         
043452,000546:    6524           50116                           INDEX    ADDRWD                                #  LOAD MPAC,+1, PUSHING THE FORMER
043453,000547:    6525           30001                           DCA      0                                     #  CONTENTS DOWN.
043454,000548:    6526           52155                           DXCH     MPAC                                  
043455,000549:    6527           50166                           INDEX    PUSHLOC                               
043456,000550:    6530           52001                           DXCH     0                                     
043457,000551: 
043458,000552:    6531           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER APPRO-
043459,000553:    6532           36244                           CAF      NO.WDS                                #  PRIATELY.
043460,000554:    6533           26166                           ADS      PUSHLOC                               
043461,000555: 
043462,000556:    6534           10163                           CCS      MODE                                  
043463,000557:    6535           16552                           TCF      ENDTPUSH                              
043464,000558:    6536           16550                           TCF      ENDDPUSH                              
043465,000559: 
043466,000560:    6537           54163                           TS       MODE                                  #  NOW DP.
043467,000561:    6540           54156        ENDVPUSH           TS       MPAC       +2                         
043468,000562:    6541           52160                           DXCH     MPAC       +3                         #  PUSH DOWN THE REST OF THE VECTOR HERE.
043469,000563:    6542           50166                           INDEX    PUSHLOC                               
043470,000564:    6543           51775                           DXCH     0          -4                         
043471,000565: 
043472,000566:    6544           52162                           DXCH     MPAC       +5                         
043473,000567:    6545           50166                           INDEX    PUSHLOC                               
043474,000568:    6546           51777                           DXCH     0          -2                         
043475,000569: 
043476,000570:    6547           16061                           TCF      DANZIG                                
043477,000571: 
043478,000572:    6550           54156        ENDDPUSH           TS       MPAC       +2                         #  SET MPAC +2 TO ZERO AND EXIT ON DP.
043479,000573:    6551           16061                           TCF      DANZIG                                
043480,000574: 
043481,000575:    6552           54163        ENDTPUSH           TS       MODE                                  
043482,000576:    6553           56156                           XCH      MPAC       +2                         #  ON TRIPLE, SET MPAC +2 TO ZERO, PUSHING
043483,000577:    6554           50166                 +2        INDEX    PUSHLOC                               #  DOWN THE OLD CONTENTS
043484,000578:    6555           53777                           TS       0          -1                         
043485,000579:    6556           16061                           TCF      DANZIG                                
043486,000580: 

Page 1021

043488,000582:                                                                                                  #  PDVL - PUSHDOWN AND VECTOR LOAD.
043489,000583: 
043490,000584:    6557           00006        PDVL               EXTEND                                         #  RELOAD MPAC AND PUSH DOWN ITS CONTENTS.
043491,000585:    6560           50116                           INDEX    ADDRWD                                
043492,000586:    6561           30001                           DCA      0                                     
043493,000587:    6562           52155                           DXCH     MPAC                                  
043494,000588:    6563           50166                           INDEX    PUSHLOC                               
043495,000589:    6564           52001                           DXCH     0                                     
043496,000590: 
043497,000591:    6565           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER.
043498,000592:    6566           36244                           CAF      NO.WDS                                
043499,000593:    6567           26166                           ADS      PUSHLOC                               
043500,000594: 
043501,000595:    6570           10163                           CCS      MODE                                  #  TEST PAST MODE.
043502,000596:    6571           16610                           TCF      TPDVL                                 
043503,000597:    6572           16511                           TCF      ENDVLOAD                              #  JUST LOAD LAST FOUR REGISTERS ON DP.
043504,000598: 
043505,000599:    6573           00006        VPDVL              EXTEND                                         #  PUSHDOWN AND RE-LOAD LAST TWO COMPONENTS
043506,000600:    6574           50116                           INDEX    ADDRWD                                
043507,000601:    6575           30003                           DCA      2                                     
043508,000602:    6576           52160                           DXCH     MPAC       +3                         
043509,000603:    6577           50166                           INDEX    PUSHLOC                               
043510,000604:    6600           51775                           DXCH     0          -4                         
043511,000605: 
043512,000606:    6601           00006                           EXTEND                                         
043513,000607:    6602           50116                           INDEX    ADDRWD                                
043514,000608:    6603           30005                           DCA      4                                     
043515,000609:    6604           52162                           DXCH     MPAC       +5                         
043516,000610:    6605           50166                           INDEX    PUSHLOC                               
043517,000611:    6606           51777                           DXCH     0          -2                         
043518,000612: 
043519,000613:    6607           16061                           TCF      DANZIG                                
043520,000614: 
043521,000615:    6610           00006        TPDVL              EXTEND                                         #  ON TP, WE MUST LOAD THE Y COMPONENT
043522,000616:    6611           50116                           INDEX    ADDRWD                                #  BEFORE STORING MPAC +2 IN CASE THIS IS A
043523,000617:    6612           30003                           DCA      2                                     #  PUSHUP.
043524,000618:    6613           52160                           DXCH     MPAC       +3                         
043525,000619: 
043526,000620:    6614           30156                           CA       MPAC       +2                         
043527,000621:    6615           50166                           INDEX    PUSHLOC                               #  IN DP.
043528,000622:    6616           53777                           TS       0          -1                         
043529,000623:    6617           16515                           TCF      ENDVLOAD   +4                         
043530,000624: 
043531,000625:                                                                                                  #  SSP (STORE SINGLE PRECISION) IS EXECUTED HERE.
043532,000626: 
043533,000627:    6620           24164        SSP                INCR     LOC                                   #  PICK UP THE WORD FOLLOWING THE GIVEN
043534,000628:    6621           50164                           INDEX    LOC                                   #  ADDRESS AND STORE IT AT X.
043535,000629:    6622           30000                           CA       0                                     
043536,000630:    6623           50116        STORE1             INDEX    ADDRWD                                #  SOME INDEX AND MISCELLANEOUS OPS END
043537,000631:    6624           54000                           TS       0                                     #  HERE.

Page 1022

043539,000633:    6625           16061                           TCF      DANZIG                                
043540,000634: 

Page 1023

043542,000636:                                                                                                  #  SEQUENCE CHANGING AND SUBROUTINE CALLING OPTIONS.
043543,000637: 
043544,000638:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR SEQUENCING CHANGING, BRANCHING, AND CALLING SUBROUTINES:
043545,000639:                                                                                                  #        1.      GOTO            GO TO.
043546,000640:                                                                                                  #        2.      CALL            CALL SUBROUTINE SETTING QPRET.
043547,000641:                                                                                                  #        3.      CGOTO           COMPUTED GO TO.
043548,000642:                                                                                                  #        4.      CCALL           COMPUTED CALL.
043549,000643:                                                                                                  #        7.      BPL             BRANCH IF MPAC POSITIVE OR ZERO.
043550,000644:                                                                                                  #        8.      BZE             BRANCH IF MPAC ZERO.
043551,000645:                                                                                                  #        9.      BMN             BRANCH IF MPAC NEGATIVE NON-ZERO.
043552,000646: 
043553,000647:    6626           24164        CCALL              INCR     LOC                                   #  MAINTAIN LOC FOR QPRET COMPUTATION.
043554,000648:    6627           50164                           INDEX    LOC                                   
043555,000649:    6630           30000                           CAF      0                                     #  GET BASE ADDRESS OF CADR LIST.
043556,000650:    6631           50116                           INDEX    ADDRWD                                
043557,000651:    6632           60000                           AD       0                                     #  ADD INCREMENT.
043558,000652:    6633           54004                           TS       FBANK                                 #  SELECT DESIRED CADR.
043559,000653:    6634           75012                           MASK     LOW10                                 
043560,000654:    6635           50000                           INDEX    A                                     
043561,000655:    6636           32000                           CAF      10000                                 
043562,000656:    6637           54117                           TS       POLISH                                
043563,000657: 
043564,000658:    6640           30165        CALL               CA       BANKSET                               #  FOR ANY OF THE CALL OPTIONS, MAKE UP THE
043565,000659:    6641           74350                           MASK     BANKMASK                              #  ADDRESS OF THE NEXT OP-CODE PAIR/STORE
043566,000660:    6642           64350                           AD       BANKMASK                              #  CODE AND LEAVE IT IN QPRET.  NOTE THAT
043567,000661:    6643           60164                           AD       LOC                                   #  BANKMASK = -(2000 - 1).
043568,000662:    6644           50120                           INDEX    FIXLOC                                
043569,000663:    6645           54052                           TS       QPRET                                 
043570,000664: 
043571,000665:    6646           30117        GOTO               CA       POLISH                                #  BASIC BRANCHING SEQUENCE.
043572,000666:    6647           77742                 +1        MASK     HIGH4                                 
043573,000667:    6650           00006                           EXTEND                                         
043574,000668:    6651           16662                           BZF      GOTOERS                               #  SEE IF ADDRESS POINTS TO FIXED OR ERAS.
043575,000669:    6652           30165                 +4        CA       BANKSET                               #  SET EBANK PART OF BBANK.  NEXT, SET UP
043576,000670:    6653           54006                           TS       BBANK                                 #  FBANK.  THE COMBINATION IS PICKED UP &
043577,000671:    6654           30117                           CA       POLISH                                #  PUT INTO BANKSET AT INTPRET +2.
043578,000672:    6655           54004                           TS       FBANK                                 
043579,000673:    6656           75012                           MASK     LOW10                                 
043580,000674:    6657           64741                           AD       2K                                    
043581,000675:    6660           54164                           TS       LOC                                   
043582,000676:    6661           16042                           TCF      INTPRET    +3                         
043583,000677: 
043584,000678:    6662  E3,1400                                  EBANK=   1400                                  #  SO YUL DOESN'T CUSS THE "CA 1400" BELOW.
043585,000679: 
043586,000680:    6662           30117        GOTOERS            CA       POLISH                                #  THE GIVEN ADDRESS IS IN ERASABLE - SEE
043587,000681:    6663           66251                           AD       -ENDVAC                               #  IF RELATIVE TO THE WORK AREA.
043588,000682:    6664           10000                           CCS      A                                     
043589,000683:    6665           30117                           CA       POLISH                                #  GENERAL ERASABLE.
043590,000684:    6666           16675                           TCF      GOTOGE                                
043591,000685: 

Page 1024

043593,000687:    6667           30120                           CA       FIXLOC                                #  WORK AREA.
043594,000688:    6670           60117                           AD       POLISH                                
043595,000689:    6671           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
043596,000690:    6672           30000                           CA       0                                     #  THE BRANCH ADDRESS.
043597,000691:    6673           54117                           TS       POLISH                                
043598,000692:    6674           16647                           TCF      GOTO       +1                         #  ALLOWS ARBITRARY INDIRECTNESS LEVELS.
043599,000693: 
043600,000694:    6675           54003        GOTOGE             TS       EBANK                                 
043601,000695:    6676           74357                           MASK     LOW8                                  
043602,000696:    6677           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
043603,000697:    6700           31400                           CA       1400                                  #  THE BRANCH ADDRESS.
043604,000698:    6701           54117                           TS       POLISH                                
043605,000699:    6702           16647                           TCF      GOTO       +1                         
043606,000700: 
043607,000701:    6703           50164        CGOTO              INDEX    LOC                                   #  COMPUTED GO TO.  PICK UP ADDRESS OF CADR
043608,000702:    6704           30001                           CA       1                                     #  LIST.
043609,000703:    6705           50116                           INDEX    ADDRWD                                #  ADD MODIFIER.
043610,000704:    6706           60000                           AD       0                                     
043611,000705:    6707           54004                           TS       FBANK                                 #  SELECT GOTO ADDRESS.
043612,000706:    6710           75012                           MASK     LOW10                                 
043613,000707:    6711           50000                           INDEX    A                                     
043614,000708:    6712           32000                           CA       10000                                 
043615,000709:    6713           54117                           TS       POLISH                                
043616,000710:    6714           16647                           TCF      GOTO       +1                         #  WITH ADDRESS IN A.
043617,000711: 
043618,000712:    6715           30165        SWBRANCH           CA       BANKSET                               #  SWITCH INSTRUCTIONS WHICH ELECT TO
043619,000713:    6716           54004                           TS       FBANK                                 #  BRANCH COME HERE TO DO SO.
043620,000714:    6717           50164                           INDEX    LOC                                   
043621,000715:    6720           30001                           CA       1                                     
043622,000716:    6721           54117                           TS       POLISH                                
043623,000717:    6722           16647                           TCF      GOTO       +1                         
043624,000718: 

Page 1025

043626,000720:                                                                                                  #  TRIPLE PRECISION BRANCHING ROUTINE.  IF CALLING TC IS AT L, RETURN IS AS FOLLOWS:
043627,000721:                                                                                                  #        L+1     IF MPAC IS GREATER THAN ZERO.
043628,000722:                                                                                                  #        L+2     IF MPAC IS EQUAL TO +0 OR -0.
043629,000723:                                                                                                  #        L+3     IF MPAC IS LESS THAN ZERO.
043630,000724: 
043631,000725:    6723           10154        BRANCH             CCS      MPAC                                  
043632,000726:    6724           00002                           TC       Q                                     
043633,000727:    6725           16727                           TCF      +2                                    #  ON ZERO.
043634,000728:    6726           16741                           TCF      NEG                                   
043635,000729: 
043636,000730:    6727           10155                           CCS      MPAC       +1                         
043637,000731:    6730           00002                           TC       Q                                     
043638,000732:    6731           16733                           TCF      +2                                    
043639,000733:    6732           16741                           TCF      NEG                                   
043640,000734: 
043641,000735:    6733           10156                           CCS      MPAC       +2                         
043642,000736:    6734           00002                           TC       Q                                     
043643,000737:    6735           16737                           TCF      +2                                    
043644,000738:    6736           16741                           TCF      NEG                                   
043645,000739: 
043646,000740:    6737           50002        Q+1                INDEX    Q                                     
043647,000741:    6740           00001                           TC       1                                     
043648,000742: 
043649,000743:    6741           50002        NEG                INDEX    Q                                     #  IF FIRST NON-ZERO REGISTER WAS NEGATIVE.
043650,000744:    6742           00002                           TC       2                                     
043651,000745: 
043652,000746:    6743     6741               Q+2                =        NEG                                   
043653,000747: 
043654,000748:                                                                                                  #  ITRACE (3) REFERS TO "EXIT".
043655,000749: 
043656,000750:    6743           30165        EXIT               CA       BANKSET                               #  RESTORE USER'S BANK SETTING, AND LEAVE
043657,000751:    6744           54006                           TS       BBANK                                 #  INTERPRETIVE MODE.
043658,000752:    6745           50164                           INDEX    LOC                                   
043659,000753:    6746           00001                           TC       1                                     
043660,000754: 

Page 1026

043662,000756:                                                                                                  #  SECTION 3 - ADD/SUBTRACT PACKAGE.
043663,000757: 
043664,000758:                                                                                                  #           THE FOLLOWING OPERATIONS ARE PROVIDED FOR ADDING TO AND SUBTRACTING FROM THE MULTI-PURPOSE ACCUMULATOR
043665,000759:                                                                                                  #  MPAC:
043666,000760: 
043667,000761:                                                                                                  #        1.      DAD     DOUBLE PRECISION ADD.
043668,000762:                                                                                                  #        2.      DSU     DOUBLE PRECISION SUBTRACT.
043669,000763:                                                                                                  #        3.      BDSU    DOUBLE PRECISION SUBTRACT FROM.
043670,000764:                                                                                                  #        4.      TAD     TRIPLE PRECISION ADD.
043671,000765:                                                                                                  #        5.      VAD     VECTOR ADD.
043672,000766:                                                                                                  #        6.      VSU     VECTOR SUBTRACT.
043673,000767:                                                                                                  #        7.      BVSU    VECTOR SUBTRACT FROM.
043674,000768:                                                                                                  #  THE INTERPRETIVE OVERFLOW INDICATOR OVFIND IS SET NON-ZERO IF OVERFLOW OCCURS IN ANY OF THE ABOVE.
043675,000769: 
043676,000770:    6747           34735        VSU                CAF      BIT15                                 #  CHANGES 0 TO DCS.
043677,000771:    6750           16752                           TCF      +2                                    
043678,000772: 
043679,000773:    6751           34355        VAD                CAF      PRIO30                                #  CHANGES 0 TO DCA.
043680,000774:    6752           26116                           ADS      ADDRWD                                
043681,000775:    6753           00006                           EXTEND                                         
043682,000776:    6754           50116                           INDEX    ADDRWD                                
043683,000777:    6755           00003                           READ     HISCALAR                              #  DCA 2 OR DCS 2
043684,000778:    6756           20160                           DAS      MPAC       +3                         
043685,000779:    6757           00006                           EXTEND                                         #  CHECK OVERFLOW.
043686,000780:    6760           16762                           BZF      +2                                    
043687,000781:    6761           07014                           TC       OVERFLWY                              
043688,000782: 
043689,000783:    6762           00006                           EXTEND                                         
043690,000784:    6763           50116                           INDEX    ADDRWD                                
043691,000785:    6764           00005                           READ     CHAN5                                 #  DCA 4 OR DCS 4
043692,000786:    6765           20162                           DAS      MPAC       +5                         
043693,000787:    6766           00006                           EXTEND                                         
043694,000788:    6767           16771                           BZF      +2                                    
043695,000789:    6770           07011                           TC       OVERFLWZ                              
043696,000790: 
043697,000791:    6771           00006                           EXTEND                                         
043698,000792:    6772           50116                           INDEX    ADDRWD                                
043699,000793:    6773           00001                           READ     LCHAN                                 #  DCA 0 OR DCS 0
043700,000794:    6774           17000                           TCF      ENDVXV                                
043701,000795: 
043702,000796:    6775           00006        DAD                EXTEND                                         
043703,000797:    6776           50116                           INDEX    ADDRWD                                
043704,000798:    6777           30001                           DCA      0                                     
043705,000799:    7000           20155        ENDVXV             DAS      MPAC                                  #  VXV FINISHES HERE.
043706,000800:    7001           00006                           EXTEND                                         
043707,000801:    7002           16061                           BZF      DANZIG                                
043708,000802: 

Page 1027

043710,000804:    7003           07017        SETOVF             TC       OVERFLOW                              
043711,000805:    7004           16061                           TCF      DANZIG                                
043712,000806: 

Page 1028

043714,000808:    7005           00006        DSU                EXTEND                                         
043715,000809:    7006           50116                           INDEX    ADDRWD                                
043716,000810:    7007           40001                           DCS      0                                     
043717,000811:    7010           17000                           TCF      ENDVXV                                
043718,000812: 
043719,000813:    7011           54001        OVERFLWZ           TS       L                                     #  ENTRY FOR THIRD COMPONENT.
043720,000814:    7012           34756                           CAF      FIVE                                  
043721,000815:    7013           17016                           TCF      +3                                    
043722,000816: 
043723,000817:    7014           54001        OVERFLWY           TS       L                                     #  ENTRY FOR SECOND COMPONENT.
043724,000818:    7015           36245                           CAF      THREE                                 
043725,000819:    7016           56001                           XCH      L                                     
043726,000820: 
043727,000821:    7017           50000        OVERFLOW           INDEX    A                                     #  ENTRY FOR 1ST COMP OR DP (L=0).
043728,000822:    7020           44734                           CS       LIMITS                                #  PICK UP POSMAX OR NEGMAX.
043729,000823:    7021           54130                           TS       BUF                                   
043730,000824:    7022           00006                           EXTEND                                         
043731,000825:    7023           24000                           AUG      A                                     #  FORCE OVERFLOW.
043732,000826:    7024           50001                           INDEX    L                                     
043733,000827:    7025           26155                           ADS      MPAC       +1                         
043734,000828:    7026           54007                           TS       7                                     
043735,000829:    7027           34755                           CAF      ZERO                                  
043736,000830:    7030           60130                           AD       BUF                                   
043737,000831:    7031           50001                           INDEX    L                                     
043738,000832:    7032           26154                           ADS      MPAC                                  
043739,000833:    7033           54007                           TS       7                                     
043740,000834:    7034           00002                           TC       Q                                     #  NO OVERFLOW EXIT.
043741,000835:    7035           17152                           TCF      SETOVF2                               #  SET OVFIND AND EXIT.
043742,000836: 
043743,000837:    7036           00006        BVSU               EXTEND                                         
043744,000838:    7037           50116                           INDEX    ADDRWD                                
043745,000839:    7040           30003                           DCA      2                                     
043746,000840:    7041           52160                           DXCH     MPAC       +3                         
043747,000841:    7042           00006                           EXTEND                                         
043748,000842:    7043           40001                           DCOM                                           
043749,000843:    7044           20160                           DAS      MPAC       +3                         
043750,000844:    7045           00006                           EXTEND                                         
043751,000845:    7046           17050                           BZF      +2                                    
043752,000846:    7047           07014                           TC       OVERFLWY                              
043753,000847: 
043754,000848:    7050           00006                           EXTEND                                         
043755,000849:    7051           50116                           INDEX    ADDRWD                                
043756,000850:    7052           30005                           DCA      4                                     
043757,000851:    7053           52162                           DXCH     MPAC       +5                         
043758,000852:    7054           00006                           EXTEND                                         
043759,000853:    7055           40001                           DCOM                                           
043760,000854:    7056           20162                           DAS      MPAC       +5                         
043761,000855:    7057           00006                           EXTEND                                         
043762,000856:    7060           17062                           BZF      +2                                    
043763,000857:    7061           07011                           TC       OVERFLWZ                              
043764,000858: 

Page 1029

043766,000860:    7062           00006        BDSU               EXTEND                                         
043767,000861:    7063           50116                           INDEX    ADDRWD                                
043768,000862:    7064           30001                           DCA      0                                     
043769,000863:    7065           52155                           DXCH     MPAC                                  
043770,000864:    7066           00006                           EXTEND                                         
043771,000865:    7067           40001                           DCOM                                           
043772,000866:    7070           17000                           TCF      ENDVXV                                
043773,000867: 

Page 1030

043775,000869:                                                                                                  #  TRIPLE PRECISION ADD ROUTINE.
043776,000870: 
043777,000871:    7071           00006        TAD                EXTEND                                         
043778,000872:    7072           50116                           INDEX    ADDRWD                                
043779,000873:    7073           30002                           DCA      1                                     #  ADD MINOR PARTS FIRST.
043780,000874:    7074           20156                           DAS      MPAC       +1                         
043781,000875:    7075           50116                           INDEX    ADDRWD                                
043782,000876:    7076           60000                           AD       0                                     
043783,000877:    7077           60154                           AD       MPAC                                  
043784,000878:    7100           54154                           TS       MPAC                                  
043785,000879:    7101           16061                           TCF      DANZIG                                
043786,000880: 
043787,000881:    7102           17003                           TCF      SETOVF                                #  SET OVFIND IF SUCH OCCURS.
043788,000882: 

Page 1031

043790,000884:                                                                                                  #  ARITHMETIC SUBROUTINES REQUIRED IN FIXED-FIXED.
043791,000885:                                                                                                  #        1.  DMPSUB      DOUBLE PRECISION MULTIPLY. MULTIPLY THE CONTENTS OF MPAC,+1 BY THE DP WORD WHOSE ADDRESS
043792,000886:                                                                                                  #                        IS IN ADDRWD AND LEAVE A TRIPLE PRECISION RESULT IN MPAC.
043793,000887:                                                                                                  #        2.  ROUNDSUB    ROUND THE TRIPLE PRECISON CONTENTS OF MPAC TO DOUBLE PRECISION.
043794,000888:                                                                                                  #        3.  DOTSUB      TAKE THE DOT PRODUCT OF THE VECTOR IN MPAC AND THE VECTOR WHOSE ADDRESS IS IN ADDRWD
043795,000889:                                                                                                  #                        AND LEAVE THE TRIPLE PRECISION RESULT IN MPAC.
043796,000890:                                                                                                  #        4.  POLY        USING THE CONTENTS OF MPAC AS A DP ARGUMENT, EVALUATE THE POLYNOMIAL WHOSE DEGREE AND
043797,000891:                                                                                                  #                        COEFFICIENTS IMMEDIATELY FOLLOW THE TC POLY INSTRUCTION (SEE ROUTINE FOR DETAILS.)
043798,000892: 
043799,000893:    7103           50002        DMP                INDEX    Q                                     #  BASIC SUBROUTINE FOR USE BY PINBALL, ETC
043800,000894:    7104           30000                           CAF      0                                     #  ADRES OF ARGUMENT FOLLOWS  TC DMP .
043801,000895:    7105           24002                           INCR     Q                                     
043802,000896:    7106           54116                 -1        TS       ADDRWD                                #  (PROLOGUE FOR SETTING ADDRWD.)
043803,000897: 
043804,000898:    7107           50116        DMPSUB             INDEX    ADDRWD                                #  GET MINOR PART OF OPERAND AT C(ADDRWD).
043805,000899:    7110           30001                           CA       1                                     
043806,000900:    7111           54156                           TS       MPAC       +2                         #  THIS WORKS FOR SQUARING MPAC AS WELL.
043807,000901:    7112           34755                           CAF      ZERO                                  #  SET MPAC +1 TO ZERO SO WE CAN ACCUMULATE
043808,000902:    7113           56155                           XCH      MPAC       +1                         #  THE PARTIAL PRODUCTS WITH DAS
043809,000903:    7114           54135                           TS       MPTEMP                                #  INSTRUCTIONS.
043810,000904:    7115           00006                           EXTEND                                         
043811,000905:    7116           70156                           MP       MPAC       +2                         #  MINOR OF MPAC X MINOR OF C(ADDRWD).
043812,000906: 
043813,000907:    7117           56156                           XCH      MPAC       +2                         #  DISCARD MINOR PART OF ABOVE RESULT AND
043814,000908:    7120           00006                           EXTEND                                         #  FORM MAJOR OF MPAC X MINOR OF C(ADDRWD).
043815,000909:    7121           70154                           MP       MPAC                                  
043816,000910:    7122           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
043817,000911: 
043818,000912:    7123           50116                           INDEX    ADDRWD                                #  GET MAJOR PART OF ARGUMENT AT C(ADDRWD).
043819,000913:    7124           30000                           CA       0                                     
043820,000914:    7125           56135                           XCH      MPTEMP                                #  SAVE AND BRING OUT MINOR OF MPAC.
043821,000915:    7126           00006        DMPSUB2            EXTEND                                         
043822,000916:    7127           70135                           MP       MPTEMP                                #  MAJOR OF C(ADDRWD) X MINOR OF MPAC.
043823,000917:    7130           20156                           DAS      MPAC       +1                         #  ACCUMULATE, SETTING A TO NET OVERFLOW.
043824,000918: 
043825,000919:    7131           56154                           XCH      MPAC                                  #  SETTING MPAC TO 0 OR +-1.
043826,000920:    7132           00006                           EXTEND                                         
043827,000921:    7133           70135                           MP       MPTEMP                                #  MAJOR OF MPAC X MAJOR OF C(ADDRWD).
043828,000922:    7134           20155                           DAS      MPAC                                  #  GUARANTEED NO OVERFLOW.
043829,000923:    7135           00002                           TC       Q                                     #  49 MCT = .573 MS. INCLUDING RETURN.
043830,000924: 

Page 1032

043832,000926:                                                                                                  #  ROUND MPAC TO DOUBLE PRECISION, SETTING OVFIND ON THE RARE EVENT OF OVERFLOW.
043833,000927: 
043834,000928:    7136           34755        ROUNDSUB           CAF      ZERO                                  #  SET MPAC +2 = 0 FOR SCALARS AND CHANGE
043835,000929:    7137           54163                 +1        TS       MODE                                  #  MODE TO DP.
043836,000930: 
043837,000931:    7140           56156        VROUND             XCH      MPAC       +2                         #  BUT WE NEEDNT TAKE THE TIME FOR VECTORS.
043838,000932:    7141           60000                           DOUBLE                                         
043839,000933:    7142           54001                           TS       L                                     
043840,000934:    7143           00002                           TC       Q                                     
043841,000935: 
043842,000936:    7144           60155                           AD       MPAC       +1                         #  ADD ROUNDING BIT IF MPAC +2 WAS GREATER
043843,000937:    7145           54155                           TS       MPAC       +1                         #  THAN .5 IN MAGNITUDE.
043844,000938:    7146           00002                           TC       Q                                     
043845,000939: 
043846,000940:    7147           60154                           AD       MPAC                                  #  PROPAGATE INTERFLOW.
043847,000941:    7150           54154                           TS       MPAC                                  
043848,000942:    7151           00002                           TC       Q                                     
043849,000943: 
043850,000944:    7152           54121        SETOVF2            TS       OVFIND                                #  (RARE).
043851,000945:    7153           00002                           TC       Q                                     
043852,000946: 

Page 1033

043854,000948:                                                                                                  #  THE DOT PRODUCT SUBROUTINE USUALLY FORMS THE DOT PRODUCT OF THE VECTOR IN MPAC WITH A STANDARD SIX
043855,000949:                                                                                                  #  REGISTER VECTOR WHOSE ADDRESS IS IN ADDRWD.  IN THIS CASE C(DOTINC) ARE SET TO 2.   VXM, HOWEVER, SETS C(DOTINC) TO
043856,000950:                                                                                                  #  6 SO THAT DOTSUB DOTS MPAC WITH A COLUMN VECTOR OF THE MATRIX IN QUESTION IN THIS CASE.
043857,000951: 
043858,000952:    7154           34752        PREDOT             CAF      TWO                                   #  PROLOGUE TO SET DOTINC TO 2.
043859,000953:    7155           54136                           TS       DOTINC                                
043860,000954: 
043861,000955:    7156           00006        DOTSUB             EXTEND                                         
043862,000956:    7157           22137                           QXCH     DOTRET                                #  SAVE RETURN.
043863,000957:    7160           07107                           TC       DMPSUB                                #  DOT X COMPONENTS.
043864,000958:    7161           52160                           DXCH     MPAC       +3                         #  POSITION Y COMPONENT OF MPAC FOR
043865,000959:    7162           52155                           DXCH     MPAC                                  #  MULTIPLICATION WHILE SAVING RESULT IN
043866,000960:    7163           52131                           DXCH     BUF                                   #  THREE WORD BUFFER, BUF.
043867,000961:    7164           30156                           CA       MPAC       +2                         
043868,000962:    7165           54132                           TS       BUF        +2                         
043869,000963: 
043870,000964:    7166           30136                           CA       DOTINC                                #  ADVANCE ADDRWD TO Y COMPONENT OF
043871,000965:    7167           26116                           ADS      ADDRWD                                #  OTHER ARGUMENT.
043872,000966:    7170           07107                           TC       DMPSUB                                
043873,000967:    7171           52156                           DXCH     MPAC       +1                         #  ACCUMULATE PARTIAL PRODUCTS.
043874,000968:    7172           20132                           DAS      BUF        +1                         
043875,000969:    7173           60154                           AD       MPAC                                  
043876,000970:    7174           60130                           AD       BUF                                   
043877,000971:    7175           54130                           TS       BUF                                   
043878,000972:    7176           17200                           TCF      +2                                    
043879,000973:    7177           54121                           TS       OVFIND                                #  IF OVERFLOW OCCURS.
043880,000974: 
043881,000975:    7200           52162                           DXCH     MPAC       +5                         #  MULTIPLY Z COMPONENTS.
043882,000976:    7201           52155                           DXCH     MPAC                                  
043883,000977:    7202           30136                           CA       DOTINC                                
043884,000978:    7203           26116                           ADS      ADDRWD                                
043885,000979:    7204           07107                           TC       DMPSUB                                
043886,000980:    7205           52132        ENDDOT             DXCH     BUF        +1                         #  LEAVE FINAL ACCUMULATION IN MPAC.
043887,000981:    7206           20156                           DAS      MPAC       +1                         
043888,000982:    7207           60154                           AD       MPAC                                  
043889,000983:    7210           60130                           AD       BUF                                   
043890,000984:    7211           54154                           TS       MPAC                                  
043891,000985:    7212           00137                           TC       DOTRET                                
043892,000986: 
043893,000987:    7213           07017                           TC       OVERFLOW                              #  ON OVERFLOW HERE.
043894,000988:    7214           00137                           TC       DOTRET                                
043895,000989: 

Page 1034

043897,000991:                                                                                                  #  DOUBLE PRECISION POLYNOMIAL EVALUATOR
043898,000992:                                                                                                  #                                  N        N-1
043899,000993:                                                                                                  #        THIS ROUTINE EVALUATES A X  + A   X    + ... + A  X + A  LEAVING THE DP RESULT IN MPAC ON EXIT.
043900,000994:                                                                                                  #                                N      N-1              1      0
043901,000995: 
043902,000996:                                                                                                  #  THE ROUTINE HAS TWO ENTRIES
043903,000997: 
043904,000998:                                                                                                  #        1.      ENTRY THRU POWRSERS.  THE COEFFICIENTS MAY BE EITHER IN FIXED OR ERASABLE, THE CALL IS BY
043905,000999:                                                                                                  #                TC POWRSERS, AND THE RETURN IS TO LOC(TC POWRSERS)+1.  THE ENTERING DATA MUST BE AS FOLLOWS
043906,001000: 
043907,001001:                                                                                                  #                        A               SP      LOC-3           ADDRESS FOR REFERENCING COEF TABLE
043908,001002:                                                                                                  #                        L               SP      N-1             N IS THE DEGREE OF THE POWER SERIES
043909,001003:                                                                                                  #                        MPAC            DP      X               ARGUMENT
043910,001004:                                                                                                  #                        LOC-2N          DP      A(0)
043911,001005:                                                                                                  #                                        ...
043912,001006:                                                                                                  #                        LOC             DP      A(N)
043913,001007: 
043914,001008:                                                                                                  #        2.      ENTRY THRU POLY.  THE CALL TO POLY AND THE ENTERING DATA MUST BE AS FOLLOWS
043915,001009: 
043916,001010:                                                                                                  #                        MPAC            DP      X               ARGUMENT
043917,001011:                                                                                                  #                        LOC             TC      POLY
043918,001012:                                                                                                  #                        LOC+1           SP      N-1
043919,001013:                                                                                                  #                        LOC+2           DP      A(0)
043920,001014:                                                                                                  #                                        ...
043921,001015:                                                                                                  #                        LOC+2N+2        DP      A(N)            RETURN IS TO LOC+2N+4
043922,001016: 
043923,001017:    7215           00006        POWRSERS           EXTEND                                         
043924,001018:    7216           22141                           QXCH     POLYRET                               #  RETURN ADDRESS
043925,001019:    7217           54117                           TS       POLISH                                #  POWER SERIES ADDRESS
043926,001020:    7220           22140                           LXCH     POLYCNT                               #  N-1 TO COUNTER
043927,001021:    7221           17232                           TCF      POLYCOM                               #  SKIP SET UP BY POLY
043928,001022: 
043929,001023:    7222           50002        POLY               INDEX    Q                                     
043930,001024:    7223           30000                           CAF      0                                     
043931,001025:    7224           54140                           TS       POLYCNT                               #  N-1 TO COUNTER
043932,001026:    7225           60000                           DOUBLE                                         
043933,001027:    7226           60002                           AD       Q                                     
043934,001028:    7227           54117                           TS       POLISH                                #  L(A(N))-3 TO POLISH
043935,001029:    7230           64756                           AD       FIVE                                  
043936,001030:    7231           54141                           TS       POLYRET                               #  STORE RETURN ADDRESS
043937,001031: 
043938,001032:    7232           36273        POLYCOM            CAF      LVBUF                                 #  INCOMING X WILL BE MOVED TO VBUF, SO
043939,001033:    7233           54116                           TS       ADDRWD                                #  SET ADDRWD SO DMPSUB WILL MPY BY VBUF.
043940,001034: 
043941,001035:    7234           00006                           EXTEND                                         
043942,001036:    7235           50117                           INDEX    POLISH                                
043943,001037:    7236           30004                           DCA      3                                     
043944,001038: 

Page 1035

043946,001040:    7237           52155                           DXCH     MPAC                                  #  LOAD A(N) INTO MPAC,
043947,001041:    7240           52123                           DXCH     VBUF                                  #  SAVING X IN VBUF
043948,001042:    7241           17245                           TCF      POLY2                                 
043949,001043: 
043950,001044:    7242           54140        POLYLOOP           TS       POLYCNT                               #  SAVE DECREMENTED LOOP COUNTER
043951,001045:    7243           44752                           CS       TWO                                   
043952,001046:    7244           26117                           ADS      POLISH                                #  REGRESS COEFFICIENT POINTER
043953,001047: 
043954,001048:    7245           07107        POLY2              TC       DMPSUB                                #  MULTIPLY BY X
043955,001049:    7246           00006                           EXTEND                                         
043956,001050:    7247           50117                           INDEX    POLISH                                
043957,001051:    7250           30002                           DCA      1                                     #  ADD IN NEXT COEFFICIENT
043958,001052:    7251           20155                           DAS      MPAC                                  #  USERS RESPONSIBILITY TO ASSURE NO OVFLOW
043959,001053: 
043960,001054:    7252           10140                           CCS      POLYCNT                               
043961,001055:    7253           17242                           TCF      POLYLOOP                              
043962,001056:    7254           00141                           TC       POLYRET                               #  RETURN CALLER
043963,001057: 

Page 1036

043965,001059:                                                                                                  #  MISCELLANEOUS MULTI-PRECISION ROUTINES REQUIRED IN FIXED-FIXED BUT NOT USED BY THE INTERPRETER.
043966,001060: 
043967,001061:    7255           34755        DPAGREE            CAF      ZERO                                  #  DOUBLE PRECISION ENTRY -
043968,001062:    7256           54156                           TS       MPAC       +2                         #  ZERO LOW-ORDER WORD
043969,001063: 
043970,001064:    7257           22002        TPAGREE            LXCH     Q                                     #  FORCE SIGN AGREEMENT AMONG THE TRIPLE
043971,001065:    7260           06723                           TC       BRANCH                                #  PRECISION CONTENTS OF MPAC.  RETURNING
043972,001066:    7261           17265                           TCF      ARG+                                  #  WITH SIGNUM OF THE INPUT IN A.
043973,001067:    7262           17305                           TCF      ARGZERO                               
043974,001068: 
043975,001069:    7263           44733                           CS       POSMAX                                #  IF NEGATIVE.
043976,001070:    7264           17266                           TCF      +2                                    
043977,001071: 
043978,001072:    7265           34733        ARG+               CAF      POSMAX                                
043979,001073:    7266           54002                           TS       Q                                     
043980,001074:    7267           00006                           EXTEND                                         
043981,001075:    7270           24000                           AUG      A                                     #  FORMS +-1.0.
043982,001076:    7271           60156                           AD       MPAC       +2                         
043983,001077:    7272           54156                           TS       MPAC       +2                         
043984,001078:    7273           34755                           CAF      ZERO                                  
043985,001079:    7274           60002                           AD       Q                                     
043986,001080:    7275           60155                           AD       MPAC       +1                         
043987,001081:    7276           54155                           TS       MPAC       +1                         
043988,001082:    7277           34755                           CAF      ZERO                                  
043989,001083:    7300           60002                           AD       Q                                     #  Q STILL HAS POSMAX OR NEGMAX IN IT.
043990,001084:    7301           60154                           AD       MPAC                                  
043991,001085:    7302           54154        ARGZERO2           TS       MPAC                                  #  ALWAYS SKIPPING UNLESS ARGZERO.
043992,001086:    7303           54155                           TS       MPAC       +1                         
043993,001087:    7304           00001                           TC       L                                     #  RETURN VIA L.
043994,001088: 
043995,001089:    7305           54156        ARGZERO            TS       MPAC       +2                         #  SET ALL THREE MPAC REGISTERS TO ZERO.
043996,001090:    7306           17302                           TCF      ARGZERO2                              
043997,001091: 
043998,001092:                                                                                                  #  SHORTMP MULTIPLIES THE TP CONTENTS OF MPAC BY THE SINGLE PRECISION NUMBER ARRIVING IN A.
043999,001093: 
044000,001094:    7307           54135        SHORTMP            TS       MPTEMP                                
044001,001095:    7310           00006                           EXTEND                                         
044002,001096:    7311           70156                           MP       MPAC       +2                         
044003,001097:    7312           54156                           TS       MPAC       +2                         
044004,001098:    7313           34755        SHORTMP2           CAF      ZERO                                  #  SO SUBSEQUENT DAS WILL WORK.
044005,001099:    7314           56155                           XCH      MPAC       +1                         
044006,001100:    7315           17126                           TCF      DMPSUB2                               
044007,001101: 

Page 1037

044009,001103:                                                                                                  #  DMPNSUB MULTIPLIES THE DP FRACTION ARRIVING IN MPAC BY THE SP
044010,001104:                                                                                                  #  INTEGER ARRIVING IN A.  THE DP PRODUCT DEPARTS BOTH IN MPAC AND IN
044011,001105:                                                                                                  #  A AND L.  NOTE THAT DMPNSUB NORMALLY INCREASES THE MAGNITUDE OF THE
044012,001106:                                                                                                  #  CONTENTS OF MPAC.  THE CUSTOMER MUST INSURE THAT B(A) X B(MPAC,MPAC+1)
044013,001107:                                                                                                  #  AND B(A) X B(MPAC) ARE LESS THAN 1 IN MAGNITUDE, WHERE B, AS IS OBVIOUS,
044014,001108:                                                                                                  #  INDICATES THE ARRIVING CONTENTS.
044015,001109: 
044016,001110:    7316           54135        DMPNSUB            TS       DMPNTEMP                              
044017,001111:    7317           00006                           EXTEND                                         
044018,001112:    7320           70155                           MP       MPAC       +1                         
044019,001113:    7321           52155                           DXCH     MPAC                                  #  LOW PRODUCT TO MPAC, HIGH FACTOR TO A
044020,001114:    7322           00006                           EXTEND                                         
044021,001115:    7323           70135                           MP       DMPNTEMP                              
044022,001116:    7324           30001                           CA       L                                     
044023,001117:    7325           26154                           ADS      MPAC                                  #  COMPLETING THE PRODUCT IN MPAC
044024,001118:    7326           00006                           EXTEND                                         
044025,001119:    7327           30155                           DCA      MPAC                                  #  BRINGING THE PRODUCT INTO A AND L
044026,001120:    7330           00002                           TC       Q                                     
044027,001121: 

Page 1038

044029,001123:                                                                                                  #  MISCELLANEOUS VECTOR OPERATIONS.  INCLUDED HERE ARE THE FOLLOWING:
044030,001124:                                                                                                  #        1.      DOT     DP VECTOR DOT PRODUCT.
044031,001125:                                                                                                  #        2.      VXV     DP VECTOR CROSS PRODUCT.
044032,001126:                                                                                                  #        3.      VXSC    DP VECTOR TIMES SCALAR.
044033,001127:                                                                                                  #        4.      V/SC    DP VECTOR DIVIDED BY SCALAR.
044034,001128:                                                                                                  #        5.      VPROJ   DP VECTOR PROJECTION.  ( (MPAC.X)MPAC ).
044035,001129:                                                                                                  #        6.      VXM     DP VECTOR POST-MULTIPLIED BY MATRIX.
044036,001130:                                                                                                  #        7.      MXV     DP VECTOR PRE-MULTIPLIED BY MATRIX.
044037,001131: 
044038,001132:    7331           07154        DOT                TC       PREDOT                                #  DO THE DOT PRODUCT AND EXIT, CHANGING
044039,001133:    7332           34755        DMODE              CAF      ZERO                                  #  THE MODE TO DP SCALAR.
044040,001134:    7333           16060                           TCF      NEWMODE                               
044041,001135: 
044042,001136:    7334           34752        MXV                CAF      TWO                                   #  SET UP MATINC AND DOTINC FOR ROW
044043,001137:    7335           54140                           TS       MATINC                                #  VECTORS.
044044,001138:    7336           17342                           TCF      VXM/MXV                               #  GO TO COMMON PORTION.
044045,001139: 
044046,001140:    7337           44363        VXM                CS       TEN                                   #  SET MATINC AND DOTINC TO REFER TO MATRIX
044047,001141:    7340           54140                           TS       MATINC                                #  AS THREE COLUMN VECTORS.
044048,001142:    7341           36242                           CAF      SIX                                   
044049,001143: 

Page 1039

044051,001145:                                                                                                  #  COMMON PORTION OF MXV AND VXM.
044052,001146: 
044053,001147:    7342           54136        VXM/MXV            TS       DOTINC                                
044054,001148:                                                                                                  #  ITRACE (2) REFERS TO "VXM/MXV".
044055,001149:    7343           07532                           TC       MPACVBUF                              #  SAVE VECTOR IN MPAC FOR FURTHER USE.
044056,001150: 
044057,001151:    7344           07156                           TC       DOTSUB                                #  GO DOT TO GET X COMPONENT OF ANSWER.
044058,001152:    7345           00006                           EXTEND                                         
044059,001153:    7346           30123                           DCA      VBUF                                  #  MOVE MPAC VECTOR BACK INTO MPAC, SAVING
044060,001154:    7347           52155                           DXCH     MPAC                                  #  NEW X COMPONENT IN BUF2.
044061,001155:    7350           52134                           DXCH     BUF2                                  
044062,001156:    7351           00006                           EXTEND                                         
044063,001157:    7352           30125                           DCA      VBUF       +2                         
044064,001158:    7353           52160                           DXCH     MPAC       +3                         
044065,001159:    7354           00006                           EXTEND                                         
044066,001160:    7355           30127                           DCA      VBUF       +4                         
044067,001161:    7356           52162                           DXCH     MPAC       +5                         
044068,001162:    7357           30140                           CA       MATINC                                #  INITIALIZE ADDRWD FOR NEXT DOT PRODUCT.
044069,001163:    7360           26116                           ADS      ADDRWD                                #  FORMS BASE ADDRESS OF NEXT COLUMN(ROW).
044070,001164: 
044071,001165:    7361           07156                           TC       DOTSUB                                
044072,001166:    7362           52123                           DXCH     VBUF                                  #  MOVE GIVEN VECTOR BACK TO MPAC, SAVING Y
044073,001167:    7363           52155                           DXCH     MPAC                                  #  COMPONENT OF ANSWER IN VBUF +2.
044074,001168:    7364           52125                           DXCH     VBUF       +2                         
044075,001169:    7365           52160                           DXCH     MPAC       +3                         
044076,001170:    7366           52127                           DXCH     VBUF       +4                         
044077,001171:    7367           52162                           DXCH     MPAC       +5                         
044078,001172:    7370           30140                           CA       MATINC                                #  FORM ADDRESS OF LAST COLUMN OR ROW.
044079,001173:    7371           26116                           ADS      ADDRWD                                
044080,001174: 
044081,001175:    7372           07156                           TC       DOTSUB                                
044082,001176:    7373           52134                           DXCH     BUF2                                  #  ANSWER NOW COMPLETE. PUT COMPONENTS INTO
044083,001177:    7374           52155                           DXCH     MPAC                                  #  PROPER MPAC REGISTERS.
044084,001178:    7375           52162                           DXCH     MPAC       +5                         
044085,001179:    7376           52125                           DXCH     VBUF       +2                         
044086,001180:    7377           52160                           DXCH     MPAC       +3                         
044087,001181:    7400           16061                           TCF      DANZIG                                #  EXIT.
044088,001182: 

Page 1040

044090,001184:                                                                                                  #  VXSC - VECTOR TIMES SCALAR.
044091,001185: 
044092,001186:    7401           10163        VXSC               CCS      MODE                                  #  TEST PRESENT MODE.
044093,001187:    7402           17430                           TCF      DVXSC                                 #  SEPARATE ROUTINE WHEN SCALAR IS IN MPAC.
044094,001188:    7403           17430                           TCF      DVXSC                                 
044095,001189: 
044096,001190:    7404           07107        VVXSC              TC       DMPSUB                                #  COMPUTE X COMPONENT
044097,001191:    7405           07140                           TC       VROUND                                #  AND ROUND IT.
044098,001192:    7406           52160                           DXCH     MPAC       +3                         #  PUT Y COMPONENT INTO MPAC SAVING MPAC IN
044099,001193:    7407           52155                           DXCH     MPAC                                  #  MPAC +3.
044100,001194:    7410           52160                           DXCH     MPAC       +3                         
044101,001195: 
044102,001196:    7411           07107                           TC       DMPSUB                                #  DO SAME FOR Y AND Z COMPONENTS.
044103,001197:    7412           07140                           TC       VROUND                                
044104,001198:    7413           52162                           DXCH     MPAC       +5                         
044105,001199:    7414           52155                           DXCH     MPAC                                  
044106,001200:    7415           52162                           DXCH     MPAC       +5                         
044107,001201: 
044108,001202:    7416           07107                           TC       DMPSUB                                
044109,001203:    7417           07140                           TC       VROUND                                
044110,001204:    7420           52155        VROTATEX           DXCH     MPAC                                  #  EXIT USED TO RESTORE MPAC AFTER THIS
044111,001205:    7421           52162                           DXCH     MPAC       +5                         #  TYPE OF ROTATION.  CALLED BY VECTOR SHIFT
044112,001206:    7422           52160                           DXCH     MPAC       +3                         #  RIGHT, V/SC, ETC.
044113,001207:    7423           52155                           DXCH     MPAC                                  
044114,001208:    7424           16061                           TCF      DANZIG                                
044115,001209: 

Page 1041

044117,001211:                                                                                                  #  DP VECTOR PROJECTION ROUTINE.
044118,001212: 
044119,001213:    7425           07154        VPROJ              TC       PREDOT                                #  (MPAC.X)MPAC IS COMPUTED AND LEFT IN
044120,001214:    7426           44751                           CS       FOUR                                  #  MPAC.  DO DOT AND FALL INTO DVXSC.
044121,001215:    7427           26116                           ADS      ADDRWD                                
044122,001216: 
044123,001217:                                                                                                  #  VXSC WHEN SCALAR ARRIVES IN MPAC AND VECTOR IS AT X.
044124,001218: 
044125,001219:    7430           00006        DVXSC              EXTEND                                         #  SAVE SCALAR IN MPAC +3 AND GET X
044126,001220:    7431           30155                           DCA      MPAC                                  #  COMPONENT OF ANSWER.
044127,001221:    7432           52160                           DXCH     MPAC       +3                         
044128,001222:    7433           07107                           TC       DMPSUB                                
044129,001223:    7434           07140                           TC       VROUND                                
044130,001224: 
044131,001225:    7435           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO Y COMPONENT OF X.
044132,001226:    7436           26116                           ADS      ADDRWD                                
044133,001227:    7437           00006                           EXTEND                                         
044134,001228:    7440           30160                           DCA      MPAC       +3                         #  PUT SCALAR BACK INTO MPAC AND SAVE
044135,001229:    7441           52155                           DXCH     MPAC                                  #  X RESULT IN MPAC +5.
044136,001230:    7442           52162                           DXCH     MPAC       +5                         
044137,001231:    7443           07107                           TC       DMPSUB                                
044138,001232:    7444           07140                           TC       VROUND                                
044139,001233: 
044140,001234:    7445           34752                           CAF      TWO                                   
044141,001235:    7446           26116                           ADS      ADDRWD                                #  TO Z COMPONENT.
044142,001236:    7447           52160                           DXCH     MPAC       +3                         #  BRING SCALAR BACK, PUTTING Y RESULT IN
044143,001237:    7450           52155                           DXCH     MPAC                                  #  THE PROPER PLACE.
044144,001238:    7451           52160                           DXCH     MPAC       +3                         
044145,001239:    7452           07107                           TC       DMPSUB                                
044146,001240:    7453           07140                           TC       VROUND                                
044147,001241: 
044148,001242:    7454           52155                           DXCH     MPAC                                  #  PUT Z COMPONENT IN PROPER PLACE, ALSO
044149,001243:    7455           52162                           DXCH     MPAC       +5                         #  POSITIONING X.
044150,001244:    7456           52155                           DXCH     MPAC                                  
044151,001245: 
044152,001246:    7457           16521                           TCF      VMODE                                 #  MODE HAS CHANGED TO VECTOR.
044153,001247: 

Page 1042

044155,001249:                                                                                                  #           THE VECTOR CROSS PRODUCT ROUTINE CALCULATES (X M -X M ,X M -X M ,X M -X M ) WHERE M IS THE VECTOR IN
044156,001250:                                                                                                  #                                                         3 2  2 3  1 3  3 1  2 1  1 2
044157,001251:                                                                                                  #  MPAC AND X THE VECTOR AT THE GIVEN ADDRESS.
044158,001252: 
044159,001253:    7460           00006        VXV                EXTEND                                         
044160,001254:    7461           30162                           DCA      MPAC       +5                         #  FORM UP M3X1, LEAVING M1 IN VBUF.
044161,001255:    7462           52155                           DXCH     MPAC                                  
044162,001256:    7463           52123                           DXCH     VBUF                                  
044163,001257:    7464           07107                           TC       DMPSUB                                #  BY X1.
044164,001258: 
044165,001259:    7465           00006                           EXTEND                                         
044166,001260:    7466           40160                           DCS      MPAC       +3                         #  CALCULATE -X1M2, SAVING X1M3 IN VBUF +2.
044167,001261:    7467           52155                           DXCH     MPAC                                  
044168,001262:    7470           52125                           DXCH     VBUF       +2                         
044169,001263:    7471           07107                           TC       DMPSUB                                
044170,001264: 
044171,001265:    7472           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X2.
044172,001266:    7473           26116                           ADS      ADDRWD                                
044173,001267:    7474           00006                           EXTEND                                         
044174,001268:    7475           40162                           DCS      MPAC       +5                         #  PREPARE TO GET -X2M3, SAVING -X1M2 IN
044175,001269:    7476           52155                           DXCH     MPAC                                  #  MPAC +5.
044176,001270:    7477           52162                           DXCH     MPAC       +5                         
044177,001271:    7500           07107                           TC       DMPSUB                                
044178,001272: 
044179,001273:    7501           00006                           EXTEND                                         
044180,001274:    7502           30123                           DCA      VBUF                                  #  GET X2M1, SAVING -X2M3 IN VBUF +4.
044181,001275:    7503           52155                           DXCH     MPAC                                  
044182,001276:    7504           52127                           DXCH     VBUF       +4                         
044183,001277:    7505           07107                           TC       DMPSUB                                
044184,001278: 
044185,001279:    7506           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X3.
044186,001280:    7507           26116                           ADS      ADDRWD                                
044187,001281:    7510           00006                           EXTEND                                         
044188,001282:    7511           40123                           DCS      VBUF                                  #  GET -X3M1, ADDING X2M1 TO MPAC +5 TO
044189,001283:    7512           52155                           DXCH     MPAC                                  #  COMPLETE THE Z COMPONENT OF THE ANSWER.
044190,001284:    7513           20162                           DAS      MPAC       +5                         
044191,001285: 
044192,001286:    7514           00006                           EXTEND                                         
044193,001287:    7515           17517                           BZF      +2                                    
044194,001288:    7516           07011                           TC       OVERFLWZ                              
044195,001289: 
044196,001290:    7517           07107                           TC       DMPSUB                                
044197,001291:    7520           52125                           DXCH     VBUF       +2                         #  MOVE X1M3 TO MPAC +3 SETTING UP FOR X3M2
044198,001292:    7521           52160                           DXCH     MPAC       +3                         #  AND ADD -X3M1 TO MPAC +3 TO COMPLETE THE
044199,001293:    7522           52155                           DXCH     MPAC                                  #  Y COMPONENT OF THE RESULT.
044200,001294:    7523           20160                           DAS      MPAC       +3                         
044201,001295: 
044202,001296:    7524           00006                           EXTEND                                         
044203,001297:    7525           17527                           BZF      +2                                    

Page 1043

044205,001299:    7526           07014                           TC       OVERFLWY                              
044206,001300: 
044207,001301:    7527           07107                           TC       DMPSUB                                
044208,001302:    7530           52127                           DXCH     VBUF       +4                         #  GO ADD -X2M3 TO X3M2 TO COMPLETE THE X
044209,001303:    7531           17000                           TCF      ENDVXV                                #  COMPONENT (TAIL END OF DAD).
044210,001304: 
044211,001305:                                                                                                  #  THE MPACVBUF SUBROUTINE SAVES THE VECTOR IN MPAC IN VBUF WITHOUT CLOBBERING MPAC.
044212,001306: 
044213,001307:    7532           00006        MPACVBUF           EXTEND                                         #  CALLED BY MXV, VXM, AND UNIT.
044214,001308:    7533           30155                           DCA      MPAC                                  
044215,001309:    7534           52123                           DXCH     VBUF                                  
044216,001310:    7535           00006                           EXTEND                                         
044217,001311:    7536           30160                           DCA      MPAC       +3                         
044218,001312:    7537           52125                           DXCH     VBUF       +2                         
044219,001313:    7540           00006                           EXTEND                                         
044220,001314:    7541           30162                           DCA      MPAC       +5                         
044221,001315:    7542           52127                           DXCH     VBUF       +4                         
044222,001316:    7543           00002                           TC       Q                                     #  RETURN TO CALLER.
044223,001317: 
044224,001318:                                                                                                  #  DOUBLE PRECISION SIGN AGREE ROUTINE.  ARRIVE WITH INPUT IN A+L.  OUTPUT IS IN A + L.
044225,001319: 
044226,001320:    7544           10000        ALSIGNAG           CCS      A                                     #  TEST UPPER PART.
044227,001321:    7545           17551                           TCF      UPPOS                                 #  IT IS POSITIVE
044228,001322:    7546           00002                           TC       Q                                     #  ZERO
044229,001323:    7547           17561                           TCF      UPNEG                                 #  NEGATIVE
044230,001324:    7550           00002                           TC       Q                                     #  ZERO
044231,001325: 
044232,001326:    7551           56001        UPPOS              XCH      L                                     #  SAVE DECREMENTED UPPER PART.
044233,001327:    7552           64736                           AD       HALF                                  
044234,001328:    7553           64736                           AD       HALF                                  
044235,001329:    7554           54000                           TS       A                                     #  SKIPS ON OVERFLOW
044236,001330:    7555           17557                           TCF      +2                                    
044237,001331:    7556           24001                           INCR     L                                     #  RESTORE UPPER TO ROIGINAL VALUE
044238,001332:    7557           56001                           XCH      L                                     #  SWAP A + L BACK.
044239,001333:    7560           00002                           TC       Q                                     
044240,001334: 
044241,001335:    7561           56001        UPNEG              XCH      L                                     #  SAVE COMPLEMENTED + DECREMENTED UPPER PT
044242,001336:    7562           64735                           AD       NEGMAX                                
044243,001337:    7563           67747                           AD       NEGONE                                
044244,001338:    7564           54000                           TS       A                                     
044245,001339:    7565           17567                           TCF      +2                                    #  DONT INCREMENT IF NO OVERFLOW.
044246,001340:    7566           24001                           INCR     L                                     
044247,001341:    7567           56001                           XCH      L                                     
044248,001342:    7570           40000                           COM                                            #  MAKE NEGATIVE AGAIN.
044249,001343:    7571           00002                           TC       Q                                     
044250,001344: 

Page 1044

044252,001346:                                                                                                  #  INTERPRETIVE INSTRUCTIONS WHOSE EXECUTION CONSISTS OF PRINCIPALLY CALLING SUBROUTINES.
044253,001347: 
044254,001348:    7572           07107        DMP1               TC       DMPSUB                                #  DMP INSTRUCTION.
044255,001349:    7573           16061                           TCF      DANZIG                                
044256,001350: 
044257,001351:    7574           07107        DMPR               TC       DMPSUB                                
044258,001352:    7575           07137                           TC       ROUNDSUB   +1                         #  (C(A) = +0).
044259,001353:    7576           16061                           TCF      DANZIG                                
044260,001354: 
044261,001355:    7577           00006        DDV                EXTEND                                         
044262,001356:    7600           50116                           INDEX    ADDRWD                                #  MOVE DIVIDEND INTO BUF.
044263,001357:    7601           30001                           DCA      0                                     
044264,001358:    7602           17607                           TCF      BDDV       +4                         
044265,001359: 
044266,001360:    7603           00006        BDDV               EXTEND                                         #  MOVE DIVISOR INTO MPAC SAVING MPAC, THE
044267,001361:    7604           50116                           INDEX    ADDRWD                                #  DIVIDEND, IN BUF.
044268,001362:    7605           30001                           DCA      0                                     
044269,001363:    7606           52155                           DXCH     MPAC                                  
044270,001364:    7607           52131                 +4        DXCH     BUF                                   
044271,001365:    7610           34755                           CAF      ZERO                                  #  DIVIDE ROUTINES IN BANK 0.
044272,001366:    7611           54004                           TS       FBANK                                 
044273,001367:    7612           12353                           TCF      DDV/BDDV                              
044274,001368: 
044275,001369:    7613           30116        SETPD              CA       ADDRWD                                #  MUST SET TO WORK AREA, OR EBANK TROUBLE.
044276,001370:    7614           54166                           TS       PUSHLOC                               
044277,001371:    7615           16063                           TCF      NOIBNKSW                              #  NO FBANK SWITCH REQUIRED.
044278,001372: 
044279,001373:    7616           34755        TSLC               CAF      ZERO                                  #  SHIFTING ROUTINES LOCATED IN BANK 00.
044280,001374:    7617           54004                           TS       FBANK                                 
044281,001375:    7620           12172                           TCF      TSLC2                                 
044282,001376: 
044283,001377:    7621           36074        GSHIFT             CAF      LOW7                                  #  USED AS MASK AT GENSHIFT. THIS PROCESSES
044284,001378:    7622           54004                           TS       FBANK                                 #  ANY SHIFT INSTRUCTION (EXCEPT TSLC) WITH
044285,001379:    7623           12214                           TCF      GENSHIFT                              #  AN ADDRESS (ROUTINES IN BANK 0).
044286,001380: 

Page 1045

044288,001382:                                                                                                  #  THE FOLLOWING IS THE PROLOGUE TO V/SC.  IF THE PRESENT MODE IS VECTOR, IT SAVES THE SCALAR AT X IN BUF
044289,001383:                                                                                                  #  AND CALLS THE V/SC ROUTINE IN BANK 0.  IF THE PRESENT MODE IS SCALAR, IT MOVES THE VECTOR AT X INTO MPAC, SAVING
044290,001384:                                                                                                  #  THE SCALAR IN MPAC IN BUF BEFORE CALLING THE V/SC ROUTINE IN BANK 0.
044291,001385: 
044292,001386:    7624           10163        V/SC               CCS      MODE                                  
044293,001387:    7625           17636                           TCF      DV/SC                                 #  MOVE VECTOR INTO MPAC.
044294,001388:    7626           17636                           TCF      DV/SC                                 
044295,001389: 
044296,001390:    7627           00006        VV/SC              EXTEND                                         
044297,001391:    7630           50116                           INDEX    ADDRWD                                
044298,001392:    7631           30001                           DCA      0                                     
044299,001393:    7632           52131        V/SC1              DXCH     BUF                                   #  IN BOTH CASES, VECTOR IS NOW IN MPAC AND
044300,001394:    7633           34755                           CAF      ZERO                                  #  SCALAR IN BUF.
044301,001395:    7634           54004                           TS       FBANK                                 
044302,001396:    7635           12654                           TCF      V/SC2                                 
044303,001397: 
044304,001398:    7636           00006        DV/SC              EXTEND                                         
044305,001399:    7637           50116                           INDEX    ADDRWD                                
044306,001400:    7640           30003                           DCA      2                                     
044307,001401:    7641           52160                           DXCH     MPAC       +3                         
044308,001402:    7642           00006                           EXTEND                                         
044309,001403:    7643           50116                           INDEX    ADDRWD                                
044310,001404:    7644           30005                           DCA      4                                     
044311,001405:    7645           52162                           DXCH     MPAC       +5                         
044312,001406: 
044313,001407:    7646           44753                           CS       ONE                                   #  CHANGE MODE TO VECTOR.
044314,001408:    7647           54163                           TS       MODE                                  
044315,001409: 
044316,001410:    7650           00006                           EXTEND                                         
044317,001411:    7651           50116                           INDEX    ADDRWD                                
044318,001412:    7652           30001                           DCA      0                                     
044319,001413:    7653           52155                           DXCH     MPAC                                  
044320,001414:    7654           17632                           TCF      V/SC1                                 #  FINISH PROLOGUE AT COMMON SECTION.
044321,001415: 

Page 1046

044323,001417:                                                                                                  #  SIGN AND COMPLEMENT INSTRUCTIONS.
044324,001418: 
044325,001419:    7655           50116        SIGN               INDEX    ADDRWD                                #  CALL COMP INSTRUCTION IF WORD AT X IS
044326,001420:    7656           10000                           CCS      0                                     #  NEGATIVE NON-ZERO.
044327,001421:    7657           16061                           TCF      DANZIG                                
044328,001422:    7660           17662                           TCF      +2                                    
044329,001423:    7661           17670                           TCF      COMP                                  #  DO THE COMPLEMENT.
044330,001424: 
044331,001425:    7662           50116                           INDEX    ADDRWD                                
044332,001426:    7663           10001        CCSL               CCS      1                                     
044333,001427:    7664           16061                           TCF      DANZIG                                
044334,001428:    7665           16061                           TCF      DANZIG                                
044335,001429:    7666           17670                           TCF      COMP                                  
044336,001430:    7667           16061                           TCF      DANZIG                                
044337,001431:    7670           00006        COMP               EXTEND                                         #  COMPLEMENT DP MPAC IN EVERY CASE.
044338,001432:    7671           40155                           DCS      MPAC                                  
044339,001433:    7672           52155                           DXCH     MPAC                                  
044340,001434: 
044341,001435:    7673           10163                           CCS      MODE                                  #  EITHER COMPLEMENT MPAC +3 OR THE REST OF
044342,001436:    7674           17705                           TCF      DCOMP                                 #  THE VECTOR ACCUMULATOR.
044343,001437:    7675           17705                           TCF      DCOMP                                 
044344,001438: 
044345,001439:    7676           00006                           EXTEND                                         #  VECTOR COMPLEMENT.
044346,001440:    7677           40160                           DCS      MPAC       +3                         
044347,001441:    7700           52160                           DXCH     MPAC       +3                         
044348,001442:    7701           00006                           EXTEND                                         
044349,001443:    7702           40162                           DCS      MPAC       +5                         
044350,001444:    7703           52162                           DXCH     MPAC       +5                         
044351,001445:    7704           16061                           TCF      DANZIG                                
044352,001446: 
044353,001447:    7705           40156        DCOMP              CS       MPAC       +2                         
044354,001448:    7706           54156                           TS       MPAC       +2                         
044355,001449:    7707           16061                           TCF      DANZIG                                
044356,001450: 

Page 1047

044358,001452:                                                                                                  #  THE FOLLOWING SHORT SHIFT CODES REQUIRE NO ADDRESS WORD:
044359,001453:                                                                                                  #        1.      SR1 TO SR4      SCALAR SHIFT RIGHT.
044360,001454:                                                                                                  #        2.      SR1R TO SR4R    SCALAR SHIFT RIGHT AND ROUND.
044361,001455:                                                                                                  #        3.      SL1 TO SL4      SCALAR SHIFT LEFT.
044362,001456:                                                                                                  #        4.      SL1R TO SL4R    SCALAR SHIFT LEFT AND ROUND.
044363,001457:                                                                                                  #        5.      VSR1 TO VSR8    VECTOR SHIFT RIGHT (ALWAYS ROUNDS).
044364,001458:                                                                                                  #        6.      VSL1 TO VSL8    VECTOR SHIFT LEFT (NEVER ROUNDS).
044365,001459:                                                                                                  #  THE FOLLOWING CODES REQUIRE AN ADDRESS WHICH MAY BE INDEXED:*
044366,001460:                                                                                                  #        1.      SR              SCALAR SHIFT RIGHT.
044367,001461:                                                                                                  #        2.      SRR             SCALAR SHIFT RIGHT AND ROUND.
044368,001462:                                                                                                  #        3.      SL              SCALAR SHIFT LEFT.
044369,001463:                                                                                                  #        4.      SLR             SCALAR SHIFT LEFT AND ROUND.
044370,001464:                                                                                                  #        5.      VSR             VECTOR SHIFT RIGHT.
044371,001465:                                                                                                  #        6.      VSL             VECTOR SHIFT LEFT.
044372,001466:                                                                                                  #  * IF THE ADDRESS IS INDEXED, AND THE INDEX MODIFICATION RESULTS IN A NEGATIVE SHIFT COUNT, A SHIFT OF THE
044373,001467:                                                                                                  #  ABSOLUTE VALUE OF THE COUNT IS DONE IN THE OPPOSITE DIRECTION.
044374,001468: 
044375,001469: 00,2017                                           BANK     00                                    
044376,001470: 
044377,001471: 00,2017                                           COUNT*   $$/INTER                              
044378,001472: 00,2017           36242        SHORTT             CAF      SIX                                   #  SCALAR SHORT SHIFTS COME HERE.  THE SHIFT
044379,001473: 00,2020           70020                           MASK     CYR                                   #  COUNT-1 IS NOW IN BITS 2-3 OF CYR.  THE
044380,001474: 00,2021           54021                           TS       SR                                    #  ROUNDING BIT IS IN BIT1 AT THIS POINT.
044381,001475: 
044382,001476: 00,2022           10020                           CCS      CYR                                   #  SEE IF RIGHT OR LEFT SHIFT DESIRED.
044383,001477: 00,2023           12101                           TCF      TSSL                                  #  SHIFT LEFT.
044384,001478: 
044385,001479: 00,2024           00024        SRDDV              DEC      20         B-14                       #  MPTEMP SETTING FOR SR BEFORE DDV.
044386,001480: 
044387,001481: 00,2025           50021        TSSR               INDEX    SR                                    #  GET SHIFTING BIT.
044388,001482: 00,2026           34736                           CAF      BIT14                                 
044389,001483: 00,2027           54135                           TS       MPTEMP                                
044390,001484: 
044391,001485: 00,2030           10020                           CCS      CYR                                   #  SEE IF A ROUND IS DESIRED.
044392,001486: 00,2031           02050        RIGHTR             TC       MPACSRND                              #  YES - SHIFT RIGHT AND ROUND.
044393,001487: 00,2032           16060                           TCF      NEWMODE                               #  SET MODE TO DP (C(A) = 0).
044394,001488: 00,2033           30135        MPACSHR            CA       MPTEMP                                #  DO A TRIPLE PRECISION SHIFT RIGHT.
044395,001489: 00,2034           00006                           EXTEND                                         
044396,001490: 00,2035           70156                           MP       MPAC       +2                         
044397,001491: 00,2036           54156                 +3        TS       MPAC       +2                         #  (EXIT FROM SQRT AND ABVAL).
044398,001492: 00,2037           30135                           CA       MPTEMP                                
044399,001493: 00,2040           00006                           EXTEND                                         
044400,001494: 00,2041           70154                           MP       MPAC                                  #  SHIFT MAJOR PART INTO A,L AND PLACE IN

Page 1048

044402,001496: 00,2042           52155                           DXCH     MPAC                                  #  MPAC,+1.
044403,001497: 00,2043           30135                           CA       MPTEMP                                
044404,001498: 00,2044           00006                           EXTEND                                         
044405,001499: 00,2045           70001                           MP       L                                     #  ORIGINAL C(MPAC +1).
044406,001500: 00,2046           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
044407,001501: 00,2047           16061                           TCF      DANZIG                                
044408,001502: 
044409,001503:                                                                                                  #  MPAC SHIFT RIGHT AND ROUND SUBROUTINES.
044410,001504: 
044411,001505: 00,2050           30156        MPACSRND           CA       MPAC       +2                         #  WE HAVE TO DO ALL THREE MULTIPLIES SINCE
044412,001506: 00,2051           00006                           EXTEND                                         #  MPAC +1 AND MPAC +2 MIGHT HAVE SIGN
044413,001507: 00,2052           70135                           MP       MPTEMP                                #  DISAGREEMENT WITH A SHIFT RIGHT OF 1.
044414,001508: 00,2053           56155                           XCH      MPAC       +1                         
044415,001509: 00,2054           00006                           EXTEND                                         
044416,001510: 00,2055           70135                           MP       MPTEMP                                
044417,001511: 00,2056           56155                           XCH      MPAC       +1                         #  TRIAL MINOR PART.
044418,001512: 00,2057           60001                           AD       L                                     
044419,001513: 
044420,001514: 00,2060           60000        VSHR2              DOUBLE                                         #  (FINISH VECTOR COMPONENT SHIFT RIGHT
044421,001515: 00,2061           54156                           TS       MPAC       +2                         #  AND ROUND.
044422,001516: 00,2062           12064                           TCF      +2                                    
044423,001517: 00,2063           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
044424,001518: 
044425,001519: 00,2064           34755                           CAF      ZERO                                  
044426,001520: 00,2065           54156                           TS       MPAC       +2                         
044427,001521: 00,2066           56154                           XCH      MPAC                                  #  SETTING TO ZERO SO FOLLOWING DAS WORKS.
044428,001522: 00,2067           00006                           EXTEND                                         
044429,001523: 00,2070           70135                           MP       MPTEMP                                
044430,001524: 00,2071           20155                           DAS      MPAC                                  #  AGAIN NO OVERFLOW.
044431,001525: 00,2072           00002                           TC       Q                                     
044432,001526: 
044433,001527: 00,2073           30135        VSHRRND            CA       MPTEMP                                #  ENTRY TO SHIFT RIGHT AND ROUND MPAC WHEN
044434,001528: 00,2074           00006                           EXTEND                                         #  MPAC CONTAINS A VECTOR COMPONENT.
044435,001529: 00,2075           70155                           MP       MPAC       +1                         
044436,001530: 00,2076           54155                           TS       MPAC       +1                         
044437,001531: 00,2077           56001                           XCH      L                                     
044438,001532: 00,2100           12060                           TCF      VSHR2                                 #  GO ADD ONE IF NECESSARY AND FINISH.
044439,001533: 

Page 1049

044441,001535:                                                                                                  #  ROUTINE FOR SHORT SCALAR SHIFT LEFT (AND MAYBE ROUND).
044442,001536: 
044443,001537: 00,2101           30021        TSSL               CA       SR                                    #  GET SHIFT COUNT FOR SR.
044444,001538: 00,2102           54135                 +1        TS       MPTEMP                                
044445,001539: 
044446,001540: 00,2103           00006                 +2        EXTEND                                         #  ENTRY HERE FROM SL FOR SCALARS.
044447,001541: 00,2104           30156                           DCA      MPAC       +1                         #  SHIFTING LEFT ONE PLACE AT A TIME IS
044448,001542: 00,2105           20156                           DAS      MPAC       +1                         #  FASTER THAN DOING THE WHOLE SHIFT WITH
044449,001543: 00,2106           60154                           AD       MPAC                                  #  MULTIPLIES ASSUMING THAT FREQUENCY OF
044450,001544: 00,2107           60154                           AD       MPAC                                  #  SHIFT COUNTS GOES DOWN RAPIDLY AS A
044451,001545: 00,2110           54154                           TS       MPAC                                  #  FUNCTION OF THEIR MAGNITUDE.
044452,001546: 00,2111           12113                           TCF      +2                                    
044453,001547: 00,2112           54121                           TS       OVFIND                                #  OVERFLOW.  (LEAVES OVERFLOW-CORRECTED
044454,001548:                                                                                                  #  RESULT ANYWAY).
044455,001549: 00,2113           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNT.
044456,001550: 00,2114           12102                           TCF      TSSL       +1                         
044457,001551: 
044458,001552: 00,2115           10020                           CCS      CYR                                   #  SEE IF ROUND WANTED.
044459,001553: 00,2116           07136        ROUND              TC       ROUNDSUB                              #  YES - ROUND AND EXIT.
044460,001554: 00,2117           16061                           TCF      DANZIG                                #  SL LEAVES A ZERO IN CYR FOR NO ROUND.
044461,001555: 00,2120           16061                           TCF      DANZIG                                #  NO - EXIT IMMEDIATL
044462,001556: 

Page 1050

044464,001558:                                                                                                  #  VECTOR SHIFTING ROUTINES.
044465,001559: 
044466,001560: 00,2121           34757        SHORTV             CAF      LOW3                                  #  SAVE 3 BIT SHIFT COUNT - 1 WITHOUT
044467,001561: 00,2122           70020                           MASK     CYR                                   #  EDITING CYR.
044468,001562: 00,2123           54135                           TS       MPTEMP                                
044469,001563: 00,2124           10020                           CCS      CYR                                   #  SEE IF LEFT OR RIGHT SHIFT.
044470,001564: 00,2125           12145                           TCF      VSSL                                  #  VECTOR SHIFT LEFT.
044471,001565: 00,2126           00176        OCT176             OCT      176                                   #  USED IN PROCESSED SHIFTS WITH - COUNT.
044472,001566: 
044473,001567: 00,2127           50135        VSSR               INDEX    MPTEMP                                #  (ENTRY FROM SR).  PICK UP SHIFTING BIT.
044474,001568: 00,2130           34736                           CAF      BIT14                                 #  MPTEMP CONTAINS THE SHIFT COUNT - 1.
044475,001569: 00,2131           54135                           TS       MPTEMP                                
044476,001570: 00,2132           02073                           TC       VSHRRND                               #  SHIFT X COMPONENT.
044477,001571: 
044478,001572: 00,2133           52155                           DXCH     MPAC                                  #  SWAP X AND Y COMPONENTS.
044479,001573: 00,2134           52160                           DXCH     MPAC       +3                         
044480,001574: 00,2135           52155                           DXCH     MPAC                                  
044481,001575: 00,2136           02073                           TC       VSHRRND                               #  SHIFT Y COMPONENT.
044482,001576: 
044483,001577: 00,2137           52155                           DXCH     MPAC                                  #  SWAP Y AND Z COMPONENTS.
044484,001578: 00,2140           52162                           DXCH     MPAC       +5                         
044485,001579: 00,2141           52155                           DXCH     MPAC                                  
044486,001580: 00,2142           02073                           TC       VSHRRND                               #  SHIFT Z COMPONENT.
044487,001581: 
044488,001582: 00,2143           17420                           TCF      VROTATEX                              #  RESTORE COMPONENTS TO PROPER PLACES.
044489,001583: 

Page 1051

044491,001585:                                                                                                  #  VECTOR SHIFT LEFT - DONE ONE PLACE AT A TIME.
044492,001586: 
044493,001587: 00,2144           54135                 -1        TS       MPTEMP                                #  SHIFTING LOOP.
044494,001588: 
044495,001589: 00,2145           00006        VSSL               EXTEND                                         
044496,001590: 00,2146           30155                           DCA      MPAC                                  
044497,001591: 00,2147           20155                           DAS      MPAC                                  
044498,001592: 00,2150           00006                           EXTEND                                         
044499,001593: 00,2151           12153                           BZF      +2                                    
044500,001594: 00,2152           07017                           TC       OVERFLOW                              
044501,001595: 
044502,001596: 00,2153           00006                           EXTEND                                         
044503,001597: 00,2154           30160                           DCA      MPAC       +3                         
044504,001598: 00,2155           20160                           DAS      MPAC       +3                         
044505,001599: 00,2156           00006                           EXTEND                                         
044506,001600: 00,2157           12161                           BZF      +2                                    
044507,001601: 00,2160           07014                           TC       OVERFLWY                              
044508,001602: 
044509,001603: 00,2161           00006                           EXTEND                                         
044510,001604: 00,2162           30162                           DCA      MPAC       +5                         
044511,001605: 00,2163           20162                           DAS      MPAC       +5                         
044512,001606: 00,2164           00006                           EXTEND                                         
044513,001607: 00,2165           12167                           BZF      +2                                    
044514,001608: 00,2166           07011                           TC       OVERFLWZ                              
044515,001609: 
044516,001610: 00,2167           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNTER.
044517,001611: 00,2170           12144                           TCF      VSSL       -1                         
044518,001612: 00,2171           16061                           TCF      DANZIG                                #  EXIT.
044519,001613: 

Page 1052

044521,001615:                                                                                                  #  TSLC - TRIPLE SHIFT LEFT AND COUNT.  SHIFTS MPAC LEFT UNTIL GREATER THAN .5 IN MAGNITUDE, LEAVING
044522,001616:                                                                                                  #  THE COMPLEMENT OF THE NUMBER OF SHIFTS REQUIRED IN X.
044523,001617: 
044524,001618: 00,2172           54135        TSLC2              TS       MPTEMP                                #  START BY ZEROING SHIFT COUNT (IN A NOW).
044525,001619: 00,2173           06723                           TC       BRANCH                                #  EXIT WITH NO SHIFTING IF ARGUMENT ZERO.
044526,001620: 00,2174           12176                           TCF      +2                                    
044527,001621: 00,2175           12212                           TCF      ENDTSLC                               #  STORES ZERO SHIFT COUNT IN THIS CASE.
044528,001622: 
044529,001623: 00,2176           07257                           TC       TPAGREE                               #  MAY CAUSE UPSHIFT OF ONE EXTRA PLACE.
044530,001624: 
044531,001625: 00,2177           30154                           CA       MPAC                                  #  BEGIN NORMALIZATION LOOP.
044532,001626: 00,2200           12207                           TCF      TSLCTEST                              
044533,001627: 
044534,001628: 00,2201           24135        TSLCLOOP           INCR     MPTEMP                                #  INCREMENT SHIFT COUNTER.
044535,001629: 00,2202           00006                           EXTEND                                         
044536,001630: 00,2203           30156                           DCA      MPAC       +1                         
044537,001631: 00,2204           20156                           DAS      MPAC       +1                         
044538,001632: 00,2205           60154                           AD       MPAC                                  
044539,001633: 00,2206           26154                           ADS      MPAC                                  
044540,001634: 00,2207           60000        TSLCTEST           DOUBLE                                         #  SEE IF (ANOTHER) SHIFT IS REQUIRED.
044541,001635: 00,2210           54000                           OVSK                                           
044542,001636: 00,2211           12201                           TCF      TSLCLOOP                              #  YES - INCREMENT COUNT AND SHIFT AGAIN.
044543,001637: 
044544,001638: 00,2212           40135        ENDTSLC            CS       MPTEMP                                
044545,001639: 00,2213           16623                           TCF      STORE1                                #  STORE SHIFT COUNT AND RETURN TO DANZIG.
044546,001640: 

Page 1053

044548,001642:                                                                                                  #  THE FOLLOWING ROUTINES PROCESSES THE GENERAL SHIFT INSTRUCTIONS SR, SRR, SL, AND SLR.
044549,001643:                                                                                                  #  THE GIVEN ADDRESS IS DECODED AS FOLLOWS:
044550,001644:                                                                                                  #        BITS 1-7        SHIFT COUNT (SUBADDRESS) LESS THAN 125 DECIMAL.
044551,001645:                                                                                                  #        BIT 8           PSEUDO SIGN BIT (DETECTS CHANGE IN SIGN IN INDEXED SHIFTS).
044552,001646:                                                                                                  #        BIT 9           0 FOR LEFT SHIFT, AND 1 FOR RIGHT SHIFT.
044553,001647:                                                                                                  #        BIT 10          1 FOR TERMINAL ROUND ON SCALAR SHIFTS, 0 OTHERWISE.
044554,001648:                                                                                                  #        BITS 11-13      0.
044555,001649:                                                                                                  #        BIT 14          1.
044556,001650:                                                                                                  #        BIT 15          0.
044557,001651:                                                                                                  #  THE ABOVE ENCODING IS DONE BY THE YUL SYSTEM.
044558,001652: 
044559,001653: 00,2214           70116        GENSHIFT           MASK     ADDRWD                                #  GET SHIFT COUNT, TESTING FOR ZERO.
044560,001654: 00,2215           10000                           CCS      A                                     #  (ARRIVES WITH C(A) = LOW7).
044561,001655: 00,2216           12224                           TCF      GENSHFT2                              #  IF NON-ZERO, PROCEED WITH DECREMENTED CT
044562,001656: 
044563,001657: 00,2217           34742                           CAF      BIT10                                 #  ZERO SHIFT COUNT.  NO SHIFTS NEEDED BUT
044564,001658: 00,2220           70116                           MASK     ADDRWD                                #  WE MIGHT HAVE TO ROUND MPAC ON SLR AND
044565,001659: 00,2221           10000                           CCS      A                                     #  SRR (SCALAR ONLY).
044566,001660: 00,2222           07136                           TC       ROUNDSUB                              
044567,001661: 00,2223           16061                           TCF      DANZIG                                
044568,001662: 
044569,001663: 00,2224           54135        GENSHFT2           TS       MPTEMP                                #  DECREMENTED SHIFT COUNT TO MPTEMP.
044570,001664: 00,2225           34744                           CAF      BIT8                                  #  TEST MEANING OF LOW SEVEN BIT COUNT IN
044571,001665: 00,2226           00006                           EXTEND                                         #  MPTEMP NOW.
044572,001666: 00,2227           70116                           MP       ADDRWD                                
044573,001667: 00,2230           76245                           MASK     LOW2                                  #  JUMPS ON SHIFT DIRECTION (BIT8) AND
044574,001668: 00,2231           50000                           INDEX    A                                     
044575,001669: 00,2232           12233                           TCF      +1                                    #  ORIGINAL SHIFT DIRECTION (BIT 9).
044576,001670: 00,2233           12332                           TCF      RIGHT-                                #  NEGATIVE SHIFT COUNT FOR SL OR SLR.
044577,001671: 00,2234           12342                           TCF      LEFT                                  #  SL OR SLR.
044578,001672: 00,2235           12336                           TCF      LEFT-                                 #  NEGATIVE SHIFT COUNT WITH SR OR SRR.
044579,001673: 

Page 1054

044581,001675:                                                                                                  #  GENERAL SHIFT RIGHT.
044582,001676: 
044583,001677: 00,2236           10163        RIGHT              CCS      MODE                                  #  SEE IF VECTOR OR SCALAR.
044584,001678: 00,2237           12277                           TCF      GENSCR                                
044585,001679: 00,2240           12277                           TCF      GENSCR                                
044586,001680: 
044587,001681: 00,2241           30135                           CA       MPTEMP                                #  SEE IF SHIFT COUNT LESS THAN 14D.
044588,001682: 00,2242           63733        VRIGHT2            AD       NEG12                                 
044589,001683: 00,2243           00006                           EXTEND                                         
044590,001684: 00,2244           62127                           BZMF     VSSR                                  #  IF SO, BRANCH AND SHIFT IMMEDIATELY.
044591,001685: 
044592,001686: 00,2245           67747                           AD       NEGONE                                #  IF NOT, REDUCE MPTEMP BY A TOTAL OF 14,
044593,001687: 00,2246           54135                           TS       MPTEMP                                #  AND DO A SHIFT RIGHT AND ROUND BY 14.
044594,001688: 00,2247           34755                           CAF      ZERO                                  #  THE ROUND AT THIS STAGE MAY INTRODUCE A
044595,001689: 00,2250           54001                           TS       L                                     #  ONE BIT ERROR IN A SHIFT RIGHT 15D.
044596,001690: 00,2251           56154                           XCH      MPAC                                  
044597,001691: 00,2252           56155                           XCH      MPAC       +1                         
044598,001692: 00,2253           02272                           TC       SETROUND                              #  X COMPONENT NOW SHIFTED, SO MAKE UP THE
044599,001693: 00,2254           20155                           DAS      MPAC                                  #  ROUNDING QUANTITY (0 IN A AND 0 OR +-1
044600,001694:                                                                                                  #  IN L).
044601,001695: 00,2255           56157                           XCH      MPAC       +3                         #  REPEAT THE ABOVE PROCESS FOR Y AND Z.
044602,001696: 00,2256           56160                           XCH      MPAC       +4                         
044603,001697: 00,2257           02272                           TC       SETROUND                              
044604,001698: 00,2260           20160                           DAS      MPAC       +3                         #  NO OVERFLOW ON THESE ADDS.
044605,001699: 
044606,001700: 00,2261           56161                           XCH      MPAC       +5                         
044607,001701: 00,2262           56162                           XCH      MPAC       +6                         
044608,001702: 00,2263           02272                           TC       SETROUND                              
044609,001703: 00,2264           20162                           DAS      MPAC       +5                         
044610,001704: 
044611,001705: 00,2265           10135                           CCS      MPTEMP                                #  SEE IF DONE, DOING FINAL DECREMENT.
044612,001706: 00,2266           54135                           TS       MPTEMP                                
044613,001707: 00,2267           12242                           TCF      VRIGHT2                               
044614,001708: 00,2270           04604        BIASLO             DEC      .2974      B-1                        #  SQRT CONSTANT
044615,001709: 
044616,001710: 00,2271           16061                           TCF      DANZIG                                
044617,001711: 
044618,001712: 00,2272           60000        SETROUND           DOUBLE                                         #  MAKES UP ROUNDING QUANTITY FROM ARRIVING
044619,001713: 00,2273           54156                           TS       MPAC       +2                         #  C(A).  L IS ZERO INITIALLY.
044620,001714: 00,2274           34755                           CAF      ZERO                                  
044621,001715: 00,2275           56001                           XCH      L                                     
044622,001716: 00,2276           00002                           TC       Q                                     #  RETURN AND DO THE DAS, RESETTING L TO 0.
044623,001717: 

Page 1055

044625,001719:                                                                                                  #  PROCESS SR AND SRR FOR SCALARS.
044626,001720: 
044627,001721: 00,2277           30135        GENSCR             CA       MPTEMP                                #  SEE IF THE ORIGINAL SHIFT COUNT WAS LESS
044628,001722: 00,2300           63733                 +1        AD       NEG12                                 #  THAN 14D.
044629,001723: 00,2301           00006                           EXTEND                                         
044630,001724: 00,2302           62322                           BZMF     DOSSHFT                               #  DO THE SHIFT IMMEDIATELY IF SO.
044631,001725: 
044632,001726: 00,2303           67747                 +4        AD       NEGONE                                #  IF NOT, DECREMENT SHIFT COUNT BY 14D AND
044633,001727: 00,2304           54135                           TS       MPTEMP                                #  SHIFT MPAC RIGHT 14 PLACES.
044634,001728: 00,2305           34755                           CAF      ZERO                                  
044635,001729: 00,2306           56154                           XCH      MPAC                                  
044636,001730: 00,2307           56155                           XCH      MPAC       +1                         
044637,001731: 00,2310           54156                           TS       MPAC       +2                         
044638,001732: 00,2311           10135                           CCS      MPTEMP                                #  SEE IF FINISHED, DO FINAL DECREMENT.
044639,001733: 00,2312           54135                           TS       MPTEMP                                
044640,001734: 00,2313           02300                           TC       GENSCR     +1                         
044641,001735: 00,2314           22650        SLOPEHI            DEC      .5884                                 #  SQRT CONSTANT.
044642,001736: 00,2315           34742                           CAF      BIT10                                 #  FINISHED WITH SHIFT.  SEE IF ROUND
044643,001737: 00,2316           70116                           MASK     ADDRWD                                #  WANTED.
044644,001738: 00,2317           10000                           CCS      A                                     
044645,001739: 00,2320           07136                           TC       ROUNDSUB                              
044646,001740: 00,2321           16061                           TCF      DANZIG                                #  DO SO AND/OR EXIT.
044647,001741: 
044648,001742: 00,2322           50135        DOSSHFT            INDEX    MPTEMP                                #  PICK UP SHIFTING BIT.
044649,001743: 00,2323           34736                           CAF      BIT14                                 
044650,001744: 00,2324           54135                           TS       MPTEMP                                
044651,001745: 00,2325           34742                           CAF      BIT10                                 #  SEE IF TERMINAL ROUND DESIRED.
044652,001746: 00,2326           70116                           MASK     ADDRWD                                
044653,001747: 00,2327           10000                           CCS      A                                     
044654,001748: 00,2330           12031                           TCF      RIGHTR                                #  YES.
044655,001749: 00,2331           12033                           TCF      MPACSHR                               #  JUST SHIFT RIGHT.
044656,001750: 

Page 1056

044658,001752:                                                                                                  #  PROCESS THE RIGHT- (SL(R) WITH A NEGATIVE COUNT), LEFT-, AND LEFT OPTIONS.
044659,001753: 
044660,001754: 00,2332           40135        RIGHT-             CS       MPTEMP                                #  GET ABSOLUTE VALUE - 1 OF SHIFT COUNT
044661,001755: 00,2333           62126                           AD       OCT176                                #  UNDERSTANDING THAT BIT8 (PSEUDO-SIGN)
044662,001756: 00,2334           54135                           TS       MPTEMP                                #  WAS 1 INITIALLY.
044663,001757: 00,2335           12236                           TCF      RIGHT                                 #  DO NORMAL SHIFT RIGHT.
044664,001758: 
044665,001759: 00,2336           42126        LEFT-              CS       OCT176                                #  SAME PROLOGUE TO LEFT FOR INDEXED RIGHT
044666,001760: 00,2337           60135                           AD       MPTEMP                                #  SHIFTS WHOSE NET SHIFT COUNT IS NEGATIVE
044667,001761: 00,2340           40000                           COM                                            
044668,001762: 00,2341           54135                           TS       MPTEMP                                
044669,001763: 
044670,001764: 00,2342           10163        LEFT               CCS      MODE                                  #  SINCE LEFT SHIFTING IS SONE ONE PLACE AT
044671,001765: 00,2343           12346                           TCF      GENSCL                                #  A TIME, NO COMPARISON WITH 14 NEED BE
044672,001766: 00,2344           12346                           TCF      GENSCL                                #  DONE.  FOR SCALARS, SEE IF TERMINAL ROUND
044673,001767: 00,2345           12145                           TCF      VSSL                                  #  DESIRED.  FOR VECTORS, SHIFT IMMEDIATELY.
044674,001768: 
044675,001769: 00,2346           40116        GENSCL             CS       ADDRWD                                #  PUT ROUNDING BIT (BIT 10 OF ADDRWD) INTO
044676,001770: 00,2347           00006                           EXTEND                                         #  BIT 15 OF CYR WHERE THE ROUNDING BIT OF
044677,001771: 00,2350           74746                           MP       BIT6                                  #  A SHORT SHIFT LEFT WOULD BE
044678,001772: 00,2351           54020                           TS       CYR                                   
044679,001773: 00,2352           12103                           TCF      TSSL       +2                         #  DO THE SHIFT.
044680,001774: 

Page 1057

044682,001776:                                                                                                  #  SCALAR DIVISION INSTRUCTIONS, DDV AND BDDV, ARE EXECUTED HERE.  AT THIS POINT, THE DIVIDEND IS IN MPAC
044683,001777:                                                                                                  #  AND THE DIVISOR IN BUF.
044684,001778: 
044685,001779: 00,2353           44753        DDV/BDDV           CS       ONE                                   #  INITIALIZATION.
044686,001780: 00,2354           54136                           TS       DVSIGN                                #  +-1 FOR POSITIVE QUOTIENT - -0 FOR NEG.
044687,001781: 00,2355           54137                           TS       DVNORMCT                              #  DIVIDEND NORMALIZATION COUNT.
044688,001782: 00,2356           54140                           TS       MAXDVSW                               #  NEAR-ONE DIVIDE FLAG.
044689,001783: 
044690,001784: 00,2357           10130                           CCS      BUF                                   #  FORCE BUF POSITIVE WITH THE MAJOR PART
044691,001785: 00,2360           12516                           TCF      BUFPOS                                #  NON-ZERO.
044692,001786: 00,2361           12363                           TCF      +2                                    
044693,001787: 00,2362           12531                           TCF      BUFNEG                                
044694,001788: 
044695,001789: 00,2363           54156        BUFZERO            TS       MPAC       +2                         #  ZERO THIS.
044696,001790: 00,2364           07257                           TC       TPAGREE                               #  FORCE SIGN AGREEMENT BEFORE OVERFLOW
044697,001791: 
044698,001792: 00,2365           10154                           CCS      MPAC                                  #  TEST TO SEE IF MPAC NON-ZERO.  (TOO BIG)
044699,001793: 00,2366           12414                           TCF      OVF+                                  #  MAJOR PART OF DIVIDEND IS POSITIVE NON-0
044700,001794: 00,2367           12371                           TCF      +2                                    
044701,001795: 00,2370           12413                           TCF      OVF+       -1                         #  MAJOR PART OF DIVIDEND IS NEG. NON-ZERO
044702,001796: 
044703,001797: 00,2371           56131                           XCH      BUF        +1                         #  SHIFT DIVIDEND AND DIVISOR LEFT 14.
044704,001798: 00,2372           56130                           XCH      BUF                                   
044705,001799: 00,2373           56155                           XCH      MPAC       +1                         
044706,001800: 00,2374           56154                           XCH      MPAC                                  
044707,001801: 00,2375           10130                           CCS      BUF                                   #  TRY AGAIN ON FORMER MINOR PART.
044708,001802: 00,2376           12422                           TCF      BUF+                                  
044709,001803: 00,2377           12401                           TCF      +2                                    #  OVERFLOW ON ZERO DIVISOR.
044710,001804: 00,2400           12416                           TCF      BUF-                                  
044711,001805: 
044712,001806: 00,2401           40154                           CS       MPAC                                  #  SIGN OF MPAC DETERMINES SIGN OF RESULT.
044713,001807: 00,2402           00006        SGNDVOVF           EXTEND                                         
044714,001808: 00,2403           62405                           BZMF     +2                                    
044715,001809: 00,2404           24136                           INCR     DVSIGN                                #  NEGMAX IN MPAC PERHAPS.
044716,001810: 00,2405           34733        DVOVF              CAF      POSMAX                                #  ON DIVISION OVERFLOW OF ANY SORT, SET
044717,001811: 00,2406           54154                           TS       MPAC                                  #  SET DP MPAC TO +-POSMAX.
044718,001812: 00,2407           02630                           TC       FINALDV    +3                         
044719,001813: 00,2410           34753                           CAF      ONE                                   #  SET OVERFLOW INDICATOR AND EXIT.
044720,001814: 00,2411           54121                           TS       OVFIND                                
044721,001815: 00,2412           06061                           TC       DANZIG                                
044722,001816: 
044723,001817: 00,2413           24136                 -1        INCR     DVSIGN                                
044724,001818: 00,2414           40131        OVF+               CS       BUF        +1                         #  LOAD LOWER ORDER PART OF DIVISOR.
044725,001819: 00,2415           12402                           TCF      SGNDVOVF                              #  GET SIGN OF RESULT.
044726,001820: 
044727,001821: 00,2416           00006        BUF-               EXTEND                                         #  IF BUF IS NEGATIVE, COMPLEMENT IT AND
044728,001822: 00,2417           40131                           DCS      BUF                                   #  MAINTAIN DVSIGN FOR FINAL QUOTIENT SIGN.
044729,001823: 00,2420           52131                           DXCH     BUF                                   
044730,001824: 00,2421           24136                           INCR     DVSIGN                                #  NOW -0.
044731,001825: 

Page 1058

044733,001827: 00,2422           10154        BUF+               CCS      MPAC                                  #  FORCE MPAC POSITIVE, CHECKING FOR ZERO
044734,001828: 00,2423           12437                           TCF      MPAC+                                 #  DIVIDEND IN THE PROCESS.
044735,001829: 00,2424           12426                           TCF      +2                                    
044736,001830: 00,2425           12433                           TCF      MPAC-                                 
044737,001831: 00,2426           10155                           CCS      MPAC       +1                         
044738,001832: 00,2427           12437                           TCF      MPAC+                                 
044739,001833: 00,2430           16061                           TCF      DANZIG                                #  EXIT IMMEDIATELY ON ZERO DIVIDEND.
044740,001834: 00,2431           12433                           TCF      MPAC-                                 
044741,001835: 00,2432           16061                           TCF      DANZIG                                
044742,001836: 
044743,001837: 00,2433           00006        MPAC-              EXTEND                                         #  FORCE MPAC POSITIVE AS BUF IN BUF-.
044744,001838: 00,2434           40155                           DCS      MPAC                                  
044745,001839: 00,2435           52155                           DXCH     MPAC                                  
044746,001840: 00,2436           24136                           INCR     DVSIGN                                #  NOW +1 OR -0.
044747,001841: 

Page 1059

044749,001843: 00,2437           40154        MPAC+              CS       MPAC                                  #  CHECK FOR DIVISION OVERFLOW.  IF THE
044750,001844: 00,2440           67747                           AD       NEGONE                                #  MAJOR PART OF THE DIVIDEND IS LESS THAN
044751,001845: 00,2441           60130                           AD       BUF                                   #  THE MAJOR PART OF THE DIVISOR BY AT
044752,001846: 00,2442           10000                           CCS      A                                     #  LEAST TWO, WE CAN PROCEED IMMEDIATELY
044753,001847: 00,2443           12505                           TCF      DVNORM                                #  WITHOUT NORMALIZATION PRODUCING A DVMAX.
044754,001848: 00,2444           60001        -1/2+2             OCT      60001                                 #  USED IN SQRTSUB.
044755,001849: 
044756,001850: 00,2445           12446                           TCF      +1                                    #  IF THE ABOVE DOES NOT HOLD, FORCE SIGN
044757,001851: 00,2446           34736                           CAF      HALF                                  #  AGREEMENT IN NUMERATOR AND DENOMINATOR
044758,001852: 00,2447           60000                           DOUBLE                                         #  TO FACILITATE OVERFLOW AND NEAR-ONE
044759,001853: 00,2450           60155                           AD       MPAC       +1                         #  CHECKING.
044760,001854: 00,2451           54155                           TS       MPAC       +1                         
044761,001855: 00,2452           34755                           CAF      ZERO                                  
044762,001856: 00,2453           64733                           AD       POSMAX                                
044763,001857: 00,2454           26154                           ADS      MPAC                                  
044764,001858: 
044765,001859: 00,2455           34736                           CAF      HALF                                  #  SAME FOR BUF.
044766,001860: 00,2456           60000                           DOUBLE                                         
044767,001861: 00,2457           60131                           AD       BUF        +1                         
044768,001862: 00,2460           54131                           TS       BUF        +1                         
044769,001863: 00,2461           34755                           CAF      ZERO                                  
044770,001864: 00,2462           64733                           AD       POSMAX                                
044771,001865: 00,2463           26130                           ADS      BUF                                   
044772,001866: 
044773,001867: 00,2464           40154                           CS       MPAC                                  #  CHECK MAGNITUDE OF SIGN-CORRECTED
044774,001868: 00,2465           60130                           AD       BUF                                   #  OPERANDS.
044775,001869: 00,2466           10000                           CCS      A                                     
044776,001870: 00,2467           12505                           TCF      DVNORM                                #  DIVIDE OK - WILL NOT BECOME MAXDV CASE.
044777,001871: 00,2470           00133        LBUF2              ADRES    BUF2                                  
044778,001872: 00,2471           12405                           TCF      DVOVF                                 #  DIVISOR NOT LESS THAN DIVIDEND - OVF.
044779,001873: 
044780,001874: 00,2472           54140                           TS       MAXDVSW                               #  IF THE MAJOR PARTS OF THE DIVIDEND AND
044781,001875: 00,2473           40155                           CS       MPAC       +1                         #  DIVISOR ARE EQUAL, A SPECIAL APPROXIMA-
044782,001876: 00,2474           60131                           AD       BUF        +1                         #  TION IS USED (PROVIDED THE DIVISION IS
044783,001877: 00,2475           00006                           EXTEND                                         #  POSSIBLE, OF COURSE).
044784,001878: 00,2476           62405                           BZMF     DVOVF                                 
044785,001879: 00,2477           12505                           TCF      DVNORM                                #  IF NO OVERFLOW.
044786,001880: 

Page 1060

044788,001882: 00,2500           00006        BUFNORM            EXTEND                                         #  ADD -1 TO AUGMENT SHIFT COUNT AND SHIFT
044789,001883: 00,2501           24137                           AUG      DVNORMCT                              #  LEFT ONE PLACE.
044790,001884: 00,2502           00006                           EXTEND                                         
044791,001885: 00,2503           30131                           DCA      BUF                                   
044792,001886: 00,2504           20131                           DAS      BUF                                   
044793,001887: 
044794,001888: 00,2505           30130        DVNORM             CA       BUF                                   #  SEE IF DIVISOR NORMALIZED YET.
044795,001889: 00,2506           60000                           DOUBLE                                         
044796,001890: 00,2507           54000                           OVSK                                           
044797,001891: 00,2510           12500                           TCF      BUFNORM                               #  NO - SHIFT LEFT ONE AND TRY AGAIN.
044798,001892: 
044799,001893: 00,2511           52155                           DXCH     MPAC                                  #  CALL DIVIDEND NORMALIZATION SEQUENCE
044800,001894: 00,2512           50137                           INDEX    DVNORMCT                              #  PRIOR TO DOING THE DIVIDE.
044801,001895: 00,2513           02565                           TC       MAXTEST                               
044802,001896: 
044803,001897: 00,2514           54156                           TS       MPAC       +2                         #  RETURNS WITH DIVISION DONE AND C(A) = 0.
044804,001898: 00,2515           16061                           TCF      DANZIG                                
044805,001899: 
044806,001900: 00,2516           10000        BUFPOS             CCS      A                                     
044807,001901: 00,2517           12422                           TCF      BUF+                                  #  TO BUF+ IF BUF IS GREATER THAN +1.
044808,001902: 
044809,001903: 00,2520           40131                           CS       BUF        +1                         #  IF BUF IS +1, FORCING SIGN AGREEMENT
044810,001904: 00,2521           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
044811,001905: 00,2522           62422                           BZMF     BUF+                                  #  BRANCH IF SIGNS AGREE.
044812,001906: 
044813,001907: 00,2523           34736                           CA       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
044814,001908: 00,2524           60000                 +6        DOUBLE                                         
044815,001909: 00,2525           26131                           ADS      BUF        +1                         
044816,001910: 00,2526           34755                           CA       ZERO                                  
044817,001911: 00,2527           54130                           TS       BUF                                   
044818,001912: 00,2530           12363                           TCF      BUFZERO                               
044819,001913: 
044820,001914: 00,2531           10000        BUFNEG             CCS      A                                     
044821,001915: 00,2532           12416                           TCF      BUF-                                  #  TO BUF- IF BUF IS LESS THAN -1.
044822,001916: 
044823,001917: 00,2533           30131                           CA       BUF        +1                         #  IF BUF IS -1, FORCING SIGN AGREEMENT
044824,001918: 00,2534           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
044825,001919: 00,2535           62416                           BZMF     BUF-                                  #  BRANCH IF SIGNS AGREE.
044826,001920: 
044827,001921: 00,2536           44736                           CS       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
044828,001922: 00,2537           12524                           TCF      BUFPOS     +6                         
044829,001923: 

Page 1061

044831,001925:                                                                                                  #  THE FOLLOWING ARE PROLOGUES TO SHIFT THE DIVIDEND ARRIVING IN A AND L BEFORE THE DIVIDE.
044832,001926: 
044833,001927: 00,2540           22021                 -21D      LXCH     SR                                    #  SPECIAL PROLOGUE FOR UNIT WHEN THE
044834,001928: 00,2541           00006                           EXTEND                                         #  LENGTH OF THE ARGUMENT WAS NOT LESS THAN
044835,001929: 00,2542           74736                           MP       HALF                                  #  .5.  IN THIS CASE, EACH COMPONENT MUST BE
044836,001930: 00,2543           56001                           XCH      L                                     #  SHIFTED RIGHT ONE TO PRODUCE A HALF-UNIT
044837,001931: 00,2544           60021                           AD       SR                                    #  VECTOR.
044838,001932: 00,2545           56001                           XCH      L                                     
044839,001933: 00,2546           12571                           TCF      GENDDV     +1                         #  WITH DP DIVIDEND IN A,L.
044840,001934: 
044841,001935: 00,2547           20001                           DDOUBL                                         #  PROLOGUE WHICH NORMALIZES THE DIVIDEND
044842,001936: 00,2550           20001                           DDOUBL                                         #  WHEN IT IS KNOWN THAT NO DIVISION
044843,001937: 00,2551           20001                           DDOUBL                                         #  OVERFLOW WILL OCCUR.
044844,001938: 00,2552           20001                           DDOUBL                                         
044845,001939: 00,2553           20001                           DDOUBL                                         
044846,001940: 00,2554           20001                           DDOUBL                                         
044847,001941: 00,2555           20001                           DDOUBL                                         
044848,001942: 00,2556           20001                           DDOUBL                                         
044849,001943: 00,2557           20001                           DDOUBL                                         
044850,001944: 00,2560           20001                           DDOUBL                                         
044851,001945: 00,2561           20001                           DDOUBL                                         
044852,001946: 00,2562           20001                           DDOUBL                                         
044853,001947: 00,2563           20001                           DDOUBL                                         
044854,001948: 00,2564           52155                           DXCH     MPAC                                  
044855,001949: 
044856,001950: 00,2565           10140        MAXTEST            CCS      MAXDVSW                               #  0 IF MAJORS MIGHT BE =, -1 OTHERWISE.
044857,001951: 00,2566           06552        BIASHI             DEC      .4192      B-1                        #  SQRT CONSTANTS
044858,001952: 
044859,001953: 00,2567           12642                           TCF      MAXDV                                 #  CHECK TO SEE IF THEY ARE NOW EQUAL.
044860,001954: 

Page 1062

044862,001956:                                                                                                  #  THE FOLLOWING IS A GENERAL PURPOSE DOUBLE PRECISION DIVISION ROUTINE.  IT DIVIDES MPAC BY BUF AND LEAVES
044863,001957:                                                                                                  #  THE RESULT IN MPAC.  THE FOLLOWING CONDITIONS MUST BE SATISFIED:
044864,001958: 
044865,001959:                                                                                                  #        1.      THE DIVISOR (BUF) MUST BE POSITIVE AND NOT LESS THAN .5.
044866,001960: 
044867,001961:                                                                                                  #        2.      THE DIVIDEND (MPAC) MUST BE POSITIVE WITH THE MAJOR PART OF MPAC STRICTLY LESS THAN THAT OF BUF
044868,001962:                                                                                                  #                (A SPECIAL APPROXIMATION, MAXDV, IS USED WHEN THE MAJOR PARTS ARE EQUAL).
044869,001963: 
044870,001964:                                                                                                  #  UNDERSTANDING THAT A/B = Q + S(R/B) WHERE S = 2(-14) AND Q AND R ARE QUOTIENT AND REMAINDER, RESPEC-
044871,001965:                                                                                                  #  TIVELY, THE FOLLOWING APPROXIMATION IS OBTAINED BY MULTIPLYING ABOVE AND BELOW BY C - SD AND NEGLECTING TERMS OF
044872,001966:                                                                                                  #  ORDER S-SQUARED (POSSIBLY INTRODUCING ERROR INTO THE LOW TWO BITS OF THE RESULT).  SIGN AGREEMENT IS UNNECESSARY.
044873,001967: 
044874,001968:                                                                                                  #        A + SB .      (R - QD)                                             A + SB
044875,001969:                                                                                                  #        ------ = Q + S(------) WHERE Q AND R ARE QUOTIENT AND REMAINDER OF ------ RESPECTIVELY.
044876,001970:                                                                                                  #        C + SD        (  C   )                                                C
044877,001971: 
044878,001972: 00,2570           52155        GENDDV             DXCH     MPAC                                  #  WE NEED A AND B ONLY FOR FIRST DV.
044879,001973: 00,2571           00006                 +1        EXTEND                                         #  (SPECIAL UNIT PROLOGUE ENTERS HERE).
044880,001974: 00,2572           10130                           DV       BUF                                   #  A NOW CONTAINS Q AND L, R.
044881,001975: 00,2573           52155                           DXCH     MPAC                                  
044882,001976: 
044883,001977: 00,2574           40154                           CS       MPAC                                  #  FORM DIVIDEND FOR MINOR PART OF RESULT.
044884,001978: 00,2575           00006                           EXTEND                                         
044885,001979: 00,2576           70131                           MP       BUF        +1                         
044886,001980: 00,2577           60155                           AD       MPAC       +1                         #  OVERFLOW AT THIS POINT IS POSITIVE SINCE
044887,001981: 00,2600           54000                           OVSK                                           #  R IS POSITIVE IN EVERY CASE.
044888,001982: 00,2601           12606                           TCF      +5                                    
044889,001983: 
044890,001984: 00,2602           00006                           EXTEND                                         #  OVERFLOW CAN BE REMOVED BY SUBTRACTING C
044891,001985: 00,2603           60130                           SU       BUF                                   #  (BUF) ONCE SINCE R IS ALWAYS LESS THAN C
044892,001986: 00,2604           24154                           INCR     MPAC                                  #  IN THIS CASE.  INCR COMPENSATES SUBTRACT.
044893,001987: 00,2605           12610                           TCF      +DOWN                                 #  (SINCE C(A) IS STILL POSITIVE).
044894,001988: 
044895,001989: 00,2606           00006                 +5        EXTEND                                         #  C(A) CAN BE MADE LESS THAN C IN MAGNI-
044896,001990: 00,2607           62620                           BZMF     -UP                                   #  TUDE BY DIMINISHING IT BY C (SINCE C IS
044897,001991:                                                                                                  #  NOT LESS THAN .5) UNLESS C(A) = 0.
044898,001992: 

Page 1063

044900,001994: 00,2610           00006        +DOWN              EXTEND                                         
044901,001995: 00,2611           60130                           SU       BUF                                   #  IF POSITIVE, REDUCE ONLY IF NECESSARY
044902,001996: 00,2612           00006                           EXTEND                                         #  SINCE THE COMPENSATING INCR MIGHT CAUSE
044903,001997: 00,2613           12616                           BZF      +3                                    #  OVERFLOW.
044904,001998: 00,2614           00006                           EXTEND                                         #  DONT SUBTRACT UNLESS RESULT IS POSITIVE
044905,001999: 00,2615           62624                           BZMF     ENDMAXDV                              #  OR ZERO.
044906,002000: 
044907,002001: 00,2616           24154                 +3        INCR     MPAC                                  #  KEEP SUBTRACT HERE AND COMPENSATE.
044908,002002: 00,2617           12625                           TCF      FINALDV                               
044909,002003: 
044910,002004: 00,2620           00006        -UP                EXTEND                                         #  IF ZERO, SET MINOR PART OF RESULT TO
044911,002005: 00,2621           12630                           BZF      FINALDV    +3                         #  ZERO.
044912,002006: 
044913,002007: 00,2622           00006                           EXTEND                                         #  IF NEGATIVE, ADD C TO A, SUBTRACTING ONE
044914,002008: 00,2623           26154                           DIM      MPAC                                  #  TO COMPENSATE.  DIM IS OK HERE SINCE THE
044915,002009: 00,2624           60130        ENDMAXDV           AD       BUF                                   #  MAJOR PART NEVER GOES NEGATIVE.
044916,002010: 

Page 1064

044918,002012: 00,2625           22007        FINALDV            ZL                                             #  DO DV TO OBTAIN MINOR PART OF RESULT.
044919,002013: 00,2626           00006                           EXTEND                                         
044920,002014: 00,2627           10130                           DV       BUF                                   
044921,002015: 00,2630           54155                 +3        TS       MPAC       +1                         
044922,002016: 
044923,002017: 00,2631           10136                           CCS      DVSIGN                                #  LEAVE RESULT POSITIVE UNLESS C(DVSIGN)=
044924,002018: 00,2632           00002                           TC       Q                                     #  -0.
044925,002019: 00,2633           00002                           TC       Q                                     
044926,002020: 00,2634           00002                           TC       Q                                     
044927,002021: 
044928,002022: 00,2635           00006                           EXTEND                                         
044929,002023: 00,2636           40155                           DCS      MPAC                                  
044930,002024: 00,2637           52155                           DXCH     MPAC                                  
044931,002025: 00,2640           34755                           CAF      ZERO                                  #  SO WE ALWAYS RETURN WITH C(A) = 0.
044932,002026: 00,2641           00002                           TC       Q                                     
044933,002027: 

Page 1065

044935,002029:                                                                                                  #  IF THE MAJOR PARTS OF THE DIVISOR AND DIVIDEND ARE EQUAL, BUT THE MINOR PARTS ARE SUCH THAT THE
044936,002030:                                                                                                  #  DIVIDEND IS STRICTLY LESS THAN THE DIVISOR IN MAGNITUDE, THE FOLLOWING APPROXIMATION IS USED.  THE ASSUMPTIONS
044937,002031:                                                                                                  #  ARE THE SAME AS THE GENERAL ROUTINE WITH THE ADDITION THAT SIGN AGREEMENT IS NECESSARY (B, C, & D POSITIVE).
044938,002032: 
044939,002033:                                                                                                  #        C + SB .          (C + B - D)
044940,002034:                                                                                                  #        ------ = 37777 + S(---------)
044941,002035:                                                                                                  #        C + SD            (    C    )
044942,002036: 
044943,002037:                                                                                                  #  THE DIVISION MAY BE PERFORMED IMMEDIATELY SINCE B IS STRICTLY LESS THAN D AND C IS NOT LESS THAN .5.
044944,002038: 
044945,002039: 00,2642           40154        MAXDV              CS       MPAC                                  #  SEE IF MAXDV CASE STILL HOLDS AFTER
044946,002040: 00,2643           60130                           AD       BUF                                   #  NORMALIZATION.
044947,002041: 00,2644           00006                           EXTEND                                         
044948,002042: 00,2645           12647                           BZF      +2                                    
044949,002043: 00,2646           12570                           TCF      GENDDV                                #  MPAC NOW LESS THAN BUF - DIVIDE AS USUAL
044950,002044: 
044951,002045: 00,2647           34733                 +2        CAF      POSMAX                                #  SET MAJOR PART OF RESULT.
044952,002046: 00,2650           54154                           TS       MPAC                                  
044953,002047: 
044954,002048: 00,2651           40131                           CS       BUF        +1                         #  FORM DIVIDEND OF MINOR PART OF RESULT.
044955,002049: 00,2652           60155                           AD       MPAC       +1                         
044956,002050: 00,2653           12624                           TCF      ENDMAXDV                              #  GO ADD C AND DO DIVIDE, ATTACHING SIGN
044957,002051:                                                                                                  #  BEFORE EXITING.
044958,002052: 

Page 1066

044960,002054:                                                                                                  #  VECTOR DIVIDED BY SCALAR, V/SC, IS EXECUTED HERE.  THE VECTOR IS NOW IN MPAC WITH SCALAR IN BUF.
044961,002055: 
044962,002056: 00,2654           44753        V/SC2              CS       ONE                                   #  INITIALIZE DIVIDEND NORMALIZATION COUNT
044963,002057: 00,2655           54137                           TS       DVNORMCT                              #  AND DIVISION SIGN REGISTER.
044964,002058: 00,2656           54127                           TS       VBUF       +5                         
044965,002059: 
044966,002060: 00,2657           03010                           TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
044967,002061: 
044968,002062: 00,2660           52131                           DXCH     BUF                                   
044969,002063: 00,2661           07544                           TC       ALSIGNAG                              #  SIGN AGREE BUF
044970,002064: 00,2662           52131                           DXCH     BUF                                   
044971,002065: 00,2663           10130                           CCS      BUF                                   #  FORCE DIVISOR POSITIVE WITH MAJOR PART
044972,002066: 00,2664           12721                           TCF      /BUF+                                 #  NON-ZERO (IF POSSIBLE).
044973,002067: 00,2665           12667                           TCF      +2                                    
044974,002068: 00,2666           12715                           TCF      /BUF-                                 
044975,002069: 
044976,002070: 00,2667           56131                           XCH      BUF        +1                         #  SHIFT VECTOR AND SCALAR LEFT 14.
044977,002071: 00,2670           56130                           XCH      BUF                                   
044978,002072: 00,2671           56155                           XCH      MPAC       +1                         
044979,002073: 00,2672           56154                           XCH      MPAC                                  
044980,002074: 00,2673           00006                           EXTEND                                         #  CHECK FOR OVERFLOW IN EACH CASE.
044981,002075: 00,2674           12676                           BZF      +2                                    
044982,002076: 00,2675           12405                           TCF      DVOVF                                 
044983,002077: 
044984,002078: 00,2676           56160                           XCH      MPAC       +4                         
044985,002079: 00,2677           56157                           XCH      MPAC       +3                         
044986,002080: 00,2700           00006                           EXTEND                                         
044987,002081: 00,2701           12703                           BZF      +2                                    
044988,002082: 00,2702           12405                           TCF      DVOVF                                 
044989,002083: 
044990,002084: 00,2703           56162                           XCH      MPAC       +6                         
044991,002085: 00,2704           56161                           XCH      MPAC       +5                         
044992,002086: 00,2705           00006                           EXTEND                                         
044993,002087: 00,2706           12710                           BZF      +2                                    
044994,002088: 00,2707           12405                           TCF      DVOVF                                 
044995,002089: 
044996,002090: 00,2710           10130                           CCS      BUF                                   
044997,002091: 00,2711           12721                           TCF      /BUF+                                 
044998,002092: 00,2712           12405                           TCF      DVOVF                                 #  ZERO DIVISOR - OVERFLOW.
044999,002093: 00,2713           12715                           TCF      /BUF-                                 
045000,002094: 00,2714           12405                           TCF      DVOVF                                 
045001,002095: 
045002,002096: 00,2715           00006        /BUF-              EXTEND                                         #  ON NEGATIVE, COMPLEMENT BUF AND MAINTAIN
045003,002097: 00,2716           40131                           DCS      BUF                                   #  DVSIGN IN VBUF +5.
045004,002098: 00,2717           52131                           DXCH     BUF                                   
045005,002099: 00,2720           24127                           INCR     VBUF       +5                         
045006,002100: 

Page 1067

045008,002102: 00,2721           00006        /BUF+              EXTEND                                         
045009,002103: 00,2722           30131                           DCA      BUF                                   #  LEAVE ABS(ORIG DIVISOR) IN BUF2
045010,002104: 00,2723           52134                           DXCH     BUF2                                  #  FOR OVERFLOW TESTING
045011,002105: 00,2724           12732                           TCF      /NORM                                 #  NORMALIZE DIVISOR IN BUF.
045012,002106: 
045013,002107: 00,2725           00006        /NORM2             EXTEND                                         #  IF LESS THAN .5, AUGMENT DVNORMCT AND
045014,002108: 00,2726           24137                           AUG      DVNORMCT                              #  DOUBLE DIVISOR.
045015,002109: 00,2727           00006                           EXTEND                                         
045016,002110: 00,2730           30131                           DCA      BUF                                   
045017,002111: 00,2731           20131                           DAS      BUF                                   
045018,002112: 
045019,002113: 00,2732           30130        /NORM              CA       BUF                                   #  SEE IF DIVISOR NORMALIZED.
045020,002114: 00,2733           60000                           DOUBLE                                         
045021,002115: 00,2734           54000                           OVSK                                           
045022,002116: 00,2735           12725                           TCF      /NORM2                                #  DOUBLE AND TRY AGAIN IF NOT.
045023,002117: 
045024,002118: 00,2736           02750                           TC       V/SCDV                                #  DO X COMPONENT DIVIDE.
045025,002119: 00,2737           52160                           DXCH     MPAC       +3                         #  SUPPLY ARGUMENTS IN USUAL SEQUENCE.
045026,002120: 00,2740           52155                           DXCH     MPAC                                  
045027,002121: 00,2741           52160                           DXCH     MPAC       +3                         
045028,002122: 
045029,002123: 00,2742           02750                           TC       V/SCDV                                #  Y COMPONENT.
045030,002124: 00,2743           52162                           DXCH     MPAC       +5                         
045031,002125: 00,2744           52155                           DXCH     MPAC                                  
045032,002126: 00,2745           52162                           DXCH     MPAC       +5                         
045033,002127: 
045034,002128: 00,2746           02750                           TC       V/SCDV                                #  Z COMPONENT.
045035,002129: 00,2747           17420                           TCF      VROTATEX                              #  GO RE-ARRANGE COMPONENTS BEFORE EXIT.
045036,002130: 

Page 1068

045038,002132:                                                                                                  #  SUBROUTINE USED BY V/SC TO DIVIDE VECTOR COMPONENT IN MPAC,+1 BY THE SCALAR GIVEN IN BUF.
045039,002133: 
045040,002134: 00,2750           30127        V/SCDV             CA       VBUF       +5                         #  REFLECTS SIGN OF SCALAR.
045041,002135: 00,2751           54136                           TS       DVSIGN                                
045042,002136: 
045043,002137: 00,2752           10154                           CCS      MPAC                                  #  FORCE MPAC POSITIVE, EXITING ON ZERO.
045044,002138: 00,2753           12767                           TCF      /MPAC+                                
045045,002139: 00,2754           12756                           TCF      +2                                    
045046,002140: 00,2755           12763                           TCF      /MPAC-                                
045047,002141: 
045048,002142: 00,2756           10155                           CCS      MPAC       +1                         
045049,002143: 00,2757           12767                           TCF      /MPAC+                                
045050,002144: 00,2760           00002                           TC       Q                                     
045051,002145: 00,2761           12763                           TCF      /MPAC-                                
045052,002146: 00,2762           00002                           TC       Q                                     
045053,002147: 
045054,002148: 00,2763           00006        /MPAC-             EXTEND                                         #  USUAL COMPLEMENTING AND SETTING OF SIGN.
045055,002149: 00,2764           40155                           DCS      MPAC                                  
045056,002150: 00,2765           52155                           DXCH     MPAC                                  
045057,002151: 00,2766           24136                           INCR     DVSIGN                                
045058,002152: 
045059,002153: 00,2767           44753        /MPAC+             CS       ONE                                   #  INITIALIZE NEAR-ONE SWITCH.
045060,002154: 00,2770           54140                           TS       MAXDVSW                               
045061,002155: 
045062,002156: 00,2771           40154                           CS       MPAC                                  #  CHECK POSSIBLE OVERFLOW.
045063,002157: 00,2772           60133                           AD       BUF2                                  #  UNNORMALIZED INPUT DIVISOR.
045064,002158: 00,2773           10000                           CCS      A                                     
045065,002159: 00,2774           13004                           TCF      DDVCALL                               #  NOT NEAR-ONE
045066,002160: 00,2775           12777                           TCF      +2                                    #  +0 IS JUST POSSIBLE
045067,002161: 00,2776           12405                           TCF      DVOVF                                 #  NO HOPE
045068,002162: 00,2777           54140                           TS       MAXDVSW                               #  SIGNAL POSSIBLE NEAR-ONE CASE
045069,002163: 00,3000           40155                           CS       MPAC       +1                         #  SEE IF DIVISION CAN BE DONE
045070,002164: 00,3001           60134                           AD       BUF2       +1                         
045071,002165: 00,3002           00006                           EXTEND                                         
045072,002166: 00,3003           62405                           BZMF     DVOVF                                 
045073,002167: 
045074,002168: 00,3004           52155        DDVCALL            DXCH     MPAC                                  #  CALL PRE-DIVIDE NORMALIZATION.
045075,002169: 00,3005           50137                           INDEX    DVNORMCT                              
045076,002170: 00,3006           12565                           TCF      MAXTEST                               
045077,002171: 

Page 1069

045079,002173: 00,3007           32506        SLOPELO            DEC      .8324                                 
045080,002174: 
045081,002175: 00,3010           56002        VECAGREE           XCH      Q                                     #  SAVE Q IN A
045082,002176: 00,3011           52155                           DXCH     MPAC                                  
045083,002177: 00,3012           07544                           TC       ALSIGNAG                              #  SIGNAGREE MPAC
045084,002178: 00,3013           52155                           DXCH     MPAC                                  
045085,002179: 00,3014           52160                           DXCH     MPAC       +3                         
045086,002180: 00,3015           07544                           TC       ALSIGNAG                              #  SIGN AGREE MPAC +3
045087,002181: 00,3016           52160                           DXCH     MPAC       +3                         
045088,002182: 00,3017           52162                           DXCH     MPAC       +5                         
045089,002183: 00,3020           07544                           TC       ALSIGNAG                              #  SIGNAGREE MPAC +5
045090,002184: 00,3021           52162                           DXCH     MPAC       +5                         
045091,002185: 00,3022           00000                           TC       A                                     
045092,002186: 

Page 1070

045094,002188:                                                                                                  #  THE FOLLOWING ROUTINE EXECUTES THE UNIT INSTRUCTION, WHICH TAKES THE UNIT OF THE VECTOR IN MPAC.
045095,002189: 
045096,002190: 00,3023           03010        UNIT               TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
045097,002191: 00,3024           07532                           TC       MPACVBUF                              #  SAVE ARGUMENT IN VBUF
045098,002192: 00,3025           34755                           CAF      ZERO                                  #  MUST SENSE OVERFLOW IN FOLLOWING DOT.
045099,002193: 00,3026           56121                           XCH      OVFIND                                
045100,002194: 00,3027           54141                           TS       TEM1                                  
045101,002195: 00,3030           03317                           TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045102,002196: 00,3031           30141                           CA       TEM1                                  
045103,002197: 00,3032           56121                           XCH      OVFIND                                
045104,002198: 00,3033           00006                           EXTEND                                         
045105,002199: 00,3034           13036                           BZF      +2                                    
045106,002200: 00,3035           12405                           TCF      DVOVF                                 
045107,002201: 00,3036           00006                           EXTEND                                         
045108,002202: 00,3037           30155                           DCA      MPAC                                  #  LEAVE THE SQUARE OF THE LENGTH OF THE
045109,002203: 00,3040           50120                           INDEX    FIXLOC                                #  ARGUMENT IN LVSQUARE.
045110,002204: 00,3041           52043                           DXCH     LVSQUARE                              
045111,002205: 
045112,002206: 00,3042           03343                           TC       SQRTSUB                               #  GO TAKE THE NORMALIZED SQUARE ROOT.
045113,002207: 
045114,002208: 00,3043           10154                           CCS      MPAC                                  #  CHECK FOR UNIT OVERFLOW.
045115,002209: 00,3044           13051                           TCF      +5                                    #  MPAC IS NOT LESS THAN .5 UNLESS
045116,002210: 00,3045           54001                           TS       L                                     
045117,002211: 00,3046           50120                           INDEX    FIXLOC                                
045118,002212: 00,3047           52045                           DXCH     LV                                    
045119,002213: 00,3050           12405                           TCF      DVOVF                                 #  INPUT TO SQRTSUB WAS 0.
045120,002214: 
045121,002215: 00,3051           44317                           CS       FOURTEEN                              #  SEE IF THE INPUT WAS SO SMALL THE THE
045122,002216: 00,3052           60135                           AD       MPTEMP                                #  FIRST TWO REGISTERS OF THE SQUARE WERE 0
045123,002217: 00,3053           10000                           CCS      A                                     
045124,002218: 00,3054           40000                           COM                                            #  IF SO, SAVE THE NEGATIVE OF THE SHIFT
045125,002219: 00,3055           13133                           TCF      SMALL                                 #  COUNT -15D.
045126,002220: 
045127,002221: 00,3056           13065                           TCF      LARGE                                 #  (THIS IS USUALLY THE CASE.)
045128,002222: 
045129,002223: 00,3057           44761                           CS       THIRTEEN                              #  IF THE SHIFT COUNT WAS EXACTLY 14, SET
045130,002224: 00,3060           54135                           TS       MPTEMP                                #  THE PRE-DIVIDE NORM COUNT TO -13D.
045131,002225: 
045132,002226: 00,3061           30154                           CA       MPAC                                  #  SHIFT THE LENGTH RIGHT 14 BEFORE STORING
045133,002227: 00,3062           54001        SMALL2             TS       L                                     #  (SMALL EXITS TO THIS POINT).
045134,002228: 00,3063           34755                           CAF      ZERO                                  
045135,002229: 00,3064           13112                           TCF      LARGE2                                #  GO TO STORE LENGTH AND PROCEED.
045136,002230: 
045137,002231: 00,3065           10135        LARGE              CCS      MPTEMP                                #  MOST ALL CASES COME HERE.
045138,002232: 00,3066           13074                           TCF      LARGE3                                #  SEE IF NO NORMALIZATION WAS REQUIRED BY
045139,002233: 
045140,002234: 00,3067           42024                           CS       SRDDV                                 #  SQRT, AND IF SO, SET UP FOR A SHIFT
045141,002235: 00,3070           54135                           TS       MPTEMP                                #  RIGHT 1 BEFORE DIVIDING TO PRODUCE
045142,002236: 00,3071           00006                           EXTEND                                         #  THE DESIRED HALF UNIT VECTOR.
045143,002237: 00,3072           30155                           DCA      MPAC                                  

Page 1071

045145,002239: 00,3073           13112                           TCF      LARGE2                                
045146,002240: 

Page 1072

045148,002242: 00,3074           40000        LARGE3             COM                                            #  LEAVE NEGATIVE OF SHIFT COUNT-1 FOR
045149,002243: 00,3075           54135                           TS       MPTEMP                                #  PREDIVIDE LEFT SHIFT.
045150,002244: 
045151,002245: 00,3076           40000                           COM                                            #  PICK UP REQUIRED SHIFTING BIT TO UNNORM-
045152,002246: 00,3077           50000                           INDEX    A                                     #  ALIZE THE SQRT RESULT.
045153,002247: 00,3100           34736                           CAF      BIT14                                 
045154,002248: 00,3101           54130                           TS       BUF                                   
045155,002249: 00,3102           00006                           EXTEND                                         
045156,002250: 00,3103           70155                           MP       MPAC       +1                         
045157,002251: 00,3104           56130                           XCH      BUF                                   
045158,002252: 00,3105           00006                           EXTEND                                         #  (UNNORMALIZE THE SQRT FOR LV).
045159,002253: 00,3106           70154                           MP       MPAC                                  
045160,002254: 00,3107           56001                           XCH      L                                     
045161,002255: 00,3110           60130                           AD       BUF                                   
045162,002256: 00,3111           56001                           XCH      L                                     
045163,002257: 
045164,002258: 00,3112           50120        LARGE2             INDEX    FIXLOC                                
045165,002259: 00,3113           52045                           DXCH     LV                                    #  LENGTH NOW STORED IN WORK AREA.
045166,002260: 
045167,002261: 00,3114           44753                           CS       ONE                                   
045168,002262: 00,3115           54140                           TS       MAXDVSW                               #  NO MAXDV CASES IN UNIT.
045169,002263: 
045170,002264: 00,3116           52123                           DXCH     VBUF                                  #  PREPARE X COMPONENT FOR DIVIDE, SETTING
045171,002265: 00,3117           52155                           DXCH     MPAC                                  #  LENGTH OF VECTOR AS DIVISOR IN BUF.
045172,002266: 00,3120           52131                           DXCH     BUF                                   
045173,002267: 00,3121           03151                           TC       UNITDV                                
045174,002268: 
045175,002269: 00,3122           52125                           DXCH     VBUF       +2                         #  DO Y AND Z IN USUAL FASHION SO WE CAN
045176,002270: 00,3123           52155                           DXCH     MPAC                                  #  EXIT THROUGH VROTATEX.
045177,002271: 00,3124           52160                           DXCH     MPAC       +3                         
045178,002272: 00,3125           03151                           TC       UNITDV                                
045179,002273: 
045180,002274: 00,3126           52127                           DXCH     VBUF       +4                         
045181,002275: 00,3127           52155                           DXCH     MPAC                                  
045182,002276: 00,3130           52162                           DXCH     MPAC       +5                         
045183,002277: 00,3131           03151                           TC       UNITDV                                
045184,002278: 00,3132           17420                           TCF      VROTATEX                              #  AND EXIT.
045185,002279: 

Page 1073

045187,002281:                                                                                                  #  IF THE LENGTH OF THE ARGUMENT VECTOR WAS LESS THAN 2(-28), EACH COMPONENT MUST BE SHIFTED LEFT AT LEAST
045188,002282:                                                                                                  #  14 PLACES BEFORE THE DIVIDE. NOTE THAT IN THIS CASE, THE MAJOR PART OF EACH COMPONENT IS ZERO.
045189,002283: 
045190,002284: 00,3133           54135        SMALL              TS       MPTEMP                                #  NEGATIVE OF PRE-DIVIDE SHIFT COUNT.
045191,002285: 
045192,002286: 00,3134           34755                           CAF      ZERO                                  #  SHIFT EACH COMPONENT LEFT 14.
045193,002287: 00,3135           56123                           XCH      VBUF       +1                         
045194,002288: 00,3136           56122                           XCH      VBUF                                  
045195,002289: 00,3137           56125                           XCH      VBUF       +3                         
045196,002290: 00,3140           56124                           XCH      VBUF       +2                         
045197,002291: 00,3141           56127                           XCH      VBUF       +5                         
045198,002292: 00,3142           56126                           XCH      VBUF       +4                         
045199,002293: 
045200,002294: 00,3143           40135                           CS       MPTEMP                                
045201,002295: 00,3144           50000                           INDEX    A                                     
045202,002296: 00,3145           34736                           CAF      BIT14                                 
045203,002297: 00,3146           00006                           EXTEND                                         
045204,002298: 00,3147           70154                           MP       MPAC                                  
045205,002299: 00,3150           13062                           TCF      SMALL2                                
045206,002300: 
045207,002301: 00,3151     4761               THIRTEEN           =        OCT15                                 
045208,002302: 00,3151     4317               FOURTEEN           =        OCT16                                 
045209,002303: 00,3151     4317               OCT16              =        R1D1                                  
045210,002304: 

Page 1074

045212,002306:                                                                                                  #  THE FOLLOWING ROUTINE SETS UP THE CALL TO THE DIVIDE ROUTINES.
045213,002307: 
045214,002308: 00,3151           10154        UNITDV             CCS      MPAC                                  #  FORCE MPAC POSITIVE IF POSSIBLE, SETTING
045215,002309: 00,3152           13170                           TCF      UMPAC+                                #  DVSIGN ACCORDING TO THE SIGN OF MPAC
045216,002310: 00,3153           13155                           TCF      +2                                    #  SINCE THE DIVISOR IS ALWAYS POSITIVE
045217,002311: 00,3154           13162                           TCF      UMPAC-                                #  HERE.
045218,002312: 
045219,002313: 00,3155           10155                           CCS      MPAC       +1                         
045220,002314: 00,3156           13170                           TCF      UMPAC+                                
045221,002315: 00,3157           00002                           TC       Q                                     #  EXIT IMMEDIATELY ON ZERO.
045222,002316: 00,3160           13162                           TCF      UMPAC-                                
045223,002317: 00,3161           00002                           TC       Q                                     
045224,002318: 
045225,002319: 00,3162           44755        UMPAC-             CS       ZERO                                  #  IF NEGATIVE, SET -0 IN DVSIGN FOR FINAL
045226,002320: 00,3163           54136                           TS       DVSIGN                                #  COMPLEMENT.
045227,002321: 00,3164           00006                           EXTEND                                         
045228,002322: 00,3165           40155                           DCS      MPAC                                  #  PICK UP ABSOLUTE VALUE OF ARG AND JUMP.
045229,002323: 00,3166           50135                           INDEX    MPTEMP                                
045230,002324: 00,3167           12564                           TCF      MAXTEST    -1                         
045231,002325: 
045232,002326: 00,3170           54136        UMPAC+             TS       DVSIGN                                #  SET DVSIGN FOR POSITIVE QUOTIENT.
045233,002327: 00,3171           52155                           DXCH     MPAC                                  
045234,002328: 00,3172           50135                           INDEX    MPTEMP                                
045235,002329: 00,3173           12564                           TCF      MAXTEST    -1                         
045236,002330: 

Page 1075

045238,002332:                                                                                                  #  MISCELLANEOUS UNARY OPERATIONS.
045239,002333: 
045240,002334: 00,3174           03300        DSQ                TC       DSQSUB                                #  SQUARE THE DP CONTENTS OF MPAC.
045241,002335: 00,3175           16061                           TCF      DANZIG                                
045242,002336: 
045243,002337: 00,3176           10163        ABVALABS           CCS      MODE                                  #  ABVAL OR ABS INSTRUCTION.
045244,002338: 00,3177           13226                           TCF      ABS                                   #  DO ABS ON SCALAR.
045245,002339: 00,3200           13226                           TCF      ABS                                   
045246,002340: 
045247,002341: 00,3201           03317        ABVAL              TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045248,002342: 00,3202           22163                           LXCH     MODE                                  #  MODE IS NOW DP (L ZERO AFTER DAS).
045249,002343: 
045250,002344: 00,3203           00006                           EXTEND                                         #  STORE SQUARE OF LENGTH IN WORK AREA.
045251,002345: 00,3204           30155                           DCA      MPAC                                  
045252,002346: 00,3205           50120                           INDEX    FIXLOC                                
045253,002347: 00,3206           52043                           DXCH     LVSQUARE                              
045254,002348: 

Page 1076

045256,002350:                                                                                                  #  PROGRAM DESCRIPTION - SUBROUTINE SQRT
045257,002351: 
045258,002352:                                                                                                  #  FUNCTIONAL DESCRIPTION - DOUBLE PRECISION SQUARE ROOT ROUTINE
045259,002353:                                                                                                  #        THIS PROGRAM TAKES THE SQUARE ROOT OF THE 27 OR 28 MOST SIGNIFICANT BITS IN THE TRIPLE PRECISION SET OF
045260,002354:                                                                                                  #        NUMBERS - MPAC, MPAC+1, AND MPAC+2.  THE ROOT IS RETURNED DOUBLE PRECISION IN MPAC AND MPAC+1.
045261,002355: 
045262,002356:                                                                                                  #  WARNING - THIS SUBROUTINE USES A TRIPLE PRECISION INPUT.  THE PROGRAMMER MUST ASSURE THE CONTENTS OF MPAC+2
045263,002357:                                                                                                  #        ESPECIALLY IF THE CONTENTS OF MPAC IS SMALL OR ZERO.  FOR DETAILS SEE STG MEMO NO.949.
045264,002358: 
045265,002359:                                                                                                  #  CALLING SEQUENCE - IN INTERPRETIVE MODE I.E., FOLLOWING TC  INTPRET,SQRT   NO ADDRESS IS ALLOWED
045266,002360:                                                                                                  #        INPUT SCALING  THE BINARY POINT IS ASSUMED TO THE RIGHT OF BIT 15.  THE ANSWER IS RETURNED WITH THE SAME SCALING
045267,002361: 
045268,002362:                                                                                                  #  SUBROUTINES - GENSCR, MPACSHR, SQRTSUB, ABORT
045269,002363: 
045270,002364:                                                                                                  #  ABORT EXIT MODE - ABORTS ON NEGATIVE INPUT -1.2X10E-4 (77775 OCTAL) OR LESS.
045271,002365:                                                                                                  #        DISPLAYS ERROR CODE 1302
045272,002366:                                                                                                  #                TC      ABORT
045273,002367:                                                                                                  #                OCT     1302
045274,002368: 
045275,002369:                                                                                                  #  DEBRIS - LOCATIONS BUF, MPTEMP, ADDRWD ARE USED
045276,002370: 
045277,002371: 00,3207           03343        SQRT               TC       SQRTSUB                               #  TAKE THE SQUARE ROOT OF MPAC.
045278,002372: 00,3210           10135                           CCS      MPTEMP                                #  RETURNED NORMALIZED SQUARE ROOT.  SEE IF
045279,002373: 00,3211           13213                           TCF      +2                                    #  ANY UN-NORMALIZATION REQUIRED AND EXIT
045280,002374: 00,3212           16061                           TCF      DANZIG                                #  IF NOT.
045281,002375: 
045282,002376: 00,3213           63733                           AD       NEG12                                 #  A RIGHT SHIFT OF MORE THAN 13 COULD BE
045283,002377: 00,3214           00006                           EXTEND                                         #  REQUIRED IF INPUT WAS ZERO IN MPAC,+1.
045284,002378: 00,3215           63221                           BZMF     SQRTSHFT                              #  GOES HERE IN MOST CASES.
045285,002379: 00,3216           22007                           ZL                                             #  IF A LONG SHIFT IS REQUIRED, GO TO
045286,002380: 00,3217           22116                           LXCH     ADDRWD                                #  GENERAL RIGHT SHIFT ROUTINES.
045287,002381: 00,3220           12303                           TCF      GENSCR     +4                         #  ADDRWD WAS ZERO TO PREVENT ROUND.
045288,002382: 
045289,002383: 00,3221           50135        SQRTSHFT           INDEX    MPTEMP                                #  SELECT SHIFTING BIT AND EXIT THROUGH
045290,002384: 00,3222           34735                           CAF      BIT15                                 #  SHIFT ROUTINES.
045291,002385: 00,3223           54135                           TS       MPTEMP                                
045292,002386: 00,3224           34755                           CAF      ZERO                                  #  TO ZERO MPAC +2 IN THE PROCESS.
045293,002387: 00,3225           12036                           TCF      MPACSHR    +3                         
045294,002388: 
045295,002389: 00,3226           06723        ABS                TC       BRANCH                                #  TEST SIGN OF MPAC AND COMPLEMENT IF
045296,002390: 00,3227           16061                           TCF      DANZIG                                
045297,002391: 00,3230           16061                           TCF      DANZIG                                
045298,002392: 00,3231           17670                           TCF      COMP                                  
045299,002393: 

Page 1077

045301,002395: 00,3232           44751        VDEF               CS       FOUR                                  #  VECTOR DEFINE - ESSENTIALLY TREATS
045302,002396: 00,3233           26166                           ADS      PUSHLOC                               #  SCALAR IN MPAC AS X COMPONENT, PUSHES UP
045303,002397: 00,3234           00006                           EXTEND                                         #  FOR Y AND THEN AGAIN FOR Z.
045304,002398: 00,3235           50000                           INDEX    A                                     
045305,002399: 00,3236           30003                           DCA      2                                     
045306,002400: 00,3237           52160                           DXCH     MPAC       +3                         
045307,002401: 00,3240           00006                           EXTEND                                         
045308,002402: 00,3241           50166                           INDEX    PUSHLOC                               
045309,002403: 00,3242           30001                           DCA      0                                     
045310,002404: 00,3243           52162                           DXCH     MPAC       +5                         
045311,002405: 00,3244           16521                           TCF      VMODE                                 #  MODE IS NON VECTOR.
045312,002406: 
045313,002407: 00,3245           03317        VSQ                TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045314,002408: 00,3246           17332                           TCF      DMODE                                 #  MODE IS NOW DP.
045315,002409: 
045316,002410: 00,3247           00006        PUSH               EXTEND                                         #  PUSH DOWN MPAC LEAVING IT LOADED.
045317,002411: 00,3250           30155                           DCA      MPAC                                  
045318,002412: 00,3251           50166                           INDEX    PUSHLOC                               #  PUSH DOWN FIRST TWO REGISTERS IN EACH
045319,002413: 00,3252           52001                           DXCH     0                                     
045320,002414: 
045321,002415: 00,3253           50163                           INDEX    MODE                                  #  INCREMENT PUSHDOWN POINTER.
045322,002416: 00,3254           36244                           CAF      NO.WDS                                
045323,002417: 00,3255           26166                           ADS      PUSHLOC                               
045324,002418: 
045325,002419: 00,3256           10163                           CCS      MODE                                  
045326,002420: 00,3257           13272                           TCF      TPUSH                                 #  PUSH DOWN MPAC +2.
045327,002421: 00,3260           16061                           TCF      DANZIG                                #  DONE FOR DP.
045328,002422: 
045329,002423: 00,3261           00006                           EXTEND                                         #  ON VECTOR, PUSH DOWN Y AND Z COMPONENTS.
045330,002424: 00,3262           30160                           DCA      MPAC       +3                         
045331,002425: 00,3263           50166                           INDEX    PUSHLOC                               
045332,002426: 00,3264           51775                           DXCH     0          -4                         
045333,002427: 00,3265           00006                           EXTEND                                         
045334,002428: 00,3266           30162                           DCA      MPAC       +5                         
045335,002429: 00,3267           50166                           INDEX    PUSHLOC                               
045336,002430: 00,3270           51777                           DXCH     0          -2                         
045337,002431: 00,3271           16061                           TCF      DANZIG                                
045338,002432: 
045339,002433: 00,3272           30156        TPUSH              CA       MPAC       +2                         
045340,002434: 00,3273           16554                           TCF      ENDTPUSH   +2                         
045341,002435: 
045342,002436: 00,3274           50120        RVQ                INDEX    FIXLOC                                #  RVQ - RETURN IVA QPRET.
045343,002437: 00,3275           30052                           CA       QPRET                                 
045344,002438: 00,3276           54117                           TS       POLISH                                
045345,002439: 00,3277           16652                           TCF      GOTO       +4                         #  (ASSUME QPRET POINTS TO FIXED ONLY.)
045346,002440: 

Page 1078

045348,002442:                                                                                                  #  THE FOLLOWING SUBROUTINES ARE USED IN SQUARING MPAC, IN BOTH THE SCALAR AND VECTOR SENSE.  THEY ARE
045349,002443:                                                                                                  #  SPECIAL CASES OF DMPSUB AND DOTSUB, PUT IN TO SAVE SOME TIME.
045350,002444: 
045351,002445: 00,3300           30155        DSQSUB             CA       MPAC       +1                         #  SQUARES THE SCALAR CONTENTS OF MPAC.
045352,002446: 00,3301           00006                           EXTEND                                         
045353,002447: 00,3302           70000                           SQUARE                                         
045354,002448: 00,3303           54156                           TS       MPAC       +2                         
045355,002449: 00,3304           34755                           CAF      ZERO                                  #  FORM 2(CROSS TERM).
045356,002450: 00,3305           56155                           XCH      MPAC       +1                         
045357,002451: 00,3306           00006                           EXTEND                                         
045358,002452: 00,3307           70154                           MP       MPAC                                  
045359,002453: 00,3310           20001                           DDOUBL                                         #  AND MAYBE OVERFLOW.
045360,002454: 00,3311           20156                           DAS      MPAC       +1                         #  AND SET A TO NET OVERFLOW.
045361,002455: 00,3312           56154                           XCH      MPAC                                  
045362,002456: 00,3313           00006                           EXTEND                                         
045363,002457: 00,3314           70000                           SQUARE                                         
045364,002458: 00,3315           20155                           DAS      MPAC                                  
045365,002459: 00,3316           00002                           TC       Q                                     
045366,002460: 
045367,002461: 00,3317           00006        VSQSUB             EXTEND                                         #  DOTS THE VECTOR IN MPAC WITH ITSELF.
045368,002462: 00,3320           22137                           QXCH     DOTRET                                
045369,002463: 00,3321           03300                           TC       DSQSUB                                #  SQUARE THE X COMPONENT.
045370,002464: 00,3322           52160                           DXCH     MPAC       +3                         
045371,002465: 00,3323           52155                           DXCH     MPAC                                  
045372,002466: 00,3324           52131                           DXCH     BUF                                   #  SO WE CAN END IN DOTSUB.
045373,002467: 00,3325           30156                           CA       MPAC       +2                         
045374,002468: 00,3326           54132                           TS       BUF        +2                         
045375,002469: 
045376,002470: 00,3327           03300                           TC       DSQSUB                                #  SQUARE Y COMPONENT.
045377,002471: 00,3330           52156                           DXCH     MPAC       +1                         
045378,002472: 00,3331           20132                           DAS      BUF        +1                         
045379,002473: 00,3332           60154                           AD       MPAC                                  
045380,002474: 00,3333           60130                           AD       BUF                                   
045381,002475: 00,3334           54130                           TS       BUF                                   
045382,002476: 00,3335           13337                           TCF      +2                                    
045383,002477: 00,3336           54121                           TS       OVFIND                                #  IF OVERFLOW.
045384,002478: 
045385,002479: 00,3337           52162                           DXCH     MPAC       +5                         
045386,002480: 00,3340           52155                           DXCH     MPAC                                  
045387,002481: 00,3341           03300                           TC       DSQSUB                                #  SQUARE Z COMPONENT.
045388,002482: 00,3342           17205                           TCF      ENDDOT                                #  END AS IN DOTSUB.
045389,002483: 

Page 1079

045391,002485:                                                                                                  #  DOUBLE PRECISION SQUARE ROOT ROUTINE.  TAKE THE SQUARE ROOT OF THE TRIPLE PRECISION (MPAC +2 USED ONLY
045392,002486:                                                                                                  #  IN NORMALIZATION) CONTENTS OF MPAC AND LEAVE THE NORMALIZED RESULT IN MPAC (C(MPAC) GREATER THAN OR EQUAL TO
045393,002487:                                                                                                  #  .5).  THE RIGHT SHIFT COUNT (TO UNNORMALIZE) IS LEFT IN MPTEMP.
045394,002488: 
045395,002489: 00,3343           34755        SQRTSUB            CAF      ZERO                                  #  START BY ZEROING RIGHT SHIFT COUNT.
045396,002490: 00,3344           54135                           TS       MPTEMP                                
045397,002491: 
045398,002492: 00,3345           10154                           CCS      MPAC                                  #  CHECK FOR POSITIVE ARGUMENT, SHIFTING
045399,002493: 00,3346           13405                           TCF      SMPAC+                                #  FIRST SIGNIFICANT MPAC REGISTER INTO
045400,002494: 00,3347           13351                           TCF      +2                                    #  MPAC ITSELF.
045401,002495: 00,3350           13373                           TCF      SQRTNEG                               #  SEE IF MAG OF ARGUMENT LESS THAN 10(-4).
045402,002496: 
045403,002497: 00,3351           56156                           XCH      MPAC       +2                         #  MPAC IS ZERO - SHIFT LEFT 14.
045404,002498: 00,3352           56155                           XCH      MPAC       +1                         
045405,002499: 00,3353           54154                           TS       MPAC                                  
045406,002500: 00,3354           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
045407,002501: 00,3355           54135                           TS       MPTEMP                                
045408,002502: 
045409,002503: 00,3356           10154                           CCS      MPAC                                  #  SEE IF MPAC NOW PNZ.
045410,002504: 00,3357           13405                           TCF      SMPAC+                                
045411,002505: 00,3360           13362                           TCF      +2                                    
045412,002506: 00,3361           13376                           TCF      ZEROANS                               #  NEGATIVE BUT LESS THAN 10(-4) IN MAG.
045413,002507: 
045414,002508: 00,3362           56155                           XCH      MPAC       +1                         #  ZERO - SHIFT LEFT 14 AGAIN.
045415,002509: 00,3363           54154                           TS       MPAC                                  
045416,002510: 00,3364           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
045417,002511: 00,3365           26135                           ADS      MPTEMP                                
045418,002512: 
045419,002513: 00,3366           10154                           CCS      MPAC                                  
045420,002514: 00,3367           13405                           TCF      SMPAC+                                
045421,002515: 00,3370           00002                           TC       Q                                     #  SQRT(0) = 0.
045422,002516: 00,3371           13376                           TCF      ZEROANS                               
045423,002517: 00,3372           13453                           TCF      FIXROOT                               #  DO NOT LEAVE SQRTSUB WITH -0 IN MPAC.
045424,002518: 
045425,002519: 00,3373           10000        SQRTNEG            CCS      A                                     #  ARGUMENT IS NEGATIVE, BUT SEE IF SIGN-
045426,002520: 00,3374           13402                           TCF      SQRTABRT                              #  CORRECTED ARGUMENT IS LESS THAN 10(-4)
045427,002521: 
045428,002522: 00,3375           10155                           CCS      MPAC       +1                         #  IN MAGNITUDE.  IF SO, CALL ANSWER ZERO.
045429,002523: 00,3376           34755        ZEROANS            CAF      ZERO                                  #  FORCE ANSWER TO ZERO HERE.
045430,002524: 00,3377           13453                           TCF      FIXROOT                               
045431,002525: 00,3400           13402                           TCF      SQRTABRT                              
045432,002526: 00,3401           13453                           TCF      FIXROOT                               
045433,002527: 
045434,002528: 00,3402           52165        SQRTABRT           DXCH     LOC                                   
045435,002529: 00,3403           05726                           TC       POODOO1                               
045436,002530: 00,3404           01302                           OCT      1302                                  
045437,002531: 

Page 1080

045439,002533: 00,3405           62444        SMPAC+             AD       -1/2+2                                #  SEE IF ARGUMENT GREATER THAN OR EQUAL TO
045440,002534: 00,3406           00006                           EXTEND                                         #  .5.
045441,002535: 00,3407           63456                           BZMF     SRTEST                                #  IF SO, SEE IF LESS THAN .25.
045442,002536: 
045443,002537: 00,3410           52155                           DXCH     MPAC                                  #  WE WILL TAKE THE SQUARE ROOT OF MPAC/2.
045444,002538: 00,3411           22021                           LXCH     SR                                    #  SHIFT RIGHT 1 AND GO TO THE SQRT ROUTINE
045445,002539: 00,3412           00006                           EXTEND                                         
045446,002540: 00,3413           74736                           MP       HALF                                  
045447,002541: 00,3414           52155                           DXCH     MPAC                                  
045448,002542: 00,3415           56021                           XCH      SR                                    
045449,002543: 00,3416           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
045450,002544: 
045451,002545: 00,3417           32314        ARGHI              CAF      SLOPEHI                               #  ARGUMENT BETWEEN .25 AND .5. GET A
045452,002546: 00,3420           00006                           EXTEND                                         #  LINEAR APPROXIMATION FOR THIS RANGE.
045453,002547: 00,3421           70154                           MP       MPAC                                  
045454,002548: 00,3422           62566                           AD       BIASHI                                #  X0/2 = (MPAC/2)(SLOPEHI) + BIASHI/2.
045455,002549: 
045456,002550: 00,3423           54130                 +4        TS       BUF                                   #  X0/2 (ARGLO ENTERS HERE).
045457,002551: 00,3424           30154                           CA       MPAC                                  #  SINGLE-PRECISION THROUGHOUT.
045458,002552: 00,3425           22007                           ZL                                             
045459,002553: 00,3426           00006                           EXTEND                                         
045460,002554: 00,3427           10130                           DV       BUF                                   #  (MPAC/2)/(X0/2)
045461,002555: 00,3430           00006                           EXTEND                                         
045462,002556: 00,3431           74736                           MP       HALF                                  
045463,002557: 00,3432           26130                           ADS      BUF                                   #  X1 = X0/2 + .5(MPAC/2)/(X0/2).
045464,002558: 
045465,002559: 00,3433           00006                           EXTEND                                         
045466,002560: 00,3434           74736                           MP       HALF                                  #  FORM UP X1/2.
045467,002561: 00,3435           52155                           DXCH     MPAC                                  #  SAVE AND BRING OUT ARGUMENT.
045468,002562: 00,3436           00006                           EXTEND                                         #  TAKE DP QUOTIENT WITH X1.
045469,002563: 00,3437           10130                           DV       BUF                                   
045470,002564: 00,3440           54131                           TS       BUF        +1                         #  SAVE MAJOR PART OF QUOTIENT.
045471,002565: 00,3441           34755                           CAF      ZERO                                  #  FORM MINOR PART OF QUOTIENT USING
045472,002566: 00,3442           56001                           XCH      L                                     #  (REMAINDER,0).
045473,002567: 00,3443           00006                           EXTEND                                         
045474,002568: 00,3444           10130                           DV       BUF                                   
045475,002569: 00,3445           54001                           TS       L                                     #  IN PREPARATION FOR DAS.
045476,002570: 00,3446           30131                           CA       BUF        +1                         
045477,002571: 00,3447           20155                           DAS      MPAC                                  #  X2 = X1/2 + (MPAC/2)X1
045478,002572: 
045479,002573: 00,3450           00006                           EXTEND                                         #  OVERFLOWS IF ARG. NEAR POSMAX.
045480,002574: 00,3451           13455                           BZF      TCQBNK00                              
045481,002575: 00,3452           34733                           CAF      POSMAX                                
045482,002576: 00,3453           54154        FIXROOT            TS       MPAC                                  
045483,002577: 00,3454           54155                           TS       MPAC       +1                         
045484,002578: 00,3455           00002        TCQBNK00           TC       Q                                     #  RETURN TO CALLER TO UNNORMALIZE, ETC.
045485,002579: 

Page 1081

045487,002581: 00,3456           64737        SRTEST             AD       QUARTER                               #  ARGUMENT WAS LESS THAN .5, SEE IF LESS
045488,002582: 00,3457           00006                           EXTEND                                         #  THAN .25.
045489,002583: 00,3460           63502                           BZMF     SQRTNORM                              #  IF SO, BEGIN NORMALIZATION.
045490,002584: 
045491,002585: 00,3461           52155                           DXCH     MPAC                                  #  IF BETWEEN .5 AND .25, SHIFT RIGHT 1 AND
045492,002586: 00,3462           22021                           LXCH     SR                                    #  START AT ARGLO.
045493,002587: 00,3463           00006                           EXTEND                                         
045494,002588: 00,3464           74736                           MP       HALF                                  
045495,002589: 00,3465           52155                           DXCH     MPAC                                  
045496,002590: 00,3466           56021                           XCH      SR                                    
045497,002591: 00,3467           26155                           ADS      MPAC       +1                         #  NO OVERFLOW.
045498,002592: 
045499,002593: 00,3470           33007        ARGLO              CAF      SLOPELO                               #  (NORMALIZED) ARGUMENT BETWEEN .125 AND
045500,002594: 00,3471           00006                           EXTEND                                         #  .25
045501,002595: 00,3472           70154                           MP       MPAC                                  
045502,002596: 00,3473           62270                           AD       BIASLO                                
045503,002597: 00,3474           13423                           TCF      ARGHI      +4                         #  BEGIN SQUARE ROOT.
045504,002598: 
045505,002599: 00,3475           00006        SQRTNM2            EXTEND                                         #  SHIFT LEFT 2 AND INCREMENT RIGHT SHIFT
045506,002600: 00,3476           30156                           DCA      MPAC       +1                         #  COUNT (FOR TERMINAL UNNORMALIZATION).
045507,002601: 00,3477           20156                           DAS      MPAC       +1                         
045508,002602: 00,3500           60154                           AD       MPAC                                  
045509,002603: 00,3501           26154                           ADS      MPAC                                  #  (NO OVERFLOW).
045510,002604: 
045511,002605: 00,3502           24135        SQRTNORM           INCR     MPTEMP                                #  FIRST TIME THROUGH, JUST SHIFT LEFT 1
045512,002606: 00,3503           00006                           EXTEND                                         #  (PUTS IN EFFECTIVE RIGHT SHIFT SINCE
045513,002607: 00,3504           30156                           DCA      MPAC       +1                         #  WE WANT MPAC/2).
045514,002608: 00,3505           20156                           DAS      MPAC       +1                         
045515,002609: 00,3506           60154                           AD       MPAC                                  
045516,002610: 00,3507           26154                           ADS      MPAC                                  #  (AGAIN NO OVERFLOW).
045517,002611: 00,3510           60000                           DOUBLE                                         
045518,002612: 00,3511           54022                           TS       CYL                                   
045519,002613: 
045520,002614: 00,3512           10022        NORMTEST           CCS      CYL                                   #  SEE IF ARGUMENT NOW NORMALIZED AT
045521,002615: 00,3513           10022                           CCS      CYL                                   #  GREATER THAN .125.
045522,002616: 00,3514           13475                           TCF      SQRTNM2                               #  NO - SHIFT LEFT 2 MORE AND TRY AGAIN.
045523,002617: 00,3515           13417                           TCF      ARGHI                                 #  YES - NOW BETWEEN .5 AND .25.
045524,002618: 00,3516           13470                           TCF      ARGLO                                 #  ARGUMENT NOW BETWEEN .25 AND .125.
045525,002619: 

Page 1082

045527,002621:                                                                                                  #  TRIGONOMETRIC FUNCTION PACKAGE.
045528,002622:                                                                                                  #        THE FOLLOWING TRIGONOMETRIC FUNCTIONS ARE AVAILABLE AS INTERPRETIVE OPERATIONS:
045529,002623:                                                                                                  #        1.      SIN             COMPUTES (1/2)SINE(2 PI MPAC).
045530,002624:                                                                                                  #        2.      COS             COMPUTES (1/2)COSINE(2 PI MPAC).
045531,002625:                                                                                                  #        3.      ASIN            COMPUTES (1/2PI)ARCSINE(2 MPAC).
045532,002626:                                                                                                  #        4.      ACOS            COMPUTES (1/2PI)ARCCOSINE(2 MPAC).
045533,002627: 
045534,002628:                                                                                                  #  SIN-ASIN AND COS-ACOS ARE MUTUALLY INVERSE, IE SIN(ASIN(X)) = X.
045535,002629: 
045536,002630: 00,3517           06723        COSINE             TC       BRANCH                                #  FINDS COSINE USING THE IDENTITY
045537,002631: 00,3520           13523                           TCF      +3                                    #  COS(X) = SIN(PI/2 - ABS(X)).
045538,002632: 00,3521           13526                           TCF      PRESINE                               
045539,002633: 00,3522           13526                           TCF      PRESINE                               
045540,002634: 
045541,002635: 00,3523           00006                 +3        EXTEND                                         
045542,002636: 00,3524           40155                           DCS      MPAC                                  
045543,002637: 00,3525           52155                           DXCH     MPAC                                  
045544,002638: 
045545,002639: 00,3526           34737        PRESINE            CAF      QUARTER                               #  PI/2 SCALED.
045546,002640: 00,3527           26154                           ADS      MPAC                                  
045547,002641: 
045548,002642: 00,3530           52155        SINE               DXCH     MPAC                                  #  DOUBLE ARGUMENT.
045549,002643: 00,3531           20001                           DDOUBL                                         
045550,002644: 00,3532           54000                           OVSK                                           #  SEE IF OVERFLOW PRESENT.
045551,002645: 00,3533           13536                           TCF      +3                                    #  IF NOT, ARGUMENT OK AS IS.
045552,002646: 
045553,002647: 00,3534           00006                           EXTEND                                         #  IF SO, WE LOST (OR GAINED) PI, SO
045554,002648: 00,3535           40001                           DCOM                                           #  COMPLEMENT MPAC USING THE IDENTITY
045555,002649:                                                                                                  #  SIN(X-(+)PI) = SIN(-X).
045556,002650: 00,3536           52155                 +3        DXCH     MPAC                                  
045557,002651: 00,3537           30154                           CA       MPAC                                  #  SEE IF ARGUMENT GREATER THAN .5 IN
045558,002652: 00,3540           60000                           DOUBLE                                         #  MAGNITUDE.  IF SO, REDUCE IT TO LESS THAN
045559,002653: 00,3541           54001                           TS       L                                     #  .5 (+-PI/2 SCALED) AS FOLLOWS:
045560,002654: 00,3542           13553                           TCF      SN1                                   
045561,002655: 
045562,002656: 00,3543           50000                           INDEX    A                                     #  IF POSITIVE, FORM PI - X, IF NEGATIVE
045563,002657: 00,3544           34735                           CAF      NEG1/2     +1                         #  USE -PI -X.
045564,002658: 00,3545           60000                           DOUBLE                                         
045565,002659: 00,3546           00006                           EXTEND                                         
045566,002660: 00,3547           60154                           SU       MPAC                                  #  GUARANTEED NO OVERFLOW.
045567,002661: 00,3550           54154                           TS       MPAC                                  
045568,002662: 00,3551           40155                           CS       MPAC       +1                         
045569,002663: 00,3552           54155                           TS       MPAC       +1                         
045570,002664: 

Page 1083

045572,002666: 00,3553           00006        SN1                EXTEND                                         #  SET UP TO EVALUATE HASTINGS POLYNOMIAL
045573,002667: 00,3554           30155                           DCA      MPAC                                  
045574,002668: 00,3555           52134                           DXCH     BUF2                                  
045575,002669: 00,3556           03300                           TC       DSQSUB                                #  SQUARE MPAC.
045576,002670: 
045577,002671: 00,3557           07222                           TC       POLY                                  #  EVALUATE FOURTH ORDER POLYNOMIAL.
045578,002672: 00,3560           00003                           DEC      3          B-14                       
045579,002673: 00,3561           14441 37325                     2DEC     +.3926990796                            
045580,002674: 
045581,002675: 00,3563           53250 60764                     2DEC     -.6459637111                            
045582,002676: 
045583,002677: 00,3565           12146 21276                     2DEC     +.318758717                            
045584,002678: 
045585,002679: 00,3567           75466 71471                     2DEC     -.074780249                            
045586,002680: 
045587,002681: 00,3571           00236 32757                     2DEC     +.009694988                            
045588,002682: 
045589,002683: 00,3573           32470                           CAF      LBUF2                                 #  MULTIPLY BY ARGUMENT AND SHIFT LEFT 2.
045590,002684: 00,3574           07106                           TC       DMPSUB     -1                         
045591,002685: 
045592,002686: 00,3575           00006                           EXTEND                                         
045593,002687: 00,3576           30156                           DCA      MPAC       +1                         
045594,002688: 00,3577           20156                           DAS      MPAC       +1                         
045595,002689: 00,3600           60154                           AD       MPAC                                  
045596,002690: 00,3601           26154                           ADS      MPAC                                  #  NEITHER SHIFT OVERFLOWS.
045597,002691: 00,3602           00006                           EXTEND                                         
045598,002692: 00,3603           30156                           DCA      MPAC       +1                         
045599,002693: 00,3604           20156                           DAS      MPAC       +1                         
045600,002694: 00,3605           60154                           AD       MPAC                                  
045601,002695: 00,3606           26154                           ADS      MPAC                                  
045602,002696: 00,3607           16061                           TCF      DANZIG                                
045603,002697: 

Page 1084

045605,002699:                                                                                                  #  ARCSIN/ARCCOS ROUTINE.
045606,002700: 
045607,002701: 00,3610           33631        ARCSIN             CAF      LASINEX                               #  COMPUTE ARCSIN BY USING THE IDENTITY
045608,002702: 00,3611           13613                           TCF      +2                                    #  ARCSIN(X) = PI/2 - ARCCOS(X).
045609,002703: 
045610,002704: 00,3612           33713        ARCCOS             CAF      LDANZIG                               #  (EXITS IMMEDIATELY).
045611,002705: 00,3613           54136                           TS       ESCAPE                                
045612,002706: 00,3614           06723                           TC       BRANCH                                #  TEST SIGN OF INPUT.
045613,002707: 00,3615           13625                           TCF      ACOSST                                #  START IMMEDIATELY IF POSITIVE.
045614,002708: 00,3616           13731                           TCF      ACOSZERO                              #  ARCCOS(0) = PI/2 = .25.
045615,002709: 00,3617           00006                           EXTEND                                         #  IF NEGATIVE, USE THE IDENTITY
045616,002710: 00,3620           40155                           DCS      MPAC                                  #  ARCCOS(X) = PI - ARCCOS(-X), FORCING
045617,002711: 00,3621           52155                           DXCH     MPAC                                  #  ARGUMENT POSITIVE.
045618,002712: 00,3622           33734                           CAF      TCSUBTR                               #  SET EXIT TO DO ABOVE BEFORE
045619,002713: 00,3623           56136                           XCH      ESCAPE                                #  ARCSIN/ARCCOS CONSIDERATIONS.
045620,002714: 00,3624           54137                           TS       ESCAPE2                               
045621,002715: 
045622,002716: 00,3625           44736        ACOSST             CS       HALF                                  #  TEST MAGNITUDE OF INPUT.
045623,002717: 00,3626           60154                           AD       MPAC                                  
045624,002718: 00,3627           10000                           CCS      A                                     
045625,002719: 00,3630           13721                           TCF      ACOSOVF                               #  THIS IS PROBABLY AN OVERFLOW CASE.
045626,002720: 
045627,002721: 00,3631           13707        LASINEX            TCF      ASINEX                                
045628,002722: 
045629,002723: 00,3632           13642                           TCF      ACOSST2                               #  NO OVERFLOW - PROCEED.
045630,002724: 
045631,002725: 00,3633           10155                           CCS      MPAC       +1                         #  IF MAJOR PART IS .5, CALL ANSWER 0
045632,002726: 00,3634           34755                           CAF      ZERO                                  #  UNLESS MINOR PART NEGATIVE.
045633,002727: 00,3635           13637                           TCF      ACOS=0                                
045634,002728: 
045635,002729: 00,3636           13642                           TCF      ACOSST2                               
045636,002730: 
045637,002731: 00,3637           54155        ACOS=0             TS       MPAC       +1                         
045638,002732: 00,3640           54154                           TS       MPAC                                  
045639,002733: 00,3641           00136                           TC       ESCAPE                                
045640,002734: 
045641,002735: 00,3642           00006        ACOSST2            EXTEND                                         #  NOW THAT ARGUMENT IS IN PROPER RANGE,
045642,002736: 00,3643           40155                           DCS      MPAC                                  #  BEGIN COMPUTATION.  USE HASTINGS
045643,002737: 00,3644           64736                           AD       HALF                                  #  APPROXIMATION ARCCOS(X) = SQRT(1-X)P(X)
045644,002738: 00,3645           52155                           DXCH     MPAC                                  #  IN A SCALED VERSION WHERE P(X) IS A
045645,002739: 00,3646           52134                           DXCH     BUF2                                  #  SEVENTH ORDER POLYNOMIAL.
045646,002740: 
045647,002741: 00,3647           03343                           TC       SQRTSUB                               #  RETURNS WITH NORMALIZED SQUARE ROOT.
045648,002742: 
045649,002743: 00,3650           10135                           CCS      MPTEMP                                #  SEE IF UN-NORMALIZATION REQUIRED.
045650,002744: 00,3651           13714                           TCF      ACOSSHR                               #  IF SO.
045651,002745: 

Page 1085

045653,002747: 00,3652           52155        ACOS3              DXCH     MPAC                                  #  SET UP FOR POLYNOMIAL EVALUATION.
045654,002748: 00,3653           52134                           DXCH     BUF2                                  
045655,002749: 00,3654           52155                           DXCH     MPAC                                  
045656,002750: 
045657,002751: 00,3655           07222                           TC       POLY                                  
045658,002752: 00,3656           00006                           DEC      6          B-14                       
045659,002753: 00,3657           13240 23630                     2DEC     +.353553385                            #  COEFFICIENTS ARE C 2(+I)/PISQRT(2) WHERE
045660,002754: 
045661,002755: 00,3661           74721 47775                     2DEC*    -.0483017006 B+1*                       #  I
045662,002756: 
045663,002757: 00,3663           02440 20237                     2DEC*    +.0200273085 B+2*                       #  WHERE C STANDS FOR ORIGINAL COEFFS.
045664,002758: 
045665,002759: 00,3665           75067 70742                     2DEC*    -.0112931863 B+3*                       
045666,002760: 
045667,002761: 00,3667           03436 26756                     2DEC*    +.00695311612 B+4*                       
045668,002762: 
045669,002763: 00,3671           74037 57640                     2DEC*    -.00384617957 B+5*                       
045670,002764: 
045671,002765: 00,3673           03046 07143                     2DEC*    +.001501297736 B+6*                       
045672,002766: 
045673,002767: 00,3675           76654 42244                     2DEC*    -.000284160334 B+7*                       
045674,002768: 
045675,002769: 
045676,002770: 00,3677           32470                           CAF      LBUF2                                 #  DO FINAL MULTIPLY AND GO TO ANY
045677,002771: 00,3700           07106                           TC       DMPSUB     -1                         #  EPILOGUE SEQUENCES.
045678,002772: 00,3701           00136                           TC       ESCAPE                                
045679,002773: 
045680,002774: 00,3702           00006        SUBTR              EXTEND                                         #  EPILOGUE FOR NEGATIVE INPUTS TO ARCCOS.
045681,002775: 00,3703           40155                           DCS      MPAC                                  
045682,002776: 00,3704           64736                           AD       HALF                                  #  FORMS PI - ARCCOS(-X) = ARCCOS(X).
045683,002777: 00,3705           52155                           DXCH     MPAC                                  
045684,002778: 00,3706           00137                           TC       ESCAPE2                               #  GO TO POSSIBLE ARCSIN EPILOGUE.
045685,002779: 
045686,002780: 00,3707           00006        ASINEX             EXTEND                                         
045687,002781: 00,3710           40155                           DCS      MPAC                                  #  ARCSIN EPILOGUE - GET ARCSIN(X)
045688,002782: 00,3711           64737                           AD       QUARTER                               #  = PI/2 - ARCCOS(X).
045689,002783: 00,3712           52155                           DXCH     MPAC                                  
045690,002784: 00,3713           16061        LDANZIG            TCF      DANZIG                                
045691,002785: 

Page 1086

045693,002787: 00,3714           50000        ACOSSHR            INDEX    A                                     #  THE SHIFT RIGHT IS LESS THAN 14 SINCE
045694,002788: 00,3715           34736                           CAF      BIT14                                 #  THE INPUT WAS NON-ZERO DP.
045695,002789: 00,3716           54135                           TS       MPTEMP                                
045696,002790: 00,3717           02073                           TC       VSHRRND                               #  DP SHIFT RIGHT AND ROUND.
045697,002791: 00,3720           13652                           TCF      ACOS3                                 #  PROCEED.
045698,002792: 
045699,002793: 00,3721           00006        ACOSOVF            EXTEND                                         #  IF MAJOR PART WAS ONLY 1 MORE THAN .5,
045700,002794: 00,3722           13637                           BZF      ACOS=0                                #  CALL ANSWER ZERO.
045701,002795: 
045702,002796: 00,3723           00006        ACOSABRT           EXTEND                                         #  IF OVERFLOW, CALL ANSWER ZERO BUT
045703,002797: 00,3724           30165                           DCA      LOC                                   #  SOUND AN ALARM.
045704,002798: 00,3725           05732                           TC       ALARM1                                
045705,002799: 00,3726           01301                           OCT      1301                                  
045706,002800: 
045707,002801: 00,3727           34755                           CAF      ZERO                                  
045708,002802: 00,3730           13637                           TCF      ACOS=0                                
045709,002803: 
045710,002804: 00,3731           34737        ACOSZERO           CAF      QUARTER                               #  ACOS(0) = PI/2.
045711,002805: 00,3732           13640                           TCF      ACOS=0     +1                         #  SET MPAC AND EXIT VIA ESCAPE.
045712,002806: 
045713,002807: 00,3733           77763        NEG12              DEC      -12        B-14                       
045714,002808: 00,3734           13702        TCSUBTR            TCF      SUBTR                                 
045715,002809: 

Page 1087

045717,002811:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE AVAILABLE FOR SETTING, MODIFYING, AND BRANCHING ON INDEX REGISTERS:
045718,002812:                                                                                                  #        1.      AXT     ADDRESS TO INDEX TRUE.
045719,002813:                                                                                                  #        1.      AXC     ADDRESS TO INDEX COMPLEMENTED.
045720,002814:                                                                                                  #        3.      LXA     LOAD INDEX FROM ERASABLE.
045721,002815:                                                                                                  #        4.      LXC     LOAD INDEX COMPLEMENTED FROM ERASABLE.
045722,002816:                                                                                                  #        5.      SXA     STORE INDEX IN ERASABLE.
045723,002817:                                                                                                  #        6.      XCHX    EXCHANGE INDEX REIGSTER WITH ERASABLE.
045724,002818: 
045725,002819:                                                                                                  #        7.      INCR    INCREMENT INDEX REGISTER.
045726,002820:                                                                                                  #        8.      XAD     ERASABLE ADD TO INDEX REGISTER.
045727,002821:                                                                                                  #        9.      XSU     ERASABLE SUBTRACT FROM INDEX REGISTER.
045728,002822:                                                                                                  #        10.     TIX     BRANCH ON INDEX REGISTER AND DECREMENT.
045729,002823: 
045730,002824: 01,2344                                           BANK     01                                    
045731,002825: 
045732,002826: 01,2344                                           COUNT*   $$/INTER                              
045733,002827: 01,2344           02441        AXT                TC       TAGSUB                                #  SELECT APPROPRIATE INDEX REGISTER.
045734,002828: 01,2345           30117                           CA       POLISH                                
045735,002829: 01,2346           50130        XSTORE             INDEX    INDEXLOC                              #  CONTAINS C(FIXLOC) OR C(FIXLOC)+1.
045736,002830: 01,2347           54046                           TS       X1                                    
045737,002831: 01,2350           16061                           TCF      DANZIG                                
045738,002832: 
045739,002833: 01,2351           02441        AXC                TC       TAGSUB                                
045740,002834: 01,2352           40117                           CS       POLISH                                
045741,002835: 01,2353           02346                           TC       XSTORE                                
045742,002836: 
045743,002837: 01,2354           02427        LXA                TC       15ADRERS                              #  LOAD INDEX REGISTER FROM ERASABLE.
045744,002838: 01,2355           50117                           INDEX    POLISH                                
045745,002839: 01,2356           30000                           CA       0                                     
045746,002840: 01,2357           12346                           TCF      XSTORE                                
045747,002841: 
045748,002842: 01,2360           02427        LXC                TC       15ADRERS                              #  LOAD NDX REG FROM ERASABLE COMPLEMENTED.
045749,002843: 01,2361           50117                           INDEX    POLISH                                
045750,002844: 01,2362           40000                           CS       0                                     
045751,002845: 01,2363           12346                           TCF      XSTORE                                
045752,002846: 
045753,002847: 01,2364           02427        SXA                TC       15ADRERS                              #  STORE INDEX REGISTER IN ERASABLE.
045754,002848: 01,2365           50130                           INDEX    INDEXLOC                              
045755,002849: 01,2366           30046                           CA       X1                                    
045756,002850: 01,2367           50117        MSTORE1            INDEX    POLISH                                
045757,002851: 01,2370           54000                           TS       0                                     
045758,002852: 01,2371           16061                           TCF      DANZIG                                
045759,002853: 

Page 1088

045761,002855: 01,2372           02427        XCHX               TC       15ADRERS                              #  EXCHANGE INDEX REGISTER WITH ERASABLE.
045762,002856: 01,2373           50117                           INDEX    POLISH                                
045763,002857: 01,2374           30000                           CA       0                                     
045764,002858: 01,2375           50130                           INDEX    INDEXLOC                              
045765,002859: 01,2376           56046                           XCH      X1                                    
045766,002860: 01,2377           12367                           TCF      MSTORE1                               
045767,002861: 
045768,002862: 01,2400           02427        XAD                TC       15ADRERS                              #  ADD ERASABLE TO INDEX REGISTER.
045769,002863: 01,2401           50117                           INDEX    POLISH                                
045770,002864: 01,2402           30000                           CA       0                                     
045771,002865: 01,2403           50130        XAD2               INDEX    INDEXLOC                              
045772,002866: 01,2404           26046                           ADS      X1                                    #  IGNORING OVERFLOWS.
045773,002867: 01,2405           16061                           TCF      DANZIG                                
045774,002868: 
045775,002869: 01,2406           02441        INCR               TC       TAGSUB                                #  INCREMENT INDEX REGISTER.
045776,002870: 01,2407           30117                           CA       POLISH                                
045777,002871: 01,2410           12403                           TCF      XAD2                                  
045778,002872: 
045779,002873: 01,2411           02427        XSU                TC       15ADRERS                              #  SUBTRACT ERASABLE FROM INDEX REGISTER.
045780,002874: 01,2412           50117                           INDEX    POLISH                                
045781,002875: 01,2413           40000                           CS       0                                     
045782,002876: 01,2414           12403                           TCF      XAD2                                  
045783,002877: 
045784,002878: 01,2415           02441        TIX                TC       TAGSUB                                #  BRANCH AND DECREMENT ON INDEX.
045785,002879: 01,2416           50130                           INDEX    INDEXLOC                              
045786,002880: 01,2417           40050                           CS       S1                                    
045787,002881: 01,2420           50130                           INDEX    INDEXLOC                              
045788,002882: 01,2421           60046                           AD       X1                                    
045789,002883: 01,2422           00006                           EXTEND                                         #  NO OPERATION IF DECREMENTED INDEX IS
045790,002884: 01,2423           66061                           BZMF     DANZIG                                #  NEGATIVE OR ZERO.
045791,002885: 
045792,002886: 01,2424           50130        DOTIXBR            INDEX    INDEXLOC                              
045793,002887: 01,2425           56046                           XCH      X1                                    #  IGNORING OVERFLOWS.
045794,002888: 
045795,002889: 01,2426           16646                           TCF      GOTO                                  #  DO THE BRANCH USING THE CADR IN POLISH.
045796,002890: 

Page 1089

045798,002892:                                                                                                  #  SUBROUTINE TO CONVERT AN ERASABLE ADDRESS (11 BITS) TO AN EBANK SETTING AND SUBADDRESS.
045799,002893: 
045800,002894: 01,2427           40117        15ADRERS           CS       POLISH                                
045801,002895: 01,2430           64772                           AD       DEC45                                 
045802,002896: 01,2431           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
045803,002897: 01,2432           30120                           CA       FIXLOC                                #  YES.  ADD FIXLOC.  EBANK OK AS IS.
045804,002898: 01,2433           12440                           TCF      +5                                    
045805,002899: 
045806,002900: 01,2434           35007                           CA       OCT1400                               #  NO. SET EBANK & MAKE UP SUBADDRESS.
045807,002901: 01,2435           56117                           XCH      POLISH                                
045808,002902: 01,2436           54003                           TS       EBANK                                 
045809,002903: 01,2437           74357                           MASK     LOW8                                  
045810,002904: 01,2440           26117                 +5        ADS      POLISH                                #  FALL INTO TAGSUB, AND RETURN VIA Q.
045811,002905: 
045812,002906:                                                                                                  #  SUBROUTINE WHICH SETS THE ADDRESS OF THE SPECIFIED INDEX IN INDEXLOC.  (ACTUALLY, THE ADDRESS -38D.)
045813,002907: 
045814,002908: 01,2441           30120        TAGSUB             CA       FIXLOC                                
045815,002909: 01,2442           54130                           TS       INDEXLOC                              
045816,002910: 
045817,002911: 01,2443           10020                           CCS      CYR                                   #  BIT 15 SPECIFIES INDEX.
045818,002912: 01,2444           24130                           INCR     INDEXLOC                              #  0 MEANS USE X2.
045819,002913: 01,2445           00002                           TC       Q                                     
045820,002914: 01,2446           00002                           TC       Q                                     #  1 FOR X1.
045821,002915: 

Page 1090

045823,002917:                                                                                                  #  MISCELLANEOUS OPERATION CODES WITH DIRECT ADDRESSES.  INCLUDED HERE ARE:
045824,002918:                                                                                                  #        1.      ITA     STORE QPRET (RETURN ADDRESS) IN ERASABLE.
045825,002919:                                                                                                  #        2.      CALL    CALL A SUBROUTINE, LEAVING RETURN IN QPRET.
045826,002920:                                                                                                  #        3.      RTB     RETURN TO BASIC LANGUAGE AT THE GIVEN ADDRESS.
045827,002921:                                                                                                  #        4.      BHIZ    BRANCH IF THE HIGH ORDER OF MPAC IS ZERO (SINGLE PRECISION).
045828,002922:                                                                                                  #        5.      BOV     BRANCH ON OVERFLOW.
045829,002923:                                                                                                  #        6.      GOTO    SIMPLE SEQUENCE CHANGE.
045830,002924: 
045831,002925: 01,2447           10020        RTB/BHIZ           CCS      CYR                                   
045832,002926: 01,2450           30117        RTB                CA       POLISH                                
045833,002927: 01,2451           04621                           TC       SWCALL     -1                         #  SO A "TC Q" FROM ROUTINE LEADS TO DANZIG
045834,002928: 
045835,002929: 01,2452           10154        BHIZ               CCS      MPAC                                  
045836,002930: 01,2453           16061                           TCF      DANZIG                                
045837,002931: 01,2454           16646                           TCF      GOTO                                  
045838,002932: 01,2455           16061                           TCF      DANZIG                                
045839,002933: 01,2456           16646                           TCF      GOTO                                  
045840,002934: 
045841,002935: 01,2457           10121        BOV(B)             CCS      OVFIND                                #  BRANCH ON OVERFLOW TO BASIC OR INTERP.
045842,002936: 01,2460           12462                           TCF      +2                                    
045843,002937: 01,2461           16061                           TCF      DANZIG                                
045844,002938: 01,2462           54121                           TS       OVFIND                                
045845,002939: 01,2463           10020                           CCS      CYR                                   
045846,002940: 01,2464           12450                           TCF      RTB                                   #  IF BASIC.
045847,002941: 01,2465           00360        B5TOBB             OCT      360                                   
045848,002942: 01,2466           16646                           TCF      GOTO                                  
045849,002943: 

Page 1091

045851,002945: 01,2467           10020        BZE/GOTO           CCS      CYR                                   #  SEE WHICH OP-CODE IS DESIRED.
045852,002946: 01,2470           06723                           TC       BRANCH                                #  DO BZE.
045853,002947: 01,2471           16061                           TCF      DANZIG                                
045854,002948: 01,2472           16646                           TCF      GOTO                                  #  DO GOTO.
045855,002949: 01,2473           16061                           TCF      DANZIG                                
045856,002950: 
045857,002951: 01,2474           10020        BPL/BMN            CCS      CYR                                   
045858,002952: 01,2475           12503                           TCF      BPL                                   
045859,002953: 01,2476           12000        5B10               DEC      5          B+10                       #  SHIFTS OP CODE IN SWITCH INSTRUCTION ADR
045860,002954: 
045861,002955: 01,2477           06723                           TC       BRANCH                                #  DO BMN.
045862,002956: 01,2500           16061                           TCF      DANZIG                                
045863,002957: 01,2501           16061                           TCF      DANZIG                                
045864,002958: 01,2502           16646                           TCF      GOTO                                  #  ONLY IF NNZ.
045865,002959: 
045866,002960: 01,2503           06723        BPL                TC       BRANCH                                
045867,002961: 01,2504           16646                           TCF      GOTO                                  #  IF POSITIVE OR ZERO.
045868,002962: 01,2505           16646                           TCF      GOTO                                  
045869,002963: 01,2506           16061                           TCF      DANZIG                                
045870,002964: 
045871,002965: 01,2507           10020        CALL/ITA           CCS      CYR                                   
045872,002966: 01,2510           16640                           TCF      CALL                                  
045873,002967: 
045874,002968: 01,2511           05705                           TC       CCSHOLE                               
045875,002969: 01,2512           02427                           TC       15ADRERS                              #  STORE QPRET.  (TAGSUB AFTER 15ADRERS IS
045876,002970: 01,2513           50120                           INDEX    FIXLOC                                #  SLOW IN THIS CASE, BUT SAVES STORAGE.)
045877,002971: 01,2514           30052                           CA       QPRET                                 
045878,002972: 01,2515           12367                           TCF      MSTORE1                               
045879,002973: 

Page 1092

045881,002975:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR ALTERING AND TESTING INTERPRETIVE SWITCHES:
045882,002976: 
045883,002977:                                                                                                  #        00      BONSET          SET A SWITCH AND DO A GOTO IF IT WAS ON.
045884,002978:                                                                                                  #        01      SETGO           SET A SWITCH AND DO A GOTO.
045885,002979:                                                                                                  #        02      BOFSET          SET A SWITCH AND DOA GOTO IF IT WAS OFF
045886,002980:                                                                                                  #        03      SET             SET A SWITCH.
045887,002981: 
045888,002982:                                                                                                  #        04      BONINV          INVERT A SWITCH AND BRANCH IF IT WAS ON.
045889,002983:                                                                                                  #        05      INVGO           INVERT A SWITCH AND DO A GOTO.
045890,002984:                                                                                                  #        06      BOFINV          INVERT A SWITCH AND BRANCH IF IT WAS OFF
045891,002985:                                                                                                  #        07      INVERT          INVERT A SWITCH.
045892,002986: 
045893,002987:                                                                                                  #        10      BONCLR          CLEAR A SWITCH AND BRANCH IF IT WAS ON.
045894,002988:                                                                                                  #        11      CLRGO           CLEAR A SWITCH AND DO A GOTO.
045895,002989:                                                                                                  #        12      BOFCLR          CLEAR A SWITCH AND BRANCH IF IT WAS OFF.
045896,002990:                                                                                                  #        13      CLEAR           CLEAR A SWITCH.
045897,002991: 
045898,002992:                                                                                                  #        14      BON             BRANCH IF A SWITCH WAS ON.
045899,002993:                                                                                                  #        16      BOFF            BRANCH IF A SWITCH WAS OFF.
045900,002994: 
045901,002995:                                                                                                  #  THE ADDRESS SUPPLIED WITH THE SWITCH INSTRUCTION IS INTERPRETED AS FOLLOWS:
045902,002996: 
045903,002997:                                                                                                  #        BITS 1-4        SWITCH BIT NUMBER (1-15).
045904,002998:                                                                                                  #        BITS 5-8        SWITCH OPERATION NUMBER.
045905,002999:                                                                                                  #        BITS 9-         SWITCH WORD NUMBER (UP TO 64 SWITCH WORDS).
045906,003000: 
045907,003001:                                                                                                  #  THE ADDRESS ITSELF IS MADE UP BY THE YUL SYSTEM ASSEMBLER.  THE BRANCH INSTRUCTIONS REQUIRE TWO
045908,003002:                                                                                                  #  ADDRESSES, THE SECOND TAKEN AS THE DIRECT (OR INDIRECT IF IN ERASABLE) ADDRESS OF THE BRANCH.
045909,003003: 
045910,003004: 01,2516           34762        SWITCHES           CAF      LOW4                                  #  LEAVE THE SWITCH BIT IN SWBIT.
045911,003005: 01,2517           70117                           MASK     POLISH                                
045912,003006: 01,2520           50000                           INDEX    A                                     
045913,003007: 01,2521           34735                           CAF      BIT15                                 #  (NUMBER FROM LEFT TO RIGHT.)
045914,003008: 01,2522           54131                           TS       SWBIT                                 
045915,003009: 
045916,003010: 01,2523           34745                           CAF      BIT7                                  #  LEAVE THE SWITCH NUMBER IN SWWORD.
045917,003011: 01,2524           00006                           EXTEND                                         
045918,003012: 01,2525           70117                           MP       POLISH                                
045919,003013: 01,2526           54130                           TS       SWWORD                                
045920,003014: 
045921,003015: 01,2527           00004                           INHINT                                         #  DURING SWITCH CHANGE SO RUPT CAN USE TOO
045922,003016: 01,2530           50000                           INDEX    A                                     #  LEAVE THE SWITCH WORD ITSELF IN L.
045923,003017: 01,2531           30074                           CA       STATE                                 
045924,003018: 01,2532           54002                           TS       Q                                     #  Q WILL BE USED AS A CHANNEL.

Page 1093

045926,003020: 01,2533           34741                           CAF      BIT11                                 
045927,003021: 01,2534           00006                           EXTEND                                         #  DISPATCH SWITCH BIT OPERATION AS IN BITS
045928,003022: 01,2535           70117                           MP       POLISH                                #  7-8 OF POLISH.
045929,003023: 01,2536           72576                           MASK     B3TOB4                                #  GETS 4X2-BIT CODE.
045930,003024: 01,2537           50000                           INDEX    A                                     
045931,003025: 01,2540           12541                           TCF      +1                                    
045932,003026: 
045933,003027: 01,2541           30131                 +1        CA       SWBIT                                 #  00 - SET SWITCH IN QUESTION.
045934,003028: 01,2542           00006                           EXTEND                                         
045935,003029: 01,2543           04002                           ROR      QCHAN                                 
045936,003030: 01,2544           12553                           TCF      SWSTORE                               
045937,003031: 
045938,003032: 01,2545           30131                 +5        CA       SWBIT                                 #  01 - INVERT SWITCH.
045939,003033: 01,2546           00006                           EXTEND                                         
045940,003034: 01,2547           06002                           RXOR     QCHAN                                 
045941,003035: 01,2550           12553                           TCF      SWSTORE                               
045942,003036: 
045943,003037: 01,2551           40131                 +9D       CS       SWBIT                                 #  10 - CLEAR.
045944,003038: 01,2552           70002                           MASK     Q                                     
045945,003039: 01,2553           50130        SWSTORE            INDEX    SWWORD                                
045946,003040: 01,2554           54074                           TS       STATE                                 #  NEW SWITCH WORD.
045947,003041: 

Page 1094

045949,003043: 01,2555           00003                 +13D      RELINT                                         #  11 - NOOP.
045950,003044: 01,2556           34737                           CAF      BIT13                                 
045951,003045: 01,2557           00006                           EXTEND                                         #  DISPATCH SEQUCE CHANGING OR BRANCHING
045952,003046: 01,2560           70117                           MP       POLISH                                #  CODE.
045953,003047: 01,2561           72576                           MASK     B3TOB4                                
045954,003048: 01,2562           50000                           INDEX    A                                     
045955,003049: 01,2563           12564                           TCF      +1                                    #  ORIGINALLY STORED IN BITS 5-6.
045956,003050: 
045957,003051: 01,2564           40002                 +1        CS       Q                                     #  00 - BRANCH IF ON.
045958,003052: 01,2565           70131        TEST               MASK     SWBIT                                 
045959,003053: 01,2566           10000                           CCS      A                                     
045960,003054: 01,2567           12577                           TCF      SWSKIP                                
045961,003055: 
045962,003056: 01,2570           16715                 +5        TCF      SWBRANCH                              #  01 - GO TO.
045963,003057: 
045964,003058: 01,2571           12577                           TCF      SWSKIP                                #  HERE ONLY ON BIT 15.
045965,003059: 
045966,003060: 01,2572           05705                           TC       CCSHOLE                               
045967,003061: 01,2573           05705                           TC       CCSHOLE                               
045968,003062: 
045969,003063: 01,2574           30002                 +9D       CA       Q                                     #  10 - BRANCH IF OFF.
045970,003064: 01,2575           12565                           TCF      TEST                                  
045971,003065: 
045972,003066: 01,2576           00014        B3TOB4             OCT      0014                                  
045973,003067: 01,2577           24164        SWSKIP             INCR     LOC                                   
045974,003068: 
045975,003069: 01,2600  01,2516               SW/                EQUALS   SWITCHES                              
045976,003070: 
045977,003071: 01,2600           16061                 +13D      TCF      DANZIG                                #  11 - NOOP.
045978,003072: 

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