dsp56800 Freescale Semiconductor, Inc, dsp56800 Datasheet - Page 283
dsp56800
Manufacturer Part Number
dsp56800
Description
16-bit Digital Signal Controllers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1.DSP56800.pdf
(448 pages)
- Current page: 283 of 448
- Download datasheet (3Mb)
BFTSTH
Operation:
Test <bit field> of destination for ones
Test <bit field> of destination for ones
Description: Test all selected bits of the destination operand. If all selected bits are set, C is set; otherwise, C is
Usage:
Example:
Explanation of Example:
Condition Codes Affected:
Note:
Freescale Semiconductor
cleared. The bits to be tested are selected by a 16-bit immediate value in which every bit set is to be
tested. This instruction performs two destination accesses.
This instruction is very useful for testing I/O and flag bits.
BFTSTH
Prior to execution, the 16-bit X memory location X:$FFE2 contains the value $0FF0. Execution of the
instruction tests the state of bits 4, 8, and 9 in X:$FFE2 and sets C (because all of the bits specified in
the immediate mask were set).
If all bits in the mask are set to zero, the destination is unchanged, and the C bit is set. Refer to
Table A-9 on page A-13 when the destination is the SR register.
Before Execution
X:$FFE2
LF
15
SR
14
*
L
C
13
*
— Set if data limiting occurred during 36-bit source move
— Set if all bits specified by the mask are set
12
0FF0
0000
*
#$0310,X:<<$FFE2
MR
Cleared if not all bits specified by the mask are set
11
*
Test Bit Field High
10
*
Instruction Set Details
I1
9
Assembler Syntax:
BFTSTH
BFTSTH
I0
8
SZ
7
; test high bits 4, 8, and 9 in
; an on-chip peripheral register
L
6
5
E
After Execution
X:$FFE2
#iiii,X:<ea>
#iiii,D
U
4
CCR
SR
N
3
2
Z
0FF0
0001
V
1
BFTSTH
C
0
A-53
Related parts for dsp56800
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
TTLPWG Series FAST / TTL Pulse Width Generator Modules
Manufacturer:
RHOMBUS-IND [Rhombus Industries Inc.]
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Dsp Microcomputer
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: