4.3.1.1 Integers

The size and format of integer numbers specified in assembler source is the same as that specified by a long type in the MPLAB XC32 implementation of the C language. Integer constants can be specified in one of several radices.

A binary integer is specified as either prefix 0b or 0B followed by zero or more binary digits (0 or 1).

An octal integer is specified as the prefix 0 followed by zero or more octal digits (0 - 7).

A decimal integer must start with a non-zero decimal digit (1 - 9) followed by zero or more decimal digits (0 - 9).

A hexadecimal integer is specified as either prefix 0x or 0X followed by one or more hexadecimal digits (0 - 9, a - f, or A - F).

To denote a negative integer, use the prefix operator -.