English
Language : 

SAB80515 Datasheet, PDF (190/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
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 32H, and internal RAM locations 30H
through 32H contain the values 20H, 23H, and 01H, respectively. The instruction
sequence
POP
POP
DPH
DPL
will leave the stack pointer equal to the value 30H and the data pointer set to 0123H.
At this point the instruction
POP SP
Operation:
will leave the stack pointer set to 20H. Note that in this special case the stack pointer
was decremented to 2FH before being loaded with the value popped (20H).
POP
(direct) ← ((SP))
(SP) ← (SP) – 1
Encoding:
Bytes:
Cycles:
1101 0000
2
2
direct address
Semiconductor Group
190