Source Code

These source-code files were obtained by digitally photographing an Artemis 72 (Apollo 15-17 Command Module) program listing from a private collection and then modifying pre-existing Comanche 55 (Apollo 11) source files to incorporate changes. Photography was by Ron Burkey, and transcription was performed by a team of volunteers. Note that the page images presented online are of reduced quality, and that additional images may be available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP: ASSEMBLE REVISION 072 OF AGC PROGRAM ARTEMIS 
	BY NASA 2021114-011 11:40 FEB. 26, 1971
Note that the date is the date of the printout, not the date of the program revision.

048396,000002:                                                                                                  ## Copyright:   Public domain.
048397,000003:                                                                                                  ## Filename:    INTERPRETER.agc
048398,000004:                                                                                                  ## Purpose:     Part of the source code for Artemis (i.e., Colossus 3),
048399,000005:                                                                                                  ##              build 072.  This is for the Command Module's (CM)
048400,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for
048401,000007:                                                                                                  ##              Apollo 15-17.
048402,000008:                                                                                                  ## Assembler:   yaYUL
048403,000009:                                                                                                  ## Contact:     Jim Lawton <jim DOT lawton AT gmail DOT com>
048404,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
048405,000011:                                                                                                  ## Page Scans:  www.ibiblio.org/apollo/ScansForConversion/Artemis072/
048406,000012:                                                                                                  ## Mod history: 2009-09-02 JL   Adapted from corresponding Comanche 055 file.
048407,000013:                                                                                                  ##              2009-09-16 JL   Fixed line comment alignment in top section of file.
048408,000014:                                                                                                  ##              2010-02-20 RSB  Un-##'d this header.
048409,000015:                                                                                                  ##              2011-05-07 JL   Removed workarounds.
048410,000016:                                                                                                  ##              2017-02-05 RSB  Proofed comment text by diff'ing vs Comanche 55
048411,000017:                                                                                                  ##                              and corrected errors found.
048412,000018:                                                                                                  ##              2017-03-15 RSB  Comment-text fixes identified in 5-way
048413,000019:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
048414,000020: 

Page 1108

048416,000022: 
048417,000023:                                                                                                  #  SECTION 1   DISPATCHER
048418,000024: 
048419,000025:                                                                                                  #           ENTRY TO THE INTERPRETER.  INTPRET SETS LOC TO THE FIRST INSTRUCTION, BANKSET TO THE BBANK OF THE
048420,000026:                                                                                                  #  OBJECT INTERPRETIVE PROGRAM, AND INTBIT15 TO THE BIT15 CONTENTS OF FBANK. INTERPRETIVE PROGRAMS MAY BE IN
048421,000027:                                                                                                  #  VIRTUALLY ALL BANKS PRESENT UNDER ANY SUPER-BANK SETTING, WITH THE RESTRICTION THAT PROGRAMS IN HIGH BANKS
048422,000028:                                                                                                  #  (BIT15 OF FBANK = 1) DO NOT REFER TO LOWBANKS, AND VICE-VERSA. THE INTERPRETER DOES NOT SWITCH SUPERBANKS.
048423,000029:                                                                                                  #  E-BANK SWITCHING OCCURS WHENEVER GENERAL ERASABLE (100-3777) IS ADDRESSED.
048424,000030: 
048425,000031:    6000                                           SETLOC   INTERF3                               
048426,000032:    6000                                           BANK                                           
048427,000033: 
048428,000034:    6006                                           COUNT*   $$/INTER                              
048429,000035:    6006           00003        INTPRET            RELINT                                         
048430,000036:    6007           00006                           EXTEND                                         #  SET LOC TO THE WORD FOLLOWING THE TC.
048431,000037:    6010           22164                 +2        QXCH     LOC                                   
048432,000038: 
048433,000039:    6011           30006                 +3        CA       BBANK                                 #  INTERPRETIVE BRANCHES FINISH HERE.
048434,000040:    6012           54165                           TS       BANKSET                               
048435,000041:    6013           74752                           MASK     BIT15                                 #  GET 15TH BIT FOR INDEXABLE ADDRESSES.
048436,000042:    6014           54115                           TS       INTBIT15                              
048437,000043: 
048438,000044:    6015           54023                           TS       EDOP                                  #  MAKE SURE NO INSTRUCTIONS LEFT OVER
048439,000045: 
048440,000046:    6016           16037                           TCF      NEWOPS                                #  PICK UP OP CODE PAIR AND BEGIN.
048441,000047: 
048442,000048:    6017           22006        INTRSM             LXCH     BBANK                                 #  RESUME SUSPENDED INTERPRETIVE JOB
048443,000049:    6020           16011                           TCF      INTPRET    +3                         
048444,000050: 
048445,000051:                                                                                                  #  DLOAD LOADS MPAC, MPAC +1, LEAVING ZERO IN MPAC +2.
048446,000052: 
048447,000053:    6021           00006        DLOAD              EXTEND                                         
048448,000054:    6022           50116                           INDEX    ADDRWD                                
048449,000055:    6023           30001                           DCA      0                                     #  LOAD DP C(C(ADDRWD)) INTO MPAC,MPAX +1
048450,000056:    6024           52155        SLOAD2             DXCH     MPAC                                  
048451,000057:    6025           34772                           CAF      ZERO                                  #  ZERO MPAC +2
048452,000058: 

Page 1109

048454,000060:                                                                                                  #  AT THE END OF MOST INSTRUCTIONS, CONTROL IS GIVEN TO DANZIG TO DISPATCH THE NEXT OPERATION.
048455,000061: 
048456,000062:    6026           54156                 +2        TS       MPAC       +2                         #  AND DECLARE DP MODE
048457,000063:    6027           54163        NEWMODE            TS       MODE                                  #  PROLOGUE FOR MODE-CHANGING INSTRUCTIONS.
048458,000064: 
048459,000065:    6030           30165        DANZIG             CA       BANKSET                               #  SET BBANK BEFORE TESTING NEWJOB SO THAT
048460,000066:    6031           54006                           TS       BBANK                                 #  IT MAY BE SAVED DIRECTLY BY CHANJOB.
048461,000067: 
048462,000068:    6032           10023        NOIBNKSW           CCS      EDOP                                  #  SEE IF AN ORDER CODE IS LEFT OVER FROM
048463,000069:    6033           16046                           TCF      OPJUMP                                #  THE LAST PAIR RETRIEVED. IF SO, EXECUTE.
048464,000070:                                                                                                  #  EDOP IS SET TO ZERO ON ITS RE-EDITING.
048465,000071: 
048466,000072:    6034           10067                           CCS      NEWJOB                                #  SEE IF A JOB OF HIGHER PRIORITY IS
048467,000073:    6035           15156                           TCF      CHANG2                                #  PRESENT, AND IF SO, CHANGE JOBS.
048468,000074: 
048469,000075:    6036           24164                           INCR     LOC                                   #  ADVANCE THE LOCATION COUNTER.
048470,000076:                                                                                                  #           ITRACE (1) REFERS TO "NEWOPS".
048471,000077:    6037           50164        NEWOPS             INDEX    LOC                                   #  ENTRY TO BEGIN BY PICKING OP CODE PAIR.
048472,000078:    6040           30000                           CA       0                                     #  MAY BE AN OPCODE PAIR OR A STORE CODE.
048473,000079:    6041           10000                           CCS      A                                     #  TEST SIGN AND GET DABS(A).
048474,000080:    6042           16331                           TCF      DOSTORE                               #  PROCESS STORE CODE.
048475,000081: 
048476,000082:    6043           00177        LOW7               OCT      177                                   
048477,000083: 
048478,000084:    6044           54023                           TS       EDOP                                  #  OP CODE PAIR. LEAVE THE OTHER IN EDOP
048479,000085:    6045           76043                           MASK     LOW7                                  #  WHERE  CCS EDOP  WILL HONOR IT NEXT.
048480,000086: 
048481,000087:    6046           54020        OPJUMP             TS       CYR                                   #  LOWWD ENTERS HERE IF A RIGHT-HAND OP
048482,000088:    6047           10020                           CCS      CYR                                   #  CODE IS TO BE PROCESSED. TEST PREFICES.
048483,000089:    6050           16216                           TCF      OPJUMP2                               #  TEST SECOND PREFIX BIT.
048484,000090: 
048485,000091:    6051           16712                           TCF      EXIT                                  #  +0 OP CODE IS EXIT.

Page 1110

048487,000093:                                                                                                  #  PROCESS ADDRESSES WHICH MAY BE DIRECT, INDEXED, OR REFERENCE THE PUSHDOWN LIST.
048488,000094: 
048489,000095:    6052           74770        ADDRESS            MASK     BIT1                                  #  SEE IF ADDRESS IS INDEXED. CYR CONTAINED
048490,000096:    6053           10000                           CCS      A                                     #  400XX, SO BIT 1 IS NOW AS IT WAS IN CYR.
048491,000097:    6054           16115                           TCF      INDEX                                 #  FORM INDEXED ADDRESS.
048492,000098: 
048493,000099:    6055           50164        DIRADRES           INDEX    LOC                                   #  LOOK AHEAD TO NEXT WORD TO SEE IF
048494,000100:    6056           40001        OCT40001           CS       1                                     #  ADDRESS IS GIVEN.
048495,000101:    6057           10000                           CCS      A                                     
048496,000102:    6060           16164                           TCF      PUSHUP                                #  IF NOT.
048497,000103: 
048498,000104:    6061           77773        NEG4               DEC      -4         B-14                       
048499,000105: 
048500,000106:    6062           24164                           INCR     LOC                                   #  IF SO, TO SHOW WE PICKED UP A WORD.
048501,000107:    6063           54116                           TS       ADDRWD                                
048502,000108: 

Page 1111

048504,000110:                                                                                                  #  FINAL DIGESTION OF DIRECT ADDRESSES OF OP CODES WITH 01 PREFIX IS DONE HERE.  IN EACH CASE, THE
048505,000111:                                                                                                  #  REQUIRED 12-BIT SUB-ADDRESS IS LEFT IN ADDRWD, WITH ANY REQUIRED E OR F BANK SWITCHING DONE. ADDRESSES LESS
048506,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.
048507,000113: 
048508,000114:    6064           66220                           AD       -ENDVAC                               #  SEE IF ADDRESS RELATIVE TO WORK AREA.
048509,000115:    6065           10000                           CCS      A                                     
048510,000116:    6066           67676                           AD       -ENDERAS                              #  IF NOT, SEE IF IN GENERAL ERASABLE.
048511,000117:    6067           16074                           TCF      IERASTST                              
048512,000118: 
048513,000119:    6070           30120        NETZERO            CA       FIXLOC                                #  IF SO, LEAVE THE MODIFIED ADDRESS IN
048514,000120:    6071           26116                           ADS      ADDRWD                                #  ADDRWD AND DISPATCH.
048515,000121:    6072           50020        ITR15              INDEX    CYR                                   #  THIS INDEX MAKES THE NEXT INSTRUCTION
048516,000122:    6073           76242                           7        INDJUMP    -1                         #  TCF INDJUMP + OP, EDITING CYR.
048517,000123: 
048518,000124:    6074           00006        IERASTST           EXTEND                                         
048519,000125:    6075           66105                           BZMF     GEADDR                                #  GO PROCESS GENERAL-ERASABLE ADDRESS.
048520,000126: 
048521,000127:    6076           75041                           MASK     LOW10                                 #  FIXED BANK ADDRESS. RESTORE AND ADD B15.
048522,000128:    6077           65041                           AD       LOW10                                 #  SWITCH BANKS AND LEAVE SUBADDRESS IN
048523,000129:    6100           56116                           XCH      ADDRWD                                #  ADDRWD FOR OPERAND RETRIEVAL. (THIS
048524,000130:    6101           60115                           AD       INTBIT15                              #  METHOD PRECLUDES USE OF THE LAST
048525,000131:    6102           54004                           TS       FBANK                                 #  LOCATION IN EACH FBANK.)
048526,000132:    6103           50020        ITR12              INDEX    CYR                                   
048527,000133:    6104           76242                           7        INDJUMP    -1                         
048528,000134: 
048529,000135:    6105           74350        GEADDR             MASK     LOW8                                  
048530,000136:    6106           65024                           AD       OCT1400                               
048531,000137:    6107           56116                           XCH      ADDRWD                                
048532,000138:    6110           54003                           TS       EBANK                                 
048533,000139:    6111           50020        ITR10              INDEX    CYR                                   
048534,000140:    6112           76242                           7        INDJUMP    -1                         
048535,000141: 

Page 1112

048537,000143:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES INTERPRETIVE INDEXED ADDRESSES. AN INTERPRETER INDEX REGISTER MAY
048538,000144:                                                                                                  #  CONTAIN THE ADDRESS OF ANY ERASABLE REGISTER (0-42 BEING RELATIVE TO THE VAC AREA) OR ANY INTERPRETIVE PROGRAM
048539,000145:                                                                                                  #  BANK, OR ANY INTEGER IN THAT RANGE.
048540,000146: 
048541,000147:    6113           37666        DODLOAD*           CAF      DLOAD*                                #  STODL* COMES HERE TO PROCESS LOAD ADR.
048542,000148:    6114           54020                 +1        TS       CYR                                   #  (STOVL* ENTERS HERE).
048543,000149:    6115           30120        INDEX              CA       FIXLOC                                #  SET UP INDEX LOCATION.
048544,000150:    6116           54130                           TS       INDEXLOC                              
048545,000151:    6117           24164                           INCR     LOC                                   #  (ADDRESS ALWAYS GIVEN).
048546,000152:    6120           50164                           INDEX    LOC                                   
048547,000153:    6121           40000                           CS       0                                     
048548,000154:    6122           10000                           CCS      A                                     #  INDEX 2 IF ADDRESS STORED COMPLEMENTED.
048549,000155:    6123           24130                           INCR     INDEXLOC                              
048550,000156:    6124           16125                           NOOP                                           
048551,000157: 
048552,000158:    6125           54116                           TS       ADDRWD                                #  14 BIT ADDRESS TO ADDRWD.
048553,000159:    6126           77675                           MASK     HIGH4                                 #  IF ADDRESS GREATER THAN 2K, ADD INTBIT15
048554,000160:    6127           00006                           EXTEND                                         
048555,000161:    6130           16133                           BZF      INDEX2                                
048556,000162:    6131           30115                           CA       INTBIT15                              
048557,000163:    6132           26116                           ADS      ADDRWD                                
048558,000164: 
048559,000165:    6133           50130        INDEX2             INDEX    INDEXLOC                              
048560,000166:    6134           40046                           CS       X1                                    
048561,000167:    6135           26116                           ADS      ADDRWD                                #  DO AUGMENT, IGNORING AND CORRECTING OVF.
048562,000168: 
048563,000169:    6136           77677                           MASK     HIGH9                                 #  SEE IF ADDRESS IS IN WORK AREA.
048564,000170:    6137           00006                           EXTEND                                         
048565,000171:    6140           16153                           BZF      INDWORK                               
048566,000172:    6141           77675                           MASK     HIGH4                                 #  SEE IF IN FIXED BANK.
048567,000173:    6142           00006                           EXTEND                                         
048568,000174:    6143           16155                           BZF      INDERASE                              
048569,000175: 
048570,000176:    6144           30116                           CA       ADDRWD                                #  IN FIXED - SWITCH BANKS AND CREATE
048571,000177:    6145           54004                           TS       FBANK                                 #  SUB-ADDRESS.
048572,000178:    6146           75041                           MASK     LOW10                                 
048573,000179:    6147           64756                           AD       2K                                    
048574,000180:    6150           54116                           TS       ADDRWD                                
048575,000181:    6151           50020        ITR11              INDEX    CYR                                   
048576,000182:    6152           36242                           3        INDJUMP    -1                         
048577,000183: 
048578,000184:    6153           30120        INDWORK            CA       FIXLOC                                #  MAKE ADDRWD RELATIVE TO WORK AREA.
048579,000185:    6154           16161                           TCF      ITR13      -1                         
048580,000186: 
048581,000187:    6155           35024        INDERASE           CA       OCT1400                               
048582,000188:    6156           56116                           XCH      ADDRWD                                
048583,000189:    6157           54003                           TS       EBANK                                 
048584,000190:    6160           74350                           MASK     LOW8                                  
048585,000191:    6161           26116                 -1        ADS      ADDRWD                                
048586,000192:    6162           50020        ITR13              INDEX    CYR                                   

Page 1113

048588,000194:    6163           36242                           3        INDJUMP    -1                         
048589,000195: 

Page 1114

048591,000197:                                                                                                  #  PUSH-UP ROUTINES. WHEN NO OPERAND ADDRESS IS GIVEN, THE APPROPRIATE OPERAND IS TAKEN FROM THE PUSH-DOWN
048592,000198:                                                                                                  #  LIST. IN MOST CASES THE MODE OF THE RESULT (VECTOR OR SCALAR) OF THE LAST ARITHMETIC OPERATION PERFORMED
048593,000199:                                                                                                  #  IS THE SAME AS THE TYPE OF OPERAND DESIRED (ALL ADD/SUBTRACT ETC.). EXCEPTIONS TO THIS GENERAL RULE ARE LISTED
048594,000200:                                                                                                  #  BELOW (NOTE THAT IN EVERY CASE THE MODE REGISTER IS LEFT INTACT):
048595,000201: 
048596,000202:                                                                                                  #        1.      VXSC AND V/SC WANT THE OPPOSITE TYPE OF OPERAND, E.G., IF THE LAST OPERATION YIELDED A VECTOR
048597,000203:                                                                                                  #                RESULT, VXSC WANTS A SCALAR.
048598,000204: 
048599,000205:                                                                                                  #        2.      THE LOAD CODES SHOULD LOAD THE ACCUMULATOR INDEPENDENT OF THE RESULT OF THE LAST OPERATION. THIS
048600,000206:                                                                                                  #                INCLUDES VLOAD, DLOAD, TLOAD, PDDL, AND PDVL (NO PUSHUP WITH SLOAD).
048601,000207: 
048602,000208:                                                                                                  #        3.      SOME ARITHMETIC OPERATIONS REQUIRE A STANDARD TYPE OF OPERAND REGARDLESS OF THE PREVIOUS OPERATION.
048603,000209:                                                                                                  #                THIS INCLUDES SIGN WANTING DP AND TAD REQUIRING TP.
048604,000210: 
048605,000211:    6164           34351        PUSHUP             CAF      OCT23                                 #  IF THE LOW 5 BITS OF CYR ARE LESS THAN
048606,000212:    6165           70020                           MASK     CYR                                   #  20, THIS OP REQUIRES SPECIAL ATTENTION.
048607,000213:    6166           66171                           AD       -OCT10                                #  (NO -0).
048608,000214:    6167           10000                           CCS      A                                     
048609,000215:    6170           16202                           TCF      REGUP                                 #  FOR ALL CODES GREATER THAN OCT 7.
048610,000216: 
048611,000217:    6171           77767        -OCT10             OCT      -10                                   
048612,000218: 
048613,000219:    6172           66061                           AD       NEG4                                  #  WE NOW HAVE 7 - OP CODE(MOD4).  SEE IF
048614,000220:    6173           10000                           CCS      A                                     #  THE OP CODE (MOD4) IS THREE (REVERSE).
048615,000221:    6174           50000                           INDEX    A                                     #  NO - THE MODE IS DEFINITE. PICK UP THE
048616,000222:    6175           46213                           CS       NO.WDS                                
048617,000223:    6176           16204                           TCF      REGUP      +2                         
048618,000224: 
048619,000225:    6177           50163                           INDEX    MODE                                  #  FOR VXSC AND V/SC WE WANT THE REQUIRED
048620,000226:    6200           46211                           CS       REVCNT                                #  PUSHLOC DECREMENT WITHOUT CHANGING THE
048621,000227:    6201           16204                           TCF      REGUP      +2                         #  MODE AT THIS TIME.
048622,000228: 
048623,000229:    6202           50163        REGUP              INDEX    MODE                                  #  MOST ALL OP CODES PUSHUP HERE.
048624,000230:    6203           46213                           CS       NO.WDS                                
048625,000231:    6204           26166                 +2        ADS      PUSHLOC                               
048626,000232:    6205           54116                           TS       ADDRWD                                
048627,000233:    6206           50020        ITR14              INDEX    CYR                                   
048628,000234:    6207           76242                           7        INDJUMP    -1                         #  (THE INDEX MAKES THIS A TCF.)
048629,000235: 
048630,000236:    6210           00002                           OCT      2                                     #  REVERSE PUSHUP DECREMENT. VECTOR TAKES 2
048631,000237:    6211           00006        REVCNT             OCT      6                                     #  WORDS, SCALAR TAKES 6.
048632,000238:    6212           00006                           OCT      6                                     
048633,000239:    6213           00002        NO.WDS             OCT      2                                     #  CONVENTIONAL DECREMENT IS 6 WORDS VECTOR
048634,000240:    6214           00003        OCTAL3             OCT      3                                     #  2 IN DP, AND 3 IN TP.
048635,000241:    6215           00006                           OCT      6                                     
048636,000242: 

Page 1115

048638,000244:                                                                                                  #  TEST THE SECOND PREFIX BIT TO SEE IF THIS IS A MISCELLANEOUS OR A UNARY/SHORT SHIFT OPERATION.
048639,000245: 
048640,000246:    6216           10020        OPJUMP2            CCS      CYR                                   #  TEST SECOND PREFIX BIT.
048641,000247:    6217           16232                           TCF      OPJUMP3                               #  TEST THIRD BIT TO SEE IF UNARY OR SHIFT.
048642,000248: 
048643,000249:    6220           77722        -ENDVAC            DEC      -45        B-14                       
048644,000250: 
048645,000251:                                                                                                  #  THE FOLLOWING ROUTINE PROCESSES ADDRESSES OF SUFFIX CLASS 10. THEY ARE BASICALLY WORK AREA ADDRESSES
048646,000252:                                                                                                  #  IN THE RANGE 0 - 52, ERASABLE ECADR CONSTANTS FROM 100 - 3777, AND FCADRS ABOVE THAT. ALL 15 BITS ARE AVAILABLE
048647,000253:                                                                                                  #  IN CONTRAST TO SUFFIX 1, IN WHICH ONLY THE LOW ORDER 14 ARE AVAILABLE.
048648,000254: 
048649,000255:    6221           24164        15BITADR           INCR     LOC                                   #  (ENTRY HERE FROM STCALL).
048650,000256:    6222           50164                           INDEX    LOC                                   #  PICK UP ADDRESS WORD.
048651,000257:    6223           30000                           CA       0                                     
048652,000258:    6224           54117                           TS       POLISH                                #  WE MAY NEED A SUBADDRESS LATER.
048653,000259: 
048654,000260:    6225           35042                           CAF      LOW7+2K                               #  THESE INSTRUCTIONS ARE IN BANK 1.
048655,000261:    6226           54004                           TS       FBANK                                 
048656,000262:    6227           70020                           MASK     CYR                                   
048657,000263:    6230           50000        ITR7               INDEX    A                                     
048658,000264:    6231           16303                           TCF      MISCJUMP                              
048659,000265: 

Page 1116

048661,000267:                                                                                                  #  COMPLETE THE DISPATCHING OF UNARY AND SHORT SHIFT OPERATIONS.
048662,000268: 
048663,000269:    6232           54004        OPJUMP3            TS       FBANK                                 #  CALL IN BANK 0 (BITS 11-15 OF A ARE 0.)
048664,000270: 
048665,000271:    6233           10020                           CCS      CYR                                   #  TEST THIRD PREFIX BIT.
048666,000272:    6234           50000                           INDEX    A                                     #  THE DECREMENTED UNARY CODE IS IN BITS
048667,000273:    6235           12000                           TCF      UNAJUMP                               #  1-4 OF A (ZERO, EXIT, HAS BEEN DETECTED)
048668,000274: 
048669,000275:    6236           10163                           CCS      MODE                                  #  ITS A SHORT SHIFT CODE. SEE IF PRESENT
048670,000276:    6237           12017                           TCF      SHORTT                                #  SCALAR OR VECTOR.
048671,000277:    6240           12017                           TCF      SHORTT                                
048672,000278:    6241           12121                           TCF      SHORTV                                #  CALLS THE APPROPRIATE ROUTINE.
048673,000279: 
048674,000280:    6242     4344               FBANKMSK           EQUALS   BANKMASK                              
048675,000281:    6242           00122        LVBUF              ADRES    VBUF                                  
048676,000282: 

Page 1117

048678,000284:                                                                                                  #  THE FOLLOWING IS THE JUMP TABLE FOR OP CODES WHICH MAY HAVE INDEXABLE ADDRESSES OR MAY PUSH UP.
048679,000285: 
048680,000286:    6243           16454        INDJUMP            TCF      VLOAD                                 #  00 - LOAD MPAC WITH A VECTOR.
048681,000287:    6244           17040                           TCF      TAD                                   #  01 - TRIPLE PRECISION ADD TO MPAC.
048682,000288:    6245           17611                           TCF      SIGN                                  #  02 - COMPLEMENT MPAC (V OR SC) IF X NEG.
048683,000289:    6246           17335                           TCF      VXSC                                  #  03 - VECTOR TIMES SCALAR.
048684,000290:    6247           16652                           TCF      CGOTO                                 #  04 - COMPUTED GO TO.
048685,000291:    6250           16437                           TCF      TLOAD                                 #  05 - LOAD MPAC WITH TRIPLE PRECISION.
048686,000292:    6251           16021                           TCF      DLOAD                                 #  06 - LOAD MPAC WITH A DP SCALAR.
048687,000293:    6252           17560                           TCF      V/SC                                  #  07 - VECTOR DIVIDED BY SCALAR.
048688,000294: 
048689,000295:    6253           16450                           TCF      SLOAD                                 #  10 - LOAD MPAC IN SINGLE PRECISION.
048690,000296:    6254           16567                           TCF      SSP                                   #  11 - SET SINGLE PRECISION INTO X.
048691,000297:    6255           16472                           TCF      PDDL                                  #  12 - PUSH DOWN MPAC AND RE-LOAD IN DP.
048692,000298:    6256           17270                           TCF      MXV                                   #  13 - MATRIX POST-MULTIPLIED BY VECTOR.
048693,000299:    6257           16526                           TCF      PDVL                                  #  14 - PUSH DOWN AND VECTOR LOAD.
048694,000300:    6260           16575                           TCF      CCALL                                 #  15 - COMPUTED CALL.
048695,000301:    6261           17273                           TCF      VXM                                   #  16 - MATRIX PRE-MULTIPLIED BY VECTOR.
048696,000302:    6262           17552                           TCF      TSLC                                  #  17 - NORMALIZE MPAC (SCALAR ONLY).
048697,000303: 
048698,000304:    6263           17530                           TCF      DMPR                                  #  20 - DP MULTIPLY AND ROUND.
048699,000305:    6264           17533                           TCF      DDV                                   #  21 - DP DIVIDE BY.
048700,000306:    6265           17537                           TCF      BDDV                                  #  22 - DP DIVIDE INTO.
048701,000307:    6266           17555                           TCF      GSHIFT                                #  23 - GENERAL SHIFT INSTRUCTION.
048702,000308:    6267           16720                           TCF      VAD                                   #  24 - VECTOR ADD.
048703,000309:    6270           16716                           TCF      VSU                                   #  25 - VECTOR SUBTRACT.
048704,000310:    6271           17005                           TCF      BVSU                                  #  26 - VECTOR SUBTRACT FROM.
048705,000311:    6272           17265                           TCF      DOT                                   #  27 - VECTOR DOT PRODUCT.
048706,000312: 
048707,000313:    6273           17414                           TCF      VXV                                   #  30 - VECTOR CROSS PRODUCT.
048708,000314:    6274           17361                           TCF      VPROJ                                 #  31 - VECTOR PROJECTION.
048709,000315:    6275           16754                           TCF      DSU                                   #  32 - DP SUBTRACT.
048710,000316:    6276           17031                           TCF      BDSU                                  #  33 - DP SUBTRACT FROM.
048711,000317:    6277           16744                           TCF      DAD                                   #  34 - DP ADD.
048712,000318:    6300           16300                           TCF      +0                                    #  35 - AVAILABLE
048713,000319:    6301           17526                           TCF      DMP1                                  #  36 - DP MULTIPLY.
048714,000320:    6302           17547                           TCF      SETPD                                 #  37 - SET PUSH DOWN POINTER (DIRECT ONLY)
048715,000321: 
048716,000322:                                                                                                  #  CODES 10 AND 14 MUST NOT PUSH UP. CODE 04 MAY BE USED FOR VECTOR DECLARE BEFORE PUSHUP IF DESIRED.
048717,000323: 

Page 1118

048719,000325:                                                                                                  #  THE FOLLOWING JUMP TABLE APPLIES TO INDEX, BRANCH, AND MISCELLANEOUS INSTRUCTIONS.
048720,000326: 
048721,000327:    6303           12341        MISCJUMP           TCF      AXT                                   #  00 - ADDRESS TO INDEX TRUE.
048722,000328:    6304           12346                           TCF      AXC                                   #  01 - ADDRESS TO INDEX COMPLEMENTED.
048723,000329:    6305           12351                           TCF      LXA                                   #  02 - LOAD INDEX FROM ERASABLE.
048724,000330:    6306           12355                           TCF      LXC                                   #  03 - LOAD INDEX FROM COMPLEMENT OF ERAS.
048725,000331:    6307           12361                           TCF      SXA                                   #  04 - STORE INDEX IN ERASABLE.
048726,000332:    6310           12367                           TCF      XCHX                                  #  05 - EXCHANGE INDEX WITH ERASABLE.
048727,000333:    6311           12403                           TCF      INCR                                  #  06 - INCREMENT INDEX REGISTER.
048728,000334:    6312           12412                           TCF      TIX                                   #  07 - TRANSFER ON INDEX.
048729,000335: 
048730,000336:    6313           12375                           TCF      XAD                                   #  10 - INDEX REGISTER ADD FROM ERASABLE.
048731,000337:    6314           12406                           TCF      XSU                                   #  11 - INDEX SUBTRACT FROM ERASABLE.
048732,000338:    6315           12464                           TCF      BZE/GOTO                              #  12 - BRANCH ZERO AND GOTO.
048733,000339:    6316           12471                           TCF      BPL/BMN                               #  13 - BRANCH PLUS AND BRANCH MINUS.
048734,000340:    6317           12444                           TCF      RTB/BHIZ                              #  14 - RETURN TO BASIC AND BRANCH HI ZERO.
048735,000341:    6320           12504                           TCF      CALL/ITA                              #  15 - CALL AND STORE QPRET.
048736,000342:    6321           12513                           TCF      SW/                                   #  16 - SWITCH INSTRUCTIONS AND AVAILABLE.
048737,000343:    6322           12454                           TCF      BOV(B)                                #  17 - BRANCH ON OVERFLOW TO BASIC OR INT.
048738,000344: 

