Source Code

These source-code files are part of a reconstructed copy of Luminary 173, the second (unflown) release of the Apollo 14 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction began with reconstructed source code for Luminary 178. Changes between revision 173 and 178 were backed out, as described by Luminary memo 167 (revision 1). The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152N. Note that page numbers in the reconstructed code match those for the baseline log section mentioned in each file's changelog; the page numbers for a real Luminary 173 listing would be different.

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

043071,000002:                                                                                                  ## Copyright:   Public domain.
043072,000003:                                                                                                  ## Filename:    INTERPRETER.agc
043073,000004:                                                                                                  ## Purpose:     A section of Luminary revision 173.
043074,000005:                                                                                                  ##              It is part of the reconstructed source code for the second
043075,000006:                                                                                                  ##              (unflown) release of the flight software for the Lunar
043076,000007:                                                                                                  ##              Module's (LM) Apollo Guidance Computer (AGC) for Apollo 14.
043077,000008:                                                                                                  ##              The code has been recreated from a reconstructed copy of
043078,000009:                                                                                                  ##              Luminary 178, as well as Luminary memo 167 (revision 1).
043079,000010:                                                                                                  ##              It has been adapted such that the resulting bugger words
043080,000011:                                                                                                  ##              exactly match those specified for Luminary 173 in NASA
043081,000012:                                                                                                  ##              drawing 2021152N, which gives relatively high confidence
043082,000013:                                                                                                  ##              that the reconstruction is correct.
043083,000014:                                                                                                  ## Reference:   pp. 993-1085
043084,000015:                                                                                                  ## Assembler:   yaYUL
043085,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
043086,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
043087,000018:                                                                                                  ## Mod history: 2019-09-18 MAS  Created from Luminary 178.
043088,000019:                                                                                                  ##              2021-05-30 ABS  B5TOBB -> B5TOB8
043089,000020: 

Page 993

043091,000022:                                                                                                  #  SECTION 1  DISPATCHER
043092,000023: 
043093,000024:                                                                                                  #           ENTRY TO THE INTERPRETER. INTPRET SETS LOC TO THE FIRST  INSTRUCTION, BANKSET TO THE BBANK OF THE
043094,000025:                                                                                                  #  OBJECT INTERPRETIVE PROGRAM, AND INTBIT15 TO THE BIT15 CONTENTS OF FBANK. INTERPRETIVE PROGRAMS MAY BE IN
043095,000026:                                                                                                  #  VIRTUALLY ALL BANKS PRESENT UNDER ANY SUPER-BANK SETTING, WITH THE RESTRICTION THAT PROGRAMS IN HIGH BANKS
043096,000027:                                                                                                  #  (BIT15 OF FBANK = 1) DO NOT REFER TO LOWBANKS, AND VICE-VERSA. THE INTERPRETER DOES NOT SWITCH SUPERBANKS.
043097,000028:                                                                                                  #  E-BANK SWITCHING OCCURS WHENEVER GENERAL ERASABLE (100 - 3777) IS ADDRESSED.
043098,000029: 
043099,000030:    6042                                           BLOCK    03                                    
043100,000031: 
043101,000032:    6042                                           COUNT*   $$/INTER                              
043102,000033:    6042           00003        INTPRET            RELINT                                         
043103,000034:    6043           00006                           EXTEND                                         #  SET LOC TO THE WORD FOLLOWING THE TC.
043104,000035:    6044           22164                           QXCH     LOC                                   
043105,000036: 
043106,000037:    6045           30006                 +2        CA       BBANK                                 #  INTERPRETIVE BRANCHES FINISH HERE.
043107,000038:    6046           54165                           TS       BANKSET                               
043108,000039:    6047           74735                           MASK     BIT15                                 #  GET 15TH BIT FOR INDEXABLE ADDRESSES.
043109,000040:    6050           54115                           TS       INTBIT15                              
043110,000041: 
043111,000042:    6051           54023                           TS       EDOP                                  #  MAKE SURE NO INSTRUCTIONS LEFT OVER
043112,000043: 
043113,000044:    6052           16073                           TCF      NEWOPS                                #  PICK UP OP CODE PAIR AND BEGIN.
043114,000045: 
043115,000046: 
043116,000047:    6053           22006        INTRSM             LXCH     BBANK                                 #  RESUME SUSPENDED INTERPRETIVE JOB
043117,000048:    6054           16045                           TCF      INTPRET    +3                         
043118,000049:                                                                                                  #           DLOAD LOADS MPAC, MPAC +1, LEAVING ZERO IN MPAC +2.
043119,000050: 
043120,000051:    6055           00006        DLOAD              EXTEND                                         
043121,000052:    6056           50116                           INDEX    ADDRWD                                
043122,000053:    6057           30001                           DCA      0                                     #  LOAD DP C(C(ADDRWD)) INTO MPAC,MPAX +1
043123,000054:    6060           52155        SLOAD2             DXCH     MPAC                                  
043124,000055:    6061           34755                           CAF      ZERO                                  #  ZERO MPAC +2
043125,000056: 

Page 994

043127,000058:                                                                                                  #           AT THE END OF MOST INSTRUCTIONS, CONTROL IS GIVEN TO DANZIG TO DISPATCH THE NEXT OPERATION.
043128,000059: 
043129,000060:    6062           54156                           TS       MPAC       +2                         #  AND DECLARE DP MODE
043130,000061: 
043131,000062:    6063           54163        NEWMODE            TS       MODE                                  #  PROLOGUE FOR MODE-CHANGING INSTRUCTIONS.
043132,000063: 
043133,000064:    6064           30165        DANZIG             CA       BANKSET                               #  SET BBANK BEFORE TESTING NEWJOB SO THAT
043134,000065:    6065           54006                           TS       BBANK                                 #  IT MAY BE SAVED DIRECTLY BY CHANJOB.
043135,000066: 
043136,000067:    6066           10023        NOIBNKSW           CCS      EDOP                                  #  SEE IF AN ORDER CODE IS LEFT OVER FROM
043137,000068:    6067           16102                           TCF      OPJUMP                                #  THE LAST PAIR RETRIEVED. IF SO, EXECUTE.
043138,000069:                                                                                                  #  EDOP IS SET TO ZERO ON ITS RE-EDITING.
043139,000070: 
043140,000071:    6070           10067                           CCS      NEWJOB                                #  SEE IF A JOB OF HIGHER PRIORITY IS
043141,000072:    6071           15126                           TCF      CHANG2                                #  PRESENT, AND IF SO, CHANGE JOBS.
043142,000073: 
043143,000074:    6072           24164                           INCR     LOC                                   #  ADVANCE THE LOCATION COUNTER.
043144,000075:                                                                                                  #           ITRACE (1) REFERS TO "NEWOPS".
043145,000076:    6073           50164        NEWOPS             INDEX    LOC                                   #  ENTRY TO BEGIN BY PICKING OP CODE PAIR.
043146,000077:    6074           30000                           CA       0                                     #  MAY BE AN OPCODE PAIR OR A STORE CODE.
043147,000078:    6075           10000                           CCS      A                                     #  TEST SIGN AND GET DABS(A).
043148,000079:    6076           16365                           TCF      DOSTORE                               #  PROCESS STORE CODE.
043149,000080: 
043150,000081:    6077           00177        LOW7               OCT      177                                   
043151,000082: 
043152,000083:    6100           54023                           TS       EDOP                                  #  OP CODE PAIR. LEAVE THE OTHER IN EDOP
043153,000084:    6101           76077                           MASK     LOW7                                  #  WHERE  CCS EDOP  WILL HONOR IT NEXT.
043154,000085: 
043155,000086:    6102           54020        OPJUMP             TS       CYR                                   #  LOWWD ENTERS HERE IF A RIGHT-HAND OP
043156,000087:    6103           10020                           CCS      CYR                                   #  CODE IS TO BE PROCESSED. TEST PREFICES.
043157,000088:    6104           16252                           TCF      OPJUMP2                               #  TEST SECOND PREFIX BIT.
043158,000089: 
043159,000090:    6105           16746                           TCF      EXIT                                  #  +0 OP CODE IS EXIT.
043160,000091: 

Page 995

043162,000093:                                                                                                  #           PROCESS ADDRESSES WHICH MAY BE DIRECT, INDEXED, OR REFERENCE THE PUSHDOWN LIST.
043163,000094: 
043164,000095:    6106           74753        ADDRESS            MASK     BIT1                                  #  SEE IF ADDRESS IS INDEXED. CYR CONTAINED
043165,000096:    6107           10000                           CCS      A                                     #  400XX, SO BIT 1 IS NOW AS IT WAS IN CYR.
043166,000097:    6110           16151                           TCF      INDEX                                 #  FORM INDEXED ADDRESS.
043167,000098: 
043168,000099:    6111           50164        DIRADRES           INDEX    LOC                                   #  LOOK AHEAD TO NEXT WORD TO SEE IF
043169,000100:    6112           40001        OCT40001           CS       1                                     #  ADDRESS IS GIVEN.
043170,000101:    6113           10000                           CCS      A                                     
043171,000102:    6114           16220                           TCF      PUSHUP                                #  IF NOT.
043172,000103: 
043173,000104:    6115           77773        NEG4               DEC      -4         B-14                       
043174,000105: 
043175,000106:    6116           24164                           INCR     LOC                                   #  IF SO, TO SHOW WE PICKED UP A WORD.
043176,000107:    6117           54116                           TS       ADDRWD                                
043177,000108: 

Page 996

043179,000110:                                                                                                  #           FINAL DIGESTION OF DIRECT ADDRESSES OF OP CODES WITH 01 PREFIX IS DONE HERE. IN EACH CASE, THE
043180,000111:                                                                                                  #  REQUIRED 12-BIT SUB-ADDRESS IS LEFT IN ADDRWD, WITH ANY REQUIRED E OR F BANK SWITCHING DONE. ADDRESSES LESS
043181,000112:                                                                                                  #  THAN 45D ARE TAKEN TO BE RELATIVE TO THE WORK AREA. THE OP CODE IS NOW IN BITS 1-5 OF CYR WITH BIT 14 = 1.
043182,000113: 
043183,000114:    6120           66254                           AD       -ENDVAC                               #  SEE IF ADDRESS RELATIVE TO WORK AREA.
043184,000115:    6121           10000                           CCS      A                                     
043185,000116:    6122           67746                           AD       -ENDERAS                              #  IF NOT, SEE IF IN GENERAL ERASABLE.
043186,000117:    6123           16130                           TCF      IERASTST                              
043187,000118: 
043188,000119:    6124           30120        NETZERO            CA       FIXLOC                                #  IF SO, LEAVE THE MODIFIED ADDRESS IN
043189,000120:    6125           26116                           ADS      ADDRWD                                #  ADDRWD AND DISPATCH.
043190,000121:    6126           50020        ITR15              INDEX    CYR                                   #  THIS INDEX MAKES THE NEXT INSTRUCTION
043191,000122:    6127           76276                           7        INDJUMP    -1                         #  TCF INDJUMP + OP, EDITING CYR.
043192,000123: 
043193,000124:    6130           00006        IERASTST           EXTEND                                         
043194,000125:    6131           66141                           BZMF     GEADDR                                #  GO PROCESS GENERAL-ERASABLE ADDRESS.
043195,000126: 
043196,000127:    6132           75012                           MASK     LOW10                                 #  FIXED BANK ADDRESS. RESTORE AND ADD B15.
043197,000128:    6133           65012                           AD       LOW10                                 #  SWITCH BANKS AND LEAVE SUBADDRESS IN
043198,000129:    6134           56116                           XCH      ADDRWD                                #  ADDRWD FOR OPERAND RETRIEVAL. (THIS
043199,000130:    6135           60115                           AD       INTBIT15                              #  METHOD PRECLUDES USE OF THE LAST
043200,000131:    6136           54004                           TS       FBANK                                 #  LOCATION IN EACH FBANK.)
043201,000132:    6137           50020        ITR12              INDEX    CYR                                   
043202,000133:    6140           76276                           7        INDJUMP    -1                         
043203,000134: 
043204,000135:    6141           74357        GEADDR             MASK     LOW8                                  
043205,000136:    6142           65007                           AD       OCT1400                               
043206,000137:    6143           56116                           XCH      ADDRWD                                
043207,000138:    6144           54003                           TS       EBANK                                 
043208,000139:    6145           50020        ITR10              INDEX    CYR                                   
043209,000140:    6146           76276                           7        INDJUMP    -1                         
043210,000141: 

Page 997

043212,000143:                                                                                                  #           THE FOLLOWING ROUTINE PROCESSES INTERPRETIVE INDEXED ADDRESSES. AN INTERPRETER INDEX REGISTER MAY
043213,000144:                                                                                                  #  CONTAIN THE ADDRESS OF ANY ERASABLE REGISTER (0-42 BEING RELATIVE TO THE VAC AREA) OR ANY INTERPRETIVE PROGRAM
043214,000145:                                                                                                  #  BANK, OR ANY INTEGER IN THAT RANGE.
043215,000146: 
043216,000147:    6147           37736        DODLOAD*           CAF      DLOAD*                                #  STODL* COMES HERE TO PROCESS LOAD ADR.
043217,000148:    6150           54020                           TS       CYR                                   #  (STOVL* ENTERS HERE).
043218,000149: 
043219,000150:    6151           30120        INDEX              CA       FIXLOC                                #  SET UP INDEX LOCATION.
043220,000151:    6152           54130                           TS       INDEXLOC                              
043221,000152:    6153           24164                           INCR     LOC                                   #  (ADDRESS ALWAYS GIVEN).
043222,000153:    6154           50164                           INDEX    LOC                                   
043223,000154:    6155           40000                           CS       0                                     
043224,000155:    6156           10000                           CCS      A                                     #  INDEX 2 IF ADDRESS STORED COMPLEMENTED.
043225,000156:    6157           24130                           INCR     INDEXLOC                              
043226,000157:    6160           16161                           NOOP                                           
043227,000158: 
043228,000159:    6161           54116                           TS       ADDRWD                                #  14 BIT ADDRESS TO ADDRWD.
043229,000160:    6162           77745                           MASK     HIGH4                                 #  IF ADDRESS GREATER THAN 2K, ADD INTBIT15
043230,000161:    6163           00006                           EXTEND                                         
043231,000162:    6164           16167                           BZF      INDEX2                                
043232,000163:    6165           30115                           CA       INTBIT15                              
043233,000164:    6166           26116                           ADS      ADDRWD                                
043234,000165: 
043235,000166:    6167           50130        INDEX2             INDEX    INDEXLOC                              
043236,000167:    6170           40046                           CS       X1                                    
043237,000168:    6171           26116                           ADS      ADDRWD                                #  DO AUGMENT, IGNORING AND CORRECTING OVF.
043238,000169: 
043239,000170:    6172           77747                           MASK     HIGH9                                 #  SEE IF ADDRESS IS IN WORK AREA.
043240,000171:    6173           00006                           EXTEND                                         
043241,000172:    6174           16207                           BZF      INDWORK                               
043242,000173:    6175           77745                           MASK     HIGH4                                 #  SEE IF IN FIXED BANK.
043243,000174:    6176           00006                           EXTEND                                         
043244,000175:    6177           16211                           BZF      INDERASE                              
043245,000176: 
043246,000177:    6200           30116                           CA       ADDRWD                                #  IN FIXED - SWITCH BANKS AND CREATE
043247,000178:    6201           54004                           TS       FBANK                                 #  SUB-ADDRESS.
043248,000179:    6202           75012                           MASK     LOW10                                 
043249,000180:    6203           64741                           AD       2K                                    
043250,000181:    6204           54116                           TS       ADDRWD                                
043251,000182:    6205           50020        ITR11              INDEX    CYR                                   
043252,000183:    6206           36276                           3        INDJUMP    -1                         
043253,000184: 
043254,000185:    6207           30120        INDWORK            CA       FIXLOC                                #  MAKE ADDRWD RELATIVE TO WORK AREA.
043255,000186:    6210           16215                           TCF      ITR13      -1                         
043256,000187: 
043257,000188:    6211           35007        INDERASE           CA       OCT1400                               
043258,000189:    6212           56116                           XCH      ADDRWD                                
043259,000190:    6213           54003                           TS       EBANK                                 
043260,000191:    6214           74357                           MASK     LOW8                                  
043261,000192:    6215           26116                 -1        ADS      ADDRWD                                

Page 998

043263,000194:    6216           50020        ITR13              INDEX    CYR                                   
043264,000195:    6217           36276                           3        INDJUMP    -1                         
043265,000196: 

Page 999

043267,000198:                                                                                                  #           PUSH-UP ROUTINES. WHEN NO OPERAND ADDRESS IS GIVEN, THE APPROPRIATE OPERAND IS TAKEN FROM THE PUSH-DOWN
043268,000199:                                                                                                  #  LIST. IN MOST CASES THE MODE OF THE RESULT (VECTOR OR SCALAR) OF THE LAST ARITHMETIC OPERATION PERFORMED
043269,000200:                                                                                                  #  IS THE SAME AS THE TYPE OF OPERAND DESIRED (ALL ADD/SUBTRACT ETC.). EXCEPTIONS TO THIS GENERAL RULE ARE LISTED
043270,000201:                                                                                                  #  BELOW (NOTE THAT IN EVERY CASE THE MODE REGISTER IS LEFT INTACT):
043271,000202: 
043272,000203:                                                                                                  #           1.  VXSC AND V/SC WANT THE OPPOSITE TYPE OF OPERAND, E.G., IF THE LAST OPERATION YIELDED A VECTOR
043273,000204:                                                                                                  #  RESULT, VXSC WANTS A SCALAR.
043274,000205: 
043275,000206:                                                                                                  #           2.  THE LOAD CODES SHOULD LOAD THE ACCUMULATOR INDEPENDENT OF THE RESULT OF THE LAST OPERATION. THIS
043276,000207:                                                                                                  #  INCLUDES VLOAD, DLOAD, TLOAD, PDDL, AND PDVL (NO PUSHUP WITH SLOAD).
043277,000208: 
043278,000209:                                                                                                  #           3.  SOME ARITHMETIC OPERATIONS REQUIRE A STANDARD TYPE OF OPERAND REGARDLESS OF THE PREVIOUS OPERATION.
043279,000210:                                                                                                  #  THIS INCLUDES SIGN WANTING DP AND TAD REQUIRING TP.
043280,000211: 
043281,000212:    6220           34360        PUSHUP             CAF      OCT23                                 #  IF THE LOW 5 BITS OF CYR ARE LESS THAN
043282,000213:    6221           70020                           MASK     CYR                                   #  20, THIS OP REQUIRES SPECIAL ATTENTION.
043283,000214:    6222           66225                           AD       -OCT10                                #  (NO -0).
043284,000215:    6223           10000                           CCS      A                                     
043285,000216:    6224           16236                           TCF      REGUP                                 #  FOR ALL CODES GREATER THAN OCT 7.
043286,000217: 
043287,000218:    6225           77767        -OCT10             OCT      -10                                   
043288,000219: 
043289,000220:    6226           66115                           AD       NEG4                                  #  WE NOW HAVE 7 - OP CODE(MOD4). SEE IF
043290,000221:    6227           10000                           CCS      A                                     #  THE OP CODE (MOD4) IS THREE (REVERSE).
043291,000222:    6230           50000                           INDEX    A                                     #  NO - THE MODE IS DEFINITE. PICK UP THE
043292,000223:    6231           46247                           CS       NO.WDS                                
043293,000224:    6232           16240                           TCF      REGUP      +2                         
043294,000225: 
043295,000226:    6233           50163                           INDEX    MODE                                  #  FOR VXSC AND V/SC WE WANT THE REQUIRED
043296,000227:    6234           46245                           CS       REVCNT                                #  PUSHLOC DECREMENT WITHOUT CHANGING THE
043297,000228:    6235           16240                           TCF      REGUP      +2                         #  MODE AT THIS TIME.
043298,000229: 
043299,000230:    6236           50163        REGUP              INDEX    MODE                                  #  MOST ALL OP CODES PUSHUP HERE.
043300,000231:    6237           46247                           CS       NO.WDS                                
043301,000232:    6240           26166                 +2        ADS      PUSHLOC                               
043302,000233:    6241           54116                           TS       ADDRWD                                
043303,000234:    6242           50020        ITR14              INDEX    CYR                                   
043304,000235:    6243           76276                           7        INDJUMP    -1                         #  (THE INDEX MAKES THIS A TCF.)
043305,000236: 
043306,000237:    6244           00002                           OCT      2                                     #  REVERSE PUSHUP DECREMENT. VECTOR TAKES 2
043307,000238:    6245           00006        REVCNT             OCT      6                                     #  WORDS, SCALAR TAKES 6.
043308,000239:    6246           00006                           OCT      6                                     
043309,000240:    6247           00002        NO.WDS             OCT      2                                     #  CONVENTIONAL DECREMENT IS 6 WORDS VECTOR
043310,000241:    6250           00003        OCTAL3             OCT      3                                     #  2 IN DP, AND 3 IN TP.
043311,000242:    6251           00006                           OCT      6                                     
043312,000243: 

Page 1000

043314,000245:                                                                                                  #           TEST THE SECOND PREFIX BIT TO SEE IF THIS IS A MISCELLANEOUS OR A UNARY/SHORT SHIFT OPERATION.
043315,000246: 
043316,000247:    6252           10020        OPJUMP2            CCS      CYR                                   #  TEST SECOND PREFIX BIT.
043317,000248:    6253           16266                           TCF      OPJUMP3                               #  TEST THIRD BIT TO SEE IF UNARY OR SHIFT.
043318,000249: 
043319,000250:    6254           77722        -ENDVAC            DEC      -45        B-14                       
043320,000251: 
043321,000252:                                                                                                  #           THE FOLLOWING ROUTINE PROCESSES ADDRESSES OF SUFFIX CLASS 10. THEY ARE BASICALLY WORK AREA ADDRESSES
043322,000253:                                                                                                  #  IN THE RANGE 0 - 52, ERASABLE ECADR CONSTANTS FROM 100 - 3777, AND FCADRS ABOVE THAT. ALL 15 BITS ARE AVAILABLE
043323,000254:                                                                                                  #  IN CONTRAST TO SUFFIX 1, IN WHICH ONLY THE LOW ORDER 14 ARE AVAILABLE.
043324,000255: 
043325,000256:    6255           24164        15BITADR           INCR     LOC                                   #  (ENTRY HERE FROM STCALL).
043326,000257:    6256           50164                           INDEX    LOC                                   #  PICK UP ADDRESS WORD.
043327,000258:    6257           30000                           CA       0                                     
043328,000259:    6260           54117                           TS       POLISH                                #  WE MAY NEED A SUBADDRESS LATER.
043329,000260: 
043330,000261:    6261           35013                           CAF      LOW7+2K                               #  THESE INSTRUCTIONS ARE IN BANK 1.
043331,000262:    6262           54004                           TS       FBANK                                 
043332,000263:    6263           70020                           MASK     CYR                                   
043333,000264:    6264           50000        ITR7               INDEX    A                                     
043334,000265:    6265           16337                           TCF      MISCJUMP                              
043335,000266: 

Page 1001

043337,000268:                                                                                                  #           COMPLETE THE DISPATCHING OF UNARY AND SHORT SHIFT OPERATIONS.
043338,000269: 
043339,000270:    6266           54004        OPJUMP3            TS       FBANK                                 #  CALL IN BANK 0 (BITS 11-15 OF A ARE 0.)
043340,000271:                                                                                                  #           ITRACE (6) REFERS TO "OPJUMP3".
043341,000272:    6267           10020                           CCS      CYR                                   #  TEST THIRD PREFIX BIT.
043342,000273:    6270           50000                           INDEX    A                                     #  THE DECREMENTED UNARY CODE IS IN BITS
043343,000274:    6271           12000                           TCF      UNAJUMP                               #  1-4 OF A (ZERO, EXIT, HAS BEEN DETECTED)
043344,000275: 
043345,000276:    6272           10163                           CCS      MODE                                  #  ITS A SHORT SHIFT CODE. SEE IF PRESENT
043346,000277:    6273           12017                           TCF      SHORTT                                #  SCALAR OR VECTOR.
043347,000278:    6274           12017                           TCF      SHORTT                                
043348,000279:    6275           12121                           TCF      SHORTV                                #  CALLS THE APPROPRIATE ROUTINE.
043349,000280: 
043350,000281:    6276     4350               FBANKMSK           EQUALS   BANKMASK                              
043351,000282:    6276           00122        LVBUF              ADRES    VBUF                                  
043352,000283: 

Page 1002

043354,000285:                                                                                                  #           THE FOLLOWING IS THE JUMP TABLE FOR OP CODES WHICH MAY HAVE INDEXABLE ADDRESSES OR MAY PUSH UP.
043355,000286: 
043356,000287:    6277           16510        INDJUMP            TCF      VLOAD                                 #  00 - LOAD MPAC WITH A VECTOR.
043357,000288:    6300           17074                           TCF      TAD                                   #  01 - TRIPLE PRECISION ADD TO MPAC.
043358,000289:    6301           17660                           TCF      SIGN                                  #  02 - COMPLEMENT MPAC (V OR SC) IF X NEG.
043359,000290:    6302           17404                           TCF      VXSC                                  #  03 - VECTOR TIMES SCALAR.
043360,000291:    6303           16706                           TCF      CGOTO                                 #  04 - COMPUTED GO TO.
043361,000292:    6304           16473                           TCF      TLOAD                                 #  05 - LOAD MPAC WITH TRIPLE PRECISION.
043362,000293:    6305           16055                           TCF      DLOAD                                 #  06 - LOAD MPAC WITH A DP SCALAR.
043363,000294:    6306           17627                           TCF      V/SC                                  #  07 - VECTOR DIVIDED BY SCALAR.
043364,000295: 
043365,000296:    6307           16504                           TCF      SLOAD                                 #  10 - LOAD MPAC IN SINGLE PRECISION.
043366,000297:    6310           16623                           TCF      SSP                                   #  11 - SET SINGLE PRECISION INTO X.
043367,000298:    6311           16526                           TCF      PDDL                                  #  12 - PUSH DOWN MPAC AND RE-LOAD IN DP.
043368,000299:    6312           17337                           TCF      MXV                                   #  13 - MATRIX POST-MULTIPLIED BY VECTOR.
043369,000300:    6313           16562                           TCF      PDVL                                  #  14 - PUSH DOWN AND VECTOR LOAD.
043370,000301:    6314           16631                           TCF      CCALL                                 #  15 - COMPUTED CALL.
043371,000302:    6315           17342                           TCF      VXM                                   #  16 - MATRIX PRE-MULTIPLIED BY VECTOR.
043372,000303:    6316           17621                           TCF      TSLC                                  #  17 - NORMALIZE MPAC (SCALAR ONLY).
043373,000304: 
043374,000305:    6317           17577                           TCF      DMPR                                  #  20 - DP MULTIPLY AND ROUND.
043375,000306:    6320           17602                           TCF      DDV                                   #  21 - DP DIVIDE BY.
043376,000307:    6321           17606                           TCF      BDDV                                  #  22 - DP DIVIDE INTO.
043377,000308:    6322           17624                           TCF      GSHIFT                                #  23 - GENERAL SHIFT INSTRUCTION.
043378,000309:    6323           16754                           TCF      VAD                                   #  24 - VECTOR ADD.
043379,000310:    6324           16752                           TCF      VSU                                   #  25 - VECTOR SUBTRACT.
043380,000311:    6325           17041                           TCF      BVSU                                  #  26 - VECTOR SUBTRACT FROM.
043381,000312:    6326           17334                           TCF      DOT                                   #  27 - VECTOR DOT PRODUCT.
043382,000313: 
043383,000314:    6327           17463                           TCF      VXV                                   #  30 - VECTOR CROSS PRODUCT.
043384,000315:    6330           17430                           TCF      VPROJ                                 #  31 - VECTOR PROJECTION.
043385,000316:    6331           17010                           TCF      DSU                                   #  32 - DP SUBTRACT.
043386,000317:    6332           17065                           TCF      BDSU                                  #  33 - DP SUBTRACT FROM.
043387,000318:    6333           17000                           TCF      DAD                                   #  34 - DP ADD.
043388,000319:    6334           16334                           TCF      +0                                    #  35 - AVAILABLE
043389,000320:    6335           17575                           TCF      DMP1                                  #  36 - DP MULTIPLY.
043390,000321:    6336           17616                           TCF      SETPD                                 #  37 - SET PUSH DOWN POINTER (DIRECT ONLY)
043391,000322: 
043392,000323:                                                                                                  #  CODES 10 AND 14 MUST NOT PUSH UP. CODE 04 MAY BE USED FOR VECTOR DECLARE BEFORE PUSHUP IF DESIRED.
043393,000324: 

Page 1003

043395,000326:                                                                                                  #           THE FOLLOWING JUMP TABLE APPLIES TO INDEX, BRANCH, AND MISCELLANEOUS INSTRUCTIONS.
043396,000327: 
043397,000328:    6337           12350        MISCJUMP           TCF      AXT                                   #  00 - ADDRESS TO INDEX TRUE.
043398,000329:    6340           12355                           TCF      AXC                                   #  01 - ADDRESS TO INDEX COMPLEMENTED.
043399,000330:    6341           12360                           TCF      LXA                                   #  02 - LOAD INDEX FROM ERASABLE.
043400,000331:    6342           12364                           TCF      LXC                                   #  03 - LOAD INDEX FROM COMPLEMENT OF ERAS.
043401,000332:    6343           12370                           TCF      SXA                                   #  04 - STORE INDEX IN ERASABLE.
043402,000333:    6344           12376                           TCF      XCHX                                  #  05 - EXCHANGE INDEX WITH ERASABLE.
043403,000334:    6345           12412                           TCF      INCR                                  #  06 - INCREMENT INDEX REGISTER.
043404,000335:    6346           12421                           TCF      TIX                                   #  07 - TRANSFER ON INDEX.
043405,000336: 
043406,000337:    6347           12404                           TCF      XAD                                   #  10 - INDEX REGISTER ADD FROM ERASABLE.
043407,000338:    6350           12415                           TCF      XSU                                   #  11 - INDEX SUBTRACT FROM ERASABLE.
043408,000339:    6351           12473                           TCF      BZE/GOTO                              #  12 - BRANCH ZERO AND GOTO.
043409,000340:    6352           12500                           TCF      BPL/BMN                               #  13 - BRANCH PLUS AND BRANCH MINUS.
043410,000341:    6353           12453                           TCF      RTB/BHIZ                              #  14 - RETURN TO BASIC AND BRANCH HI ZERO.
043411,000342:    6354           12513                           TCF      CALL/ITA                              #  15 - CALL AND STORE QPRET.
043412,000343:    6355           12522                           TCF      SW/                                   #  16 - SWITCH INSTRUCTIONS AND AVAILABLE.
043413,000344:    6356           12463                           TCF      BOV(B)                                #  17 - BRANCH ON OVERFLOW TO BASIC OR INT.
043414,000345: 

