3 INSTRUCTION SET

OR r,q

Logical OR q-register with r-register

Source Format:

OR r,q

 

 

 

 

 

 

 

 

 

 

 

Operation:

r

 

r

q

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

 

0

 

1

0

1

1

0

1

r1

r0

q1

q0

AD0H to ADFH

 

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 a logical 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:

 

OR MY,0

 

 

OR A,0CH

 

A register

0011

 

0011

 

1111

 

Memory (MY)

0000

 

0000

 

0000

 

Z flag

0

 

1

 

0

POP F

Pop stack data into flags

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Source Format:

POP F

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Operation:

F M(SP), SP SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

0

1

1

 

0

1

0

FDAH

 

MSB

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

Type:

VI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Set or Reset by M(SP) data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Z – Set or Reset by M(SP) data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D – Set or Reset by M(SP) data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I – Set or Reset by M(SP) data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description:

Replaces the flags (F) with the contents of the data memory location addressed by

 

the stack pointer. SP is incremented by 1.

 

 

 

 

 

 

 

 

 

 

 

Example:

 

 

 

 

 

 

 

 

 

 

 

M(SP) =

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

POP F

 

 

 

23

22

21

20

C flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SP

 

C0

 

 

C1

 

 

 

 

 

 

 

 

 

 

 

Memory (C0H)

 

1001

 

 

 

1001

 

 

 

 

 

 

 

 

 

 

 

Z flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags (I,D,Z,C)

 

0001

 

 

 

1001

 

 

 

 

 

 

 

 

 

 

 

D flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S1C6200/6200A CORE CPU MANUAL

EPSON

63