51 or bitwise logical or – Texas Instruments MSP50C614 User Manual
Page 237
Individual Instruction Descriptions
4-145
Assembly Language Instructions
4.14.51
OR
Bitwise Logical OR
Syntax
[label]
name
dest, src [, src1] [, mod]
Clock,
clk
Word,
w
With RPT,
clk
Class
OR
A
n, {adrs}
Table 4–46
Table 4–46
1b
OR
A
n[~], An[~], imm16 [, next A]
2
2
N/R
2b
OR
A
n[~], An~, An [, next A]
1
1
n
R
+3
3
OR
TF
n, {flagadrs}
1
1
N/R
8a
OR
TF
n, {cc} [, Rx]
1
1
n
R
+3
8b
Execution
[premodify AP if
mod specified]
dest
⇐
dest OR src1
(for two operands)
dest
⇐
src OR src1
(for three operands)
PC
⇐
PC +
w
Flags Affected
dest is An:
OF, SF, ZF, CF are set accordingly
dest is TFn:
TF
n bits in STAT register are set accordingly
src is {adrs}:
TAG bit is set accordingly
src is {flagadrs}:
TAG bit is set accordingly
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
OR A
n, {adrs}
0
1
0
0
0
0
0
A
n
adrs
x
dma16 (for direct) or offset16 (long relative) [see section 4.13]
OR A
n[~], An[~], imm16 [, next A]
1
1
1
0
0
next A
A
n
1
0
0
0
0
1
A~
~A
OR A
n[~], An~, An [, next A]
1
1
1
0
0
next A
A
n
0
1
0
0
1
0
A~
~A
OR TF
n, {flagadrs}
1
0
0
1
1
fig
Not
0
1
0
flagadrs
OR TF
n, {cc} [, Rx]
1
0
0
1
0
fig
Not
cc
R
x
0
1
Description
Bitwise OR of
src and dest. Result is stored in dest. If three operands are
specified then logical OR
src and src1, store result in dest. Premodification of
accumulator pointers are allowed with some operand types.
Syntax
Description
OR A
n, {adrs}
OR RAM word to A
n
OR A
n[~], An[~], imm16 [, next A]
OR immediate word to A
n[~], store result in An[~]
OR A
n[~], An~, An [, next A]
OR A
n word to An~ word, store result in An[~]
OR TF
n, {flagadrs}
OR TF
n with memory tag, store result in TFn bit in STAT
OR TF
n, {cc} [, Rx]
OR test condition with TF
n bit in STAT register
.
R
x must be provided if cc is
one of {RZP, RNZP, RLZP, RNLZP} to check if the selected R
x is zero or
negative. R
x should not be provided for other conditionals.