dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 322

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Operation:
Description: Test the n
the destination location. The state of the n
code register. The bit to be tested is selected by an immediate bit number from 0–23.
This instruction performs a read-modify-write operation on the destination location using
two destination accesses before releasing the bus. This instruction provides a test-and-
set capability which is useful for synchronizing multiple processors using a shared mem-
ory. This instruction can use all memory alterable addressing modes.
Example:
A - 56
BSET
D[n]
D[n]
D[n]
D[n]
D[n]
D[n]
D[n]
X:$FFE5
1
1
1
1
1
1
1
BSET
SR
D[n]
D[n]
D[n]
D[n]
D[n]
D[n]
D[n]
C;
C;
C;
C;
C;
C;
C;
:
:
Before Execution
#$0,X:<<$FFE5
Freescale Semiconductor, Inc.
$000000
th
$0300
For More Information On This Product,
bit of the destination operand D, set it, and store the result in
INSTRUCTION DESCRIPTIONS
INSTRUCTION SET DETAILS
Go to: www.freescale.com
Bit Test and Set
;test and clear bit 14 in I/O Port B Data Reg.
th
X:$FFE5
bit is stored in the carry bit C of the condition
Assembler Syntax:
SR
BSET
BSET
BSET
BSET
BSET
BSET
BSET
After Execution
#n,X:ea
#n,X:aa
#n,X:pp
#n,Y:ea
#n,Y:aa
#n,Y:pp
#n,D
$000001
$0300
MOTOROLA

Related parts for dsp56000