Convert Hex to Character (CVTHC)


Op Code (Hex) Operand 1 Operand 2

1086 Receiver Source

Operand 1: Character variable scalar.

Operand 2: Character variable scalar.

Description

Each hex digit (4-bit value) of the string value in the source operand is converted to a character (8-bit value) and placed in the receiver operand.

Hex Digits Characters
Hex 0-9 = Hex F0-F9
Hex A-F = Hex C1-C6
The operation begins with the two operands left-adjusted and proceeds left to right until all the characters of the receiver operand have been filled. If the source operand contains fewer hex digits than needed to fill the receiver, the excess characters are assigned a value of hex F0. If the source operand is too large, a length conformance  (hex 0C08) exception or an invalid operand length  (hex 2A0A) exception is signaled.

Substring operand references that allow for a null substring reference (a length value of zero) may be specified for operands 1 and 2. The effect of specifying a null substring reference for the source is that the bytes of the receiver are each set with a value of hex F0. The effect of specifying a null substring reference for the receiver is that no result is set.

Authorization Required

Lock Enforcement

Exceptions

06 Addressing

08 Argument/Parameter

0C Computation

10 Damage Encountered

1C Machine-Dependent

20 Machine Support

22 Object Access

24 Pointer Specification

2E Resource Control Limit

36 Space Management

44 Protection Violation