3 INSTRUCTION SET

SZF

Set zero flag

 

Source Format:

SZF

 

 

 

 

 

 

 

 

 

 

 

 

Operation:

Z

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

0

1

0

0

0

0

1

0

F42H

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

 

Type: VI

Clock Cycles: 7

Flag: C – Not affected

Z– Set

D– Not affected I – Not affected

Description: Sets the Z (zero) flag.

Example:

 

 

SZF

 

Z flag

0

 

1

XOR r,i

Exclusive-OR immediate data i with r-register

Source Format:

XOR r,i

 

Operation:

r

r

i3 to i0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

0

1

0

0

r1

r0

i3

i2

i1

i0

D00H to D3FH

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

 

Type: II

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 immediate data i and the contents of the r-register. The result is stored in the r-register.

Example:

 

XOR A,12

 

 

XOR MX,1

 

A register

0110

 

1010

 

1010

 

Memory (MX)

0001

 

0001

 

0000

 

Z flag

0

 

0

 

1

S1C6200/6200A CORE CPU MANUAL

EPSON

81