CP6100 I/O Process Programming Manual

CPTEST
= Command
Considerations
1. If you enter more than one ASCII character, the command
evaluates only the first character and displays an error
message stating that the subsequent characters were not
evaluated.
2. Because hexadecimal is the default base for input values,
you need not precede hexadecimal values with "%H".
3. The command treats uppercase and lowercase letters the same
when you use them as base designators. Thus, "%b" is the
same as "%B".
4. Except in the case of base designators, you can enter ASCII
characters in either uppercase or lowercase. CPTEST
recognizes the case of ASCII characters.
5. While CPTEST accepts binary numbers as input, it does not
display the binary equivalent when you enter another base as
input.
Examples
1. In this example, you enter the ASCII character "A", and
CPTEST displays the hexadecimal, the decimal, and the octal
equivalents:
~= 'A
= 0041 #00065 %000101
2. In this example, you enter the expression octal 34 plus
hexadecimal AF, and CPTEST evaluates the expression and
displays the result in hexadecimal, decimal, and octal:
~= %34 + %HAF
= 00CB #00203 %000313
3. In this example, you enter decimal 128, and CPTEST displays
the hexadecimal, the decimal, and the octal equivalents:
~= #128
= 0080 #00128 %000200
B-11