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

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
              extended by edu.cornell.cs.sam.core.instructions.SAM_JUMP
All Implemented Interfaces:
Instruction, java.io.Serializable

public class SAM_JUMP
extends SamAddressInstruction

Jumps to the opcode address

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
SAM_JUMP()
           
 
Method Summary
 void exec()
          Executes the instruction
 
Methods inherited from class edu.cornell.cs.sam.core.instructions.SamAddressInstruction
toString
 
Methods inherited from class edu.cornell.cs.sam.core.instructions.SamIntInstruction
getOperand, setOperand
 
Methods inherited from class edu.cornell.cs.sam.core.instructions.SamInstruction
getName, getProgram, getSystem, setProgram, setSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SAM_JUMP

public SAM_JUMP()
Method Detail

exec

public void exec()
          throws SystemException
Description copied from interface: Instruction
Executes the instruction

Specified by:
exec in interface Instruction
Specified by:
exec in class SamInstruction
Throws:
SystemException - if there is a runtime error