dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 401

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Bcc
Operation:
If (cc), then PC + <OFFSET> → PC
else PC + 1 → PC
Description: If the specified condition is true, program execution continues at the location PC + displacement. The
Example:
Explanation of Example:
Freescale Semiconductor
PC contains the address of the next instruction. If the specified condition is false, the PC is increment-
ed, and program execution continues sequentially. The offset can be 7, 18, or 22 bits; 7- and 18-bit
offsets are sign extended to 21 bits.
The term “cc” specifies the following:
LABEL
See Table 3-14 on page 3-27 for usage of forcing operator “<LABEL.”
In this example, if the Z bit is zero when the BNE instruction is executed, program execution skips the
two INC.W instructions and continues with the ADD instruction. If the specified condition is not true,
no branch is taken, the program counter is incremented by one, and program execution continues with
the first INC.W instruction. The Bcc instruction uses a PC-relative offset of two for this example.
CC (HS*) — carry clear (higher or same)
CS (LO*) — carry set (lower)
EQ
GE
GT
HI*
LE
LS*
LT
NE
NN
NR
* Only available when CM bit set in the OMR
Xdenotes the logical complement of X
+denotes the logical OR operator
•denotes the logical AND operator
⊕denotes the logical exclusive OR operator
BNE
INC.W
INC.W
ADD
— equal
— greater than or equal
— greater than
— higher
— less than or equal
— lower or same
— less than
— not equal
— not normalized
— normalized
“cc” Mnemonic
<LABEL
A
A
B,A
Branch Conditionally
Instruction Set Details
Assembler Syntax:
Bcc
Bcc
Bcc
; branch to LABEL if Z condition is zero
C = 0
C = 1
Z = 1
N ⊕ V = 0
Z + (N ⊕ V) = 0
C
Z + (N ⊕ V) = 1
C + Z = 1
N ⊕ V = 1
Z = 0
Z + (U
Z + (U
<OFFSET7>
<OFFSET18>
<OFFSET22>
Z = 1
Condition
E) = 0
E) = 1
Bcc
A-57

Related parts for dsp56800e