3.5.3. Numeric constants

Numeric constants are 32-bit integers. You can set them using unsigned numbers in the range 0 to 232–1, or signed numbers in the range –231 to 23 –1. However, the assembler makes no distinction between –n and 232n. Relational operators such as >= use the unsigned interpretation. This means that 0 > –1 is {FALSE}.

Use the EQU directive to define constants (see EQU). You cannot change the value of a numeric constant after you define it.

See also Numeric expressions and Numeric literals.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0204F