edu.cornell.cs.sam.core.instructions
Class SamAddressInstruction

java.lang.Object
  extended by edu.cornell.cs.sam.core.instructions.SamInstruction
      extended by edu.cornell.cs.sam.core.instructions.SamIntInstruction
          extended by edu.cornell.cs.sam.core.instructions.SamAddressInstruction
All Implemented Interfaces:
Instruction, java.io.Serializable
Direct Known Subclasses:
SAM_JSR, SAM_JUMP, SAM_JUMPC, SAM_PUSHIMMPA

public abstract class SamAddressInstruction
extends SamIntInstruction

All instructions with a program address operand derive from this class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.cornell.cs.sam.core.instructions.SamIntInstruction
op
 
Fields inherited from class edu.cornell.cs.sam.core.instructions.SamInstruction
cpu, FBR, HALT, mem, name, PC, prog, SP, sys, video
 
Constructor Summary
SamAddressInstruction()
           
 
Method Summary
 java.lang.String toString()
          Prints out the text that represents this SaM instruction
 
Methods inherited from class edu.cornell.cs.sam.core.instructions.SamIntInstruction
getOperand, setOperand
 
Methods inherited from class edu.cornell.cs.sam.core.instructions.SamInstruction
exec, getName, getProgram, getSystem, setProgram, setSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SamAddressInstruction

public SamAddressInstruction()
Method Detail

toString

public java.lang.String toString()
Description copied from interface: Instruction
Prints out the text that represents this SaM instruction

Specified by:
toString in interface Instruction
Overrides:
toString in class SamIntInstruction
Returns:
The string representation of this instruction