3 INSTRUCTION SET

PUSH XP

Push XP onto stack

 

 

 

 

 

 

 

Source Format:

PUSH XP

 

 

 

 

 

 

 

Operation:

SP'

SP - 1, M(SP')

XP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

0

0

0

1

0

0

 

FC4H

 

MSB

 

 

 

 

 

 

 

 

 

LSB

 

Type:

VI

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

I – Not affected

 

 

 

 

 

 

 

Description: Decrements the stack pointer by 1 and loads the contents of XP, the page part of IX, into the data memory location addressed by SP.

Example:

 

PUSH XP

M(SP) =

23

22

21

20

 

 

 

 

SP

D0

CF

 

 

 

 

 

 

20

 

 

 

 

 

 

 

 

 

 

 

 

 

21

= XP

 

Memory (CFH)

0011

0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

XP register

0000

0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

PUSH YH

Push YH onto stack

 

 

 

 

 

 

 

Source Format:

PUSH YH

 

 

 

 

 

 

 

Operation:

SP'

SP - 1, M(SP')

YH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

0

0

1

0

0

0

 

FC8H

 

MSB

 

 

 

 

 

 

 

 

 

LSB

 

Type:

VI

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

I – Not affected

 

 

 

 

 

 

 

Description: Decrements the stack pointer by 1 and loads the contents of YH, the four high- order bits of YHL, into the data memory location addressed by SP.

Example:

 

PUSH YH

M(SP) =

23

22

21

20

 

 

 

 

SP

BF

BE

 

 

 

 

 

 

20

 

 

Memory (BEH)

0100

0001

 

 

 

 

 

 

 

 

 

 

 

21

= YH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

YH register

0001

0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

70

EPSON

S1C6200/6200A CORE CPU MANUAL