aarch64-pg
06 · reference

Reference

A searchable map of the supported instructions and the calling convention.

mov

Copy register or wide immediate into Rd.

run example

Data processing

mov xd, xn / mov xd, #imm / mov xd, sp

c equivalent

Rd = Rm; // or Rd = imm;

flags

NZCVdoes not set flags
mov     x9, 42              // x9 = 42mov     x10, x9             // copy: x10 = 42 too
  • the immediate form only takes a value that fits one shifted 16-bit field; a wider constant needs a move-wide then keep sequence.
#mov