Download Print this page

Siemens SAB 80515 Series User Manual page 190

8-bit single-chip microcontroller family

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
190
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k