Siemens C500 User Manual page 89

Microcontroller family
Table of Contents

Advertisement

POP
direct
Function:
Pop from stack
Description:
The contents of the internal RAM location addressed by the stack pointer is read,
and the stack pointer is decremented by one. The value read is the transfer to the
directly addressed byte indicated. No flags are affected.
Example:
The stack pointer originally contains the value 32 H , and internal RAM locations 30 H
through 32 H contain the values 20 H , 23 H , and 01 H , respectively. The instruction
sequence
POP
POP
will leave the stack pointer equal to the value 30 H and the data pointer set to 0123 H .
At this point the instruction
POP
will leave the stack pointer set to 20 H . Note that in this special case the stack pointer
was decremented to 2F H before being loaded with the value popped (20 H ).
Operation:
POP
(direct) ¬ ((SP))
(SP) ¬ (SP) Ð 1
Encoding:
1 1 0 1
Bytes:
2
Cycles:
2
Semiconductor Group
DPH
DPL
SP
0 0 0 0
direct address
4-63
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents