Move Top. Writes a 16-bit immediate value to the top halfword
of a register, without affecting the bottom halfword.
Syntax
MOVT{cond} Rd, #imm16
where:
cond
is an optional condition code.
Rd
is the destination register.
imm16
is a 16-bit immediate value.
Usage
MOVT writes imm16 to Rd[31:16].
The write does not affect Rd[15:0].
You can generate any 32-bit immediate with a MOV, MOVT instruction
pair. The assembler implements the MOV32 pseudo-instruction
for convenient generation of this instruction pair.
Register restrictions
You cannot use PC in ARM or Thumb instructions.
You can use SP for Rd in
ARM instructions but this is deprecated.
You cannot use SP in Thumb instructions.
Condition flags
This instruction does not change the flags.
Architectures
This ARM instruction is available in ARMv6T2 and above.
This 32-bit Thumb instruction is available in ARMv6T2 and
above.
There is no 16-bit Thumb version of this instruction.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.