avrora.core
Class Instr.InvalidRegister

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byavrora.core.Instr.InvalidOperand
                  extended byavrora.core.Instr.InvalidRegister
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Instr

public static class Instr.InvalidRegister
extends Instr.InvalidOperand

The InvalidRegister class represents an error in constructing an instance of Instr where a register operand does not meet the instruction set specification. For example, the "ldi" instruction can only load values into the upper 16 registers; attempting to create a Instr.LDI instance with a destination register of Register.RO will generate this exception.

See Also:
Serialized Form

Field Summary
 Register register
          The register field records the offending register that was found not to be in the expected register set.
 Register.Set set
          The set field records the expected register set for the operand.
 
Fields inherited from class avrora.core.Instr.InvalidOperand
number
 
Constructor Summary
Instr.InvalidRegister(int num, Register reg, Register.Set s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

set

public final Register.Set set
The set field records the expected register set for the operand.


register

public final Register register
The register field records the offending register that was found not to be in the expected register set.

Constructor Detail

Instr.InvalidRegister

public Instr.InvalidRegister(int num,
                             Register reg,
                             Register.Set s)