
Chapter 5. Application instructions
5-81
5.11.5 DECO, DECOP
DECO
(Decode)
FUN(178) DECO
FUN(179) DECOP
Applicable
CPU
All CPUs
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O O O O O O O
O O
O
O O O O*
O O
O O
DECO
DECOP
O
O
7
O
* Available only when do not use computer link module or data link module
1) Functions
-
Decodes the data of lower n bits of the device specified as [ S ], and stores the decoding result to
the block of 2
n
bits that start from the bit 0 of the device specified as [ D ].
-
For ‘n’, 1 ~ 8 can be specified. If the value of n is 0, no processing is performed and the contents of
[ D ] is not changed. If the value of n is over 8, the error flag (F110) is set and no processing is
performed.
-
When the value of n is larger than 4, the source data area is expanded like [ D+1 ], [ D+2 ], …
When n=8, the length of decoding result data is 256 bits. ( [ D+15, D+14, …, D+1, D ] )
-
Execution conditions
Operand setting
DECO
DECOP
S
D
S
D
The start address of source
data area
The start address of
destination area will store
decoding result
D
D
S
S
n
n
Effective bit length
2
n
( 1 ~ 8 )
n
n
Input condition
DECO
DECOP
Executed only once
Executed only once
Executed per scan
Executed per scan