EasyManua.ls Logo

ARM Cortex-M4 - Movt

ARM Cortex-M4
276 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The Cortex-M4 Instruction Set
ARM DUI 0553A Copyright © 2010 ARM. All rights reserved. 3-52
ID121610 Non-Confidential
3.5.7 MOVT
Move Top.
Syntax
MOVT{cond} Rd, #imm16
where:
cond
Is an optional condition code, see Conditional execution on page 3-18.
Rd
Specifies the destination register.
imm16
Is a 16-bit immediate constant.
Operation
MOVT
writes a 16-bit immediate value,
imm16
, to the top halfword,
Rd
[31:16], of its destination
register. The write does not affect
Rd
[15:0].
The
MOV
,
MOVT
instruction pair enables you to generate any 32-bit constant.
Restrictions
Rd
must not be SP and must not be PC.
Condition flags
This instruction does not change the flags.
Examples
MOVT R3, #0xF123 ; Write 0xF123 to upper halfword of R3, lower halfword
; and APSR are unchanged.

Table of Contents

Related product manuals