[][src]Enum x64_asm::GeneralPurposeRegister

pub enum GeneralPurposeRegister {
    AH,
    BH,
    CH,
    DH,
    AL,
    BL,
    CL,
    DL,
    RAX,
    RBP,
    RSP,
    RDI,
    RSI,
    RDX,
    RCX,
    RBX,
    R8,
    R9,
    R10,
    R11,
    R12,
    R13,
    R14,
    R15,
}

Variants

AH
BH
CH
DH
AL
BL
CL
DL
RAX

Accumulator Register

RBP

(Stack) Base Pointer Register

RSP

Stack Pointer Register

RDI

Destination Index Register

RSI

Source Index Register

RDX

Data Register

RCX

Counter Register

RBX

Base Register

R8
R9
R10
R11
R12
R13
R14
R15

Implementations

impl GeneralPurposeRegister[src]

pub fn number(&self) -> u8[src]

register code

pub fn size(&self) -> RegisterSize[src]

pub fn is_expanded(&self) -> bool[src]

check whether a register is expanded after x64. 拡張されたレジスタかどうかのチェック REX prefixに用いる

pub fn to_str(&self) -> &'static str[src]

pub fn new_64bit_from_code(code: usize) -> Self[src]

pub fn from_at_string(s: &str) -> Self[src]

pub fn to_64bit(&self) -> Self[src]

pub fn to_intel_string(&self) -> String[src]

pub fn to_at_string(&self) -> String[src]

Trait Implementations

impl Clone for GeneralPurposeRegister[src]

impl Copy for GeneralPurposeRegister[src]

impl Debug for GeneralPurposeRegister[src]

impl Display for GeneralPurposeRegister[src]

impl Eq for GeneralPurposeRegister[src]

impl Ord for GeneralPurposeRegister[src]

impl PartialEq<GeneralPurposeRegister> for GeneralPurposeRegister[src]

impl PartialOrd<GeneralPurposeRegister> for GeneralPurposeRegister[src]

impl StructuralEq for GeneralPurposeRegister[src]

impl StructuralPartialEq for GeneralPurposeRegister[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.