Popf – Zilog Z16F2810 User Manual
Page 152

POPF Instruction
UM018809-0611
136
ZNEO
®
CPU Core
User Manual
POPF
Definition
POP Flags
Syntax
POPF
Operation
FLAGS[7:0]
+
1(SP)
SP
SP
+
2
Description
The POPF instruction increments the Stack Pointer (R15), loads the byte pointed to by the Stack
Pointer into the Flags register, and increments the Stack Pointer. POPF increments the Stack
Pointer twice so its alignment is not changed.
Flags
The Flags register is overwritten by the popped byte.
Syntax and Opcodes
Example
Before:
SP=FFFF_DB22H, FFFF_DB22H=00H, FFFF_DB23H=B1H (1011_0001B)
POPF
;Object Code: 0003
After:
SP=FFFF_DB24H, Flags=B1H (C, S, V, IRQE=1; Z, B=0)
Instruction, Operands
Word 0
Word 1
Word 2
POPF
0003H