Page 1004

043416,000347:                                                                                                  #           THE FOLLOWING JUMP TABLE APPIES TO UNARY INSTRUCTIONS.
043417,000348: 
043418,000349:    6357                                           COUNT*   $$/INTER                              
043419,000350: 00,2000                                           BANK     0                                     #  00 - EXIT - DETECTED EARLIER.
043420,000351: 00,2000           13207        UNAJUMP            TCF      SQRT                                  #  01 - SQUARE ROOT.
043421,000352: 00,2001           13530                           TCF      SINE                                  #  02 - SIN.
043422,000353: 00,2002           13517                           TCF      COSINE                                #  03 - COS.
043423,000354: 00,2003           13610                           TCF      ARCSIN                                #  04 - ARC SIN.
043424,000355: 00,2004           13612                           TCF      ARCCOS                                #  05 - ARC COS.
043425,000356: 00,2005           13174                           TCF      DSQ                                   #  06 - DP SQUARE.
043426,000357: 00,2006           12116                           TCF      ROUND                                 #  07 - ROUND TO DP.
043427,000358: 
043428,000359: 00,2007           17673                           TCF      COMP                                  #  10 - COMPLEMENT VECTOR OR SCALAR.
043429,000360: 00,2010           13232                           TCF      VDEF                                  #  11 - VECTOR DEFINE.
043430,000361: 00,2011           13023                           TCF      UNIT                                  #  12 - UNIT VECTOR.
043431,000362: 00,2012           13176                           TCF      ABVALABS                              #  13 - LENGTH OF VECTOR OR MAG OF SCALAR.
043432,000363: 00,2013           13245                           TCF      VSQ                                   #  14 - SQUARE OF LENGTH OF VECTOR.
043433,000364: 00,2014           16357                           TCF      STADR                                 #  15 - PUSH UP ON STORE CODE.
043434,000365: 00,2015           13274                           TCF      RVQ                                   #  16 - RETURN VIA QPRET.
043435,000366: 00,2016           13247                           TCF      PUSH                                  #  17 - PUSH MPAC DOWN.
043436,000367: 

Page 1005

043438,000369:                                                                                                  #  SECTION 2  LOAD AND STORE PACKAGE.
043439,000370: 
043440,000371:                                                                                                  #           A SET OF EIGHT STORE CODES IS PROVIDED AS THE PRIMARY METHOD OF STORING THE MULTI-PURPOSE
043441,000372:                                                                                                  #  ACCUMULATOR (MPAC). IF IN THE DANZIG SECTION LOC REFERS TO AN ALGEBRAICALLY POSITIVE WORD, IT IS TAKEN AS A 
043442,000373:                                                                                                  #  STORE CODE WITH A CORRESPONDING ERASABLE ADDRESS. MOST OF THESE CODES ARE TWO ADDRESS, SPECIFYING THAT THE WORD
043443,000374:                                                                                                  #  FOLLOWING THE STORE CODE IS TO BE USED AS AN ADDRESS FROM WHICH TO RE-LOAD MPAC. FOUR OPTIONS ARE AVAILABLE:
043444,000375: 
043445,000376:                                                                                                  #           1. STORE               STORE MPAC. THE E ADDRESS MAY BE INDEXED.
043446,000377:                                                                                                  #           2. STODL               STORE MPAC AND RE-LOAD IT IN DP WITH THE NEXT ADDRESS (THE LOAD MAY BE INDEXED).
043447,000378:                                                                                                  #           3. STOVL               STORE MPAC AND RE-LOAD A VECTOR (AS ABOVE).
043448,000379:                                                                                                  #           4. STCALL              STORE AND DO A CALL (BOTH ADDRESSES MUST BE DIRECT HERE).
043449,000380: 
043450,000381:                                                                                                  #           STODL AND STOVL WILL TAKE FROM THE PUSH-DOWN LIST IF NO LOAD ADDRESS IS GIVEN.
043451,000382: 
043452,000383:    6357                                           BLOCK    3                                     
043453,000384: 
043454,000385:    6357                                           COUNT*   $$/INTER                              
043455,000386:    6357           30165        STADR              CA       BANKSET                               #  THE STADR CODE (PUSHUP UP ON STORE
043456,000387:    6360           54004                           TS       FBANK                                 #  ADDRESS) ENTERS HERE.
043457,000388:    6361           24164                           INCR     LOC                                   
043458,000389:    6362           50164        ITR1               INDEX    LOC                                   #  THE STORECODE WAS STORED COMPLEMENTED TO
043459,000390:    6363           40000                           CS       0                                     #  MAKE IT LOOK LIKE AN OPCODE PAIR.
043460,000391:    6364           67752                           AD       NEGONE                                #  (YUL CANT REMOVE 1 BECAUSE OF EARLY CCS)
043461,000392: 
043462,000393:    6365           54116        DOSTORE            TS       ADDRWD                                
043463,000394:    6366           74356                           MASK     LOW11                                 #  ENTRY FROM DISPATCHER. SAVE THE ERASABLE
043464,000395:    6367           56116                           XCH      ADDRWD                                #  ADDRESS AND JUMP ON THE STORE CODE NO.
043465,000396:    6370           77725                           MASK     B12T14                                
043466,000397:    6371           00006                           EXTEND                                         
043467,000398:    6372           74747                           MP       BIT5                                  #  EACH TRANSFER VECTOR ENTRY IS TWO WORDS.
043468,000399:    6373           50000        ITR0               INDEX    A                                     
043469,000400:    6374           16375                           TCF      STORJUMP                              
043470,000401: 

Page 1006

043472,000403:                                                                                                  #           STORE CODE JUMP TABLE. CALLS THE APPROPRIATE STORING ROUTINE AND EXITS TO DANZIG OR TO ADDRESS WITH
043473,000404:                                                                                                  #  A SUPPLIED OPERATION CODE.
043474,000405: 
043475,000406:                                                                                                  #           STORE STORE,1 AND STORE,2 RETURN TO DANZIG, THUS RESETTING THE EBANK TO ITS STATE AT INTPRET.
043476,000407: 
043477,000408:    6375           06425        STORJUMP           TC       STORE                                 #  STORE.
043478,000409:    6376           16064                           TCF      DANZIG                                #  PICK UP NEW OP CODE(S).
043479,000410:    6377           06417                           TC       STORE,1                               
043480,000411:    6400           16064                           TCF      DANZIG                                
043481,000412:    6401           06422                           TC       STORE,2                               
043482,000413:    6402           16064                           TCF      DANZIG                                
043483,000414: 
043484,000415:    6403           06425                           TC       STORE                                 #  STODL.
043485,000416:    6404           16463                           TCF      DODLOAD                               
043486,000417: 
043487,000418:    6405           06425                           TC       STORE                                 #  STODL WITH INDEXED LOAD ADDRESS.
043488,000419:    6406           16147                           TCF      DODLOAD*                              
043489,000420: 
043490,000421:    6407           06425                           TC       STORE                                 #  STOVL.
043491,000422:    6410           16466                           TCF      DOVLOAD                               
043492,000423: 
043493,000424:    6411           06425                           TC       STORE                                 #  STOVL WITH INDEXED LOAD ADDRESS.
043494,000425:    6412           16471                           TCF      DOVLOAD*                              
043495,000426:    6413           06425                           TC       STORE                                 #  STOTC.
043496,000427:    6414           34766                           CAF      CALLCODE                              
043497,000428:    6415           54020                           TS       CYR                                   
043498,000429:    6416           16255                           TCF      15BITADR                              #  GET A 15 BIT ADDRESS.
043499,000430: 

Page 1007

043501,000432:                                                                                                  #           STORE CODE ADDRESS PROCESSOR.
043502,000433: 
043503,000434:    6417           50120        STORE,1            INDEX    FIXLOC                                
043504,000435:    6420           40046                           CS       X1                                    
043505,000436:    6421           16424                           TCF      PRESTORE                              
043506,000437: 
043507,000438:    6422           50120        STORE,2            INDEX    FIXLOC                                
043508,000439:    6423           40047                           CS       X2                                    
043509,000440:    6424           26116        PRESTORE           ADS      ADDRWD                                #  RESULTANT ADDRESS IS IN ERASABLE.
043510,000441: 
043511,000442:    6425           40116        STORE              CS       ADDRWD                                
043512,000443:    6426           64772                           AD       DEC45                                 
043513,000444:    6427           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
043514,000445:    6430           30120                           CA       FIXLOC                                #  YES.
043515,000446:    6431           16436                           TCF      AHEAD5                                
043516,000447:    6432           35007                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
043517,000448:    6433           56116                           XCH      ADDRWD                                
043518,000449:    6434           54003                           TS       EBANK                                 
043519,000450:    6435           74357                           MASK     LOW8                                  
043520,000451:    6436           26116        AHEAD5             ADS      ADDRWD                                
043521,000452: 

Page 1008

043523,000454:                                                                                                  #           STORING ROUTINES. STORE DP, TP, OR VECTOR AS INDICATED BY MODE.
043524,000455: 
043525,000456:    6437           00006        STARTSTO           EXTEND                                         #  MPAC,+1 MUST BE STORED IN ANY EVENT.
043526,000457:                                                                                                  #           ITRACE (5) REFERS TO "STARTSTO".
043527,000458:    6440           30155                           DCA      MPAC                                  
043528,000459:    6441           50116                           INDEX    ADDRWD                                
043529,000460:    6442           52001                           DXCH     0                                     
043530,000461: 
043531,000462:    6443           10163                           CCS      MODE                                  
043532,000463:    6444           16457                           TCF      TSTORE                                
043533,000464:    6445           00002                           TC       Q                                     
043534,000465: 
043535,000466:    6446           00006        VSTORE             EXTEND                                         
043536,000467:    6447           30160                           DCA      MPAC       +3                         
043537,000468:    6450           50116                           INDEX    ADDRWD                                
043538,000469:    6451           52003                           DXCH     2                                     
043539,000470: 
043540,000471:    6452           00006                           EXTEND                                         
043541,000472:    6453           30162                           DCA      MPAC       +5                         
043542,000473:    6454           50116                           INDEX    ADDRWD                                
043543,000474:    6455           52005                           DXCH     4                                     
043544,000475:    6456           00002                           TC       Q                                     
043545,000476: 
043546,000477:    6457           30156        TSTORE             CA       MPAC       +2                         
043547,000478:    6460           50116                           INDEX    ADDRWD                                
043548,000479:    6461           54002                           TS       2                                     
043549,000480:    6462           00002                           TC       Q                                     
043550,000481: 

Page 1009

043552,000483:                                                                                                  #           ROUTINES TO BEGIN PROCESSING OF THE SECOND ADDRESS ASSOCIATED WITH ALL STORE-TYPE CODES EXCEPT STORE
043553,000484:                                                                                                  #  ITSELF.
043554,000485: 
043555,000486:    6463           37735        DODLOAD            CAF      DLOADCOD                              
043556,000487:    6464           54020                           TS       CYR                                   
043557,000488:    6465           16111                           TCF      DIRADRES                              #  GO GET A DIRECT ADDRESS.
043558,000489: 
043559,000490:    6466           34735        DOVLOAD            CAF      VLOADCOD                              
043560,000491:    6467           54020                           TS       CYR                                   
043561,000492:    6470           16111                           TCF      DIRADRES                              
043562,000493: 
043563,000494:    6471           36112        DOVLOAD*           CAF      VLOAD*                                
043564,000495:    6472           16150                           TCF      DODLOAD*   +1                         #  PROLOGUE TO INDEX ROUTINE.
043565,000496: 

Page 1010

043567,000498:                                                                                                  #           THE FOLLOWING LOAD INSTRUCTIONS ARE PROVIDED FOR LOADING THE MULTI-PURPOSE ACCUMULATOR MPAC.
043568,000499: 
043569,000500:    6473           50116        TLOAD              INDEX    ADDRWD                                
043570,000501:    6474           30002                           CA       2                                     #  LOAD A TRIPLE PRECISION ARGUMENT INTO
043571,000502:    6475           54156                           TS       MPAC       +2                         #  THE FIRST THREE MPAC REGISTERS, WITH THE
043572,000503:    6476           00006                           EXTEND                                         #  CONTENTS OF THE OTHER FOUR IRRELEVANT.
043573,000504:    6477           50116                           INDEX    ADDRWD                                
043574,000505:    6500           30001                           DCA      0                                     
043575,000506:    6501           52155                           DXCH     MPAC                                  
043576,000507:    6502           34753        TMODE              CAF      ONE                                   
043577,000508:    6503           16063                           TCF      NEWMODE                               #  DECLARE TRIPLE PRECISION MODE.
043578,000509: 
043579,000510:    6504           22007        SLOAD              ZL                                             #  LOAD A SINGLE PRECISION NUMBER INTO
043580,000511:    6505           50116                           INDEX    ADDRWD                                #  MPAC, SETTING MPAC+1,2 TO ZERO. THE
043581,000512:    6506           30000                           CA       0                                     #  CONTENTS OF THE REMAINING MPAC REGISTERS
043582,000513:    6507           16060                           TCF      SLOAD2                                #  ARE IRRELEVANT.
043583,000514: 
043584,000515:    6510           00006        VLOAD              EXTEND                                         #  LOAD A DOUBLE PRECISION VECTOR INTO
043585,000516:    6511           50116                           INDEX    ADDRWD                                #  MPAC,+1, MPAC+3,4, AND MPAC+5,6. THE
043586,000517:    6512           30001                           DCA      0                                     #  CONTENTS OF MPAC +2 ARE IRRELEVANT.
043587,000518:    6513           52155                           DXCH     MPAC                                  
043588,000519: 
043589,000520:    6514           00006        ENDVLOAD           EXTEND                                         #  PDVL COMES HERE TO FINISH UP FOR DP, TP.
043590,000521:    6515           50116                           INDEX    ADDRWD                                
043591,000522:    6516           30003                           DCA      2                                     
043592,000523:    6517           52160                           DXCH     MPAC       +3                         
043593,000524: 
043594,000525:    6520           00006                 +4        EXTEND                                         #  TPDVL FINISHES HERE.
043595,000526:    6521           50116                           INDEX    ADDRWD                                
043596,000527:    6522           30005                           DCA      4                                     
043597,000528:    6523           52162                           DXCH     MPAC       +5                         
043598,000529: 
043599,000530:    6524           44753        VMODE              CS       ONE                                   #  DECLARE VECTOR MODE.
043600,000531:    6525           16063                           TCF      NEWMODE                               
043601,000532: 

Page 1011

043603,000534:                                                                                                  #           THE FOLLOWING INSTRUCTIONS ARE PROVIDED FOR STORING OPERANDS IN THE PUSHDOWN LIST:
043604,000535: 
043605,000536:                                                                                                  #           1.  PUSH               PUSHDOWN AND NO LOAD.
043606,000537:                                                                                                  #           2.  PDDL               PUSHDOWN AND DOUBLE PRECISION LOAD.
043607,000538:                                                                                                  #           3.  PDVL               PUSHDOWN AND VECTOR LOAD.
043608,000539: 
043609,000540:    6526           00006        PDDL               EXTEND                                         
043610,000541:    6527           50116                           INDEX    ADDRWD                                #  LOAD MPAC,+1, PUSHING THE FORMER
043611,000542:    6530           30001                           DCA      0                                     #  CONTENTS DOWN.
043612,000543:    6531           52155                           DXCH     MPAC                                  
043613,000544:    6532           50166                           INDEX    PUSHLOC                               
043614,000545:    6533           52001                           DXCH     0                                     
043615,000546: 
043616,000547:    6534           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER APPRO-
043617,000548:    6535           36247                           CAF      NO.WDS                                #  PRIATELY.
043618,000549:    6536           26166                           ADS      PUSHLOC                               
043619,000550: 
043620,000551:    6537           10163                           CCS      MODE                                  
043621,000552:    6540           16555                           TCF      ENDTPUSH                              
043622,000553:    6541           16553                           TCF      ENDDPUSH                              
043623,000554: 
043624,000555:    6542           54163                           TS       MODE                                  #  NOW DP.
043625,000556:    6543           54156        ENDVPUSH           TS       MPAC       +2                         
043626,000557:    6544           52160                           DXCH     MPAC       +3                         #  PUSH DOWN THE REST OF THE VECTOR HERE.
043627,000558:    6545           50166                           INDEX    PUSHLOC                               
043628,000559:    6546           51775                           DXCH     0          -4                         
043629,000560: 
043630,000561:    6547           52162                           DXCH     MPAC       +5                         
043631,000562:    6550           50166                           INDEX    PUSHLOC                               
043632,000563:    6551           51777                           DXCH     0          -2                         
043633,000564: 
043634,000565:    6552           16064                           TCF      DANZIG                                
043635,000566: 
043636,000567:    6553           54156        ENDDPUSH           TS       MPAC       +2                         #  SET MPAC +2 TO ZERO AND EXIT ON DP.
043637,000568:    6554           16064                           TCF      DANZIG                                
043638,000569: 
043639,000570:    6555           54163        ENDTPUSH           TS       MODE                                  
043640,000571:    6556           56156                           XCH      MPAC       +2                         #  ON TRIPLE, SET MPAC +2 TO ZERO, PUSHING
043641,000572:    6557           50166                 +2        INDEX    PUSHLOC                               #  DOWN THE OLD CONTENTS
043642,000573:    6560           53777                           TS       0          -1                         
043643,000574:    6561           16064                           TCF      DANZIG                                
043644,000575: 

Page 1012

043646,000577:                                                                                                  #           PDVL - PUSHDOWN AND VECTOR LOAD.
043647,000578: 
043648,000579:    6562           00006        PDVL               EXTEND                                         #  RELOAD MPAC AND PUSH DOWN ITS CONTENTS.
043649,000580:    6563           50116                           INDEX    ADDRWD                                
043650,000581:    6564           30001                           DCA      0                                     
043651,000582:    6565           52155                           DXCH     MPAC                                  
043652,000583:    6566           50166                           INDEX    PUSHLOC                               
043653,000584:    6567           52001                           DXCH     0                                     
043654,000585: 
043655,000586:    6570           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER.
043656,000587:    6571           36247                           CAF      NO.WDS                                
043657,000588:    6572           26166                           ADS      PUSHLOC                               
043658,000589: 
043659,000590:    6573           10163                           CCS      MODE                                  #  TEST PAST MODE.
043660,000591:    6574           16613                           TCF      TPDVL                                 
043661,000592:    6575           16514                           TCF      ENDVLOAD                              #  JUST LOAD LAST FOUR REGISTERS ON DP.
043662,000593: 
043663,000594:    6576           00006        VPDVL              EXTEND                                         #  PUSHDOWN AND RE-LOAD LAST TWO COMPONENTS
043664,000595:    6577           50116                           INDEX    ADDRWD                                
043665,000596:    6600           30003                           DCA      2                                     
043666,000597:    6601           52160                           DXCH     MPAC       +3                         
043667,000598:    6602           50166                           INDEX    PUSHLOC                               
043668,000599:    6603           51775                           DXCH     0          -4                         
043669,000600: 
043670,000601:    6604           00006                           EXTEND                                         
043671,000602:    6605           50116                           INDEX    ADDRWD                                
043672,000603:    6606           30005                           DCA      4                                     
043673,000604:    6607           52162                           DXCH     MPAC       +5                         
043674,000605:    6610           50166                           INDEX    PUSHLOC                               
043675,000606:    6611           51777                           DXCH     0          -2                         
043676,000607: 
043677,000608:    6612           16064                           TCF      DANZIG                                
043678,000609: 
043679,000610:    6613           00006        TPDVL              EXTEND                                         #  ON TP, WE MUST LOAD THE Y COMPONENT
043680,000611:    6614           50116                           INDEX    ADDRWD                                #  BEFORE STORING MPAC +2 INCASE THIS IS A
043681,000612:    6615           30003                           DCA      2                                     #  PUSHUP.
043682,000613:    6616           52160                           DXCH     MPAC       +3                         
043683,000614: 
043684,000615:    6617           30156                           CA       MPAC       +2                         
043685,000616:    6620           50166                           INDEX    PUSHLOC                               #  IN DP.
043686,000617:    6621           53777                           TS       0          -1                         
043687,000618:    6622           16520                           TCF      ENDVLOAD   +4                         
043688,000619: 
043689,000620:                                                                                                  #           SSP (STORE SINGLE PRECISION) IS EXECUTED HERE.
043690,000621: 
043691,000622:    6623           24164        SSP                INCR     LOC                                   #  PICK UP THE WORD FOLLOWING THE GIVEN
043692,000623:    6624           50164                           INDEX    LOC                                   #  ADDRESS AND STORE IT AT X.
043693,000624:    6625           30000                           CA       0                                     
043694,000625:    6626           50116        STORE1             INDEX    ADDRWD                                #  SOME INDEX AND MISCELLANEOUS OPS END
043695,000626:    6627           54000                           TS       0                                     #  HERE.

Page 1013

043697,000628:    6630           16064                           TCF      DANZIG                                
043698,000629: 

Page 1014

043700,000631:                                                                                                  #  SEQUENCE CHANGING AND SUBROUTINE CALLING OPTIONS.
043701,000632: 
043702,000633:                                                                                                  #           THE FOLLOWING OPERATIONS ARE AVAILABLE FOR SEQUENCING CHANGING, BRANCHING, AND CALLING SUBROUTINES:
043703,000634: 
043704,000635:                                                                                                  #           1.  GOTO               GO TO.
043705,000636:                                                                                                  #           2.  CALL               CALL SUBROUTINE SETTING QPRET.
043706,000637:                                                                                                  #           3.  CGOTO              COMPUTED GO TO.
043707,000638:                                                                                                  #           4.  CCALL              COMPUTED CALL.
043708,000639:                                                                                                  #           7.  BPL                BRANCH IF MPAC POSITIVE OR ZERO.
043709,000640:                                                                                                  #           8.  BZE                BRANCH IF MPAC ZERO.
043710,000641:                                                                                                  #           9.  BMN                BRANCH IF MPAC NEGATIVE NON-ZERO.
043711,000642: 
043712,000643:    6631           24164        CCALL              INCR     LOC                                   #  MAINTAIN LOC FOR QPRET COMPUTATION.
043713,000644:    6632           50164                           INDEX    LOC                                   
043714,000645:    6633           30000                           CAF      0                                     #  GET BASE ADDRESS OF CADR LIST.
043715,000646:    6634           50116                           INDEX    ADDRWD                                
043716,000647:    6635           60000                           AD       0                                     #  ADD INCREMENT.
043717,000648:    6636           54004                           TS       FBANK                                 #  SELECT DESIRED CADR.
043718,000649:    6637           75012                           MASK     LOW10                                 
043719,000650:    6640           50000                           INDEX    A                                     
043720,000651:    6641           32000                           CAF      10000                                 
043721,000652:    6642           54117                           TS       POLISH                                
043722,000653: 
043723,000654:    6643           30165        CALL               CA       BANKSET                               #  FOR ANY OF THE CALL OPTIONS, MAKE UP THE
043724,000655:    6644           74350                           MASK     BANKMASK                              #  ADDRESS OF THE NEXT OP-CODE PAIR/STORE
043725,000656:    6645           64350                           AD       BANKMASK                              #  CODE AND LEAVE IT IN QPRET.  NOTE THAT
043726,000657:    6646           60164                           AD       LOC                                   #  BANKMASK = -(2000 - 1).
043727,000658:    6647           50120                           INDEX    FIXLOC                                
043728,000659:    6650           54052                           TS       QPRET                                 
043729,000660: 
043730,000661:    6651           30117        GOTO               CA       POLISH                                #  BASIC BRANCHING SEQUENCE.
043731,000662:    6652           77745                 +1        MASK     HIGH4                                 
043732,000663:    6653           00006                           EXTEND                                         
043733,000664:    6654           16665                           BZF      GOTOERS                               #  SEE IF ADDRESS POINTS TO FIXED OR ERAS.
043734,000665:    6655           30165                 +4        CA       BANKSET                               #  SET EBANK PART OF BBANK. NEXT, SET UP
043735,000666:    6656           54006                           TS       BBANK                                 #  FBANK. THE COMBINATION IS PICKED UP &
043736,000667:    6657           30117                           CA       POLISH                                #  PUT INTO BANKSET AT INTPRET +2.
043737,000668:    6660           54004                           TS       FBANK                                 
043738,000669:    6661           75012                           MASK     LOW10                                 
043739,000670:    6662           64741                           AD       2K                                    
043740,000671:    6663           54164                           TS       LOC                                   
043741,000672:    6664           16045                           TCF      INTPRET    +3                         
043742,000673: 
043743,000674:    6665  E3,1400                                  EBANK=   1400                                  #  SO YUL DOESN'T CUSS THE "CA 1400" BELOW.
043744,000675: 
043745,000676:    6665           30117        GOTOERS            CA       POLISH                                #  THE GIVEN ADDRESS IS IN ERASABLE - SEE
043746,000677:    6666           66254                           AD       -ENDVAC                               #  IF RELATIVE TO THE WORK AREA.
043747,000678:    6667           10000                           CCS      A                                     
043748,000679:    6670           30117                           CA       POLISH                                #  GENERAL ERASABLE.
043749,000680:    6671           16700                           TCF      GOTOGE                                
043750,000681: 

Page 1015

043752,000683:    6672           30120                           CA       FIXLOC                                #  WORK AREA.
043753,000684:    6673           60117                           AD       POLISH                                
043754,000685:    6674           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
043755,000686:    6675           30000                           CA       0                                     #  THE BRANCH ADDRESS.
043756,000687:    6676           54117                           TS       POLISH                                
043757,000688:    6677           16652                           TCF      GOTO       +1                         #  ALLOWS ARBITRARY INDIRECTNESS LEVELS.
043758,000689: 
043759,000690:    6700           54003        GOTOGE             TS       EBANK                                 
043760,000691:    6701           74357                           MASK     LOW8                                  
043761,000692:    6702           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
043762,000693:    6703           31400                           CA       1400                                  #  THE BRANCH ADDRESS.
043763,000694:    6704           54117                           TS       POLISH                                
043764,000695:    6705           16652                           TCF      GOTO       +1                         
043765,000696: 
043766,000697:    6706           50164        CGOTO              INDEX    LOC                                   #  COMPUTED GO TO. PICK UP ADDRESS OF CADR
043767,000698:    6707           30001                           CA       1                                     #  LIST.
043768,000699:    6710           50116                           INDEX    ADDRWD                                #  ADD MODIFIER.
043769,000700:    6711           60000                           AD       0                                     
043770,000701:    6712           54004                           TS       FBANK                                 #  SELECT GOTO ADDRESS.
043771,000702:    6713           75012                           MASK     LOW10                                 
043772,000703:    6714           50000                           INDEX    A                                     
043773,000704:    6715           32000                           CA       10000                                 
043774,000705:    6716           54117                           TS       POLISH                                
043775,000706:    6717           16652                           TCF      GOTO       +1                         #  WITH ADDRESS IN A.
043776,000707: 
043777,000708:    6720           30165        SWBRANCH           CA       BANKSET                               #  SWITCH INSTRUCTIONS WHICH ELECT TO
043778,000709:    6721           54004                           TS       FBANK                                 #  BRANCH COME HERE TO DO SO.
043779,000710:    6722           50164                           INDEX    LOC                                   
043780,000711:    6723           30001                           CA       1                                     
043781,000712:    6724           54117                           TS       POLISH                                
043782,000713:    6725           16652                           TCF      GOTO       +1                         
043783,000714: 

Page 1016

043785,000716:                                                                                                  #           TRIPLE PRECISION BRANCHING ROUTINE. IF CALLING TC IS AT L, RETURN IS AS FOLLOWS:
043786,000717: 
043787,000718:                                                                                                  #           L+1  IF MPAC IS GREATER THAN ZERO.
043788,000719:                                                                                                  #           L+2  IF MPAC IS EQUAL TO +0 OR -0.
043789,000720:                                                                                                  #           L+3  IF MPAC IS LESS THAN ZERO.
043790,000721: 
043791,000722:    6726           10154        BRANCH             CCS      MPAC                                  
043792,000723:    6727           00002                           TC       Q                                     
043793,000724:    6730           16732                           TCF      +2                                    #  ON ZERO.
043794,000725:    6731           16744                           TCF      NEG                                   
043795,000726: 
043796,000727:    6732           10155                           CCS      MPAC       +1                         
043797,000728:    6733           00002                           TC       Q                                     
043798,000729:    6734           16736                           TCF      +2                                    
043799,000730:    6735           16744                           TCF      NEG                                   
043800,000731: 
043801,000732:    6736           10156                           CCS      MPAC       +2                         
043802,000733:    6737           00002                           TC       Q                                     
043803,000734:    6740           16742                           TCF      +2                                    
043804,000735:    6741           16744                           TCF      NEG                                   
043805,000736: 
043806,000737:    6742           50002        Q+1                INDEX    Q                                     
043807,000738:    6743           00001                           TC       1                                     
043808,000739: 
043809,000740:    6744           50002        NEG                INDEX    Q                                     #  IF FIRST NON-ZERO REGISTER WAS NEGATIVE.
043810,000741:    6745           00002                           TC       2                                     
043811,000742: 
043812,000743: 
043813,000744:    6746     6744               Q+2                =        NEG                                   
043814,000745: 
043815,000746:                                                                                                  #           ITRACE (3) REFERS TO "EXIT".
043816,000747:    6746           30165        EXIT               CA       BANKSET                               #  RESTORE USER'S BANK SETTING, AND LEAVE
043817,000748:    6747           54006                           TS       BBANK                                 #  INTERPRETIVE MODE.
043818,000749:    6750           50164                           INDEX    LOC                                   
043819,000750:    6751           00001                           TC       1                                     
043820,000751: 

Page 1017

