Table 6-30 Branch On Bit-Manipulation Instructions - Motorola DSP56800 Manual

16-bit digital signal processor
Table of Contents

Advertisement

Instruction Set Introduction
Table 6-29. Bit-Manipulation Instructions (Continued)
Operation
BFCHG
BFCLR
BFSET
Operation
BRCLR
#MASK8,DDDDD,AA
#MASK8,X:(R2+xx),AA
#MASK8,X:(SP-xx),AA
#MASK8,X:xxxx,AA
6-26
Operands
#xxxx,DDDDD
#xxxx,X:(R2+xx)
#xxxx,X:(SP-xx)
#xxxx,X:aa
#xxxx,X:pp
#xxxx,X:xxxx
#xxxx,DDDDD
#xxxx,X:(R2+xx)
#xxxx,X:(SP-xx)
#xxxx,X:aa
#xxxx,X:pp
#xxxx,X:xxxx
#xxxx,DDDDD
#xxxx,X:(R2+xx)
#xxxx,X:(SP-xx)
#xxxx,X:aa
#xxxx,X:pp
#xxxx,X:xxxx
Table 6-30. Branch on Bit-Manipulation Instructions
Operands
#MASK8,X:aa,AA
#MASK8,X:pp,AA
DSP56800 Family Manual
C
W
4
2
BFCHG tests all bits selected by the 16-bit
immediate mask. If all selected bits are set,
6
2
then the C bit is set. Otherwise it is cleared.
Then it inverts all selected bits.
6
2
All registers in DDDDD are permitted except
4
2
HWS.
X:aa represents a 6-bit absolute address.
4
2
Refer to Absolute Short Address (Direct
Addressing): <aa> on page 4-22
6
3
X:pp represents a 6-bit absolute I/O address.
4
2
BFCLR tests all bits selected by the 16-bit
immediate mask. If all selected bits are set,
6
2
then the C bit is set. Otherwise it is cleared.
Then it clears all selected bits.
6
2
All registers in DDDDD are permitted except
4
2
HWS.
X:aa represents a 6-bit absolute address.
4
2
Refer to Absolute Short Address (Direct
Addressing): <aa> on page 4-22
6
3
X:pp represents a 6-bit absolute I/O address.
4
2
BFSET tests all bits selected by the 16-bit
immediate mask. If all selected bits are clear,
6
2
then the C bit is set. Otherwise it is cleared.
Then it sets all selected bits.
6
2
All registers in DDDDD are permitted except
4
2
HWS.
X:aa represents a 6-bit absolute address.
4
2
Refer to Absolute Short Address (Direct
Addressing): <aa> on page 4-22
6
3
X:pp represents a 6-bit absolute I/O address.
1
W
C
10/8
2
BRCLR tests all bits selected by the immediate
mask. If all selected bits are clear, then the carry
12/10
2
bit is set and a PC relative branch occurs. Other-
12/10
2
wise it is cleared and no branch occurs.
10/8
2
All registers in DDDDD are permitted except
10/8
2
HWS.
12/10
3
MASK8 specifies a 16-bit immediate value where
either the upper or lower 8 bits contains all zeros.
AA specifies a 7-bit PC relative offset.
X:aa represents a 6-bit absolute address.
X:pp represents a 6-bit absolute I/O address.
Comments
Comments

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents