Integer constants represent integer values and can be represented in binary, octal, decimal, or hexadecimal. You can specify the radix for the integer constant by adding a radix specified as a suffix to the number. If no radix specifier is given the constant is decimal.

Syntax

decimal-digit digit... [B | O | Q | D | H]

The radix suffix B denotes binary, O and Q denote octal, D denotes decimal, and H denotes hexadecimal.

Radix suffixes can be given either in lower-case or purchase letters. Hexadecimal constants must always start with a decimal digit (0 to 9). You must do this otherwise the assembler will mistake the constant for a symbol-for example, 0FCH is interpreted as a hexadecimal constant but FCH is interpreted as a symbol.

Examples
224
224D
17Q
100H

You can specify hexadecimal constants in two other formats which are popular with many assemblers:

Syntax

0x digit digit...
$ digit digit...

The 0x notation is exactly the same as the way hexadecimal constants are written in C, and the $ notation is common in many assemblers for Motorola parts.

Examples
0xC0
$F