043822,000753:                                                                                                  #  SECTION 3 - ADD/SUBTRACT PACKAGE.
043823,000754: 
043824,000755:                                                                                                  #           THE FOLLOWING OPERATIONS ARE PROVIDED FOR ADDING TO AND SUBTRACTING FROM THE MULTI-PURPOSE ACCUMULATOR
043825,000756:                                                                                                  #  MPAC:
043826,000757: 
043827,000758:                                                                                                  #           1.  DAD                DOUBLE PRECISION ADD.
043828,000759:                                                                                                  #           2.  DSU                DOUBLE PRECISION SUBTRACT.
043829,000760:                                                                                                  #           3.  BDSU               DOUBLE PRECISION SUBTRACT FROM.
043830,000761: 
043831,000762:                                                                                                  #           4.  TAD                TRIPLE PRECISION ADD.
043832,000763: 
043833,000764:                                                                                                  #           5.  VAD                VECTOR ADD.
043834,000765:                                                                                                  #           6.  VSU                VECTOR SUBTRACT.
043835,000766:                                                                                                  #           7.  BVSU               VECTOR SUBTRACT FROM.
043836,000767: 
043837,000768:                                                                                                  #  THE INTERPRETIVE OVERFLOW INDICATOR OVFIND IS SET NON-ZERO IF OVERFLOW OCCURS IN ANY OF THE ABOVE.
043838,000769: 
043839,000770:    6752           34735        VSU                CAF      BIT15                                 #  CHANGES 0 TO DCS.
043840,000771:    6753           16755                           TCF      +2                                    
043841,000772: 
043842,000773:    6754           34355        VAD                CAF      PRIO30                                #  CHANGES 0 TO DCA.
043843,000774:    6755           26116                           ADS      ADDRWD                                
043844,000775:    6756           00006                           EXTEND                                         
043845,000776:    6757           50116                           INDEX    ADDRWD                                
043846,000777:    6760           00003                           READ     HISCALAR                              #  DCA  2   OR   DCS  2
043847,000778:    6761           20160                           DAS      MPAC       +3                         
043848,000779:    6762           00006                           EXTEND                                         #  CHECK OVERFLOW.
043849,000780:    6763           16765                           BZF      +2                                    
043850,000781:    6764           07017                           TC       OVERFLWY                              
043851,000782: 
043852,000783:    6765           00006                           EXTEND                                         
043853,000784:    6766           50116                           INDEX    ADDRWD                                
043854,000785:    6767           00005                           READ     CHAN5                                 #  DCA  4  OR  DCS  4
043855,000786:    6770           20162                           DAS      MPAC       +5                         
043856,000787:    6771           00006                           EXTEND                                         
043857,000788:    6772           16774                           BZF      +2                                    
043858,000789:    6773           07014                           TC       OVERFLWZ                              
043859,000790: 
043860,000791:    6774           00006                           EXTEND                                         
043861,000792:    6775           50116                           INDEX    ADDRWD                                
043862,000793:    6776           00001                           READ     LCHAN                                 #  DCA  0  OR  DCS  0
043863,000794:    6777           17003                           TCF      ENDVXV                                
043864,000795: 
043865,000796:    7000           00006        DAD                EXTEND                                         
043866,000797:    7001           50116                           INDEX    ADDRWD                                
043867,000798:    7002           30001                           DCA      0                                     
043868,000799:    7003           20155        ENDVXV             DAS      MPAC                                  #  VXV FINISHES HERE.
043869,000800:    7004           00006                           EXTEND                                         
043870,000801:    7005           16064                           BZF      DANZIG                                
043871,000802: 

Page 1018

043873,000804:    7006           07022        SETOVF             TC       OVERFLOW                              
043874,000805:    7007           16064                           TCF      DANZIG                                
043875,000806: 

Page 1019

043877,000808:    7010           00006        DSU                EXTEND                                         
043878,000809:    7011           50116                           INDEX    ADDRWD                                
043879,000810:    7012           40001                           DCS      0                                     
043880,000811:    7013           17003                           TCF      ENDVXV                                
043881,000812: 
043882,000813:    7014           54001        OVERFLWZ           TS       L                                     #  ENTRY FOR THIRD COMPONENT.
043883,000814:    7015           34756                           CAF      FIVE                                  
043884,000815:    7016           17021                           TCF      +3                                    
043885,000816: 
043886,000817:    7017           54001        OVERFLWY           TS       L                                     #  ENTRY FOR SECOND COMPONENT.
043887,000818:    7020           36250                           CAF      THREE                                 
043888,000819:    7021           56001                           XCH      L                                     
043889,000820: 
043890,000821:    7022           50000        OVERFLOW           INDEX    A                                     #  ENTRY FOR 1ST COMP OR DP (L=0).
043891,000822:    7023           44734                           CS       LIMITS                                #  PICK UP POSMAX OR NEGMAX.
043892,000823:    7024           54130                           TS       BUF                                   
043893,000824:    7025           00006                           EXTEND                                         
043894,000825:    7026           24000                           AUG      A                                     #  FORCE OVERFLOW.
043895,000826:    7027           50001                           INDEX    L                                     
043896,000827:    7030           26155                           ADS      MPAC       +1                         
043897,000828:    7031           54007                           TS       7                                     
043898,000829:    7032           34755                           CAF      ZERO                                  
043899,000830:    7033           60130                           AD       BUF                                   
043900,000831:    7034           50001                           INDEX    L                                     
043901,000832:    7035           26154                           ADS      MPAC                                  
043902,000833:    7036           54007                           TS       7                                     
043903,000834:    7037           00002                           TC       Q                                     #  NO OVERFLOW EXIT.
043904,000835:    7040           17155                           TCF      SETOVF2                               #  SET OVFIND AND EXIT.
043905,000836: 
043906,000837:    7041           00006        BVSU               EXTEND                                         
043907,000838:    7042           50116                           INDEX    ADDRWD                                
043908,000839:    7043           30003                           DCA      2                                     
043909,000840:    7044           52160                           DXCH     MPAC       +3                         
043910,000841:    7045           00006                           EXTEND                                         
043911,000842:    7046           40001                           DCOM                                           
043912,000843:    7047           20160                           DAS      MPAC       +3                         
043913,000844:    7050           00006                           EXTEND                                         
043914,000845:    7051           17053                           BZF      +2                                    
043915,000846:    7052           07017                           TC       OVERFLWY                              
043916,000847: 
043917,000848:    7053           00006                           EXTEND                                         
043918,000849:    7054           50116                           INDEX    ADDRWD                                
043919,000850:    7055           30005                           DCA      4                                     
043920,000851:    7056           52162                           DXCH     MPAC       +5                         
043921,000852:    7057           00006                           EXTEND                                         
043922,000853:    7060           40001                           DCOM                                           
043923,000854:    7061           20162                           DAS      MPAC       +5                         
043924,000855:    7062           00006                           EXTEND                                         
043925,000856:    7063           17065                           BZF      +2                                    
043926,000857:    7064           07014                           TC       OVERFLWZ                              
043927,000858: 

Page 1020

043929,000860:    7065           00006        BDSU               EXTEND                                         
043930,000861:    7066           50116                           INDEX    ADDRWD                                
043931,000862:    7067           30001                           DCA      0                                     
043932,000863:    7070           52155                           DXCH     MPAC                                  
043933,000864:    7071           00006                           EXTEND                                         
043934,000865:    7072           40001                           DCOM                                           
043935,000866:    7073           17003                           TCF      ENDVXV                                
043936,000867: 

Page 1021

043938,000869:                                                                                                  #           TRIPLE PRECISION ADD ROUTINE.
043939,000870: 
043940,000871:    7074           00006        TAD                EXTEND                                         
043941,000872:    7075           50116                           INDEX    ADDRWD                                
043942,000873:    7076           30002                           DCA      1                                     #  ADD MINOR PARTS FIRST.
043943,000874:    7077           20156                           DAS      MPAC       +1                         
043944,000875:    7100           50116                           INDEX    ADDRWD                                
043945,000876:    7101           60000                           AD       0                                     
043946,000877:    7102           60154                           AD       MPAC                                  
043947,000878:    7103           54154                           TS       MPAC                                  
043948,000879:    7104           16064                           TCF      DANZIG                                
043949,000880: 
043950,000881:    7105           17006                           TCF      SETOVF                                #  SET OVFIND IF SUCH OCCURS.
043951,000882: 

Page 1022

043953,000884:                                                                                                  #  ARITHMETIC SUBROUTINES REQUIRED IN FIXED-FIXED.
043954,000885: 
043955,000886:                                                                                                  #           1.  DMPSUB     DOUBLE PRECISION MULTIPLY. MULTIPLY THE CONTENTS OF MPAC,+1 BY THE DP WORD WHOSE ADDRESS
043956,000887:                                                                                                  #                          IS IN ADDRWD AND LEAVE A TRIPLE PRECISION RESULT IN MPAC.
043957,000888:                                                                                                  #           2.  ROUNDSUB   ROUND THE TRIPLE PRECISON CONTENTS OF MPAC TO DOUBLE PRECISION.
043958,000889:                                                                                                  #           3.  DOTSUB     TAKE THE DOT PRODUCT OF THE VECTOR IN MPAC AND THE VECTOR WHOSE ADDRESS IS IN ADDRWD
043959,000890:                                                                                                  #                          AND LEAVE THE TRIPLE PRECISION RESULT IN MPAC.
043960,000891:                                                                                                  #           4.  POLY       USING THE CONTENTS OF MPAC AS A DP ARGUMENT, EVALUATE THE POLYNOMIAL WHOSE DEGREE AND
043961,000892:                                                                                                  #                          COEFFICIENTS IMMEDIATELY FOLLOW THE TC POLY INSTRUCTION (SEE ROUTINE FOR DETAILS.)
043962,000893: 
043963,000894: 
043964,000895:    7106           50002        DMP                INDEX    Q                                     #  BASIC SUBROUTINE FOR USE BY PINBALL, ETC
043965,000896:    7107           30000                           CAF      0                                     #  ADRES OF ARGUMENT FOLLOWS  TC DMP  .
043966,000897:    7110           24002                           INCR     Q                                     
043967,000898:    7111           54116                 -1        TS       ADDRWD                                #  (PROLOGUE FOR SETTING ADDRWD.)
043968,000899: 
043969,000900:    7112           50116        DMPSUB             INDEX    ADDRWD                                #  GET MINOR PART OF OPERAND AT C(ADDRWD).
043970,000901:    7113           30001                           CA       1                                     
043971,000902:    7114           54156                           TS       MPAC       +2                         #  THIS WORKS FOR SQUARING MPAC AS WELL.
043972,000903:    7115           34755                           CAF      ZERO                                  #  SET MPAC +1 TO ZERO SO WE CAN ACCUMULATE
043973,000904:    7116           56155                           XCH      MPAC       +1                         #  THE PARTIAL PRODUCTS WITH DAS
043974,000905:    7117           54135                           TS       MPTEMP                                #  INSTRUCTIONS.
043975,000906:    7120           00006                           EXTEND                                         
043976,000907:    7121           70156                           MP       MPAC       +2                         #  MINOR OF MPAC X MINOR OF C(ADDRWD).
043977,000908: 
043978,000909:    7122           56156                           XCH      MPAC       +2                         #  DISCARD MINOR PART OF ABOVE RESULT AND
043979,000910:    7123           00006                           EXTEND                                         #  FORM MAJOR OF MPAC X MINOR OF C(ADDRWD).
043980,000911:    7124           70154                           MP       MPAC                                  
043981,000912:    7125           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
043982,000913: 
043983,000914:    7126           50116                           INDEX    ADDRWD                                #  GET MAJOR PART OF ARGUMENT AT C(ADDRWD).
043984,000915:    7127           30000                           CA       0                                     
043985,000916:    7130           56135                           XCH      MPTEMP                                #  SAVE AND BRING OUT MINOR OF MPAC.
043986,000917:    7131           00006        DMPSUB2            EXTEND                                         
043987,000918:    7132           70135                           MP       MPTEMP                                #  MAJOR OF C(ADDRWD) X MINOR OF MPAC.
043988,000919:    7133           20156                           DAS      MPAC       +1                         #  ACCUMULATE, SETTING A TO NET OVERFLOW.
043989,000920: 
043990,000921:    7134           56154                           XCH      MPAC                                  #  SETTING MPAC TO 0 OR +-1.
043991,000922:    7135           00006                           EXTEND                                         
043992,000923:    7136           70135                           MP       MPTEMP                                #  MAJOR OF MPAC X MAJOR OF C(ADDRWD).
043993,000924:    7137           20155                           DAS      MPAC                                  #  GUARANTEED NO OVERFLOW.
043994,000925:    7140           00002                           TC       Q                                     #  49 MCT = .573 MS. INCLUDING RETURN.
043995,000926: 

Page 1023

043997,000928:                                                                                                  #           ROUND MPAC TO DOUBLE PRECISION, SETTING OVFIND ON THE RARE EVENT OF OVERFLOW.
043998,000929: 
043999,000930:    7141           34755        ROUNDSUB           CAF      ZERO                                  #  SET MPAC +2 = 0 FOR SCALARS AND CHANGE
044000,000931:    7142           54163                 +1        TS       MODE                                  #  MODE TO DP.
044001,000932: 
044002,000933:    7143           56156        VROUND             XCH      MPAC       +2                         #  BUT WE NEEDNT TAKE THE TIME FOR VECTORS.
044003,000934:    7144           60000                           DOUBLE                                         
044004,000935:    7145           54001                           TS       L                                     
044005,000936:    7146           00002                           TC       Q                                     
044006,000937: 
044007,000938:    7147           60155                           AD       MPAC       +1                         #  ADD ROUNDING BIT IF MPAC +2 WAS GREATER
044008,000939:    7150           54155                           TS       MPAC       +1                         #  THAN .5 IN MAGNITUDE.
044009,000940:    7151           00002                           TC       Q                                     
044010,000941: 
044011,000942:    7152           60154                           AD       MPAC                                  #  PROPAGATE INTERFLOW.
044012,000943:    7153           54154                           TS       MPAC                                  
044013,000944:    7154           00002                           TC       Q                                     
044014,000945: 
044015,000946:    7155           54121        SETOVF2            TS       OVFIND                                #  (RARE).
044016,000947:    7156           00002                           TC       Q                                     
044017,000948: 

Page 1024

044019,000950:                                                                                                  #           THE DOT PRODUCT SUBROUTINE USUALLY FORMS THE DOT PRODUCT OF THE VECTOR IN MPAC WITH A STANDARD SIX
044020,000951:                                                                                                  #  REGISTER VECTOR WHOSE ADDRESS IS IN ADDRWD. IN THIS CASE C(DOTINC) ARE SET TO 2. VXM, HOWEVER, SETS C(DOTINC) TO
044021,000952:                                                                                                  #  6 SO THAT DOTSUB DOTS MPAC WITH A COLUMN VECTOR OF THE MATRIX IN QUESTION IN THIS CASE.
044022,000953: 
044023,000954:    7157           34752        PREDOT             CAF      TWO                                   #  PROLOGUE TO SET DOTINC TO 2.
044024,000955:    7160           54136                           TS       DOTINC                                
044025,000956: 
044026,000957:    7161           00006        DOTSUB             EXTEND                                         
044027,000958:    7162           22137                           QXCH     DOTRET                                #  SAVE RETURN.
044028,000959:    7163           07112                           TC       DMPSUB                                #  DOT X COMPONENTS.
044029,000960:    7164           52160                           DXCH     MPAC       +3                         #  POSITION Y COMPONENT OF MPAC FOR
044030,000961:    7165           52155                           DXCH     MPAC                                  #  MULTIPLICATION WHILE SAVING RESULT IN
044031,000962:    7166           52131                           DXCH     BUF                                   #  THREE WORD BUFFER, BUF.
044032,000963:    7167           30156                           CA       MPAC       +2                         
044033,000964:    7170           54132                           TS       BUF        +2                         
044034,000965: 
044035,000966:    7171           30136                           CA       DOTINC                                #  ADVANCE ADDRWD TO Y COMPONENT OF
044036,000967:    7172           26116                           ADS      ADDRWD                                #  OTHER ARGUMENT.
044037,000968:    7173           07112                           TC       DMPSUB                                
044038,000969:    7174           52156                           DXCH     MPAC       +1                         #  ACCUMULATE PARTIAL PRODUCTS.
044039,000970:    7175           20132                           DAS      BUF        +1                         
044040,000971:    7176           60154                           AD       MPAC                                  
044041,000972:    7177           60130                           AD       BUF                                   
044042,000973:    7200           54130                           TS       BUF                                   
044043,000974:    7201           17203                           TCF      +2                                    
044044,000975:    7202           54121                           TS       OVFIND                                #  IF OVERFLOW OCCURS.
044045,000976: 
044046,000977:    7203           52162                           DXCH     MPAC       +5                         #  MULTIPLY Z COMPONENTS.
044047,000978:    7204           52155                           DXCH     MPAC                                  
044048,000979:    7205           30136                           CA       DOTINC                                
044049,000980:    7206           26116                           ADS      ADDRWD                                
044050,000981:    7207           07112                           TC       DMPSUB                                
044051,000982:    7210           52132        ENDDOT             DXCH     BUF        +1                         #  LEAVE FINAL ACCUMULATION IN MPAC.
044052,000983:    7211           20156                           DAS      MPAC       +1                         
044053,000984:    7212           60154                           AD       MPAC                                  
044054,000985:    7213           60130                           AD       BUF                                   
044055,000986:    7214           54154                           TS       MPAC                                  
044056,000987:    7215           00137                           TC       DOTRET                                
044057,000988: 
044058,000989:    7216           07022                           TC       OVERFLOW                              #  ON OVERFLOW HERE.
044059,000990:    7217           00137                           TC       DOTRET                                
044060,000991: 

Page 1025

044062,000993:                                                                                                  #  DOUBLE PRECISION POLYNOMIAL EVALUATOR
044063,000994: 
044064,000995:                                                                                                  #                                     N        N-1
044065,000996:                                                                                                  #           THIS ROUTINE EVALUATES A X  + A   X    + ... + A X + A  LEAVING THE DP RESULT IN MPAC ON EXIT.
044066,000997:                                                                                                  #                                   N      N-1              1     0
044067,000998: 
044068,000999:                                                                                                  #  THE ROUTINE HAS TWO ENTRIES
044069,001000: 
044070,001001:                                                                                                  #           1. ENTRY THRU POWRSERS. THE COEFFICIENTS MAY BE EITHER IN FIXED OR ERASABLE, THE CALL IS BY
044071,001002:                                                                                                  #              TC POWRSERS, AND THE RETURN IS TO LOC(TC POWRSERS)+1. THE ENTERING DATA MUST BE AS FOLLOWS
044072,001003: 
044073,001004:                                                                                                  #                                          A        SP     LOC-3           ADDRESS FOR REFERENCING COEF TABLE
044074,001005:                                                                                                  #                                          L        SP     N-1             N IS THE DEGREE OF THE POWER SERIES
044075,001006:                                                                                                  #                                          MPAC     DP     X               ARGUMENT
044076,001007: 
044077,001008:                                                                                                  #                                          LOC-2N   DP     A(0)
044078,001009:                                                                                                  #                                                   ...
044079,001010:                                                                                                  #                                          LOC      DP     A(N)
044080,001011: 
044081,001012:                                                                                                  #           2. ENTRY THRU POLY. THE CALL TO POLY AND THE ENTERING DATA MUST BE AS FOLLOWS
044082,001013: 
044083,001014:                                                                                                  #                                          MPAC     DP     X               ARGUMENT
044084,001015: 
044085,001016:                                                                                                  #                                          LOC      TC     POLY
044086,001017:                                                                                                  #                                          LOC+1    SP     N-1
044087,001018:                                                                                                  #                                          LOC+2    DP     A(0)
044088,001019:                                                                                                  #                                                   ...
044089,001020:                                                                                                  #                                          LOC+2N+2 DP     A(N)            RETURN IS TO LOC+2N+4
044090,001021: 
044091,001022:    7220           00006        POWRSERS           EXTEND                                         
044092,001023:    7221           22141                           QXCH     POLYRET                               #  RETURN ADDRESS
044093,001024:    7222           54117                           TS       POLISH                                #  POWER SERIES ADDRESS
044094,001025:    7223           22140                           LXCH     POLYCNT                               #  N-1 TO COUNTER
044095,001026:    7224           17235                           TCF      POLYCOM                               #  SKIP SET UP BY POLY
044096,001027: 
044097,001028:    7225           50002        POLY               INDEX    Q                                     
044098,001029:    7226           30000                           CAF      0                                     
044099,001030:    7227           54140                           TS       POLYCNT                               #  N-1 TO COUNTER
044100,001031:    7230           60000                           DOUBLE                                         
044101,001032:    7231           60002                           AD       Q                                     
044102,001033:    7232           54117                           TS       POLISH                                #  L(A(N))-3 TO POLISH
044103,001034:    7233           64756                           AD       FIVE                                  
044104,001035:    7234           54141                           TS       POLYRET                               #  STORE RETURN ADDRESS
044105,001036: 
044106,001037:    7235           36276        POLYCOM            CAF      LVBUF                                 #  INCOMING X WILL BE MOVED TO VBUF, SO
044107,001038:    7236           54116                           TS       ADDRWD                                #  SET ADDRWD SO DMPSUB WILL MPY BY VBUF.
044108,001039: 
044109,001040:    7237           00006                           EXTEND                                         
044110,001041:    7240           50117                           INDEX    POLISH                                
044111,001042:    7241           30004                           DCA      3                                     
044112,001043: 

Page 1026

044114,001045:    7242           52155                           DXCH     MPAC                                  #  LOAD A(N) INTO MPAC,
044115,001046:    7243           52123                           DXCH     VBUF                                  #  SAVING X IN VBUF
044116,001047:    7244           17250                           TCF      POLY2                                 
044117,001048: 
044118,001049:    7245           54140        POLYLOOP           TS       POLYCNT                               #  SAVE DECREMENTED LOOP COUNTER
044119,001050:    7246           44752                           CS       TWO                                   
044120,001051:    7247           26117                           ADS      POLISH                                #  REGRESS COEFFICIENT POINTER
044121,001052: 
044122,001053:    7250           07112        POLY2              TC       DMPSUB                                #  MULTIPLY BY X
044123,001054:    7251           00006                           EXTEND                                         
044124,001055:    7252           50117                           INDEX    POLISH                                
044125,001056:    7253           30002                           DCA      1                                     #  ADD IN NEXT COEFFICIENT
044126,001057:    7254           20155                           DAS      MPAC                                  #  USERS RESPONSIBILITY TO ASSURE NO OVFLOW
044127,001058: 
044128,001059:    7255           10140                           CCS      POLYCNT                               
044129,001060:    7256           17245                           TCF      POLYLOOP                              
044130,001061:    7257           00141                           TC       POLYRET                               #  RETURN CALLER
044131,001062: 

Page 1027

044133,001064:                                                                                                  #           MISCELLANEOUS MULTI-PRECISION ROUTINES REQUIRED IN FIXED-FIXED BUT NOT USED BY THE INTERPRETER.
044134,001065: 
044135,001066:    7260           34755        DPAGREE            CAF      ZERO                                  #  DOUBLE PRECISION ENTRY -
044136,001067:    7261           54156                           TS       MPAC       +2                         #  ZERO LOW-ORDER WORD
044137,001068: 
044138,001069:    7262           22002        TPAGREE            LXCH     Q                                     #  FORCE SIGN AGREEMENT AMONG THE TRIPLE
044139,001070:    7263           06726                           TC       BRANCH                                #  PRECISION CONTENTS OF MPAC.  RETURNING
044140,001071:    7264           17270                           TCF      ARG+                                  #  WITH SIGNUM OF THE INPUT IN A.
044141,001072:    7265           17310                           TCF      ARGZERO                               
044142,001073: 
044143,001074:    7266           44733                           CS       POSMAX                                #  IF NEGATIVE.
044144,001075:    7267           17271                           TCF      +2                                    
044145,001076: 
044146,001077:    7270           34733        ARG+               CAF      POSMAX                                
044147,001078:    7271           54002                           TS       Q                                     
044148,001079:    7272           00006                           EXTEND                                         
044149,001080:    7273           24000                           AUG      A                                     #  FORMS +-1.0.
044150,001081:    7274           60156                           AD       MPAC       +2                         
044151,001082:    7275           54156                           TS       MPAC       +2                         
044152,001083:    7276           34755                           CAF      ZERO                                  
044153,001084:    7277           60002                           AD       Q                                     
044154,001085:    7300           60155                           AD       MPAC       +1                         
044155,001086:    7301           54155                           TS       MPAC       +1                         
044156,001087:    7302           34755                           CAF      ZERO                                  
044157,001088:    7303           60002                           AD       Q                                     #  Q STILL HAS POSMAX OR NEGMAX IN IT.
044158,001089:    7304           60154                           AD       MPAC                                  
044159,001090:    7305           54154        ARGZERO2           TS       MPAC                                  #  ALWAYS SKIPPING UNLESS ARGZERO.
044160,001091:    7306           54155                           TS       MPAC       +1                         
044161,001092:    7307           00001                           TC       L                                     #  RETURN VIA L.
044162,001093: 
044163,001094:    7310           54156        ARGZERO            TS       MPAC       +2                         #  SET ALL THREE MPAC REGISTERS TO ZERO.
044164,001095:    7311           17305                           TCF      ARGZERO2                              
044165,001096: 
044166,001097:                                                                                                  #           SHORTMP MULTIPLIES THE TP CONTENTS OF MPAC BY THE SINGLE PRECISION NUMBER ARRIVING IN A.
044167,001098: 
044168,001099:    7312           54135        SHORTMP            TS       MPTEMP                                
044169,001100:    7313           00006                           EXTEND                                         
044170,001101:    7314           70156                           MP       MPAC       +2                         
044171,001102:    7315           54156                           TS       MPAC       +2                         
044172,001103:    7316           34755        SHORTMP2           CAF      ZERO                                  #  SO SUBSEQUENT DAS WILL WORK.
044173,001104:    7317           56155                           XCH      MPAC       +1                         
044174,001105:    7320           17131                           TCF      DMPSUB2                               
044175,001106: 

Page 1028

044177,001108:                                                                                                  #         DMPNSUB MULTIPLIES THE DP FRACTION ARRIVING IN MPAC BY THE SP
044178,001109:                                                                                                  #  INTEGER ARRIVING IN A.  THE DP PRODUCT DEPARTS BOTH IN MPAC AND IN
044179,001110:                                                                                                  #  A AND L.  NOTE THAT DMPNSUB NORMALLY INCREASES THE MAGNITUDE OF THE
044180,001111:                                                                                                  #  CONTENTS OF MPAC.  THE CUSTOMER MUST INSURE THAT B(A) X B(MPAC,MPAC+1)
044181,001112:                                                                                                  #  AND B(A) X B(MPAC) ARE LESS THAN 1 IN MAGNITUDE, WHERE B, AS IS OBVIOUS,
044182,001113:                                                                                                  #  INDICATES THE ARRIVING CONTENTS.
044183,001114: 
044184,001115:    7321           54135        DMPNSUB            TS       DMPNTEMP                              
044185,001116:    7322           00006                           EXTEND                                         
044186,001117:    7323           70155                           MP       MPAC       +1                         
044187,001118:    7324           52155                           DXCH     MPAC                                  #  LOW PRODUCT TO MPAC, HIGH FACTOR TO A
044188,001119:    7325           00006                           EXTEND                                         
044189,001120:    7326           70135                           MP       DMPNTEMP                              
044190,001121:    7327           30001                           CA       L                                     
044191,001122:    7330           26154                           ADS      MPAC                                  #  COMPLETING THE PRODUCT IN MPAC
044192,001123:    7331           00006                           EXTEND                                         
044193,001124:    7332           30155                           DCA      MPAC                                  #  BRINGING THE PRODUCT INTO A AND L
044194,001125:    7333           00002                           TC       Q                                     
044195,001126: 

Page 1029

044197,001128:                                                                                                  #  MISCELLANEOUS VECTOR OPERATIONS. INCLUDED HERE ARE THE FOLLOWING:
044198,001129: 
044199,001130:                                                                                                  #           1.  DOT                DP VECTOR DOT PRODUCT.
044200,001131:                                                                                                  #           2.  VXV                DP VECTOR CROSS PRODUCT.
044201,001132:                                                                                                  #           3.  VXSC               DP VECTOR TIMES SCALAR.
044202,001133:                                                                                                  #           4.  V/SC               DP VECTOR DIVIDED BY SCALAR.
044203,001134:                                                                                                  #           5.  VPROJ              DP VECTOR PROJECTION. ( (MPAC.X)MPAC ).
044204,001135:                                                                                                  #           6.  VXM                DP VECTOR POST-MULTIPLIED BY MATRIX.
044205,001136:                                                                                                  #           7.  MXV                DP VECTOR PRE-MULTIPLIED BY MATRIX.
044206,001137: 
044207,001138:    7334           07157        DOT                TC       PREDOT                                #  DO THE DOT PRODUCT AND EXIT, CHANGING
044208,001139:    7335           34755        DMODE              CAF      ZERO                                  #  THE MODE TO DP SCALAR.
044209,001140:    7336           16063                           TCF      NEWMODE                               
044210,001141: 
044211,001142: 
044212,001143:    7337           34752        MXV                CAF      TWO                                   #  SET UP MATINC AND DOTINC FOR ROW
044213,001144:    7340           54140                           TS       MATINC                                #  VECTORS.
044214,001145:    7341           17345                           TCF      VXM/MXV                               #  GO TO COMMON PORTION.
044215,001146: 
044216,001147:    7342           44363        VXM                CS       TEN                                   #  SET MATINC AND DOTINC TO REFER TO MATRIX
044217,001148:    7343           54140                           TS       MATINC                                #  AS THREE COLUMN VECTORS.
044218,001149:    7344           36245                           CAF      SIX                                   
044219,001150: 

Page 1030

044221,001152:                                                                                                  #           COMMON PORTION OF MXV AND VXM.
044222,001153: 
044223,001154:    7345           54136        VXM/MXV            TS       DOTINC                                
044224,001155:                                                                                                  #           ITRACE (2) REFERS TO "VXM/MXV".
044225,001156:    7346           07535                           TC       MPACVBUF                              #  SAVE VECTOR IN MPAC FOR FURTHER USE.
044226,001157: 
044227,001158:    7347           07161                           TC       DOTSUB                                #  GO DOT TO GET X COMPONENT OF ANSWER.
044228,001159:    7350           00006                           EXTEND                                         
044229,001160:    7351           30123                           DCA      VBUF                                  #  MOVE MPAC VECTOR BACK INTO MPAC, SAVING
044230,001161:    7352           52155                           DXCH     MPAC                                  #  NEW X COMPONENT IN BUF2.
044231,001162:    7353           52134                           DXCH     BUF2                                  
044232,001163:    7354           00006                           EXTEND                                         
044233,001164:    7355           30125                           DCA      VBUF       +2                         
044234,001165:    7356           52160                           DXCH     MPAC       +3                         
044235,001166:    7357           00006                           EXTEND                                         
044236,001167:    7360           30127                           DCA      VBUF       +4                         
044237,001168:    7361           52162                           DXCH     MPAC       +5                         
044238,001169:    7362           30140                           CA       MATINC                                #  INITIALIZE ADDRWD FOR NEXT DOT PRODUCT.
044239,001170:    7363           26116                           ADS      ADDRWD                                #  FORMS BASE ADDRESS OF NEXT COLUMN(ROW).
044240,001171: 
044241,001172:    7364           07161                           TC       DOTSUB                                
044242,001173:    7365           52123                           DXCH     VBUF                                  #  MOVE GIVEN VECTOR BACK TO MPAC, SAVING Y
044243,001174:    7366           52155                           DXCH     MPAC                                  #  COMPONENT OF ANSWER IN VBUF +2.
044244,001175:    7367           52125                           DXCH     VBUF       +2                         
044245,001176:    7370           52160                           DXCH     MPAC       +3                         
044246,001177:    7371           52127                           DXCH     VBUF       +4                         
044247,001178:    7372           52162                           DXCH     MPAC       +5                         
044248,001179:    7373           30140                           CA       MATINC                                #  FORM ADDRESS OF LAST COLUMN OR ROW.
044249,001180:    7374           26116                           ADS      ADDRWD                                
044250,001181: 
044251,001182:    7375           07161                           TC       DOTSUB                                
044252,001183:    7376           52134                           DXCH     BUF2                                  #  ANSWER NOW COMPLETE. PUT COMPONENTS INTO
044253,001184:    7377           52155                           DXCH     MPAC                                  #  PROPER MPAC REGISTERS.
044254,001185:    7400           52162                           DXCH     MPAC       +5                         
044255,001186:    7401           52125                           DXCH     VBUF       +2                         
044256,001187:    7402           52160                           DXCH     MPAC       +3                         
044257,001188:    7403           16064                           TCF      DANZIG                                #  EXIT.
044258,001189: 

