beautypg.com

Push f, Push r, Push flag onto stack – Epson S1C6200 User Manual

Page 74: Push r-register onto stack

background image

Source Format:

Operation:

OP-Code:

Type:

Clock Cycles:

Flag:

Description:

Example:

Source Format:

Operation:

OP-Code:

Type:

Clock Cycles:

Flag:

Description:

Example:

MSB

LSB

MSB

LSB

C

Z

D

I

C

Z

D

I

68

EPSON

S1C6200/6200A CORE CPU MANUAL

3 INSTRUCTION SET

PUSH F

Push flag onto stack

PUSH F

SP'

SP - 1, M(SP')

F

1

1

1

1

1

1

0

0

1

0 1

0

FCAH

VI

5

Not affected
Not affected
Not affected
Not affected

Decrements the stack pointer by 1 and loads the flags (F) into the data memory
location addressed by SP.

PUSH F

SP

D0

CF

Memory (CFH)

0100

0001

Flags (I,D,Z,C)

0001

0001

PUSH r

Push r-register onto stack

PUSH r

SP'

SP - 1, M(SP')

r

1

1

1

1

1

1

0

0

0

0 r

1

r

0

FC0H to FC3H

V

5

Not affected
Not affected
Not affected
Not affected

Decrements the stack pointer by 1 and loads the contents of the r-register into the
data memory location addressed by SP.

PUSH A

SP

D0

CF

Memory (CFH)

1000

0010

A register

0010

0010

2

3

2

2

2

1

2

0

M(SP) =

flag
flag
flag
flag

C

Z

D

I

2

3

2

2

2

1

2

0

M(SP) =

= r-register

2

0

2

1

2

2

2

3

This manual is related to the following products: