Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Radix Specifiers
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Radix Specifiers
 
     Name          Base   Specifier  Digits
 
     Binary         2      Y or B     0 1
     Octal          8      Q or O     0 1 2 3 4 5 6 7
     Decimal       10      T or D     0 1 2 3 4 5 6 7 8 9
     Hexadecimal   16      H          0 1 2 3 4 5 6 7 8 9 A B C D E F
     Floating-     10      R          0 1 2 3 4 5 6 7 8 9 . E + -
      point
 
     To indicate the radix of a constant, place the specifier at the
     end of the number. Specifiers and hexadecimal digits can be
     uppercase or lowercase.
 
     Hexadecimal numbers must always start with a decimal digit (0─9).
     If the first digit is one of the letters A to F, prefix the number
     with a leading 0 to distinguish it from a symbolic name.
 
     If the current default radix, specified by the .RADIX directive,
     is 10 or less, B and D are treated as radix overrides. B and D are
     treated as hexadecimal digits if the default radix is above 11 or
     above 13, respectively.
 
     Floating-point constants may be used as initializers only with the
     REAL4, REAL8, REAL10, DWORD, QWORD, and TBYTE directives. Floating-
     point constants can be represented with an optional exponent or a
     decimal point.
     See: Data Allocation Directives
 
     Example:
 
       INVOKE  MyRoutine, 01001010Y, 43H, 75, 0AFH
       mole    REAL4    6.023E+23
       pi      REAL8    3.1415927
       Xenon   REAL10   54R
 
     See also: .RADIX, DWORD, QWORD, TBYTE, @B Label
                                    -♦-