3 INSTRUCTION SET

POP YP

Pop stack data into YP

 

Source Format:

POP YP

 

 

 

 

 

 

 

 

Operation:

YP M(SP), SP

SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

 

1

1

1

1

 

1

0

1

0

1

1

1

FD7H

 

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

Example:

 

POP YP

 

M(SP) =

23

22

21

20

 

 

 

 

SP

C0

 

C1

 

 

 

 

 

 

20

 

 

Memory (C0H)

0000

 

0000

 

 

 

 

 

 

 

 

 

 

 

21

= YP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

YP register

0001

 

0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSET p

Page set

 

 

 

 

 

 

 

 

Source Format:

PSET p

 

 

 

 

 

 

 

 

Operation:

NBP

p4, NPP

p3 to p0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

 

1

1

0

0

1

0

p4

p3

p2

p1

p0

E40H to E5FH

 

MSB

 

 

 

 

 

 

 

 

 

LSB

Type:

III

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

 

C – Not affected

 

 

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

 

I

– Not affected

 

 

 

 

 

 

 

 

Description: Loads the most-significant bit of the 5-bit immediate data p to the new bank pointer (NBP) and the four low-order bits to the new page pointer (NPP).

Example:

 

PSET 1FH

 

 

JP 00H

 

PCB

0

 

0

 

1

 

NBP

0

 

1

 

1

 

PCP

1000

 

1000

 

1111

 

NPP

0001

 

1111

 

1111

 

PCS

0010 0011

 

0010 0100

 

0000 0000

S1C6200/6200A CORE CPU MANUAL

EPSON

67