Page 1119

048740,000346:                                                                                                  #  THE FOLLOWING JUMP TABLE APPIES TO UNARY INSTRUCTIONS.
048741,000347: 
048742,000348: 00,2000                                           SETLOC   INTERB0                               
048743,000349: 00,2000                                           BANK                                           
048744,000350: 
048745,000351: 00,2000                                           COUNT*   $$/INTER                              
048746,000352: 00,2000           13206        UNAJUMP            TCF      SQRT                                  #  01 - SQUARE ROOT.
048747,000353: 00,2001           13525                           TCF      SINE                                  #  02 - SIN.
048748,000354: 00,2002           13514                           TCF      COSINE                                #  03 - COS.
048749,000355: 00,2003           13605                           TCF      ARCSIN                                #  04 - ARC SIN.
048750,000356: 00,2004           13607                           TCF      ARCCOS                                #  05 - ARC COS.
048751,000357: 00,2005           13173                           TCF      DSQ                                   #  06 - DP SQUARE.
048752,000358: 00,2006           12116                           TCF      ROUND                                 #  07 - ROUND TO DP.
048753,000359: 
048754,000360: 00,2007           17624                           TCF      COMP                                  #  10 - COMPLEMENT VECTOR OR SCALAR.
048755,000361: 00,2010           13231                           TCF      VDEF                                  #  11 - VECTOR DEFINE.
048756,000362: 00,2011           13022                           TCF      UNIT                                  #  12 - UNIT VECTOR.
048757,000363: 00,2012           13175                           TCF      ABVALABS                              #  13 - LENGTH OF VECTOR OR MAG OF SCALAR.
048758,000364: 00,2013           13244                           TCF      VSQ                                   #  14 - SQUARE OF LENGTH OF VECTOR.
048759,000365: 00,2014           16323                           TCF      STADR                                 #  15 - PUSH UP ON STORE CODE.
048760,000366: 00,2015           13273                           TCF      RVQ                                   #  16 - RETURN VIA QPRET.
048761,000367: 00,2016           13246                           TCF      PUSH                                  #  17 - PUSH MPAC DOWN.
048762,000368: 

Page 1120

048764,000370:                                                                                                  #  SECTION 2     LOAD AND STORE PACKAGE.
048765,000371: 
048766,000372:                                                                                                  #  A SET OF EIGHT STORE CODES IS PROVIDED AS THE PRIMARY METHOD OF STORING THE MULTI-PURPOSE
048767,000373:                                                                                                  #  ACCUMULATOR (MPAC). IF IN THE DANZIG SECTION LOC REFERS TO AN ALGEBRAICALLY POSITIVE WORD, IT IS TAKEN AS A 
048768,000374:                                                                                                  #  STORE CODE WITH A CORRESPONDING ERASABLE ADDRESS. MOST OF THESE CODES ARE TWO ADDRESS, SPECIFYING THAT THE WORD
048769,000375:                                                                                                  #  FOLLOWING THE STORE CODE IS TO BE USED AS AN ADDRESS FROM WHICH TO RE-LOAD MPAC. FOUR OPTIONS ARE AVAILABLE:
048770,000376: 
048771,000377:                                                                                                  #        1. STORE        STORE MPAC. THE E ADDRESS MAY BE INDEXED.
048772,000378:                                                                                                  #        2. STODL        STORE MPAC AND RE-LOAD IT IN DP WITH THE NEXT ADDRESS (THE LOAD MAY BE INDEXED).
048773,000379:                                                                                                  #        3. STOVL        STORE MPAC AND RE-LOAD A VECTOR (AS ABOVE).
048774,000380:                                                                                                  #        4. STCALL       STORE AND DO A CALL (BOTH ADDRESSES MUST BE DIRECT HERE).
048775,000381: 
048776,000382:                                                                                                  #  STODL AND STOVL WILL TAKE FROM THE PUSH-DOWN LIST IF NO LOAD ADDRESS IS GIVEN.
048777,000383: 
048778,000384:    6000                                           SETLOC   INTERF3                               
048779,000385:    6000                                           BANK                                           
048780,000386: 
048781,000387:    6323                                           COUNT*   $$/INTER                              
048782,000388:    6323           30165        STADR              CA       BANKSET                               #  THE STADR CODE (PUSHUP UP ON STORE
048783,000389:    6324           54004                           TS       FBANK                                 #  ADDRESS) ENTERS HERE.
048784,000390:    6325           24164                           INCR     LOC                                   
048785,000391:    6326           50164        ITR1               INDEX    LOC                                   #  THE STORECODE WAS STORED COMPLEMENTED TO
048786,000392:    6327           40000                           CS       0                                     #  MAKE IT LOOK LIKE AN OPCODE PAIR.
048787,000393:    6330           67702                           AD       NEGONE                                #  (YUL CANT REMOVE 1 BECAUSE OF EARLY CCS)
048788,000394: 
048789,000395:    6331           54116        DOSTORE            TS       ADDRWD                                
048790,000396:    6332           74347                           MASK     LOW11                                 #  ENTRY FROM DISPATCHER. SAVE THE ERASABLE
048791,000397:    6333           56116                           XCH      ADDRWD                                #  ADDRESS AND JUMP ON THE STORE CODE NO.
048792,000398:    6334           77656                           MASK     B12T14                                
048793,000399:    6335           00006                           EXTEND                                         
048794,000400:    6336           74764                           MP       BIT5                                  #  EACH TRANSFER VECTOR ENTRY IS TWO WORDS.
048795,000401:    6337           50000        ITR0               INDEX    A                                     
048796,000402:    6340           16341                           TCF      STORJUMP                              
048797,000403: 

Page 1121

048799,000405:                                                                                                  #  STORE CODE JUMP TABLE. CALLS THE APPROPRIATE STORING ROUTINE AND EXITS TO DANZIG OR TO ADDRESS WITH
048800,000406:                                                                                                  #  A SUPPLIED OPERATION CODE.
048801,000407: 
048802,000408:                                                                                                  #  STORE STORE,1 AND STORE,2 RETURN TO DANZIG, THUS RESETTING THE EBANK TO ITS STATE AT INTPRET.
048803,000409: 
048804,000410:    6341           06371        STORJUMP           TC       STORE                                 #  STORE.
048805,000411:    6342           16030                           TCF      DANZIG                                #  PICK UP NEW OP CODE(S).
048806,000412:    6343           06363                           TC       STORE,1                               
048807,000413:    6344           16030                           TCF      DANZIG                                
048808,000414:    6345           06366                           TC       STORE,2                               
048809,000415:    6346           16030                           TCF      DANZIG                                
048810,000416: 
048811,000417:    6347           06371                           TC       STORE                                 #  STODL.
048812,000418:    6350           16427                           TCF      DODLOAD                               
048813,000419: 
048814,000420:    6351           06371                           TC       STORE                                 #  STODL WITH INDEXED LOAD ADDRESS.
048815,000421:    6352           16113                           TCF      DODLOAD*                              
048816,000422: 
048817,000423:    6353           06371                           TC       STORE                                 #  STOVL.
048818,000424:    6354           16432                           TCF      DOVLOAD                               
048819,000425: 
048820,000426:    6355           06371                           TC       STORE                                 #  STOVL WITH INDEXED LOAD ADDRESS.
048821,000427:    6356           16435                           TCF      DOVLOAD*                              
048822,000428:    6357           06371                           TC       STORE                                 #  STOTC.
048823,000429:    6360           35002                           CAF      CALLCODE                              
048824,000430:    6361           54020                           TS       CYR                                   
048825,000431:    6362           16221                           TCF      15BITADR                              #  GET A 15 BIT ADDRESS.
048826,000432: 

Page 1122

048828,000434:                                                                                                  #  STORE CODE ADDRESS PROCESSOR.
048829,000435: 
048830,000436:    6363           50120        STORE,1            INDEX    FIXLOC                                
048831,000437:    6364           40046                           CS       X1                                    
048832,000438:    6365           16370                           TCF      PRESTORE                              
048833,000439: 
048834,000440:    6366           50120        STORE,2            INDEX    FIXLOC                                
048835,000441:    6367           40047                           CS       X2                                    
048836,000442:    6370           26116        PRESTORE           ADS      ADDRWD                                #  RESULTANT ADDRESS IS IN ERASABLE.
048837,000443: 
048838,000444:    6371           40116        STORE              CS       ADDRWD                                
048839,000445:    6372           65006                           AD       DEC45                                 
048840,000446:    6373           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
048841,000447:    6374           30120                           CA       FIXLOC                                #  YES.
048842,000448:    6375           16402                           TCF      AHEAD5                                
048843,000449:    6376           35024                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
048844,000450:    6377           56116                           XCH      ADDRWD                                
048845,000451:    6400           54003                           TS       EBANK                                 
048846,000452:    6401           74350                           MASK     LOW8                                  
048847,000453:    6402           26116        AHEAD5             ADS      ADDRWD                                
048848,000454: 

Page 1123

048850,000456:                                                                                                  #  STORING ROUTINES. STORE DP, TP, OR VECTOR AS INDICATED BY MODE.
048851,000457: 
048852,000458:    6403           00006        STARTSTO           EXTEND                                         #  MPAC,+1 MUST BE STORED IN ANY EVENT.
048853,000459:                                                                                                  #  ITRACE (5) REFERS TO "STARTSTO".
048854,000460:    6404           30155                           DCA      MPAC                                  
048855,000461:    6405           50116                           INDEX    ADDRWD                                
048856,000462:    6406           52001                           DXCH     0                                     
048857,000463: 
048858,000464:    6407           10163                           CCS      MODE                                  
048859,000465:    6410           16423                           TCF      TSTORE                                
048860,000466:    6411           00002                           TC       Q                                     
048861,000467: 
048862,000468:    6412           00006        VSTORE             EXTEND                                         
048863,000469:    6413           30160                           DCA      MPAC       +3                         
048864,000470:    6414           50116                           INDEX    ADDRWD                                
048865,000471:    6415           52003                           DXCH     2                                     
048866,000472: 
048867,000473:    6416           00006                           EXTEND                                         
048868,000474:    6417           30162                           DCA      MPAC       +5                         
048869,000475:    6420           50116                           INDEX    ADDRWD                                
048870,000476:    6421           52005                           DXCH     4                                     
048871,000477:    6422           00002                           TC       Q                                     
048872,000478: 
048873,000479:    6423           30156        TSTORE             CA       MPAC       +2                         
048874,000480:    6424           50116                           INDEX    ADDRWD                                
048875,000481:    6425           54002                           TS       2                                     
048876,000482:    6426           00002                           TC       Q                                     
048877,000483: 

Page 1124

048879,000485:                                                                                                  #  ROUTINES TO BEGIN PROCESSING OF THE SECOND ADDRESS ASSOCIATED WITH ALL STORE-TYPE CODES EXCEPT STORE
048880,000486:                                                                                                  #  ITSELF.
048881,000487: 
048882,000488:    6427           37665        DODLOAD            CAF      DLOADCOD                              
048883,000489:    6430           54020                           TS       CYR                                   
048884,000490:    6431           16055                           TCF      DIRADRES                              #  GO GET A DIRECT ADDRESS.
048885,000491: 
048886,000492:    6432           34752        DOVLOAD            CAF      VLOADCOD                              
048887,000493:    6433           54020                           TS       CYR                                   
048888,000494:    6434           16055                           TCF      DIRADRES                              
048889,000495: 
048890,000496:    6435           36056        DOVLOAD*           CAF      VLOAD*                                
048891,000497:    6436           16114                           TCF      DODLOAD*   +1                         #  PROLOGUE TO INDEX ROUTINE.
048892,000498: 

Page 1125

048894,000500:                                                                                                  #  THE FOLLOWING LOAD INSTRUCTIONS ARE PROVIDED FOR LOADING THE MULTI-PURPOSE ACCUMULATOR MPAC.
048895,000501: 
048896,000502:    6437           50116        TLOAD              INDEX    ADDRWD                                
048897,000503:    6440           30002                           CA       2                                     #  LOAD A TRIPLE PRECISION ARGUMENT INTO
048898,000504:    6441           54156                           TS       MPAC       +2                         #  THE FIRST THREE MPAC REGISTERS, WITH THE
048899,000505:    6442           00006                           EXTEND                                         #  CONTENTS OF THE OTHER FOUR IRRELEVANT.
048900,000506:    6443           50116                           INDEX    ADDRWD                                
048901,000507:    6444           30001                           DCA      0                                     
048902,000508:    6445           52155                           DXCH     MPAC                                  
048903,000509:    6446           34770        TMODE              CAF      ONE                                   
048904,000510:    6447           16027                           TCF      NEWMODE                               #  DECLARE TRIPLE PRECISION MODE.
048905,000511: 
048906,000512:    6450           22007        SLOAD              ZL                                             #  LOAD A SINGLE PRECISION NUMBER INTO
048907,000513:    6451           50116                           INDEX    ADDRWD                                #  MPAC, SETTING MPAC+1,2 TO ZERO. THE
048908,000514:    6452           30000                           CA       0                                     #  CONTENTS OF THE REMAINING MPAC REGISTERS
048909,000515:    6453           16024                           TCF      SLOAD2                                #  ARE IRRELEVANT.
048910,000516: 
048911,000517:    6454           00006        VLOAD              EXTEND                                         #  LOAD A DOUBLE PRECISION VECTOR INTO
048912,000518:    6455           50116                           INDEX    ADDRWD                                #  MPAC,+1, MPAC+3,4, AND MPAC+5,6. THE
048913,000519:    6456           30001                           DCA      0                                     #  CONTENTS OF MPAC +2 ARE IRRELEVANT.
048914,000520:    6457           52155                           DXCH     MPAC                                  
048915,000521: 
048916,000522:    6460           00006        ENDVLOAD           EXTEND                                         #  PDVL COMES HERE TO FINISH UP FOR DP, TP.
048917,000523:    6461           50116                           INDEX    ADDRWD                                
048918,000524:    6462           30003                           DCA      2                                     
048919,000525:    6463           52160                           DXCH     MPAC       +3                         
048920,000526: 
048921,000527:    6464           00006                 +4        EXTEND                                         #  TPDVL FINISHES HERE.
048922,000528:    6465           50116                           INDEX    ADDRWD                                
048923,000529:    6466           30005                           DCA      4                                     
048924,000530:    6467           52162                           DXCH     MPAC       +5                         
048925,000531: 
048926,000532:    6470           44770        VMODE              CS       ONE                                   #  DECLARE VECTOR MODE.
048927,000533:    6471           16027                           TCF      NEWMODE                               
048928,000534: 

Page 1126

048930,000536:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE PROVIDED FOR STORING OPERANDS IN THE PUSHDOWN LIST:
048931,000537:                                                                                                  #        1.      PUSH            PUSHDOWN AND NO LOAD.
048932,000538:                                                                                                  #        2.      PDDL            PUSHDOWN AND DOUBLE PRECISION LOAD.
048933,000539:                                                                                                  #        3.      PDVL            PUSHDOWN AND VECTOR LOAD.
048934,000540: 
048935,000541:    6472           00006        PDDL               EXTEND                                         
048936,000542:    6473           50116                           INDEX    ADDRWD                                #  LOAD MPAC,+1, PUSHING THE FORMER
048937,000543:    6474           30001                           DCA      0                                     #  CONTENTS DOWN.
048938,000544:    6475           52155                           DXCH     MPAC                                  
048939,000545:    6476           50166                           INDEX    PUSHLOC                               
048940,000546:    6477           52001                           DXCH     0                                     
048941,000547: 
048942,000548:    6500           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER APPRO-
048943,000549:    6501           36213                           CAF      NO.WDS                                #  PRIATELY.
048944,000550:    6502           26166                           ADS      PUSHLOC                               
048945,000551: 
048946,000552:    6503           10163                           CCS      MODE                                  
048947,000553:    6504           16521                           TCF      ENDTPUSH                              
048948,000554:    6505           16517                           TCF      ENDDPUSH                              
048949,000555: 
048950,000556:    6506           54163                           TS       MODE                                  #  NOW DP.
048951,000557:    6507           54156        ENDVPUSH           TS       MPAC       +2                         
048952,000558:    6510           52160                           DXCH     MPAC       +3                         #  PUSH DOWN THE REST OF THE VECTOR HERE.
048953,000559:    6511           50166                           INDEX    PUSHLOC                               
048954,000560:    6512           51775                           DXCH     0          -4                         
048955,000561: 
048956,000562:    6513           52162                           DXCH     MPAC       +5                         
048957,000563:    6514           50166                           INDEX    PUSHLOC                               
048958,000564:    6515           51777                           DXCH     0          -2                         
048959,000565: 
048960,000566:    6516           16030                           TCF      DANZIG                                
048961,000567: 
048962,000568:    6517           54156        ENDDPUSH           TS       MPAC       +2                         #  SET MPAC +2 TO ZERO AND EXIT ON DP.
048963,000569:    6520           16030                           TCF      DANZIG                                
048964,000570: 
048965,000571:    6521           54163        ENDTPUSH           TS       MODE                                  
048966,000572:    6522           56156                           XCH      MPAC       +2                         #  ON TRIPLE, SET MPAC +2 TO ZERO, PUSHING
048967,000573:    6523           50166                 +2        INDEX    PUSHLOC                               #  DOWN THE OLD CONTENTS
048968,000574:    6524           53777                           TS       0          -1                         
048969,000575:    6525           16030                           TCF      DANZIG                                
048970,000576: 

Page 1127

048972,000578:                                                                                                  #  PDVL - PUSHDOWN AND VECTOR LOAD.
048973,000579: 
048974,000580:    6526           00006        PDVL               EXTEND                                         #  RELOAD MPAC AND PUSH DOWN ITS CONTENTS.
048975,000581:    6527           50116                           INDEX    ADDRWD                                
048976,000582:    6530           30001                           DCA      0                                     
048977,000583:    6531           52155                           DXCH     MPAC                                  
048978,000584:    6532           50166                           INDEX    PUSHLOC                               
048979,000585:    6533           52001                           DXCH     0                                     
048980,000586: 
048981,000587:    6534           50163                           INDEX    MODE                                  #  ADVANCE THE PUSHDOWN POINTER.
048982,000588:    6535           36213                           CAF      NO.WDS                                
048983,000589:    6536           26166                           ADS      PUSHLOC                               
048984,000590: 
048985,000591:    6537           10163                           CCS      MODE                                  #  TEST PAST MODE.
048986,000592:    6540           16557                           TCF      TPDVL                                 
048987,000593:    6541           16460                           TCF      ENDVLOAD                              #  JUST LOAD LAST FOUR REGISTERS ON DP.
048988,000594: 
048989,000595:    6542           00006        VPDVL              EXTEND                                         #  PUSHDOWN AND RE-LOAD LAST TWO COMPONENTS
048990,000596:    6543           50116                           INDEX    ADDRWD                                
048991,000597:    6544           30003                           DCA      2                                     
048992,000598:    6545           52160                           DXCH     MPAC       +3                         
048993,000599:    6546           50166                           INDEX    PUSHLOC                               
048994,000600:    6547           51775                           DXCH     0          -4                         
048995,000601: 
048996,000602:    6550           00006                           EXTEND                                         
048997,000603:    6551           50116                           INDEX    ADDRWD                                
048998,000604:    6552           30005                           DCA      4                                     
048999,000605:    6553           52162                           DXCH     MPAC       +5                         
049000,000606:    6554           50166                           INDEX    PUSHLOC                               
049001,000607:    6555           51777                           DXCH     0          -2                         
049002,000608: 
049003,000609:    6556           16030                           TCF      DANZIG                                
049004,000610: 
049005,000611:    6557           00006        TPDVL              EXTEND                                         #  ON TP, WE MUST LOAD THE Y COMPONENT
049006,000612:    6560           50116                           INDEX    ADDRWD                                #  BEFORE STORING MPAC +2 IN CASE THIS IS A
049007,000613:    6561           30003                           DCA      2                                     #  PUSHUP.
049008,000614:    6562           52160                           DXCH     MPAC       +3                         
049009,000615: 
049010,000616:    6563           30156                           CA       MPAC       +2                         
049011,000617:    6564           50166                           INDEX    PUSHLOC                               #  IN DP.
049012,000618:    6565           53777                           TS       0          -1                         
049013,000619:    6566           16464                           TCF      ENDVLOAD   +4                         
049014,000620: 
049015,000621:                                                                                                  #  SSP (STORE SINGLE PRECISION) IS EXECUTED HERE.
049016,000622: 
049017,000623:    6567           24164        SSP                INCR     LOC                                   #  PICK UP THE WORD FOLLOWING THE GIVEN
049018,000624:    6570           50164                           INDEX    LOC                                   #  ADDRESS AND STORE IT AT X.
049019,000625:    6571           30000                           CA       0                                     
049020,000626:    6572           50116        STORE1             INDEX    ADDRWD                                #  SOME INDEX AND MISCELLANEOUS OPS END
049021,000627:    6573           54000                           TS       0                                     #  HERE.

Page 1128

049023,000629:    6574           16030                           TCF      DANZIG                                
049024,000630: 

Page 1129

049026,000632:                                                                                                  #  SEQUENCE CHANGING AND SUBROUTINE CALLING OPTIONS.
049027,000633: 
049028,000634:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR SEQUENCING CHANGING, BRANCHING, AND CALLING SUBROUTINES:
049029,000635: 
049030,000636:                                                                                                  #        1.      GOTO            GO TO.
049031,000637:                                                                                                  #        2.      CALL            CALL SUBROUTINE SETTING QPRET.
049032,000638:                                                                                                  #        3.      CGOTO           COMPUTED GO TO.
049033,000639:                                                                                                  #        4.      CCALL           COMPUTED CALL.
049034,000640:                                                                                                  #        7.      BPL             BRANCH IF MPAC POSITIVE OR ZERO.
049035,000641:                                                                                                  #        8.      BZE             BRANCH IF MPAC ZERO.
049036,000642:                                                                                                  #        9.      BMN             BRANCH IF MPAC NEGATIVE NON-ZERO.
049037,000643: 
049038,000644:    6575           24164        CCALL              INCR     LOC                                   #  MAINTAIN LOC FOR QPRET COMPUTATION.
049039,000645:    6576           50164                           INDEX    LOC                                   
049040,000646:    6577           30000                           CAF      0                                     #  GET BASE ADDRESS OF CADR LIST.
049041,000647:    6600           50116                           INDEX    ADDRWD                                
049042,000648:    6601           60000                           AD       0                                     #  ADD INCREMENT.
049043,000649:    6602           54004                           TS       FBANK                                 #  SELECT DESIRED CADR.
049044,000650:    6603           75041                           MASK     LOW10                                 
049045,000651:    6604           50000                           INDEX    A                                     
049046,000652:    6605           32000                           CAF      10000                                 
049047,000653:    6606           54117                           TS       POLISH                                
049048,000654: 
049049,000655:    6607           30165        CALL               CA       BANKSET                               #  FOR ANY OF THE CALL OPTIONS, MAKE UP THE
049050,000656:    6610           74344                           MASK     BANKMASK                              #  ADDRESS OF THE NEXT OP-CODE PAIR/STORE
049051,000657:    6611           64344                           AD       BANKMASK                              #  CODE AND LEAVE IT IN QPRET.  NOTE THAT
049052,000658:    6612           60164                           AD       LOC                                   #  BANKMASK = -(2000 - 1).
049053,000659:    6613           50120                           INDEX    FIXLOC                                
049054,000660:    6614           54052                           TS       QPRET                                 
049055,000661: 
049056,000662:    6615           30117        GOTO               CA       POLISH                                #  BASIC BRANCHING SEQUENCE.
049057,000663:    6616           77675                 +1        MASK     HIGH4                                 
049058,000664:    6617           00006                           EXTEND                                         
049059,000665:    6620           16631                           BZF      GOTOERS                               #  SEE IF ADDRESS POINTS TO FIXED OR ERAS.
049060,000666:    6621           30165                 +4        CA       BANKSET                               #  SET EBANK PART OF BBANK. NEXT, SET UP
049061,000667:    6622           54006                           TS       BBANK                                 #  FBANK. THE COMBINATION IS PICKED UP &
049062,000668:    6623           30117                           CA       POLISH                                #  PUT INTO BANKSET AT INTPRET +2.
049063,000669:    6624           54004                           TS       FBANK                                 
049064,000670:    6625           75041                           MASK     LOW10                                 
049065,000671:    6626           64756                           AD       2K                                    
049066,000672:    6627           54164                           TS       LOC                                   
049067,000673:    6630           16011                           TCF      INTPRET    +3                         
049068,000674: 
049069,000675:    6631  E3,1400                                  EBANK=   1400                                  #  SO YUL DOESN'T CUSS THE "CA 1400" BELOW.
049070,000676: 
049071,000677:    6631           30117        GOTOERS            CA       POLISH                                #  THE GIVEN ADDRESS IS IN ERASABLE - SEE
049072,000678:    6632           66220                           AD       -ENDVAC                               #  IF RELATIVE TO THE WORK AREA.
049073,000679:    6633           10000                           CCS      A                                     
049074,000680:    6634           30117                           CA       POLISH                                #  GENERAL ERASABLE.
049075,000681:    6635           16644                           TCF      GOTOGE                                

Page 1130

049077,000683:    6636           30120                           CA       FIXLOC                                #  WORK AREA.
049078,000684:    6637           60117                           AD       POLISH                                
049079,000685:    6640           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
049080,000686:    6641           30000                           CA       0                                     #  THE BRANCH ADDRESS.
049081,000687:    6642           54117                           TS       POLISH                                
049082,000688:    6643           16616                           TCF      GOTO       +1                         #  ALLOWS ARBITRARY INDIRECTNESS LEVELS.
049083,000689: 
049084,000690:    6644           54003        GOTOGE             TS       EBANK                                 
049085,000691:    6645           74350                           MASK     LOW8                                  
049086,000692:    6646           50000                           INDEX    A                                     #  USE THE GIVEN ADDRESS AS THE ADDRESS OF
049087,000693:    6647           31400                           CA       1400                                  #  THE BRANCH ADDRESS.
049088,000694:    6650           54117                           TS       POLISH                                
049089,000695:    6651           16616                           TCF      GOTO       +1                         
049090,000696: 
049091,000697:    6652           50164        CGOTO              INDEX    LOC                                   #  COMPUTED GO TO. PICK UP ADDRESS OF CADR
049092,000698:    6653           30001                           CA       1                                     #  LIST.
049093,000699:    6654           50116                           INDEX    ADDRWD                                #  ADD MODIFIER.
049094,000700:    6655           60000                           AD       0                                     
049095,000701:    6656           54004                           TS       FBANK                                 #  SELECT GOTO ADDRESS.
049096,000702:    6657           75041                           MASK     LOW10                                 
049097,000703:    6660           50000                           INDEX    A                                     
049098,000704:    6661           32000                           CA       10000                                 
049099,000705:    6662           54117                           TS       POLISH                                
049100,000706:    6663           16616                           TCF      GOTO       +1                         #  WITH ADDRESS IN A.
049101,000707: 
049102,000708:    6664           30165        SWBRANCH           CA       BANKSET                               #  SWITCH INSTRUCTIONS WHICH ELECT TO
049103,000709:    6665           54004                           TS       FBANK                                 #  BRANCH COME HERE TO DO SO.
049104,000710:    6666           50164                           INDEX    LOC                                   
049105,000711:    6667           30001                           CA       1                                     
049106,000712:    6670           54117                           TS       POLISH                                
049107,000713:    6671           16616                           TCF      GOTO       +1                         
049108,000714: 

Page 1131

049110,000716:                                                                                                  #  TRIPLE PRECISION BRANCHING ROUTINE. IF CALLING TC IS AT L, RETURN IS AS FOLLOWS:
049111,000717: 
049112,000718:                                                                                                  #        L+1     IF MPAC IS GREATER THAN ZERO.
049113,000719:                                                                                                  #        L+2     IF MPAC IS EQUAL TO +0 OR -0.
049114,000720:                                                                                                  #        L+3     IF MPAC IS LESS THAN ZERO.
049115,000721: 
049116,000722:    6672           10154        BRANCH             CCS      MPAC                                  
049117,000723:    6673           00002                           TC       Q                                     
049118,000724:    6674           16676                           TCF      +2                                    #  ON ZERO.
049119,000725:    6675           16710                           TCF      NEG                                   
049120,000726: 
049121,000727:    6676           10155                           CCS      MPAC       +1                         
049122,000728:    6677           00002                           TC       Q                                     
049123,000729:    6700           16702                           TCF      +2                                    
049124,000730:    6701           16710                           TCF      NEG                                   
049125,000731: 
049126,000732:    6702           10156                           CCS      MPAC       +2                         
049127,000733:    6703           00002                           TC       Q                                     
049128,000734:    6704           16706                           TCF      +2                                    
049129,000735:    6705           16710                           TCF      NEG                                   
049130,000736: 
049131,000737:    6706           50002        Q+1                INDEX    Q                                     
049132,000738:    6707           00001                           TC       1                                     
049133,000739: 
049134,000740:    6710           50002        NEG                INDEX    Q                                     #  IF FIRST NON-ZERO REGISTER WAS NEGATIVE.
049135,000741:    6711           00002        TCQ                TC       2                                     
049136,000742: 
049137,000743:    6712     6710               Q+2                =        NEG                                   
049138,000744: 
049139,000745:                                                                                                  #  ITRACE (3) REFERS TO "EXIT".
049140,000746: 
049141,000747:    6712           30165        EXIT               CA       BANKSET                               #  RESTORE USER'S BANK SETTING, AND LEAVE
049142,000748:    6713           54006                           TS       BBANK                                 #  INTERPRETIVE MODE.
049143,000749:    6714           50164                           INDEX    LOC                                   
049144,000750:    6715           00001                           TC       1                                     
049145,000751: 

Page 1132

