com.tapina.robe.runtime.instruction
Class DataTransferInstruction

java.lang.Object
  extended bycom.tapina.robe.runtime.Instruction
      extended bycom.tapina.robe.runtime.instruction.DataTransferInstruction

public final class DataTransferInstruction
extends Instruction

Created by IntelliJ IDEA. User: gareth Date: Sep 2, 2003 Time: 9:15:17 AM


Field Summary
static Transfer LDR
           
static Transfer LDRB
           
static Transfer STR
           
static Transfer STRB
           
 
Fields inherited from class com.tapina.robe.runtime.Instruction
count
 
Constructor Summary
DataTransferInstruction(Condition condition, Transfer transfer, int destinationRegister, IndexedAddressSource addressSource)
           
 
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
 

Field Detail

LDR

public static final Transfer LDR

LDRB

public static final Transfer LDRB

STR

public static final Transfer STR

STRB

public static final Transfer STRB
Constructor Detail

DataTransferInstruction

public DataTransferInstruction(Condition condition,
                               Transfer transfer,
                               int destinationRegister,
                               IndexedAddressSource addressSource)
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.