Skip to main content

IAR Embedded Workbench for Arm 9.70.x

MOV (CODE16)

In this section:
Syntax
MOV Rd, Rs
Parameters

Rd

The destination register.

Rs

The source register.

Description

The Thumb MOV pseudo-instruction moves the value of a low register to another low register (R0-R7). The Thumb MOV instruction cannot move values from one low register to another.

Note

The ADD immediate instruction generated by the assembler has the side-effect of updating the condition codes.

The MOV pseudo-instruction uses an ADD immediate instruction with a zero immediate value.

Note

This description is only valid when using the CODE16 directive. After the THUMB directive, the interpretation of the instruction syntax is defined by the Unified Assembler syntax from Advanced RISC Machines Ltd.

Example
MOV r2,r3  ; generates the opcode for ADD r2,r3,#0