049147,000753:                                                                                                  #  SECTION 3 - ADD/SUBTRACT PACKAGE.
049148,000754: 
049149,000755:                                                                                                  #  THE FOLLOWING OPERATIONS ARE PROVIDED FOR ADDING TO AND SUBTRACTING FROM THE MULTI-PURPOSE ACCUMULATOR
049150,000756:                                                                                                  #  MPAC:
049151,000757: 
049152,000758:                                                                                                  #        1.      DAD             DOUBLE PRECISION ADD.
049153,000759:                                                                                                  #        2.      DSU             DOUBLE PRECISION SUBTRACT.
049154,000760:                                                                                                  #        3.      BDSU            DOUBLE PRECISION SUBTRACT FROM.
049155,000761: 
049156,000762:                                                                                                  #        4.      TAD             TRIPLE PRECISION ADD.
049157,000763: 
049158,000764:                                                                                                  #        5.      VAD             VECTOR ADD.
049159,000765:                                                                                                  #        6.      VSU             VECTOR SUBTRACT.
049160,000766:                                                                                                  #        7.      BVSU            VECTOR SUBTRACT FROM.
049161,000767: 
049162,000768:                                                                                                  #  THE INTERPRETIVE OVERFLOW INDICATOR OVFIND IS SET NON-ZERO IF OVERFLOW OCCURS IN ANY OF THE ABOVE.
049163,000769: 
049164,000770:    6716           34752        VSU                CAF      BIT15                                 #  CHANGES 0 TO DCS.
049165,000771:    6717           16721                           TCF      +2                                    
049166,000772: 
049167,000773:    6720           34346        VAD                CAF      PRIO30                                #  CHANGES 0 TO DCA.
049168,000774:    6721           26116                           ADS      ADDRWD                                
049169,000775:    6722           00006                           EXTEND                                         
049170,000776:    6723           50116                           INDEX    ADDRWD                                
049171,000777:    6724           00003                           READ     HISCALAR                              #  DCA  2   OR   DCS  2
049172,000778:    6725           20160                           DAS      MPAC       +3                         
049173,000779:    6726           00006                           EXTEND                                         #  CHECK OVERFLOW.
049174,000780:    6727           16731                           BZF      +2                                    
049175,000781:    6730           06763                           TC       OVERFLWY                              
049176,000782: 
049177,000783:    6731           00006                           EXTEND                                         
049178,000784:    6732           50116                           INDEX    ADDRWD                                
049179,000785:    6733           00005                           READ     CHAN5                                 #  DCA  4   OR   DCS  4
049180,000786:    6734           20162                           DAS      MPAC       +5                         
049181,000787:    6735           00006                           EXTEND                                         
049182,000788:    6736           16740                           BZF      +2                                    
049183,000789:    6737           06760                           TC       OVERFLWZ                              
049184,000790: 
049185,000791:    6740           00006                           EXTEND                                         
049186,000792:    6741           50116                           INDEX    ADDRWD                                
049187,000793:    6742           00001                           READ     LCHAN                                 #  DCA  0   OR   DCS  0
049188,000794:    6743           16747                           TCF      ENDVXV                                
049189,000795: 
049190,000796:    6744           00006        DAD                EXTEND                                         
049191,000797:    6745           50116                           INDEX    ADDRWD                                
049192,000798:    6746           30001                           DCA      0                                     
049193,000799:    6747           20155        ENDVXV             DAS      MPAC                                  #  VXV FINISHES HERE.
049194,000800:    6750           00006                           EXTEND                                         
049195,000801:    6751           16030                           BZF      DANZIG                                
049196,000802: 

Page 1133

049198,000804:    6752           06766        SETOVF             TC       OVERFLOW                              
049199,000805:    6753           16030                           TCF      DANZIG                                
049200,000806: 

Page 1134

049202,000808:    6754           00006        DSU                EXTEND                                         
049203,000809:    6755           50116                           INDEX    ADDRWD                                
049204,000810:    6756           40001                           DCS      0                                     
049205,000811:    6757           16747                           TCF      ENDVXV                                
049206,000812: 
049207,000813:    6760           54001        OVERFLWZ           TS       L                                     #  ENTRY FOR THIRD COMPONENT.
049208,000814:    6761           34773                           CAF      FIVE                                  
049209,000815:    6762           16765                           TCF      +3                                    
049210,000816: 
049211,000817:    6763           54001        OVERFLWY           TS       L                                     #  ENTRY FOR SECOND COMPONENT.
049212,000818:    6764           36214                           CAF      THREE                                 
049213,000819:    6765           56001                           XCH      L                                     
049214,000820: 
049215,000821:    6766           50000        OVERFLOW           INDEX    A                                     #  ENTRY FOR 1ST COMP OR DP (L=0).
049216,000822:    6767           44751                           CS       LIMITS                                #  PICK UP POSMAX OR NEGMAX.
049217,000823:    6770           54130                           TS       BUF                                   
049218,000824:    6771           00006                           EXTEND                                         
049219,000825:    6772           24000                           AUG      A                                     
049220,000826:    6773           50001                           INDEX    L                                     
049221,000827:    6774           26155                           ADS      MPAC       +1                         
049222,000828:    6775           54007                           TS       7                                     
049223,000829:    6776           34772                           CAF      ZERO                                  
049224,000830:    6777           60130                           AD       BUF                                   
049225,000831:    7000           50001                           INDEX    L                                     
049226,000832:    7001           26154                           ADS      MPAC                                  
049227,000833:    7002           54007                           TS       7                                     
049228,000834:    7003           00002                           TC       Q                                     #  NO OVERFLOW EXIT.
049229,000835:    7004           17121                           TCF      SETOVF2                               #  SET OVFIND AND EXIT.
049230,000836: 
049231,000837:    7005           00006        BVSU               EXTEND                                         
049232,000838:    7006           50116                           INDEX    ADDRWD                                
049233,000839:    7007           30003                           DCA      2                                     
049234,000840:    7010           52160                           DXCH     MPAC       +3                         
049235,000841:    7011           00006                           EXTEND                                         
049236,000842:    7012           40001                           DCOM                                           
049237,000843:    7013           20160                           DAS      MPAC       +3                         
049238,000844:    7014           00006                           EXTEND                                         
049239,000845:    7015           17017                           BZF      +2                                    
049240,000846:    7016           06763                           TC       OVERFLWY                              
049241,000847: 
049242,000848:    7017           00006                           EXTEND                                         
049243,000849:    7020           50116                           INDEX    ADDRWD                                
049244,000850:    7021           30005                           DCA      4                                     
049245,000851:    7022           52162                           DXCH     MPAC       +5                         
049246,000852:    7023           00006                           EXTEND                                         
049247,000853:    7024           40001                           DCOM                                           
049248,000854:    7025           20162                           DAS      MPAC       +5                         
049249,000855:    7026           00006                           EXTEND                                         
049250,000856:    7027           17031                           BZF      +2                                    
049251,000857:    7030           06760                           TC       OVERFLWZ                              
049252,000858: 

Page 1135

049254,000860:    7031           00006        BDSU               EXTEND                                         
049255,000861:    7032           50116                           INDEX    ADDRWD                                
049256,000862:    7033           30001                           DCA      0                                     
049257,000863:    7034           52155                           DXCH     MPAC                                  
049258,000864:    7035           00006                           EXTEND                                         
049259,000865:    7036           40001                           DCOM                                           
049260,000866:    7037           16747                           TCF      ENDVXV                                
049261,000867: 

Page 1136

049263,000869:                                                                                                  #  TRIPLE PRECISION ADD ROUTINE.
049264,000870: 
049265,000871:    7040           00006        TAD                EXTEND                                         
049266,000872:    7041           50116                           INDEX    ADDRWD                                
049267,000873:    7042           30002                           DCA      1                                     #  ADD MINOR PARTS FIRST.
049268,000874:    7043           20156                           DAS      MPAC       +1                         
049269,000875:    7044           50116                           INDEX    ADDRWD                                
049270,000876:    7045           60000                           AD       0                                     
049271,000877:    7046           60154                           AD       MPAC                                  
049272,000878:    7047           54154                           TS       MPAC                                  
049273,000879:    7050           16030                           TCF      DANZIG                                
049274,000880: 
049275,000881:    7051           16752                           TCF      SETOVF                                #  SET OVFIND IF SUCH OCCURS.
049276,000882: 

Page 1137

049278,000884:                                                                                                  #  ARITHMETIC SUBROUTINES REQUIRED IN FIXED-FIXED.
049279,000885: 
049280,000886:                                                                                                  #        1.  DMPSUB      DOUBLE PRECISION MULTIPLY. MULTIPLY THE CONTENTS OF MPAC,+1 BY THE DP WORD WHOSE ADDRESS
049281,000887:                                                                                                  #                        IS IN ADDRWD AND LEAVE A TRIPLE PRECISION RESULT IN MPAC.
049282,000888:                                                                                                  #        2.  ROUNDSUB    ROUND THE TRIPLE PRECISON CONTENTS OF MPAC TO DOUBLE PRECISION.
049283,000889:                                                                                                  #        3.  DOTSUB      TAKE THE DOT PRODUCT OF THE VECTOR IN MPAC AND THE VECTOR WHOSE ADDRESS IS IN ADDRWD
049284,000890:                                                                                                  #                        AND LEAVE THE TRIPLE PRECISION RESULT IN MPAC.
049285,000891:                                                                                                  #        4.  POLY        USING THE CONTENTS OF MPAC AS A DP ARGUMENT, EVALUATE THE POLYNOMIAL WHOSE DEGREE AND
049286,000892:                                                                                                  #                        COEFFICIENTS IMMEDIATELY FOLLOW THE TC POLY INSTRUCTION (SEE ROUTINE FOR DETAILS.)
049287,000893: 
049288,000894:    7052           50002        DMP                INDEX    Q                                     #  BASIC SUBROUTINE FOR USE BY PINBALL, ETC
049289,000895:    7053           30000                           CAF      0                                     #  ADRES OF ARGUMENT FOLLOWS  TC DMP  . 
049290,000896:    7054           24002                           INCR     Q                                     
049291,000897:    7055           54116                 -1        TS       ADDRWD                                #  (PROLOGUE FOR SETTING ADDRWD.)
049292,000898: 
049293,000899:    7056           50116        DMPSUB             INDEX    ADDRWD                                #  GET MINOR PART OF OPERAND AT C(ADDRWD).
049294,000900:    7057           30001                           CA       1                                     
049295,000901:    7060           54156                           TS       MPAC       +2                         #  THIS WORKS FOR SQUARING MPAC AS WELL.
049296,000902:    7061           34772                           CAF      ZERO                                  #  SET MPAC +1 TO ZERO SO WE CAN ACCUMULATE
049297,000903:    7062           56155                           XCH      MPAC       +1                         #  THE PARTIAL PRODUCTS WITH DAS
049298,000904:    7063           54135                           TS       MPTEMP                                #  INSTRUCTIONS.
049299,000905:    7064           00006                           EXTEND                                         
049300,000906:    7065           70156                           MP       MPAC       +2                         #  MINOR OF MPAC X MINOR OF C(ADDRWD).
049301,000907: 
049302,000908:    7066           56156                           XCH      MPAC       +2                         #  DISCARD MINOR PART OF ABOVE RESULT AND
049303,000909:    7067           00006                           EXTEND                                         #  FORM MAJOR OF MPAC X MINOR OF C(ADDRWD).
049304,000910:    7070           70154                           MP       MPAC                                  
049305,000911:    7071           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
049306,000912: 
049307,000913:    7072           50116                           INDEX    ADDRWD                                #  GET MAJOR PART OF ARGUMENT AT C(ADDRWD).
049308,000914:    7073           30000                           CA       0                                     
049309,000915:    7074           56135                           XCH      MPTEMP                                #  SAVE AND BRING OUT MINOR OF MPAC.
049310,000916:    7075           00006        DMPSUB2            EXTEND                                         
049311,000917:    7076           70135                           MP       MPTEMP                                #  MAJOR OF C(ADDRWD) X MINOR OF MPAC.
049312,000918:    7077           20156                           DAS      MPAC       +1                         #  ACCUMULATE, SETTING A TO NET OVERFLOW.
049313,000919: 
049314,000920:    7100           56154                           XCH      MPAC                                  #  SETTING MPAC TO 0 OR +-1.
049315,000921:    7101           00006                           EXTEND                                         
049316,000922:    7102           70135                           MP       MPTEMP                                #  MAJOR OF MPAC X MAJOR OF C(ADDRWD).
049317,000923:    7103           20155                           DAS      MPAC                                  #  GUARANTEED NO OVERFLOW.
049318,000924:    7104           00002                           TC       Q                                     #  49 MCT = .573 MS. INCLUDING RETURN.
049319,000925: 

Page 1138

049321,000927:                                                                                                  #  ROUND MPAC TO DOUBLE PRECISION, SETTING OVFIND ON THE RARE EVENT OF OVERFLOW.
049322,000928: 
049323,000929:    7105           34772        ROUNDSUB           CAF      ZERO                                  #  SET MPAC +2 = 0 FOR SCALARS AND CHANGE
049324,000930:    7106           54163                 +1        TS       MODE                                  #  MODE TO DP.
049325,000931: 
049326,000932:    7107           56156        VROUND             XCH      MPAC       +2                         #  BUT WE NEEDNT TAKE THE TIME FOR VECTORS.
049327,000933:    7110           60000                           DOUBLE                                         
049328,000934:    7111           54001                           TS       L                                     
049329,000935:    7112           00002                           TC       Q                                     
049330,000936: 
049331,000937:    7113           60155                           AD       MPAC       +1                         #  ADD ROUNDING BIT IF MPAC +2 WAS GREATER
049332,000938:    7114           54155                           TS       MPAC       +1                         #  THAN .5 IN MAGNITUDE.
049333,000939:    7115           00002                           TC       Q                                     
049334,000940: 
049335,000941:    7116           60154                           AD       MPAC                                  #  PROPAGATE INTERFLOW.
049336,000942:    7117           54154                           TS       MPAC                                  
049337,000943:    7120           00002                           TC       Q                                     
049338,000944: 
049339,000945:    7121           54121        SETOVF2            TS       OVFIND                                #  (RARE).
049340,000946:    7122           00002                           TC       Q                                     
049341,000947: 

Page 1139

049343,000949:                                                                                                  #  THE DOT PRODUCT SUBROUTINE USUALLY FORMS THE DOT PRODUCT OF THE VECTOR IN MPAC WITH A STANDARD SIX
049344,000950:                                                                                                  #  REGISTER VECTOR WHOSE ADDRESS IS IN ADDRWD. IN THIS CASE C(DOTINC) ARE SET TO 2. VXM, HOWEVER, SETS C(DOTINC) TO
049345,000951:                                                                                                  #  6 SO THAT DOTSUB DOTS MPAC WITH A COLUMN VECTOR OF THE MATRIX IN QUESTION IN THIS CASE.
049346,000952: 
049347,000953:    7123           34767        PREDOT             CAF      TWO                                   #  PROLOGUE TO SET DOTINC TO 2.
049348,000954:    7124           54136                           TS       DOTINC                                
049349,000955: 
049350,000956:    7125           00006        DOTSUB             EXTEND                                         
049351,000957:    7126           22137                           QXCH     DOTRET                                #  SAVE RETURN.
049352,000958:    7127           07056                           TC       DMPSUB                                #  DOT X COMPONENTS.
049353,000959:    7130           52160                           DXCH     MPAC       +3                         #  POSITION Y COMPONENT OF MPAC FOR
049354,000960:    7131           52155                           DXCH     MPAC                                  #  MULTIPLICATION WHILE SAVING RESULT IN
049355,000961:    7132           52131                           DXCH     BUF                                   #  THREE WORD BUFFER, BUF.
049356,000962:    7133           30156                           CA       MPAC       +2                         
049357,000963:    7134           54132                           TS       BUF        +2                         
049358,000964: 
049359,000965:    7135           30136                           CA       DOTINC                                #  ADVANCE ADDRWD TO Y COMPONENT OF
049360,000966:    7136           26116                           ADS      ADDRWD                                #  OTHER ARGUMENT.
049361,000967:    7137           07056                           TC       DMPSUB                                
049362,000968:    7140           52156                           DXCH     MPAC       +1                         #  ACCUMULATE PARTIAL PRODUCTS.
049363,000969:    7141           20132                           DAS      BUF        +1                         
049364,000970:    7142           60154                           AD       MPAC                                  
049365,000971:    7143           60130                           AD       BUF                                   
049366,000972:    7144           54130                           TS       BUF                                   
049367,000973:    7145           17147                           TCF      +2                                    
049368,000974:    7146           54121                           TS       OVFIND                                #  IF OVERFLOW OCCURS.
049369,000975: 
049370,000976:    7147           52162                           DXCH     MPAC       +5                         #  MULTIPLY Z COMPONENTS.
049371,000977:    7150           52155                           DXCH     MPAC                                  
049372,000978:    7151           30136                           CA       DOTINC                                
049373,000979:    7152           26116                           ADS      ADDRWD                                
049374,000980:    7153           07056                           TC       DMPSUB                                
049375,000981:    7154           52132        ENDDOT             DXCH     BUF        +1                         #  LEAVE FINAL ACCUMULATION IN MPAC.
049376,000982:    7155           20156                           DAS      MPAC       +1                         
049377,000983:    7156           60154                           AD       MPAC                                  
049378,000984:    7157           60130                           AD       BUF                                   
049379,000985:    7160           54154                           TS       MPAC                                  
049380,000986:    7161           00137                           TC       DOTRET                                
049381,000987: 
049382,000988:    7162           06766                           TC       OVERFLOW                              #  ON OVERFLOW HERE.
049383,000989:    7163           00137                           TC       DOTRET                                
049384,000990: 

Page 1140

049386,000992:                                                                                                  #  DOUBLE PRECISION POLYNOMIAL EVALUATOR
049387,000993: 
049388,000994:                                                                                                  #                                  N        N-1
049389,000995:                                                                                                  #        THIS ROUTINE EVALUATES A X  + A   X    + ... + A  X + A  LEAVING THE DP RESULT IN MPAC ON EXIT.
049390,000996:                                                                                                  #                                N      N-1              1      0
049391,000997: 
049392,000998:                                                                                                  #  THE ROUTINE HAS TWO ENTRIES
049393,000999: 
049394,001000:                                                                                                  #        1. ENTRY THRU POWRSERS. THE COEFFICIENTS MAY BE EITHER IN FIXED OR ERASABLE, THE CALL IS BY
049395,001001:                                                                                                  #           TC POWRSERS, AND THE RETURN IS TO LOC(TC POWRSERS)+1. THE ENTERING DATA MUST BE AS FOLLOWS
049396,001002: 
049397,001003:                                                                                                  #                        A       SP      LOC-3           ADDRESS FOR REFERENCING COEF TABLE
049398,001004:                                                                                                  #                        L       SP      N-1             N IS THE DEGREE OF THE POWER SERIES
049399,001005:                                                                                                  #                        MPAC    DP      X               ARGUMENT
049400,001006: 
049401,001007:                                                                                                  #                        LOC-2N  DP      A(0)
049402,001008:                                                                                                  #                                ...
049403,001009:                                                                                                  #                        LOC     DP      A(N)
049404,001010: 
049405,001011:                                                                                                  #        2. ENTRY THRU POLY. THE CALL TO POLY AND THE ENTERING DATA MUST BE AS FOLLOWS
049406,001012: 
049407,001013:                                                                                                  #                        MPAC            DP              X               ARGUMENT
049408,001014: 
049409,001015:                                                                                                  #                        LOC             TC              POLY
049410,001016:                                                                                                  #                        LOC+1           SP              N-1
049411,001017:                                                                                                  #                        LOC+2           DP              A(0)
049412,001018:                                                                                                  #                                        ...
049413,001019:                                                                                                  #                        LOC+2N+2        DP              A(N)            RETURN IS TO LOC+2N+4
049414,001020: 
049415,001021:    7164           00006        POWRSERS           EXTEND                                         
049416,001022:    7165           22141                           QXCH     POLYRET                               #  RETURN ADDRESS
049417,001023:    7166           54117                           TS       POLISH                                #  POWER SERIES ADDRESS
049418,001024:    7167           22140                           LXCH     POLYCNT                               #  N-1 TO COUNTER
049419,001025:    7170           17201                           TCF      POLYCOM                               #  SKIP SET UP BY POLY
049420,001026: 
049421,001027:    7171           50002        POLY               INDEX    Q                                     
049422,001028:    7172           30000                           CAF      0                                     
049423,001029:    7173           54140                           TS       POLYCNT                               #  N-1 TO COUNTER
049424,001030:    7174           60000                           DOUBLE                                         
049425,001031:    7175           60002                           AD       Q                                     
049426,001032:    7176           54117                           TS       POLISH                                #  L(A(N))-3 TO POLISH
049427,001033:    7177           64773                           AD       FIVE                                  
049428,001034:    7200           54141                           TS       POLYRET                               #  STORE RETURN ADDRESS
049429,001035: 
049430,001036:    7201           36242        POLYCOM            CAF      LVBUF                                 #  INCOMING X WILL BE MOVED TO VBUF, SO
049431,001037:    7202           54116                           TS       ADDRWD                                #  SET ADDRWD SO DMPSUB WILL MPY BY VBUF.
049432,001038: 
049433,001039:    7203           00006                           EXTEND                                         
049434,001040:    7204           50117                           INDEX    POLISH                                
049435,001041:    7205           30004                           DCA      3                                     

Page 1141

049437,001043:    7206           52155                           DXCH     MPAC                                  #  LOAD A(N) INTO MPAC,
049438,001044:    7207           52123                           DXCH     VBUF                                  #  SAVING X IN VBUF
049439,001045:    7210           17214                           TCF      POLY2                                 
049440,001046: 
049441,001047:    7211           54140        POLYLOOP           TS       POLYCNT                               #  SAVE DECREMENTED LOOP COUNTER
049442,001048:    7212           44767                           CS       TWO                                   
049443,001049:    7213           26117                           ADS      POLISH                                #  REGRESS COEFFICIENT POINTER
049444,001050: 
049445,001051:    7214           07056        POLY2              TC       DMPSUB                                #  MULTIPLY BY X
049446,001052:    7215           00006                           EXTEND                                         
049447,001053:    7216           50117                           INDEX    POLISH                                
049448,001054:    7217           30002                           DCA      1                                     #  ADD IN NEXT COEFFICIENT
049449,001055:    7220           20155                           DAS      MPAC                                  #  USERS RESPONSIBILITY TO ASSURE NO OVFLOW
049450,001056: 
049451,001057:    7221           10140                           CCS      POLYCNT                               
049452,001058:    7222           17211                           TCF      POLYLOOP                              
049453,001059:    7223           00141                           TC       POLYRET                               #  RETURN CALLER
049454,001060: 

Page 1142

049456,001062:                                                                                                  #  MISCELLANEOUS MULTI-PRECISION ROUTINES REQUIRED IN FIXED-FIXED BUT NOT USED BY THE INTERPRETER.
049457,001063: 
049458,001064:    7224           34772        DPAGREE            CAF      ZERO                                  #  DOUBLE PRECISION ENTRY -
049459,001065:    7225           54156        BUFAGREE           TS       MPAC       +2                         #  ZERO LOW-ORDER WORD
049460,001066:    7226           22002        TPAGREE            LXCH     Q                                     #  FORCE SIGN AGREEMENT AMONG THE TRIPLE
049461,001067:    7227           06672                           TC       BRANCH                                #  PRECISION CONTENTS OF MPAC.  RETURNING
049462,001068:    7230           17234                           TCF      ARG+                                  #  WITH SIGNUM OF THE INPUT IN A.
049463,001069:    7231           17254                           TCF      ARGZERO                               
049464,001070: 
049465,001071:    7232           44750                           CS       POSMAX                                #  IF NEGATIVE.
049466,001072:    7233           17235                           TCF      +2                                    
049467,001073: 
049468,001074:    7234           34750        ARG+               CAF      POSMAX                                
049469,001075:    7235           54002                           TS       Q                                     
049470,001076:    7236           00006                           EXTEND                                         
049471,001077:    7237           24000                           AUG      A                                     #  FORMS +-1.0.
049472,001078:    7240           60156                           AD       MPAC       +2                         
049473,001079:    7241           54156                           TS       MPAC       +2                         
049474,001080:    7242           34772                           CAF      ZERO                                  
049475,001081:    7243           60002                           AD       Q                                     
049476,001082:    7244           60155                           AD       MPAC       +1                         
049477,001083:    7245           54155                           TS       MPAC       +1                         
049478,001084:    7246           34772                           CAF      ZERO                                  
049479,001085:    7247           60002                           AD       Q                                     #  Q STILL HAS POSMAX OR NEGMAX IN IT.
049480,001086:    7250           60154                           AD       MPAC                                  
049481,001087:    7251           54154        ARGZERO2           TS       MPAC                                  #  ALWAYS SKIPPING UNLESS ARGZERO.
049482,001088:    7252           54155                           TS       MPAC       +1                         
049483,001089:    7253           00001                           TC       L                                     #  RETURN VIA L.
049484,001090: 
049485,001091:    7254           54156        ARGZERO            TS       MPAC       +2                         #  SET ALL THREE MPAC REGISTERS TO ZERO.
049486,001092:    7255           17251                           TCF      ARGZERO2                              
049487,001093: 
049488,001094:                                                                                                  #  SHORTMP MULTIPLIES THE TP CONTENTS OF MPAC BY THE SINGLE PRECISION NUMBER ARRIVING IN A.
049489,001095: 
049490,001096:    7256           54135        SHORTMP            TS       MPTEMP                                
049491,001097:    7257           00006                 +1        EXTEND                                         
049492,001098:    7260           70156                           MP       MPAC       +2                         
049493,001099:    7261           54156                           TS       MPAC       +2                         
049494,001100:    7262           34772        SHORTMP2           CAF      ZERO                                  #  SO SUBSEQUENT DAS WILL WORK.
049495,001101:    7263           56155                           XCH      MPAC       +1                         
049496,001102:    7264           17075                           TCF      DMPSUB2                               
049497,001103: 

Page 1143

049499,001105:                                                                                                  #  MISCELLANEOUS VECTOR OPERATIONS. INCLUDED HERE ARE THE FOLLOWING:
049500,001106: 
049501,001107:                                                                                                  #        1.      DOT             DP VECTOR DOT PRODUCT.
049502,001108:                                                                                                  #        2.      VXV             DP VECTOR CROSS PRODUCT.
049503,001109:                                                                                                  #        3.      VXSC            DP VECTOR TIMES SCALAR.
049504,001110:                                                                                                  #        4.      V/SC            DP VECTOR DIVIDED BY SCALAR.
049505,001111:                                                                                                  #        5.      VPROJ           DP VECTOR PROJECTION. ( (MPAC.X)MPAC ).
049506,001112:                                                                                                  #        6.      VXM             DP VECTOR POST-MULTIPLIED BY MATRIX.
049507,001113:                                                                                                  #        7.      MXV             DP VECTOR PRE-MULTIPLIED BY MATRIX.
049508,001114: 
049509,001115:    7265           07123        DOT                TC       PREDOT                                #  DO THE DOT PRODUCT AND EXIT, CHANGING
049510,001116:    7266           34772        DMODE              CAF      ZERO                                  #  THE MODE TO DP SCALAR.
049511,001117:    7267           16027                           TCF      NEWMODE                               
049512,001118: 
049513,001119:    7270           34767        MXV                CAF      TWO                                   #  SET UP MATINC AND DOTINC FOR ROW
049514,001120:    7271           54140                           TS       MATINC                                #  VECTORS.
049515,001121:    7272           17276                           TCF      VXM/MXV                               #  GO TO COMMON PORTION.
049516,001122: 
049517,001123:    7273           44355        VXM                CS       TEN                                   #  SET MATINC AND DOTINC TO REFER TO MATRIX
049518,001124:    7274           54140                           TS       MATINC                                #  AS THREE COLUMN VECTORS.
049519,001125:    7275           36211                           CAF      SIX                                   
049520,001126: 

Page 1144

049522,001128:                                                                                                  #  COMMON PORTION OF MXV AND VXM.
049523,001129: 
049524,001130:    7276           54136        VXM/MXV            TS       DOTINC                                
049525,001131: 
049526,001132:                                                                                                  #  ITRACE (2) REFERS TO "VXM/MXV".
049527,001133: 
049528,001134:    7277           07466                           TC       MPACVBUF                              #  SAVE VECTOR IN MPAC FOR FURTHER USE.
049529,001135: 
049530,001136:    7300           07125                           TC       DOTSUB                                #  GO DOT TO GET X COMPONENT OF ANSWER.
049531,001137:    7301           00006                           EXTEND                                         
049532,001138:    7302           30123                           DCA      VBUF                                  #  MOVE MPAC VECTOR BACK INTO MPAC, SAVING
049533,001139:    7303           52155                           DXCH     MPAC                                  #  NEW X COMPONENT IN BUF2.
049534,001140:    7304           52134                           DXCH     BUF2                                  
049535,001141:    7305           00006                           EXTEND                                         
049536,001142:    7306           30125                           DCA      VBUF       +2                         
049537,001143:    7307           52160                           DXCH     MPAC       +3                         
049538,001144:    7310           00006                           EXTEND                                         
049539,001145:    7311           30127                           DCA      VBUF       +4                         
049540,001146:    7312           52162                           DXCH     MPAC       +5                         
049541,001147:    7313           30140                           CA       MATINC                                #  INITIALIZE ADDRWD FOR NEXT DOT PRODUCT.
049542,001148:    7314           26116                           ADS      ADDRWD                                #  FORMS BASE ADDRESS OF NEXT COLUMN(ROW).
049543,001149: 
049544,001150:    7315           07125                           TC       DOTSUB                                
049545,001151:    7316           52123                           DXCH     VBUF                                  #  MOVE GIVEN VECTOR BACK TO MPAC, SAVING Y
049546,001152:    7317           52155                           DXCH     MPAC                                  #  COMPONENT OF ANSWER IN VBUF +2.
049547,001153:    7320           52125                           DXCH     VBUF       +2                         
049548,001154:    7321           52160                           DXCH     MPAC       +3                         
049549,001155:    7322           52127                           DXCH     VBUF       +4                         
049550,001156:    7323           52162                           DXCH     MPAC       +5                         
049551,001157:    7324           30140                           CA       MATINC                                #  FORM ADDRESS OF LAST COLUMN OR ROW.
049552,001158:    7325           26116                           ADS      ADDRWD                                
049553,001159: 
049554,001160:    7326           07125                           TC       DOTSUB                                
049555,001161:    7327           52134                           DXCH     BUF2                                  #  ANSWER NOW COMPLETE. PUT COMPONENTS INTO
049556,001162:    7330           52155                           DXCH     MPAC                                  #  PROPER MPAC REGISTERS.
049557,001163:    7331           52162                           DXCH     MPAC       +5                         
049558,001164:    7332           52125                           DXCH     VBUF       +2                         
049559,001165:    7333           52160                           DXCH     MPAC       +3                         
049560,001166:    7334           16030                           TCF      DANZIG                                #  EXIT.
049561,001167: 

