It looks like the right opcode is 48 bf
. I compile the following assembly (using Intel syntax and nasm
):
BITS 64
mov rdi, 0x1234567812345678
Then I pass the result through objdump -d -w -Mintel
:
0000000000000000 <.text>:
0: 48 bf 78 56 34 12 78 56 34 12 movabs rdi,0x1234567812345678
The opcode 48 bf
is composed of the REX.W prefix 48
to designate 64-bit operands, the opcode b8 +
rd io
, and the register selector for RDI
(111
):
MOV r64, imm64
: Moveimm64
tor64