Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

movk

The ARM64 instruction that drops a 16-bit number into one quarter of a register and keeps the other bits.

movk xd, #imm16, lsl #s replaces bits s..s+15 of xd with imm16 and preserves the rest; up to three movk after a movz build any 64-bit constant.

Examples

  • After movz x0, #0x1234, lsl #16, movk x0, #0x5678 fills the low 16 bits: x0 = 0x12345678.

Read the full section →