Skip to main content

encode_reg16_imm16

Function encode_reg16_imm16 

Source
pub const unsafe fn encode_reg16_imm16(
    reg16: GPR,
    imm16: Immediate16,
) -> EncodedX86_64Instruction
Expand description

Move 16-bit immediate to 16-bit register.

§Safety

It is the caller’s responsibility to ensure that the operands are valid. Otherwise the behavior is undefined.