11.31 CPY pseudo-instruction

Copy a value from one register to another.

Syntax

CPY{cond} Rd, Rm

where:

cond

is an optional condition code.

Rd

is the destination register.

Rm

is the register holding the value to be copied.

Operation

The CPY pseudo-instruction copies a value from one register to another, without changing the condition flags.

CPY Rd, Rm assembles to MOV Rd, Rm.

Architectures

This pseudo-instruction is available in ARMv6 and above in ARM code and in T variants of ARMv6 and above in Thumb code.

Register restrictions

Using SP or PC for both Rd and Rm is deprecated.

Condition flags

This instruction does not change the condition flags.

Non-ConfidentialPDF file icon PDF versionARM DUI0473M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.