beautypg.com

33 movs move string from source to destination – Texas Instruments MSP50C614 User Manual

Page 217

background image

Individual Instruction Descriptions

4-125

Assembly Language Instructions

4.14.33

MOVS

Move String from Source to Destination

Syntax

[label]

name

dest, src

Clock,

clk

Word,

w

With RPT,

clk

Class

MOVS

A

n[~], {adrs}

Table 4–46

Table 4–46

1a

MOVS

{

adrs}, An[~]

Table 4–46

Table 4–46

1a

MOVS

{

adrs}, *An

Table 4–46

Table 4–46

1b

MOVS

A

n[~], pma16

n

S

+4

2

N/R

2b

MOVS

A

n[~], PH

1

1

1

3

MOVS

A

n, An~

n

S

+2

1

n

R

+2

3

MOVS

A

n[~], *An[~]

n

S

+4

1

n

R

+4

3

† Certain restriction applies to the use of this instruction when interrupts are occuring on the background. See Section

4.8 for more detail.

Execution

dest

src

PC

PC +

w

Flags Affected

dest is An:

OF, SF, ZF, CF are set accordingly

dest is {adrs}:

XSF, XZF are set accordingly

src is {adrs}

TAG bit is set accordingly

Opcode

Instructions

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

MOVS A

n[~], {adrs}

0

0

1

0

A~

1

1

A

n

adrs

x

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

MOVS {

adrs}, An[~]

0

0

0

1

A~

1

1

A

n

adrs

x

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

MOVS {

adrs}, *An

0

1

0

1

1

1

1

A

n

adrs

x

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

MOVS A

n[~], pma16

1

1

1

0

0

1

1

A

n

0

0

1

0

0

1

A~

~A

x

pma16

MOVS PH, A

n[~]

1

1

1

0

0

1

1

A

n

1

0

1

0

1

0

A~

0

MOVS SV, A

n[~]

1

1

1

0

0

1

1

A

n

1

0

1

0

0

0

A~

0

MOVS A

n[~], PH

1

1

1

0

0

1

1

A

n

0

0

1

0

0

0

A~

~A

MOVS A

n, An~

1

1

1

0

0

1

1

A

n

0

0

1

1

1

0

A~

~A

MOVS MR, A

n[~]

1

1

1

0

0

1

1

A

n

1

0

1

1

0

0

A~

0

MOVS A

n[~], *An[~]

1

1

1

0

0

1

1

A

n

0

0

0

1

0

0

A~

~A