com.tapina.robe.runtime.instruction
Class RegisterOperand

java.lang.Object
  extended bycom.tapina.robe.runtime.instruction.Operand
      extended bycom.tapina.robe.runtime.instruction.RegisterOperand

public final class RegisterOperand
extends Operand

Created by IntelliJ IDEA. User: gareth Date: Aug 23, 2003 Time: 10:54:20 PM


Field Summary
static int SHIFT_ARITHMETIC_RIGHT
           
static int SHIFT_LOGICAL_LEFT
           
static int SHIFT_LOGICAL_RIGHT
           
static int SHIFT_ROTATE_RIGHT
           
 
Constructor Summary
RegisterOperand(int registerNumber)
           
RegisterOperand(int registerNumber, int shiftType, Operand shiftValue)
           
 
Method Summary
 void dumpJavaSource(java.lang.String varName, java.io.Writer out)
           
 java.lang.String getJavaExpression()
           
 int getValue(CPU cpu)
           
 boolean isCarryFlagSet()
           
 boolean isShiftPerformed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHIFT_LOGICAL_LEFT

public static final int SHIFT_LOGICAL_LEFT
See Also:
Constant Field Values

SHIFT_LOGICAL_RIGHT

public static final int SHIFT_LOGICAL_RIGHT
See Also:
Constant Field Values

SHIFT_ARITHMETIC_RIGHT

public static final int SHIFT_ARITHMETIC_RIGHT
See Also:
Constant Field Values

SHIFT_ROTATE_RIGHT

public static final int SHIFT_ROTATE_RIGHT
See Also:
Constant Field Values
Constructor Detail

RegisterOperand

public RegisterOperand(int registerNumber)

RegisterOperand

public RegisterOperand(int registerNumber,
                       int shiftType,
                       Operand shiftValue)
Method Detail

getValue

public final int getValue(CPU cpu)
Specified by:
getValue in class Operand

dumpJavaSource

public void dumpJavaSource(java.lang.String varName,
                           java.io.Writer out)
                    throws java.io.IOException
Overrides:
dumpJavaSource in class Operand
Throws:
java.io.IOException

getJavaExpression

public java.lang.String getJavaExpression()

isShiftPerformed

public final boolean isShiftPerformed()

isCarryFlagSet

public final boolean isCarryFlagSet()


Copyright © 2003-2005 . All Rights Reserved.