2.2.45 (1) POP (W)
POP (POP data)
Pop Data from Stack
Operation
@SP+
→
Rn
Assembly-Language Format
POP.W
Rn
Operand Size
Word
Condition Code
H: Previous value remains unchanged.
N: Set to 1 if the data value is negative;
otherwise cleared to 0.
Z:
Set to 1 if the data value is zero;
otherwise cleared to 0.
V: Always cleared to 0.
C: Previous value remains unchanged.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
—
Description
This instruction restores data from the stack to a 16-bit general register Rn, tests the restored data,
and sets condition-code flags according to the result.
Available Registers
Rn: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Notes
POP.W Rn is identical to MOV.W @SP+, Rn.
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
—
POP.W
Rn
6
D
7
rn
6
No. of
States
Addressing
Mode
Mnemonic
Operands
143