XOR

WXOR, WXORP, DXOR, DXORP

 

WXOR instruction performs a bitwise XOR operation on Source 1 and Source 2 and places the result in the Destination. The bitwise XOR operation returns 1, if the bits from the operands are different. It returns 0, if the bits from the operands are the same (both 0 or both 1).

  • WXOR(WXORP) is for 16bit source and DXOR(DXORP) is for 32bit source.

 

 

S1, S2

Source

D

Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

WXOR

WXORP

DXOR

DXORP

S1

o

o

o

o

o

o

o

o

o

-

o

o

o

4

o

-

-

S2

o

o

o

o

o

o

o

o

o

-

o

o

o

D

o

-

o

o

o

-

o

o

-

-

o

o

-

 

Example)

If F12 is ON, H535D moves to D1.

If X11 is ON, the WXOR performs a bitwise XOR operation by using the 16bits in H646F (X00) and H535D (D1) and places the result H3732 in the M20.