MASM Numeric Constants

MASM numeric constants can be any of following:

      Radix indicators are not case-sensitive.

      See the Radix Indicator Directive section  for more information about how to specify a radix.

MASM Radix Indicators

Radix

Radix Indicator Suffix

Decimal

D (d), or T (t) when the current radix is hex

Hexadecimal

H (h)

Octal

O (o) or Q (q)

Binary

B (b), or Y (y) when the current radix is hex

The following formal grammar summarizes the rules for the MASM numeric constants:

MASM-constant:

   MASM-integer-constant
MASM-radix-constant

floating-point-constant

character-constant

 

MASM-integer-constant:

   [0-9][0-9a-fA-F]*

MASM-radix-constant

   [0-9][0-9a-fA-F]*[tTdDhHOoqQbByY]

 

floating-point-constant: (as in C)