|Non-Confidential||PDF version||ARM 100069_0608_00_en|
|Home > A32 and T32 Instructions > Syntax of Operand2 as a constant|
An Operand2 constant in an instruction has a limited range of values.
is an expression evaluating to a numeric
In A32 instructions,
have any value that can be produced by rotating an 8-bit value right
by any even number of bits within a 32-bit word.
In T32 instructions,
Yare hexadecimal digits.
In addition, in a small number of instructions,
take a wider range of values. These are listed in the individual
When an Operand2 constant is used with the instructions
the carry flag is updated to bit of the constant, if the constant
is greater than 255 and can be produced by shifting an 8-bit value.
These instructions do not affect the carry flag if Operand2 is any
If the value of an Operand2 constant is not available, but its logical inverse or negation is available, then the assembler produces an equivalent instruction and inverts or negates the constant.
For example, an assembler might assemble the instruction
Rd, #0xFFFFFFFE as the equivalent instruction
Be aware of this when comparing disassembly listings with source code.
You can use the
--diag_warning 1645 assembler command line option to check
when an instruction substitution occurs.