
30Mar98@15:00h
Semiconductor Group
100
Version 1.2, 12.97
C166 Family Instruction Set
Instruction Description
RETP
Return from Subroutine and Pop Word
RETP
Syntax
RETP
op1
Operation
(IP)
←
((SP))
(SP)
←
(SP) + 2
(tmp)
←
((SP))
(SP)
←
(SP) + 2
(op1)
←
(tmp)
Data Types
WORD
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.
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
Format
Bytes
RETP
reg
EB RR
2
Condition Flags
E
Z
V
C
N
*
*
-
-
*