XOR

Logical exclusive or

XOR

eXclusive OR logical


[Syntax]

XOR src, dest

 

[Operation]

dest = dest ^ src;

 

[Function]

-

This instruction exclusive-ORs dest and src and places the result in dest.

 

[Instruction Format]

Syntax

Processng Size

src

dest

Code size

(Byte)

XOR src, dest

L

#SIMM:8

Rd

4

L

#SIMM:16

Rd

5

L

#SIMM:24

Rd

6

L

#IMM:32

Rd

7

L

Rs

Rd

4

 

[Rs].memex

Rd

3 (memex == UB)

4 (memex != UB)

 

dsp:8[Rs].memex

Rd

4 (memex == UB)

5 (memex != UB)

 

dsp:16[Rs].memex

Rd

5 (memex == UB)

6 (memex != UB)

[Flag Change]

Flag

C

Z

S

O

Change

 

 

Conditions

Z : The flag is set if dest is 0 after the operation; otherwise it is cleared.

S : The flag is set if the MSB of dest after the operation is 1 ; otherwise it is cleared.

 

[Description Example]

XOR #8, R1

XOR R1, R2

XOR [R1], R2

XOR 16[R1].L, R2