3 INSTRUCTION SET

PUSH F

Push flag onto stack

 

Source Format:

PUSH F

 

 

 

 

 

 

 

Operation:

SP'

SP - 1, M(SP')

F

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

0

0

1

0

1

0

 

FCAH

 

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 flags (F) into the data memory location addressed by SP.

Example:

 

PUSH F

 

M(SP) =

23

22

21

20

 

C flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SP

D0

 

CF

 

 

 

 

 

 

 

 

 

 

 

Memory (CFH)

0100

 

0001

 

 

 

 

 

 

 

 

 

 

Z flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D flag

 

Flags (I,D,Z,C)

0001

 

0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PUSH r

Push r-register onto stack

Source Format:

PUSH r

 

 

 

 

 

 

Operation:

SP'

SP - 1, M(SP')

r

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

1

1

0

0

0

0

r1

r0

FC0H to FC3H

 

MSB

 

 

 

 

 

 

 

 

 

LSB

Type:

V

 

 

 

 

 

 

 

 

 

 

 

 

 

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 the r-register into the data memory location addressed by SP.

Example:

 

PUSH A

 

M(SP) =

23

22

21

20

 

 

 

 

SP

D0

 

CF

 

 

 

 

 

 

20

 

 

Memory (CFH)

1000

 

0010

 

 

 

 

 

 

 

 

 

 

 

21

= r-register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

A register

0010

 

0010

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

68

EPSON

S1C6200/6200A CORE CPU MANUAL