You copied the Doc URL to your clipboard.

Numeric constants

Numeric constants are 32-bit integers in A32 and T32 code. You can set them using unsigned numbers in the range 0 to 232-1, or signed numbers in the range -231 to 231 -1. However, armasm makes no distinction between -n and 232-n.

In A64 code, numeric constants are 64-bit integers. You can set them using unsigned numbers in the range 0 to 264-1, or signed numbers in the range -263 to 263-1. However, armasm makes no distinction between -n and 264-n.

armasm produces a Numeric Overflow message if you use a constant too large for the instruction set.

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.

See also

Concept
Reference

armasm Reference Guide:

Was this page helpful? Yes No