Texas Instruments MSP50C614 Stereo System User Manual


 
Individual Instruction Descriptions
4-75
Assembly Language Instructions
4.14.1 ADD Add word
Syntax
[
label
] name
dest
,
src
[,
src1
] [,
mod
] Clock,
clk
Words,
w
With RPT,
clk
Class
ADD A
n
[~], A
n
, {
adrs
} [,
next A
] Table 4–46 Table 4–46
Table 4–46
1a
ADD A
n
[~], A
n
[~],
imm16
[,
next A
] 2 2 N/R 2b
ADD A
n
[~], A
n
[~], PH [,
next A
] 1 1 n
R
+3 3
ADD A
n
[~], A
n
~, A
n
[,
next A
] 1 1 n
R
+3 3
ADD R
x
,
imm16
2 2 N/R 4c
ADD R
x
, R5 1 1 n
R
+3 4d
ADD
AP
n
,
imm5
1 1 N/R 9c
Does not affect the status flags.
Execution [premodify AP if
mod
specified]
dest
dest
+
src
(for two operands)
dest
src
+
src1
(for three operands)
PC PC +
w
Flags Affected
dest
is A
n
:OF, SF, ZF, CF are set accordingly
dest
is R
x
: RCF, RZF are set accordingly
src1 is {
adrs
}: TAG is set accordingly
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ADD A
n
[~], A
n
, {
adrs
} [,
next A
]
0 0 0 0 ~A
next A
A
n adrs
x
dma16 (for direct) or offset16 (long relative)
[see section 4.13]
ADD A
n
[~], A
n
[~],
imm16
[,
next A
]
1 1 1 0 0
next A
A
n
0 0 0 0 0 1 A~ ~A
x
imm16
ADD A
n
[~], A
n
[~], PH [
, next A
] 1 1 1 0 0
next A
A
n
0 1 1 0 1 0 A~ ~A
ADD A
n
[~], A
n
~, A
n
[
, next A
] 1 1 1 0 0
next A
A
n
0 0 1 0 1 0 A~ ~A
ADD R
x
,
imm16
1 1 1 1 1 1 1 0 0 0 0 0 R
x
0 0
x
imm16
ADD R
x
, R5 1 1 1 1 1 1 1 0 0 1 0 0 R
x
0 0
ADD AP
n
,
imm5
1 1 1 1 1 0 1 AP
n
0 1 0
imm5