Xorw/xorl, Applicable program areas operands, Flags – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 250: 2 instructions, Operand specifications

2 Instructions
2-214
CP1E CPU Unit Instructions Reference Manual(W483)
XORW/XORL
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction
Mnemonic
Variations
Function
code
Function
EXCLUSIVE OR
XORW
@XORW
036
Takes the logical exclusive OR of corresponding
bits in single words of word data and/or constants.
DOUBLE EXCLUSIVE OR
XORL
@XORL
612
Takes the logical exclusive OR of corresponding
bits in double words of word data and/or con-
stants.
Symbol
XORW
XORL
Area
Step program areas
Subroutines
Interrupt tasks
Usage
OK
OK
OK
Operand
Description
Data type
Size
XORW
XORL
XORW
XORL
I
1
Input 1
WORD
DWORD
1
2
I
2
Input 2
WORD
DWORD
1
2
R
Result word
WORD
DWORD
1
2
Area
Word addresses
Indirect DM addresses
Constants
CF
Pulse bits
TR bits
CIO
WR
HR
AR
T
C
DM
@DM
*DM
I
1
, I
2
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
---
---
---
R
---
Name
Label
Operation
Error Flag
P_ER
OFF
Equals Flag
P_EQ
• ON when the result is 0.
• OFF in all other cases.
Negative Flag
P_N
• ON when the leftmost bit of R is 1.
• OFF in all other cases.
I
1
: Input 1
I
2
: Input 2
R: Result word
XORW(036)
I
1
I
2
R
I
1
: Input 1
I
2
: Input 2
R: Result word
XORL(612)
I
1
I
2
R