Page 1031

044260,001191:                                                                                                  #           VXSC - VECTOR TIMES SCALAR.
044261,001192: 
044262,001193:    7404           10163        VXSC               CCS      MODE                                  #  TEST PRESENT MODE.
044263,001194:    7405           17433                           TCF      DVXSC                                 #  SEPARATE ROUTINE WHEN SCALAR IS IN MPAC.
044264,001195:    7406           17433                           TCF      DVXSC                                 
044265,001196: 
044266,001197:    7407           07112        VVXSC              TC       DMPSUB                                #  COMPUTE X COMPONENT
044267,001198:    7410           07143                           TC       VROUND                                #  AND ROUND IT.
044268,001199:    7411           52160                           DXCH     MPAC       +3                         #  PUT Y COMPONENT INTO MPAC SAVING MPAC IN
044269,001200:    7412           52155                           DXCH     MPAC                                  #  MPAC +3.
044270,001201:    7413           52160                           DXCH     MPAC       +3                         
044271,001202: 
044272,001203:    7414           07112                           TC       DMPSUB                                #  DO SAME FOR Y AND Z COMPONENTS.
044273,001204:    7415           07143                           TC       VROUND                                
044274,001205:    7416           52162                           DXCH     MPAC       +5                         
044275,001206:    7417           52155                           DXCH     MPAC                                  
044276,001207:    7420           52162                           DXCH     MPAC       +5                         
044277,001208: 
044278,001209:    7421           07112                           TC       DMPSUB                                
044279,001210:    7422           07143                           TC       VROUND                                
044280,001211:    7423           52155        VROTATEX           DXCH     MPAC                                  #  EXIT USED TO RESTORE MPAC AFTER THIS
044281,001212:    7424           52162                           DXCH     MPAC       +5                         #  TYPE OF ROTATION. CALLED BY VECTOR SHIFT
044282,001213:    7425           52160                           DXCH     MPAC       +3                         #  RIGHT, V/SC, ETC.
044283,001214:    7426           52155                           DXCH     MPAC                                  
044284,001215:    7427           16064                           TCF      DANZIG                                
044285,001216: 

Page 1032

044287,001218:                                                                                                  #           DP VECTOR PROJECTION ROUTINE.
044288,001219: 
044289,001220:    7430           07157        VPROJ              TC       PREDOT                                #  (MPAC.X)MPAC IS COMPUTED AND LEFT IN
044290,001221:    7431           44751                           CS       FOUR                                  #  MPAC. DO DOT AND FALL INTO DVXSC.
044291,001222:    7432           26116                           ADS      ADDRWD                                
044292,001223: 
044293,001224:                                                                                                  #           VXSC WHEN SCALAR ARRIVES IN MPAC AND VECTOR IS AT X.
044294,001225: 
044295,001226:    7433           00006        DVXSC              EXTEND                                         #  SAVE SCALAR IN MPAC +3 AND GET X
044296,001227:    7434           30155                           DCA      MPAC                                  #  COMPONENT OF ANSWER.
044297,001228:    7435           52160                           DXCH     MPAC       +3                         
044298,001229:    7436           07112                           TC       DMPSUB                                
044299,001230:    7437           07143                           TC       VROUND                                
044300,001231: 
044301,001232:    7440           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO Y COMPONENT OF X.
044302,001233:    7441           26116                           ADS      ADDRWD                                
044303,001234:    7442           00006                           EXTEND                                         
044304,001235:    7443           30160                           DCA      MPAC       +3                         #  PUT SCALAR BACK INTO MPAC AND SAVE
044305,001236:    7444           52155                           DXCH     MPAC                                  #  X RESULT IN MPAC +5.
044306,001237:    7445           52162                           DXCH     MPAC       +5                         
044307,001238:    7446           07112                           TC       DMPSUB                                
044308,001239:    7447           07143                           TC       VROUND                                
044309,001240: 
044310,001241:    7450           34752                           CAF      TWO                                   
044311,001242:    7451           26116                           ADS      ADDRWD                                #  TO Z COMPONENT.
044312,001243:    7452           52160                           DXCH     MPAC       +3                         #  BRING SCALAR BACK, PUTTING Y RESULT IN
044313,001244:    7453           52155                           DXCH     MPAC                                  #  THE PROPER PLACE.
044314,001245:    7454           52160                           DXCH     MPAC       +3                         
044315,001246:    7455           07112                           TC       DMPSUB                                
044316,001247:    7456           07143                           TC       VROUND                                
044317,001248: 
044318,001249:    7457           52155                           DXCH     MPAC                                  #  PUT Z COMPONENT IN PROPER PLACE, ALSO
044319,001250:    7460           52162                           DXCH     MPAC       +5                         #  POSITIONING X.
044320,001251:    7461           52155                           DXCH     MPAC                                  
044321,001252: 
044322,001253:    7462           16524                           TCF      VMODE                                 #  MODE HAS CHANGED TO VECTOR.
044323,001254: 

Page 1033

044325,001256:                                                                                                  #           THE VECTOR CROSS PRODUCT ROUTINE CALCULATES (X M -X M ,X M -X M ,X M -X M ) WHERE M IS THE VECTOR IN
044326,001257:                                                                                                  #                                                         3 2  2 3  1 3  3 1  2 1  1 2
044327,001258:                                                                                                  #  MPAC AND X THE VECTOR AT THE GIVEN ADDRESS.
044328,001259: 
044329,001260:    7463           00006        VXV                EXTEND                                         
044330,001261:    7464           30162                           DCA      MPAC       +5                         #  FORM UP M3X1, LEAVING M1 IN VBUF.
044331,001262:    7465           52155                           DXCH     MPAC                                  
044332,001263:    7466           52123                           DXCH     VBUF                                  
044333,001264:    7467           07112                           TC       DMPSUB                                #  BY X1.
044334,001265: 
044335,001266:    7470           00006                           EXTEND                                         
044336,001267:    7471           40160                           DCS      MPAC       +3                         #  CALCULATE -X1M2, SAVING X1M3 IN VBUF +2.
044337,001268:    7472           52155                           DXCH     MPAC                                  
044338,001269:    7473           52125                           DXCH     VBUF       +2                         
044339,001270:    7474           07112                           TC       DMPSUB                                
044340,001271: 
044341,001272:    7475           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X2.
044342,001273:    7476           26116                           ADS      ADDRWD                                
044343,001274:    7477           00006                           EXTEND                                         
044344,001275:    7500           40162                           DCS      MPAC       +5                         #  PREPARE TO GET -X2M3, SAVING -X1M2 IN
044345,001276:    7501           52155                           DXCH     MPAC                                  #  MPAC +5.
044346,001277:    7502           52162                           DXCH     MPAC       +5                         
044347,001278:    7503           07112                           TC       DMPSUB                                
044348,001279: 
044349,001280:    7504           00006                           EXTEND                                         
044350,001281:    7505           30123                           DCA      VBUF                                  #  GET X2M1, SAVING -X2M3 IN VBUF +4.
044351,001282:    7506           52155                           DXCH     MPAC                                  
044352,001283:    7507           52127                           DXCH     VBUF       +4                         
044353,001284:    7510           07112                           TC       DMPSUB                                
044354,001285: 
044355,001286:    7511           34752                           CAF      TWO                                   #  ADVANCE ADDRWD TO X3.
044356,001287:    7512           26116                           ADS      ADDRWD                                
044357,001288:    7513           00006                           EXTEND                                         
044358,001289:    7514           40123                           DCS      VBUF                                  #  GET -X3M1, ADDING X2M1 TO MPAC +5 TO
044359,001290:    7515           52155                           DXCH     MPAC                                  #  COMPLETE THE Z COMPONENT OF THE ANSWER.
044360,001291:    7516           20162                           DAS      MPAC       +5                         
044361,001292: 
044362,001293:    7517           00006                           EXTEND                                         
044363,001294:    7520           17522                           BZF      +2                                    
044364,001295:    7521           07014                           TC       OVERFLWZ                              
044365,001296: 
044366,001297:    7522           07112                           TC       DMPSUB                                
044367,001298:    7523           52125                           DXCH     VBUF       +2                         #  MOVE X1M3 TO MPAC +3 SETTING UP FOR X3M2
044368,001299:    7524           52160                           DXCH     MPAC       +3                         #  AND ADD -X3M1 TO MPAC +3 TO COMPLETE THE
044369,001300:    7525           52155                           DXCH     MPAC                                  #  Y COMPONENT OF THE RESULT.
044370,001301:    7526           20160                           DAS      MPAC       +3                         
044371,001302: 
044372,001303:    7527           00006                           EXTEND                                         
044373,001304:    7530           17532                           BZF      +2                                    

Page 1034

044375,001306:    7531           07017                           TC       OVERFLWY                              
044376,001307: 
044377,001308:    7532           07112                           TC       DMPSUB                                
044378,001309:    7533           52127                           DXCH     VBUF       +4                         #  GO ADD -X2M3 TO X3M2 TO COMPLETE THE X
044379,001310:    7534           17003                           TCF      ENDVXV                                #  COMPONENT (TAIL END OF DAD).
044380,001311: 
044381,001312:                                                                                                  #           THE MPACVBUF SUBROUTINE SAVES THE VECTOR IN MPAC IN VBUF WITHOUT CLOBBERING MPAC.
044382,001313: 
044383,001314:    7535           00006        MPACVBUF           EXTEND                                         #  CALLED BY MXV, VXM, AND UNIT.
044384,001315:    7536           30155                           DCA      MPAC                                  
044385,001316:    7537           52123                           DXCH     VBUF                                  
044386,001317:    7540           00006                           EXTEND                                         
044387,001318:    7541           30160                           DCA      MPAC       +3                         
044388,001319:    7542           52125                           DXCH     VBUF       +2                         
044389,001320:    7543           00006                           EXTEND                                         
044390,001321:    7544           30162                           DCA      MPAC       +5                         
044391,001322:    7545           52127                           DXCH     VBUF       +4                         
044392,001323:    7546           00002                           TC       Q                                     #  RETURN TO CALLER.
044393,001324: 
044394,001325: 
044395,001326:                                                                                                  #           DOUBLE PRECISION SIGN AGREE ROUTINE. ARRIVE WITH INPUT IN A+L. OUTPUT IS IN A + L.
044396,001327: 
044397,001328:    7547           10000        ALSIGNAG           CCS      A                                     #  TEST UPPER PART.
044398,001329:    7550           17554                           TCF      UPPOS                                 #  IT IS POSITIVE
044399,001330:    7551           00002                           TC       Q                                     #  ZERO
044400,001331:    7552           17564                           TCF      UPNEG                                 #  NEGATIVE
044401,001332:    7553           00002                           TC       Q                                     #  ZERO
044402,001333: 
044403,001334:    7554           56001        UPPOS              XCH      L                                     #  SAVE DECREMENTED UPPER PART.
044404,001335:    7555           64736                           AD       HALF                                  
044405,001336:    7556           64736                           AD       HALF                                  
044406,001337:    7557           54000                           TS       A                                     #  SKIPS ON OVERFLOW
044407,001338:    7560           17562                           TCF      +2                                    
044408,001339:    7561           24001                           INCR     L                                     #  RESTORE UPPER TO ROIGINAL VALUE
044409,001340:    7562           56001                           XCH      L                                     #  SWAP A + L BACK.
044410,001341:    7563           00002                           TC       Q                                     
044411,001342: 
044412,001343:    7564           56001        UPNEG              XCH      L                                     #  SAVE COMPLEMENTED + DECREMENTED UPPER PT
044413,001344:    7565           64735                           AD       NEGMAX                                
044414,001345:    7566           67752                           AD       NEGONE                                
044415,001346:    7567           54000                           TS       A                                     
044416,001347:    7570           17572                           TCF      +2                                    #  DONT INCREMENT IF NO OVERFLOW.
044417,001348:    7571           24001                           INCR     L                                     
044418,001349:    7572           56001                           XCH      L                                     
044419,001350:    7573           40000                           COM                                            #  MAKE NEGATIVE AGAIN.
044420,001351:    7574           00002                           TC       Q                                     
044421,001352: 

Page 1035

044423,001354:                                                                                                  #           INTERPRETIVE INSTRUCTIONS WHOSE EXECUTION CONSISTS OF PRINCIPALLY CALLING SUBROUTINES.
044424,001355: 
044425,001356:    7575           07112        DMP1               TC       DMPSUB                                #  DMP INSTRUCTION.
044426,001357:    7576           16064                           TCF      DANZIG                                
044427,001358: 
044428,001359:    7577           07112        DMPR               TC       DMPSUB                                
044429,001360:    7600           07142                           TC       ROUNDSUB   +1                         #  (C(A) = +0).
044430,001361:    7601           16064                           TCF      DANZIG                                
044431,001362: 
044432,001363:    7602           00006        DDV                EXTEND                                         
044433,001364:    7603           50116                           INDEX    ADDRWD                                #  MOVE DIVIDEND INTO BUF.
044434,001365:    7604           30001                           DCA      0                                     
044435,001366:    7605           17612                           TCF      BDDV       +4                         
044436,001367: 
044437,001368:    7606           00006        BDDV               EXTEND                                         #  MOVE DIVISOR INTO MPAC SAVING MPAC, THE
044438,001369:    7607           50116                           INDEX    ADDRWD                                #  DIVIDEND, IN BUF.
044439,001370:    7610           30001                           DCA      0                                     
044440,001371:    7611           52155                           DXCH     MPAC                                  
044441,001372:    7612           52131                 +4        DXCH     BUF                                   
044442,001373:    7613           34755                           CAF      ZERO                                  #  DIVIDE ROUTINES IN BANK 0.
044443,001374:    7614           54004                           TS       FBANK                                 
044444,001375:    7615           12353                           TCF      DDV/BDDV                              
044445,001376: 
044446,001377:    7616           30116        SETPD              CA       ADDRWD                                #  MUST SET TO WORK AREA, OR EBANK TROUBLE.
044447,001378:    7617           54166                           TS       PUSHLOC                               
044448,001379:    7620           16066                           TCF      NOIBNKSW                              #  NO FBANK SWITCH REQUIRED.
044449,001380: 
044450,001381:    7621           34755        TSLC               CAF      ZERO                                  #  SHIFTING ROUTINES LOCATED IN BANK 00.
044451,001382:    7622           54004                           TS       FBANK                                 
044452,001383:    7623           12172                           TCF      TSLC2                                 
044453,001384: 
044454,001385:    7624           36077        GSHIFT             CAF      LOW7                                  #  USED AS MASK AT GENSHIFT. THIS PROCESSES
044455,001386:    7625           54004                           TS       FBANK                                 #  ANY SHIFT INSTRUCTION (EXCEPT TSLC) WITH
044456,001387:    7626           12214                           TCF      GENSHIFT                              #  AN ADDRESS (ROUTINES IN BANK 0).
044457,001388: 

Page 1036

044459,001390:                                                                                                  #           THE FOLLOWING IS THE PROLOGUE TO V/SC. IF THE PRESENT MODE IS VECTOR, IT SAVES THE SCALAR AT X IN BUF
044460,001391:                                                                                                  #  AND CALLS THE V/SC ROUTINE IN BANK 0. IF THE PRESENT MODE IS SCALAR, IT MOVES THE VECTOR AT X INTO MPAC, SAVING
044461,001392:                                                                                                  #  THE SCALAR IN MPAC IN BUF BEFORE CALLING THE V/SC ROUTINE IN BANK 0.
044462,001393: 
044463,001394:    7627           10163        V/SC               CCS      MODE                                  
044464,001395:    7630           17641                           TCF      DV/SC                                 #  MOVE VECTOR INTO MPAC.
044465,001396:    7631           17641                           TCF      DV/SC                                 
044466,001397: 
044467,001398:    7632           00006        VV/SC              EXTEND                                         
044468,001399:    7633           50116                           INDEX    ADDRWD                                
044469,001400:    7634           30001                           DCA      0                                     
044470,001401:    7635           52131        V/SC1              DXCH     BUF                                   #  IN BOTH CASES, VECTOR IS NOW IN MPAC AND
044471,001402:    7636           34755                           CAF      ZERO                                  #  SCALAR IN BUF.
044472,001403:    7637           54004                           TS       FBANK                                 
044473,001404:    7640           12654                           TCF      V/SC2                                 
044474,001405: 
044475,001406:    7641           00006        DV/SC              EXTEND                                         
044476,001407:    7642           50116                           INDEX    ADDRWD                                
044477,001408:    7643           30003                           DCA      2                                     
044478,001409:    7644           52160                           DXCH     MPAC       +3                         
044479,001410:    7645           00006                           EXTEND                                         
044480,001411:    7646           50116                           INDEX    ADDRWD                                
044481,001412:    7647           30005                           DCA      4                                     
044482,001413:    7650           52162                           DXCH     MPAC       +5                         
044483,001414: 
044484,001415:    7651           44753                           CS       ONE                                   #  CHANGE MODE TO VECTOR.
044485,001416:    7652           54163                           TS       MODE                                  
044486,001417: 
044487,001418:    7653           00006                           EXTEND                                         
044488,001419:    7654           50116                           INDEX    ADDRWD                                
044489,001420:    7655           30001                           DCA      0                                     
044490,001421:    7656           52155                           DXCH     MPAC                                  
044491,001422:    7657           17635                           TCF      V/SC1                                 #  FINISH PROLOGUE AT COMMON SECTION.
044492,001423: 

Page 1037

044494,001425:                                                                                                  #           SIGN AND COMPLEMENT INSTRUCTIONS.
044495,001426: 
044496,001427:    7660           50116        SIGN               INDEX    ADDRWD                                #  CALL COMP INSTRUCTION IF WORD AT X IS
044497,001428:    7661           10000                           CCS      0                                     #  NEGATIVE NON-ZERO.
044498,001429:    7662           16064                           TCF      DANZIG                                
044499,001430:    7663           17665                           TCF      +2                                    
044500,001431:    7664           17673                           TCF      COMP                                  #  DO THE COMPLEMENT.
044501,001432: 
044502,001433:    7665           50116                           INDEX    ADDRWD                                
044503,001434:    7666           10001        CCSL               CCS      1                                     
044504,001435:    7667           16064                           TCF      DANZIG                                
044505,001436:    7670           16064                           TCF      DANZIG                                
044506,001437:    7671           17673                           TCF      COMP                                  
044507,001438:    7672           16064                           TCF      DANZIG                                
044508,001439:    7673           00006        COMP               EXTEND                                         #  COMPLEMENT DP MPAC IN EVERY CASE.
044509,001440:    7674           40155                           DCS      MPAC                                  
044510,001441:    7675           52155                           DXCH     MPAC                                  
044511,001442: 
044512,001443:    7676           10163                           CCS      MODE                                  #  EITHER COMPLEMENT MPAC +3 OR THE REST OF
044513,001444:    7677           17710                           TCF      DCOMP                                 #  THE VECTOR ACCUMULATOR.
044514,001445:    7700           17710                           TCF      DCOMP                                 
044515,001446: 
044516,001447:    7701           00006                           EXTEND                                         #  VECTOR COMPLEMENT.
044517,001448:    7702           40160                           DCS      MPAC       +3                         
044518,001449:    7703           52160                           DXCH     MPAC       +3                         
044519,001450:    7704           00006                           EXTEND                                         
044520,001451:    7705           40162                           DCS      MPAC       +5                         
044521,001452:    7706           52162                           DXCH     MPAC       +5                         
044522,001453:    7707           16064                           TCF      DANZIG                                
044523,001454: 
044524,001455:    7710           40156        DCOMP              CS       MPAC       +2                         
044525,001456:    7711           54156                           TS       MPAC       +2                         
044526,001457:    7712           16064                           TCF      DANZIG                                
044527,001458: 

Page 1038

044529,001460:                                                                                                  #           THE FOLLOWING SHORT SHIFT CODES REQUIRE NO ADDRESS WORD:
044530,001461: 
044531,001462:                                                                                                  #           1.  SR1 TO SR4         SCALAR SHIFT RIGHT.
044532,001463:                                                                                                  #           2.  SR1R TO SR4R       SCALAR SHIFT RIGHT AND ROUND.
044533,001464:                                                                                                  #           3.  SL1 TO SL4         SCALAR SHIFT LEFT.
044534,001465:                                                                                                  #           4.  SL1R TO SL4R       SCALAR SHIFT LEFT AND ROUND.
044535,001466: 
044536,001467:                                                                                                  #           5.  VSR1 TO VSR8       VECTOR SHIFT RIGHT (ALWAYS ROUNDS).
044537,001468:                                                                                                  #           6.  VSL1 TO VSL8       VECTOR SHIFT LEFT (NEVER ROUNDS).
044538,001469: 
044539,001470:                                                                                                  #           THE FOLLOWING CODES REQUIRE AN ADDRESS WHICH MAY BE INDEXED:*
044540,001471: 
044541,001472:                                                                                                  #           1.  SR                 SCALAR SHIFT RIGHT.
044542,001473:                                                                                                  #           2.  SRR                SCALAR SHIFT RIGHT AND ROUND.
044543,001474:                                                                                                  #           3.  SL                 SCALAR SHIFT LEFT.
044544,001475:                                                                                                  #           4.  SLR                SCALAR SHIFT LEFT AND ROUND.
044545,001476: 
044546,001477:                                                                                                  #           5.  VSR                VECTOR SHIFT RIGHT.
044547,001478:                                                                                                  #           6.  VSL                VECTOR SHIFT LEFT.
044548,001479: 
044549,001480:                                                                                                  #  *  IF THE ADDRESS IS INDEXED, AND THE INDEX MODIFICATION RESULTS IN A NEGATIVE SHIFT COUNT, A SHIFT OF THE
044550,001481:                                                                                                  #  ABSOLUTE VALUE OF THE COUNT IS DONE IN THE OPPOSITE DIRECTION.
044551,001482: 
044552,001483: 
044553,001484: 00,2017                                           BANK     00                                    
044554,001485: 
044555,001486: 00,2017                                           COUNT*   $$/INTER                              
044556,001487: 00,2017           36245        SHORTT             CAF      SIX                                   #  SCALAR SHORT SHIFTS COME HERE. THE SHIFT
044557,001488: 00,2020           70020                           MASK     CYR                                   #  COUNT-1 IS NOW IN BITS 2-3 OF CYR. THE
044558,001489: 00,2021           54021                           TS       SR                                    #  ROUNDING BIT IS IN BIT1 AT THIS POINT.
044559,001490: 
044560,001491: 00,2022           10020                           CCS      CYR                                   #  SEE IF RIGHT OR LEFT SHIFT DESIRED.
044561,001492: 00,2023           12101                           TCF      TSSL                                  #  SHIFT LEFT.
044562,001493: 
044563,001494: 00,2024           00024        SRDDV              DEC      20         B-14                       #  MPTEMP SETTING FOR SR BEFORE DDV.
044564,001495: 
044565,001496: 00,2025           50021        TSSR               INDEX    SR                                    #  GET SHIFTING BIT.
044566,001497: 00,2026           34736                           CAF      BIT14                                 
044567,001498: 00,2027           54135                           TS       MPTEMP                                
044568,001499: 
044569,001500: 00,2030           10020                           CCS      CYR                                   #  SEE IF A ROUND IS DESIRED.
044570,001501: 00,2031           02050        RIGHTR             TC       MPACSRND                              #  YES - SHIFT RIGHT AND ROUND.
044571,001502: 00,2032           16063                           TCF      NEWMODE                               #  SET MODE TO DP (C(A) = 0).
044572,001503: 00,2033           30135        MPACSHR            CA       MPTEMP                                #  DO A TRIPLE PRECISION SHIFT RIGHT.
044573,001504: 00,2034           00006                           EXTEND                                         
044574,001505: 00,2035           70156                           MP       MPAC       +2                         
044575,001506: 00,2036           54156                 +3        TS       MPAC       +2                         #  (EXIT FROM SQRT AND ABVAL).
044576,001507: 00,2037           30135                           CA       MPTEMP                                
044577,001508: 00,2040           00006                           EXTEND                                         
044578,001509: 00,2041           70154                           MP       MPAC                                  #  SHIFT MAJOR PART INTO A,L AND PLACE IN

Page 1039

044580,001511: 00,2042           52155                           DXCH     MPAC                                  #  MPAC,+1.
044581,001512: 00,2043           30135                           CA       MPTEMP                                
044582,001513: 00,2044           00006                           EXTEND                                         
044583,001514: 00,2045           70001                           MP       L                                     #  ORIGINAL C(MPAC +1).
044584,001515: 00,2046           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
044585,001516: 00,2047           16064                           TCF      DANZIG                                
044586,001517: 
044587,001518:                                                                                                  #           MPAC SHIFT RIGHT AND ROUND SUBROUTINES.
044588,001519: 
044589,001520: 00,2050           30156        MPACSRND           CA       MPAC       +2                         #  WE HAVE TO DO ALL THREE MULTIPLIES SINCE
044590,001521: 00,2051           00006                           EXTEND                                         #  MPAC +1 AND MPAC +2 MIGHT HAVE SIGN
044591,001522: 00,2052           70135                           MP       MPTEMP                                #  DISAGREEMENT WITH A SHIFT RIGHT OF 1.
044592,001523: 00,2053           56155                           XCH      MPAC       +1                         
044593,001524: 00,2054           00006                           EXTEND                                         
044594,001525: 00,2055           70135                           MP       MPTEMP                                
044595,001526: 00,2056           56155                           XCH      MPAC       +1                         #  TRIAL MINOR PART.
044596,001527: 00,2057           60001                           AD       L                                     
044597,001528: 
044598,001529: 00,2060           60000        VSHR2              DOUBLE                                         #  (FINISH VECTOR COMPONENT SHIFT RIGHT
044599,001530: 00,2061           54156                           TS       MPAC       +2                         #  AND ROUND.
044600,001531: 00,2062           12064                           TCF      +2                                    
044601,001532: 00,2063           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
044602,001533: 
044603,001534: 00,2064           34755                           CAF      ZERO                                  
044604,001535: 00,2065           54156                           TS       MPAC       +2                         
044605,001536: 00,2066           56154                           XCH      MPAC                                  #  SETTING TO ZERO SO FOLLOWING DAS WORKS.
044606,001537: 00,2067           00006                           EXTEND                                         
044607,001538: 00,2070           70135                           MP       MPTEMP                                
044608,001539: 00,2071           20155                           DAS      MPAC                                  #  AGAIN NO OVERFLOW.
044609,001540: 00,2072           00002                           TC       Q                                     
044610,001541: 
044611,001542: 00,2073           30135        VSHRRND            CA       MPTEMP                                #  ENTRY TO SHIFT RIGHT AND ROUND MPAC WHEN
044612,001543: 00,2074           00006                           EXTEND                                         #  MPAC CONTAINS A VECTOR COMPONENT.
044613,001544: 00,2075           70155                           MP       MPAC       +1                         
044614,001545: 00,2076           54155                           TS       MPAC       +1                         
044615,001546: 00,2077           56001                           XCH      L                                     
044616,001547: 00,2100           12060                           TCF      VSHR2                                 #  GO ADD ONE IF NECESSARY AND FINISH.
044617,001548: 

Page 1040

044619,001550:                                                                                                  #           ROUTINE FOR SHORT SCALAR SHIFT LEFT (AND MAYBE ROUND).
044620,001551: 
044621,001552: 00,2101           30021        TSSL               CA       SR                                    #  GET SHIFT COUNT FOR SR.
044622,001553: 00,2102           54135                 +1        TS       MPTEMP                                
044623,001554: 
044624,001555: 00,2103           00006                 +2        EXTEND                                         #  ENTRY HERE FROM SL FOR SCALARS.
044625,001556: 00,2104           30156                           DCA      MPAC       +1                         #  SHIFTING LEFT ONE PLACE AT A TIME IS
044626,001557: 00,2105           20156                           DAS      MPAC       +1                         #  FASTER THAN DOING THE WHOLE SHIFT WITH
044627,001558: 00,2106           60154                           AD       MPAC                                  #  MULTIPLIES ASSUMING THAT FREQUENCY OF
044628,001559: 00,2107           60154                           AD       MPAC                                  #  SHIFT COUNTS GOES DOWN RAPIDLY AS A
044629,001560: 00,2110           54154                           TS       MPAC                                  #  FUNCTION OF THEIR MAGNITUDE.
044630,001561: 00,2111           12113                           TCF      +2                                    
044631,001562: 00,2112           54121                           TS       OVFIND                                #  OVERFLOW. (LEAVES OVERFLOW-CORRECTED
044632,001563:                                                                                                  #  RESULT ANYWAY).
044633,001564: 00,2113           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNT.
044634,001565: 00,2114           12102                           TCF      TSSL       +1                         
044635,001566: 
044636,001567: 00,2115           10020                           CCS      CYR                                   #  SEE IF ROUND WANTED.
044637,001568: 00,2116           07141        ROUND              TC       ROUNDSUB                              #  YES - ROUND AND EXIT.
044638,001569: 00,2117           16064                           TCF      DANZIG                                #  SL LEAVES A ZERO IN CYR FOR NO ROUND.
044639,001570: 00,2120           16064                           TCF      DANZIG                                #  NO - EXIT IMMEDIATL
044640,001571: 

Page 1041

