pub enum Condition {
NonZero,
Zero,
NoCarry,
Carry,
}Expand description
Checks for conditional instructions
Variants§
NonZero
The Zero flag is not set
Zero
The Zero flag is set
NoCarry
The Carry flag is not set
Carry
The Carry flag is set.
Trait Implementations§
Source§impl Disassemble for Condition
impl Disassemble for Condition
fn disassemble(&self) -> String
Source§impl EmbeddableParam for Condition
impl EmbeddableParam for Condition
Source§fn extract(value: u8) -> Result<Condition, ParseError>
fn extract(value: u8) -> Result<Condition, ParseError>
Extracts the value from a given opcode. The value should be aligned to a byte for this method
Source§fn extract_from_opcode(
opcode: u8,
pos: OpcodePosition,
) -> Result<Self, ParseError>
fn extract_from_opcode( opcode: u8, pos: OpcodePosition, ) -> Result<Self, ParseError>
Extracts a value from the given opcode.
Source§fn embed_to_opcode(&self, opcode: u8, pos: OpcodePosition) -> u8
fn embed_to_opcode(&self, opcode: u8, pos: OpcodePosition) -> u8
Embeds a value in the given opcode
impl Copy for Condition
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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