4.3.9. MOVT

Move Top. Writes a 16-bit immediate value to the top halfword of a register, without affecting the bottom halfword.

Syntax

MOVT{cond} Rd, #immed_16

where:

cond

is an optional condition code (see Conditional execution).

Rd

is the destination register. Rd cannot be the PC.

immed_16

is a 16-bit immediate constant.

Usage

MOVT writes immed_16 to Rd[31:16]. The write does not affect Rd[15:0].

You can generate any 32-bit constant with a MOV, MOVT instruction pair.

See also MOV32 pseudo-instruction.

Condition flags

This instruction does not change the flags.

Architectures

This ARM instruction is available in ARMv6T2 and above.

This 32-bit Thumb-2 instruction is available in T2 variants of ARMv6 and above.

There is no 16-bit Thumb version of this instruction.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0204F
Non-Confidential