| |||
| Home > Assembler Reference > Expressions, literals, and operators > Numeric literals | |||
Numeric literals can take any of the following forms:
decimal-digits
0xhexadecimal-digits
&hexadecimal-digits
n_base-n-digits
'character'
where
decimal-digitsis a sequence of characters using only the digits 0 to 9.
hexadecimal-digitsis 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-digitsis a sequence of characters using only the digits
0 to ( – 1)n
characteris any single character except a single quote. Use \' if you require a single quote. 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 the range 0 to 232 –
1 (except in DCQ and DCQU directives,
where the range is 0 to 264 – 1).