dsp56800 Freescale Semiconductor, Inc, dsp56800 Datasheet - Page 189

no-image

dsp56800

Manufacturer Part Number
dsp56800
Description
16-bit Digital Signal Controllers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
8.1.1.2
The BR1SET and BR1CLR operations are very similar to the BRSET and BRCLR instructions. They still
test a bit field and branch to another address based on the result of some test. The difference is that for
BRSET and BRCLR the condition is true if all selected bits in the bit field are 1s or 0s, respectively,
whereas for BR1SET and BR1CLR the condition is true if at least one of the selected bits in the bit field is
a 1 or 0, respectively. BR1SET and BR1CLR operations can also specify a 16-bit mask, compared to an
8-bit mask for BRSET and BRCLR. The following code shows that these two operations allow the same
addressing modes as the BFTSTH and BFTSTL instructions.
; BR1SET Operation
; Emulated in 5 Icyc (4 Icyc if false), 3 Instruction Words
; BR1CLR Operation
; Emulated in 5 Icyc (4 Icyc if false), 3 Instruction Words
8.1.1.3
The JR1SET and JR1CLR operations are very similar to the JRSET and JRCLR instructions. They still test
a bit field and jump to another address based on the result of some test. The difference is that for JRSET
and JRCLR the condition is true if all selected bits in the bit field are 1s or 0s, respectively, whereas for
JR1SET and JR1CLR the condition is true if at least one of the selected bits in the bit field is a 1 or 0,
respectively. JR1SET and JR1CLR operations allow jumps to anywhere in the 64K-word program address
space, and can specify a 16-bit mask. The following code shows that these two operations allow the same
addressing modes as the BFTSTH and BFTSTL instructions.
; JR1SET Operation
; Emulated in 5 Icyc (4 Icyc if false), 4 Instruction Words
; JR1CLR Operation
; Emulated in 5 Icyc (4 Icyc if false), 4 Instruction Words
Freescale Semiconductor
BFTSTL
BCC
BFTSTH
BCC
BFTSTL
JCC
BFTSTH
JCC
BR1SET and BR1CLR Operations
JR1SET and JR1CLR Operations
#xxxx,X:<ea>
label
#xxxx,X:<ea>
label
#xxxx,X:<ea>
label
#xxxx,X:<ea>
label
Example 8-2. BR1SET and BR1CLR
Example 8-3. JR1SET and JR1CLR
Software Techniques
; 16-bit mask allowed
; 7-bit signed PC relative offset allowed
; 16-bit mask allowed
; 7-bit signed PC relative offset allowed
; 16-bit mask allowed
; 16-bit jump address allowed
; 16-bit mask allowed
; 16-bit jump address allowed
Useful Instruction Operations
8-3

Related parts for dsp56800