044642,001573:                                                                                                  #  VECTOR SHIFTING ROUTINES.
044643,001574: 
044644,001575: 00,2121           34757        SHORTV             CAF      LOW3                                  #  SAVE 3 BIT SHIFT COUNT - 1 WITHOUT
044645,001576: 00,2122           70020                           MASK     CYR                                   #  EDITING CYR.
044646,001577: 00,2123           54135                           TS       MPTEMP                                
044647,001578: 00,2124           10020                           CCS      CYR                                   #  SEE IF LEFT OR RIGHT SHIFT.
044648,001579: 00,2125           12145                           TCF      VSSL                                  #  VECTOR SHIFT LEFT.
044649,001580: 00,2126           00176        OCT176             OCT      176                                   #  USED IN PROCESSED SHIFTS WITH - COUNT.
044650,001581: 
044651,001582: 00,2127           50135        VSSR               INDEX    MPTEMP                                #  (ENTRY FROM SR). PICK UP SHIFTING BIT.
044652,001583: 00,2130           34736                           CAF      BIT14                                 #  MPTEMP CONTAINS THE SHIFT COUNT - 1.
044653,001584: 00,2131           54135                           TS       MPTEMP                                
044654,001585: 00,2132           02073                           TC       VSHRRND                               #  SHIFT X COMPONENT.
044655,001586: 
044656,001587: 00,2133           52155                           DXCH     MPAC                                  #  SWAP X AND Y COMPONENTS.
044657,001588: 00,2134           52160                           DXCH     MPAC       +3                         
044658,001589: 00,2135           52155                           DXCH     MPAC                                  
044659,001590: 00,2136           02073                           TC       VSHRRND                               #  SHIFT Y COMPONENT.
044660,001591: 
044661,001592: 00,2137           52155                           DXCH     MPAC                                  #  SWAP Y AND Z COMPONENTS.
044662,001593: 00,2140           52162                           DXCH     MPAC       +5                         
044663,001594: 00,2141           52155                           DXCH     MPAC                                  
044664,001595: 00,2142           02073                           TC       VSHRRND                               #  SHIFT Z COMPONENT.
044665,001596: 
044666,001597: 00,2143           17423                           TCF      VROTATEX                              #  RESTORE COMPONENTS TO PROPER PLACES.
044667,001598: 

Page 1042

044669,001600:                                                                                                  #  VECTOR SHIFT LEFT - DONE ONE PLACE AT A TIME.
044670,001601: 
044671,001602: 00,2144           54135                 -1        TS       MPTEMP                                #  SHIFTING LOOP.
044672,001603: 
044673,001604: 00,2145           00006        VSSL               EXTEND                                         
044674,001605: 00,2146           30155                           DCA      MPAC                                  
044675,001606: 00,2147           20155                           DAS      MPAC                                  
044676,001607: 00,2150           00006                           EXTEND                                         
044677,001608: 00,2151           12153                           BZF      +2                                    
044678,001609: 00,2152           07022                           TC       OVERFLOW                              
044679,001610: 
044680,001611: 00,2153           00006                           EXTEND                                         
044681,001612: 00,2154           30160                           DCA      MPAC       +3                         
044682,001613: 00,2155           20160                           DAS      MPAC       +3                         
044683,001614: 00,2156           00006                           EXTEND                                         
044684,001615: 00,2157           12161                           BZF      +2                                    
044685,001616: 00,2160           07017                           TC       OVERFLWY                              
044686,001617: 
044687,001618: 00,2161           00006                           EXTEND                                         
044688,001619: 00,2162           30162                           DCA      MPAC       +5                         
044689,001620: 00,2163           20162                           DAS      MPAC       +5                         
044690,001621: 00,2164           00006                           EXTEND                                         
044691,001622: 00,2165           12167                           BZF      +2                                    
044692,001623: 00,2166           07014                           TC       OVERFLWZ                              
044693,001624: 
044694,001625: 00,2167           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNTER.
044695,001626: 00,2170           12144                           TCF      VSSL       -1                         
044696,001627: 00,2171           16064                           TCF      DANZIG                                #  EXIT.
044697,001628: 

Page 1043

044699,001630:                                                                                                  #           TSLC - TRIPLE SHIFT LEFT AND COUNT. SHIFTS MPAC LEFT UNTIL GREATER THAN .5 IN MAGNITUDE, LEAVING
044700,001631:                                                                                                  #  THE COMPLEMENT OF THE NUMBER OF SHIFTS REQUIRED IN X.
044701,001632: 
044702,001633: 00,2172           54135        TSLC2              TS       MPTEMP                                #  START BY ZEROING SHIFT COUNT (IN A NOW).
044703,001634: 00,2173           06726                           TC       BRANCH                                #  EXIT WITH NO SHIFTING IF ARGUMENT ZERO.
044704,001635: 00,2174           12176                           TCF      +2                                    
044705,001636: 00,2175           12212                           TCF      ENDTSLC                               #  STORES ZERO SHIFT COUNT IN THIS CASE.
044706,001637: 
044707,001638: 00,2176           07262                           TC       TPAGREE                               #  MAY CAUSE UPSHIFT OF ONE EXTRA PLACE.
044708,001639: 
044709,001640: 00,2177           30154                           CA       MPAC                                  #  BEGIN NORMALIZATION LOOP.
044710,001641: 00,2200           12207                           TCF      TSLCTEST                              
044711,001642: 
044712,001643: 00,2201           24135        TSLCLOOP           INCR     MPTEMP                                #  INCREMENT SHIFT COUNTER.
044713,001644: 00,2202           00006                           EXTEND                                         
044714,001645: 00,2203           30156                           DCA      MPAC       +1                         
044715,001646: 00,2204           20156                           DAS      MPAC       +1                         
044716,001647: 00,2205           60154                           AD       MPAC                                  
044717,001648: 00,2206           26154                           ADS      MPAC                                  
044718,001649: 00,2207           60000        TSLCTEST           DOUBLE                                         #  SEE IF (ANOTHER) SHIFT IS REQUIRED.
044719,001650: 00,2210           54000                           OVSK                                           
044720,001651: 00,2211           12201                           TCF      TSLCLOOP                              #  YES - INCREMENT COUNT AND SHIFT AGAIN.
044721,001652: 
044722,001653: 00,2212           40135        ENDTSLC            CS       MPTEMP                                
044723,001654: 00,2213           16626                           TCF      STORE1                                #  STORE SHIFT COUNT AND RETURN TO DANZIG.
044724,001655: 

Page 1044

044726,001657:                                                                                                  #           THE FOLLOWING ROUTINES PROCESSES THE GENERAL SHIFT INSTRUCTIONS SR, SRR, SL, AND SLR.
044727,001658:                                                                                                  #  THE GIVEN ADDRESS IS DECODED AS FOLLOWS:
044728,001659: 
044729,001660:                                                                                                  #           BITS 1-7    SHIFT COUNT (SUBADDRESS) LESS THAN 125 DECIMAL.
044730,001661:                                                                                                  #           BIT 8       PSEUDO SIGN BIT (DETECTS CHANGE IN SIGN IN INDEXED SHIFTS).
044731,001662:                                                                                                  #           BIT 9       0 FOR LEFT SHIFT, AND 1 FOR RIGHT SHIFT.
044732,001663:                                                                                                  #           BIT 10      1 FOR TERMINAL ROUND ON SCALAR SHIFTS, 0 OTHERWISE.
044733,001664:                                                                                                  #           BITS 11-13  0.
044734,001665:                                                                                                  #           BIT 14      1.
044735,001666:                                                                                                  #           BIT 15      0.
044736,001667: 
044737,001668:                                                                                                  #  THE ABOVE ENCODING IS DONE BY THE YUL SYSTEM.
044738,001669: 
044739,001670: 
044740,001671: 00,2214           70116        GENSHIFT           MASK     ADDRWD                                #  GET SHIFT COUNT, TESTING FOR ZERO.
044741,001672: 00,2215           10000                           CCS      A                                     #  (ARRIVES WITH C(A) = LOW7).
044742,001673: 00,2216           12224                           TCF      GENSHFT2                              #  IF NON-ZERO, PROCEED WITH DECREMENTED CT
044743,001674: 
044744,001675: 00,2217           34742                           CAF      BIT10                                 #  ZERO SHIFT COUNT. NO SHIFTS NEEDED BUT
044745,001676: 00,2220           70116                           MASK     ADDRWD                                #  WE MIGHT HAVE TO ROUND MPAC ON SLR AND
044746,001677: 00,2221           10000                           CCS      A                                     #  SRR (SCALAR ONLY).
044747,001678: 00,2222           07141                           TC       ROUNDSUB                              
044748,001679: 00,2223           16064                           TCF      DANZIG                                
044749,001680: 
044750,001681: 00,2224           54135        GENSHFT2           TS       MPTEMP                                #  DECREMENTED SHIFT COUNT TO MPTEMP.
044751,001682: 00,2225           34744                           CAF      BIT8                                  #  TEST MEANING OF LOW SEVEN BIT COUNT IN
044752,001683: 00,2226           00006                           EXTEND                                         #  MPTEMP NOW.
044753,001684: 00,2227           70116                           MP       ADDRWD                                
044754,001685: 00,2230           76250                           MASK     LOW2                                  #  JUMPS ON SHIFT DIRECTION (BIT8) AND
044755,001686: 00,2231           50000                           INDEX    A                                     
044756,001687: 00,2232           12233                           TCF      +1                                    #  ORIGINAL SHIFT DIRECTION (BIT 9).
044757,001688: 00,2233           12332                           TCF      RIGHT-                                #  NEGATIVE SHIFT COUNT FOR SL OR SLR.
044758,001689: 00,2234           12342                           TCF      LEFT                                  #  SL OR SLR.
044759,001690: 00,2235           12336                           TCF      LEFT-                                 #  NEGATIVE SHIFT COUNT WITH SR OR SRR.
044760,001691: 

Page 1045

044762,001693:                                                                                                  #           GENERAL SHIFT RIGHT.
044763,001694: 
044764,001695: 00,2236           10163        RIGHT              CCS      MODE                                  #  SEE IF VECTOR OR SCALAR.
044765,001696: 00,2237           12277                           TCF      GENSCR                                
044766,001697: 00,2240           12277                           TCF      GENSCR                                
044767,001698: 
044768,001699: 00,2241           30135                           CA       MPTEMP                                #  SEE IF SHIFT COUNT LESS THAN 14D.
044769,001700: 00,2242           63733        VRIGHT2            AD       NEG12                                 
044770,001701: 00,2243           00006                           EXTEND                                         
044771,001702: 00,2244           62127                           BZMF     VSSR                                  #  IF SO, BRANCH AND SHIFT IMMEDIATELY.
044772,001703: 
044773,001704: 00,2245           67752                           AD       NEGONE                                #  IF NOT, REDUCE MPTEMP BY A TOTAL OF 14,
044774,001705: 00,2246           54135                           TS       MPTEMP                                #  AND DO A SHIFT RIGHT AND ROUND BY 14.
044775,001706: 00,2247           34755                           CAF      ZERO                                  #  THE ROUND AT THIS STAGE MAY INTRODUCE A
044776,001707: 00,2250           54001                           TS       L                                     #  ONE BIT ERROR IN A SHIFT RIGHT 15D.
044777,001708: 00,2251           56154                           XCH      MPAC                                  
044778,001709: 00,2252           56155                           XCH      MPAC       +1                         
044779,001710: 00,2253           02272                           TC       SETROUND                              #  X COMPONENT NOW SHIFTED, SO MAKE UP THE
044780,001711: 00,2254           20155                           DAS      MPAC                                  #  ROUNDING QUANTITY (0 IN A AND 0 OR +-1
044781,001712:                                                                                                  #  IN L).
044782,001713: 00,2255           56157                           XCH      MPAC       +3                         #  REPEAT THE ABOVE PROCESS FOR Y AND Z.
044783,001714: 00,2256           56160                           XCH      MPAC       +4                         
044784,001715: 00,2257           02272                           TC       SETROUND                              
044785,001716: 00,2260           20160                           DAS      MPAC       +3                         #  NO OVERFLOW ON THESE ADDS.
044786,001717: 
044787,001718: 00,2261           56161                           XCH      MPAC       +5                         
044788,001719: 00,2262           56162                           XCH      MPAC       +6                         
044789,001720: 00,2263           02272                           TC       SETROUND                              
044790,001721: 00,2264           20162                           DAS      MPAC       +5                         
044791,001722: 
044792,001723: 00,2265           10135                           CCS      MPTEMP                                #  SEE IF DONE, DOING FINAL DECREMENT.
044793,001724: 00,2266           54135                           TS       MPTEMP                                
044794,001725: 00,2267           12242                           TCF      VRIGHT2                               
044795,001726: 00,2270           04604        BIASLO             DEC      .2974      B-1                        #  SQRT CONSTANT
044796,001727: 
044797,001728: 00,2271           16064                           TCF      DANZIG                                
044798,001729: 
044799,001730: 00,2272           60000        SETROUND           DOUBLE                                         #  MAKES UP ROUNDING QUANTITY FROM ARRIVING
044800,001731: 00,2273           54156                           TS       MPAC       +2                         #  C(A). L IS ZERO INITIALLY.
044801,001732: 00,2274           34755                           CAF      ZERO                                  
044802,001733: 00,2275           56001                           XCH      L                                     
044803,001734: 00,2276           00002                           TC       Q                                     #  RETURN AND DO THE DAS, RESETTING L TO 0.
044804,001735: 

Page 1046

044806,001737:                                                                                                  #           PROCESS SR AND SRR FOR SCALARS.
044807,001738: 
044808,001739: 00,2277           30135        GENSCR             CA       MPTEMP                                #  SEE IF THE ORIGINAL SHIFT COUNT WAS LESS
044809,001740: 00,2300           63733                 +1        AD       NEG12                                 #  THAN 14D.
044810,001741: 00,2301           00006                           EXTEND                                         
044811,001742: 00,2302           62322                           BZMF     DOSSHFT                               #  DO THE SHIFT IMMEDIATELY IF SO.
044812,001743: 
044813,001744: 00,2303           67752                 +4        AD       NEGONE                                #  IF NOT, DECREMENT SHIFT COUNT BY 14D AND
044814,001745: 00,2304           54135                           TS       MPTEMP                                #  SHIFT MPAC RIGHT 14 PLACES.
044815,001746: 00,2305           34755                           CAF      ZERO                                  
044816,001747: 00,2306           56154                           XCH      MPAC                                  
044817,001748: 00,2307           56155                           XCH      MPAC       +1                         
044818,001749: 00,2310           54156                           TS       MPAC       +2                         
044819,001750: 00,2311           10135                           CCS      MPTEMP                                #  SEE IF FINISHED, DO FINAL DECREMENT.
044820,001751: 00,2312           54135                           TS       MPTEMP                                
044821,001752: 00,2313           02300                           TC       GENSCR     +1                         
044822,001753: 00,2314           22650        SLOPEHI            DEC      .5884                                 #  SQRT CONSTANT.
044823,001754: 00,2315           34742                           CAF      BIT10                                 #  FINISHED WITH SHIFT. SEE IF ROUND
044824,001755: 00,2316           70116                           MASK     ADDRWD                                #  WANTED.
044825,001756: 00,2317           10000                           CCS      A                                     
044826,001757: 00,2320           07141                           TC       ROUNDSUB                              
044827,001758: 00,2321           16064                           TCF      DANZIG                                #  DO SO AND/OR EXIT.
044828,001759: 
044829,001760: 00,2322           50135        DOSSHFT            INDEX    MPTEMP                                #  PICK UP SHIFTING BIT.
044830,001761: 00,2323           34736                           CAF      BIT14                                 
044831,001762: 00,2324           54135                           TS       MPTEMP                                
044832,001763: 00,2325           34742                           CAF      BIT10                                 #  SEE IF TERMINAL ROUND DESIRED.
044833,001764: 00,2326           70116                           MASK     ADDRWD                                
044834,001765: 00,2327           10000                           CCS      A                                     
044835,001766: 00,2330           12031                           TCF      RIGHTR                                #  YES.
044836,001767: 00,2331           12033                           TCF      MPACSHR                               #  JUST SHIFT RIGHT.
044837,001768: 

Page 1047

044839,001770:                                                                                                  #           PROCESS THE RIGHT- (SL(R) WITH A NEGATIVE COUNT), LEFT-, AND LEFT OPTIONS.
044840,001771: 
044841,001772: 00,2332           40135        RIGHT-             CS       MPTEMP                                #  GET ABSOLUTE VALUE - 1 OF SHIFT COUNT
044842,001773: 00,2333           62126                           AD       OCT176                                #  UNDERSTANDING THAT BIT8 (PSEUDO-SIGN)
044843,001774: 00,2334           54135                           TS       MPTEMP                                #  WAS 1 INITIALLY.
044844,001775: 00,2335           12236                           TCF      RIGHT                                 #  DO NORMAL SHIFT RIGHT.
044845,001776: 
044846,001777: 00,2336           42126        LEFT-              CS       OCT176                                #  SAME PROLOGUE TO LEFT FOR INDEXED RIGHT
044847,001778: 00,2337           60135                           AD       MPTEMP                                #  SHIFTS WHOSE NET SHIFT COUNT IS NEGATIVE
044848,001779: 00,2340           40000                           COM                                            
044849,001780: 00,2341           54135                           TS       MPTEMP                                
044850,001781: 
044851,001782: 00,2342           10163        LEFT               CCS      MODE                                  #  SINCE LEFT SHIFTING IS SONE ONE PLACE AT
044852,001783: 00,2343           12346                           TCF      GENSCL                                #  A TIME, NO COMPARISON WITH 14 NEED BE
044853,001784: 00,2344           12346                           TCF      GENSCL                                #  DONE. FOR SCALARS, SEE IF TERMINAL ROUND
044854,001785: 00,2345           12145                           TCF      VSSL                                  #  DESIRED. FOR VECTORS, SHIFT IMMEDIATELY.
044855,001786: 
044856,001787: 00,2346           40116        GENSCL             CS       ADDRWD                                #  PUT ROUNDING BIT (BIT 10 OF ADDRWD)INTO
044857,001788: 00,2347           00006                           EXTEND                                         #  BIT 15 OF CYR WHERE THE ROUNDING BIT OF
044858,001789: 00,2350           74746                           MP       BIT6                                  #  A SHORT SHIFT LEFT WOULD BE
044859,001790: 00,2351           54020                           TS       CYR                                   
044860,001791: 00,2352           12103                           TCF      TSSL       +2                         #  DO THE SHIFT.
044861,001792: 

Page 1048

044863,001794:                                                                                                  #           SCALAR DIVISION INSTRUCTIONS, DDV AND BDDV, ARE EXECUTED HERE. AT THIS POINT, THE DIVIDEND IS IN MPAC
044864,001795:                                                                                                  #  AND THE DIVISOR IN BUF.
044865,001796: 
044866,001797: 00,2353           44753        DDV/BDDV           CS       ONE                                   #  INITIALIZATION.
044867,001798: 00,2354           54136                           TS       DVSIGN                                #  +-1 FOR POSITIVE QUOTIENT - -0 FOR NEG.
044868,001799: 00,2355           54137                           TS       DVNORMCT                              #  DIVIDEND NORMALIZATION COUNT.
044869,001800: 00,2356           54140                           TS       MAXDVSW                               #  NEAR-ONE DIVIDE FLAG.
044870,001801: 
044871,001802: 00,2357           10130                           CCS      BUF                                   #  FORCE BUF POSITIVE WITH THE MAJOR PART
044872,001803: 00,2360           12516                           TCF      BUFPOS                                #  NON-ZERO.
044873,001804: 00,2361           12363                           TCF      +2                                    
044874,001805: 00,2362           12531                           TCF      BUFNEG                                
044875,001806: 
044876,001807: 00,2363           54156        BUFZERO            TS       MPAC       +2                         #  ZERO THIS.
044877,001808: 00,2364           07262                           TC       TPAGREE                               #  FORCE SIGN AGREEMENT BEFORE OVERFLOW
044878,001809: 
044879,001810: 00,2365           10154                           CCS      MPAC                                  #  TEST TO SEE IF MPAC NON-ZERO.  (TOO BIG)
044880,001811: 00,2366           12414                           TCF      OVF+                                  #  MAJOR PART OF DIVIDEND IS POSITIVE NON-0
044881,001812: 00,2367           12371                           TCF      +2                                    
044882,001813: 00,2370           12413                           TCF      OVF+       -1                         #  MAJOR PART OF DIVIDEND IS NEG. NON-ZERO
044883,001814: 
044884,001815: 00,2371           56131                           XCH      BUF        +1                         #  SHIFT DIVIDEND AND DIVISOR LEFT 14.
044885,001816: 00,2372           56130                           XCH      BUF                                   
044886,001817: 00,2373           56155                           XCH      MPAC       +1                         
044887,001818: 00,2374           56154                           XCH      MPAC                                  
044888,001819: 00,2375           10130                           CCS      BUF                                   #  TRY AGAIN ON FORMER MINOR PART.
044889,001820: 00,2376           12422                           TCF      BUF+                                  
044890,001821: 00,2377           12401                           TCF      +2                                    #  OVERFLOW ON ZERO DIVISOR.
044891,001822: 00,2400           12416                           TCF      BUF-                                  
044892,001823: 
044893,001824: 00,2401           40154                           CS       MPAC                                  #  SIGN OF MPAC DETERMINES SIGN OF RESULT.
044894,001825: 00,2402           00006        SGNDVOVF           EXTEND                                         
044895,001826: 00,2403           62405                           BZMF     +2                                    
044896,001827: 00,2404           24136                           INCR     DVSIGN                                #  NEGMAX IN MPAC PERHAPS.
044897,001828: 00,2405           34733        DVOVF              CAF      POSMAX                                #  ON DIVISION OVERFLOW OF ANY SORT, SET
044898,001829: 00,2406           54154                           TS       MPAC                                  #  SET DP MPAC TO +-POSMAX.
044899,001830: 00,2407           02630                           TC       FINALDV    +3                         
044900,001831: 00,2410           34753                           CAF      ONE                                   #  SET OVERFLOW INDICATOR AND EXIT.
044901,001832: 00,2411           54121                           TS       OVFIND                                
044902,001833: 00,2412           06064                           TC       DANZIG                                
044903,001834: 
044904,001835: 00,2413           24136                 -1        INCR     DVSIGN                                
044905,001836: 00,2414           40131        OVF+               CS       BUF        +1                         #  LOAD LOWER ORDER PART OF DIVISOR.
044906,001837: 00,2415           12402                           TCF      SGNDVOVF                              #  GET SIGN OF RESULT.
044907,001838: 
044908,001839: 00,2416           00006        BUF-               EXTEND                                         #  IF BUF IS NEGATIVE, COMPLEMENT IT AND
044909,001840: 00,2417           40131                           DCS      BUF                                   #  MAINTAIN DVSIGN FOR FINAL QUOTIENT SIGN.
044910,001841: 00,2420           52131                           DXCH     BUF                                   
044911,001842: 00,2421           24136                           INCR     DVSIGN                                #  NOW -0.
044912,001843: 

Page 1049

044914,001845: 00,2422           10154        BUF+               CCS      MPAC                                  #  FORCE MPAC POSITIVE, CHECKING FOR ZERO
044915,001846: 00,2423           12437                           TCF      MPAC+                                 #  DIVIDEND IN THE PROCESS.
044916,001847: 00,2424           12426                           TCF      +2                                    
044917,001848: 00,2425           12433                           TCF      MPAC-                                 
044918,001849: 00,2426           10155                           CCS      MPAC       +1                         
044919,001850: 00,2427           12437                           TCF      MPAC+                                 
044920,001851: 00,2430           16064                           TCF      DANZIG                                #  EXIT IMMEDIATELY ON ZERO DIVIDEND.
044921,001852: 00,2431           12433                           TCF      MPAC-                                 
044922,001853: 00,2432           16064                           TCF      DANZIG                                
044923,001854: 
044924,001855: 00,2433           00006        MPAC-              EXTEND                                         #  FORCE MPAC POSITIVE AS BUF IN BUF-.
044925,001856: 00,2434           40155                           DCS      MPAC                                  
044926,001857: 00,2435           52155                           DXCH     MPAC                                  
044927,001858: 00,2436           24136                           INCR     DVSIGN                                #  NOW +1 OR -0.
044928,001859: 

Page 1050

044930,001861: 00,2437           40154        MPAC+              CS       MPAC                                  #  CHECK FOR DIVISION OVERFLOW. IF THE
044931,001862: 00,2440           67752                           AD       NEGONE                                #  MAJOR PART OF THE DIVIDEND IS LESS THAN
044932,001863: 00,2441           60130                           AD       BUF                                   #  THE MAJOR PART OF THE DIVISOR BY AT
044933,001864: 00,2442           10000                           CCS      A                                     #  LEAST TWO, WE CAN PROCEED IMMEDIATELY
044934,001865: 00,2443           12505                           TCF      DVNORM                                #  WITHOUT NORMALIZATION PRODUCING A DVMAX.
044935,001866: 00,2444           60001        -1/2+2             OCT      60001                                 #  USED IN SQRTSUB.
044936,001867: 
044937,001868: 00,2445           12446                           TCF      +1                                    #  IF THE ABOVE DOES NOT HOLD, FORCE SIGN
044938,001869: 00,2446           34736                           CAF      HALF                                  #  AGREEMENT IN NUMERATOR AND DENOMINATOR
044939,001870: 00,2447           60000                           DOUBLE                                         #  TO FACILITATE OVERFLOW AND NEAR-ONE
044940,001871: 00,2450           60155                           AD       MPAC       +1                         #  CHECKING.
044941,001872: 00,2451           54155                           TS       MPAC       +1                         
044942,001873: 00,2452           34755                           CAF      ZERO                                  
044943,001874: 00,2453           64733                           AD       POSMAX                                
044944,001875: 00,2454           26154                           ADS      MPAC                                  
044945,001876: 
044946,001877: 00,2455           34736                           CAF      HALF                                  #  SAME FOR BUF.
044947,001878: 00,2456           60000                           DOUBLE                                         
044948,001879: 00,2457           60131                           AD       BUF        +1                         
044949,001880: 00,2460           54131                           TS       BUF        +1                         
044950,001881: 00,2461           34755                           CAF      ZERO                                  
044951,001882: 00,2462           64733                           AD       POSMAX                                
044952,001883: 00,2463           26130                           ADS      BUF                                   
044953,001884: 
044954,001885: 00,2464           40154                           CS       MPAC                                  #  CHECK MAGNITUDE OF SIGN-CORRECTED
044955,001886: 00,2465           60130                           AD       BUF                                   #  OPERANDS.
044956,001887: 00,2466           10000                           CCS      A                                     
044957,001888: 00,2467           12505                           TCF      DVNORM                                #  DIVIDE OK - WILL NOT BECOME MAXDV CASE.
044958,001889: 00,2470           00133        LBUF2              ADRES    BUF2                                  
044959,001890: 00,2471           12405                           TCF      DVOVF                                 #  DIVISOR NOT LESS THAN DIVIDEND - OVF.
044960,001891: 
044961,001892: 00,2472           54140                           TS       MAXDVSW                               #  IF THE MAJOR PARTS OF THE DIVIDEND AND
044962,001893: 00,2473           40155                           CS       MPAC       +1                         #  DIVISOR ARE EQUAL, A SPECIAL APPROXIMA-
044963,001894: 00,2474           60131                           AD       BUF        +1                         #  TION IS USED (PROVIDED THE DIVISION IS
044964,001895: 00,2475           00006                           EXTEND                                         #  POSSIBLE, OF COURSE).
044965,001896: 00,2476           62405                           BZMF     DVOVF                                 
044966,001897: 00,2477           12505                           TCF      DVNORM                                #  IF NO OVERFLOW.
044967,001898: 

Page 1051

044969,001900: 00,2500           00006        BUFNORM            EXTEND                                         #  ADD -1 TO AUGMENT SHIFT COUNT AND SHIFT
044970,001901: 00,2501           24137                           AUG      DVNORMCT                              #  LEFT ONE PLACE.
044971,001902: 00,2502           00006                           EXTEND                                         
044972,001903: 00,2503           30131                           DCA      BUF                                   
044973,001904: 00,2504           20131                           DAS      BUF                                   
044974,001905: 
044975,001906: 00,2505           30130        DVNORM             CA       BUF                                   #  SEE IF DIVISOR NORMALIZED YET.
044976,001907: 00,2506           60000                           DOUBLE                                         
044977,001908: 00,2507           54000                           OVSK                                           
044978,001909: 00,2510           12500                           TCF      BUFNORM                               #  NO - SHIFT LEFT ONE AND TRY AGAIN.
044979,001910: 
044980,001911: 00,2511           52155                           DXCH     MPAC                                  #  CALL DIVIDEND NORMALIZATION SEQUENCE
044981,001912: 00,2512           50137                           INDEX    DVNORMCT                              #  PRIOR TO DOING THE DIVIDE.
044982,001913: 00,2513           02565                           TC       MAXTEST                               
044983,001914: 
044984,001915: 00,2514           54156                           TS       MPAC       +2                         #  RETURNS WITH DIVISION DONE AND C(A) = 0.
044985,001916: 00,2515           16064                           TCF      DANZIG                                
044986,001917: 
044987,001918: 00,2516           10000        BUFPOS             CCS      A                                     
044988,001919: 00,2517           12422                           TCF      BUF+                                  #  TO BUF+ IF BUF IS GREATER THAN +1.
044989,001920: 
044990,001921: 00,2520           40131                           CS       BUF        +1                         #  IF BUF IS +1, FORCING SIGN AGREEMENT
044991,001922: 00,2521           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
044992,001923: 00,2522           62422                           BZMF     BUF+                                  #  BRANCH IF SIGNS AGREE.
044993,001924: 
044994,001925: 00,2523           34736                           CA       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
044995,001926: 00,2524           60000                 +6        DOUBLE                                         
044996,001927: 00,2525           26131                           ADS      BUF        +1                         
044997,001928: 00,2526           34755                           CA       ZERO                                  
044998,001929: 00,2527           54130                           TS       BUF                                   
044999,001930: 00,2530           12363                           TCF      BUFZERO                               
045000,001931: 
045001,001932: 00,2531           10000        BUFNEG             CCS      A                                     
045002,001933: 00,2532           12416                           TCF      BUF-                                  #  TO BUF- IF BUF IS LESS THAN -1.
045003,001934: 
045004,001935: 00,2533           30131                           CA       BUF        +1                         #  IF BUF IS -1, FORCING SIGN AGREEMENT
045005,001936: 00,2534           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
045006,001937: 00,2535           62416                           BZMF     BUF-                                  #  BRANCH IF SIGNS AGREE.
045007,001938: 
045008,001939: 00,2536           44736                           CS       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
045009,001940: 00,2537           12524                           TCF      BUFPOS     +6                         
045010,001941: 

Page 1052

045012,001943:                                                                                                  #           THE FOLLOWING ARE PROLOGUES TO SHIFT THE DIVIDEND ARRIVING IN A AND L BEFORE THE DIVIDE.
045013,001944: 
045014,001945: 00,2540           22021                 -21D      LXCH     SR                                    #  SPECIAL PROLOGUE FOR UNIT WHEN THE
045015,001946: 00,2541           00006                           EXTEND                                         #  LENGTH OF THE ARGUMENT WAS NOT LESS THAN
045016,001947: 00,2542           74736                           MP       HALF                                  #  .5. IN THIS CASE, EACH COMPONENT MUST BE
045017,001948: 00,2543           56001                           XCH      L                                     #  SHIFTED RIGHT ONE TO PRODUCE A HALF-UNIT
045018,001949: 00,2544           60021                           AD       SR                                    #  VECTOR.
045019,001950: 00,2545           56001                           XCH      L                                     
045020,001951: 00,2546           12571                           TCF      GENDDV     +1                         #  WITH DP DIVIDEND IN A,L.
045021,001952: 
045022,001953: 00,2547           20001                           DDOUBL                                         #  PROLOGUE WHICH NORMALIZES THE DIVIDEND
045023,001954: 00,2550           20001                           DDOUBL                                         #  WHEN IT IS KNOWN THAT NO DIVISION
045024,001955: 00,2551           20001                           DDOUBL                                         #  OVERFLOW WILL OCCUR.
045025,001956: 00,2552           20001                           DDOUBL                                         
045026,001957: 00,2553           20001                           DDOUBL                                         
045027,001958: 00,2554           20001                           DDOUBL                                         
045028,001959: 00,2555           20001                           DDOUBL                                         
045029,001960: 00,2556           20001                           DDOUBL                                         
045030,001961: 00,2557           20001                           DDOUBL                                         
045031,001962: 00,2560           20001                           DDOUBL                                         
045032,001963: 00,2561           20001                           DDOUBL                                         
045033,001964: 00,2562           20001                           DDOUBL                                         
045034,001965: 00,2563           20001                           DDOUBL                                         
045035,001966: 00,2564           52155                           DXCH     MPAC                                  
045036,001967: 
045037,001968: 00,2565           10140        MAXTEST            CCS      MAXDVSW                               #  0 IF MAJORS MIGHT BE =, -1 OTHERWISE.
045038,001969: 00,2566           06552        BIASHI             DEC      .4192      B-1                        #  SQRT CONSTANTS
045039,001970: 
045040,001971: 00,2567           12642                           TCF      MAXDV                                 #  CHECK TO SEE IF THEY ARE NOW EQUAL.
045041,001972: 

Page 1053

045043,001974:                                                                                                  #           THE FOLLOWING IS A GENERAL PURPOSE DOUBLE PRECISION DIVISION ROUTINE. IT DIVIDES MPAC BY BUF AND LEAVES
045044,001975:                                                                                                  #  THE RESULT IN MPAC. THE FOLLOWING CONDITIONS MUST BE SATISFIED:
045045,001976: 
045046,001977:                                                                                                  #           1.  THE DIVISOR (BUF) MUST BE POSITIVE AND NOT LESS THAN .5.
045047,001978: 
045048,001979:                                                                                                  #           2.  THE DIVIDEND (MPAC) MUST BE POSITIVE WITH THE MAJOR PART OF MPAC STRICTLY LESS THAN THAT OF BUF
045049,001980:                                                                                                  #  (A SPECIAL APPROXIMATION, MAXDV, IS USED WHEN THE MAJOR PARTS ARE EQUAL).
045050,001981: 
045051,001982:                                                                                                  #           UNDERSTANDING THAT A/B = Q + S(R/B) WHERE S = 2(-14) AND Q AND R ARE QUOTIENT AND REMAINDER, RESPEC-
045052,001983:                                                                                                  #  TIVELY, THE FOLLOWING APPROXIMATION IS OBTAINED BY MULTIPLYING ABOVE AND BELOW BY C - SD AND NEGLECTING TERMS OF
045053,001984:                                                                                                  #  ORDER S-SQUARED (POSSIBLY INTRODUCING ERROR INTO THE LOW TWO BITS OF THE RESULT). SIGN AGREEMENT IS UNNECESSARY.
045054,001985: 
045055,001986:                                                                                                  #           A + SB .      (R - QD)                                             A + SB
045056,001987:                                                                                                  #           ------ = Q + S(------) WHERE Q AND R ARE QUOTIENT AND REMAINDER OF ------ RESPECTIVELY.
045057,001988:                                                                                                  #           C + SD        (  C   )                                               C
045058,001989: 
045059,001990: 
045060,001991: 00,2570           52155        GENDDV             DXCH     MPAC                                  #  WE NEED A AND B ONLY FOR FIRST DV.
045061,001992: 00,2571           00006                 +1        EXTEND                                         #  (SPECIAL UNIT PROLOGUE ENTERS HERE).
045062,001993: 00,2572           10130                           DV       BUF                                   #  A NOW CONTAINS Q AND L, R.
045063,001994: 00,2573           52155                           DXCH     MPAC                                  
045064,001995: 
045065,001996: 00,2574           40154                           CS       MPAC                                  #  FORM DIVIDEND FOR MINOR PART OF RESULT.
045066,001997: 00,2575           00006                           EXTEND                                         
045067,001998: 00,2576           70131                           MP       BUF        +1                         
045068,001999: 00,2577           60155                           AD       MPAC       +1                         #  OVERFLOW AT THIS POINT IS POSITIVE SINCE
045069,002000: 00,2600           54000                           OVSK                                           #  R IS POSITIVE IN EVERY CASE.
045070,002001: 00,2601           12606                           TCF      +5                                    
045071,002002: 
045072,002003: 00,2602           00006                           EXTEND                                         #  OVERFLOW CAN BE REMOVED BY SUBTRACTING C
045073,002004: 00,2603           60130                           SU       BUF                                   #  (BUF) ONCE SINCE R IS ALWAYS LESS THAN C
045074,002005: 00,2604           24154                           INCR     MPAC                                  #  IN THIS CASE. INCR COMPENSATES SUBTRACT.
045075,002006: 00,2605           12610                           TCF      +DOWN                                 #  (SINCE C(A) IS STILL POSITIVE).
045076,002007: 
045077,002008: 00,2606           00006                 +5        EXTEND                                         #  C(A) CAN BE MADE LESS THAN C IN MAGNI-
045078,002009: 00,2607           62620                           BZMF     -UP                                   #  TUDE BY DIMINISHING IT BY C (SINCE C IS
045079,002010:                                                                                                  #  NOT LESS THAN .5) UNLESS C(A) = 0.
045080,002011: 

Page 1054

045082,002013: 00,2610           00006        +DOWN              EXTEND                                         
045083,002014: 00,2611           60130                           SU       BUF                                   #  IF POSITIVE, REDUCE ONLY IF NECESSARY
045084,002015: 00,2612           00006                           EXTEND                                         #  SINCE THE COMPENSATING INCR MIGHT CAUSE
045085,002016: 00,2613           12616                           BZF      +3                                    #  OVERFLOW.
045086,002017: 00,2614           00006                           EXTEND                                         #  DONT SUBTRACT UNLESS RESULT IS POSITIVE
045087,002018: 00,2615           62624                           BZMF     ENDMAXDV                              #  OR ZERO.
045088,002019: 
045089,002020: 00,2616           24154                 +3        INCR     MPAC                                  #  KEEP SUBTRACT HERE AND COMPENSATE.
045090,002021: 00,2617           12625                           TCF      FINALDV                               
045091,002022: 
045092,002023: 00,2620           00006        -UP                EXTEND                                         #  IF ZERO, SET MINOR PART OF RESULT TO
045093,002024: 00,2621           12630                           BZF      FINALDV    +3                         #  ZERO.
045094,002025: 
045095,002026: 00,2622           00006                           EXTEND                                         #  IF NEGATIVE, ADD C TO A, SUBTRACTING ONE
045096,002027: 00,2623           26154                           DIM      MPAC                                  #  TO COMPENSATE. DIM IS OK HERE SINCE THE
045097,002028: 00,2624           60130        ENDMAXDV           AD       BUF                                   #  MAJOR PART NEVER GOES NEGATIVE.
045098,002029: 

Page 1055

045100,002031: 00,2625           22007        FINALDV            ZL                                             #  DO DV TO OBTAIN MINOR PART OF RESULT.
045101,002032: 00,2626           00006                           EXTEND                                         
045102,002033: 00,2627           10130                           DV       BUF                                   
045103,002034: 00,2630           54155                 +3        TS       MPAC       +1                         
045104,002035: 
045105,002036: 00,2631           10136                           CCS      DVSIGN                                #  LEAVE RESULT POSITIVE UNLESS C(DVSIGN)=
045106,002037: 00,2632           00002                           TC       Q                                     #  -0.
045107,002038: 00,2633           00002                           TC       Q                                     
045108,002039: 00,2634           00002                           TC       Q                                     
045109,002040: 
045110,002041: 00,2635           00006                           EXTEND                                         
045111,002042: 00,2636           40155                           DCS      MPAC                                  
045112,002043: 00,2637           52155                           DXCH     MPAC                                  
045113,002044: 00,2640           34755                           CAF      ZERO                                  #  SO WE ALWAYS RETURN WITH C(A) = 0.
045114,002045: 00,2641           00002                           TC       Q                                     
045115,002046: 

Page 1056

045117,002048:                                                                                                  #           IF THE MAJOR PARTS OF THE DIVISOR AND DIVIDEND ARE EQUAL, BUT THE MINOR PARTS ARE SUCH THAT THE
045118,002049:                                                                                                  #  DIVIDEND IS STRICTLY LESS THAN THE DIVISOR IN MAGNITUDE, THE FOLLOWING APPROXIMATION IS USED. THE ASSUMPTIONS
045119,002050:                                                                                                  #  ARE THE SAME AS THE GENERAL ROUTINE WITH THE ADDITION THAT SIGN AGREEMENT IS NECESSARY (B, C, & D POSITIVE).
045120,002051: 
045121,002052:                                                                                                  #                  C + SB .          (C + B - D)
045122,002053:                                                                                                  #                  ------ = 37777 + S(---------)
045123,002054:                                                                                                  #                  C + SD            (    C    )
045124,002055: 
045125,002056:                                                                                                  #           THE DIVISION MAY BE PERFORMED IMMEDIATELY SINCE B IS STRICTLY LESS THAN D AND C IS NOT LESS THAN .5.
045126,002057: 
045127,002058: 00,2642           40154        MAXDV              CS       MPAC                                  #  SEE IF MAXDV CASE STILL HOLDS AFTER
045128,002059: 00,2643           60130                           AD       BUF                                   #  NORMALIZATION.
045129,002060: 00,2644           00006                           EXTEND                                         
045130,002061: 00,2645           12647                           BZF      +2                                    
045131,002062: 00,2646           12570                           TCF      GENDDV                                #  MPAC NOW LESS THAN BUF - DIVIDE AS USUAL
045132,002063: 
045133,002064: 00,2647           34733                 +2        CAF      POSMAX                                #  SET MAJOR PART OF RESULT.
045134,002065: 00,2650           54154                           TS       MPAC                                  
045135,002066: 
045136,002067: 00,2651           40131                           CS       BUF        +1                         #  FORM DIVIDEND OF MINOR PART OF RESULT.
045137,002068: 00,2652           60155                           AD       MPAC       +1                         
045138,002069: 00,2653           12624                           TCF      ENDMAXDV                              #  GO ADD C AND DO DIVIDE, ATTACHING SIGN
045139,002070:                                                                                                  #  BEFORE EXITING.
045140,002071: 

Page 1057

045142,002073:                                                                                                  #           VECTOR DIVIDED BY SCALAR, V/SC, IS EXECUTED HERE. THE VECTOR IS NOW IN MPAC WITH SCALAR IN BUF.
045143,002074: 
045144,002075: 00,2654           44753        V/SC2              CS       ONE                                   #  INITIALIZE DIVIDEND NORMALIZATION COUNT
045145,002076: 00,2655           54137                           TS       DVNORMCT                              #  AND DIVISION SIGN REGISTER.
045146,002077: 00,2656           54127                           TS       VBUF       +5                         
045147,002078: 
045148,002079: 00,2657           03010                           TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
045149,002080: 
045150,002081: 00,2660           52131                           DXCH     BUF                                   
045151,002082: 00,2661           07547                           TC       ALSIGNAG                              #  SIGN AGREE BUF
045152,002083: 00,2662           52131                           DXCH     BUF                                   
045153,002084: 00,2663           10130                           CCS      BUF                                   #  FORCE DIVISOR POSITIVE WITH MAJOR PART
045154,002085: 00,2664           12721                           TCF      /BUF+                                 #  NON-ZERO (IF POSSIBLE).
045155,002086: 00,2665           12667                           TCF      +2                                    
045156,002087: 00,2666           12715                           TCF      /BUF-                                 
045157,002088: 
045158,002089: 00,2667           56131                           XCH      BUF        +1                         #  SHIFT VECTOR AND SCALAR LEFT 14.
045159,002090: 00,2670           56130                           XCH      BUF                                   
045160,002091: 00,2671           56155                           XCH      MPAC       +1                         
045161,002092: 00,2672           56154                           XCH      MPAC                                  
045162,002093: 00,2673           00006                           EXTEND                                         #  CHECK FOR OVERFLOW IN EACH CASE.
045163,002094: 00,2674           12676                           BZF      +2                                    
045164,002095: 00,2675           12405                           TCF      DVOVF                                 
045165,002096: 
045166,002097: 00,2676           56160                           XCH      MPAC       +4                         
045167,002098: 00,2677           56157                           XCH      MPAC       +3                         
045168,002099: 00,2700           00006                           EXTEND                                         
045169,002100: 00,2701           12703                           BZF      +2                                    
045170,002101: 00,2702           12405                           TCF      DVOVF                                 
045171,002102: 
045172,002103: 00,2703           56162                           XCH      MPAC       +6                         
045173,002104: 00,2704           56161                           XCH      MPAC       +5                         
045174,002105: 00,2705           00006                           EXTEND                                         
045175,002106: 00,2706           12710                           BZF      +2                                    
045176,002107: 00,2707           12405                           TCF      DVOVF                                 
045177,002108: 
045178,002109: 00,2710           10130                           CCS      BUF                                   
045179,002110: 00,2711           12721                           TCF      /BUF+                                 
045180,002111: 00,2712           12405                           TCF      DVOVF                                 #  ZERO DIVISOR - OVERFLOW.
045181,002112: 00,2713           12715                           TCF      /BUF-                                 
045182,002113: 00,2714           12405                           TCF      DVOVF                                 
045183,002114: 
045184,002115: 00,2715           00006        /BUF-              EXTEND                                         #  ON NEGATIVE, COMPLEMENT BUF AND MAINTAIN
045185,002116: 00,2716           40131                           DCS      BUF                                   #  DVSIGN IN VBUF +5.
045186,002117: 00,2717           52131                           DXCH     BUF                                   
045187,002118: 00,2720           24127                           INCR     VBUF       +5                         
045188,002119: 

Page 1058

045190,002121: 00,2721           00006        /BUF+              EXTEND                                         
045191,002122: 00,2722           30131                           DCA      BUF                                   #  LEAVE ABS(ORIG DIVISOR) IN BUF2
045192,002123: 00,2723           52134                           DXCH     BUF2                                  #  FOR OVERFLOW TESTING
045193,002124: 00,2724           12732                           TCF      /NORM                                 #  NORMALIZE DIVISOR IN BUF.
045194,002125: 
045195,002126: 00,2725           00006        /NORM2             EXTEND                                         #  IF LESS THAN .5, AUGMENT DVNORMCT AND
045196,002127: 00,2726           24137                           AUG      DVNORMCT                              #  DOUBLE DIVISOR.
045197,002128: 00,2727           00006                           EXTEND                                         
045198,002129: 00,2730           30131                           DCA      BUF                                   
045199,002130: 00,2731           20131                           DAS      BUF                                   
045200,002131: 
045201,002132: 00,2732           30130        /NORM              CA       BUF                                   #  SEE IF DIVISOR NORMALIZED.
045202,002133: 00,2733           60000                           DOUBLE                                         
045203,002134: 00,2734           54000                           OVSK                                           
045204,002135: 00,2735           12725                           TCF      /NORM2                                #  DOUBLE AND TRY AGAIN IF NOT.
045205,002136: 
045206,002137: 00,2736           02750                           TC       V/SCDV                                #  DO X COMPONENT DIVIDE.
045207,002138: 00,2737           52160                           DXCH     MPAC       +3                         #  SUPPLY ARGUMENTS IN USUAL SEQUENCE.
045208,002139: 00,2740           52155                           DXCH     MPAC                                  
045209,002140: 00,2741           52160                           DXCH     MPAC       +3                         
045210,002141: 
045211,002142: 00,2742           02750                           TC       V/SCDV                                #  Y COMPONENT.
045212,002143: 00,2743           52162                           DXCH     MPAC       +5                         
045213,002144: 00,2744           52155                           DXCH     MPAC                                  
045214,002145: 00,2745           52162                           DXCH     MPAC       +5                         
045215,002146: 
045216,002147: 00,2746           02750                           TC       V/SCDV                                #  Z COMPONENT.
045217,002148: 00,2747           17423                           TCF      VROTATEX                              #  GO RE-ARRANGE COMPONENTS BEFORE EXIT.
045218,002149: 

Page 1059

045220,002151:                                                                                                  #           SUBROUTINE USED BY V/SC TO DIVIDE VECTOR COMPONENT IN MPAC,+1 BY THE SCALAR GIVEN IN BUF.
045221,002152: 
045222,002153: 00,2750           30127        V/SCDV             CA       VBUF       +5                         #  REFLECTS SIGN OF SCALAR.
045223,002154: 00,2751           54136                           TS       DVSIGN                                
045224,002155: 
045225,002156: 00,2752           10154                           CCS      MPAC                                  #  FORCE MPAC POSITIVE, EXITING ON ZERO.
045226,002157: 00,2753           12767                           TCF      /MPAC+                                
045227,002158: 00,2754           12756                           TCF      +2                                    
045228,002159: 00,2755           12763                           TCF      /MPAC-                                
045229,002160: 
045230,002161: 00,2756           10155                           CCS      MPAC       +1                         
045231,002162: 00,2757           12767                           TCF      /MPAC+                                
045232,002163: 00,2760           00002                           TC       Q                                     
045233,002164: 00,2761           12763                           TCF      /MPAC-                                
045234,002165: 00,2762           00002                           TC       Q                                     
045235,002166: 
045236,002167: 00,2763           00006        /MPAC-             EXTEND                                         #  USUAL COMPLEMENTING AND SETTING OF SIGN.
045237,002168: 00,2764           40155                           DCS      MPAC                                  
045238,002169: 00,2765           52155                           DXCH     MPAC                                  
045239,002170: 00,2766           24136                           INCR     DVSIGN                                
045240,002171: 
045241,002172: 00,2767           44753        /MPAC+             CS       ONE                                   #  INITIALIZE NEAR-ONE SWITCH.
045242,002173: 00,2770           54140                           TS       MAXDVSW                               
045243,002174: 
045244,002175: 00,2771           40154                           CS       MPAC                                  #  CHECK POSSIBLE OVERFLOW.
045245,002176: 00,2772           60133                           AD       BUF2                                  #  UNNORMALIZED INPUT DIVISOR.
045246,002177: 00,2773           10000                           CCS      A                                     
045247,002178: 00,2774           13004                           TCF      DDVCALL                               #  NOT NEAR-ONE
045248,002179: 00,2775           12777                           TCF      +2                                    #  +0 IS JUST POSSIBLE
045249,002180: 00,2776           12405                           TCF      DVOVF                                 #  NO HOPE
045250,002181: 00,2777           54140                           TS       MAXDVSW                               #  SIGNAL POSSIBLE NEAR-ONE CASE
045251,002182: 00,3000           40155                           CS       MPAC       +1                         #  SEE IF DIVISION CAN BE DONE
045252,002183: 00,3001           60134                           AD       BUF2       +1                         
045253,002184: 00,3002           00006                           EXTEND                                         
045254,002185: 00,3003           62405                           BZMF     DVOVF                                 
045255,002186: 
045256,002187: 00,3004           52155        DDVCALL            DXCH     MPAC                                  #  CALL PRE-DIVIDE NORMALIZATION.
045257,002188: 00,3005           50137                           INDEX    DVNORMCT                              
045258,002189: 00,3006           12565                           TCF      MAXTEST                               
045259,002190: 

Page 1060

045261,002192: 00,3007           32506        SLOPELO            DEC      .8324                                 
045262,002193: 
045263,002194: 00,3010           56002        VECAGREE           XCH      Q                                     #  SAVE Q IN A
045264,002195: 00,3011           52155                           DXCH     MPAC                                  
045265,002196: 00,3012           07547                           TC       ALSIGNAG                              #  SIGNAGREE MPAC
045266,002197: 00,3013           52155                           DXCH     MPAC                                  
045267,002198: 00,3014           52160                           DXCH     MPAC       +3                         
045268,002199: 00,3015           07547                           TC       ALSIGNAG                              #  SIGN AGREE MPAC +3
045269,002200: 00,3016           52160                           DXCH     MPAC       +3                         
045270,002201: 00,3017           52162                           DXCH     MPAC       +5                         
045271,002202: 00,3020           07547                           TC       ALSIGNAG                              #  SIGNAGREE MPAC +5
045272,002203: 00,3021           52162                           DXCH     MPAC       +5                         
045273,002204: 00,3022           00000                           TC       A                                     
045274,002205: 

Page 1061

045276,002207:                                                                                                  #           THE FOLLOWING ROUTINE EXECUTES THE UNIT INSTRUCTION, WHICH TAKES THE UNIT OF THE VECTOR IN MPAC.
045277,002208: 
045278,002209: 00,3023           03010        UNIT               TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
045279,002210: 00,3024           07535                           TC       MPACVBUF                              #  SAVE ARGUMENT IN VBUF
045280,002211: 00,3025           34755                           CAF      ZERO                                  #  MUST SENSE OVERFLOW IN FOLLOWING DOT.
045281,002212: 00,3026           56121                           XCH      OVFIND                                
045282,002213: 00,3027           54141                           TS       TEM1                                  
045283,002214: 00,3030           03317                           TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045284,002215: 00,3031           30141                           CA       TEM1                                  
045285,002216: 00,3032           56121                           XCH      OVFIND                                
045286,002217: 00,3033           00006                           EXTEND                                         
045287,002218: 00,3034           13036                           BZF      +2                                    
045288,002219: 00,3035           12405                           TCF      DVOVF                                 
045289,002220: 00,3036           00006                           EXTEND                                         
045290,002221: 00,3037           30155                           DCA      MPAC                                  #  LEAVE THE SQUARE OF THE LENGTH OF THE
045291,002222: 00,3040           50120                           INDEX    FIXLOC                                #  ARGUMENT IN LVSQUARE.
045292,002223: 00,3041           52043                           DXCH     LVSQUARE                              
045293,002224: 
045294,002225: 00,3042           03343                           TC       SQRTSUB                               #  GO TAKE THE NORMALIZED SQUARE ROOT.
045295,002226: 
045296,002227: 00,3043           10154                           CCS      MPAC                                  #  CHECK FOR UNIT OVERFLOW.
045297,002228: 00,3044           13051                           TCF      +5                                    #  MPAC IS NOT LESS THAN .5 UNLESS
045298,002229: 00,3045           54001                           TS       L                                     
045299,002230: 00,3046           50120                           INDEX    FIXLOC                                
045300,002231: 00,3047           52045                           DXCH     LV                                    
045301,002232: 00,3050           12405                           TCF      DVOVF                                 #  INPUT TO SQRTSUB WAS 0.
045302,002233: 
045303,002234: 00,3051           44317                           CS       FOURTEEN                              #  SEE IF THE INPUT WAS SO SMALL THE THE
045304,002235: 00,3052           60135                           AD       MPTEMP                                #  FIRST TWO REGISTERS OF THE SQUARE WERE 0
045305,002236: 00,3053           10000                           CCS      A                                     
045306,002237: 00,3054           40000                           COM                                            #  IF SO, SAVE THE NEGATIVE OF THE SHIFT
045307,002238: 00,3055           13133                           TCF      SMALL                                 #  COUNT -15D.
045308,002239: 
045309,002240: 00,3056           13065                           TCF      LARGE                                 #  (THIS IS USUALLY THE CASE.)
045310,002241: 
045311,002242: 00,3057           44761                           CS       THIRTEEN                              #  IF THE SHIFT COUNT WAS EXACTLY 14, SET
045312,002243: 00,3060           54135                           TS       MPTEMP                                #  THE PRE-DIVIDE NORM COUNT TO -13D.
045313,002244: 
045314,002245: 00,3061           30154                           CA       MPAC                                  #  SHIFT THE LENGTH RIGHT 14 BEFORE STORING
045315,002246: 00,3062           54001        SMALL2             TS       L                                     #  (SMALL EXITS TO THIS POINT).
045316,002247: 00,3063           34755                           CAF      ZERO                                  
045317,002248: 00,3064           13112                           TCF      LARGE2                                #  GO TO STORE LENGTH AND PROCEED.
045318,002249: 
045319,002250: 00,3065           10135        LARGE              CCS      MPTEMP                                #  MOST ALL CASES COME HERE.
045320,002251: 00,3066           13074                           TCF      LARGE3                                #  SEE IF NO NORMALIZATION WAS REQUIRED BY
045321,002252: 
045322,002253: 00,3067           42024                           CS       SRDDV                                 #  SQRT, AND IF SO, SET UP FOR A SHIFT
045323,002254: 00,3070           54135                           TS       MPTEMP                                #  RIGHT 1 BEFORE DIVIDING TO PRODUCE
045324,002255: 00,3071           00006                           EXTEND                                         #  THE DESIRED HALF UNIT VECTOR.
045325,002256: 00,3072           30155                           DCA      MPAC                                  

Page 1062

045327,002258: 00,3073           13112                           TCF      LARGE2                                
045328,002259: 

Page 1063

045330,002261: 00,3074           40000        LARGE3             COM                                            #  LEAVE NEGATIVE OF SHIFT COUNT-1 FOR
045331,002262: 00,3075           54135                           TS       MPTEMP                                #  PREDIVIDE LEFT SHIFT.
045332,002263: 
045333,002264: 00,3076           40000                           COM                                            #  PICK UP REQUIRED SHIFTING BIT TO UNNORM-
045334,002265: 00,3077           50000                           INDEX    A                                     #  ALIZE THE SQRT RESULT.
045335,002266: 00,3100           34736                           CAF      BIT14                                 
045336,002267: 00,3101           54130                           TS       BUF                                   
045337,002268: 00,3102           00006                           EXTEND                                         
045338,002269: 00,3103           70155                           MP       MPAC       +1                         
045339,002270: 00,3104           56130                           XCH      BUF                                   
045340,002271: 00,3105           00006                           EXTEND                                         #  (UNNORMALIZE THE SQRT FOR LV).
045341,002272: 00,3106           70154                           MP       MPAC                                  
045342,002273: 00,3107           56001                           XCH      L                                     
045343,002274: 00,3110           60130                           AD       BUF                                   
045344,002275: 00,3111           56001                           XCH      L                                     
045345,002276: 
045346,002277: 00,3112           50120        LARGE2             INDEX    FIXLOC                                
045347,002278: 00,3113           52045                           DXCH     LV                                    #  LENGTH NOW STORED IN WORK AREA.
045348,002279: 
045349,002280: 00,3114           44753                           CS       ONE                                   
045350,002281: 00,3115           54140                           TS       MAXDVSW                               #  NO MAXDV CASES IN UNIT.
045351,002282: 
045352,002283: 00,3116           52123                           DXCH     VBUF                                  #  PREPARE X COMPONENT FOR DIVIDE, SETTING
045353,002284: 00,3117           52155                           DXCH     MPAC                                  #  LENGTH OF VECTOR AS DIVISOR IN BUF.
045354,002285: 00,3120           52131                           DXCH     BUF                                   
045355,002286: 00,3121           03151                           TC       UNITDV                                
045356,002287: 
045357,002288: 00,3122           52125                           DXCH     VBUF       +2                         #  DO Y AND Z IN USUAL FASHION SO WE CAN
045358,002289: 00,3123           52155                           DXCH     MPAC                                  #  EXIT THROUGH VROTATEX.
045359,002290: 00,3124           52160                           DXCH     MPAC       +3                         
045360,002291: 00,3125           03151                           TC       UNITDV                                
045361,002292: 
045362,002293: 00,3126           52127                           DXCH     VBUF       +4                         
045363,002294: 00,3127           52155                           DXCH     MPAC                                  
045364,002295: 00,3130           52162                           DXCH     MPAC       +5                         
045365,002296: 00,3131           03151                           TC       UNITDV                                
045366,002297: 00,3132           17423                           TCF      VROTATEX                              #  AND EXIT.
045367,002298: 

Page 1064

045369,002300:                                                                                                  #           IF THE LENGTH OF THE ARGUMENT VECTOR WAS LESS THAN 2(-28), EACH COMPONENT MUST BE SHIFTED LEFT AT LEAST
045370,002301:                                                                                                  #  14 PLACES BEFORE THE DIVIDE. NOTE THAT IN THIS CASE, THE MAJOR PART OF EACH COMPONENT IS ZERO.
045371,002302: 
045372,002303: 00,3133           54135        SMALL              TS       MPTEMP                                #  NEGATIVE OF PRE-DIVIDE SHIFT COUNT.
045373,002304: 
045374,002305: 00,3134           34755                           CAF      ZERO                                  #  SHIFT EACH COMPONENT LEFT 14.
045375,002306: 00,3135           56123                           XCH      VBUF       +1                         
045376,002307: 00,3136           56122                           XCH      VBUF                                  
045377,002308: 00,3137           56125                           XCH      VBUF       +3                         
045378,002309: 00,3140           56124                           XCH      VBUF       +2                         
045379,002310: 00,3141           56127                           XCH      VBUF       +5                         
045380,002311: 00,3142           56126                           XCH      VBUF       +4                         
045381,002312: 
045382,002313: 00,3143           40135                           CS       MPTEMP                                
045383,002314: 00,3144           50000                           INDEX    A                                     
045384,002315: 00,3145           34736                           CAF      BIT14                                 
045385,002316: 00,3146           00006                           EXTEND                                         
045386,002317: 00,3147           70154                           MP       MPAC                                  
045387,002318: 00,3150           13062                           TCF      SMALL2                                
045388,002319: 
045389,002320: 00,3151     4761               THIRTEEN           =        OCT15                                 
045390,002321: 00,3151     4317               FOURTEEN           =        OCT16                                 
045391,002322: 00,3151     4317               OCT16              =        R1D1                                  
045392,002323: 

Page 1065

045394,002325:                                                                                                  #           THE FOLLOWING ROUTINE SETS UP THE CALL TO THE DIVIDE ROUTINES.
045395,002326: 
045396,002327: 00,3151           10154        UNITDV             CCS      MPAC                                  #  FORCE MPAC POSITIVE IF POSSIBLE, SETTING
045397,002328: 00,3152           13170                           TCF      UMPAC+                                #  DVSIGN ACCORDING TO THE SIGN OF MPAC
045398,002329: 00,3153           13155                           TCF      +2                                    #  SINCE THE DIVISOR IS ALWAYS POSITIVE
045399,002330: 00,3154           13162                           TCF      UMPAC-                                #  HERE.
045400,002331: 
045401,002332: 00,3155           10155                           CCS      MPAC       +1                         
045402,002333: 00,3156           13170                           TCF      UMPAC+                                
045403,002334: 00,3157           00002                           TC       Q                                     #  EXIT IMMEDIATELY ON ZERO.
045404,002335: 00,3160           13162                           TCF      UMPAC-                                
045405,002336: 00,3161           00002                           TC       Q                                     
045406,002337: 
045407,002338: 00,3162           44755        UMPAC-             CS       ZERO                                  #  IF NEGATIVE, SET -0 IN DVSIGN FOR FINAL
045408,002339: 00,3163           54136                           TS       DVSIGN                                #  COMPLEMENT.
045409,002340: 00,3164           00006                           EXTEND                                         
045410,002341: 00,3165           40155                           DCS      MPAC                                  #  PICK UP ABSOLUTE VALUE OF ARG AND JUMP.
045411,002342: 00,3166           50135                           INDEX    MPTEMP                                
045412,002343: 00,3167           12564                           TCF      MAXTEST    -1                         
045413,002344: 
045414,002345: 00,3170           54136        UMPAC+             TS       DVSIGN                                #  SET DVSIGN FOR POSITIVE QUOTIENT.
045415,002346: 00,3171           52155                           DXCH     MPAC                                  
045416,002347: 00,3172           50135                           INDEX    MPTEMP                                
045417,002348: 00,3173           12564                           TCF      MAXTEST    -1                         
045418,002349: 

Page 1066

045420,002351:                                                                                                  #           MISCELLANEOUS UNARY OPERATIONS.
045421,002352: 
045422,002353: 00,3174           03300        DSQ                TC       DSQSUB                                #  SQUARE THE DP CONTENTS OF MPAC.
045423,002354: 00,3175           16064                           TCF      DANZIG                                
045424,002355: 
045425,002356: 00,3176           10163        ABVALABS           CCS      MODE                                  #  ABVAL OR ABS INSTRUCTION.
045426,002357: 00,3177           13226                           TCF      ABS                                   #  DO ABS ON SCALAR.
045427,002358: 00,3200           13226                           TCF      ABS                                   
045428,002359: 
045429,002360: 00,3201           03317        ABVAL              TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045430,002361: 00,3202           22163                           LXCH     MODE                                  #  MODE IS NOW DP (L ZERO AFTER DAS).
045431,002362: 
045432,002363: 00,3203           00006                           EXTEND                                         #  STORE SQUARE OF LENGTH IN WORK AREA.
045433,002364: 00,3204           30155                           DCA      MPAC                                  
045434,002365: 00,3205           50120                           INDEX    FIXLOC                                
045435,002366: 00,3206           52043                           DXCH     LVSQUARE                              
045436,002367: 

Page 1067

045438,002369:                                                                                                  #  PROGRAM DESCRIPTION- SUBROUTINE SQRT
045439,002370:                                                                                                  #  FUNCTIONAL DESCRIPTION-DOUBLE PRECISION SQUARE ROOT ROUTINE
045440,002371:                                                                                                  #      THIS PROGRAM TAKES THE SQUARE ROOT OF THE 27 OR 28 MOST SIGNIFICANT BITS IN THE TRIPLE PRECISION SET OF
045441,002372:                                                                                                  #      NUMBERS-MPAC,MPAC+1,AND MPAC+2.  THE ROOT IS RETURNED DOUBLE        PRECISION IN MPAC AND MPAC+1.
045442,002373:                                                                                                  #  WARNING- THIS SUBROUTINE USES A TRIPLE PRECISION INPUT. THE PROGRAMMER  MUST ASSURE THE CONTENTS OF MPAC+2
045443,002374:                                                                                                  #      ESPECIALLY IF THE CONTENTS OF MPAC IS SMALL OR ZERO.  FOR DETAILS SEE STG MEMO NO.949.
045444,002375:                                                                                                  #  CALLING SEQUENCE- IN INTERPRETIVE MODE I.E., FOLLOWING TC  INTPRET,SQRT   NO ADDRESS IS ALLOWED
045445,002376:                                                                                                  #  INPUT SCALING  THE BINARY POINT IS ASSUMED TO THE RIGHT OF BIT 15. THE  ANSWER IS RETURNED WITH THE SAME SCALING
045446,002377:                                                                                                  #  SUBROUTINES- GENSCR,MPACSHR, SQRTSUB,ABORT
045447,002378:                                                                                                  #  ABORT EXIT MODE- ABORTS ON NEGATIVE INPUT -1.2X10E-4 (77775  OCTAL)     OR LESS.
045448,002379:                                                                                                  #      DISPLAYS ERROR CODE 1302
045449,002380:                                                                                                  #                  TC   ABORT
045450,002381:                                                                                                  #                  OCT  1302
045451,002382:                                                                                                  #  DEBRIS -  LOCATIONS BUF,MPTEMP,ADDRWD ARE USED
045452,002383: 00,3207           03343        SQRT               TC       SQRTSUB                               #  TAKE THE SQUARE ROOT OF MPAC.
045453,002384: 00,3210           10135                           CCS      MPTEMP                                #  RETURNED NORMALIZED SQUARE ROOT. SEE IF
045454,002385: 00,3211           13213                           TCF      +2                                    #  ANY UN-NORMALIZATION REQUIRED AND EXIT
045455,002386: 00,3212           16064                           TCF      DANZIG                                #  IF NOT.
045456,002387: 
045457,002388: 00,3213           63733                           AD       NEG12                                 #  A RIGHT SHIFT OF MORE THAN 13 COULD BE
045458,002389: 00,3214           00006                           EXTEND                                         #  REQUIRED IF INPUT WAS ZERO IN MPAC,+1.
045459,002390: 00,3215           63221                           BZMF     SQRTSHFT                              #  GOES HERE IN MOST CASES.
045460,002391: 00,3216           22007                           ZL                                             #  IF A LONG SHIFT IS REQUIRED, GO TO
045461,002392: 00,3217           22116                           LXCH     ADDRWD                                #  GENERAL RIGHT SHIFT ROUTINES.
045462,002393: 00,3220           12303                           TCF      GENSCR     +4                         #  ADDRWD WAS ZERO TO PREVENT ROUND.
045463,002394: 
045464,002395: 00,3221           50135        SQRTSHFT           INDEX    MPTEMP                                #  SELECT SHIFTING BIT AND EXIT THROUGH
045465,002396: 00,3222           34735                           CAF      BIT15                                 #  SHIFT ROUTINES.
045466,002397: 00,3223           54135                           TS       MPTEMP                                
045467,002398: 00,3224           34755                           CAF      ZERO                                  #  TO ZERO MPAC +2 IN THE PROCESS.
045468,002399: 00,3225           12036                           TCF      MPACSHR    +3                         
045469,002400: 
045470,002401: 00,3226           06726        ABS                TC       BRANCH                                #  TEST SIGN OF MPAC AND COMPLEMENT IF
045471,002402: 00,3227           16064                           TCF      DANZIG                                
045472,002403: 00,3230           16064                           TCF      DANZIG                                
045473,002404: 00,3231           17673                           TCF      COMP                                  
045474,002405: 

Page 1068

045476,002407: 00,3232           44751        VDEF               CS       FOUR                                  #  VECTOR DEFINE - ESSENTIALLY TREATS
045477,002408: 00,3233           26166                           ADS      PUSHLOC                               #  SCALAR IN MPAC AS X COMPONENT, PUSHES UP
045478,002409: 00,3234           00006                           EXTEND                                         #  FOR Y AND THEN AGAIN FOR Z.
045479,002410: 00,3235           50000                           INDEX    A                                     
045480,002411: 00,3236           30003                           DCA      2                                     
045481,002412: 00,3237           52160                           DXCH     MPAC       +3                         
045482,002413: 00,3240           00006                           EXTEND                                         
045483,002414: 00,3241           50166                           INDEX    PUSHLOC                               
045484,002415: 00,3242           30001                           DCA      0                                     
045485,002416: 00,3243           52162                           DXCH     MPAC       +5                         
045486,002417: 00,3244           16524                           TCF      VMODE                                 #  MODE IS NON VECTOR.
045487,002418: 
045488,002419: 00,3245           03317        VSQ                TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
045489,002420: 00,3246           17335                           TCF      DMODE                                 #  MODE IS NOW DP.
045490,002421: 
045491,002422: 00,3247           00006        PUSH               EXTEND                                         #  PUSH DOWN MPAC LEAVING IT LOADED.
045492,002423: 00,3250           30155                           DCA      MPAC                                  
045493,002424: 00,3251           50166                           INDEX    PUSHLOC                               #  PUSH DOWN FIRST TWO REGISTERS IN EACH
045494,002425: 00,3252           52001                           DXCH     0                                     
045495,002426: 
045496,002427: 00,3253           50163                           INDEX    MODE                                  #  INCREMENT PUSHDOWN POINTER.
045497,002428: 00,3254           36247                           CAF      NO.WDS                                
045498,002429: 00,3255           26166                           ADS      PUSHLOC                               
045499,002430: 
045500,002431: 00,3256           10163                           CCS      MODE                                  
045501,002432: 00,3257           13272                           TCF      TPUSH                                 #  PUSH DOWN MPAC +2.
045502,002433: 00,3260           16064                           TCF      DANZIG                                #  DONE FOR DP.
045503,002434: 
045504,002435: 00,3261           00006                           EXTEND                                         #  ON VECTOR, PUSH DOWN Y AND Z COMPONENTS.
045505,002436: 00,3262           30160                           DCA      MPAC       +3                         
045506,002437: 00,3263           50166                           INDEX    PUSHLOC                               
045507,002438: 00,3264           51775                           DXCH     0          -4                         
045508,002439: 00,3265           00006                           EXTEND                                         
045509,002440: 00,3266           30162                           DCA      MPAC       +5                         
045510,002441: 00,3267           50166                           INDEX    PUSHLOC                               
045511,002442: 00,3270           51777                           DXCH     0          -2                         
045512,002443: 00,3271           16064                           TCF      DANZIG                                
045513,002444: 
045514,002445: 00,3272           30156        TPUSH              CA       MPAC       +2                         
045515,002446: 00,3273           16557                           TCF      ENDTPUSH   +2                         
045516,002447: 
045517,002448: 00,3274           50120        RVQ                INDEX    FIXLOC                                #  RVQ - RETURN IVA QPRET.
045518,002449: 00,3275           30052                           CA       QPRET                                 
045519,002450: 00,3276           54117                           TS       POLISH                                
045520,002451: 00,3277           16655                           TCF      GOTO       +4                         #  (ASSUME QPRET POINTS TO FIXED ONLY.)
045521,002452: 

Page 1069

045523,002454:                                                                                                  #           THE FOLLOWING SUBROUTINES ARE USED IN SQUARING MPAC, IN BOTH THE SCALAR AND VECTOR SENSE. THEY ARE
045524,002455:                                                                                                  #  SPECIAL CASES OF DMPSUB AND DOTSUB, PUT IN TO SAVE SOME TIME.
045525,002456: 
045526,002457: 00,3300           30155        DSQSUB             CA       MPAC       +1                         #  SQUARES THE SCALAR CONTENTS OF MPAC.
045527,002458: 00,3301           00006                           EXTEND                                         
045528,002459: 00,3302           70000                           SQUARE                                         
045529,002460: 00,3303           54156                           TS       MPAC       +2                         
045530,002461: 00,3304           34755                           CAF      ZERO                                  #  FORM 2(CROSS TERM).
045531,002462: 00,3305           56155                           XCH      MPAC       +1                         
045532,002463: 00,3306           00006                           EXTEND                                         
045533,002464: 00,3307           70154                           MP       MPAC                                  
045534,002465: 00,3310           20001                           DDOUBL                                         #  AND MAYBE OVERFLOW.
045535,002466: 00,3311           20156                           DAS      MPAC       +1                         #  AND SET A TO NET OVERFLOW.
045536,002467: 00,3312           56154                           XCH      MPAC                                  
045537,002468: 00,3313           00006                           EXTEND                                         
045538,002469: 00,3314           70000                           SQUARE                                         
045539,002470: 00,3315           20155                           DAS      MPAC                                  
045540,002471: 00,3316           00002                           TC       Q                                     
045541,002472: 
045542,002473: 00,3317           00006        VSQSUB             EXTEND                                         #  DOTS THE VECTOR IN MPAC WITH ITSELF.
045543,002474: 00,3320           22137                           QXCH     DOTRET                                
045544,002475: 00,3321           03300                           TC       DSQSUB                                #  SQUARE THE X COMPONENT.
045545,002476: 00,3322           52160                           DXCH     MPAC       +3                         
045546,002477: 00,3323           52155                           DXCH     MPAC                                  
045547,002478: 00,3324           52131                           DXCH     BUF                                   #  SO WE CAN END IN DOTSUB.
045548,002479: 00,3325           30156                           CA       MPAC       +2                         
045549,002480: 00,3326           54132                           TS       BUF        +2                         
045550,002481: 
045551,002482: 00,3327           03300                           TC       DSQSUB                                #  SQUARE Y COMPONENT.
045552,002483: 00,3330           52156                           DXCH     MPAC       +1                         
045553,002484: 00,3331           20132                           DAS      BUF        +1                         
045554,002485: 00,3332           60154                           AD       MPAC                                  
045555,002486: 00,3333           60130                           AD       BUF                                   
045556,002487: 00,3334           54130                           TS       BUF                                   
045557,002488: 00,3335           13337                           TCF      +2                                    
045558,002489: 00,3336           54121                           TS       OVFIND                                #  IF OVERFLOW.
045559,002490: 
045560,002491: 00,3337           52162                           DXCH     MPAC       +5                         
045561,002492: 00,3340           52155                           DXCH     MPAC                                  
045562,002493: 00,3341           03300                           TC       DSQSUB                                #  SQUARE Z COMPONENT.
045563,002494: 00,3342           17210                           TCF      ENDDOT                                #  END AS IN DOTSUB.
045564,002495: 

Page 1070

045566,002497:                                                                                                  #           DOUBLE PRECISION SQUARE ROOT ROUTINE. TAKE THE SQUARE ROOT OF THE TRIPLE PRECISION (MPAC +2 USED ONLY
045567,002498:                                                                                                  #  IN NORMALIZATION) CONTENTS OF MPAC AND LEAVE THE NORMALIZED RESULT IN MPAC (C(MPAC) GREATER THAN OR EQUAL TO
045568,002499:                                                                                                  #  .5). THE RIGHT SHIFT COUNT (TO UNNORMALIZE) IS LEFT IN MPTEMP.
045569,002500: 
045570,002501: 00,3343           34755        SQRTSUB            CAF      ZERO                                  #  START BY ZEROING RIGHT SHIFT COUNT.
045571,002502: 00,3344           54135                           TS       MPTEMP                                
045572,002503: 
045573,002504: 00,3345           10154                           CCS      MPAC                                  #  CHECK FOR POSITIVE ARGUMENT, SHIFTING
045574,002505: 00,3346           13405                           TCF      SMPAC+                                #  FIRST SIGNIFICANT MPAC REGISTER INTO
045575,002506: 00,3347           13351                           TCF      +2                                    #  MPAC ITSELF.
045576,002507: 00,3350           13373                           TCF      SQRTNEG                               #  SEE IF MAG OF ARGUMENT LESS THAN 10(-4).
045577,002508: 
045578,002509: 00,3351           56156                           XCH      MPAC       +2                         #  MPAC IS ZERO - SHIFT LEFT 14.
045579,002510: 00,3352           56155                           XCH      MPAC       +1                         
045580,002511: 00,3353           54154                           TS       MPAC                                  
045581,002512: 00,3354           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
045582,002513: 00,3355           54135                           TS       MPTEMP                                
045583,002514: 
045584,002515: 00,3356           10154                           CCS      MPAC                                  #  SEE IF MPAC NOW PNZ.
045585,002516: 00,3357           13405                           TCF      SMPAC+                                
045586,002517: 00,3360           13362                           TCF      +2                                    
045587,002518: 00,3361           13376                           TCF      ZEROANS                               #  NEGATIVE BUT LESS THAN 10(-4) IN MAG.
045588,002519: 
045589,002520: 00,3362           56155                           XCH      MPAC       +1                         #  ZERO - SHIFT LEFT 14 AGAIN.
045590,002521: 00,3363           54154                           TS       MPAC                                  
045591,002522: 00,3364           34757                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
045592,002523: 00,3365           26135                           ADS      MPTEMP                                
045593,002524: 
045594,002525: 00,3366           10154                           CCS      MPAC                                  
045595,002526: 00,3367           13405                           TCF      SMPAC+                                
045596,002527: 00,3370           00002                           TC       Q                                     #  SQRT(0) = 0.
045597,002528: 00,3371           13376                           TCF      ZEROANS                               
045598,002529: 00,3372           13453                           TCF      FIXROOT                               #  DO NOT LEAVE SQRTSUB WITH -0 IN MPAC.
045599,002530: 
045600,002531: 00,3373           10000        SQRTNEG            CCS      A                                     #  ARGUMENT IS NEGATIVE, BUT SEE IF SIGN-
045601,002532: 00,3374           13402                           TCF      SQRTABRT                              #  CORRECTED ARGUMENT IS LESS THAN 10(-4)
045602,002533: 
045603,002534: 00,3375           10155                           CCS      MPAC       +1                         #  IN MAGNITUDE. IF SO, CALL ANSWER ZERO.
045604,002535: 00,3376           34755        ZEROANS            CAF      ZERO                                  #  FORCE ANSWER TO ZERO HERE.
045605,002536: 00,3377           13453                           TCF      FIXROOT                               
045606,002537: 00,3400           13402                           TCF      SQRTABRT                              
045607,002538: 00,3401           13453                           TCF      FIXROOT                               
045608,002539: 
045609,002540: 00,3402           52165        SQRTABRT           DXCH     LOC                                   
045610,002541: 00,3403           05727                           TC       POODOO1                               
045611,002542: 00,3404           21302                           OCT      21302                                 
045612,002543: 
045613,002544: 00,3405           62444        SMPAC+             AD       -1/2+2                                #  SEE IF ARGUMENT GREATER THAN OR EQUAL TO

Page 1071

045615,002546: 00,3406           00006                           EXTEND                                         #  .5.
045616,002547: 00,3407           63456                           BZMF     SRTEST                                #  IF SO, SEE IF LESS THAN .25.
045617,002548: 
045618,002549: 00,3410           52155                           DXCH     MPAC                                  #  WE WILL TAKE THE SQUARE ROOT OF MPAC/2.
045619,002550: 00,3411           22021                           LXCH     SR                                    #  SHIFT RIGHT 1 AND GO TO THE SQRT ROUTINE
045620,002551: 00,3412           00006                           EXTEND                                         
045621,002552: 00,3413           74736                           MP       HALF                                  
045622,002553: 00,3414           52155                           DXCH     MPAC                                  
045623,002554: 00,3415           56021                           XCH      SR                                    
045624,002555: 00,3416           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
045625,002556: 
045626,002557: 00,3417           32314        ARGHI              CAF      SLOPEHI                               #  ARGUMENT BETWEEN .25 AND .5. GET A
045627,002558: 00,3420           00006                           EXTEND                                         #  LINEAR APPROXIMATION FOR THIS RANGE.
045628,002559: 00,3421           70154                           MP       MPAC                                  
045629,002560: 00,3422           62566                           AD       BIASHI                                #  X0/2 = (MPAC/2)(SLOPEHI) + BIASHI/2.
045630,002561: 
045631,002562: 00,3423           54130                 +4        TS       BUF                                   #  X0/2 (ARGLO ENTERS HERE).
045632,002563: 00,3424           30154                           CA       MPAC                                  #  SINGLE-PRECISION THROUGHOUT.
045633,002564: 00,3425           22007                           ZL                                             
045634,002565: 00,3426           00006                           EXTEND                                         
045635,002566: 00,3427           10130                           DV       BUF                                   #  (MPAC/2)/(X0/2)
045636,002567: 00,3430           00006                           EXTEND                                         
045637,002568: 00,3431           74736                           MP       HALF                                  
045638,002569: 00,3432           26130                           ADS      BUF                                   #  X1 = X0/2 + .5(MPAC/2)/(X0/2).
045639,002570: 
045640,002571: 00,3433           00006                           EXTEND                                         
045641,002572: 00,3434           74736                           MP       HALF                                  #  FORM UP X1/2.
045642,002573: 00,3435           52155                           DXCH     MPAC                                  #  SAVE AND BRING OUT ARGUMENT.
045643,002574: 00,3436           00006                           EXTEND                                         #  TAKE DP QUOTIENT WITH X1.
045644,002575: 00,3437           10130                           DV       BUF                                   
045645,002576: 00,3440           54131                           TS       BUF        +1                         #  SAVE MAJOR PART OF QUOTIENT.
045646,002577: 00,3441           34755                           CAF      ZERO                                  #  FORM MINOR PART OF QUOTIENT USING
045647,002578: 00,3442           56001                           XCH      L                                     #  (REMAINDER,0).
045648,002579: 00,3443           00006                           EXTEND                                         
045649,002580: 00,3444           10130                           DV       BUF                                   
045650,002581: 00,3445           54001                           TS       L                                     #  IN PREPARATION FOR DAS.
045651,002582: 00,3446           30131                           CA       BUF        +1                         
045652,002583: 00,3447           20155                           DAS      MPAC                                  #  X2 = X1/2 + (MPAC/2)X1
045653,002584: 
045654,002585: 00,3450           00006                           EXTEND                                         #  OVERFLOWS IF ARG. NEAR POSMAX.
045655,002586: 00,3451           13455                           BZF      TCQBNK00                              
045656,002587: 00,3452           34733                           CAF      POSMAX                                
045657,002588: 00,3453           54154        FIXROOT            TS       MPAC                                  
045658,002589: 00,3454           54155                           TS       MPAC       +1                         
045659,002590: 00,3455           00002        TCQBNK00           TC       Q                                     #  RETURN TO CALLER TO UNNORMALIZE, ETC.
045660,002591: 

Page 1072

045662,002593: 00,3456           64737        SRTEST             AD       QUARTER                               #  ARGUMENT WAS LESS THAN .5, SEE IF LESS
045663,002594: 00,3457           00006                           EXTEND                                         #  THAN .25.
045664,002595: 00,3460           63502                           BZMF     SQRTNORM                              #  IF SO, BEGIN NORMALIZATION.
045665,002596: 
045666,002597: 00,3461           52155                           DXCH     MPAC                                  #  IF BETWEEN .5 AND .25, SHIFT RIGHT 1 AND
045667,002598: 00,3462           22021                           LXCH     SR                                    #  START AT ARGLO.
045668,002599: 00,3463           00006                           EXTEND                                         
045669,002600: 00,3464           74736                           MP       HALF                                  
045670,002601: 00,3465           52155                           DXCH     MPAC                                  
045671,002602: 00,3466           56021                           XCH      SR                                    
045672,002603: 00,3467           26155                           ADS      MPAC       +1                         #  NO OVERFLOW.
045673,002604: 
045674,002605: 00,3470           33007        ARGLO              CAF      SLOPELO                               #  (NORMALIZED) ARGUMENT BETWEEN .125 AND
045675,002606: 00,3471           00006                           EXTEND                                         #  .25
045676,002607: 00,3472           70154                           MP       MPAC                                  
045677,002608: 00,3473           62270                           AD       BIASLO                                
045678,002609: 00,3474           13423                           TCF      ARGHI      +4                         #  BEGIN SQUARE ROOT.
045679,002610: 
045680,002611: 00,3475           00006        SQRTNM2            EXTEND                                         #  SHIFT LEFT 2 AND INCREMENT RIGHT SHIFT
045681,002612: 00,3476           30156                           DCA      MPAC       +1                         #  COUNT (FOR TERMINAL UNNORMALIZATION).
045682,002613: 00,3477           20156                           DAS      MPAC       +1                         
045683,002614: 00,3500           60154                           AD       MPAC                                  
045684,002615: 00,3501           26154                           ADS      MPAC                                  #  (NO OVERFLOW).
045685,002616: 
045686,002617: 00,3502           24135        SQRTNORM           INCR     MPTEMP                                #  FIRST TIME THROUGH, JUST SHIFT LEFT 1
045687,002618: 00,3503           00006                           EXTEND                                         #  (PUTS IN EFFECTIVE RIGHT SHIFT SINCE
045688,002619: 00,3504           30156                           DCA      MPAC       +1                         #  WE WANT MPAC/2).
045689,002620: 00,3505           20156                           DAS      MPAC       +1                         
045690,002621: 00,3506           60154                           AD       MPAC                                  
045691,002622: 00,3507           26154                           ADS      MPAC                                  #  (AGAIN NO OVERFLOW).
045692,002623: 00,3510           60000                           DOUBLE                                         
045693,002624: 00,3511           54022                           TS       CYL                                   
045694,002625: 
045695,002626: 00,3512           10022        NORMTEST           CCS      CYL                                   #  SEE IF ARGUMENT NOW NORMALIZED AT
045696,002627: 00,3513           10022                           CCS      CYL                                   #  GREATER THAN .125.
045697,002628: 00,3514           13475                           TCF      SQRTNM2                               #  NO - SHIFT LEFT 2 MORE AND TRY AGAIN.
045698,002629: 00,3515           13417                           TCF      ARGHI                                 #  YES - NOW BETWEEN .5 AND .25.
045699,002630: 00,3516           13470                           TCF      ARGLO                                 #  ARGUMENT NOW BETWEEN .25 AND .125.
045700,002631: 

Page 1073

045702,002633:                                                                                                  #  TRIGONOMETRIC FUNCTION PACKAGE.
045703,002634: 
045704,002635:                                                                                                  #           THE FOLLOWING TRIGONOMETRIC FUNCTIONS ARE AVAILABLE AS INTERPRETIVE OPERATIONS:
045705,002636: 
045706,002637:                                                                                                  #           1.  SIN                COMPUTES (1/2)SINE(2 PI MPAC).
045707,002638:                                                                                                  #           2.  COS                COMPUTES (1/2)COSINE(2 PI MPAC).
045708,002639: 
045709,002640:                                                                                                  #           3.  ASIN               COMPUTES (1/2PI)ARCSINE(2 MPAC).
045710,002641:                                                                                                  #           4.  ACOS               COMPUTES (1/2PI)ARCCOSINE(2 MPAC).
045711,002642: 
045712,002643:                                                                                                  #  SIN-ASIN AND COS-ACOS ARE MUTUALLY INVERSE, IE SIN(ASIN(X)) = X.
045713,002644: 
045714,002645: 00,3517           06726        COSINE             TC       BRANCH                                #  FINDS COSINE USING THE IDENTITY
045715,002646: 00,3520           13523                           TCF      +3                                    #  COS(X) = SIN(PI/2 - ABS(X)).
045716,002647: 00,3521           13526                           TCF      PRESINE                               
045717,002648: 00,3522           13526                           TCF      PRESINE                               
045718,002649: 
045719,002650: 00,3523           00006                 +3        EXTEND                                         
045720,002651: 00,3524           40155                           DCS      MPAC                                  
045721,002652: 00,3525           52155                           DXCH     MPAC                                  
045722,002653: 
045723,002654: 00,3526           34737        PRESINE            CAF      QUARTER                               #  PI/2 SCALED.
045724,002655: 00,3527           26154                           ADS      MPAC                                  
045725,002656: 
045726,002657: 
045727,002658: 00,3530           52155        SINE               DXCH     MPAC                                  #  DOUBLE ARGUMENT.
045728,002659: 00,3531           20001                           DDOUBL                                         
045729,002660: 00,3532           54000                           OVSK                                           #  SEE IF OVERFLOW PRESENT.
045730,002661: 00,3533           13536                           TCF      +3                                    #  IF NOT, ARGUMENT OK AS IS.
045731,002662: 
045732,002663: 00,3534           00006                           EXTEND                                         #  IF SO, WE LOST (OR GAINED) PI, SO
045733,002664: 00,3535           40001                           DCOM                                           #  COMPLEMENT MPAC USING THE IDENTITY
045734,002665:                                                                                                  #  SIN(X-(+)PI) = SIN(-X).
045735,002666: 00,3536           52155                 +3        DXCH     MPAC                                  
045736,002667: 00,3537           30154                           CA       MPAC                                  #  SEE IF ARGUMENT GREATER THAN .5 IN
045737,002668: 00,3540           60000                           DOUBLE                                         #  MAGNITUDE. IF SO, REDUCE IT TO LESS THAN
045738,002669: 00,3541           54001                           TS       L                                     #  .5 (+-PI/2 SCALED) AS FOLLOWS:
045739,002670: 00,3542           13553                           TCF      SN1                                   
045740,002671: 
045741,002672: 00,3543           50000                           INDEX    A                                     #  IF POSITIVE, FORM PI - X, IF NEGATIVE
045742,002673: 00,3544           34735                           CAF      NEG1/2     +1                         #  USE -PI - X.
045743,002674: 00,3545           60000                           DOUBLE                                         
045744,002675: 00,3546           00006                           EXTEND                                         
045745,002676: 00,3547           60154                           SU       MPAC                                  #  GUARANTEED NO OVERFLOW.
045746,002677: 00,3550           54154                           TS       MPAC                                  
045747,002678: 00,3551           40155                           CS       MPAC       +1                         
045748,002679: 00,3552           54155                           TS       MPAC       +1                         
045749,002680: 

Page 1074

