Individual Instruction Descriptions
4-77
Assembly Language Instructions
4.14.2 ADDB
ADD BYTE
Syntax
[label]
name
dest, src
Clock, clk
Words, w
With RPT, clk
Class
ADDB
An, imm8
1
1
N/R
2a
ADDB
Rx, imm8
1
1
N/R
4b
Execution
dest
⇐
dest + src
PC
⇐
PC + 1
Flags Affected
dest is An:
OF, SF, ZF, CF are set accordingly
dest is Rx:
RCF, RZF are set accordingly
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ADDB An imm5
1
0
1
0
0
0
0
An
imm8
ADD Rx, imm8
1
0
1
1
0
0
k4
k3
k2
k7
k6
k5
Rx
k1
k0
See Also
ADD, ADDS, SUB, SUBB, SUBS
Description
Add immediate value of unsigned src byte to value stored in dest register and
store result in the same dest register.
Example 4.14.2.1
ADDB A2, 0x45
Add immediate 0x45 to A2.
Example 4.14.2.2
ADDB R5, 0xf2
Add immediate 0xf2 to R5.
Summary of Contents for MSP50C6xx
Page 6: ...vi...
Page 14: ...xiv...
Page 24: ...1 10...
Page 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Page 366: ...6 12...