DESCRIPTION OF INSTRUCTIONS

86. POP data address (Pop stack to memory)

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

 

1

 

1

0

 

 

1

0

0

0

0

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Data address

 

a7

a6

a5

a4

a3

a2

a1

a0

Byte 2

Operations

: (data address)((SP))

 

 

 

 

 

 

 

(SP)(SP)–1

 

 

 

 

 

 

 

 

Number of bytes

: 2

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

RS0

OV

F1

P

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: Stack contents addressed by the stack pointer are popped in

 

 

the specified data address, and the stack pointer is

 

 

decremented by 1.

 

 

 

 

 

 

Example POP PSW:No change to parity bit.

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

Instruction code

:

1

1

0

1

0

0

0

0

Byte 1

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

1

1

0

1

0

0

0

0

Byte 2

 

 

 

Before execution Accumulator

1

0

1

0

 

1

1

0

0

7

 

 

 

 

 

 

 

0

PSW (0D0H)

 

 

 

1

0

1

0

 

1

1

0

0

7

 

 

 

 

 

 

 

0

Stack pointer

 

 

 

0

0

0

1

 

0

0

0

0

7

 

 

 

 

 

 

 

0

10H

1 1 1 1 0 0 1 1

70

After execution Accumulator

1

0

1

0

 

1

1

0

0

7

 

 

 

 

 

 

 

0

PSW (0D0H)

 

 

 

1

1

1

1

 

0

0

1

0

7

 

 

 

 

 

 

 

0

Stack pointer

 

 

 

0

0

0

0

 

1

1

1

1

7

 

 

 

 

 

 

 

0

10H

1 1 1 1 0 0 1 1

70

345

Page 352
Image 352
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual POP data address Pop stack to memory, 345