pub fn as_reg_field_value(&self) -> u8 {
        match *self {
            X86Register::AH => 0b100,
            X86Register::AL => 0b000,
            X86Register::BH => 0b111,
            X86Register::BL => 0b011,
            X86Register::CH => 0b101,
            X86Register::CL => 0b001,
            X86Register::DH => 0b110,
            X86Register::DL => 0b010,
        }
    }
/// Get the value for encoding this 8-bit register in a `ModR/M` byte's `REG` field.
///
/// Note that this is only correct for operations with an 8-bit data size. Bigger sizes use
/// bigger registers, obviously.
Get the value for encoding this 8-bit register in a `ModR/M` byte's `REG` field.
Note that this is only correct for operations with an 8-bit data size. Bigger sizes use
bigger registers, obviously.
Get the value for encoding this 8 - bit register in a ` ModR / M ` byte ' s ` REG ` field . Note that this is only correct for operations with an 8 - bit data size . Bigger sizes use bigger registers obviously .
pub fn as_reg_field_value(&self) -> u8 {
        match *self {
            X86Register::AH => 0b100,
            X86Register::AL => 0b000,
            X86Register::BH => 0b111,
            X86Register::BL => 0b011,
            X86Register::CH => 0b101,
            X86Register::CL => 0b001,
            X86Register::DH => 0b110,
            X86Register::DL => 0b010,
        }
    }
pub fn as_reg_field_value ( & self ) -> u8 { match * self { X86Register :: AH => 0b100 , X86Register :: AL => 0b000 , X86Register :: BH => 0b111 , X86Register :: BL => 0b011 , X86Register :: CH => 0b101 , X86Register :: CL => 0b001 , X86Register :: DH => 0b110 , X86Register :: DL => 0b010 , } }
Get the value for encoding this 8-bit register in a `ModR/M` byte's `REG` field.
Get the value for encoding this 8 - bit register in a ` ModR / M ` byte ' s ` REG ` field .
&self
&self