Page 1145

049563,001169:                                                                                                  #  VXSC - VECTOR TIMES SCALAR.
049564,001170: 
049565,001171:    7335           10163        VXSC               CCS      MODE                                  #  TEST PRESENT MODE.
049566,001172:    7336           17364                           TCF      DVXSC                                 #  SEPARATE ROUTINE WHEN SCALAR IS IN MPAC.
049567,001173:    7337           17364                           TCF      DVXSC                                 
049568,001174: 
049569,001175:    7340           07056        VVXSC              TC       DMPSUB                                #  COMPUTE X COMPONENT
049570,001176:    7341           07107                           TC       VROUND                                #  AND ROUND IT.
049571,001177:    7342           52160                           DXCH     MPAC       +3                         #  PUT Y COMPONENT INTO MPAC SAVING MPAC IN
049572,001178:    7343           52155                           DXCH     MPAC                                  #  MPAC +3.
049573,001179:    7344           52160                           DXCH     MPAC       +3                         
049574,001180: 
049575,001181:    7345           07056                           TC       DMPSUB                                #  DO SAME FOR Y AND Z COMPONENTS.
049576,001182:    7346           07107                           TC       VROUND                                
049577,001183:    7347           52162                           DXCH     MPAC       +5                         
049578,001184:    7350           52155                           DXCH     MPAC                                  
049579,001185:    7351           52162                           DXCH     MPAC       +5                         
049580,001186: 
049581,001187:    7352           07056                           TC       DMPSUB                                
049582,001188:    7353           07107                           TC       VROUND                                
049583,001189:    7354           52155        VROTATEX           DXCH     MPAC                                  #  EXIT USED TO RESTORE MPAC AFTER THIS
049584,001190:    7355           52162                           DXCH     MPAC       +5                         #  TYPE OF ROTATION. CALLED BY VECTOR SHIFT
049585,001191:    7356           52160                           DXCH     MPAC       +3                         #  RIGHT, V/SC, ETC.
049586,001192:    7357           52155                           DXCH     MPAC                                  
049587,001193:    7360           16030                           TCF      DANZIG                                
049588,001194: 

Page 1146

049590,001196:                                                                                                  #  DP VECTOR PROJECTION ROUTINE.
049591,001197: 
049592,001198:    7361           07123        VPROJ              TC       PREDOT                                #  (MPAC.X)MPAC IS COMPUTED AND LEFT IN
049593,001199:    7362           44766                           CS       FOUR                                  #  MPAC. DO DOT AND FALL INTO DVXSC.
049594,001200:    7363           26116                           ADS      ADDRWD                                
049595,001201: 
049596,001202:                                                                                                  #  VXSC WHEN SCALAR ARRIVES IN MPAC AND VECTOR IS AT X.
049597,001203: 
049598,001204:    7364           00006        DVXSC              EXTEND                                         #  SAVE SCALAR IN MPAC +3 AND GET X
049599,001205:    7365           30155                           DCA      MPAC                                  #  COMPONENT OF ANSWER.
049600,001206:    7366           52160                           DXCH     MPAC       +3                         
049601,001207:    7367           07056                           TC       DMPSUB                                
049602,001208:    7370           07107                           TC       VROUND                                
049603,001209: 
049604,001210:    7371           34767                           CAF      TWO                                   #  ADVANCE ADDRWD TO Y COMPONENT OF X.
049605,001211:    7372           26116                           ADS      ADDRWD                                
049606,001212:    7373           00006                           EXTEND                                         
049607,001213:    7374           30160                           DCA      MPAC       +3                         #  PUT SCALAR BACK INTO MPAC AND SAVE
049608,001214:    7375           52155                           DXCH     MPAC                                  #  X RESULT IN MPAC +5.
049609,001215:    7376           52162                           DXCH     MPAC       +5                         
049610,001216:    7377           07056                           TC       DMPSUB                                
049611,001217:    7400           07107                           TC       VROUND                                
049612,001218: 
049613,001219:    7401           34767                           CAF      TWO                                   
049614,001220:    7402           26116                           ADS      ADDRWD                                #  TO Z COMPONENT.
049615,001221:    7403           52160                           DXCH     MPAC       +3                         #  BRING SCALAR BACK, PUTTING Y RESULT IN
049616,001222:    7404           52155                           DXCH     MPAC                                  #  THE PROPER PLACE.
049617,001223:    7405           52160                           DXCH     MPAC       +3                         
049618,001224:    7406           07056                           TC       DMPSUB                                
049619,001225:    7407           07107                           TC       VROUND                                
049620,001226: 
049621,001227:    7410           52155                           DXCH     MPAC                                  #  PUT Z COMPONENT IN PROPER PLACE, ALSO
049622,001228:    7411           52162                           DXCH     MPAC       +5                         #  POSITIONING X.
049623,001229:    7412           52155                           DXCH     MPAC                                  
049624,001230: 
049625,001231:    7413           16470                           TCF      VMODE                                 #  MODE HAS CHANGED TO VECTOR.
049626,001232: 

Page 1147

049628,001234:                                                                                                  #  THE VECTOR CROSS PRODUCT ROUTINE CALCULATES (X M -X M ,X M -X M ,X M -X M ) WHERE M IS THE VECTOR IN
049629,001235:                                                                                                  #                                                3 2  2 3  1 3  3 1  2 1  1 2
049630,001236:                                                                                                  #  MPAC AND X THE VECTOR AT THE GIVEN ADDRESS.
049631,001237: 
049632,001238:    7414           00006        VXV                EXTEND                                         
049633,001239:    7415           30162                           DCA      MPAC       +5                         #  FORM UP M3X1, LEAVING M1 IN VBUF.
049634,001240:    7416           52155                           DXCH     MPAC                                  
049635,001241:    7417           52123                           DXCH     VBUF                                  
049636,001242:    7420           07056                           TC       DMPSUB                                #  BY X1.
049637,001243: 
049638,001244:    7421           00006                           EXTEND                                         
049639,001245:    7422           40160                           DCS      MPAC       +3                         #  CALCULATE -X1M2, SAVING X1M3 IN VBUF +2.
049640,001246:    7423           52155                           DXCH     MPAC                                  
049641,001247:    7424           52125                           DXCH     VBUF       +2                         
049642,001248:    7425           07056                           TC       DMPSUB                                
049643,001249: 
049644,001250:    7426           34767                           CAF      TWO                                   #  ADVANCE ADDRWD TO X2.
049645,001251:    7427           26116                           ADS      ADDRWD                                
049646,001252:    7430           00006                           EXTEND                                         
049647,001253:    7431           40162                           DCS      MPAC       +5                         #  PREPARE TO GET -X2M3, SAVING -X1M2 IN
049648,001254:    7432           52155                           DXCH     MPAC                                  #  MPAC +5.
049649,001255:    7433           52162                           DXCH     MPAC       +5                         
049650,001256:    7434           07056                           TC       DMPSUB                                
049651,001257: 
049652,001258:    7435           00006                           EXTEND                                         
049653,001259:    7436           30123                           DCA      VBUF                                  #  GET X2M1, SAVING -X2M3 IN VBUF +4.
049654,001260:    7437           52155                           DXCH     MPAC                                  
049655,001261:    7440           52127                           DXCH     VBUF       +4                         
049656,001262:    7441           07056                           TC       DMPSUB                                
049657,001263: 
049658,001264:    7442           34767                           CAF      TWO                                   #  ADVANCE ADDRWD TO X3.
049659,001265:    7443           26116                           ADS      ADDRWD                                
049660,001266:    7444           00006                           EXTEND                                         
049661,001267:    7445           40123                           DCS      VBUF                                  #  GET -X3M1, ADDING X2M1 TO MPAC +5 TO
049662,001268:    7446           52155                           DXCH     MPAC                                  #  COMPLETE THE Z COMPONENT OF THE ANSWER.
049663,001269:    7447           20162                           DAS      MPAC       +5                         
049664,001270: 
049665,001271:    7450           00006                           EXTEND                                         
049666,001272:    7451           17453                           BZF      +2                                    
049667,001273:    7452           06760                           TC       OVERFLWZ                              
049668,001274: 
049669,001275:    7453           07056                           TC       DMPSUB                                
049670,001276:    7454           52125                           DXCH     VBUF       +2                         #  MOVE X1M3 TO MPAC +3 SETTING UP FOR X3M2
049671,001277:    7455           52160                           DXCH     MPAC       +3                         #  AND ADD -X3M1 TO MPAC +3 TO COMPLETE THE
049672,001278:    7456           52155                           DXCH     MPAC                                  #  Y COMPONENT OF THE RESULT.
049673,001279:    7457           20160                           DAS      MPAC       +3                         
049674,001280: 
049675,001281:    7460           00006                           EXTEND                                         
049676,001282:    7461           17463                           BZF      +2                                    

Page 1148

049678,001284:    7462           06763                           TC       OVERFLWY                              
049679,001285: 
049680,001286:    7463           07056                           TC       DMPSUB                                
049681,001287:    7464           52127                           DXCH     VBUF       +4                         #  GO ADD -X2M3 TO X3M2 TO COMPLETE THE X
049682,001288:    7465           16747                           TCF      ENDVXV                                #  COMPONENT (TAIL END OF DAD).
049683,001289: 
049684,001290:                                                                                                  #  THE MPACVBUF SUBROUTINE SAVES THE VECTOR IN MPAC IN VBUF WITHOUT CLOBBERING MPAC.
049685,001291: 
049686,001292:    7466           00006        MPACVBUF           EXTEND                                         #  CALLED BY MXV, VXM, AND UNIT.
049687,001293:    7467           30155                           DCA      MPAC                                  
049688,001294:    7470           52123                           DXCH     VBUF                                  
049689,001295:    7471           00006                           EXTEND                                         
049690,001296:    7472           30160                           DCA      MPAC       +3                         
049691,001297:    7473           52125                           DXCH     VBUF       +2                         
049692,001298:    7474           00006                           EXTEND                                         
049693,001299:    7475           30162                           DCA      MPAC       +5                         
049694,001300:    7476           52127                           DXCH     VBUF       +4                         
049695,001301:    7477           00002                           TC       Q                                     #  RETURN TO CALLER.
049696,001302: 
049697,001303:                                                                                                  #  DOUBLE PRECISION SIGN AGREE ROUTINE. ARRIVE WITH INPUT IN A+L. OUTPUT IS IN A + L.
049698,001304: 
049699,001305:    7500           10000        ALSIGNAG           CCS      A                                     #  TEST UPPER PART.
049700,001306:    7501           17505                           TCF      UPPOS                                 #  IT IS POSITIVE
049701,001307:    7502           00002                           TC       Q                                     #  ZERO
049702,001308:    7503           17515                           TCF      UPNEG                                 #  NEGATIVE
049703,001309:    7504           00002                           TC       Q                                     #  ZERO
049704,001310: 
049705,001311:    7505           56001        UPPOS              XCH      L                                     #  SAVE DECREMENTED UPPER PART.
049706,001312:    7506           64753                           AD       HALF                                  
049707,001313:    7507           64753                           AD       HALF                                  
049708,001314:    7510           54000                           TS       A                                     #  SKIPS ON OVERFLOW
049709,001315:    7511           17513                           TCF      +2                                    
049710,001316:    7512           24001                           INCR     L                                     #  RESTORE UPPER TO ROIGINAL VALUE
049711,001317:    7513           56001                           XCH      L                                     #  SWAP A + L BACK.
049712,001318:    7514           00002                           TC       Q                                     
049713,001319: 
049714,001320:    7515           56001        UPNEG              XCH      L                                     #  SAVE COMPLEMENTED + DECREMENTED UPPER PT
049715,001321:    7516           64752                           AD       NEGMAX                                
049716,001322:    7517           67702                           AD       NEGONE                                
049717,001323:    7520           54000                           TS       A                                     
049718,001324:    7521           17523                           TCF      +2                                    #  DONT INCREMENT IF NO OVERFLOW.
049719,001325:    7522           24001                           INCR     L                                     
049720,001326:    7523           56001                           XCH      L                                     
049721,001327:    7524           40000                           COM                                            #  MAKE NEGATIVE AGAIN.
049722,001328:    7525           00002                           TC       Q                                     
049723,001329: 

Page 1149

049725,001331:                                                                                                  #  INTERPRETIVE INSTRUCTIONS WHOSE EXECUTION CONSISTS OF PRINCIPALLY CALLING SUBROUTINES.
049726,001332: 
049727,001333:    7526           07056        DMP1               TC       DMPSUB                                #  DMP INSTRUCTION.
049728,001334:    7527           16030                           TCF      DANZIG                                
049729,001335: 
049730,001336:    7530           07056        DMPR               TC       DMPSUB                                
049731,001337:    7531           07106                           TC       ROUNDSUB   +1                         #  (C(A) = +0).
049732,001338:    7532           16030                           TCF      DANZIG                                
049733,001339: 
049734,001340:    7533           00006        DDV                EXTEND                                         
049735,001341:    7534           50116                           INDEX    ADDRWD                                #  MOVE DIVIDEND INTO BUF.
049736,001342:    7535           30001                           DCA      0                                     
049737,001343:    7536           17543                           TCF      BDDV       +4                         
049738,001344: 
049739,001345:    7537           00006        BDDV               EXTEND                                         #  MOVE DIVISOR INTO MPAC SAVING MPAC, THE
049740,001346:    7540           50116                           INDEX    ADDRWD                                #  DIVIDEND, IN BUF.
049741,001347:    7541           30001                           DCA      0                                     
049742,001348:    7542           52155                           DXCH     MPAC                                  
049743,001349:    7543           52131                 +4        DXCH     BUF                                   
049744,001350:    7544           34772                           CAF      ZERO                                  #  DIVIDE ROUTINES IN BANK 0.
049745,001351:    7545           54004                           TS       FBANK                                 
049746,001352:    7546           12353                           TCF      DDV/BDDV                              
049747,001353: 
049748,001354:    7547           30116        SETPD              CA       ADDRWD                                #  MUST SET TO WORK AREA, OR EBANK TROUBLE.
049749,001355:    7550           54166                           TS       PUSHLOC                               
049750,001356:    7551           16032                           TCF      NOIBNKSW                              #  NO FBANK SWITCH REQUIRED.
049751,001357: 
049752,001358:    7552           34772        TSLC               CAF      ZERO                                  #  SHIFTING ROUTINES LOCATED IN BANK 00.
049753,001359:    7553           54004                           TS       FBANK                                 
049754,001360:    7554           12172                           TCF      TSLC2                                 
049755,001361: 
049756,001362:    7555           36043        GSHIFT             CAF      LOW7                                  #  USED AS MASK AT GENSHIFT. THIS PROCESSES
049757,001363:    7556           54004                           TS       FBANK                                 #  ANY SHIFT INSTRUCTION (EXCEPT TSLC) WITH
049758,001364:    7557           12214                           TCF      GENSHIFT                              #  AN ADDRESS (ROUTINES IN BANK 0).
049759,001365: 

Page 1150

049761,001367:                                                                                                  #  THE FOLLOWING IS THE PROLOGUE TO V/SC. IF THE PRESENT MODE IS VECTOR, IT SAVES THE SCALAR AT X IN BUF
049762,001368:                                                                                                  #  AND CALLS THE V/SC ROUTINE IN BANK 0. IF THE PRESENT MODE IS SCALAR, IT MOVES THE VECTOR AT X INTO MPAC, SAVING
049763,001369:                                                                                                  #  THE SCALAR IN MPAC IN BUF BEFORE CALLING THE V/SC ROUTINE IN BANK 0.
049764,001370: 
049765,001371:    7560           10163        V/SC               CCS      MODE                                  
049766,001372:    7561           17572                           TCF      DV/SC                                 #  MOVE VECTOR INTO MPAC.
049767,001373:    7562           17572                           TCF      DV/SC                                 
049768,001374: 
049769,001375:    7563           00006        VV/SC              EXTEND                                         
049770,001376:    7564           50116                           INDEX    ADDRWD                                
049771,001377:    7565           30001                           DCA      0                                     
049772,001378:    7566           52131        V/SC1              DXCH     BUF                                   #  IN BOTH CASES, VECTOR IS NOW IN MPAC AND
049773,001379:    7567           34772                           CAF      ZERO                                  #  SCALAR IN BUF.
049774,001380:    7570           54004                           TS       FBANK                                 
049775,001381:    7571           12653                           TCF      V/SC2                                 
049776,001382: 
049777,001383:    7572           00006        DV/SC              EXTEND                                         
049778,001384:    7573           50116                           INDEX    ADDRWD                                
049779,001385:    7574           30003                           DCA      2                                     
049780,001386:    7575           52160                           DXCH     MPAC       +3                         
049781,001387:    7576           00006                           EXTEND                                         
049782,001388:    7577           50116                           INDEX    ADDRWD                                
049783,001389:    7600           30005                           DCA      4                                     
049784,001390:    7601           52162                           DXCH     MPAC       +5                         
049785,001391: 
049786,001392:    7602           44770                           CS       ONE                                   #  CHANGE MODE TO VECTOR.
049787,001393:    7603           54163                           TS       MODE                                  
049788,001394: 
049789,001395:    7604           00006                           EXTEND                                         
049790,001396:    7605           50116                           INDEX    ADDRWD                                
049791,001397:    7606           30001                           DCA      0                                     
049792,001398:    7607           52155                           DXCH     MPAC                                  
049793,001399:    7610           17566                           TCF      V/SC1                                 #  FINISH PROLOGUE AT COMMON SECTION.
049794,001400: 

Page 1151

049796,001402:                                                                                                  #  SIGN AND COMPLEMENT INSTRUCTIONS.
049797,001403: 
049798,001404:    7611           50116        SIGN               INDEX    ADDRWD                                #  CALL COMP INSTRUCTION IF WORD AT X IS
049799,001405:    7612           10000                           CCS      0                                     #  NEGATIVE NON-ZERO.
049800,001406:    7613           16030                           TCF      DANZIG                                
049801,001407:    7614           17616                           TCF      +2                                    
049802,001408:    7615           17624                           TCF      COMP                                  #  DO THE COMPLEMENT.
049803,001409: 
049804,001410:    7616           50116                           INDEX    ADDRWD                                
049805,001411:    7617           10001        CCSL               CCS      1                                     
049806,001412:    7620           16030                           TCF      DANZIG                                
049807,001413:    7621           16030                           TCF      DANZIG                                
049808,001414:    7622           17624                           TCF      COMP                                  
049809,001415:    7623           16030                           TCF      DANZIG                                
049810,001416:    7624           00006        COMP               EXTEND                                         #  COMPLEMENT DP MPAC IN EVERY CASE.
049811,001417:    7625           40155                           DCS      MPAC                                  
049812,001418:    7626           52155                           DXCH     MPAC                                  
049813,001419: 
049814,001420:    7627           10163                           CCS      MODE                                  #  EITHER COMPLEMENT MPAC +3 OR THE REST OF
049815,001421:    7630           17641                           TCF      DCOMP                                 #  THE VECTOR ACCUMULATOR.
049816,001422:    7631           17641                           TCF      DCOMP                                 
049817,001423: 
049818,001424:    7632           00006                           EXTEND                                         #  VECTOR COMPLEMENT.
049819,001425:    7633           40160                           DCS      MPAC       +3                         
049820,001426:    7634           52160                           DXCH     MPAC       +3                         
049821,001427:    7635           00006                           EXTEND                                         
049822,001428:    7636           40162                           DCS      MPAC       +5                         
049823,001429:    7637           52162                           DXCH     MPAC       +5                         
049824,001430:    7640           16030                           TCF      DANZIG                                
049825,001431: 
049826,001432:    7641           40156        DCOMP              CS       MPAC       +2                         
049827,001433:    7642           54156                           TS       MPAC       +2                         
049828,001434:    7643           16030                           TCF      DANZIG                                
049829,001435: 

Page 1152

049831,001437:                                                                                                  #  THE FOLLOWING SHORT SHIFT CODES REQUIRE NO ADDRESS WORD:
049832,001438: 
049833,001439:                                                                                                  #        1.      SR1 TO SR4      SCALAR SHIFT RIGHT.
049834,001440:                                                                                                  #        2.      SR1R TO SR4R    SCALAR SHIFT RIGHT AND ROUND.
049835,001441:                                                                                                  #        3.      SL1 TO SL4      SCALAR SHIFT LEFT.
049836,001442:                                                                                                  #        4.      SL1R TO SL4R    SCALAR SHIFT LEFT AND ROUND.
049837,001443: 
049838,001444:                                                                                                  #        5.      VSR1 TO VSR8    VECTOR SHIFT RIGHT (ALWAYS ROUNDS).
049839,001445:                                                                                                  #        6.      VSL1 TO VSL8    VECTOR SHIFT LEFT (NEVER ROUNDS).
049840,001446: 
049841,001447:                                                                                                  #  THE FOLLOWING CODES REQUIRE AN ADDRESS WHICH MAY BE INDEXED:*
049842,001448: 
049843,001449:                                                                                                  #        1.      SR              SCALAR SHIFT RIGHT.
049844,001450:                                                                                                  #        2.      SRR             SCALAR SHIFT RIGHT AND ROUND.
049845,001451:                                                                                                  #        3.      SL              SCALAR SHIFT LEFT.
049846,001452:                                                                                                  #        4.      SLR             SCALAR SHIFT LEFT AND ROUND.
049847,001453: 
049848,001454:                                                                                                  #        5.      VSR             VECTOR SHIFT RIGHT.
049849,001455:                                                                                                  #        6.      VSL             VECTOR SHIFT LEFT.
049850,001456: 
049851,001457:                                                                                                  #  * IF THE ADDRESS IS INDEXED, AND THE INDEX MODIFICATION RESULTS IN A NEGATIVE SHIFT COUNT, A SHIFT OF THE
049852,001458:                                                                                                  #  ABSOLUTE VALUE OF THE COUNT IS DONE IN THE OPPOSITE DIRECTION.
049853,001459: 
049854,001460: 00,2000                                           SETLOC   INTERB0                               
049855,001461: 00,2000                                           BANK                                           
049856,001462: 
049857,001463: 00,2017                                           COUNT*   $$/INTER                              
049858,001464: 00,2017           36211        SHORTT             CAF      SIX                                   #  SCALAR SHORT SHIFTS COME HERE. THE SHIFT
049859,001465: 00,2020           70020                           MASK     CYR                                   #  COUNT-1 IS NOW IN BITS 2-3 OF CYR. THE
049860,001466: 00,2021           54021                           TS       SR                                    #  ROUNDING BIT IS IN BIT1 AT THIS POINT.
049861,001467: 
049862,001468: 00,2022           10020                           CCS      CYR                                   #  SEE IF RIGHT OR LEFT SHIFT DESIRED.
049863,001469: 00,2023           12101                           TCF      TSSL                                  #  SHIFT LEFT.
049864,001470: 
049865,001471: 00,2024           00024        SRDDV              DEC      20         B-14                       #  MPTEMP SETTING FOR SR BEFORE DDV.
049866,001472: 
049867,001473: 00,2025           50021        TSSR               INDEX    SR                                    #  GET SHIFTING BIT.
049868,001474: 00,2026           34753                           CAF      BIT14                                 
049869,001475: 00,2027           54135                           TS       MPTEMP                                
049870,001476: 
049871,001477: 00,2030           10020                           CCS      CYR                                   #  SEE IF A ROUND IS DESIRED.
049872,001478: 00,2031           02050        RIGHTR             TC       MPACSRND                              #  YES - SHIFT RIGHT AND ROUND.
049873,001479: 00,2032           16027                           TCF      NEWMODE                               #  SET MODE TO DP (C(A) = 0).
049874,001480: 00,2033           30135        MPACSHR            CA       MPTEMP                                #  DO A TRIPLE PRECISION SHIFT RIGHT.
049875,001481: 00,2034           00006                           EXTEND                                         
049876,001482: 00,2035           70156                           MP       MPAC       +2                         
049877,001483: 00,2036           54156                 +3        TS       MPAC       +2                         #  (EXIT FROM SQRT AND ABVAL).
049878,001484: 00,2037           30135                           CA       MPTEMP                                
049879,001485: 00,2040           00006                           EXTEND                                         

Page 1153

049881,001487: 00,2041           70154                           MP       MPAC                                  #  SHIFT MAJOR PART INTO A,L AND PLACE IN
049882,001488: 00,2042           52155                           DXCH     MPAC                                  #  MPAC,+1.
049883,001489: 00,2043           30135                           CA       MPTEMP                                
049884,001490: 00,2044           00006                           EXTEND                                         
049885,001491: 00,2045           70001                           MP       L                                     #  ORIGINAL C(MPAC +1).
049886,001492: 00,2046           20156                           DAS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
049887,001493: 00,2047           16030                           TCF      DANZIG                                
049888,001494: 
049889,001495:                                                                                                  #  MPAC SHIFT RIGHT AND ROUND SUBROUTINES.
049890,001496: 
049891,001497: 00,2050           30156        MPACSRND           CA       MPAC       +2                         #  WE HAVE TO DO ALL THREE MULTIPLIES SINCE
049892,001498: 00,2051           00006                           EXTEND                                         #  MPAC +1 AND MPAC +2 MIGHT HAVE SIGN
049893,001499: 00,2052           70135                           MP       MPTEMP                                #  DISAGREEMENT WITH A SHIFT RIGHT OF 1.
049894,001500: 00,2053           56155                           XCH      MPAC       +1                         
049895,001501: 00,2054           00006                           EXTEND                                         
049896,001502: 00,2055           70135                           MP       MPTEMP                                
049897,001503: 00,2056           56155                           XCH      MPAC       +1                         #  TRIAL MINOR PART.
049898,001504: 00,2057           60001                           AD       L                                     
049899,001505: 
049900,001506: 00,2060           60000        VSHR2              DOUBLE                                         #  (FINISH VECTOR COMPONENT SHIFT RIGHT
049901,001507: 00,2061           54156                           TS       MPAC       +2                         #  AND ROUND.
049902,001508: 00,2062           12064                           TCF      +2                                    
049903,001509: 00,2063           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
049904,001510: 
049905,001511: 00,2064           34772                           CAF      ZERO                                  
049906,001512: 00,2065           54156                           TS       MPAC       +2                         
049907,001513: 00,2066           56154                           XCH      MPAC                                  #  SETTING TO ZERO SO FOLLOWING DAS WORKS.
049908,001514: 00,2067           00006                           EXTEND                                         
049909,001515: 00,2070           70135                           MP       MPTEMP                                
049910,001516: 00,2071           20155                           DAS      MPAC                                  #  AGAIN NO OVERFLOW.
049911,001517: 00,2072           00002                           TC       Q                                     
049912,001518: 
049913,001519: 00,2073           30135        VSHRRND            CA       MPTEMP                                #  ENTRY TO SHIFT RIGHT AND ROUND MPAC WHEN
049914,001520: 00,2074           00006                           EXTEND                                         #  MPAC CONTAINS A VECTOR COMPONENT.
049915,001521: 00,2075           70155                           MP       MPAC       +1                         
049916,001522: 00,2076           54155                           TS       MPAC       +1                         
049917,001523: 00,2077           56001                           XCH      L                                     
049918,001524: 00,2100           12060                           TCF      VSHR2                                 #  GO ADD ONE IF NECESSARY AND FINISH.
049919,001525: 

Page 1154

049921,001527:                                                                                                  #  ROUTINE FOR SHORT SCALAR SHIFT LEFT (AND MAYBE ROUND).
049922,001528: 
049923,001529: 00,2101           30021        TSSL               CA       SR                                    #  GET SHIFT COUNT FOR SR.
049924,001530: 00,2102           54135                 +1        TS       MPTEMP                                
049925,001531: 
049926,001532: 00,2103           00006                 +2        EXTEND                                         #  ENTRY HERE FROM SL FOR SCALARS.
049927,001533: 00,2104           30156                           DCA      MPAC       +1                         #  SHIFTING LEFT ONE PLACE AT A TIME IS
049928,001534: 00,2105           20156                           DAS      MPAC       +1                         #  FASTER THAN DOING THE WHOLE SHIFT WITH
049929,001535: 00,2106           60154                           AD       MPAC                                  #  MULTIPLIES ASSUMING THAT FREQUENCY OF
049930,001536: 00,2107           60154                           AD       MPAC                                  #  SHIFT COUNTS GOES DOWN RAPIDLY AS A
049931,001537: 00,2110           54154                           TS       MPAC                                  #  FUNCTION OF THEIR MAGNITUDE.
049932,001538: 00,2111           12113                           TCF      +2                                    
049933,001539: 00,2112           54121                           TS       OVFIND                                #  OVERFLOW. (LEAVES OVERFLOW-CORRECTED
049934,001540:                                                                                                  #  RESULT ANYWAY).
049935,001541: 00,2113           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNT.
049936,001542: 00,2114           12102                           TCF      TSSL       +1                         
049937,001543: 
049938,001544: 00,2115           10020                           CCS      CYR                                   #  SEE IF ROUND WANTED.
049939,001545: 00,2116           07105        ROUND              TC       ROUNDSUB                              #  YES - ROUND AND EXIT.
049940,001546: 00,2117           16030                           TCF      DANZIG                                #  SL LEAVES A ZERO IN CYR FOR NO ROUND.
049941,001547: 00,2120           16030                           TCF      DANZIG                                #  NO - EXIT IMMEDIATL
049942,001548: 

Page 1155

049944,001550:                                                                                                  #  VECTOR SHIFTING ROUTINES.
049945,001551: 
049946,001552: 00,2121           34774        SHORTV             CAF      LOW3                                  #  SAVE 3 BIT SHIFT COUNT - 1 WITHOUT
049947,001553: 00,2122           70020                           MASK     CYR                                   #  EDITING CYR.
049948,001554: 00,2123           54135                           TS       MPTEMP                                
049949,001555: 00,2124           10020                           CCS      CYR                                   #  SEE IF LEFT OR RIGHT SHIFT.
049950,001556: 00,2125           12145                           TCF      VSSL                                  #  VECTOR SHIFT LEFT.
049951,001557: 00,2126           00176        OCT176             OCT      176                                   #  USED IN PROCESSED SHIFTS WITH - COUNT.
049952,001558: 
049953,001559: 00,2127           50135        VSSR               INDEX    MPTEMP                                #  (ENTRY FROM SR).  PICK UP SHIFTING BIT.
049954,001560: 00,2130           34753                           CAF      BIT14                                 #  MPTEMP CONTAINS THE SHIFT COUNT - 1.
049955,001561: 00,2131           54135                           TS       MPTEMP                                
049956,001562: 00,2132           02073                           TC       VSHRRND                               #  SHIFT X COMPONENT.
049957,001563: 
049958,001564: 00,2133           52155                           DXCH     MPAC                                  #  SWAP X AND Y COMPONENTS.
049959,001565: 00,2134           52160                           DXCH     MPAC       +3                         
049960,001566: 00,2135           52155                           DXCH     MPAC                                  
049961,001567: 00,2136           02073                           TC       VSHRRND                               #  SHIFT Y COMPONENT.
049962,001568: 
049963,001569: 00,2137           52155                           DXCH     MPAC                                  #  SWAP Y AND Z COMPONENTS.
049964,001570: 00,2140           52162                           DXCH     MPAC       +5                         
049965,001571: 00,2141           52155                           DXCH     MPAC                                  
049966,001572: 00,2142           02073                           TC       VSHRRND                               #  SHIFT Z COMPONENT.
049967,001573: 
049968,001574: 00,2143           17354                           TCF      VROTATEX                              #  RESTORE COMPONENTS TO PROPER PLACES.
049969,001575: 

