pub struct DivInstruction {
pub condition: ConditionCase,
pub set_flags_option: SetFlags,
pub source_1: FullOperand,
pub source_2: RegisterOperand,
pub quotient_destination: FullOperand,
pub remainder_destination: RegisterOperand,
pub swap_operands: bool,
}Expand description
The arithmetic division or remainder instruction.
Fields§
§condition: ConditionCaseCondition for execution
set_flags_option: SetFlagsWhether we set flags or not
source_1: FullOperandThe first source operand.
source_2: RegisterOperandThe second source register.
quotient_destination: FullOperandThe quotient destination register.
remainder_destination: RegisterOperandThe remainder destination register.
swap_operands: boolif it is set then source operands have be swapped.
Implementations§
Source§impl Div
impl Div
pub const NUM_ARGUMENTS: usize = 4usize
pub fn build_from_parts( modifiers: HashSet<&str>, operands: Vec<&str>, ) -> Result<Self, InstructionReadError>
Trait Implementations§
Source§impl<const N: usize, E: VmEncodingMode<N>> TryFrom<Div> for DecodedOpcode<N, E>
impl<const N: usize, E: VmEncodingMode<N>> TryFrom<Div> for DecodedOpcode<N, E>
impl StructuralPartialEq for Div
Auto Trait Implementations§
impl Freeze for Div
impl RefUnwindSafe for Div
impl Send for Div
impl Sync for Div
impl Unpin for Div
impl UnwindSafe for Div
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)