3 INSTRUCTION SET

SDF

Set decimal flag

 

Source Format:

SDF

 

 

 

 

 

 

 

 

 

 

 

 

Operation:

D

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

0

1

0

0

0

1

0

0

F44H

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

 

Type: VI

Clock Cycles: 7

Flag: C – Not affected

Z– Not affected D – Set

I – Not affected

Description: Sets the D (decimal) flag.

Example:

 

 

SDF

 

D flag

0

 

1

SET F,i

Set flags using immediate data i

 

Source Format:

SET F,i

 

 

 

 

 

 

 

 

Operation:

F

F i3 to i0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

0

1

0

0

i3

i2

i1

i0

F40H to F4FH

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

 

Type:

IV

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

7

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Set if i0 is 1; otherwise, not affected.

 

 

Z – Set if i1 is 1; otherwise, not affected.

 

 

D – Set if i2 is 1; otherwise, not affected.

 

 

I – Set if i3 is 1; otherwise, not affected.

 

Description:

Performs a logical OR operation between immediate data i and the contents of the

 

flags. The results are stored in each respective flag.

Example:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET F,0DH

 

 

Flags (C,Z,D,I)

 

0011

 

1111

 

 

S1C6200/6200A CORE CPU MANUAL

EPSON

79