Intel 80286 Computer Accessories User Manual


 
THE
80286
INSTRUCTION SET
XOR-Logical
Exclusive
OR
Opcode
Instruction
Clocks
30
Ir
XOR eb,rb
2,mem=7
31
Ir
XOR eW,rw
2,mem=7
32
Ir
XOR rb,eb
2,mem=7
33
Ir
XOR rw,ew
2,mem=7
34
db
XOR
AL,db
3
35
dw
XOR
AX,dw
3
80
16
db
XOR eb,db
3,mem=7
81
16
dw
XOR eW,dw
3,mem=7
FLAGS MODIFIED
Overflow
=0,
sign, zero, parity, carry=O
FLAGS UNDEFINED
Auxiliary carry
OPERATION
Description
Exclusive-OR byte register into
EA
byte
Exclusive-OR word register into
EA
word
Exclusive-OR
EA
byte into byte register
Exclusive-OR
EA
word into word register
Exclusive-OR immediate byte into AL
Exclusive-OR immediate word into
AX
Exclusive-OR immediate byte into
EA
byte
Exclusive-OR immediate word into EA word
XOR computes the exclusive
OR
of the
two
operands. Each bit of the result
is
1 if the corresponding
bits of the operands are different; each bit
is
0 if the corresponding bits are the same. The answer
replaces the first operand.
PROTECTED MODE EXCEPTIONS
#GP(O)
if the result
is
in a non-writable segment.
#GP(O)
for
an
illegal memory operand effective
address
in
the
es,
DS, or ES segments;
#SS(O)
for
an illegal address in the SS segment.
REAL ADDRESS MODE EXCEPTIONS
Interrupt
13
for
a word operand
at
offset OFFFFH.
8-116