movz
Move Zero
MOVZ <Wd>, #<imm16> {, lsl #<shift>}
Moves 16-bit immediate to register, zeroing other bits.
Pseudocode Operation
shift_amount ← hw × 16
Wd ← imm16 ≪ shift_amount
Example
MOVZ w0, #16
Encoding
Binary Layout
0
31
10
30:29
100101
28:23
hw
22:21
imm16
20:5
Rd
4:0
Operands
-
Wd
Destination 32-bit integer register -
imm16
Imm -
shift
Shift amount
Related
More in Base
Reference
View in Arm A64 ISA Reference ↗
Arm A64 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x52800000 | MOVZ <Wd>, #<imm>{, LSL #<shift>} | A64 | 0 | 10 | 100101 | hw | imm16 | Rd | ||
| 0xD2800000 | MOVZ <Xd>, #<imm>{, LSL #<shift>} | A64 | 1 | 10 | 100101 | hw | imm16 | Rd |
Description
Move wide with zero moves an optionally-shifted 16-bit immediate value to a register.
Operation
bits(datasize) result; result = Zeros(datasize); result<pos+15:pos> = imm16; X[d, datasize] = result;