Texas Instruments MSP50C614 User Manual

Page 168

Advertising
background image

Individual Instruction Descriptions

4-76

Description

Syntax

Description

ADD

dest, src

ADD

src with dest and store the result to dest.

ADD

dest, src, src1 [,mod]

ADD

src1 with src and store the result to dest. Premodify the mod before

execution. (if provided)

See Also

ADDB, ADDS, SUB, SUBB, SUBS

Example 4.14.1.1

ADD A2, A2~, *R2++R5, ––A

Decrement accumulator pointer AP2. Add word at address in R2 to A2~, put result in A2. Add value in
R5 to R2 and store in R2.

Example 4.14.1.2

ADD A1, A1, 0x1221

Add immediate value of 0x1221 to A1 and store result in A1.

Example 4.14.1.3

ADD A0, A0~, PH

Add PH to accumulator A0~ and store result in accumulator A0.

Example 4.14.1.4

ADD A1, A1~, A1

Add accumulator A1 to accumulator A1~, put result in accumulator A1.

Example 4.14.1.5

ADD R3, 0x1000

Add 0x1000 to register R3 store result in R3.

Example 4.14.1.6

ADD R2, R5

Add R2 to R5, store result in R2.

Example 4.14.1.7

ADD AP3, 0x10

Add immediate 0x10 to accumulator pointer AP3, store result in accumulator pointer AP3.

Advertising