NEC 78K/0 Series User Manual
Page 103

CHAPTER 5 EXPLANATION OF INSTRUCTIONS
103
User's Manual U12326EJ4V0UM
Pop
POP
Pop
[Instruction format]
POP dst
[Operation]
When dst = rp
When dst = PSW
dst
L
← (SP),
dst
← (SP)
dst
H
← (SP+1),
SP
← SP+1
SP
← SP+2
[Operand]
Mnemonic
Operand(dst)
POP
PSW
rp
[Flag]
dst =rp
PSW
Z
AC
CY
Z
AC
CY
R
R
R
[Description]
•
Data is returned from the stack to the register specified by the destination operand (dst).
•
When the operand is PSW, each flag is replaced with stack data.
•
None of interrupts are acknowledged between the POP PSW instruction and the subsequent instruction.
[Description example]
POP AX; The stack data is returned to the AX register.