Zilog Z16F2810 User Manual
Page 150

POP Instruction
UM018809-0611
134
ZNEO
®
CPU Core
User Manual
POP
Definition
POP Value
Syntax
POP dst
Operation
Description
The POP instruction loads the destination with the byte, word, or quad pointed to by the Stack
Pointer, and then increments the Stack Pointer (R15) by 1, 2, or 4.
The default data size is 32 bits. Byte (8-bit) or Word (16-bit) data size can be selected by adding
an .SB, .UB, .SW, or .UW suffix to the POP mnemonic. The “U” and “S” symbols in the suffix
select Unsigned or Signed extension, respectively.
POP is implemented using LD register-indirect opcodes with postincrement. See LD for more
instructions that load and store data.
Flags
POP:
dst
(SP)
SP
SP + 4
POP.B:
dst
(SP)
SP
SP + 1
POP.W:
dst
(SP)
SP
SP + 2
7
6
5
4
3
2
1
0
C
Z
S
V
B
CIRQE IRQE
–
–
–
–
*
–
–
–
Legend
C
= No change.
Z
= No change.
S
= No change.
V
= No change.
B
= Set to 1 if the popped value is 0. Cleared to 0 if the popped value is nonzero.
CIRQE
= No change.
IRQE
= No change.