3 INSTRUCTION SET

PUSH XH

Push XH onto stack

 

Source Format:

PUSH XH

 

 

 

 

 

 

Operation:

SP'

SP - 1, M(SP')

XH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

1

1

1

1

1

0

0

0

1

0

1

FC5H

 

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 XH, the four high- order bits of XHL, into the data memory location addressed by SP.

Example:

 

PUSH XH

M(SP) =

23

22

21

20

 

 

 

 

SP

CC

CB

 

 

 

 

 

 

20

 

 

Memory (CBH)

0000

1000

 

 

 

 

 

 

 

 

 

 

 

21

= XH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

XH register

1000

1000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

PUSH XL

Push XL onto stack

 

 

 

 

 

 

Source Format:

PUSH XL

 

 

 

 

 

 

Operation:

SP'

SP - 1, M(SP')

XL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

0

0

0

1

1

0

FC6H

 

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 XL, the four low-order bits of XHL, into the data memory location addressed by SP.

Example:

 

PUSH XL

M(SP) =

23

22

21

20

 

 

 

 

SP

D0

CF

 

 

 

 

 

 

20

 

 

Memory (CFH)

1111

0110

 

 

 

 

 

 

 

 

 

 

 

21

= XL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

XL register

0110

0110

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

S1C6200/6200A CORE CPU MANUAL

EPSON

69