32.21.4.3 Explanation of the DECO and DECOP Instructions
The DECO/DECOP instructions decode values. The value in S1 is
decoded and saved in D1. The single bit position in D1
corresponding to the value in S1 is turned ON. When you use an
output array, you can decode a bit position up to the maximum (4096
x 32 -1 =131071).
The DECO/DECOP instructions always pass power. When using
DECO/DECOP instructions, an error will occur if the variables
specified in operands S1 and D1 are not the same type. Designate
the same variable type in all operands S1 and D1.
Refer to the following for specifying a constant.
When operand D1 is an integer variable
When operand D1 is an integer variable and
you want to input hexadecimal values in operand S1.
When 0x (zero and lower case "x") is input, the following values
become hexadecimal values.
When Converting Data in a Specified Array
(Integer Variable Array)
you can either specify the entire array with operands S1 and D1,
or specify the array elements individually.
|