Page 1156

049971,001577:                                                                                                  #  VECTOR SHIFT LEFT - DONE ONE PLACE AT A TIME.
049972,001578: 
049973,001579: 00,2144           54135                 -1        TS       MPTEMP                                #  SHIFTING LOOP.
049974,001580: 
049975,001581: 00,2145           00006        VSSL               EXTEND                                         
049976,001582: 00,2146           30155                           DCA      MPAC                                  
049977,001583: 00,2147           20155                           DAS      MPAC                                  
049978,001584: 00,2150           00006                           EXTEND                                         
049979,001585: 00,2151           12153                           BZF      +2                                    
049980,001586: 00,2152           06766                           TC       OVERFLOW                              
049981,001587: 
049982,001588: 00,2153           00006                           EXTEND                                         
049983,001589: 00,2154           30160                           DCA      MPAC       +3                         
049984,001590: 00,2155           20160                           DAS      MPAC       +3                         
049985,001591: 00,2156           00006                           EXTEND                                         
049986,001592: 00,2157           12161                           BZF      +2                                    
049987,001593: 00,2160           06763                           TC       OVERFLWY                              
049988,001594: 
049989,001595: 00,2161           00006                           EXTEND                                         
049990,001596: 00,2162           30162                           DCA      MPAC       +5                         
049991,001597: 00,2163           20162                           DAS      MPAC       +5                         
049992,001598: 00,2164           00006                           EXTEND                                         
049993,001599: 00,2165           12167                           BZF      +2                                    
049994,001600: 00,2166           06760                           TC       OVERFLWZ                              
049995,001601: 
049996,001602: 00,2167           10135                           CCS      MPTEMP                                #  LOOP ON DECREMENTED SHIFT COUNTER.
049997,001603: 00,2170           12144                           TCF      VSSL       -1                         
049998,001604: 00,2171           16030                           TCF      DANZIG                                #  EXIT.
049999,001605: 

Page 1157

050001,001607:                                                                                                  #  TSLC - TRIPLE SHIFT LEFT AND COUNT. SHIFTS MPAC LEFT UNTIL GREATER THAN .5 IN MAGNITUDE, LEAVING
050002,001608:                                                                                                  #  THE COMPLEMENT OF THE NUMBER OF SHIFTS REQUIRED IN X.
050003,001609: 
050004,001610: 00,2172           54135        TSLC2              TS       MPTEMP                                #  START BY ZEROING SHIFT COUNT (IN A NOW).
050005,001611: 00,2173           06672                           TC       BRANCH                                #  EXIT WITH NO SHIFTING IF ARGUMENT ZERO.
050006,001612: 00,2174           12176                           TCF      +2                                    
050007,001613: 00,2175           12212                           TCF      ENDTSLC                               #  STORES ZERO SHIFT COUNT IN THIS CASE.
050008,001614: 
050009,001615: 00,2176           07226                           TC       TPAGREE                               #  MAY CAUSE UPSHIFT OF ONE EXTRA PLACE.
050010,001616: 
050011,001617: 00,2177           30154                           CA       MPAC                                  #  BEGIN NORMALIZATION LOOP.
050012,001618: 00,2200           12207                           TCF      TSLCTEST                              
050013,001619: 
050014,001620: 00,2201           24135        TSLCLOOP           INCR     MPTEMP                                #  INCREMENT SHIFT COUNTER.
050015,001621: 00,2202           00006                           EXTEND                                         
050016,001622: 00,2203           30156                           DCA      MPAC       +1                         
050017,001623: 00,2204           20156                           DAS      MPAC       +1                         
050018,001624: 00,2205           60154                           AD       MPAC                                  
050019,001625: 00,2206           26154                           ADS      MPAC                                  
050020,001626: 00,2207           60000        TSLCTEST           DOUBLE                                         #  SEE IF (ANOTHER) SHIFT IS REQUIRED.
050021,001627: 00,2210           54000                           OVSK                                           
050022,001628: 00,2211           12201                           TCF      TSLCLOOP                              #  YES - INCREMENT COUNT AND SHIFT AGAIN.
050023,001629: 
050024,001630: 00,2212           40135        ENDTSLC            CS       MPTEMP                                
050025,001631: 00,2213           16572                           TCF      STORE1                                #  STORE SHIFT COUNT AND RETURN TO DANZIG.
050026,001632: 

Page 1158

050028,001634:                                                                                                  #           THE FOLLOWING ROUTINES PROCESSES THE GENERAL SHIFT INSTRUCTIONS SR, SRR, SL, AND SLR.
050029,001635:                                                                                                  #  THE GIVEN ADDRESS IS DECODED AS FOLLOWS:
050030,001636: 
050031,001637:                                                                                                  #        BITS 1-7        SHIFT COUNT (SUBADDRESS) LESS THAN 125 DECIMAL.
050032,001638:                                                                                                  #        BIT 8           PSEUDO SIGN BIT (DETECTS CHANGE IN SIGN IN INDEXED SHIFTS).
050033,001639:                                                                                                  #        BIT 9           0 FOR LEFT SHIFT, AND 1 FOR RIGHT SHIFT.
050034,001640:                                                                                                  #        BIT 10          1 FOR TERMINAL ROUND ON SCALAR SHIFTS, 0 OTHERWISE.
050035,001641:                                                                                                  #        BITS 11-13      0.
050036,001642:                                                                                                  #        BIT 14          1.
050037,001643:                                                                                                  #        BIT 15          0.
050038,001644: 
050039,001645:                                                                                                  #  THE ABOVE ENCODING IS DONE BY THE YUL SYSTEM.
050040,001646: 
050041,001647: 00,2214           70116        GENSHIFT           MASK     ADDRWD                                #  GET SHIFT COUNT, TESTING FOR ZERO.
050042,001648: 00,2215           10000                           CCS      A                                     #  (ARRIVES WITH C(A) = LOW7).
050043,001649: 00,2216           12224                           TCF      GENSHFT2                              #  IF NON-ZERO, PROCEED WITH DECREMENTED CT
050044,001650: 
050045,001651: 00,2217           34757                           CAF      BIT10                                 #  ZERO SHIFT COUNT. NO SHIFTS NEEDED BUT
050046,001652: 00,2220           70116                           MASK     ADDRWD                                #  WE MIGHT HAVE TO ROUND MPAC ON SLR AND
050047,001653: 00,2221           10000                           CCS      A                                     #  SRR (SCALAR ONLY).
050048,001654: 00,2222           07105                           TC       ROUNDSUB                              
050049,001655: 00,2223           16030                           TCF      DANZIG                                
050050,001656: 
050051,001657: 00,2224           54135        GENSHFT2           TS       MPTEMP                                #  DECREMENTED SHIFT COUNT TO MPTEMP.
050052,001658: 00,2225           34761                           CAF      BIT8                                  #  TEST MEANING OF LOW SEVEN BIT COUNT IN
050053,001659: 00,2226           00006                           EXTEND                                         #  MPTEMP NOW.
050054,001660: 00,2227           70116                           MP       ADDRWD                                
050055,001661: 00,2230           76214                           MASK     LOW2                                  #  JUMPS ON SHIFT DIRECTION (BIT8) AND
050056,001662: 00,2231           50000                           INDEX    A                                     
050057,001663: 00,2232           12233                           TCF      +1                                    #  ORIGINAL SHIFT DIRECTION (BIT 9).
050058,001664: 00,2233           12332                           TCF      RIGHT-                                #  NEGATIVE SHIFT COUNT FOR SL OR SLR.
050059,001665: 00,2234           12342                           TCF      LEFT                                  #  SL OR SLR.
050060,001666: 00,2235           12336                           TCF      LEFT-                                 #  NEGATIVE SHIFT COUNT WITH SR OR SRR.
050061,001667: 

Page 1159

050063,001669:                                                                                                  #  GENERAL SHIFT RIGHT.
050064,001670: 
050065,001671: 00,2236           10163        RIGHT              CCS      MODE                                  #  SEE IF VECTOR OR SCALAR.
050066,001672: 00,2237           12277                           TCF      GENSCR                                
050067,001673: 00,2240           12277                           TCF      GENSCR                                
050068,001674: 
050069,001675: 00,2241           30135                           CA       MPTEMP                                #  SEE IF SHIFT COUNT LESS THAN 14D.
050070,001676: 00,2242           63726        VRIGHT2            AD       NEG12                                 
050071,001677: 00,2243           00006                           EXTEND                                         
050072,001678: 00,2244           62127                           BZMF     VSSR                                  #  IF SO, BRANCH AND SHIFT IMMEDIATELY.
050073,001679: 
050074,001680: 00,2245           67702                           AD       NEGONE                                #  IF NOT, REDUCE MPTEMP BY A TOTAL OF 14,
050075,001681: 00,2246           54135                           TS       MPTEMP                                #  AND DO A SHIFT RIGHT AND ROUND BY 14.
050076,001682: 00,2247           34772                           CAF      ZERO                                  #  THE ROUND AT THIS STAGE MAY INTRODUCE A
050077,001683: 00,2250           54001                           TS       L                                     #  ONE BIT ERROR IN A SHIFT RIGHT 15D.
050078,001684: 00,2251           56154                           XCH      MPAC                                  
050079,001685: 00,2252           56155                           XCH      MPAC       +1                         
050080,001686: 00,2253           02272                           TC       SETROUND                              #  X COMPONENT NOW SHIFTED, SO MAKE UP THE
050081,001687: 00,2254           20155                           DAS      MPAC                                  #  ROUNDING QUANTITY (0 IN A AND 0 OR +-1
050082,001688:                                                                                                  #  IN L).
050083,001689: 00,2255           56157                           XCH      MPAC       +3                         #  REPEAT THE ABOVE PROCESS FOR Y AND Z.
050084,001690: 00,2256           56160                           XCH      MPAC       +4                         
050085,001691: 00,2257           02272                           TC       SETROUND                              
050086,001692: 00,2260           20160                           DAS      MPAC       +3                         #  NO OVERFLOW ON THESE ADDS.
050087,001693: 
050088,001694: 00,2261           56161                           XCH      MPAC       +5                         
050089,001695: 00,2262           56162                           XCH      MPAC       +6                         
050090,001696: 00,2263           02272                           TC       SETROUND                              
050091,001697: 00,2264           20162                           DAS      MPAC       +5                         
050092,001698: 
050093,001699: 00,2265           10135                           CCS      MPTEMP                                #  SEE IF DONE, DOING FINAL DECREMENT.
050094,001700: 00,2266           54135                           TS       MPTEMP                                
050095,001701: 00,2267           12242                           TCF      VRIGHT2                               
050096,001702: 00,2270           04604        BIASLO             DEC      .2974      B-1                        #  SQRT CONSTANT
050097,001703: 
050098,001704: 00,2271           16030                           TCF      DANZIG                                
050099,001705: 
050100,001706: 00,2272           60000        SETROUND           DOUBLE                                         #  MAKES UP ROUNDING QUANTITY FROM ARRIVING
050101,001707: 00,2273           54156                           TS       MPAC       +2                         #  C(A). L IS ZERO INITIALLY.
050102,001708: 00,2274           34772                           CAF      ZERO                                  
050103,001709: 00,2275           56001                           XCH      L                                     
050104,001710: 00,2276           00002                           TC       Q                                     #  RETURN AND DO THE DAS, RESETTING L TO 0.
050105,001711: 

Page 1160

050107,001713:                                                                                                  #  PROCESS SR AND SRR FOR SCALARS.
050108,001714: 
050109,001715: 00,2277           30135        GENSCR             CA       MPTEMP                                #  SEE IF THE ORIGINAL SHIFT COUNT WAS LESS
050110,001716: 00,2300           63726                 +1        AD       NEG12                                 #  THAN 14D.
050111,001717: 00,2301           00006                           EXTEND                                         
050112,001718: 00,2302           62322                           BZMF     DOSSHFT                               #  DO THE SHIFT IMMEDIATELY IF SO.
050113,001719: 
050114,001720: 00,2303           67702                 +4        AD       NEGONE                                #  IF NOT, DECREMENT SHIFT COUNT BY 14D AND
050115,001721: 00,2304           54135                           TS       MPTEMP                                #  SHIFT MPAC RIGHT 14 PLACES.
050116,001722: 00,2305           34772                           CAF      ZERO                                  
050117,001723: 00,2306           56154                           XCH      MPAC                                  
050118,001724: 00,2307           56155                           XCH      MPAC       +1                         
050119,001725: 00,2310           54156                           TS       MPAC       +2                         
050120,001726: 00,2311           10135                           CCS      MPTEMP                                #  SEE IF FINISHED, DO FINAL DECREMENT.
050121,001727: 00,2312           54135                           TS       MPTEMP                                
050122,001728: 00,2313           02300                           TC       GENSCR     +1                         
050123,001729: 00,2314           22650        SLOPEHI            DEC      .5884                                 #  SQRT CONSTANT.
050124,001730: 00,2315           34757                           CAF      BIT10                                 #  FINISHED WITH SHIFT. SEE IF ROUND
050125,001731: 00,2316           70116                           MASK     ADDRWD                                #  WANTED.
050126,001732: 00,2317           10000                           CCS      A                                     
050127,001733: 00,2320           07105                           TC       ROUNDSUB                              
050128,001734: 00,2321           16030                           TCF      DANZIG                                #  DO SO AND/OR EXIT.
050129,001735: 
050130,001736: 00,2322           50135        DOSSHFT            INDEX    MPTEMP                                #  PICK UP SHIFTING BIT.
050131,001737: 00,2323           34753                           CAF      BIT14                                 
050132,001738: 00,2324           54135                           TS       MPTEMP                                
050133,001739: 00,2325           34757                           CAF      BIT10                                 #  SEE IF TERMINAL ROUND DESIRED.
050134,001740: 00,2326           70116                           MASK     ADDRWD                                
050135,001741: 00,2327           10000                           CCS      A                                     
050136,001742: 00,2330           12031                           TCF      RIGHTR                                #  YES.
050137,001743: 00,2331           12033                           TCF      MPACSHR                               #  JUST SHIFT RIGHT.
050138,001744: 

Page 1161

050140,001746:                                                                                                  #  PROCESS THE RIGHT- (SL(R) WITH A NEGATIVE COUNT), LEFT-, AND LEFT OPTIONS.
050141,001747: 
050142,001748: 00,2332           40135        RIGHT-             CS       MPTEMP                                #  GET ABSOLUTE VALUE - 1 OF SHIFT COUNT
050143,001749: 00,2333           62126                           AD       OCT176                                #  UNDERSTANDING THAT BIT8 (PSEUDO-SIGN)
050144,001750: 00,2334           54135                           TS       MPTEMP                                #  WAS 1 INITIALLY.
050145,001751: 00,2335           12236                           TCF      RIGHT                                 #  DO NORMAL SHIFT RIGHT.
050146,001752: 
050147,001753: 00,2336           42126        LEFT-              CS       OCT176                                #  SAME PROLOGUE TO LEFT FOR INDEXED RIGHT
050148,001754: 00,2337           60135                           AD       MPTEMP                                #  SHIFTS WHOSE NET SHIFT COUNT IS NEGATIVE
050149,001755: 00,2340           40000                           COM                                            
050150,001756: 00,2341           54135                           TS       MPTEMP                                
050151,001757: 
050152,001758: 00,2342           10163        LEFT               CCS      MODE                                  #  SINCE LEFT SHIFTING IS SONE ONE PLACE AT
050153,001759: 00,2343           12346                           TCF      GENSCL                                #  A TIME, NO COMPARISON WITH 14 NEED BE
050154,001760: 00,2344           12346                           TCF      GENSCL                                #  DONE. FOR SCALARS, SEE IF TERMINAL ROUND
050155,001761: 00,2345           12145                           TCF      VSSL                                  #  DESIRED. FOR VECTORS, SHIFT IMMEDIATELY.
050156,001762: 
050157,001763: 00,2346           40116        GENSCL             CS       ADDRWD                                #  PUT ROUNDING BIT (BIT 10 OF ADDRWD) INTO
050158,001764: 00,2347           00006                           EXTEND                                         #  BIT 15 OF CYR WHERE THE ROUNDING BIT OF
050159,001765: 00,2350           74763                           MP       BIT6                                  #  A SHORT SHIFT LEFT WOULD BE
050160,001766: 00,2351           54020                           TS       CYR                                   
050161,001767: 00,2352           12103                           TCF      TSSL       +2                         #  DO THE SHIFT.
050162,001768: 

Page 1162

050164,001770:                                                                                                  #           SCALAR DIVISION INSTRUCTIONS, DDV AND BDDV, ARE EXECUTED HERE. AT THIS POINT, THE DIVIDEND IS IN MPAC
050165,001771:                                                                                                  #  AND THE DIVISOR IN BUF.
050166,001772: 
050167,001773: 00,2353           44770        DDV/BDDV           CS       ONE                                   #  INITIALIZATION.
050168,001774: 00,2354           54136                           TS       DVSIGN                                #  +-1 FOR POSITIVE QUOTIENT - -0 FOR NEG.
050169,001775: 00,2355           54137                           TS       DVNORMCT                              #  DIVIDEND NORMALIZATION COUNT.
050170,001776: 00,2356           54140                           TS       MAXDVSW                               #  NEAR-ONE DIVIDE FLAG.
050171,001777: 
050172,001778: 00,2357           10130                           CCS      BUF                                   #  FORCE BUF POSITIVE WITH THE MAJOR PART
050173,001779: 00,2360           12515                           TCF      BUFPOS                                #  NON-ZERO.
050174,001780: 00,2361           12363                           TCF      +2                                    
050175,001781: 00,2362           12530                           TCF      BUFNEG                                
050176,001782: 
050177,001783: 00,2363           07225        BUFZERO            TC       BUFAGREE                              
050178,001784: 00,2364           10154                           CCS      MPAC                                  #  TEST TO SEE IF MPAC NON-ZERO.  (TOO BIG)
050179,001785: 00,2365           12413                           TCF      OVF+                                  #  MAJOR PART OF DIVIDEND IS POSITIVE NON-0
050180,001786: 00,2366           12370                           TCF      +2                                    
050181,001787: 00,2367           12412                           TCF      OVF+       -1                         #  MAJOR PART OF DIVIDEND IS NEG. NON-ZERO
050182,001788: 
050183,001789: 00,2370           56131                           XCH      BUF        +1                         #  SHIFT DIVIDEND AND DIVISOR LEFT 14.
050184,001790: 00,2371           56130                           XCH      BUF                                   
050185,001791: 00,2372           56155                           XCH      MPAC       +1                         
050186,001792: 00,2373           56154                           XCH      MPAC                                  
050187,001793: 00,2374           10130                           CCS      BUF                                   #  TRY AGAIN ON FORMER MINOR PART.
050188,001794: 00,2375           12421                           TCF      BUF+                                  
050189,001795: 00,2376           12400                           TCF      +2                                    #  OVERFLOW ON ZERO DIVISOR.
050190,001796: 00,2377           12415                           TCF      BUF-                                  
050191,001797: 
050192,001798: 00,2400           40154                           CS       MPAC                                  #  SIGN OF MPAC DETERMINES SIGN OF RESULT.
050193,001799: 00,2401           00006        SGNDVOVF           EXTEND                                         
050194,001800: 00,2402           62404                           BZMF     +2                                    
050195,001801: 00,2403           24136                           INCR     DVSIGN                                #  NEGMAX IN MPAC PERHAPS.
050196,001802: 00,2404           34750        DVOVF              CAF      POSMAX                                #  ON DIVISION OVERFLOW OF ANY SORT, SET
050197,001803: 00,2405           54154                           TS       MPAC                                  #  SET DP MPAC TO +-POSMAX.
050198,001804: 00,2406           02627                           TC       FINALDV    +3                         
050199,001805: 00,2407           34770                           CAF      ONE                                   #  SET OVERFLOW INDICATOR AND EXIT.
050200,001806: 00,2410           54121                           TS       OVFIND                                
050201,001807: 00,2411           06030                           TC       DANZIG                                
050202,001808: 
050203,001809: 00,2412           24136                 -1        INCR     DVSIGN                                
050204,001810: 00,2413           40131        OVF+               CS       BUF        +1                         #  LOAD LOWER ORDER PART OF DIVISOR.
050205,001811: 00,2414           12401                           TCF      SGNDVOVF                              #  GET SIGN OF RESULT.
050206,001812: 
050207,001813: 00,2415           00006        BUF-               EXTEND                                         #  IF BUF IS NEGATIVE, COMPLEMENT IT AND
050208,001814: 00,2416           40131                           DCS      BUF                                   #  MAINTAIN DVSIGN FOR FINAL QUOTIENT SIGN.
050209,001815: 00,2417           52131                           DXCH     BUF                                   
050210,001816: 00,2420           24136                           INCR     DVSIGN                                #  NOW -0.
050211,001817: 00,2421           10154        BUF+               CCS      MPAC                                  #  FORCE MPAC POSITIVE, CHECKING FOR ZERO

Page 1163

050213,001819: 00,2422           12436                           TCF      MPAC+                                 #  DIVIDEND IN THE PROCESS.
050214,001820: 00,2423           12425                           TCF      +2                                    
050215,001821: 00,2424           12432                           TCF      MPAC-                                 
050216,001822: 00,2425           10155                           CCS      MPAC       +1                         
050217,001823: 00,2426           12436                           TCF      MPAC+                                 
050218,001824: 00,2427           16030                           TCF      DANZIG                                #  EXIT IMMEDIATELY ON ZERO DIVIDEND.
050219,001825: 00,2430           12432                           TCF      MPAC-                                 
050220,001826: 00,2431           16030                           TCF      DANZIG                                
050221,001827: 
050222,001828: 00,2432           00006        MPAC-              EXTEND                                         #  FORCE MPAC POSITIVE AS BUF IN BUF-.
050223,001829: 00,2433           40155                           DCS      MPAC                                  
050224,001830: 00,2434           52155                           DXCH     MPAC                                  
050225,001831: 00,2435           24136                           INCR     DVSIGN                                #  NOW +1 OR -0.
050226,001832: 

Page 1164

050228,001834: 00,2436           40154        MPAC+              CS       MPAC                                  #  CHECK FOR DIVISION OVERFLOW. IF THE
050229,001835: 00,2437           67702                           AD       NEGONE                                #  MAJOR PART OF THE DIVIDEND IS LESS THAN
050230,001836: 00,2440           60130                           AD       BUF                                   #  THE MAJOR PART OF THE DIVISOR BY AT
050231,001837: 00,2441           10000                           CCS      A                                     #  LEAST TWO, WE CAN PROCEED IMMEDIATELY
050232,001838: 00,2442           12504                           TCF      DVNORM                                #  WITHOUT NORMALIZATION PRODUCING A DVMAX.
050233,001839: 00,2443           60001        -1/2+2             OCT      60001                                 #  USED IN SQRTSUB.
050234,001840: 
050235,001841: 00,2444           12445                           TCF      +1                                    #  IF THE ABOVE DOES NOT HOLD, FORCE SIGN
050236,001842: 00,2445           34753                           CAF      HALF                                  #  AGREEMENT IN NUMERATOR AND DENOMINATOR
050237,001843: 00,2446           60000                           DOUBLE                                         #  TO FACILITATE OVERFLOW AND NEAR-ONE
050238,001844: 00,2447           60155                           AD       MPAC       +1                         #  CHECKING.
050239,001845: 00,2450           54155                           TS       MPAC       +1                         
050240,001846: 00,2451           34772                           CAF      ZERO                                  
050241,001847: 00,2452           64750                           AD       POSMAX                                
050242,001848: 00,2453           26154                           ADS      MPAC                                  
050243,001849: 
050244,001850: 00,2454           34753                           CAF      HALF                                  #  SAME FOR BUF.
050245,001851: 00,2455           60000                           DOUBLE                                         
050246,001852: 00,2456           60131                           AD       BUF        +1                         
050247,001853: 00,2457           54131                           TS       BUF        +1                         
050248,001854: 00,2460           34772                           CAF      ZERO                                  
050249,001855: 00,2461           64750                           AD       POSMAX                                
050250,001856: 00,2462           26130                           ADS      BUF                                   
050251,001857: 
050252,001858: 00,2463           40154                           CS       MPAC                                  #  CHECK MAGNITUDE OF SIGN-CORRECTED
050253,001859: 00,2464           60130                           AD       BUF                                   #  OPERANDS.
050254,001860: 00,2465           10000                           CCS      A                                     
050255,001861: 00,2466           12504                           TCF      DVNORM                                #  DIVIDE OK - WILL NOT BECOME MAXDV CASE.
050256,001862: 00,2467           00133        LBUF2              ADRES    BUF2                                  
050257,001863: 00,2470           12404                           TCF      DVOVF                                 #  DIVISOR NOT LESS THAN DIVIDEND - OVF.
050258,001864: 
050259,001865: 00,2471           54140                           TS       MAXDVSW                               #  IF THE MAJOR PARTS OF THE DIVIDEND AND
050260,001866: 00,2472           40155                           CS       MPAC       +1                         #  DIVISOR ARE EQUAL, A SPECIAL APPROXIMA-
050261,001867: 00,2473           60131                           AD       BUF        +1                         #  TION IS USED (PROVIDED THE DIVISION IS
050262,001868: 00,2474           00006                           EXTEND                                         #  POSSIBLE, OF COURSE).
050263,001869: 00,2475           62404                           BZMF     DVOVF                                 
050264,001870: 00,2476           12504                           TCF      DVNORM                                #  IF NO OVERFLOW.
050265,001871: 

Page 1165

050267,001873: 00,2477           00006        BUFNORM            EXTEND                                         #  ADD -1 TO AUGMENT SHIFT COUNT AND SHIFT
050268,001874: 00,2500           24137                           AUG      DVNORMCT                              #  LEFT ONE PLACE.
050269,001875: 00,2501           00006                           EXTEND                                         
050270,001876: 00,2502           30131                           DCA      BUF                                   
050271,001877: 00,2503           20131                           DAS      BUF                                   
050272,001878: 
050273,001879: 00,2504           30130        DVNORM             CA       BUF                                   #  SEE IF DIVISOR NORMALIZED YET.
050274,001880: 00,2505           60000                           DOUBLE                                         
050275,001881: 00,2506           54000                           OVSK                                           
050276,001882: 00,2507           12477                           TCF      BUFNORM                               #  NO - SHIFT LEFT ONE AND TRY AGAIN.
050277,001883: 
050278,001884: 00,2510           52155                           DXCH     MPAC                                  #  CALL DIVIDEND NORMALIZATION SEQUENCE
050279,001885: 00,2511           50137                           INDEX    DVNORMCT                              #  PRIOR TO DOING THE DIVIDE.
050280,001886: 00,2512           02564                           TC       MAXTEST                               
050281,001887: 
050282,001888: 00,2513           54156                           TS       MPAC       +2                         #  RETURNS WITH DIVISION DONE AND C(A) = 0.
050283,001889: 00,2514           16030                           TCF      DANZIG                                
050284,001890: 
050285,001891: 00,2515           10000        BUFPOS             CCS      A                                     
050286,001892: 00,2516           12421                           TCF      BUF+                                  #  TO BUF+ IF BUF IS GREATER THAN +1.
050287,001893: 
050288,001894: 00,2517           40131                           CS       BUF        +1                         #  IF BUF IS +1, FORCING SIGN AGREEMENT
050289,001895: 00,2520           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
050290,001896: 00,2521           62421                           BZMF     BUF+                                  #  BRANCH IF SIGNS AGREE.
050291,001897: 
050292,001898: 00,2522           34753                           CA       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
050293,001899: 00,2523           60000                 +6        DOUBLE                                         
050294,001900: 00,2524           26131                           ADS      BUF        +1                         
050295,001901: 00,2525           34772                           CA       ZERO                                  
050296,001902: 00,2526           54130                           TS       BUF                                   
050297,001903: 00,2527           12363                           TCF      BUFZERO                               
050298,001904: 
050299,001905: 00,2530           10000        BUFNEG             CCS      A                                     
050300,001906: 00,2531           12415                           TCF      BUF-                                  #  TO BUF- IF BUF IS LESS THAN -1.
050301,001907: 
050302,001908: 00,2532           30131                           CA       BUF        +1                         #  IF BUF IS -1, FORCING SIGN AGREEMENT
050303,001909: 00,2533           00006                           EXTEND                                         #  MAY CAUSE BUF TO BECOME ZERO.
050304,001910: 00,2534           62415                           BZMF     BUF-                                  #  BRANCH IF SIGNS AGREE.
050305,001911: 
050306,001912: 00,2535           44753                           CS       HALF                                  #  SIGNS DISAGREE.  FORCE AGREEMENT.
050307,001913: 00,2536           12523                           TCF      BUFPOS     +6                         
050308,001914: 

Page 1166

