Skip to the content.
Documentation top

Flexible Op2

Data processing instruction op2 has a number of formats.

Op2 format Examples Number used in DP
instruction
Register MOV R0, R1 The value of a register
Literal ADD R0, R1, #22 An immediate numeric literal
Shift MVNS R0, R1, LSL #3 The value of a register
shifted by a constant
Register-valued Shift MOV R0, R1, ASR R2 The value of a register shifted
by the number in another register
RRX MOV R0, R1, RRX RRX does not use a literal
and always makes a value
rotated right by 1

Notes

Numeric Literals

Carry written by flexible op2

When carry is not written by arithmetic, and S suffix is present, C (but not V) may be written by op2 in the follwing cases: