Struct x86_64::registers::rflags::RFlags[]

pub struct RFlags { /* fields omitted */ }

The RFLAGS register.

Methods

impl RFlags

ID: RFlags = RFlags{bits: 1 << 21,}

Processor feature identification flag.

If this flag is modifiable, the CPU supports CPUID.

VIRTUAL_INTERRUPT_PENDING: RFlags = RFlags{bits: 1 << 20,}

Indicates that an external, maskable interrupt is pending.

Used when virtual-8086 mode extensions (CR4.VME) or protected-mode virtual interrupts (CR4.PVI) are activated.

VIRTUAL_INTERRUPT: RFlags = RFlags{bits: 1 << 19,}

Virtual image of the INTERRUPT_FLAG bit.

Used when virtual-8086 mode extensions (CR4.VME) or protected-mode virtual interrupts (CR4.PVI) are activated.

ALIGNMENT_CHECK: RFlags = RFlags{bits: 1 << 18,}

Enable automatic alignment checking if CR0.AM is set. Only works if CPL is 3.

VIRTUAL_8086_MODE: RFlags = RFlags{bits: 1 << 17,}

Enable the virtual-8086 mode.

RESUME_FLAG: RFlags = RFlags{bits: 1 << 16,}

Allows to restart an instruction following an instrucion breakpoint.

NESTED_TASK: RFlags = RFlags{bits: 1 << 14,}

Used by iret in hardware task switch mode to determine if current task is nested.

IOPL_HIGH: RFlags = RFlags{bits: 1 << 13,}

The high bit of the I/O Privilege Level field.

Specifies the privilege level required for executing I/O address-space instructions.

IOPL_LOW: RFlags = RFlags{bits: 1 << 12,}

The low bit of the I/O Privilege Level field.

Specifies the privilege level required for executing I/O address-space instructions.

OVERFLOW_FLAG: RFlags = RFlags{bits: 1 << 11,}

Set by hardware to indicate that the sign bit of the result of the last signed integer operation differs from the source operands.

DIRECTION_FLAG: RFlags = RFlags{bits: 1 << 10,}

Determines the order in which strings are processed.

INTERRUPT_FLAG: RFlags = RFlags{bits: 1 << 9,}

Enable interrupts.

TRAP_FLAG: RFlags = RFlags{bits: 1 << 8,}

Enable single-step mode for debugging.

SIGN_FLAG: RFlags = RFlags{bits: 1 << 7,}

Set by hardware if last arithmetic operation resulted in a negative value.

ZERO_FLAG: RFlags = RFlags{bits: 1 << 6,}

Set by hardware if last arithmetic operation resulted in a zero value.

AUXILIARY_CARRY_FLAG: RFlags = RFlags{bits: 1 << 4,}

Set by hardware if last arithmetic operation generated a carry ouf of bit 3 of the result.

PARITY_FLAG: RFlags = RFlags{bits: 1 << 2,}

Set by hardware if last result has an even number of 1 bits (only for some operations).

CARRY_FLAG: RFlags = RFlags{bits: 1 << 0,}

Set by hardware if last arithmetic operation generated a carry out of the most-significant bit of the result.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for RFlags

impl PartialEq for RFlags

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for RFlags

impl Clone for RFlags

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for RFlags

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for RFlags

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for RFlags

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for RFlags

Formats the value using the given formatter. Read more

impl Binary for RFlags

Formats the value using the given formatter.

impl Octal for RFlags

Formats the value using the given formatter.

impl LowerHex for RFlags

Formats the value using the given formatter.

impl UpperHex for RFlags

Formats the value using the given formatter.

impl BitOr for RFlags

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for RFlags

Adds the set of flags.

impl BitXor for RFlags

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for RFlags

Toggles the set of flags.

impl BitAnd for RFlags

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for RFlags

Disables all flags disabled in the set.

impl Sub for RFlags

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for RFlags

Disables all flags enabled in the set.

impl Not for RFlags

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<RFlags> for RFlags

Extends a collection with the contents of an iterator. Read more

impl FromIterator<RFlags> for RFlags

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for RFlags

impl Sync for RFlags