045751,002682: 00,3553           00006        SN1                EXTEND                                         #  SET UP TO EVALUATE HASTINGS POLYNOMIAL
045752,002683: 00,3554           30155                           DCA      MPAC                                  
045753,002684: 00,3555           52134                           DXCH     BUF2                                  
045754,002685: 00,3556           03300                           TC       DSQSUB                                #  SQUARE MPAC.
045755,002686: 
045756,002687: 00,3557           07225                           TC       POLY                                  #  EVALUATE FOURTH ORDER POLYNOMIAL.
045757,002688: 00,3560           00003                           DEC      3          B-14                       
045758,002689: 00,3561           14441 37325                     2DEC     +.3926990796                            
045759,002690: 
045760,002691: 00,3563           53250 60764                     2DEC     -.6459637111                            
045761,002692: 
045762,002693: 00,3565           12146 21276                     2DEC     +.318758717                            
045763,002694: 
045764,002695: 00,3567           75466 71471                     2DEC     -.074780249                            
045765,002696: 
045766,002697: 00,3571           00236 32757                     2DEC     +.009694988                            
045767,002698: 
045768,002699: 
045769,002700: 00,3573           32470                           CAF      LBUF2                                 #  MULTIPLY BY ARGUMENT AND SHIFT LEFT 2.
045770,002701: 00,3574           07111                           TC       DMPSUB     -1                         
045771,002702: 
045772,002703: 00,3575           00006                           EXTEND                                         
045773,002704: 00,3576           30156                           DCA      MPAC       +1                         
045774,002705: 00,3577           20156                           DAS      MPAC       +1                         
045775,002706: 00,3600           60154                           AD       MPAC                                  
045776,002707: 00,3601           26154                           ADS      MPAC                                  #  NEITHER SHIFT OVERFLOWS.
045777,002708: 00,3602           00006                           EXTEND                                         
045778,002709: 00,3603           30156                           DCA      MPAC       +1                         
045779,002710: 00,3604           20156                           DAS      MPAC       +1                         
045780,002711: 00,3605           60154                           AD       MPAC                                  
045781,002712: 00,3606           26154                           ADS      MPAC                                  
045782,002713: 00,3607           16064                           TCF      DANZIG                                
045783,002714: 

Page 1075

045785,002716:                                                                                                  #           ARCSIN/ARCCOS ROUTINE.
045786,002717: 
045787,002718: 00,3610           33631        ARCSIN             CAF      LASINEX                               #  COMPUTE ARCSIN BY USING THE IDENTITY
045788,002719: 00,3611           13613                           TCF      +2                                    #  ARCSIN(X) = PI/2 - ARCCOS(X).
045789,002720: 
045790,002721: 00,3612           33713        ARCCOS             CAF      LDANZIG                               #  (EXITS IMMEDIATELY).
045791,002722: 00,3613           54136                           TS       ESCAPE                                
045792,002723: 00,3614           06726                           TC       BRANCH                                #  TEST SIGN OF INPUT.
045793,002724: 00,3615           13625                           TCF      ACOSST                                #  START IMMEDIATELY IF POSITIVE.
045794,002725: 00,3616           13731                           TCF      ACOSZERO                              #  ARCCOS(0) = PI/2 = .25.
045795,002726: 00,3617           00006                           EXTEND                                         #  IF NEGATIVE, USE THE IDENTITY
045796,002727: 00,3620           40155                           DCS      MPAC                                  #  ARCCOS(X) = PI - ARCCOS(-X), FORCING
045797,002728: 00,3621           52155                           DXCH     MPAC                                  #  ARGUMENT POSITIVE.
045798,002729: 00,3622           33734                           CAF      TCSUBTR                               #  SET EXIT  TO DO ABOVE BEFORE
045799,002730: 00,3623           56136                           XCH      ESCAPE                                #  ARCSIN/ARCCOS CONSIDERATIONS.
045800,002731: 00,3624           54137                           TS       ESCAPE2                               
045801,002732: 
045802,002733: 00,3625           44736        ACOSST             CS       HALF                                  #  TEST MAGNITUDE OF INPUT.
045803,002734: 00,3626           60154                           AD       MPAC                                  
045804,002735: 00,3627           10000                           CCS      A                                     
045805,002736: 00,3630           13721                           TCF      ACOSOVF                               #  THIS IS PROBABLY AN OVERFLOW CASE.
045806,002737: 
045807,002738: 00,3631           13707        LASINEX            TCF      ASINEX                                
045808,002739: 
045809,002740: 00,3632           13642                           TCF      ACOSST2                               #  NO OVERFLOW - PROCEED.
045810,002741: 
045811,002742: 00,3633           10155                           CCS      MPAC       +1                         #  IF MAJOR PART IS .5, CALL ANSWER 0
045812,002743: 00,3634           34755                           CAF      ZERO                                  #  UNLESS MINOR PART NEGATIVE.
045813,002744: 00,3635           13637                           TCF      ACOS=0                                
045814,002745: 
045815,002746: 00,3636           13642                           TCF      ACOSST2                               
045816,002747: 
045817,002748: 00,3637           54155        ACOS=0             TS       MPAC       +1                         
045818,002749: 00,3640           54154                           TS       MPAC                                  
045819,002750: 00,3641           00136                           TC       ESCAPE                                
045820,002751: 
045821,002752: 00,3642           00006        ACOSST2            EXTEND                                         #  NOW THAT ARGUMENT IS IN PROPER RANGE,
045822,002753: 00,3643           40155                           DCS      MPAC                                  #  BEGIN COMPUTATION. USE HASTINGS
045823,002754: 00,3644           64736                           AD       HALF                                  #  APPROXIMATION ARCCOS(X) = SQRT(1-X)P(X)
045824,002755: 00,3645           52155                           DXCH     MPAC                                  #  IN A SCALED VERSION WHERE P(X) IS A
045825,002756: 00,3646           52134                           DXCH     BUF2                                  #  SEVENTH ORDER POLYNOMIAL.
045826,002757: 
045827,002758: 00,3647           03343                           TC       SQRTSUB                               #  RETURNS WITH NORMALIZED SQUARE ROOT.
045828,002759: 
045829,002760: 00,3650           10135                           CCS      MPTEMP                                #  SEE IF UN-NORMALIZATION REQUIRED.
045830,002761: 00,3651           13714                           TCF      ACOSSHR                               #  IF SO.
045831,002762: 

Page 1076

045833,002764: 00,3652           52155        ACOS3              DXCH     MPAC                                  #  SET UP FOR POLYNOMIAL EVALUATION.
045834,002765: 00,3653           52134                           DXCH     BUF2                                  
045835,002766: 00,3654           52155                           DXCH     MPAC                                  
045836,002767: 
045837,002768: 00,3655           07225                           TC       POLY                                  
045838,002769: 00,3656           00006                           DEC      6          B-14                       
045839,002770: 00,3657           13240 23630                     2DEC     +.353553385                            #  COEFFICIENTS ARE C 2(+I)/PISQRT(2) WHERE
045840,002771: 
045841,002772: 00,3661           74721 47775                     2DEC*    -.0483017006 B+1*                       #                    I
045842,002773: 
045843,002774: 00,3663           02440 20237                     2DEC*    +.0200273085 B+2*                       #       WHERE C STANDS FOR ORIGINAL COEFFS.
045844,002775: 
045845,002776: 00,3665           75067 70742                     2DEC*    -.0112931863 B+3*                       
045846,002777: 
045847,002778: 00,3667           03436 26756                     2DEC*    +.00695311612 B+4*                       
045848,002779: 
045849,002780: 00,3671           74037 57640                     2DEC*    -.00384617957 B+5*                       
045850,002781: 
045851,002782: 00,3673           03046 07143                     2DEC*    +.001501297736 B+6*                       
045852,002783: 
045853,002784: 00,3675           76654 42244                     2DEC*    -.000284160334 B+7*                       
045854,002785: 
045855,002786: 
045856,002787: 00,3677           32470                           CAF      LBUF2                                 #  DO FINAL MULTIPLY AND GO TO ANY
045857,002788: 00,3700           07111                           TC       DMPSUB     -1                         #  EPILOGUE SEQUENCES.
045858,002789: 00,3701           00136                           TC       ESCAPE                                
045859,002790: 
045860,002791: 00,3702           00006        SUBTR              EXTEND                                         #  EPILOGUE FOR NEGATIVE INPUTS TO ARCCOS.
045861,002792: 00,3703           40155                           DCS      MPAC                                  
045862,002793: 00,3704           64736                           AD       HALF                                  #  FORMS PI - ARCCOS(-X) = ARCCOS(X).
045863,002794: 00,3705           52155                           DXCH     MPAC                                  
045864,002795: 00,3706           00137                           TC       ESCAPE2                               #  GO TO POSSIBLE ARCSIN EPILOGUE.
045865,002796: 
045866,002797: 00,3707           00006        ASINEX             EXTEND                                         
045867,002798: 00,3710           40155                           DCS      MPAC                                  #  ARCSIN EPILOGUE - GET ARCSIN(X)
045868,002799: 00,3711           64737                           AD       QUARTER                               #  = PI/2 - ARCCOS(X).
045869,002800: 00,3712           52155                           DXCH     MPAC                                  
045870,002801: 00,3713           16064        LDANZIG            TCF      DANZIG                                
045871,002802: 

Page 1077

045873,002804: 00,3714           50000        ACOSSHR            INDEX    A                                     #  THE SHIFT RIGHT IS LESS THAN 14 SINCE
045874,002805: 00,3715           34736                           CAF      BIT14                                 #  THE INPUT WAS NON-ZERO DP.
045875,002806: 00,3716           54135                           TS       MPTEMP                                
045876,002807: 00,3717           02073                           TC       VSHRRND                               #  DP SHIFT RIGHT AND ROUND.
045877,002808: 00,3720           13652                           TCF      ACOS3                                 #  PROCEED.
045878,002809: 
045879,002810: 00,3721           00006        ACOSOVF            EXTEND                                         #  IF MAJOR PART WAS ONLY 1 MORE THAN .5,
045880,002811: 00,3722           13637                           BZF      ACOS=0                                #  CALL ANSWER ZERO.
045881,002812: 
045882,002813: 00,3723           00006        ACOSABRT           EXTEND                                         #  IF OVERFLOW, CALL ANSWER ZERO BUT
045883,002814: 00,3724           30165                           DCA      LOC                                   #  SOUND AN ALARM.
045884,002815: 00,3725           05733                           TC       ALARM1                                
045885,002816: 00,3726           01301                           OCT      1301                                  
045886,002817: 
045887,002818: 00,3727           34755                           CAF      ZERO                                  
045888,002819: 00,3730           13637                           TCF      ACOS=0                                
045889,002820: 
045890,002821: 00,3731           34737        ACOSZERO           CAF      QUARTER                               #  ACOS(0) = PI/2.
045891,002822: 00,3732           13640                           TCF      ACOS=0     +1                         #  SET MPAC AND EXIT VIA ESCAPE.
045892,002823: 
045893,002824: 00,3733           77763        NEG12              DEC      -12        B-14                       
045894,002825: 00,3734           13702        TCSUBTR            TCF      SUBTR                                 
045895,002826: 

Page 1078

045897,002828:                                                                                                  #           THE FOLLOWING INSTRUCTIONS ARE AVAILABLE FOR SETTING, MODIFYING, AND BRANCHING ON INDEX REGISTERS:
045898,002829: 
045899,002830:                                                                                                  #           1.  AXT                ADDRESS TO INDEX TRUE.
045900,002831:                                                                                                  #           1.  AXC                ADDRESS TO INDEX COMPLEMENTED.
045901,002832:                                                                                                  #           3.  LXA                LOAD INDEX FROM ERASABLE.
045902,002833:                                                                                                  #           4.  LXC                LOAD INDEX COMPLEMENTED FROM ERASABLE.
045903,002834:                                                                                                  #           5.  SXA                STORE INDEX IN ERASABLE.
045904,002835:                                                                                                  #           6.  XCHX               EXCHANGE INDEX REIGSTER WITH ERASABLE.
045905,002836: 
045906,002837:                                                                                                  #           7.  INCR               INCREMENT INDEX REGISTER.
045907,002838:                                                                                                  #           8.  XAD                ERASABLE ADD TO INDEX REGISTER.
045908,002839:                                                                                                  #           9.  XSU                ERASABLE SUBTRACT FROM INDEX REGISTER.
045909,002840: 
045910,002841:                                                                                                  #          10.  TIX                BRANCH ON INDEX REGISTER AND DECREMENT.
045911,002842: 
045912,002843: 01,2350                                           BANK     01                                    
045913,002844: 
045914,002845: 01,2350                                           COUNT*   $$/INTER                              
045915,002846: 01,2350           02445        AXT                TC       TAGSUB                                #  SELECT APPROPRIATE INDEX REGISTER.
045916,002847: 01,2351           30117                           CA       POLISH                                
045917,002848: 01,2352           50130        XSTORE             INDEX    INDEXLOC                              #  CONTAINS C(FIXLOC) OR C(FIXLOC)+1.
045918,002849: 01,2353           54046                           TS       X1                                    
045919,002850: 01,2354           16064                           TCF      DANZIG                                
045920,002851: 
045921,002852: 01,2355           02445        AXC                TC       TAGSUB                                
045922,002853: 01,2356           40117                           CS       POLISH                                
045923,002854: 01,2357           02352                           TC       XSTORE                                
045924,002855: 
045925,002856: 01,2360           02433        LXA                TC       15ADRERS                              #  LOAD INDEX REGISTER FROM ERASABLE.
045926,002857: 01,2361           50117                           INDEX    POLISH                                
045927,002858: 01,2362           30000                           CA       0                                     
045928,002859: 01,2363           12352                           TCF      XSTORE                                
045929,002860: 
045930,002861: 01,2364           02433        LXC                TC       15ADRERS                              #  LOAD NDX REG FROM ERASABLE COMPLEMENTED.
045931,002862: 01,2365           50117                           INDEX    POLISH                                
045932,002863: 01,2366           40000                           CS       0                                     
045933,002864: 01,2367           12352                           TCF      XSTORE                                
045934,002865: 
045935,002866: 01,2370           02433        SXA                TC       15ADRERS                              #  STORE INDEX REGISTER IN ERASABLE.
045936,002867: 01,2371           50130                           INDEX    INDEXLOC                              
045937,002868: 01,2372           30046                           CA       X1                                    
045938,002869: 01,2373           50117        MSTORE1            INDEX    POLISH                                
045939,002870: 01,2374           54000                           TS       0                                     
045940,002871: 01,2375           16064                           TCF      DANZIG                                
045941,002872: 

Page 1079

045943,002874: 01,2376           02433        XCHX               TC       15ADRERS                              #  EXCHANGE INDEX REGISTER WITH ERASABLE.
045944,002875: 01,2377           50117                           INDEX    POLISH                                
045945,002876: 01,2400           30000                           CA       0                                     
045946,002877: 01,2401           50130                           INDEX    INDEXLOC                              
045947,002878: 01,2402           56046                           XCH      X1                                    
045948,002879: 01,2403           12373                           TCF      MSTORE1                               
045949,002880: 
045950,002881: 01,2404           02433        XAD                TC       15ADRERS                              #  ADD ERASABLE TO INDEX REGISTER.
045951,002882: 01,2405           50117                           INDEX    POLISH                                
045952,002883: 01,2406           30000                           CA       0                                     
045953,002884: 01,2407           50130        XAD2               INDEX    INDEXLOC                              
045954,002885: 01,2410           26046                           ADS      X1                                    #  IGNORING OVERFLOWS.
045955,002886: 01,2411           16064                           TCF      DANZIG                                
045956,002887: 
045957,002888: 01,2412           02445        INCR               TC       TAGSUB                                #  INCREMENT INDEX REGISTER.
045958,002889: 01,2413           30117                           CA       POLISH                                
045959,002890: 01,2414           12407                           TCF      XAD2                                  
045960,002891: 
045961,002892: 01,2415           02433        XSU                TC       15ADRERS                              #  SUBTRACT ERASABLE FROM INDEX REGISTER.
045962,002893: 01,2416           50117                           INDEX    POLISH                                
045963,002894: 01,2417           40000                           CS       0                                     
045964,002895: 01,2420           12407                           TCF      XAD2                                  
045965,002896: 
045966,002897: 01,2421           02445        TIX                TC       TAGSUB                                #  BRANCH AND DECREMENT ON INDEX.
045967,002898: 01,2422           50130                           INDEX    INDEXLOC                              
045968,002899: 01,2423           40050                           CS       S1                                    
045969,002900: 01,2424           50130                           INDEX    INDEXLOC                              
045970,002901: 01,2425           60046                           AD       X1                                    
045971,002902: 01,2426           00006                           EXTEND                                         #  NO OPERATION IF DECREMENTED INDEX IS
045972,002903: 01,2427           66064                           BZMF     DANZIG                                #  NEGATIVE OR ZERO.
045973,002904: 
045974,002905: 01,2430           50130        DOTIXBR            INDEX    INDEXLOC                              
045975,002906: 01,2431           56046                           XCH      X1                                    #  IGNORING OVERFLOWS.
045976,002907: 
045977,002908: 01,2432           16651                           TCF      GOTO                                  #  DO THE BRANCH USING THE CADR IN POLISH.
045978,002909: 

Page 1080

045980,002911:                                                                                                  #           SUBROUTINE TO CONVERT AN ERASABLE ADDRESS (11 BITS) TO AN EBANK SETTING AND SUBADDRESS.
045981,002912: 
045982,002913: 01,2433           40117        15ADRERS           CS       POLISH                                
045983,002914: 01,2434           64772                           AD       DEC45                                 
045984,002915: 01,2435           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
045985,002916: 01,2436           30120                           CA       FIXLOC                                #  YES.  ADD FIXLOC.  EBANK OK AS IS.
045986,002917: 01,2437           12444                           TCF      +5                                    
045987,002918: 
045988,002919: 01,2440           35007                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
045989,002920: 01,2441           56117                           XCH      POLISH                                
045990,002921: 01,2442           54003                           TS       EBANK                                 
045991,002922: 01,2443           74357                           MASK     LOW8                                  
045992,002923: 01,2444           26117                 +5        ADS      POLISH                                #  FALL INTO TAGSUB, AND RETURN VIA Q.
045993,002924: 
045994,002925:                                                                                                  #           SUBROUTINE WHICH SETS THE ADDRESS OF THE SPECIFIED INDEX IN INDEXLOC. (ACTUALLY, THE ADDRESS -38D.)
045995,002926: 
045996,002927: 01,2445           30120        TAGSUB             CA       FIXLOC                                
045997,002928: 01,2446           54130                           TS       INDEXLOC                              
045998,002929: 
045999,002930: 01,2447           10020                           CCS      CYR                                   #  BIT 15 SPECIFIES INDEX.
046000,002931: 01,2450           24130                           INCR     INDEXLOC                              #  0 MEANS USE X2.
046001,002932: 01,2451           00002                           TC       Q                                     
046002,002933: 01,2452           00002                           TC       Q                                     #  1 FOR X1.
046003,002934: 

Page 1081

046005,002936:                                                                                                  #           MISCELLANEOUS OPERATION CODES WITH DIRECT ADDRESSES. INCLUDED HERE ARE:
046006,002937: 
046007,002938:                                                                                                  #           1.  ITA                STORE QPRET (RETURN ADDRESS) IN ERASABLE.
046008,002939:                                                                                                  #           2.  CALL               CALL A SUBROUTINE, LEAVING RETURN IN QPRET.
046009,002940:                                                                                                  #           3.  RTB                RETURN TO BASIC LANGUAGE AT THE GIVEN ADDRESS.
046010,002941:                                                                                                  #           4.  BHIZ               BRANCH IF THE HIGH ORDER OF MPAC IS ZERO (SINGLE PRECISION).
046011,002942:                                                                                                  #           5.  BOV                BRANCH ON OVERFLOW.
046012,002943:                                                                                                  #           6.  GOTO               SIMPLE SEQUENCE CHANGE.
046013,002944: 
046014,002945: 01,2453           10020        RTB/BHIZ           CCS      CYR                                   
046015,002946: 01,2454           30117        RTB                CA       POLISH                                
046016,002947: 01,2455           04621                           TC       SWCALL     -1                         #  SO A "TC Q" FROM ROUTINE LEADS TO DANZIG
046017,002948: 
046018,002949: 01,2456           10154        BHIZ               CCS      MPAC                                  
046019,002950: 01,2457           16064                           TCF      DANZIG                                
046020,002951: 01,2460           16651                           TCF      GOTO                                  
046021,002952: 01,2461           16064                           TCF      DANZIG                                
046022,002953: 01,2462           16651                           TCF      GOTO                                  
046023,002954: 
046024,002955: 01,2463           10121        BOV(B)             CCS      OVFIND                                #  BRANCH ON OVERFLOW TO BASIC OR INTERP.
046025,002956: 01,2464           12466                           TCF      +2                                    
046026,002957: 01,2465           16064                           TCF      DANZIG                                
046027,002958: 01,2466           54121                           TS       OVFIND                                
046028,002959: 01,2467           10020                           CCS      CYR                                   
046029,002960: 01,2470           12454                           TCF      RTB                                   #  IF BASIC.
046030,002961: 01,2471           00360        B5TOB8             OCT      360                                   
046031,002962: 01,2472           16651                           TCF      GOTO                                  
046032,002963: 

Page 1082

046034,002965: 01,2473           10020        BZE/GOTO           CCS      CYR                                   #  SEE WHICH OP-CODE IS DESIRED.
046035,002966: 01,2474           06726                           TC       BRANCH                                #  DO BZE.
046036,002967: 01,2475           16064                           TCF      DANZIG                                
046037,002968: 01,2476           16651                           TCF      GOTO                                  #  DO GOTO.
046038,002969: 01,2477           16064                           TCF      DANZIG                                
046039,002970: 
046040,002971: 01,2500           10020        BPL/BMN            CCS      CYR                                   
046041,002972: 01,2501           12507                           TCF      BPL                                   
046042,002973: 01,2502           12000        5B10               DEC      5          B+10                       #  SHIFTS OP CODE IN SWITCH INSTRUCTION ADR
046043,002974: 
046044,002975: 01,2503           06726                           TC       BRANCH                                #  DO BMN.
046045,002976: 01,2504           16064                           TCF      DANZIG                                
046046,002977: 01,2505           16064                           TCF      DANZIG                                
046047,002978: 01,2506           16651                           TCF      GOTO                                  #  ONLY IF NNZ.
046048,002979: 
046049,002980: 01,2507           06726        BPL                TC       BRANCH                                
046050,002981: 01,2510           16651                           TCF      GOTO                                  #  IF POSITIVE OR ZERO.
046051,002982: 01,2511           16651                           TCF      GOTO                                  
046052,002983: 01,2512           16064                           TCF      DANZIG                                
046053,002984: 
046054,002985: 01,2513           10020        CALL/ITA           CCS      CYR                                   
046055,002986: 01,2514           16643                           TCF      CALL                                  
046056,002987: 
046057,002988: 01,2515           05706                           TC       CCSHOLE                               
046058,002989: 01,2516           02433                           TC       15ADRERS                              #  STORE QPRET. (TAGSUB AFTER 15ADRERS IS
046059,002990: 01,2517           50120                           INDEX    FIXLOC                                #  SLOW IN THIS CASE, BUT SAVES STORAGE.)
046060,002991: 01,2520           30052                           CA       QPRET                                 
046061,002992: 01,2521           12373                           TCF      MSTORE1                               
046062,002993: 

Page 1083

046064,002995:                                                                                                  #           THE FOLLOWING OPERATIONS ARE AVAILABLE FOR ALTERING AND TESTING INTERPRETIVE SWITCHES:
046065,002996: 
046066,002997:                                                                                                  #  00       BONSET                 SET A SWITCH AND DO A GOTO IF IT WAS ON.
046067,002998:                                                                                                  #  01       SETGO                  SET A SWITCH AND DO A GOTO.
046068,002999:                                                                                                  #  02       BOFSET                 SET A SWITCH AND DO A GOTO IF IT WAS OFF
046069,003000:                                                                                                  #  03       SET                    SET A SWITCH.
046070,003001: 
046071,003002:                                                                                                  #  04       BONINV                 INVERT A SWITCH AND BRANCH IF IT WAS ON.
046072,003003:                                                                                                  #  05       INVGO                  INVERT A SWITCH AND DO A GOTO.
046073,003004:                                                                                                  #  06       BOFINV                 INVERT A SWITCH AND BRANCH IF IT WAS OFF
046074,003005:                                                                                                  #  07       INVERT                 INVERT A SWITCH.
046075,003006: 
046076,003007:                                                                                                  #  10       BONCLR                 CLEAR A SWITCH AND BRANCH IF IT WAS ON.
046077,003008:                                                                                                  #  11       CLRGO                  CLEAR A SWITCH AND DO A GOTO.
046078,003009:                                                                                                  #  12       BOFCLR                 CLEAR A SWITCH AND BRANCH IF IT WAS OFF.
046079,003010:                                                                                                  #  13       CLEAR                  CLEAR A SWITCH.
046080,003011: 
046081,003012:                                                                                                  #  14       BON                    BRANCH IF A SWITCH WAS ON.
046082,003013:                                                                                                  #  16       BOFF                   BRANCH IF A SWITCH WAS OFF.
046083,003014: 
046084,003015: 
046085,003016:                                                                                                  #           THE ADDRESS SUPPLIED WITH THE SWITCH INSTRUCTION IS INTERPRETED AS FOLLOWS:
046086,003017: 
046087,003018:                                                                                                  #           BITS 1-4    SWITCH BIT NUMBER (1-15).
046088,003019:                                                                                                  #           BITS 5-8    SWITCH OPERATION NUMBER.
046089,003020:                                                                                                  #           BITS 9-     SWITCH WORD NUMBER (UP TO 64 SWITCH WORDS).
046090,003021: 
046091,003022:                                                                                                  #           THE ADDRESS ITSELF IS MADE UP BY THE YUL SYSTEM ASSEMBLER. THE BRANCH INSTRUCTIONS REQUIRE TWO
046092,003023:                                                                                                  #  ADDRESSES, THE SECOND TAKEN AS THE DIRECT (OR INDIRECT IF IN ERASABLE) ADDRESS OF THE BRANCH.
046093,003024: 
046094,003025: 
046095,003026: 01,2522           34762        SWITCHES           CAF      LOW4                                  #  LEAVE THE SWITCH BIT IN  SWBIT  .
046096,003027: 01,2523           70117                           MASK     POLISH                                
046097,003028: 01,2524           50000                           INDEX    A                                     
046098,003029: 01,2525           34735                           CAF      BIT15                                 #  (NUMBER FROM LEFT TO RIGHT.)
046099,003030: 01,2526           54131                           TS       SWBIT                                 
046100,003031: 
046101,003032: 01,2527           34745                           CAF      BIT7                                  #  LEAVE THE SWITCH NUMBER IN SWWORD.
046102,003033: 01,2530           00006                           EXTEND                                         
046103,003034: 01,2531           70117                           MP       POLISH                                
046104,003035: 01,2532           54130                           TS       SWWORD                                
046105,003036: 
046106,003037: 01,2533           00004                           INHINT                                         #  DURING SWITCH CHANGE SO RUPT CAN USE TOO
046107,003038: 01,2534           50000                           INDEX    A                                     #  LEAVE THE SWITCH WORD ITSELF IN L.
046108,003039: 01,2535           30074                           CA       STATE                                 
046109,003040: 01,2536           54002                           TS       Q                                     #  Q WILL BE USED AS A CHANNEL.

Page 1084

046111,003042: 01,2537           34741                           CAF      BIT11                                 
046112,003043: 01,2540           00006                           EXTEND                                         #  DISPATCH SWITCH BIT OPERATION AS IN BITS
046113,003044: 01,2541           70117                           MP       POLISH                                #  7-8 OF POLISH.
046114,003045: 01,2542           72602                           MASK     B3TOB4                                #  GETS 4X2-BIT CODE.
046115,003046: 01,2543           50000                           INDEX    A                                     
046116,003047: 01,2544           12545                           TCF      +1                                    
046117,003048: 
046118,003049: 01,2545           30131                 +1        CA       SWBIT                                 #  00 - SET SWITCH IN QUESTION.
046119,003050: 01,2546           00006                           EXTEND                                         
046120,003051: 01,2547           04002                           ROR      QCHAN                                 
046121,003052: 01,2550           12557                           TCF      SWSTORE                               
046122,003053: 
046123,003054: 01,2551           30131                 +5        CA       SWBIT                                 #  01 - INVERT SWITCH.
046124,003055: 01,2552           00006                           EXTEND                                         
046125,003056: 01,2553           06002                           RXOR     QCHAN                                 
046126,003057: 01,2554           12557                           TCF      SWSTORE                               
046127,003058: 
046128,003059: 01,2555           40131                 +9D       CS       SWBIT                                 #  10 - CLEAR.
046129,003060: 01,2556           70002                           MASK     Q                                     
046130,003061: 01,2557           50130        SWSTORE            INDEX    SWWORD                                
046131,003062: 01,2560           54074                           TS       STATE                                 #  NEW SWITCH WORD.
046132,003063: 

Page 1085

046134,003065: 01,2561           00003                 +13D      RELINT                                         #  11 - NOOP.
046135,003066: 01,2562           34737                           CAF      BIT13                                 
046136,003067: 01,2563           00006                           EXTEND                                         #  DISPATCH SEQUCE CHANGING OR BRANCHING
046137,003068: 01,2564           70117                           MP       POLISH                                #  CODE.
046138,003069: 01,2565           72602                           MASK     B3TOB4                                
046139,003070: 01,2566           50000                           INDEX    A                                     
046140,003071: 01,2567           12570                           TCF      +1                                    #  ORIGINALLY STORED IN BITS 5-6.
046141,003072: 
046142,003073: 01,2570           40002                 +1        CS       Q                                     #  00 - BRANCH IF ON.
046143,003074: 01,2571           70131        TEST               MASK     SWBIT                                 
046144,003075: 01,2572           10000                           CCS      A                                     
046145,003076: 01,2573           12603                           TCF      SWSKIP                                
046146,003077: 
046147,003078: 01,2574           16720                 +5        TCF      SWBRANCH                              #  01 - GO TO.
046148,003079: 
046149,003080: 01,2575           12603                           TCF      SWSKIP                                #  HERE ONLY ON BIT 15.
046150,003081: 
046151,003082: 01,2576           05706                           TC       CCSHOLE                               
046152,003083: 01,2577           05706                           TC       CCSHOLE                               
046153,003084: 
046154,003085: 01,2600           30002                 +9D       CA       Q                                     #  10 - BRANCH IF OFF.
046155,003086: 01,2601           12571                           TCF      TEST                                  
046156,003087: 
046157,003088: 01,2602           00014        B3TOB4             OCT      0014                                  
046158,003089: 01,2603           24164        SWSKIP             INCR     LOC                                   
046159,003090: 
046160,003091: 01,2604  01,2522               SW/                EQUALS   SWITCHES                              
046161,003092: 
046162,003093: 01,2604           16064                 +13D      TCF      DANZIG                                #  11 - NOOP.

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