com.tapina.robe.runtime.instruction
Class MultiplyInstruction

java.lang.Object
  extended bycom.tapina.robe.runtime.Instruction
      extended bycom.tapina.robe.runtime.instruction.MultiplyInstruction
Direct Known Subclasses:
MultiplyAccumulateInstruction

public class MultiplyInstruction
extends Instruction

Created by IntelliJ IDEA. User: gareth Date: Sep 2, 2003 Time: 8:07:33 AM


Field Summary
 
Fields inherited from class com.tapina.robe.runtime.Instruction
count
 
Constructor Summary
MultiplyInstruction(Condition condition, int destinationRegister, int factorRegister1, int factorRegister2, boolean setConditionCodes)
           
 
Method Summary
 void dumpJavaSourceUnconditional(java.io.Writer out)
           
protected  boolean execute(Environment environment)
          Try to avoid having much in the way of conditionals in this method - it should execute straight through and be as easily optimised/inlined as possible for speed.
 
Methods inherited from class com.tapina.robe.runtime.Instruction
checkAndExecute, dumpCondition, dumpJavaSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplyInstruction

public MultiplyInstruction(Condition condition,
                           int destinationRegister,
                           int factorRegister1,
                           int factorRegister2,
                           boolean setConditionCodes)
Method Detail

execute

protected final boolean execute(Environment environment)
Description copied from class: Instruction
Try to avoid having much in the way of conditionals in this method - it should execute straight through and be as easily optimised/inlined as possible for speed. Do all your ifs and buts in the decoder or the constructor to this class.

Specified by:
execute in class Instruction
Parameters:
environment -
Returns:
true if the pipeline should be flushed (i.e. branch has occurred)

dumpJavaSourceUnconditional

public void dumpJavaSourceUnconditional(java.io.Writer out)
                                 throws java.io.IOException
Specified by:
dumpJavaSourceUnconditional in class Instruction
Throws:
java.io.IOException


Copyright © 2003-2005 . All Rights Reserved.