You copied the Doc URL to your clipboard.

CPY pseudo-instruction

Copy a value from one register to another.

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.

Was this page helpful? Yes No