3 INSTRUCTION SET

POP XL

Pop stack data into XL

 

Source Format:

POP XL

 

 

 

 

 

 

 

 

Operation:

XL M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

 

1

1

1

1

 

1

0

1

0

1

1

0

FD6H

 

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

Example:

 

 

POP XL

M(SP) =

23

22

21

20

 

 

 

 

 

 

 

 

 

 

 

 

 

20

 

 

SP

C0

 

C1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

21

= XL

 

Memory (C0H)

0001

 

0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

XL register

1101

 

0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

POP XP

Pop stack data into XP

Source Format:

POP XP

 

 

 

 

 

 

 

 

Operation:

XP M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

 

1

0

1

0

1

0

0

FD4H

 

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 XP, the 4-bit page part of IX. SP is incremented by 1.

Example:

 

POP XP

 

M(SP) =

23

22

21

20

 

 

 

 

SP

B4

 

B5

 

 

 

 

 

 

20

 

 

Memory (B4H)

0101

 

0101

 

 

 

 

 

 

 

 

 

 

 

21

= XP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

XP register

0111

 

0101

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S1C6200/6200A CORE CPU MANUAL

EPSON

65