Analog Devices adsp-2100 Manual page 403

Adsp-2100 family programmable single-chip microprocessors
Table of Contents

Advertisement

PROGRAM FLOW
15
RTI
COND:
Syntax:
Permissible conds (see Table 15.9)
EQ
LE
AC
Example:
Description:
specified return. If the condition is not true then perform a no-operation.
Omitting the condition performs the return unconditionally. RTI executes
a program return from an interrupt service routine. The address on top of
the PC stack is popped and is used as the return address. The value on top
of the status stack is also popped, and is loaded into the arithmetic status
(ASTAT), mode status (MSTAT) and the interrupt mask (IMASK)
registers.
If RTI is the last instruction inside a DO UNTIL loop, you must ensure
that the loop stacks are properly handled.
Status Generated:
Instruction Field:
Conditional Return, Instruction Type 20:
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0
0
15 – 80
condition
[ IF cond ]
NE
GT
NEG
POS
NOT AC
MV
IF MV RTI ;
Test the optional condition and, if true, then perform the
None affected.
0
0
1
0
1
RTI ;
GE
LT
AV
NOT AV
NOT MV
NOT CE
0
0
0
0
0
0
0 0 0 0 0 0 1
COND

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents