DBG$HELP.HLB  —  DEBUG  SET  RADIX
    Establishes the radix for the entry and display of integer data.
    When used with /OVERRIDE, it causes all data to be displayed as
    integer data of the specified radix.

    Format

      SET RADIX  radix

1  –  Parameters

 radix

    Specifies the radix to be established. Valid keywords are as
    follows:

    BINARY      Sets the radix to binary.
    DECIMAL     Sets the radix to decimal. This is the default for
                all languages except BLISS, MACRO-32, and MACRO-64
                (Alpha and Integrity servers only).
    DEFAULT     Sets the radix to the language default.
    OCTAL       Sets the radix to octal.
    HEXADECIMAL Sets the default radix to hexadecimal. This is the
                default for BLISS, MACRO-32, and MACRO-64 (Alpha and
                Integrity servers only).

2  –  Qualifiers

2.1    /INPUT

    Sets only the input radix (the radix for entering integer data)
    to the specified radix.

2.2    /OUTPUT

    Sets only the output radix (the radix for displaying integer
    data) to the specified radix.

2.3    /OVERRIDE

    Causes all data to be displayed as integer data of the specified
    radix.

3  –  Description

    The current radix setting influences how the debugger interprets
    and displays integer data in the following contexts:

    o  Integer data that you specify in address expressions or
       language expressions.

    o  Integer data that is displayed by the EXAMINE and EVALUATE
       commands.

    The default radix for both data entry and display is decimal for
    most languages. The exceptions are BLISS and MACRO, which have a
    default radix of hexadecimal.

    The SET RADIX command enables you to specify a new radix
    for data entry or display (the input radix and output radix,
    respectively).

    If you do not specify a qualifier, the SET RADIX command
    changes both the input and output radix. If you specify /INPUT
    or /OUTPUT, the command changes the input or output radix,
    respectively.

    Using SET RADIX/OVERRIDE changes only the output radix but causes
    all data (not just data that has an integer type) to be displayed
    as integer data of the specified radix.

    Except when used with /OVERRIDE, the SET RADIX command does not
    affect the interpretation or display of noninteger values (such
    as real or enumeration type values).

    The EVALUATE, EXAMINE, and DEPOSIT commands have radix
    qualifiers (/BINARY, /HEXADECIMAL, and so on) which enable you to
    override, for the duration of that command, any radix previously
    established with SET RADIX or SET RADIX/OVERRIDE.

    You can also use the built-in symbols %BIN, %DEC, %HEX, and %OCT
    in address expressions and language expressions to specify that
    an integer literal should be interpreted in binary, decimal,
    hexadecimal, or octal radix.

    Related commands:

       DEPOSIT
       EVALUATE
       EXAMINE
       (SET,SHOW,CANCEL) MODE
       (SHOW,CANCEL) RADIX

4  –  Examples

    1.DBG> SET RADIX HEX

      This command sets the radix to hexadecimal. This means that,
      by default, integer data is interpreted and displayed in
      hexadecimal radix.

    2.DBG> SET RADIX/INPUT OCT

      This command sets the radix for input to octal. This means
      that, by default, integer data that is entered is interpreted
      in octal radix.

    3.DBG> SET RADIX/OUTPUT BIN

      This command sets the radix for output to binary. This means
      that, by default, integer data is displayed in binary radix.

    4.DBG> SET RADIX/OVERRIDE DECIMAL

      This command sets the override radix to decimal. This means
      that, by default, all data (not just data that has an integer
      type) is displayed as decimal integer data.
Close Help