3 INSTRUCTION SET

POP YH

Pop stack data into YH

 

Source Format:

POP YH

 

 

 

 

 

 

 

 

 

Operation:

YH M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

 

0

1

1

0

0

0

 

FD8H

 

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 YH, the four high-order bits of Y. SP is incremented by 1.

Example:

 

POP YH

 

M(SP) =

23

22

21

20

 

 

 

 

SP

C1

 

C2

 

 

 

 

 

 

20

 

 

Memory (C1H)

1101

 

1101

 

 

 

 

 

 

 

 

 

 

 

21

= YH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

YH register

0010

 

1101

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

POP YL

Pop stack data into YL

 

Source Format:

POP YL

 

 

 

 

 

 

 

 

 

Operation:

YL M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

1

 

1

0

1

1

0

0

1

 

FD9H

 

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 YL, the four low-order bits of Y. SP is incremented by 1.

Example:

 

POP YL

 

M(SP) =

23

22

21

20

 

 

 

 

SP

CA

 

CB

 

 

 

 

 

 

20

 

 

Memory (CAH)

0100

 

0100

 

 

 

 

 

 

 

 

 

 

 

21

= YL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

YL register

0101

 

0100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

66

EPSON

S1C6200/6200A CORE CPU MANUAL