dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 419

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
BRAD
Operation:
Execute instructions in next 2 words
PC + <OFFSET> → PC
Description: Branch to the location in program memory at PC + displacement, but first execute the instruction or
Example:
Explanation of Example:
Condition Codes Affected:
Restrictions:
Freescale Semiconductor
instructions in the following 2 program words. The PC contains the address of the next instruction. The
displacement is a 7-bit, 18-bit, or 22-bit signed value that is sign extended to form the PC-relative off-
set.
LABEL
In this example, the program executes the two INC.W instructions that follow the BRAD instruction,
and then it continues with the ADD instruction that follows LABEL.
The condition codes are not affected by this instruction.
A BRAD instruction used within a DO loop cannot begin at the LA or LA – 1 within that DO loop.
A BRAD instruction cannot be repeated using the REP instruction.
Refer to Section 4.3.2, “Delayed Instruction Restrictions,” on page 4-14.
BRAD
...
ADD
INC.W
INC.W
LABEL
A
A
B,A
Delayed Branch
Instruction Set Details
Assembler Syntax:
BRAD
BRAD
BRAD
; delayed branch to “LABEL”
; these two increments are executed
; before the branch!
<OFFSET7>
<OFFSET18>
<OFFSET22>
BRAD
A-75

Related parts for dsp56800e