3. Instructions
XORW/XORL
Instruction
EXCLUSIVE OR
DOUBLE EXCLUSIVE OR
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
I
Input 1
1
I
Input 2
2
R
Result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
I
, I
1
2
XORW
OK
OK
OK
R
I
, I
1
2
XORL
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Negative Flag
434
Mnemonic
Variations
XORW
@XORW
XORL
@XORL
XORW
XORW(036)
I
: Input 1
I
1
1
I
: Input 2
I
2
2
R: Result word
R
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
ER
OFF
=
• ON when the result is 0.
• OFF in all other cases.
N
• ON when the leftmost bit of R is 1.
• OFF in all other cases.
Function
code
Takes the logical exclusive OR of corresponding
036
bits in single words of word data and/or constants.
Takes the logical exclusive OR of corresponding
612
bits in double words of word data and/or con-
stants.
Subroutines
OK
Data type
XORW
WORD
DWORD
WORD
DWORD
WORD
DWORD
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
XORL
XORL(612)
I
: Input 1
I
1
1
I
: Input 2
I
2
2
R: Result word
R
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
XORL
XORW
XORL
1
1
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
---
OK
---
---
---
2
2
2
TR
bits
---
---
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers