Bset - Motorola DSP56000 Manual

24-bit digital signal processor
Hide thumbs Also See for DSP56000:
Table of Contents

Advertisement

BSET

Operation:
D[n]
C;
1
D[n]
D[n]
C;
1
D[n]
D[n]
C;
1
D[n]
D[n]
C;
1
D[n]
D[n]
C;
1
D[n]
D[n]
C;
1
D[n]
D[n]
C;
1
D[n]
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:
:
BSET
#$0,X:<<$FFE5
:
Before Execution
X:$FFE5
SR
A - 56
INSTRUCTION DESCRIPTIONS
Bit Test and Set
th
bit of the destination operand D, set it, and store the result in
th
;test and clear bit 14 in I/O Port B Data Reg.
X:$FFE5
$000000
$0300
INSTRUCTION SET DETAILS
Assembler Syntax:
BSET
#n,X:ea
BSET
#n,X:aa
BSET
#n,X:pp
BSET
#n,Y:ea
BSET
#n,Y:aa
BSET
#n,Y:pp
BSET
#n,D
bit is stored in the carry bit C of the condition
After Execution
$000001
SR
$0300
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56k

Table of Contents