Enum alure::instr::MoveOp [−][src]
pub enum MoveOp { SwpA(RegA, Reg32, RegA, Reg32), SwpR(RegR, Reg32, RegR, Reg32), SwpAR(RegA, Reg32, RegR, Reg32), AMov(RegA, RegA, NumType), MovA(RegA, Reg32, RegA, Reg32), MovR(RegR, Reg32, RegR, Reg32), MovAR(RegA, Reg32, RegR, Reg32), MovRA(RegR, Reg32, RegA, Reg32), }
Expand description
Instructions moving and swapping register values
Variants
Swap operation for arithmetic registers. If the value does not fit destination bit dimensions truncates the most significant bits until they fit.
Swap operation for non-arithmetic registers. If the value does not fit destination bit dimensions truncates the most significant bits until they fit.
Swap operation between arithmetic and non-arithmetic registers. If the value does not fit destination bit dimensions truncates the most significant bits until they fit.
Array move operation: duplicates values of all register set into another set
Move operation: duplicates value of one of the arithmetic registers into another arithmetic register
Move operation: duplicates value of one of the non-arithmetic registers into another non-arithmetic register
Move operation: duplicates value of one of the arithmetic registers into non-arithmetic register
Move operation: duplicates value of one of the n on-arithmetic registers into arithmetic register
Trait Implementations
Returns number of bytes which instruction and its argument occupies
Returns range of instruction btecodes covered by a set of operations
Returns byte representing instruction code (without its arguments)
fn write_args<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]
fn write_args<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]Writes instruction arguments as bytecode, omitting instruction code byte
fn read<R>(reader: &mut R) -> Result<Self, DecodeError> where
R: Read,
DecodeError: From<<R as Read>::Error>,
[src]
fn read<R>(reader: &mut R) -> Result<Self, DecodeError> where
R: Read,
DecodeError: From<<R as Read>::Error>,
[src]Reads the instruction from bytecode
fn write<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]
fn write<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]Writes the instruction as bytecode
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MoveOp
impl UnwindSafe for MoveOp
Blanket Implementations
Mutably borrows from an owned value. Read more