050310,001916:                                                                                                  #  THE FOLLOWING ARE PROLOGUES TO SHIFT THE DIVIDEND ARRIVING IN A AND L BEFORE THE DIVIDE.
050311,001917: 
050312,001918: 00,2537           22021                 -21D      LXCH     SR                                    #  SPECIAL PROLOGUE FOR UNIT WHEN THE
050313,001919: 00,2540           00006                           EXTEND                                         #  LENGTH OF THE ARGUMENT WAS NOT LESS THAN
050314,001920: 00,2541           74753                           MP       HALF                                  #  .5. IN THIS CASE, EACH COMPONENT MUST BE
050315,001921: 00,2542           56001                           XCH      L                                     #  SHIFTED RIGHT ONE TO PRODUCE A HALF-UNIT
050316,001922: 00,2543           60021                           AD       SR                                    #  VECTOR.
050317,001923: 00,2544           56001                           XCH      L                                     
050318,001924: 00,2545           12570                           TCF      GENDDV     +1                         #  WITH DP DIVIDEND IN A,L.
050319,001925: 
050320,001926: 00,2546           20001                           DDOUBL                                         #  PROLOGUE WHICH NORMALIZES THE DIVIDEND
050321,001927: 00,2547           20001                           DDOUBL                                         #  WHEN IT IS KNOWN THAT NO DIVISION
050322,001928: 00,2550           20001                           DDOUBL                                         #  OVERFLOW WILL OCCUR.
050323,001929: 00,2551           20001                           DDOUBL                                         
050324,001930: 00,2552           20001                           DDOUBL                                         
050325,001931: 00,2553           20001                           DDOUBL                                         
050326,001932: 00,2554           20001                           DDOUBL                                         
050327,001933: 00,2555           20001                           DDOUBL                                         
050328,001934: 00,2556           20001                           DDOUBL                                         
050329,001935: 00,2557           20001                           DDOUBL                                         
050330,001936: 00,2560           20001                           DDOUBL                                         
050331,001937: 00,2561           20001                           DDOUBL                                         
050332,001938: 00,2562           20001                           DDOUBL                                         
050333,001939: 00,2563           52155                 -1        DXCH     MPAC                                  
050334,001940: 00,2564           10140        MAXTEST            CCS      MAXDVSW                               #  0 IF MAJORS MIGHT BE =, -1 OTHERWISE.
050335,001941: 00,2565           06552        BIASHI             DEC      .4192      B-1                        #  SQRT CONSTANTS
050336,001942: 
050337,001943: 00,2566           12641                           TCF      MAXDV                                 #  CHECK TO SEE IF THEY ARE NOW EQUAL.
050338,001944: 

Page 1167

050340,001946:                                                                                                  #  THE FOLLOWING IS A GENERAL PURPOSE DOUBLE PRECISION DIVISION ROUTINE. IT DIVIDES MPAC BY BUF AND LEAVES
050341,001947:                                                                                                  #  THE RESULT IN MPAC. THE FOLLOWING CONDITIONS MUST BE SATISFIED:
050342,001948: 
050343,001949:                                                                                                  #        1.      THE DIVISOR (BUF) MUST BE POSITIVE AND NOT LESS THAN .5.
050344,001950: 
050345,001951:                                                                                                  #        2.      THE DIVIDEND (MPAC) MUST BE POSITIVE WITH THE MAJOR PART OF MPAC STRICTLY LESS THAN THAT OF BUF
050346,001952:                                                                                                  #                (A SPECIAL APPROXIMATION, MAXDV, IS USED WHEN THE MAJOR PARTS ARE EQUAL).
050347,001953: 
050348,001954:                                                                                                  #  UNDERSTANDING THAT A/B = Q + S(R/B) WHERE S = 2(-14) AND Q AND R ARE QUOTIENT AND REMAINDER, RESPEC-
050349,001955:                                                                                                  #  TIVELY, THE FOLLOWING APPROXIMATION IS OBTAINED BY MULTIPLYING ABOVE AND BELOW BY C - SD AND NEGLECTING TERMS OF
050350,001956:                                                                                                  #  ORDER S-SQUARED (POSSIBLY INTRODUCING ERROR INTO THE LOW TWO BITS OF THE RESULT). SIGN AGREEMENT IS UNNECESSARY.
050351,001957: 
050352,001958:                                                                                                  #        A + SB .      (R - QD)                                             A + SB
050353,001959:                                                                                                  #        ------ = Q + S(------) WHERE Q AND R ARE QUOTIENT AND REMAINDER OF ------ RESPECTIVELY.
050354,001960:                                                                                                  #        C + SD        (  C   )                                                C
050355,001961: 
050356,001962: 00,2567           52155        GENDDV             DXCH     MPAC                                  #  WE NEED A AND B ONLY FOR FIRST DV.
050357,001963: 00,2570           00006                 +1        EXTEND                                         #  (SPECIAL UNIT PROLOGUE ENTERS HERE).
050358,001964: 00,2571           10130                           DV       BUF                                   #  A NOW CONTAINS Q AND L, R.
050359,001965: 00,2572           52155                           DXCH     MPAC                                  
050360,001966: 
050361,001967: 00,2573           40154                           CS       MPAC                                  #  FORM DIVIDEND FOR MINOR PART OF RESULT.
050362,001968: 00,2574           00006                           EXTEND                                         
050363,001969: 00,2575           70131                           MP       BUF        +1                         
050364,001970: 00,2576           60155                           AD       MPAC       +1                         #  OVERFLOW AT THIS POINT IS POSITIVE SINCE
050365,001971: 00,2577           54000                           OVSK                                           #  R IS POSITIVE IN EVERY CASE.
050366,001972: 00,2600           12605                           TCF      +5                                    
050367,001973: 
050368,001974: 00,2601           00006                           EXTEND                                         #  OVERFLOW CAN BE REMOVED BY SUBTRACTING C
050369,001975: 00,2602           60130                           SU       BUF                                   #  (BUF) ONCE SINCE R IS ALWAYS LESS THAN C
050370,001976: 00,2603           24154                           INCR     MPAC                                  #  IN THIS CASE. INCR COMPENSATES SUBTRACT.
050371,001977: 00,2604           12607                           TCF      +DOWN                                 #  (SINCE C(A) IS STILL POSITIVE).
050372,001978: 
050373,001979: 00,2605           00006                 +5        EXTEND                                         #  C(A) CAN BE MADE LESS THAN C IN MAGNI-
050374,001980: 00,2606           62617                           BZMF     -UP                                   #  TUDE BY DIMINISHING IT BY C (SINCE C IS
050375,001981:                                                                                                  #  NOT LESS THAN .5) UNLESS C(A) = 0.
050376,001982: 

Page 1168

050378,001984: 00,2607           00006        +DOWN              EXTEND                                         
050379,001985: 00,2610           60130                           SU       BUF                                   #  IF POSITIVE, REDUCE ONLY IF NECESSARY
050380,001986: 00,2611           00006                           EXTEND                                         #  SINCE THE COMPENSATING INCR MIGHT CAUSE
050381,001987: 00,2612           12615                           BZF      +3                                    #  OVERFLOW.
050382,001988: 00,2613           00006                           EXTEND                                         #  DONT SUBTRACT UNLESS RESULT IS POSITIVE
050383,001989: 00,2614           62623                           BZMF     ENDMAXDV                              #  OR ZERO.
050384,001990: 
050385,001991: 00,2615           24154                 +3        INCR     MPAC                                  #  KEEP SUBTRACT HERE AND COMPENSATE.
050386,001992: 00,2616           12624                           TCF      FINALDV                               
050387,001993: 
050388,001994: 00,2617           00006        -UP                EXTEND                                         #  IF ZERO, SET MINOR PART OF RESULT TO
050389,001995: 00,2620           12627                           BZF      FINALDV    +3                         #  ZERO.
050390,001996: 
050391,001997: 00,2621           00006                           EXTEND                                         #  IF NEGATIVE, ADD C TO A, SUBTRACTING ONE
050392,001998: 00,2622           26154                           DIM      MPAC                                  #  TO COMPENSATE. DIM IS OK HERE SINCE THE
050393,001999: 00,2623           60130        ENDMAXDV           AD       BUF                                   #  MAJOR PART NEVER GOES NEGATIVE.
050394,002000: 

Page 1169

050396,002002: 00,2624           22007        FINALDV            ZL                                             #  DO DV TO OBTAIN MINOR PART OF RESULT.
050397,002003: 00,2625           00006                           EXTEND                                         
050398,002004: 00,2626           10130                           DV       BUF                                   
050399,002005: 00,2627           54155                 +3        TS       MPAC       +1                         
050400,002006: 
050401,002007: 00,2630           10136                           CCS      DVSIGN                                #  LEAVE RESULT POSITIVE UNLESS C(DVSIGN)=
050402,002008: 00,2631           00002                           TC       Q                                     #  -0.
050403,002009: 00,2632           00002                           TC       Q                                     
050404,002010: 00,2633           00002                           TC       Q                                     
050405,002011: 
050406,002012: 00,2634           00006                           EXTEND                                         
050407,002013: 00,2635           40155                           DCS      MPAC                                  
050408,002014: 00,2636           52155                           DXCH     MPAC                                  
050409,002015: 00,2637           34772                           CAF      ZERO                                  #  SO WE ALWAYS RETURN WITH C(A) = 0.
050410,002016: 00,2640           00002                           TC       Q                                     
050411,002017: 

Page 1170

050413,002019:                                                                                                  #  IF THE MAJOR PARTS OF THE DIVISOR AND DIVIDEND ARE EQUAL, BUT THE MINOR PARTS ARE SUCH THAT THE
050414,002020:                                                                                                  #  DIVIDEND IS STRICTLY LESS THAN THE DIVISOR IN MAGNITUDE, THE FOLLOWING APPROXIMATION IS USED. THE ASSUMPTIONS
050415,002021:                                                                                                  #  ARE THE SAME AS THE GENERAL ROUTINE WITH THE ADDITION THAT SIGN AGREEMENT IS NECESSARY (B, C, & D POSITIVE).
050416,002022: 
050417,002023:                                                                                                  #        C + SB .          (C + B - D)
050418,002024:                                                                                                  #        ------ = 37777 + S(---------)
050419,002025:                                                                                                  #        C + SD            (    C    )
050420,002026: 
050421,002027:                                                                                                  #  THE DIVISION MAY BE PERFORMED IMMEDIATELY SINCE B IS STRICTLY LESS THAN D AND C IS NOT LESS THAN .5.
050422,002028: 
050423,002029: 00,2641           40154        MAXDV              CS       MPAC                                  #  SEE IF MAXDV CASE STILL HOLDS AFTER
050424,002030: 00,2642           60130                           AD       BUF                                   #  NORMALIZATION.
050425,002031: 00,2643           00006                           EXTEND                                         
050426,002032: 00,2644           12646                           BZF      +2                                    
050427,002033: 00,2645           12567                           TCF      GENDDV                                #  MPAC NOW LESS THAN BUF - DIVIDE AS USUAL
050428,002034: 
050429,002035: 00,2646           34750                 +2        CAF      POSMAX                                #  SET MAJOR PART OF RESULT.
050430,002036: 00,2647           54154                           TS       MPAC                                  
050431,002037: 
050432,002038: 00,2650           40131                           CS       BUF        +1                         #  FORM DIVIDEND OF MINOR PART OF RESULT.
050433,002039: 00,2651           60155                           AD       MPAC       +1                         
050434,002040: 00,2652           12623                           TCF      ENDMAXDV                              #  GO ADD C AND DO DIVIDE, ATTACHING SIGN
050435,002041:                                                                                                  #  BEFORE EXITING.
050436,002042: 

Page 1171

050438,002044:                                                                                                  #  VECTOR DIVIDED BY SCALAR, V/SC, IS EXECUTED HERE. THE VECTOR IS NOW IN MPAC WITH SCALAR IN BUF.
050439,002045: 
050440,002046: 00,2653           44770        V/SC2              CS       ONE                                   #  INITIALIZE DIVIDEND NORMALIZATION COUNT
050441,002047: 00,2654           54137                           TS       DVNORMCT                              #  AND DIVISION SIGN REGISTER.
050442,002048: 00,2655           54127                           TS       VBUF       +5                         
050443,002049: 
050444,002050: 00,2656           03007                           TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
050445,002051: 
050446,002052: 00,2657           52131                           DXCH     BUF                                   
050447,002053: 00,2660           07500                           TC       ALSIGNAG                              #  SIGN AGREE BUF
050448,002054: 00,2661           52131                           DXCH     BUF                                   
050449,002055: 00,2662           10130                           CCS      BUF                                   #  FORCE DIVISOR POSITIVE WITH MAJOR PART
050450,002056: 00,2663           12720                           TCF      /BUF+                                 #  NON-ZERO (IF POSSIBLE).
050451,002057: 00,2664           12666                           TCF      +2                                    
050452,002058: 00,2665           12714                           TCF      /BUF-                                 
050453,002059: 
050454,002060: 00,2666           56131                           XCH      BUF        +1                         #  SHIFT VECTOR AND SCALAR LEFT 14.
050455,002061: 00,2667           56130                           XCH      BUF                                   
050456,002062: 00,2670           56155                           XCH      MPAC       +1                         
050457,002063: 00,2671           56154                           XCH      MPAC                                  
050458,002064: 00,2672           00006                           EXTEND                                         #  CHECK FOR OVERFLOW IN EACH CASE.
050459,002065: 00,2673           12675                           BZF      +2                                    
050460,002066: 00,2674           12404                           TCF      DVOVF                                 
050461,002067: 
050462,002068: 00,2675           56160                           XCH      MPAC       +4                         
050463,002069: 00,2676           56157                           XCH      MPAC       +3                         
050464,002070: 00,2677           00006                           EXTEND                                         
050465,002071: 00,2700           12702                           BZF      +2                                    
050466,002072: 00,2701           12404                           TCF      DVOVF                                 
050467,002073: 
050468,002074: 00,2702           56162                           XCH      MPAC       +6                         
050469,002075: 00,2703           56161                           XCH      MPAC       +5                         
050470,002076: 00,2704           00006                           EXTEND                                         
050471,002077: 00,2705           12707                           BZF      +2                                    
050472,002078: 00,2706           12404                           TCF      DVOVF                                 
050473,002079: 
050474,002080: 00,2707           10130                           CCS      BUF                                   
050475,002081: 00,2710           12720                           TCF      /BUF+                                 
050476,002082: 00,2711           12404                           TCF      DVOVF                                 #  ZERO DIVISOR - OVERFLOW.
050477,002083: 00,2712           12714                           TCF      /BUF-                                 
050478,002084: 00,2713           12404                           TCF      DVOVF                                 
050479,002085: 
050480,002086: 00,2714           00006        /BUF-              EXTEND                                         #  ON NEGATIVE, COMPLEMENT BUF AND MAINTAIN
050481,002087: 00,2715           40131                           DCS      BUF                                   #  DVSIGN IN VBUF +5.
050482,002088: 00,2716           52131                           DXCH     BUF                                   
050483,002089: 00,2717           24127                           INCR     VBUF       +5                         
050484,002090: 

Page 1172

050486,002092: 00,2720           00006        /BUF+              EXTEND                                         
050487,002093: 00,2721           30131                           DCA      BUF                                   #  LEAVE ABS(ORIG DIVISOR) IN BUF2
050488,002094: 00,2722           52134                           DXCH     BUF2                                  #  FOR OVERFLOW TESTING
050489,002095: 00,2723           12731                           TCF      /NORM                                 #  NORMALIZE DIVISOR IN BUF.
050490,002096: 
050491,002097: 00,2724           00006        /NORM2             EXTEND                                         #  IF LESS THAN .5, AUGMENT DVNORMCT AND
050492,002098: 00,2725           24137                           AUG      DVNORMCT                              #  DOUBLE DIVISOR.
050493,002099: 00,2726           00006                           EXTEND                                         
050494,002100: 00,2727           30131                           DCA      BUF                                   
050495,002101: 00,2730           20131                           DAS      BUF                                   
050496,002102: 
050497,002103: 00,2731           30130        /NORM              CA       BUF                                   #  SEE IF DIVISOR NORMALIZED.
050498,002104: 00,2732           60000                           DOUBLE                                         
050499,002105: 00,2733           54000                           OVSK                                           
050500,002106: 00,2734           12724                           TCF      /NORM2                                #  DOUBLE AND TRY AGAIN IF NOT.
050501,002107: 
050502,002108: 00,2735           02747                           TC       V/SCDV                                #  DO X COMPONENT DIVIDE.
050503,002109: 00,2736           52160                           DXCH     MPAC       +3                         #  SUPPLY ARGUMENTS IN USUAL SEQUENCE.
050504,002110: 00,2737           52155                           DXCH     MPAC                                  
050505,002111: 00,2740           52160                           DXCH     MPAC       +3                         
050506,002112: 
050507,002113: 00,2741           02747                           TC       V/SCDV                                #  Y COMPONENT.
050508,002114: 00,2742           52162                           DXCH     MPAC       +5                         
050509,002115: 00,2743           52155                           DXCH     MPAC                                  
050510,002116: 00,2744           52162                           DXCH     MPAC       +5                         
050511,002117: 
050512,002118: 00,2745           02747                           TC       V/SCDV                                #  Z COMPONENT.
050513,002119: 00,2746           17354                           TCF      VROTATEX                              #  GO RE-ARRANGE COMPONENTS BEFORE EXIT.
050514,002120: 

Page 1173

050516,002122:                                                                                                  #  SUBROUTINE USED BY V/SC TO DIVIDE VECTOR COMPONENT IN MPAC,+1 BY THE SCALAR GIVEN IN BUF.
050517,002123: 
050518,002124: 00,2747           30127        V/SCDV             CA       VBUF       +5                         #  REFLECTS SIGN OF SCALAR.
050519,002125: 00,2750           54136                           TS       DVSIGN                                
050520,002126: 
050521,002127: 00,2751           10154                           CCS      MPAC                                  #  FORCE MPAC POSITIVE, EXITING ON ZERO.
050522,002128: 00,2752           12766                           TCF      /MPAC+                                
050523,002129: 00,2753           12755                           TCF      +2                                    
050524,002130: 00,2754           12762                           TCF      /MPAC-                                
050525,002131: 
050526,002132: 00,2755           10155                           CCS      MPAC       +1                         
050527,002133: 00,2756           12766                           TCF      /MPAC+                                
050528,002134: 00,2757           00002                           TC       Q                                     
050529,002135: 00,2760           12762                           TCF      /MPAC-                                
050530,002136: 00,2761           00002                           TC       Q                                     
050531,002137: 
050532,002138: 00,2762           00006        /MPAC-             EXTEND                                         #  USUAL COMPLEMENTING AND SETTING OF SIGN.
050533,002139: 00,2763           40155                           DCS      MPAC                                  
050534,002140: 00,2764           52155                           DXCH     MPAC                                  
050535,002141: 00,2765           24136                           INCR     DVSIGN                                
050536,002142: 
050537,002143: 00,2766           44770        /MPAC+             CS       ONE                                   #  INITIALIZE NEAR-ONE SWITCH.
050538,002144: 00,2767           54140                           TS       MAXDVSW                               
050539,002145: 
050540,002146: 00,2770           40154                           CS       MPAC                                  #  CHECK POSSIBLE OVERFLOW.
050541,002147: 00,2771           60133                           AD       BUF2                                  #  UNNORMALIZED INPUT DIVISOR.
050542,002148: 00,2772           10000                           CCS      A                                     
050543,002149: 00,2773           13003                           TCF      DDVCALL                               #  NOT NEAR-ONE
050544,002150: 00,2774           12776                           TCF      +2                                    #  +0 IS JUST POSSIBLE
050545,002151: 00,2775           12404                           TCF      DVOVF                                 #  NO HOPE
050546,002152: 00,2776           54140                           TS       MAXDVSW                               #  SIGNAL POSSIBLE NEAR-ONE CASE
050547,002153: 00,2777           40155                           CS       MPAC       +1                         #  SEE IF DIVISION CAN BE DONE
050548,002154: 00,3000           60134                           AD       BUF2       +1                         
050549,002155: 00,3001           00006                           EXTEND                                         
050550,002156: 00,3002           62404                           BZMF     DVOVF                                 
050551,002157: 
050552,002158: 00,3003           52155        DDVCALL            DXCH     MPAC                                  #  CALL PRE-DIVIDE NORMALIZATION.
050553,002159: 00,3004           50137                           INDEX    DVNORMCT                              
050554,002160: 00,3005           12564                           TCF      MAXTEST                               
050555,002161: 

Page 1174

050557,002163: 00,3006           32506        SLOPELO            DEC      .8324                                 
050558,002164: 
050559,002165: 00,3007           56002        VECAGREE           XCH      Q                                     #  SAVE Q IN A
050560,002166: 00,3010           52155                           DXCH     MPAC                                  
050561,002167: 00,3011           07500                           TC       ALSIGNAG                              #  SIGNAGREE MPAC
050562,002168: 00,3012           52155                           DXCH     MPAC                                  
050563,002169: 00,3013           52160                           DXCH     MPAC       +3                         
050564,002170: 00,3014           07500                           TC       ALSIGNAG                              #  SIGN AGREE MPAC +3
050565,002171: 00,3015           52160                           DXCH     MPAC       +3                         
050566,002172: 00,3016           52162                           DXCH     MPAC       +5                         
050567,002173: 00,3017           07500                           TC       ALSIGNAG                              #  SIGNAGREE MPAC +5
050568,002174: 00,3020           52162                           DXCH     MPAC       +5                         
050569,002175: 00,3021           00000                           TC       A                                     
050570,002176: 

Page 1175

050572,002178:                                                                                                  #  THE FOLLOWING ROUTINE EXECUTES THE UNIT INSTRUCTION, WHICH TAKES THE UNIT OF THE VECTOR IN MPAC.
050573,002179: 
050574,002180: 00,3022           03007        UNIT               TC       VECAGREE                              #  FORCE SIGN AGREEMENT IN VECTOR
050575,002181: 00,3023           07466                           TC       MPACVBUF                              #  SAVE ARGUMENT IN VBUF
050576,002182: 00,3024           34772                           CAF      ZERO                                  #  MUST SENSE OVERFLOW IN FOLLOWING DOT.
050577,002183: 00,3025           56121                           XCH      OVFIND                                
050578,002184: 00,3026           54141                           TS       TEM1                                  
050579,002185: 00,3027           03316                           TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
050580,002186: 00,3030           30141                           CA       TEM1                                  
050581,002187: 00,3031           56121                           XCH      OVFIND                                
050582,002188: 00,3032           00006                           EXTEND                                         
050583,002189: 00,3033           13035                           BZF      +2                                    
050584,002190: 00,3034           12404                           TCF      DVOVF                                 
050585,002191: 00,3035           00006                           EXTEND                                         
050586,002192: 00,3036           30155                           DCA      MPAC                                  #  LEAVE THE SQUARE OF THE LENGTH OF THE
050587,002193: 00,3037           50120                           INDEX    FIXLOC                                #  ARGUMENT IN LVSQUARE.
050588,002194: 00,3040           52043                           DXCH     LVSQUARE                              
050589,002195: 
050590,002196: 00,3041           03342                           TC       SQRTSUB                               #  GO TAKE THE NORMALIZED SQUARE ROOT.
050591,002197: 
050592,002198: 00,3042           10154                           CCS      MPAC                                  #  CHECK FOR UNIT OVERFLOW.
050593,002199: 00,3043           13050                           TCF      +5                                    #  MPAC IS NOT LESS THAN .5 UNLESS
050594,002200: 00,3044           54001                           TS       L                                     
050595,002201: 00,3045           50120                           INDEX    FIXLOC                                
050596,002202: 00,3046           52045                           DXCH     LV                                    
050597,002203: 00,3047           12404                           TCF      DVOVF                                 #  INPUT TO SQRTSUB WAS 0.
050598,002204: 
050599,002205: 00,3050           44321                           CS       FOURTEEN                              #  SEE IF THE INPUT WAS SO SMALL THE THE
050600,002206: 00,3051           60135                           AD       MPTEMP                                #  FIRST TWO REGISTERS OF THE SQUARE WERE 0
050601,002207: 00,3052           10000                           CCS      A                                     
050602,002208: 00,3053           40000                           COM                                            #  IF SO, SAVE THE NEGATIVE OF THE SHIFT
050603,002209: 00,3054           13132                           TCF      SMALL                                 #  COUNT -15D.
050604,002210: 
050605,002211: 00,3055           13064                           TCF      LARGE                                 #  (THIS IS USUALLY THE CASE.)
050606,002212: 
050607,002213: 00,3056           44776                           CS       THIRTEEN                              #  IF THE SHIFT COUNT WAS EXACTLY 14, SET
050608,002214: 00,3057           54135                           TS       MPTEMP                                #  THE PRE-DIVIDE NORM COUNT TO -13D.
050609,002215: 
050610,002216: 00,3060           30154                           CA       MPAC                                  #  SHIFT THE LENGTH RIGHT 14 BEFORE STORING
050611,002217: 00,3061           54001        SMALL2             TS       L                                     #  (SMALL EXITS TO THIS POINT).
050612,002218: 00,3062           34772                           CAF      ZERO                                  
050613,002219: 00,3063           13111                           TCF      LARGE2                                #  GO TO STORE LENGTH AND PROCEED.
050614,002220: 
050615,002221: 00,3064           10135        LARGE              CCS      MPTEMP                                #  MOST ALL CASES COME HERE.
050616,002222: 00,3065           13073                           TCF      LARGE3                                #  SEE IF NO NORMALIZATION WAS REQUIRED BY
050617,002223: 00,3066           42024                           CS       SRDDV                                 #  SQRT, AND IF SO, SET UP FOR A SHIFT
050618,002224: 00,3067           54135                           TS       MPTEMP                                #  RIGHT 1 BEFORE DIVIDING TO PRODUCE
050619,002225: 00,3070           00006                           EXTEND                                         #  THE DESIRED HALF UNIT VECTOR.
050620,002226: 00,3071           30155                           DCA      MPAC                                  

Page 1176

050622,002228: 00,3072           13111                           TCF      LARGE2                                
050623,002229: 

Page 1177

050625,002231: 00,3073           40000        LARGE3             COM                                            #  LEAVE NEGATIVE OF SHIFT COUNT-1 FOR
050626,002232: 00,3074           54135                           TS       MPTEMP                                #  PREDIVIDE LEFT SHIFT.
050627,002233: 
050628,002234: 00,3075           40000                           COM                                            #  PICK UP REQUIRED SHIFTING BIT TO UNNORM-
050629,002235: 00,3076           50000                           INDEX    A                                     #  ALIZE THE SQRT RESULT.
050630,002236: 00,3077           34753                           CAF      BIT14                                 
050631,002237: 00,3100           54130                           TS       BUF                                   
050632,002238: 00,3101           00006                           EXTEND                                         
050633,002239: 00,3102           70155                           MP       MPAC       +1                         
050634,002240: 00,3103           56130                           XCH      BUF                                   
050635,002241: 00,3104           00006                           EXTEND                                         #  (UNNORMALIZE THE SQRT FOR LV).
050636,002242: 00,3105           70154                           MP       MPAC                                  
050637,002243: 00,3106           56001                           XCH      L                                     
050638,002244: 00,3107           60130                           AD       BUF                                   
050639,002245: 00,3110           56001                           XCH      L                                     
050640,002246: 
050641,002247: 00,3111           50120        LARGE2             INDEX    FIXLOC                                
050642,002248: 00,3112           52045                           DXCH     LV                                    #  LENGTH NOW STORED IN WORK AREA.
050643,002249: 
050644,002250: 00,3113           44770                           CS       ONE                                   
050645,002251: 00,3114           54140                           TS       MAXDVSW                               #  NO MAXDV CASES IN UNIT.
050646,002252: 
050647,002253: 00,3115           52123                           DXCH     VBUF                                  #  PREPARE X COMPONENT FOR DIVIDE, SETTING
050648,002254: 00,3116           52155                           DXCH     MPAC                                  #  LENGTH OF VECTOR AS DIVISOR IN BUF.
050649,002255: 00,3117           52131                           DXCH     BUF                                   
050650,002256: 00,3120           03150                           TC       UNITDV                                
050651,002257: 
050652,002258: 00,3121           52125                           DXCH     VBUF       +2                         #  DO Y AND Z IN USUAL FASHION SO WE CAN
050653,002259: 00,3122           52155                           DXCH     MPAC                                  #  EXIT THROUGH VROTATEX.
050654,002260: 00,3123           52160                           DXCH     MPAC       +3                         
050655,002261: 00,3124           03150                           TC       UNITDV                                
050656,002262: 
050657,002263: 00,3125           52127                           DXCH     VBUF       +4                         
050658,002264: 00,3126           52155                           DXCH     MPAC                                  
050659,002265: 00,3127           52162                           DXCH     MPAC       +5                         
050660,002266: 00,3130           03150                           TC       UNITDV                                
050661,002267: 00,3131           17354                           TCF      VROTATEX                              #  AND EXIT.
050662,002268: 

Page 1178

050664,002270:                                                                                                  #           IF THE LENGTH OF THE ARGUMENT VECTOR WAS LESS THAN 2(-28), EACH COMPONENT MUST BE SHIFTED LEFT AT LEAST
050665,002271:                                                                                                  #  14 PLACES BEFORE THE DIVIDE. NOTE THAT IN THIS CASE, THE MAJOR PART OF EACH COMPONENT IS ZERO.
050666,002272: 
050667,002273: 00,3132           54135        SMALL              TS       MPTEMP                                #  NEGATIVE OF PRE-DIVIDE SHIFT COUNT.
050668,002274: 
050669,002275: 00,3133           34772                           CAF      ZERO                                  #  SHIFT EACH COMPONENT LEFT 14.
050670,002276: 00,3134           56123                           XCH      VBUF       +1                         
050671,002277: 00,3135           56122                           XCH      VBUF                                  
050672,002278: 00,3136           56125                           XCH      VBUF       +3                         
050673,002279: 00,3137           56124                           XCH      VBUF       +2                         
050674,002280: 00,3140           56127                           XCH      VBUF       +5                         
050675,002281: 00,3141           56126                           XCH      VBUF       +4                         
050676,002282: 
050677,002283: 00,3142           40135                           CS       MPTEMP                                
050678,002284: 00,3143           50000                           INDEX    A                                     
050679,002285: 00,3144           34753                           CAF      BIT14                                 
050680,002286: 00,3145           00006                           EXTEND                                         
050681,002287: 00,3146           70154                           MP       MPAC                                  
050682,002288: 00,3147           13061                           TCF      SMALL2                                
050683,002289: 
050684,002290: 00,3150     4776               THIRTEEN           =        OCT15                                 
050685,002291: 00,3150     4321               FOURTEEN           =        OCT16                                 
050686,002292: 00,3150     4321               OCT16              =        R1D1                                  
050687,002293: 

Page 1179

