All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BIT.highBIT.InstructionSingleOperand

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

public class InstructionSingleOperand
extends Instruction
Represents a Java Virtual Machine instrucion that takes one operand.

See Also:
Instruction

Constructor Index

 o InstructionSingleOperand(int, byte, Routine)
 o InstructionSingleOperand(int, DataInputStream, int, Routine)
Constructor for InstructionSingleOperand class.

Method Index

 o getLength()
Returns the length (in bytes) of this instruction including opcode.
 o getOperandValue()
Returns the 8 bit value resulting from operand1.
 o write(DataOutputStream)

Constructors

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

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

Methods

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

Overrides:
getOperandValue in class Instruction
 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