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.
Содержание MSP50C6xx
Страница 1: ...MSP50C6xx Mixed Signal Processor User s Guide Mixed Signal Products SPSU014A Printed on Recycled Paper...
Страница 6: ...vi...
Страница 14: ...xiv...
Страница 24: ...1 10...
Страница 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Страница 332: ...Implementation Details 5 36 R7 Return Addr Return Addr Param 2 Param 2 Param 1 Param 1 R5 Stack data Function call...
Страница 366: ...6 12...