4.3.8. 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 instruction is available in ARMv6T2 and above.

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

Copyright © 2002-2010 ARM. All rights reserved.ARM DUI 0204J
Non-ConfidentialID101213