avrora.core
Class Instr.InvalidRegister
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
avrora.core.Instr.InvalidOperand
avrora.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. |
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 |
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.
Instr.InvalidRegister
public Instr.InvalidRegister(int num,
Register reg,
Register.Set s)