All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BIT.highBIT.InstructionDoubleOperand

java.lang.Object
   |
   +----BIT.highBIT.Instruction
           |
           +----BIT.highBIT.InstructionDoubleOperand

public class InstructionDoubleOperand
extends Instruction
Represents a Java Virtual Machine instrucion that takes two operands.

See Also:
Instruction

Constructor Index

 o InstructionDoubleOperand(int, DataInputStream, int, Routine)
Constructor for InstructionDoubleOperand class.
 o InstructionDoubleOperand(int, short, Routine)

Method Index

 o getLength()
Returns the length (in bytes) of this instruction including opcode.
 o getOperandValue()
Returns the 16 bit value resulting from operand1 and operand2.
 o setOperandValue(short)
Sets the 16 bit value arg to operand1 and operand2.
 o write(DataOutputStream)

Constructors

 o InstructionDoubleOperand
 public InstructionDoubleOperand(int opcode,
                                 DataInputStream iStream,
                                 int offset,
                                 Routine routine)
Constructor for InstructionDoubleOperand class.

Parameters:
opcode - the opcode of this instruction
iStream - the data input stream where the operands are gotten from
 o InstructionDoubleOperand
 public InstructionDoubleOperand(int opcode,
                                 short operand,
                                 Routine routine)

Methods

 o write
 public void write(DataOutputStream oStream)
Overrides:
write in class Instruction
 o getOperandValue
 public int getOperandValue()
Returns the 16 bit value resulting from operand1 and operand2.

Overrides:
getOperandValue in class Instruction
 o setOperandValue
 public void setOperandValue(short value)
Sets the 16 bit value arg to operand1 and operand2.

 o getLength
 public int getLength()
Returns the length (in bytes) of this instruction including opcode.

Overrides:
getLength in class Instruction

All Packages  Class Hierarchy  This Package  Previous  Next  Index