050689,002295:                                                                                                  #  THE FOLLOWING ROUTINE SETS UP THE CALL TO THE DIVIDE ROUTINES.
050690,002296: 
050691,002297: 00,3150           10154        UNITDV             CCS      MPAC                                  #  FORCE MPAC POSITIVE IF POSSIBLE, SETTING
050692,002298: 00,3151           13167                           TCF      UMPAC+                                #  DVSIGN ACCORDING TO THE SIGN OF MPAC
050693,002299: 00,3152           13154                           TCF      +2                                    #  SINCE THE DIVISOR IS ALWAYS POSITIVE
050694,002300: 00,3153           13161                           TCF      UMPAC-                                #  HERE.
050695,002301: 
050696,002302: 00,3154           10155                           CCS      MPAC       +1                         
050697,002303: 00,3155           13167                           TCF      UMPAC+                                
050698,002304: 00,3156           00002                           TC       Q                                     #  EXIT IMMEDIATELY ON ZERO.
050699,002305: 00,3157           13161                           TCF      UMPAC-                                
050700,002306: 00,3160           00002                           TC       Q                                     
050701,002307: 
050702,002308: 00,3161           44772        UMPAC-             CS       ZERO                                  #  IF NEGATIVE, SET -0 IN DVSIGN FOR FINAL
050703,002309: 00,3162           54136                           TS       DVSIGN                                #  COMPLEMENT.
050704,002310: 00,3163           00006                           EXTEND                                         
050705,002311: 00,3164           40155                           DCS      MPAC                                  #  PICK UP ABSOLUTE VALUE OF ARG AND JUMP.
050706,002312: 00,3165           50135                           INDEX    MPTEMP                                
050707,002313: 00,3166           12563                           TCF      MAXTEST    -1                         
050708,002314: 
050709,002315: 00,3167           54136        UMPAC+             TS       DVSIGN                                #  SET DVSIGN FOR POSITIVE QUOTIENT.
050710,002316: 00,3170           52155                           DXCH     MPAC                                  
050711,002317: 00,3171           50135                           INDEX    MPTEMP                                
050712,002318: 00,3172           12563                           TCF      MAXTEST    -1                         
050713,002319: 

Page 1180

050715,002321:                                                                                                  #  MISCELLANEOUS UNARY OPERATIONS.
050716,002322: 
050717,002323: 00,3173           03277        DSQ                TC       DSQSUB                                #  SQUARE THE DP CONTENTS OF MPAC.
050718,002324: 00,3174           16030                           TCF      DANZIG                                
050719,002325: 
050720,002326: 00,3175           10163        ABVALABS           CCS      MODE                                  #  ABVAL OR ABS INSTRUCTION.
050721,002327: 00,3176           13225                           TCF      ABS                                   #  DO ABS ON SCALAR.
050722,002328: 00,3177           13225                           TCF      ABS                                   
050723,002329: 
050724,002330: 00,3200           03316        ABVAL              TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
050725,002331: 00,3201           22163                           LXCH     MODE                                  #  MODE IS NOW DP (L ZERO AFTER DAS).
050726,002332: 
050727,002333: 00,3202           00006                           EXTEND                                         #  STORE SQUARE OF LENGTH IN WORK AREA.
050728,002334: 00,3203           30155                           DCA      MPAC                                  
050729,002335: 00,3204           50120                           INDEX    FIXLOC                                
050730,002336: 00,3205           52043                           DXCH     LVSQUARE                              
050731,002337: 

Page 1181

050733,002339:                                                                                                  #  PROGRAM DESCRIPTION - SUBROUTINE SQRT
050734,002340:                                                                                                  #  
050735,002341:                                                                                                  #  FUNCTIONAL DESCRIPTION - DOUBLE PRECISION SQUARE ROOT ROUTINE
050736,002342:                                                                                                  #  
050737,002343:                                                                                                  #        THIS PROGRAM TAKES THE SQUARE ROOT OF THE 27 OR 28 MOST SIGNIFICANT BITS IN THE TRIPLE PRECISION SET OF
050738,002344:                                                                                                  #        NUMBERS - MPAC, MPAC+1, AND MPAC+2.  THE ROOT IS RETURNED DOUBLE PRECISION IN MPAC AND MPAC+1.
050739,002345:                                                                                                  #  
050740,002346:                                                                                                  #  WARNING - THIS SUBROUTINE USES A TRIPLE PRECISION INPUT. THE PROGRAMMER MUST ASSURE THE CONTENTS OF MPAC+2
050741,002347:                                                                                                  #        ESPECIALLY IF THE CONTENTS OF MPAC IS SMALL OR ZERO.  FOR DETAILS SEE STG MEMO NO.949.
050742,002348:                                                                                                  #  
050743,002349:                                                                                                  #  CALLING SEQUENCE - IN INTERPRETIVE MODE I.E., FOLLOWING TC  INTPRET, SQRT   NO ADDRESS IS ALLOWED
050744,002350: 
050745,002351:                                                                                                  #  INPUT SCALING  THE BINARY POINT IS ASSUMED TO THE RIGHT OF BIT 15. THE ANSWER IS RETURNED WITH THE SAME SCALING
050746,002352: 
050747,002353:                                                                                                  #  SUBROUTINES - GENSCR, MPACSHR, SQRTSUB, ABORT
050748,002354: 
050749,002355:                                                                                                  #  ABORT EXIT MODE - ABORTS ON NEGATIVE INPUT -1.2X10E-4 (77775  OCTAL) OR LESS.
050750,002356:                                                                                                  #        DISPLAYS ERROR CODE 1302
050751,002357:                                                                                                  #                TC      ABORT
050752,002358:                                                                                                  #                OCT     1302
050753,002359: 
050754,002360:                                                                                                  #  DEBRIS - LOCATIONS BUF, MPTEMP, ADDRWD ARE USED
050755,002361: 
050756,002362: 00,3206           03342        SQRT               TC       SQRTSUB                               #  TAKE THE SQUARE ROOT OF MPAC.
050757,002363: 00,3207           10135                           CCS      MPTEMP                                #  RETURNED NORMALIZED SQUARE ROOT. SEE IF
050758,002364: 00,3210           13212                           TCF      +2                                    #  ANY UN-NORMALIZATION REQUIRED AND EXIT
050759,002365: 00,3211           16030                           TCF      DANZIG                                #  IF NOT.
050760,002366: 
050761,002367: 00,3212           63726                           AD       NEG12                                 #  A RIGHT SHIFT OF MORE THAN 13 COULD BE
050762,002368: 00,3213           00006                           EXTEND                                         #  REQUIRED IF INPUT WAS ZERO IN MPAC,+1.
050763,002369: 00,3214           63220                           BZMF     SQRTSHFT                              #  GOES HERE IN MOST CASES.
050764,002370: 00,3215           22007                           ZL                                             #  IF A LONG SHIFT IS REQUIRED, GO TO
050765,002371: 00,3216           22116                           LXCH     ADDRWD                                #  GENERAL RIGHT SHIFT ROUTINES.
050766,002372: 00,3217           12303                           TCF      GENSCR     +4                         #  ADDRWD WAS ZERO TO PREVENT ROUND.
050767,002373: 
050768,002374: 00,3220           50135        SQRTSHFT           INDEX    MPTEMP                                #  SELECT SHIFTING BIT AND EXIT THROUGH
050769,002375: 00,3221           34752                           CAF      BIT15                                 #  SHIFT ROUTINES.
050770,002376: 00,3222           54135                           TS       MPTEMP                                
050771,002377: 00,3223           34772                           CAF      ZERO                                  #  TO ZERO MPAC +2 IN THE PROCESS.
050772,002378: 00,3224           12036                           TCF      MPACSHR    +3                         
050773,002379: 
050774,002380: 00,3225           06672        ABS                TC       BRANCH                                #  TEST SIGN OF MPAC AND COMPLEMENT IF
050775,002381: 00,3226           16030                           TCF      DANZIG                                
050776,002382: 00,3227           16030                           TCF      DANZIG                                
050777,002383: 00,3230           17624                           TCF      COMP                                  
050778,002384: 

Page 1182

050780,002386: 00,3231           44766        VDEF               CS       FOUR                                  #  VECTOR DEFINE - ESSENTIALLY TREATS
050781,002387: 00,3232           26166                           ADS      PUSHLOC                               #  SCALAR IN MPAC AS X COMPONENT, PUSHES UP
050782,002388: 00,3233           00006                           EXTEND                                         #  FOR Y AND THEN AGAIN FOR Z.
050783,002389: 00,3234           50000                           INDEX    A                                     
050784,002390: 00,3235           30003                           DCA      2                                     
050785,002391: 00,3236           52160                           DXCH     MPAC       +3                         
050786,002392: 00,3237           00006                           EXTEND                                         
050787,002393: 00,3240           50166                           INDEX    PUSHLOC                               
050788,002394: 00,3241           30001                           DCA      0                                     
050789,002395: 00,3242           52162                           DXCH     MPAC       +5                         
050790,002396: 00,3243           16470                           TCF      VMODE                                 #  MODE IS NON VECTOR.
050791,002397: 
050792,002398: 00,3244           03316        VSQ                TC       VSQSUB                                #  DOT MPAC WITH ITSELF.
050793,002399: 00,3245           17266                           TCF      DMODE                                 #  MODE IS NOW DP.
050794,002400: 
050795,002401: 00,3246           00006        PUSH               EXTEND                                         #  PUSH DOWN MPAC LEAVING IT LOADED.
050796,002402: 00,3247           30155                           DCA      MPAC                                  
050797,002403: 00,3250           50166                           INDEX    PUSHLOC                               #  PUSH DOWN FIRST TWO REGISTERS IN EACH
050798,002404: 00,3251           52001                           DXCH     0                                     
050799,002405: 
050800,002406: 00,3252           50163                           INDEX    MODE                                  #  INCREMENT PUSHDOWN POINTER.
050801,002407: 00,3253           36213                           CAF      NO.WDS                                
050802,002408: 00,3254           26166                           ADS      PUSHLOC                               
050803,002409: 
050804,002410: 00,3255           10163                           CCS      MODE                                  
050805,002411: 00,3256           13271                           TCF      TPUSH                                 #  PUSH DOWN MPAC +2.
050806,002412: 00,3257           16030                           TCF      DANZIG                                #  DONE FOR DP.
050807,002413: 
050808,002414: 00,3260           00006                           EXTEND                                         #  ON VECTOR, PUSH DOWN Y AND Z COMPONENTS.
050809,002415: 00,3261           30160                           DCA      MPAC       +3                         
050810,002416: 00,3262           50166                           INDEX    PUSHLOC                               
050811,002417: 00,3263           51775                           DXCH     0          -4                         
050812,002418: 00,3264           00006                           EXTEND                                         
050813,002419: 00,3265           30162                           DCA      MPAC       +5                         
050814,002420: 00,3266           50166                           INDEX    PUSHLOC                               
050815,002421: 00,3267           51777                           DXCH     0          -2                         
050816,002422: 00,3270           16030                           TCF      DANZIG                                
050817,002423: 
050818,002424: 00,3271           30156        TPUSH              CA       MPAC       +2                         
050819,002425: 00,3272           16523                           TCF      ENDTPUSH   +2                         
050820,002426: 
050821,002427: 00,3273           50120        RVQ                INDEX    FIXLOC                                #  RVQ - RETURN IVA QPRET.
050822,002428: 00,3274           30052                           CA       QPRET                                 
050823,002429: 00,3275           54117                           TS       POLISH                                
050824,002430: 00,3276           16621                           TCF      GOTO       +4                         #  (ASSUME QPRET POINTS TO FIXED ONLY.)
050825,002431: 

Page 1183

050827,002433:                                                                                                  #           THE FOLLOWING SUBROUTINES ARE USED IN SQUARING MPAC, IN BOTH THE SCALAR AND VECTOR SENSE. THEY ARE
050828,002434:                                                                                                  #  SPECIAL CASES OF DMPSUB AND DOTSUB, PUT IN TO SAVE SOME TIME.
050829,002435: 
050830,002436: 00,3277           30155        DSQSUB             CA       MPAC       +1                         #  SQUARES THE SCALAR CONTENTS OF MPAC.
050831,002437: 00,3300           00006                           EXTEND                                         
050832,002438: 00,3301           70000                           SQUARE                                         
050833,002439: 00,3302           54156                           TS       MPAC       +2                         
050834,002440: 00,3303           34772                           CAF      ZERO                                  #  FORM 2(CROSS TERM).
050835,002441: 00,3304           56155                           XCH      MPAC       +1                         
050836,002442: 00,3305           00006                           EXTEND                                         
050837,002443: 00,3306           70154                           MP       MPAC                                  
050838,002444: 00,3307           20001                           DDOUBL                                         #  AND MAYBE OVERFLOW.
050839,002445: 00,3310           20156                           DAS      MPAC       +1                         #  AND SET A TO NET OVERFLOW.
050840,002446: 00,3311           56154                           XCH      MPAC                                  
050841,002447: 00,3312           00006                           EXTEND                                         
050842,002448: 00,3313           70000                           SQUARE                                         
050843,002449: 00,3314           20155                           DAS      MPAC                                  
050844,002450: 00,3315           00002                           TC       Q                                     
050845,002451: 
050846,002452: 00,3316           00006        VSQSUB             EXTEND                                         #  DOTS THE VECTOR IN MPAC WITH ITSELF.
050847,002453: 00,3317           22137                           QXCH     DOTRET                                
050848,002454: 00,3320           03277                           TC       DSQSUB                                #  SQUARE THE X COMPONENT.
050849,002455: 00,3321           52160                           DXCH     MPAC       +3                         
050850,002456: 00,3322           52155                           DXCH     MPAC                                  
050851,002457: 00,3323           52131                           DXCH     BUF                                   #  SO WE CAN END IN DOTSUB.
050852,002458: 00,3324           30156                           CA       MPAC       +2                         
050853,002459: 00,3325           54132                           TS       BUF        +2                         
050854,002460: 
050855,002461: 00,3326           03277                           TC       DSQSUB                                #  SQUARE Y COMPONENT.
050856,002462: 00,3327           52156                           DXCH     MPAC       +1                         
050857,002463: 00,3330           20132                           DAS      BUF        +1                         
050858,002464: 00,3331           60154                           AD       MPAC                                  
050859,002465: 00,3332           60130                           AD       BUF                                   
050860,002466: 00,3333           54130                           TS       BUF                                   
050861,002467: 00,3334           13336                           TCF      +2                                    
050862,002468: 00,3335           54121                           TS       OVFIND                                #  IF OVERFLOW.
050863,002469: 
050864,002470: 00,3336           52162                           DXCH     MPAC       +5                         
050865,002471: 00,3337           52155                           DXCH     MPAC                                  
050866,002472: 00,3340           03277                           TC       DSQSUB                                #  SQUARE Z COMPONENT.
050867,002473: 00,3341           17154                           TCF      ENDDOT                                #  END AS IN DOTSUB.
050868,002474: 

Page 1184

050870,002476:                                                                                                  #  DOUBLE PRECISION SQUARE ROOT ROUTINE. TAKE THE SQUARE ROOT OF THE TRIPLE PRECISION (MPAC +2 USED ONLY
050871,002477:                                                                                                  #  IN NORMALIZATION) CONTENTS OF MPAC AND LEAVE THE NORMALIZED RESULT IN MPAC (C(MPAC) GREATER THAN OR EQUAL TO
050872,002478:                                                                                                  #  .5). THE RIGHT SHIFT COUNT (TO UNNORMALIZE) IS LEFT IN MPTEMP.
050873,002479: 
050874,002480: 00,3342           34772        SQRTSUB            CAF      ZERO                                  #  START BY ZEROING RIGHT SHIFT COUNT.
050875,002481: 00,3343           54135                           TS       MPTEMP                                
050876,002482: 
050877,002483: 00,3344           10154                           CCS      MPAC                                  #  CHECK FOR POSITIVE ARGUMENT, SHIFTING
050878,002484: 00,3345           13403                           TCF      SMPAC+                                #  FIRST SIGNIFICANT MPAC REGISTER INTO
050879,002485: 00,3346           13350                           TCF      +2                                    #  MPAC ITSELF.
050880,002486: 00,3347           13372                           TCF      SQRTNEG                               #  SEE IF MAG OF ARGUMENT LESS THAN 10(-4).
050881,002487: 
050882,002488: 00,3350           56156                           XCH      MPAC       +2                         #  MPAC IS ZERO - SHIFT LEFT 14.
050883,002489: 00,3351           56155                           XCH      MPAC       +1                         
050884,002490: 00,3352           54154                           TS       MPAC                                  
050885,002491: 00,3353           34774                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
050886,002492: 00,3354           54135                           TS       MPTEMP                                
050887,002493: 
050888,002494: 00,3355           10154                           CCS      MPAC                                  #  SEE IF MPAC NOW PNZ.
050889,002495: 00,3356           13403                           TCF      SMPAC+                                
050890,002496: 00,3357           13361                           TCF      +2                                    
050891,002497: 00,3360           13375                           TCF      ZEROANS                               #  NEGATIVE BUT LESS THAN 10(-4) IN MAG.
050892,002498: 
050893,002499: 00,3361           56155                           XCH      MPAC       +1                         #  ZERO - SHIFT LEFT 14 AGAIN.
050894,002500: 00,3362           54154                           TS       MPAC                                  
050895,002501: 00,3363           34774                           CAF      SEVEN                                 #  AUGMENT RIGHT SHIFT COUNTER.
050896,002502: 00,3364           26135                           ADS      MPTEMP                                
050897,002503: 
050898,002504: 00,3365           10154                           CCS      MPAC                                  
050899,002505: 00,3366           13403                           TCF      SMPAC+                                
050900,002506: 00,3367           00002                           TC       Q                                     #  SQRT(0) = 0.
050901,002507: 00,3370           13375                           TCF      ZEROANS                               
050902,002508: 00,3371           13450                           TCF      FIXROOT                               #  DO NOT LEAVE SQRTSUB WITH -0 IN MPAC.
050903,002509: 
050904,002510: 00,3372           10000        SQRTNEG            CCS      A                                     #  ARGUMENT IS NEGATIVE, BUT SEE IF SIGN-
050905,002511: 00,3373           13401                           TCF      SQRTABRT                              #  CORRECTED ARGUMENT IS LESS THAN 10(-4)
050906,002512: 
050907,002513: 00,3374           10155                           CCS      MPAC       +1                         #  IN MAGNITUDE. IF SO, CALL ANSWER ZERO.
050908,002514: 00,3375           34772        ZEROANS            CAF      ZERO                                  #  FORCE ANSWER TO ZERO HERE.
050909,002515: 00,3376           13450                           TCF      FIXROOT                               
050910,002516: 00,3377           13401                           TCF      SQRTABRT                              
050911,002517: 00,3400           13450                           TCF      FIXROOT                               
050912,002518: 
050913,002519: 00,3401           05726        SQRTABRT           TC       POODOO                                
050914,002520: 00,3402           21302                           OCT      21302                                 #  SQRT CALLED WITH NEGATIVE ARGUMENT
050915,002521: 
050916,002522: 00,3403           62443        SMPAC+             AD       -1/2+2                                #  SEE IF ARGUMENT GREATER THAN OR EQUAL TO
050917,002523: 00,3404           00006                           EXTEND                                         #  .5.

Page 1185

050919,002525: 00,3405           63453                           BZMF     SRTEST                                #  IF SO, SEE IF LESS THAN .25.
050920,002526: 
050921,002527: 00,3406           52155                           DXCH     MPAC                                  #  WE WILL TAKE THE SQUARE ROOT OF MPAC/2.
050922,002528: 00,3407           22021                           LXCH     SR                                    #  SHIFT RIGHT 1 AND GO TO THE SQRT ROUTINE
050923,002529: 00,3410           00006                           EXTEND                                         
050924,002530: 00,3411           74753                           MP       HALF                                  
050925,002531: 00,3412           52155                           DXCH     MPAC                                  
050926,002532: 00,3413           56021                           XCH      SR                                    
050927,002533: 00,3414           26155                           ADS      MPAC       +1                         #  GUARANTEED NO OVERFLOW.
050928,002534: 
050929,002535: 00,3415           32314        ARGHI              CAF      SLOPEHI                               #  ARGUMENT BETWEEN .25 AND .5. GET A
050930,002536: 00,3416           00006                           EXTEND                                         #  LINEAR APPROXIMATION FOR THIS RANGE.
050931,002537: 00,3417           70154                           MP       MPAC                                  
050932,002538: 00,3420           62565                           AD       BIASHI                                #  X0/2 = (MPAC/2)(SLOPEHI) + BIASHI/2.
050933,002539: 
050934,002540: 00,3421           54130                 +4        TS       BUF                                   #  X0/2 (ARGLO ENTERS HERE).
050935,002541: 00,3422           30154                           CA       MPAC                                  #  SINGLE-PRECISION THROUGHOUT.
050936,002542: 00,3423           00006                           EXTEND                                         
050937,002543: 00,3424           74753                           MP       HALF                                  #  .5(MPAC/2)
050938,002544: 00,3425           00006                           EXTEND                                         
050939,002545: 00,3426           10130                           DV       BUF                                   #  .5(MPAC/2)/(X0/2)
050940,002546: 00,3427           26130                           ADS      BUF                                   #  X1 = X0/2 + .5(MPAC/2)/(X0/2).
050941,002547: 
050942,002548: 00,3430           00006                           EXTEND                                         
050943,002549: 00,3431           74753                           MP       HALF                                  #  FORM UP X1/2.
050944,002550: 00,3432           52155                           DXCH     MPAC                                  #  SAVE AND BRING OUT ARGUMENT.
050945,002551: 00,3433           00006                           EXTEND                                         #  TAKE DP QUOTIENT WITH X1.
050946,002552: 00,3434           10130                           DV       BUF                                   
050947,002553: 00,3435           54131                           TS       BUF        +1                         #  SAVE MAJOR PART OF QUOTIENT.
050948,002554: 00,3436           34772                           CAF      ZERO                                  #  FORM MINOR PART OF QUOTIENT USING
050949,002555: 00,3437           56001                           XCH      L                                     #  (REMAINDER,0).
050950,002556: 00,3440           00006                           EXTEND                                         
050951,002557: 00,3441           10130                           DV       BUF                                   
050952,002558: 00,3442           54001                           TS       L                                     #  IN PREPARATION FOR DAS.
050953,002559: 00,3443           30131                           CA       BUF        +1                         
050954,002560: 00,3444           20155                           DAS      MPAC                                  #  X2 = X1/2 + (MPAC/2)X1
050955,002561: 
050956,002562: 00,3445           00006                           EXTEND                                         #  OVERFLOWS IF ARG. NEAR POSMAX.
050957,002563: 00,3446           13452                           BZF      TCQBNK00                              
050958,002564: 00,3447           34750                           CAF      POSMAX                                
050959,002565: 00,3450           54154        FIXROOT            TS       MPAC                                  
050960,002566: 00,3451           54155                           TS       MPAC       +1                         
050961,002567: 00,3452           00002        TCQBNK00           TC       Q                                     #  RETURN TO CALLER TO UNNORMALIZE, ETC.
050962,002568: 

Page 1186

050964,002570: 00,3453           64754        SRTEST             AD       QUARTER                               #  ARGUMENT WAS LESS THAN .5, SEE IF LESS
050965,002571: 00,3454           00006                           EXTEND                                         #  THAN .25.
050966,002572: 00,3455           63477                           BZMF     SQRTNORM                              #  IF SO, BEGIN NORMALIZATION.
050967,002573: 
050968,002574: 00,3456           52155                           DXCH     MPAC                                  #  IF BETWEEN .5 AND .25, SHIFT RIGHT 1 AND
050969,002575: 00,3457           22021                           LXCH     SR                                    #  START AT ARGLO.
050970,002576: 00,3460           00006                           EXTEND                                         
050971,002577: 00,3461           74753                           MP       HALF                                  
050972,002578: 00,3462           52155                           DXCH     MPAC                                  
050973,002579: 00,3463           56021                           XCH      SR                                    
050974,002580: 00,3464           26155                           ADS      MPAC       +1                         #  NO OVERFLOW.
050975,002581: 
050976,002582: 00,3465           33006        ARGLO              CAF      SLOPELO                               #  (NORMALIZED) ARGUMENT BETWEEN .125 AND
050977,002583: 00,3466           00006                           EXTEND                                         #  .25
050978,002584: 00,3467           70154                           MP       MPAC                                  
050979,002585: 00,3470           62270                           AD       BIASLO                                
050980,002586: 00,3471           13421                           TCF      ARGHI      +4                         #  BEGIN SQUARE ROOT.
050981,002587: 
050982,002588: 00,3472           00006        SQRTNM2            EXTEND                                         #  SHIFT LEFT 2 AND INCREMENT RIGHT SHIFT
050983,002589: 00,3473           30156                           DCA      MPAC       +1                         #  COUNT (FOR TERMINAL UNNORMALIZATION).
050984,002590: 00,3474           20156                           DAS      MPAC       +1                         
050985,002591: 00,3475           60154                           AD       MPAC                                  
050986,002592: 00,3476           26154                           ADS      MPAC                                  #  (NO OVERFLOW).
050987,002593: 
050988,002594: 00,3477           24135        SQRTNORM           INCR     MPTEMP                                #  FIRST TIME THROUGH, JUST SHIFT LEFT 1
050989,002595: 00,3500           00006                           EXTEND                                         #  (PUTS IN EFFECTIVE RIGHT SHIFT SINCE
050990,002596: 00,3501           30156                           DCA      MPAC       +1                         #  WE WANT MPAC/2).
050991,002597: 00,3502           20156                           DAS      MPAC       +1                         
050992,002598: 00,3503           60154                           AD       MPAC                                  
050993,002599: 00,3504           26154                           ADS      MPAC                                  #  (AGAIN NO OVERFLOW).
050994,002600: 00,3505           60000                           DOUBLE                                         
050995,002601: 00,3506           54022                           TS       CYL                                   
050996,002602: 
050997,002603: 00,3507           10022        NORMTEST           CCS      CYL                                   #  SEE IF ARGUMENT NOW NORMALIZED AT
050998,002604: 00,3510           10022                           CCS      CYL                                   #  GREATER THAN .125.
050999,002605: 00,3511           13472                           TCF      SQRTNM2                               #  NO - SHIFT LEFT 2 MORE AND TRY AGAIN.
051000,002606: 00,3512           13415                           TCF      ARGHI                                 #  YES - NOW BETWEEN .5 AND .25.
051001,002607: 00,3513           13465                           TCF      ARGLO                                 #  ARGUMENT NOW BETWEEN .25 AND .125.
051002,002608: 

Page 1187

051004,002610:                                                                                                  #  TRIGONOMETRIC FUNCTION PACKAGE.
051005,002611: 
051006,002612:                                                                                                  #        THE FOLLOWING TRIGONOMETRIC FUNCTIONS ARE AVAILABLE AS INTERPRETIVE OPERATIONS:
051007,002613: 
051008,002614:                                                                                                  #        1.      SIN             COMPUTES (1/2)SINE(2 PI MPAC).
051009,002615:                                                                                                  #        2.      COS             COMPUTES (1/2)COSINE(2 PI MPAC).
051010,002616: 
051011,002617:                                                                                                  #        3.      ASIN            COMPUTES (1/2PI)ARCSINE(2 MPAC).
051012,002618:                                                                                                  #        4.      ACOS            COMPUTES (1/2PI)ARCCOSINE(2 MPAC).
051013,002619: 
051014,002620:                                                                                                  #  SIN-ASIN AND COS-ACOS ARE MUTUALLY INVERSE, IE SIN(ASIN(X)) = X.
051015,002621: 
051016,002622: 00,3514           06672        COSINE             TC       BRANCH                                #  FINDS COSINE USING THE IDENTITY
051017,002623: 00,3515           13520                           TCF      +3                                    #  COS(X) = SIN(PI/2 - ABS(X)).
051018,002624: 00,3516           13523                           TCF      PRESINE                               
051019,002625: 00,3517           13523                           TCF      PRESINE                               
051020,002626: 
051021,002627: 00,3520           00006                 +3        EXTEND                                         
051022,002628: 00,3521           40155                           DCS      MPAC                                  
051023,002629: 00,3522           52155                           DXCH     MPAC                                  
051024,002630: 
051025,002631: 00,3523           34754        PRESINE            CAF      QUARTER                               #  PI/2 SCALED.
051026,002632: 00,3524           26154                           ADS      MPAC                                  
051027,002633: 
051028,002634: 00,3525           52155        SINE               DXCH     MPAC                                  #  DOUBLE ARGUMENT.
051029,002635: 00,3526           20001                 +1        DDOUBL                                         
051030,002636: 00,3527           54000                           OVSK                                           #  SEE IF OVERFLOW PRESENT.
051031,002637: 00,3530           13533                           TCF      +3                                    #  IF NOT, ARGUMENT OK AS IS.
051032,002638: 
051033,002639: 00,3531           00006                           EXTEND                                         #  IF SO, WE LOST (OR GAINED) PI, SO
051034,002640: 00,3532           40001                           DCOM                                           #  COMPLEMENT MPAC USING THE IDENTITY
051035,002641:                                                                                                  #  SIN(X-(+)PI) = SIN(-X).
051036,002642: 00,3533           52155                 +3        DXCH     MPAC                                  
051037,002643: 00,3534           30154                           CA       MPAC                                  #  SEE IF ARGUMENT GREATER THAN .5 IN
051038,002644: 00,3535           60000                           DOUBLE                                         #  MAGNITUDE. IF SO, REDUCE IT TO LESS THAN
051039,002645: 00,3536           54001                           TS       L                                     #  .5 (+-PI/2 SCALED) AS FOLLOWS:
051040,002646: 00,3537           13550                           TCF      SN1                                   
051041,002647: 
051042,002648: 00,3540           50000                           INDEX    A                                     #  IF POSITIVE, FORM PI - X, IF NEGATIVE
051043,002649: 00,3541           34752                           CAF      NEG1/2     +1                         #  USE -PI -X.
051044,002650: 00,3542           60000                           DOUBLE                                         
051045,002651: 00,3543           00006                           EXTEND                                         
051046,002652: 00,3544           60154                           SU       MPAC                                  #  GUARANTEED NO OVERFLOW.
051047,002653: 00,3545           54154                           TS       MPAC                                  
051048,002654: 00,3546           40155                           CS       MPAC       +1                         
051049,002655: 00,3547           54155                           TS       MPAC       +1                         
051050,002656: 

Page 1188

