RETP
Syntax
Operation
Data Types
Description
Returns from a subroutine. The IP is first popped from the system stack and then the next word is popped
from the system stack into the operand specified by op1. Execution resumes at the instruction following
the CALL instruction in the calling routine.
Flags
E
*
E
Set if the value of the word popped into operand op1 represents the lowest possible negative
number. Cleared otherwise. Used to signal the end of a table.
Z
Set if the value of the word popped into operand op1 equals zero. Cleared otherwise.
V
Not affected.
C
Not affected.
N
Set if the most significant bit of the word popped into operand op1 is set. Cleared otherwise.
Addressing Modes
Mnemonic
RETP
Return from Subroutine & Pop Word
RETP
(IP)
(SP)
(tmp)
(SP)
(op1)
WORD
Z
*
reg
ST10 FAMILY PROGRAMMING MANUAL
op1
<-- ((SP))
<-- (SP) + 2
<-- ((SP))
<-- (SP) + 2
<-- (tmp)
V
-
Format
EB RR
C
N
-
*
Bytes
2
107/172
Need help?
Do you have a question about the ST10 Series and is the answer not in the manual?
Questions and answers