User Manual
C166S V2
Detailed Instruction Description
User Manual
8-293
V 1.7, 2001-01
RETP
Return from Subroutine and Pop Word
RETP
Group
Return Instructions
Syntax
RETP op1
Source Operand(s)
none
Destination Operand(s)
op1
→
WORD
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
E
Z
V
C
N
*
*
-
-
*
Mnemonic
Format
Bytes
RETP
reg
EB RR
2
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...