Motorola DSP56800 Manual page 374

16-bit digital signal processor
Table of Contents

Advertisement

ORC
Operation:
#xxxx + X:<ea> → X:<ea>
#xxxx + D → D
where + denotes the logical inclusive OR operator
Implementation Note:
This instruction is an alias to the BFSET instruction, and assembles as BFSET with the 16-bit imme-
diate value used as the bit mask. This instruction will disassemble as a BFSET instruction.
Description: Logically OR a 16-bit immediate data value with the destination operand (D) and store the results back
into the destination. C is also modified as described in following discussion. This instruction performs
a read-modify-write operation on the destination and requires two destination accesses.
Example:
ORC
Before Execution
X:$7C30
SR
Explanation of Example:
Prior to execution, the 16-bit X memory location X:$7C30 contains the value $00AA. Execution of the
instruction tests the state of bits 14, 12, 6, and 4 in X:$7C30; does not set C (because all these bits were
not set); and then sets the bits.
Condition Codes Affected:
15
14
LF
*
For destination operand SR:
For other destination operands:
A-144
Logical Inclusive OR Immediate
#$5050,X:<<$7C30; OR with immediate data
00AA
0300
MR
13
12
11
10
9
*
*
*
*
I1
?
— Set as defined in the field and if specified in the field
C
— Set if all bits specified by the mask are set
DSP56800 Family Manual
Assembler Syntax:
ORC
ORC
After Execution
X:$7C30
SR
CCR
8
7
6
5
4
I0 SZ
L
E
U
ORC
#iiii,X:<ea>
#iiii,D
50FA
0300
3
2
1
0
N
Z
V
C

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents