Motorola DSP96002 User Manual page 496

32-bit digital signal processor
Table of Contents

Advertisement

TRAPcc
Conditional Software Interrupt
Operation:
If cc, then
begin software exception processing.
Description:
If the specified integer condition is true, normal instruction execution is suspended and software exception
processing is initiated. The interrupt priority level (I1,I0) is set to 3 in the status register if a long interrupt
service routine is used. If the specified condition is false, continue with the next instruction. See Section
A.10 for restrictions.
"cc" may specify the following conditions:
Mnemonic
CC (HS) - carry clear (higher or same)
CS (LO) - carry set (lower)
EQ
GE
GT
HI
LE
LS
LT
MI
NE(Q)
PL
VC
VS
AL
CCR Condition Codes: Not affected.
ER Status Bits: Not affected.
IER Flags: Not affected.
Instruction Format: TRAPcc
31
0000
0000
A - 308
- equal
- greater or equal
- greater than
- higher
- less or equal
- lower or same
- less than
- minus
- not equal
- plus
- overflow clear
- overflow set
- always true
0000
0000
DSP96002 USER'S MANUAL
Assembler Syntax:
TRAPcc
Condition
C = 0
C = 1
Z = 1
N && V = 0
Z v (N && V) = 0
Z v C = 0
Z v (N && V) = 1
Z v C = 1
N && V = 1
N = 1
Z = 0
N = 0
V = 0
V = 1
n.a.
14 13
00
1c
cccc
TRAPcc
0
0000
0011
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents