Non-Confidential | PDF version | DUI0801J | ||

| ||||

Home > Symbols, Literals, Expressions, and Operators > Numeric constants |

You can define 32-bit numeric constants using the `EQU`

assembler directive.

Numeric constants are 32-bit integers in A32 and T32 code. You can set
them using unsigned numbers in the range 0 to 2^{32}-1, or signed
numbers in the range -2^{31} to 2^{31 }-1.
However, the assembler makes no distinction between -`n`

and 2^{32}-`n`

.

In A64 code, numeric constants are 64-bit integers. You can set them
using unsigned numbers in the range 0 to 2^{64}-1, or signed
numbers in the range -2^{63} to 2^{63}-1.
However, the assembler makes no distinction between -`n`

and 2^{64}-`n`

.

Relational operators such as >= use the unsigned interpretation. This
means that 0 > -1 is `{FALSE}`

.

Use the `EQU`

directive to define constants.
You cannot change the value of a numeric constant after you define
it. You can construct expressions by combining numeric constants
and binary operators.