Enum alure::instr::MoveOp[][src]

pub enum MoveOp {
Show variants MovA(RegAReg32Reg32), DupA(RegAReg32Reg32), SwpA(RegAReg32Reg32), MovF(RegFReg32Reg32), DupF(RegFReg32Reg32), SwpF(RegFReg32Reg32), MovR(RegRReg32Reg32), DupR(RegRReg32Reg32), CpyA(RegAReg32RegAReg32), CnvA(RegAReg32RegAReg32), CnvF(RegFReg32RegFReg32), CpyR(RegRReg32RegRReg32), SpyAR(RegAReg32RegRReg32), CnvAF(RegAReg32RegFReg32), CnvFA(RegFReg32RegAReg32),
}
Expand description

Instructions moving and swapping register values

Variants

MovA(RegAReg32Reg32)

Move operation: moves value of one of the integer arithmetic registers into another integer arithmetic register of the same bit size, clearing its previous value and setting the source to None.

DupA(RegAReg32Reg32)

Duplicate operation: duplicates value of one of the integer arithmetic registers into another integer arithmetic register of the same bit size, clearing its previous value.

SwpA(RegAReg32Reg32)

Swap operation: swaps value of two integer arithmetic registers of the same bit size.

MovF(RegFReg32Reg32)

Move operation: moves value of one of the float arithmetic registers into another float arithmetic register of the same bit size, clearing its previous value and setting the source to None.

DupF(RegFReg32Reg32)

Duplicate operation: duplicates value of one of the float arithmetic registers into another float arithmetic register of the same bit size, clearing its previous value.

SwpF(RegFReg32Reg32)

Swap operation: swaps value of two float arithmetic registers of the same bit size.

MovR(RegRReg32Reg32)

Move operation: moves value of one of the general non-arithmetic registers into another general non- arithmetic register of the same bit size, clearing its previous value and setting the source to None.

DupR(RegRReg32Reg32)

Duplicate operation: duplicates value of one of the general non-arithmetic registers into another general non-arithmetic register of the same bit size, clearing its previous value.

CpyA(RegAReg32RegAReg32)

Copy operation: copies value from one of the integer arithmetic registers to a destination register treating value as unsigned: if the value does not fit destination bit dimension, truncates the most significant bits until they fit, setting st0 value to false. Otherwise, the operation sets st0 to true.

CnvA(RegAReg32RegAReg32)

Conversion operation: copies value from one of the integer arithmetic registers to a destination register treating value as signed: if the value does not fit destination bit dimension, truncates the most significant non-sign bits until they fit, setting st0 value to false. Otherwise, fills the difference between source and destination bit length with the value taken from the most significant source bit (sign bit) and sets st0 to true.

CnvF(RegFReg32RegFReg32)

Conversion operation: converts value from one of the float arithmetic registers to a destination register according to floating encoding rules. If the value does not fit destination bit dimension, truncates the most significant non-sign bits until they fit, setting st0 value to false. Otherwise sets st0 to true.

CpyR(RegRReg32RegRReg32)

Copy operation: copies value from one of the general non-arithmetic registers to a destination register. If the value does not fit destination bit dimension, truncates the most significant bits until they fit, setting st0 value to false. Otherwise, extends most significant bits with zeros and sets st0 to true.

SpyAR(RegAReg32RegRReg32)

Swap-copy operation: swaps value one of the integer arithmetic registers with a value of an general non-arithmetic register. If any of the values do not fit destination bit dimensions, truncates the most significant bits until they fit, setting st0 value to false. Otherwise, extends most significant bits with zeros and sets st0 to true.

CnvAF(RegAReg32RegFReg32)

Conversion operation: converts value of an integer arithmetic register to a float register according to floating encoding rules. If the value does not fit destination bit dimension, truncates the most significant non-sign bits until they fit, setting st0 value to false. Otherwise sets st0 to true.

NB: operation always treats integers as signed integers.

CnvFA(RegFReg32RegAReg32)

Conversion operation: converts value of a float arithmetic register to an integer register according to floating encoding rules. If the value does not fit destination bit dimension, truncates the most significant non-sign bits until they fit, setting st0 value to false. Otherwise sets st0 to true.

NB: operation always treats integers as signed integers.

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)

Writes instruction arguments as bytecode, omitting instruction code byte

Reads the instruction from bytecode

Writes the instruction as bytecode

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Executes given instruction taking all registers as input and output. The method is provided with the current code position which may be used by the instruction for constructing call stack. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.