3 INSTRUCTION SET

XOR r,q

Exclusive-OR q-register with r-register

Source Format:

XOR r,q

Operation:

r

r

q

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

0

1

0

1

1

1

0

r1

r0

q1

q0

AE0H to AEFH

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

Type:

IV

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

7

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

Z– Set if the result is zero; otherwise, reset. D – Not affected

I – Not affected

Description: Performs an exclusive-OR operation between the contents of the q-register and the contents of the r-register. The result is stored in the r-register.

Example:

 

XOR A,MY

 

 

XOR MX,B

 

A register

0100

 

1100

 

1100

 

B register

1111

 

1111

 

1111

 

Memory (MX)

0111

 

0111

 

1000

 

Memory (MY)

1000

 

1000

 

1000

 

Z flag

0

 

0

 

0

82

EPSON

S1C6200/6200A CORE CPU MANUAL