Numeric Constants

Numeric constants can be used in source statements. If there is no postfix, the assembler assumes the number is decimal.

number

can be one of the following:

  • bin_numB
  • dec_num (or dec_numD)
  • oct_numO (or oct_numQ)
  • hex_numH

Lowercase equivalences are allowed: b, d, o, q, h

bin_num

is a binary number consisting of the digits '0'-'1' and ending with a 'B' or 'b'.

Examples:

11000101B
1011B
1110110b

dec_num

is a decimal number consisting of the digits '0'-'9', optionally followed by 'D' or 'd'.

Examples:

364
7534D
435d

oct_num

is an octal number consisting of the digits '0'-'7' and ending with an 'O', 'o', 'Q' or 'q'.

Examples:

77O
542o
2324q
34241Q

hex_num

is a hexadecimal number consisting of '0'-'9' and 'a'-'f' or 'A'-'F' ending with a 'H', or 'h'.

Examples:

84H
ABDEh
f12aH