Texas Instruments MSP50C614 manual ADD Add word, Execution

Models: MSP50C614

1 414
Download 414 pages 24.44 Kb
Page 167
Image 167

Individual Instruction Descriptions

4.14.1 ADD

Add word

 

 

 

 

Syntax

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[label]

name

dest, src [, src1] [,mod]

Clock, clk

Words, w

With RPT, clk

Class

 

 

 

 

 

 

 

 

 

 

ADD

An[~], An, {adrs} [, next A]

Table 4±46

Table 4±46

Table 4±46

1a

 

 

 

 

 

 

 

 

 

 

ADD

An[~], An[~], imm16 [, next A]

2

2

N/R

2b

 

 

 

 

 

 

 

 

 

 

ADD

An[~], An[~], PH [, next A]

1

1

nR+3

3

 

 

ADD

An[~], An~, An [, next A]

1

1

nR+3

3

 

 

ADD

Rx, imm16

2

2

N/R

4c

 

 

 

 

 

 

 

 

 

 

ADD

Rx, R5

1

1

nR+3

4d

 

 

ADD²

APn, 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 An:

 

dest is Rx:

 

src1 is {adrs}:

Opcode

 

OF, SF, ZF, CF are set accordingly RCF, RZF are set accordingly TAG is set accordingly

Instructions

16

15

14

13

12

11

10

9

 

8

7

6

5

4

 

3

2

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD An[~], An, {adrs} [, next A]

0

0

0

0

~A

next A

 

An

 

 

 

 

adrs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x

 

 

dma16 (for direct) or offset16 (long relative) [see section 4.13]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD An[~], An[~], imm16 [, next A]

1

1

1

0

0

next A

 

An

0

0

0

0

 

0

1

 

A~

~A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x

 

 

 

 

 

 

 

 

imm16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD An[~], An[~], PH [, next A]

1

1

1

0

0

next A

 

An

0

1

1

0

 

1

0

 

A~

~A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD An[~], An~, An [, next A]

1

1

1

0

0

next A

 

An

0

0

1

0

 

1

0

 

A~

~A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD Rx, imm16

1

1

1

1

1

1

1

0

 

0

0

0

0

 

 

Rx

 

 

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x

 

 

 

 

 

 

 

 

imm16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD Rx, R5

1

1

1

1

1

1

1

0

 

0

1

0

0

 

 

Rx

 

 

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD APn, imm5

1

1

1

1

1

0

1

APn

0

1

0

 

 

 

imm5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Assembly Language Instructions

4-75

Page 167
Image 167
Texas Instruments MSP50C614 manual ADD Add word, Execution