(137)
XNRL 0010 0020 D00200
0000
00
(138)
COM D02000
0000
00
347
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
EQ (A50006): The result is 0.
N (A50008): Shows the status of bit 15 of R+1 after execution.
Example When CIO 000000 is ON in the following example, the logical exclusive NOR is
taken of corresponding bits in CIO 0010 to CIO 0011 and CIO 0020 to CIO 0020
and the results is placed in corresponding bits of D00200 and D00201.
Address Instruction Operands
00000 LD 000000
00001 XNRL(137)
0010
0020
D0020
10 01 10 01
15 00
01 01 01 01
00 11 00 11
15 00
15 00
CIO 0011
CIO 0021
D00201
01 11 10 01
15 00
01 01 11 11
11 01 10 01
15 00
15 00
CIO 0010
CIO 0020
D00200
5-25-9 COMPLEMENT: COM(138)
(138)
COM Wd
Wd: Word CIO, G, A, DM, DR, IR
Operand Data AreaLadder Symbol
Variations
j COM(138)
When the execution condition is OFF, COM(138) is not executed. When the ex-
ecution condition is ON, COM(138) turns OFF all ON bits and turns ON all OFF
bits in Wd.
Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
EQ (A50006): The result is 0.
N (A50008): Shows the status of bit 15 of R after execution.
Example When CIO 000000 is ON in the following example, the complement of the status
of each bit in D02000 is taken and written back to D02000, i.e., the status of each
bit is reversed.
Address Instruction Operands
00000 LD 000000
00001 COM(138)
D02000
Description
Precautions
Logic Instructions Section 5-25