CP6100 I/O Process Programming Manual
 CPTEST
 = Command
 = Command
 Use the expression evaluation (=) command to convert expressions
 in one numeric base to another numeric base (for example, to
 obtain the octal equivalent of a hexadecimal expression) or to
 obtain the numeric equivalent of a single ASCII character. This
 command accepts a binary, an octal, a decimal, or a hexadecimal
 number as input, and displays the equivalent value in the other
 bases (except binary). If you enter a single ASCII character,
 the command displays the equivalent in the numeric bases.
 If you do not specify a numeric base, the default is hexadecimal.
 The syntax of the = command is:
 -----------------------------------------------------------------
 | |
 | = '<char> | [-] [<base>] <number> [operator <number>]... |
 | |
 | |
 | <char> |
 | |
 | is a single ASCII character. |
 | |
 | |
 | <base> |
 | |
 | specifies the numeric base as shown below: |
 | |
 | %B specifies a binary number. |
 | % specifies an octal number. |
 | # specifies a decimal number. |
 | %H specifies a hexadecimal number. |
 | |
 | |
 | <number> |
 | |
 | is a integer appropriate to the numeric base you specify. |
 | |
 | |
 | <operator> |
 | |
 | specifies an arithmetic operation as shown below. |
 | |
 | + specifies addition. |
 | - specifies subtraction. |
 | * specifies multiplication. |
 | / specifies division. |
 | |
 -----------------------------------------------------------------
 B-10










