Texas Instruments TMS320C2XX User Manual

Page 176

Advertising
background image

Add to Accumulator

ADD

7-23

Assembly Language Instructions

Syntax

ADD

dma [ , shift ]

Direct addressing

ADD

dma, 16

Direct with left shift of 16

ADD

ind [ , shift

[ , AR

n] ]

Indirect addressing

ADD

ind, 16 [ , ARn]

Indirect with left shift of 16

ADD #

k

Short immediate addressing

ADD #

lk [ , shift ]

Long immediate addressing

Operands

dma:

7 LSBs of the data-memory address

shift:

Left shift value from 0 to 15 (defaults to 0)

n:

Value from 0 to 7 designating the next auxiliary register

k:

8-bit short immediate value

lk:

16-bit long immediate value

ind:

Select one of the following seven options:
* *+ *– *0+ *0– *BR0+ *BR0–

ADD

dma [ , shift ]

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

0

0

1

0

shift

0

dma

ADD

dma, 16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

0

1

1

0

0

0

0

1

0

dma

ADD

ind [ , shift [ , ARn ] ]

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

0

0

1

0

shift

1

ARU

N

NAR

Note:

ARU, N, and NAR are defined in Section 6.3,

Indirect Addressing Mode (page 6-9).

ADD

ind, 16 [, ARn]

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

0

1

1

0

0

0

0

1

1

ARU

N

NAR

Note:

ARU, N, and NAR are defined in Section 6.3,

Indirect Addressing Mode (page 6-9).

ADD #

k

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

1

0

1

1

1

0

0

0

k

ADD #

lk [, shift]

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

1

0

1

1

1

1

1

1

1

0

0

1

shift

lk

Opcode

Advertising