movabs

8086 and later

movabs

movabs al, moffs | movabs ax, moffs | movabs eax, moffs | movabs rax, moffs | movabs moffs, al | movabs moffs, ax | movabs moffs, eax | movabs moffs, rax | movabs reg8, imm8 | movabs reg16, imm16 | movabs reg32, imm32 | movabs reg64, imm64

Moves a full 64 bit immediate into a register. mov takes immediates up to 32 bits and sign extends them, which silently turns a large address into the wrong number, so NASM accepts movabs as the spelling that means "the whole 64 bits are here". It assembles to a 10 byte instruction, against 5 to 7 for the mov forms.

Loading...

Forms

Every form of movabs the assembler accepts, from NASM's own instruction table. The second column is the processor that introduced the form; a badge marks a form that needs an extension, that is lockable, or that long mode dropped.

FormSinceNotes
movabs al, moffs8086
movabs ax, moffs8086
movabs eax, moffs386
movabs rax, moffsx86-64long
movabs moffs, al8086
movabs moffs, ax8086
movabs moffs, eax386
movabs moffs, raxx86-64long
movabs reg8, imm88086
movabs reg16, imm168086
movabs reg32, imm32386
movabs reg64, imm64x86-64long