pub enum InstructionCategory {
Show 13 variants
NoArgs,
OneImm,
OneRegExtImm,
TwoImm,
OneOffset,
OneRegOneImm,
OneRegTwoImm,
OneRegImmOffset,
TwoReg,
TwoRegOneImm,
TwoRegOneOffset,
TwoRegTwoImm,
ThreeReg,
}Expand description
Instruction argument category (determines how operands are decoded).
Variants§
NoArgs
A.5.1: No arguments (trap, fallthrough)
OneImm
A.5.2: One immediate (ecalli)
OneRegExtImm
A.5.3: One register + extended width immediate (load_imm_64)
TwoImm
A.5.4: Two immediates (store_imm_*)
OneOffset
A.5.5: One offset (jump)
OneRegOneImm
A.5.6: One register + one immediate
OneRegTwoImm
A.5.7: One register + two immediates
OneRegImmOffset
A.5.8: One register + one immediate + one offset
TwoReg
A.5.9: Two registers
TwoRegOneImm
A.5.10: Two registers + one immediate
TwoRegOneOffset
A.5.11: Two registers + one offset
TwoRegTwoImm
A.5.12: Two registers + two immediates
ThreeReg
A.5.13: Three registers
Implementations§
Source§impl InstructionCategory
impl InstructionCategory
Sourcepub fn from_opcode_byte(b: u8) -> Self
pub fn from_opcode_byte(b: u8) -> Self
Look up category from raw opcode byte via static table (O(1), no branching).
Trait Implementations§
Source§impl Clone for InstructionCategory
impl Clone for InstructionCategory
Source§fn clone(&self) -> InstructionCategory
fn clone(&self) -> InstructionCategory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstructionCategory
impl Debug for InstructionCategory
Source§impl PartialEq for InstructionCategory
impl PartialEq for InstructionCategory
impl Copy for InstructionCategory
impl Eq for InstructionCategory
impl StructuralPartialEq for InstructionCategory
Auto Trait Implementations§
impl Freeze for InstructionCategory
impl RefUnwindSafe for InstructionCategory
impl Send for InstructionCategory
impl Sync for InstructionCategory
impl Unpin for InstructionCategory
impl UnsafeUnpin for InstructionCategory
impl UnwindSafe for InstructionCategory
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