3 INSTRUCTION SET

NOT r

NOT r-register (one's complement)

 

Source Format:

NOT r

 

Operation:

r

 

 

 

r

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

0

1

0

0

r1

r0

1

1

1

1

 

D0FH 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 a one's complement operation on the contents of the r-register.

Example:

 

NOT A

 

 

NOT MY

 

A register

1001

 

0110

 

0110

 

Memory (MY)

1111

 

1111

 

0000

 

Z flag

0

 

0

 

1

OR r,i

Logical OR immediate data i with r-register

Source Format:

OR

r,i

 

 

 

 

 

 

 

 

 

 

 

 

Operation:

r

r

i3 to i0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

0

0

1

1

r1

r0

i3

i2

i1

i0

 

CC0H to CFFH

 

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

Example:

 

OR B,5

 

 

OR MX,0BH

 

B register

0100

 

0101

 

0101

 

Memory (MX)

0011

 

0011

 

0111

 

Z flag

0

 

0

 

0

62

EPSON

S1C6200/6200A CORE CPU MANUAL