Skip to main content

Opcode

Enum Opcode 

Source
#[repr(u8)]
pub enum Opcode {
Show 40 variants Mov = 0, Cmp = 1, Add = 2, Sub = 3, Jz = 4, Jnz = 5, Inc = 6, Dec = 7, Jmp = 8, Xor = 9, And = 10, Or = 11, Test = 12, Js = 13, Jns = 14, Jb = 15, Jbe = 16, Ja = 17, Jae = 18, Push = 19, Pop = 20, Call = 21, Ret = 22, Not = 23, Shl = 24, Shr = 25, Sar = 26, Neg = 27, Pusha = 28, Popa = 29, Pushf = 30, Popf = 31, Movzx = 32, Movsx = 33, Xchg = 34, Mul = 35, Div = 36, Adc = 37, Sbb = 38, Print = 39,
}

Variants§

§

Mov = 0

§

Cmp = 1

§

Add = 2

§

Sub = 3

§

Jz = 4

§

Jnz = 5

§

Inc = 6

§

Dec = 7

§

Jmp = 8

§

Xor = 9

§

And = 10

§

Or = 11

§

Test = 12

§

Js = 13

§

Jns = 14

§

Jb = 15

§

Jbe = 16

§

Ja = 17

§

Jae = 18

§

Push = 19

§

Pop = 20

§

Call = 21

§

Ret = 22

§

Not = 23

§

Shl = 24

§

Shr = 25

§

Sar = 26

§

Neg = 27

§

Pusha = 28

§

Popa = 29

§

Pushf = 30

§

Popf = 31

§

Movzx = 32

§

Movsx = 33

§

Xchg = 34

§

Mul = 35

§

Div = 36

§

Adc = 37

§

Sbb = 38

§

Print = 39

Trait Implementations§

Source§

impl Clone for Opcode

Source§

fn clone(&self) -> Opcode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Opcode

Source§

impl Debug for Opcode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Opcode

Source§

impl PartialEq for Opcode

Source§

fn eq(&self, other: &Opcode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Opcode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.