movabs opcode

Peter Johnson peter at tortall.net
Mon Mar 27 17:00:40 PST 2006


On Mon, 27 Mar 2006, Vikas Kumar wrote:
> You might have read in the x86-64 ABI document about the MOVABS
> instruction. What is the opcode for that instruction ? I haven't seen
> any reference to that instruction in AMD's documents.
> Does anyone have any idea ?

MOVABS is the GAS opcode name for the MOV opcode forms "MOV Areg, 
[Offs64]" and "MOV [Offs64], Areg".  In Yasm's NASM syntax mode, you can 
get this form by saying "MOV AX, [qword xxx]".  Yasm's GAS syntax mode 
accepts MOVABS (for GAS compatibility).  Note this form is only valid with 
Areg (AL/AX/EAX/RAX) as the source/destination register.

Peter


More information about the yasm-devel mailing list