Instruction Overview
BITTST
General Form
CC = BITTST ( register, bit_position )
CC = ! BITTST ( register, bit_position )
Syntax
CC = BITTST ( Dreg , uimm5 ) ;
CC = ! BITTST ( Dreg , uimm5 ) ;
Syntax Terminology
:
Dreg
R7–0
: 5-bit unsigned field, with a range of 0 through 31
uimm5
Instruction Length
In the syntax, comment (a) identifies 16-bit instruction length.
Functional Description
The Bit Test instruction sets or clears the
nated by
bit_position
whether the specified bit is set; the other tests whether the bit is clear. The
instruction does not affect other bits in the D-register.
The
bit_position
LSB, and 31 indicates the MSB of the 32-bit D-register.
13-8
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
in the specified D-register. One version tests
range of values is 0 through 31, where 0 indicates the
/* set CC if bit = 1 (a)*/
/* set CC if bit = 0 (a)*/
bit, based on the bit desig-
CC
Need help?
Do you have a question about the ADSP-BF53x Blackfin and is the answer not in the manual?
Questions and answers