pub struct AddInstruction {
pub condition: ConditionCase,
pub set_flags_option: SetFlags,
pub source_1: FullOperand,
pub source_2: RegisterOperand,
pub destination: FullOperand,
}Expand description
The arithmetic addition instruction.
Fields§
§condition: ConditionCaseCondition for execution
set_flags_option: SetFlagsWhether we set flags or not
source_1: FullOperandThe first operand.
source_2: RegisterOperandThe second operand.
destination: FullOperandThe destination operand.
Implementations§
Source§impl Add
impl Add
pub const NUM_ARGUMENTS: usize = 3usize
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<Add> for DecodedOpcode<N, E>
impl<const N: usize, E: VmEncodingMode<N>> TryFrom<Add> for DecodedOpcode<N, E>
impl StructuralPartialEq for Add
Auto Trait Implementations§
impl Freeze for Add
impl RefUnwindSafe for Add
impl Send for Add
impl Sync for Add
impl Unpin for Add
impl UnwindSafe for Add
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)