3 INSTRUCTION SET

POP r

Pop stack data into r-register

 

Source Format:

POP r

 

 

 

 

 

 

 

 

 

Operation:

r M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

1

1

0

1

0

0

r1

r0

 

FD0H to FD3H

 

MSB

 

 

 

 

 

 

LSB

 

Type:

V

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

 

I

– Not affected

 

 

 

 

 

 

 

 

 

Description: Loads the contents of the data memory location addressed by the stack pointer into the r-register. SP is incremented by 1.

Example:

 

POP B

 

M(SP) =

23

22

21

20

 

 

 

 

SP

C0

 

C1

 

 

 

 

 

 

20

 

 

Memory (C0H)

1001

 

1001

 

 

 

 

 

 

 

 

 

 

 

21

= r-register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

B register

0101

 

1001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

POP XH

Pop stack data into XH

 

Source Format:

POP XH

 

 

 

 

 

 

 

 

 

Operation:

XH M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

 

0

1

0

1

0

1

 

FD5H

 

MSB

 

 

 

 

 

 

LSB

 

Type:

VI

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

 

I – Not affected

 

 

 

 

 

 

 

 

 

Description: Loads the contents of the data memory location addressed by the stack pointer into XH, the four high-order bits of X. SP is incremented by 1.

Example:

 

 

POP XH

M(SP) =

23

22

21

20

 

 

 

 

 

 

 

 

 

 

 

 

 

20

 

 

SP

CE

 

CF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

21

= XH

 

Memory (CEH)

0110

 

0110

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

XH register

0010

 

0110

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

64

EPSON

S1C6200/6200A CORE CPU MANUAL