Enum avr::inst::Instruction[][src]

pub enum Instruction {
    Inc(Gpr),
    Dec(Gpr),
    Com(Gpr),
    Neg(Gpr),
    Push(Gpr),
    Pop(Gpr),
    Swap(Gpr),
    Subi(Gpru8),
    Sbci(Gpru8),
    Andi(Gpru8),
    Ori(Gpru8),
    Cpi(Gpru8),
    Ldi(Gpru8),
    Add(GprGpr),
    Adc(GprGpr),
    Sub(GprGpr),
    Sbc(GprGpr),
    Mul(GprGpr),
    And(GprGpr),
    Or(GprGpr),
    Eor(GprGpr),
    Cpse(GprGpr),
    Cp(GprGpr),
    Cpc(GprGpr),
    Mov(GprGpr),
    Movw(GprPairGprPair),
    In(Gpru8),
    Out(u8Gpr),
    Sbi(u8u8),
    Cbi(u8u8),
    Jmp(u32),
    Call(u32),
    Rjmp(i16),
    Rcall(i16),
    Brbs(u8RelativeAddress7),
    Brbc(u8RelativeAddress7),
    Breq(RelativeAddress7),
    Brne(RelativeAddress7),
    Brcs(RelativeAddress7),
    Brcc(RelativeAddress7),
    Brsh(RelativeAddress7),
    Brlo(RelativeAddress7),
    Brmi(RelativeAddress7),
    Brpl(RelativeAddress7),
    Brge(RelativeAddress7),
    Brlt(RelativeAddress7),
    Brhs(RelativeAddress7),
    Brhc(RelativeAddress7),
    Brts(RelativeAddress7),
    Brtc(RelativeAddress7),
    Brvs(RelativeAddress7),
    Brvc(RelativeAddress7),
    Brie(RelativeAddress7),
    Brid(RelativeAddress7),
    St(GprPairGprVariant),
    Ld(GprGprPairVariant),
    Std(GprPairu8Gpr),
    Ldd(GprGprPairu8),
    Lpm(GprGprPairbool),
    Nop,
    Ret,
    Reti,
}

An instruction.

Variants

Inc(Gpr)
Dec(Gpr)
Com(Gpr)
Neg(Gpr)
Push(Gpr)
Pop(Gpr)
Swap(Gpr)
Subi(Gpru8)
Sbci(Gpru8)
Andi(Gpru8)
Ori(Gpru8)
Cpi(Gpru8)
Ldi(Gpru8)
Add(GprGpr)
Adc(GprGpr)
Sub(GprGpr)
Sbc(GprGpr)
Mul(GprGpr)
And(GprGpr)
Or(GprGpr)
Eor(GprGpr)
Cpse(GprGpr)
Cp(GprGpr)
Cpc(GprGpr)
Mov(GprGpr)
In(Gpru8)
Out(u8Gpr)
Sbi(u8u8)

Set bit in IO register.

Cbi(u8u8)

Clear bit in IO register.

Jmp(u32)
Call(u32)
Rjmp(i16)
Rcall(i16)
Std(GprPairu8Gpr)
Ldd(GprGprPairu8)
Lpm(GprGprPairbool)

Load program memory. GprPair is always the Z register. The bool is whether to postincrement.

Nop
Ret
Reti

Implementations

impl Instruction[src]

pub fn size(self) -> u8[src]

Trait Implementations

impl Clone for Instruction[src]

impl Copy for Instruction[src]

impl Debug for Instruction[src]

impl Eq for Instruction[src]

impl PartialEq<Instruction> for Instruction[src]

impl StructuralEq for Instruction[src]

impl StructuralPartialEq for Instruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.