THE 80286 INSTRUCTION SET

XOR-Logical Exclusive OR

Opcode

 

Instruction

Clocks

Description

30

Ir

 

XOR

eb,rb

2,mem=7

Exclusive-OR byte register into EA byte

31

Ir

 

XOR

eW,rw

2,mem=7

Exclusive-OR word register into EA word

32

Ir

 

XOR

rb,eb

2,mem=7

Exclusive-OR EA byte into byte register

33

Ir

 

XOR

rw,ew

2,mem=7

Exclusive-OR EA word into word register

34

db

 

XOR

AL,db

3

Exclusive-OR immediate byte into AL

35

dw

 

XOR

AX,dw

3

Exclusive-OR immediate word into AX

80

16

db

XOR

eb,db

3,mem=7

Exclusive-OR immediate byte into EA byte

81

16

dw

XOR

eW,dw

3,mem=7

Exclusive-OR immediate word into EA word

FLAGS MODIFIED

Overflow =0, sign, zero, parity, carry=O

FLAGS UNDEFINED

Auxiliary carry

OPERATION

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

Page 326
Image 326
Intel 80287, 80286 manual XOR-Logical Exclusive or, Xor