#[repr(u8)]pub enum Class {
LD = 0,
LDX = 1,
ST = 2,
STX = 3,
ALU = 4,
ALU64 = 7,
JMP = 5,
JMP32 = 6,
}
Expand description
Instruction classes
Note: 32-bit ALU ops are denoted with Class::ALU
and 64-bit ALU ops are
Class::ALU64
yet 32-bit jump ops are in Class::JMP32
and 64-bit jump ops are in Class::JMP
.
Variants§
LD = 0
Immediate loads
LDX = 1
Register loads
ST = 2
Immediate stores
STX = 3
Register stores
ALU = 4
Arithmetic operations (32-bit)
ALU64 = 7
Arithmetic operation (64-bit)
JMP = 5
Jump operations (64-bit)
JMP32 = 6
Jump operations (32-bit)
Trait Implementations§
Source§impl TryFromPrimitive for Class
impl TryFromPrimitive for Class
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more