English
Language : 

M166 Datasheet, PDF (100/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
RETP
Return from Subroutine and Pop Word
RETP
Syntax
Operation
Data Types
Description
RETP
op1
(IP) ← ((SP))
(SP) ← (SP) + 2
(tmp) ← ((SP))
(SP) ← (SP) + 2
(op1) ← (tmp)
WORD
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.
Condition Flags
E
Z
V
C
N
*
*
-
-
*
Addressing Modes
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.
Mnemonic
RETP
reg
Format
EB RR
Bytes
2
Semiconductor Group
100
Version 1.2, 12.97