avrora.core
Class Instr.REG_class

java.lang.Object
  extended byavrora.core.Instr
      extended byavrora.core.Instr.REG_class
All Implemented Interfaces:
InstrPrototype
Direct Known Subclasses:
Instr.ASR, Instr.CLR, Instr.COM, Instr.DEC, Instr.INC, Instr.LSL, Instr.LSR, Instr.NEG, Instr.POP, Instr.PUSH, Instr.ROL, Instr.ROR, Instr.SER, Instr.SWAP, Instr.TST
Enclosing class:
Instr

public abstract static class Instr.REG_class
extends Instr


Nested Class Summary
 
Nested classes inherited from class avrora.core.Instr
Instr.ADC, Instr.ADD, Instr.ADIW, Instr.AND, Instr.ANDI, Instr.ASR, Instr.BCLR, Instr.BLD, Instr.BRBC, Instr.BRBS, Instr.BRCC, Instr.BRCS, Instr.BREAK, Instr.BREQ, Instr.BRGE, Instr.BRHC, Instr.BRHS, Instr.BRID, Instr.BRIE, Instr.BRLO, Instr.BRLT, Instr.BRMI, Instr.BRNE, Instr.BRPL, Instr.BRSH, Instr.BRTC, Instr.BRTS, Instr.BRVC, Instr.BRVS, Instr.BSET, Instr.BST, Instr.CALL, Instr.CBI, Instr.CBR, Instr.CLC, Instr.CLH, Instr.CLI, Instr.CLN, Instr.CLR, Instr.CLS, Instr.CLT, Instr.CLV, Instr.CLZ, Instr.COM, Instr.CP, Instr.CPC, Instr.CPI, Instr.CPSE, Instr.DEC, Instr.EICALL, Instr.EIJMP, Instr.ELPM, Instr.ELPMD, Instr.ELPMPI, Instr.EOR, Instr.FMUL, Instr.FMULS, Instr.FMULSU, Instr.ICALL, Instr.IJMP, Instr.IMM_class, Instr.ImmediateRequired, Instr.IMMIMM_class, Instr.IMMREG_class, Instr.IMMWORD_class, Instr.IN, Instr.INC, Instr.InvalidImmediate, Instr.InvalidOperand, Instr.InvalidRegister, Instr.JMP, Instr.LD, Instr.LDD, Instr.LDI, Instr.LDPD, Instr.LDPI, Instr.LDS, Instr.LPM, Instr.LPMD, Instr.LPMPI, Instr.LSL, Instr.LSR, Instr.MOV, Instr.MOVW, Instr.MUL, Instr.MULS, Instr.MULSU, Instr.NEG, Instr.NONE_class, Instr.NOP, Instr.OR, Instr.ORI, Instr.OUT, Instr.POP, Instr.PUSH, Instr.RCALL, Instr.REG_class, Instr.REGIMM_class, Instr.REGIMMREG_class, Instr.RegisterRequired, Instr.REGREG_class, Instr.REGREGIMM_class, Instr.RET, Instr.RETI, Instr.RJMP, Instr.ROL, Instr.ROR, Instr.SBC, Instr.SBCI, Instr.SBI, Instr.SBIC, Instr.SBIS, Instr.SBIW, Instr.SBR, Instr.SBRC, Instr.SBRS, Instr.SEC, Instr.SEH, Instr.SEI, Instr.SEN, Instr.SER, Instr.SES, Instr.SET, Instr.SEV, Instr.SEZ, Instr.SLEEP, Instr.SPM, Instr.ST, Instr.STD, Instr.STPD, Instr.STPI, Instr.STS, Instr.SUB, Instr.SUBI, Instr.SWAP, Instr.TST, Instr.WDR, Instr.WORD_class, Instr.WrongNumberOfOperands
 
Field Summary
 Register r1
           
 
Fields inherited from class avrora.core.Instr
properties
 
Method Summary
 Instr build(int pc, Operand[] ops)
          The build() method constructs a new Instr instance with the given operands, checking the operands against the constraints that are specific to each instruction.
 boolean equals(java.lang.Object o)
           
 java.lang.String getOperands()
          The getOperands() method returns a string representation of the operands of the instruction.
 
Methods inherited from class avrora.core.Instr
accept, asInstr, getCycles, getName, getSize, getVariant, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

r1

public final Register r1
Method Detail

getOperands

public java.lang.String getOperands()
Description copied from class: Instr
The getOperands() method returns a string representation of the operands of the instruction. This is useful for printing and tracing of instructions as well as generating listings.

Specified by:
getOperands in class Instr
Returns:
a string representing the operands of the instruction

build

public Instr build(int pc,
                   Operand[] ops)
Description copied from interface: InstrPrototype
The build() method constructs a new Instr instance with the given operands, checking the operands against the constraints that are specific to each instruction.

Parameters:
pc - the address at which the instruction will be located
ops - the operands to the instruction
Returns:
a new Instr instance representing the instruction with the given operands

equals

public boolean equals(java.lang.Object o)