Numeric literals can take any of the following forms:
decimal-digits
0x
hexadecimal-digits
&
hexadecimal-digits
n_base-n-digits
'
character
'
where:
decimal-digits
Is a sequence of characters using only the digits 0 to 9.
hexadecimal-digits
Is a sequence of characters using only the digits 0 to 9 and the letters A to F or a to f.
n_
Is a single digit between 2 and 9 inclusive, followed by an underscore character.
base-n-digits
Is a sequence of characters using only the digits 0 to (
-1)n
character
Is any single character except a single quote. Use the standard C escape character (\') if you require a single quote. The character must be enclosed within opening and closing single quotes. In this case the value of the numeric literal is the numeric code of the character.
You must not use any other characters. The sequence of characters must evaluate to an integer.
In A32/T32 code, the integer range is 0 to 232-1,
except for the DCQ
, DCQU
, DCO
,
and DCOU
directives.
In A64 code, the integer range is 0 to 264-1,
except for the DCO
and DCOU
directives.
Note
In the
DCQ
andDCQU
directives, the integer range is 0 to 264 -1.In the
DCO
andDCOU
directives, the integer range is 0 to 2128 -1.
- Concepts