051052,002658: 00,3550           00006        SN1                EXTEND                                         #  SET UP TO EVALUATE HASTINGS POLYNOMIAL
051053,002659: 00,3551           30155                           DCA      MPAC                                  
051054,002660: 00,3552           52134                           DXCH     BUF2                                  
051055,002661: 00,3553           03277                           TC       DSQSUB                                #  SQUARE MPAC.
051056,002662: 
051057,002663: 00,3554           07171                           TC       POLY                                  #  EVALUATE FOURTH ORDER POLYNOMIAL.
051058,002664: 00,3555           00003                           DEC      3          B-14                       
051059,002665: 00,3556           14441 37325                     2DEC     +.3926990796                            
051060,002666: 00,3560           53250 60764                     2DEC     -.6459637111                            
051061,002667: 00,3562           12146 21276                     2DEC     +.318758717                            
051062,002668: 00,3564           75466 71471                     2DEC     -.074780249                            
051063,002669: 00,3566           00236 32757                     2DEC     +.009694988                            
051064,002670: 
051065,002671: 00,3570           32467                           CAF      LBUF2                                 #  MULTIPLY BY ARGUMENT AND SHIFT LEFT 2.
051066,002672: 00,3571           07055                           TC       DMPSUB     -1                         
051067,002673: 
051068,002674: 00,3572           00006                           EXTEND                                         
051069,002675: 00,3573           30156                           DCA      MPAC       +1                         
051070,002676: 00,3574           20156                           DAS      MPAC       +1                         
051071,002677: 00,3575           60154                           AD       MPAC                                  
051072,002678: 00,3576           26154                           ADS      MPAC                                  #  NEITHER SHIFT OVERFLOWS.
051073,002679: 00,3577           00006                           EXTEND                                         
051074,002680: 00,3600           30156                           DCA      MPAC       +1                         
051075,002681: 00,3601           20156                           DAS      MPAC       +1                         
051076,002682: 00,3602           60154                           AD       MPAC                                  
051077,002683: 00,3603           26154                           ADS      MPAC                                  
051078,002684: 00,3604           16030                           TCF      DANZIG                                
051079,002685: 

Page 1189

051081,002687:                                                                                                  #  ARCSIN/ARCCOS ROUTINE.
051082,002688: 
051083,002689: 00,3605           33626        ARCSIN             CAF      LASINEX                               #  COMPUTE ARCSIN BY USING THE IDENTITY
051084,002690: 00,3606           13610                           TCF      +2                                    #  ARCSIN(X) = PI/2 - ARCCOS(X).
051085,002691: 
051086,002692: 00,3607           33710        ARCCOS             CAF      LDANZIG                               #  (EXITS IMMEDIATELY).
051087,002693: 00,3610           54136                           TS       ESCAPE                                
051088,002694: 00,3611           06672                           TC       BRANCH                                #  TEST SIGN OF INPUT.
051089,002695: 00,3612           13622                           TCF      ACOSST                                #  START IMMEDIATELY IF POSITIVE.
051090,002696: 00,3613           13724                           TCF      ACOSZERO                              #  ARCCOS(0) = PI/2 = .25.
051091,002697: 00,3614           00006                           EXTEND                                         #  IF NEGATIVE, USE THE IDENTITY
051092,002698: 00,3615           40155                           DCS      MPAC                                  #  ARCCOS(X) = PI - ARCCOS(-X), FORCING
051093,002699: 00,3616           52155                           DXCH     MPAC                                  #  ARGUMENT POSITIVE.
051094,002700: 00,3617           33727                           CAF      TCSUBTR                               #  SET EXIT TO DO ABOVE BEFORE
051095,002701: 00,3620           56136                           XCH      ESCAPE                                #  ARCSIN/ARCCOS CONSIDERATIONS.
051096,002702: 00,3621           54137                           TS       ESCAPE2                               
051097,002703: 
051098,002704: 00,3622           44753        ACOSST             CS       HALF                                  #  TEST MAGNITUDE OF INPUT.
051099,002705: 00,3623           60154                           AD       MPAC                                  
051100,002706: 00,3624           10000                           CCS      A                                     
051101,002707: 00,3625           13716                           TCF      ACOSOVF                               #  THIS IS PROBABLY AN OVERFLOW CASE.
051102,002708: 
051103,002709: 00,3626           13704        LASINEX            TCF      ASINEX                                
051104,002710: 
051105,002711: 00,3627           13637                           TCF      ACOSST2                               #  NO OVERFLOW - PROCEED.
051106,002712: 
051107,002713: 00,3630           10155                           CCS      MPAC       +1                         #  IF MAJOR PART IS .5, CALL ANSWER 0
051108,002714: 00,3631           34772                           CAF      ZERO                                  #  UNLESS MINOR PART NEGATIVE.
051109,002715: 00,3632           13634                           TCF      ACOS=0                                
051110,002716: 
051111,002717: 00,3633           13637                           TCF      ACOSST2                               
051112,002718: 
051113,002719: 00,3634           54155        ACOS=0             TS       MPAC       +1                         
051114,002720: 00,3635           54154                 +1        TS       MPAC                                  
051115,002721: 00,3636           00136                           TC       ESCAPE                                
051116,002722: 
051117,002723: 00,3637           00006        ACOSST2            EXTEND                                         #  NOW THAT ARGUMENT IS IN PROPER RANGE,
051118,002724: 00,3640           40155                           DCS      MPAC                                  #  BEGIN COMPUTATION. USE HASTINGS
051119,002725: 00,3641           64753                           AD       HALF                                  #  APPROXIMATION ARCCOS(X) = SQRT(1-X)P(X)
051120,002726: 00,3642           52155                           DXCH     MPAC                                  #  IN A SCALED VERSION WHERE P(X) IS A
051121,002727: 00,3643           52134                           DXCH     BUF2                                  #  SEVENTH ORDER POLYNOMIAL.
051122,002728: 
051123,002729: 00,3644           03342                           TC       SQRTSUB                               #  RETURNS WITH NORMALIZED SQUARE ROOT.
051124,002730: 
051125,002731: 00,3645           10135                           CCS      MPTEMP                                #  SEE IF UN-NORMALIZATION REQUIRED.
051126,002732: 00,3646           13711                           TCF      ACOSSHR                               #  IF SO.
051127,002733: 

Page 1190

051129,002735: 00,3647           52155        ACOS3              DXCH     MPAC                                  #  SET UP FOR POLYNOMIAL EVALUATION.
051130,002736: 00,3650           52134                           DXCH     BUF2                                  
051131,002737: 00,3651           52155                           DXCH     MPAC                                  
051132,002738: 
051133,002739: 00,3652           07171                           TC       POLY                                  
051134,002740: 00,3653           00006                           DEC      6          B-14                       
051135,002741: 00,3654           13240 23630                     2DEC     +.353553385                            #  COEFFICIENTS ARE C 2(+I)/PISQRT(2) WHERE
051136,002742: 00,3656           74721 47775                     2DEC*    -.0483017006 B+1*                       #             I
051137,002743: 00,3660           02440 20237                     2DEC*    +.0200273085 B+2*                       #  WHERE C STANDS FOR ORIGINAL COEFFS.
051138,002744: 00,3662           75067 70742                     2DEC*    -.0112931863 B+3*                       
051139,002745: 00,3664           03436 26756                     2DEC*    +.00695311612 B+4*                       
051140,002746: 00,3666           74037 57640                     2DEC*    -.00384617957 B+5*                       
051141,002747: 00,3670           03046 07143                     2DEC*    +.001501297736 B+6*                       
051142,002748: 00,3672           76654 42244                     2DEC*    -.000284160334 B+7*                       
051143,002749: 
051144,002750: 00,3674           32467                           CAF      LBUF2                                 #  DO FINAL MULTIPLY AND GO TO ANY
051145,002751: 00,3675           07055                           TC       DMPSUB     -1                         #  EPILOGUE SEQUENCES.
051146,002752: 00,3676           00136                           TC       ESCAPE                                
051147,002753: 
051148,002754: 00,3677           00006        SUBTR              EXTEND                                         #  EPILOGUE FOR NEGATIVE INPUTS TO ARCCOS.
051149,002755: 00,3700           40155                           DCS      MPAC                                  
051150,002756: 00,3701           64753                           AD       HALF                                  #  FORMS PI - ARCCOS(-X) = ARCCOS(X).
051151,002757: 00,3702           52155                           DXCH     MPAC                                  
051152,002758: 00,3703           00137                           TC       ESCAPE2                               #  GO TO POSSIBLE ARCSIN EPILOGUE.
051153,002759: 
051154,002760: 00,3704           00006        ASINEX             EXTEND                                         
051155,002761: 00,3705           40155                           DCS      MPAC                                  #  ARCSIN EPILOGUE - GET ARCSIN(X)
051156,002762: 00,3706           64754                           AD       QUARTER                               #  = PI/2 - ARCCOS(X).
051157,002763: 00,3707           52155                           DXCH     MPAC                                  
051158,002764: 00,3710           16030        LDANZIG            TCF      DANZIG                                
051159,002765: 

Page 1191

051161,002767: 00,3711           50000        ACOSSHR            INDEX    A                                     #  THE SHIFT RIGHT IS LESS THAN 14 SINCE
051162,002768: 00,3712           34753                           CAF      BIT14                                 #  THE INPUT WAS NON-ZERO DP.
051163,002769: 00,3713           54135                           TS       MPTEMP                                
051164,002770: 00,3714           02073                           TC       VSHRRND                               #  DP SHIFT RIGHT AND ROUND.
051165,002771: 00,3715           13647                           TCF      ACOS3                                 #  PROCEED.
051166,002772: 
051167,002773: 00,3716           00006        ACOSOVF            EXTEND                                         #  IF MAJOR PART WAS ONLY 1 MORE THAN .5,
051168,002774: 00,3717           13634                           BZF      ACOS=0                                #  CALL ANSWER ZERO.
051169,002775: 
051170,002776: 00,3720           05671        ACOSABRT           TC       ALARM                                 #  IF OVERFLOW, CALL ANSWER ZERO BUT
051171,002777: 00,3721           01301                           OCT      1301                                  #  SOUND AN ALARM.
051172,002778: 
051173,002779: 00,3722           34772                           CAF      ZERO                                  
051174,002780: 00,3723           13634                           TCF      ACOS=0                                
051175,002781: 
051176,002782: 00,3724           34754        ACOSZERO           CAF      QUARTER                               #  ACOS(0) = PI/2.
051177,002783: 00,3725           13635                           TCF      ACOS=0     +1                         #  SET MPAC AND EXIT VIA ESCAPE.
051178,002784: 
051179,002785: 00,3726           77763        NEG12              DEC      -12        B-14                       
051180,002786: 00,3727           13677        TCSUBTR            TCF      SUBTR                                 
051181,002787: 

Page 1192

051183,002789:                                                                                                  #  THE FOLLOWING INSTRUCTIONS ARE AVAILABLE FOR SETTING, MODIFYING, AND BRANCHING ON INDEX REGISTERS:
051184,002790: 
051185,002791:                                                                                                  #         1.     AXT             ADDRESS TO INDEX TRUE.
051186,002792:                                                                                                  #         1.     AXC             ADDRESS TO INDEX COMPLEMENTED.
051187,002793:                                                                                                  #         3.     LXA             LOAD INDEX FROM ERASABLE.
051188,002794:                                                                                                  #         4.     LXC             LOAD INDEX COMPLEMENTED FROM ERASABLE.
051189,002795:                                                                                                  #         5.     SXA             STORE INDEX IN ERASABLE.
051190,002796:                                                                                                  #         6.     XCHX            EXCHANGE INDEX REIGSTER WITH ERASABLE.
051191,002797: 
051192,002798:                                                                                                  #         7.     INCR            INCREMENT INDEX REGISTER.
051193,002799:                                                                                                  #         8.     XAD             ERASABLE ADD TO INDEX REGISTER.
051194,002800:                                                                                                  #         9.     XSU             ERASABLE SUBTRACT FROM INDEX REGISTER.
051195,002801: 
051196,002802:                                                                                                  #        10.     TIX             BRANCH ON INDEX REGISTER AND DECREMENT.
051197,002803: 
051198,002804: 01,2000                                           SETLOC   INTERB1                               
051199,002805: 01,2000                                           BANK                                           
051200,002806: 
051201,002807: 01,2341                                           COUNT*   $$/INTER                              
051202,002808: 01,2341           02436        AXT                TC       TAGSUB                                #  SELECT APPROPRIATE INDEX REGISTER.
051203,002809: 01,2342           30117                           CA       POLISH                                
051204,002810: 01,2343           50130        XSTORE             INDEX    INDEXLOC                              #  CONTAINS C(FIXLOC) OR C(FIXLOC)+1.
051205,002811: 01,2344           54046                           TS       X1                                    
051206,002812: 01,2345           16030                           TCF      DANZIG                                
051207,002813: 
051208,002814: 01,2346           02436        AXC                TC       TAGSUB                                
051209,002815: 01,2347           40117                           CS       POLISH                                
051210,002816: 01,2350           02343                           TC       XSTORE                                
051211,002817: 
051212,002818: 01,2351           02424        LXA                TC       15ADRERS                              #  LOAD INDEX REGISTER FROM ERASABLE.
051213,002819: 01,2352           50117                           INDEX    POLISH                                
051214,002820: 01,2353           30000                           CA       0                                     
051215,002821: 01,2354           12343                           TCF      XSTORE                                
051216,002822: 
051217,002823: 01,2355           02424        LXC                TC       15ADRERS                              #  LOAD NDX REG FROM ERASABLE COMPLEMENTED.
051218,002824: 01,2356           50117                           INDEX    POLISH                                
051219,002825: 01,2357           40000                           CS       0                                     
051220,002826: 01,2360           12343                           TCF      XSTORE                                
051221,002827: 
051222,002828: 01,2361           02424        SXA                TC       15ADRERS                              #  STORE INDEX REGISTER IN ERASABLE.
051223,002829: 01,2362           50130                           INDEX    INDEXLOC                              
051224,002830: 01,2363           30046                           CA       X1                                    
051225,002831: 01,2364           50117        MSTORE1            INDEX    POLISH                                
051226,002832: 01,2365           54000                           TS       0                                     
051227,002833: 01,2366           16030                           TCF      DANZIG                                
051228,002834: 

Page 1193

051230,002836: 01,2367           02424        XCHX               TC       15ADRERS                              #  EXCHANGE INDEX REGISTER WITH ERASABLE.
051231,002837: 01,2370           50117                           INDEX    POLISH                                
051232,002838: 01,2371           30000                           CA       0                                     
051233,002839: 01,2372           50130                           INDEX    INDEXLOC                              
051234,002840: 01,2373           56046                           XCH      X1                                    
051235,002841: 01,2374           12364                           TCF      MSTORE1                               
051236,002842: 
051237,002843: 01,2375           02424        XAD                TC       15ADRERS                              #  ADD ERASABLE TO INDEX REGISTER.
051238,002844: 01,2376           50117                           INDEX    POLISH                                
051239,002845: 01,2377           30000                           CA       0                                     
051240,002846: 01,2400           50130        XAD2               INDEX    INDEXLOC                              
051241,002847: 01,2401           26046                           ADS      X1                                    #  IGNORING OVERFLOWS.
051242,002848: 01,2402           16030                           TCF      DANZIG                                
051243,002849: 
051244,002850: 01,2403           02436        INCR               TC       TAGSUB                                #  INCREMENT INDEX REGISTER.
051245,002851: 01,2404           30117                           CA       POLISH                                
051246,002852: 01,2405           12400                           TCF      XAD2                                  
051247,002853: 
051248,002854: 01,2406           02424        XSU                TC       15ADRERS                              #  SUBTRACT ERASABLE FROM INDEX REGISTER.
051249,002855: 01,2407           50117                           INDEX    POLISH                                
051250,002856: 01,2410           40000                           CS       0                                     
051251,002857: 01,2411           12400                           TCF      XAD2                                  
051252,002858: 
051253,002859: 01,2412           02436        TIX                TC       TAGSUB                                #  BRANCH AND DECREMENT ON INDEX.
051254,002860: 01,2413           50130                           INDEX    INDEXLOC                              
051255,002861: 01,2414           40050                           CS       S1                                    
051256,002862: 01,2415           50130                           INDEX    INDEXLOC                              
051257,002863: 01,2416           60046                           AD       X1                                    
051258,002864: 01,2417           00006                           EXTEND                                         #  NO OPERATION IF DECREMENTED INDEX IS
051259,002865: 01,2420           66030                           BZMF     DANZIG                                #  NEGATIVE OR ZERO.
051260,002866: 
051261,002867: 01,2421           50130        DOTIXBR            INDEX    INDEXLOC                              
051262,002868: 01,2422           56046                           XCH      X1                                    #  IGNORING OVERFLOWS.
051263,002869: 
051264,002870: 01,2423           16615                           TCF      GOTO                                  #  DO THE BRANCH USING THE CADR IN POLISH.
051265,002871: 

Page 1194

051267,002873:                                                                                                  #  SUBROUTINE TO CONVERT AN ERASABLE ADDRESS (11 BITS) TO AN EBANK SETTING AND SUBADDRESS.
051268,002874: 
051269,002875: 01,2424           40117        15ADRERS           CS       POLISH                                
051270,002876: 01,2425           65006                           AD       DEC45                                 
051271,002877: 01,2426           10000                           CCS      A                                     #  DOES THE ADDRESS POINT TO THE WORK AREA?
051272,002878: 01,2427           30120                           CA       FIXLOC                                #  YES.  ADD FIXLOC.  EBANK OK AS IS.
051273,002879: 01,2430           12435                           TCF      +5                                    
051274,002880: 
051275,002881: 01,2431           35024                           CA       OCT1400                               #  NO.  SET EBANK & MAKE UP SUBADDRESS.
051276,002882: 01,2432           56117                           XCH      POLISH                                
051277,002883: 01,2433           54003                           TS       EBANK                                 
051278,002884: 01,2434           74350                           MASK     LOW8                                  
051279,002885: 01,2435           26117                 +5        ADS      POLISH                                #  FALL INTO TAGSUB, AND RETURN VIA Q.
051280,002886: 
051281,002887:                                                                                                  #  SUBROUTINE WHICH SETS THE ADDRESS OF THE SPECIFIED INDEX IN INDEXLOC. (ACTUALLY, THE ADDRESS -38D.)
051282,002888: 
051283,002889: 01,2436           30120        TAGSUB             CA       FIXLOC                                
051284,002890: 01,2437           54130                           TS       INDEXLOC                              
051285,002891: 
051286,002892: 01,2440           10020                           CCS      CYR                                   #  BIT 15 SPECIFIES INDEX.
051287,002893: 01,2441           24130                           INCR     INDEXLOC                              #  0 MEANS USE X2.
051288,002894: 01,2442           00002                           TC       Q                                     
051289,002895: 01,2443           00002                           TC       Q                                     #  1 FOR X1.
051290,002896: 

Page 1195

051292,002898:                                                                                                  #  MISCELLANEOUS OPERATION CODES WITH DIRECT ADDRESSES. INCLUDED HERE ARE:
051293,002899: 
051294,002900:                                                                                                  #        1.      ITA             STORE QPRET (RETURN ADDRESS) IN ERASABLE.
051295,002901:                                                                                                  #        2.      CALL            CALL A SUBROUTINE, LEAVING RETURN IN QPRET.
051296,002902:                                                                                                  #        3.      RTB             RETURN TO BASIC LANGUAGE AT THE GIVEN ADDRESS.
051297,002903:                                                                                                  #        4.      BHIZ            BRANCH IF THE HIGHORDER OF MPAC IS ZERO (SINGLE PRECISION).
051298,002904:                                                                                                  #        5.      BOV             BRANCH ON OVERFLOW.
051299,002905:                                                                                                  #        6.      GOTO            SIMPLE SEQUENCE CHANGE.
051300,002906: 
051301,002907: 01,2444           10020        RTB/BHIZ           CCS      CYR                                   
051302,002908: 01,2445           30117        RTB                CA       POLISH                                
051303,002909: 01,2446           04641                           TC       SWCALL     -1                         #  SO A "TC Q" FROM ROUTINE LEADS TO DANZIG
051304,002910: 
051305,002911: 01,2447           10154        BHIZ               CCS      MPAC                                  
051306,002912: 01,2450           16030                           TCF      DANZIG                                
051307,002913: 01,2451           16615                           TCF      GOTO                                  
051308,002914: 01,2452           16030                           TCF      DANZIG                                
051309,002915: 01,2453           16615                           TCF      GOTO                                  
051310,002916: 
051311,002917: 01,2454           10121        BOV(B)             CCS      OVFIND                                #  BRANCH ON OVERFLOW TO BASIC OR INTERP.
051312,002918: 01,2455           12457                           TCF      +2                                    
051313,002919: 01,2456           16030                           TCF      DANZIG                                
051314,002920: 01,2457           54121                           TS       OVFIND                                
051315,002921: 01,2460           10020                           CCS      CYR                                   
051316,002922: 01,2461           12445                           TCF      RTB                                   #  IF BASIC.
051317,002923: 01,2462           00360        B5TOB8             OCT      360                                   
051318,002924: 01,2463           16615                           TCF      GOTO                                  
051319,002925: 

Page 1196

051321,002927: 01,2464           10020        BZE/GOTO           CCS      CYR                                   #  SEE WHICH OP-CODE IS DESIRED.
051322,002928: 01,2465           06672                           TC       BRANCH                                #  DO BZE.
051323,002929: 01,2466           16030                           TCF      DANZIG                                
051324,002930: 01,2467           16615                           TCF      GOTO                                  #  DO GOTO.
051325,002931: 01,2470           16030                           TCF      DANZIG                                
051326,002932: 
051327,002933: 01,2471           10020        BPL/BMN            CCS      CYR                                   
051328,002934: 01,2472           12500                           TCF      BPL                                   
051329,002935: 01,2473           12000        5B10               DEC      5          B+10                       #  SHIFTS OP CODE IN SWITCH INSTRUCTION ADR
051330,002936: 
051331,002937: 01,2474           06672                           TC       BRANCH                                #  DO BMN.
051332,002938: 01,2475           16030                           TCF      DANZIG                                
051333,002939: 01,2476           16030                           TCF      DANZIG                                
051334,002940: 01,2477           16615                           TCF      GOTO                                  #  ONLY IF NNZ.
051335,002941: 
051336,002942: 01,2500           06672        BPL                TC       BRANCH                                
051337,002943: 01,2501           16615                           TCF      GOTO                                  #  IF POSITIVE OR ZERO.
051338,002944: 01,2502           16615                           TCF      GOTO                                  
051339,002945: 01,2503           16030                           TCF      DANZIG                                
051340,002946: 
051341,002947: 01,2504           10020        CALL/ITA           CCS      CYR                                   
051342,002948: 01,2505           16607                           TCF      CALL                                  
051343,002949: 
051344,002950: 01,2506           12507                           NOOP                                           #  CANNOT GET HERE
051345,002951: 01,2507           02424                           TC       15ADRERS                              #  STORE QPRET. (TAGSUB AFTER 15ADRERS IS
051346,002952: 01,2510           50120                           INDEX    FIXLOC                                #  SLOW IN THIS CASE, BUT SAVES STORAGE.)
051347,002953: 01,2511           30052                           CA       QPRET                                 
051348,002954: 01,2512           12364                           TCF      MSTORE1                               
051349,002955: 

Page 1197

051351,002957:                                                                                                  #  THE FOLLOWING OPERATIONS ARE AVAILABLE FOR ALTERING AND TESTING INTERPRETIVE SWITCHES:
051352,002958:                                                                                                  #  
051353,002959:                                                                                                  #        00      BONSET          SET A SWITCH AND DO A GOTO IF IT WAS ON.
051354,002960:                                                                                                  #        01      SETGO           SET A SWITCH AND DO A GOTO.
051355,002961:                                                                                                  #        02      BOFSET          SET A SWITCH AND DO A GOTO IF IT WAS OFF
051356,002962:                                                                                                  #        03      SET             SET A SWITCH.
051357,002963: 
051358,002964:                                                                                                  #        04      BONINV          INVERT A SWITCH AND BRANCH IF IT WAS ON.
051359,002965:                                                                                                  #        05      INVGO           INVERT A SWITCH AND DO A GOTO.
051360,002966:                                                                                                  #        06      BOFINV          INVERT A SWITCH AND BRANCH IF IT WAS OFF
051361,002967:                                                                                                  #        07      INVERT          INVERT A SWITCH.
051362,002968: 
051363,002969:                                                                                                  #        10      BONCLR          CLEAR A SWITCH AND BRANCH IF IT WAS ON.
051364,002970:                                                                                                  #        11      CLRGO           CLEAR A SWITCH AND DO A GOTO.
051365,002971:                                                                                                  #        12      BOFCLR          CLEAR A SWITCH AND BRANCH IF IT WAS OFF.
051366,002972:                                                                                                  #        13      CLEAR           CLEAR A SWITCH.
051367,002973: 
051368,002974:                                                                                                  #        14      BON             BRANCH IF A SWITCH WAS ON.
051369,002975:                                                                                                  #        16      BOFF            BRANCH IF A SWITCH WAS OFF.
051370,002976: 
051371,002977:                                                                                                  #  THE ADDRESS SUPPLIED WITH THE SWITCH INSTRUCTION IS INTERPRETED AS FOLLOWS:
051372,002978: 
051373,002979:                                                                                                  #        BITS 1-4        SWITCH BIT NUMBER (1-15).
051374,002980:                                                                                                  #        BITS 5-8        SWITCH OPERATION NUMBER.
051375,002981:                                                                                                  #        BITS 9-         SWITCH WORD NUMBER (UP TO 64 SWITCH WORDS).
051376,002982: 
051377,002983:                                                                                                  #  THE ADDRESS ITSELF IS MADE UP BY THE YUL SYSTEM ASSEMBLER. THE BRANCH INSTRUCTIONS REQUIRE TWO
051378,002984:                                                                                                  #  ADDRESSES, THE SECOND TAKEN AS THE DIRECT (OR INDIRECT IF IN ERASABLE) ADDRESS OF THE BRANCH.
051379,002985: 
051380,002986: 01,2513           34777        SWITCHES           CAF      LOW4                                  #  LEAVE THE SWITCH BIT IN  SWBIT  .
051381,002987: 01,2514           70117                           MASK     POLISH                                
051382,002988: 01,2515           50000                           INDEX    A                                     
051383,002989: 01,2516           34752                           CAF      BIT15                                 #  (NUMBER FROM LEFT TO RIGHT.)
051384,002990: 01,2517           54131                           TS       SWBIT                                 
051385,002991: 
051386,002992: 01,2520           34762                           CAF      BIT7                                  #  LEAVE THE SWITCH NUMBER IN SWWORD.
051387,002993: 01,2521           00006                           EXTEND                                         
051388,002994: 01,2522           70117                           MP       POLISH                                
051389,002995: 01,2523           54130                           TS       SWWORD                                
051390,002996: 
051391,002997: 01,2524           00004                           INHINT                                         #  DURING SWITCH CHANGE SO RUPT CAN USE TOO
051392,002998: 01,2525           50000                           INDEX    A                                     #  LEAVE THE SWITCH WORD ITSELF IN L.
051393,002999: 01,2526           30074                           CA       STATE                                 
051394,003000: 01,2527           54002                           TS       Q                                     #  Q WILL BE USED AS A CHANNEL.

Page 1198

051396,003002: 01,2530           34756                           CAF      BIT11                                 
051397,003003: 01,2531           00006                           EXTEND                                         #  DISPATCH SWITCH BIT OPERATION AS IN BITS
051398,003004: 01,2532           70117                           MP       POLISH                                #  7-8 OF POLISH.
051399,003005: 01,2533           73024                           MASK     B3TOB4                                #  GETS 4X2-BIT CODE.
051400,003006: 01,2534           50000                           INDEX    A                                     
051401,003007: 01,2535           12536                           TCF      +1                                    
051402,003008: 
051403,003009: 01,2536           30131                 +1        CA       SWBIT                                 #  00 - SET SWITCH IN QUESTION.
051404,003010: 01,2537           00006                           EXTEND                                         
051405,003011: 01,2540           04002                           ROR      QCHAN                                 
051406,003012: 01,2541           12550                           TCF      SWSTORE                               
051407,003013: 
051408,003014: 01,2542           30131                 +5        CA       SWBIT                                 #  01 - INVERT SWITCH.
051409,003015: 01,2543           00006                           EXTEND                                         
051410,003016: 01,2544           06002                           RXOR     QCHAN                                 
051411,003017: 01,2545           12550                           TCF      SWSTORE                               
051412,003018: 
051413,003019: 01,2546           40131                 +9D       CS       SWBIT                                 #  10 - CLEAR.
051414,003020: 01,2547           70002                           MASK     Q                                     
051415,003021: 01,2550           50130        SWSTORE            INDEX    SWWORD                                
051416,003022: 01,2551           54074                           TS       STATE                                 #  NEW SWITCH WORD.

Page 1199

051418,003024: 01,2552           00003                 +13D      RELINT                                         #  11 - NOOP.
051419,003025: 01,2553           34754                           CAF      BIT13                                 
051420,003026: 01,2554           00006                           EXTEND                                         #  DISPATCH SEQUCE CHANGING OR BRANCHING
051421,003027: 01,2555           70117                           MP       POLISH                                #  CODE.
051422,003028: 01,2556           73024                           MASK     B3TOB4                                
051423,003029: 01,2557           50000                           INDEX    A                                     
051424,003030: 01,2560           12561                           TCF      +1                                    #  ORIGINALLY STORED IN BITS 5-6.
051425,003031: 
051426,003032: 01,2561           40002                 +1        CS       Q                                     #  00 - BRANCH IF ON.
051427,003033: 01,2562           70131        TEST               MASK     SWBIT                                 
051428,003034: 01,2563           10000                           CCS      A                                     
051429,003035: 01,2564           12574                           TCF      SWSKIP                                
051430,003036: 
051431,003037: 01,2565           16664                 +5        TCF      SWBRANCH                              #  01 - GO TO.
051432,003038: 
051433,003039: 01,2566           12574                           TCF      SWSKIP                                #  HERE ONLY ON BIT 15.
051434,003040: 
051435,003041: 01,2567           12570                           NOOP                                           #  CANNOT GET HERE
051436,003042: 01,2570           12571                           NOOP                                           #  CANNOT GET HERE
051437,003043: 01,2571           30002                 +9D       CA       Q                                     #  10 - BRANCH IF OFF.
051438,003044: 01,2572           12562                           TCF      TEST                                  
051439,003045: 
051440,003046: 01,2573           12574                 +11D      NOOP                                           #  CANNOT GET HERE
051441,003047: 01,2574           24164        SWSKIP             INCR     LOC                                   
051442,003048: 
051443,003049: 01,2575           16030                 +13D      TCF      DANZIG                                #  11 - NOOP.
051444,003050: 
051445,003051: 01,2576  01,3024               B3TOB4             EQUALS   COREINC                               
051446,003052: 01,2576  01,2513               SW/                EQUALS   SWITCHES                              

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