Crossware

Table of Contents        Previous topic       Next topic       

CROSS ASSEMBLER->Assembler Expressions->Integer Numbers

Integer numbers may be expressed in decimal, hexadecimal, octal or binary.  The default representation is decimal and various prefix and suffixes are used to allow alternative formats.  These are as follows:

         
TypeFormatExamples
    
Decimal<number>, &<number>297, &297
Hexadecimal$<number>, <number>H$FF, 0FFH
Octal@<number>, <number>O, <number>Q@457, 457O, 457Q
Binary%<number>, <number>B%11011011, 11011011B
Note that if the H suffix is used, the first digit must be 0 - 9 to avoid the number being mistaken for a symbol.