Infineon Technologies C166S V2 User Manual page 293

16-bit microcontroller
Table of Contents

Advertisement

RETP
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(IP) ← ((SP))
(SP) ← (SP) + 2
(tmp) ← ((SP))
(SP) ← (SP) + 2
(op1) ← (tmp)
Description
Returns from a subroutine. First the IP is popped from the system stack and then the
next word is popped from the system stack into the operand specified by op1.
CPU Flags
E
Set if the value of the popped word represents the lowest possible
negative number. Cleared otherwise. Used to signal the end of a table.
Z
Set if the value of the popped word equals zero. Cleared otherwise.
V
Not affected.
C
Not affected.
N
Set if the most significant bit of the popped word is set. Cleared
otherwise.
Encoding
Mnemonic
RETP
reg
User Manual
Return from Subroutine and Pop Word
Return Instructions
RETP op1
none
op1 → WORD
E
Z
*
*
Detailed Instruction Description
V
C
-
-
Format
EB RR
8-293
User Manual
C166S V2
RETP
N
*
Bytes
2
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents