MOV

Transferring data

MOV

MOVe


[Syntax]

MOV.size src, dest

 

[Operation]

dest = src;

 

[Function]

-

This instruction transfers src to dest as listed in the following table.

 

[Instruction Format]

Syntax

size

Processng Size

src

dest

Code size

(Byte)

MOV.size src, dest

B/W/L

size

Rs

Rs=R0R7

dsp:5[Rd]

Rd=R0R7)

2

B/W/L

L

dsp:5[Rs]

Rs=R0R7

Rd

Rd=R0R7

2

L

L

#UIMM:4

Rd

2

B

B

#IMM:8

dsp:5[Rd]

Rd=R0R7

3

W/L

size

#UIMM:8

dsp:5[Rd]

Rd=R0R7

3

L

L

#UIMM:8

Rd

3

L

L

#SIMM:8

Rd

3

L

L

#SIMM:16

Rd

4

L

L

#SIMM:24

Rd

5

L

L

#IMM:32

Rd

6

B/W

L

Rs

Rd

2

L

L

Rs

Rd

3

B

B

#IMM:8

[Rd]

3

B

B

#IMM:8

dsp:8[Rd]

4

B

B

#IMM:8

dsp:16[Rd]

5

W

W

#SIMM:8

[Rd]

3

W

W

#SIMM:8

dsp:8[Rd]

4

W

W

#SIMM:8

dsp:16[Rd]

5

W

W

#IMM:16

[Rd]

4

W

W

#IMM:16

dsp:8[Rd]

5

W

W

#IMM:16

dsp:16[Rd]

6

L

L

#SIMM:8

[Rd]

3

L

L

#SIMM:8

dsp:8[Rd]

4

MOV.size src, dest

L

L

#SIMM:8

dsp:16[Rd]

5

L

L

#SIMM:16

[Rd]

4

L

L

#SIMM:16

dsp:8[Rd]

5

L

L

#SIMM:16

dsp:16[Rd]

6

L

L

#SIMM:24

[Rd]

5

L

L

#SIMM:24

dsp:8[Rd]

6

L

L

#SIMM:24

dsp:16[Rd]

7

L

L

#IMM:32

[Rd]

6

L

L

#IMM:32

dsp:8[Rd]

7

L

L

#IMM:32

dsp:16[Rd]

8

B/W/L

L

[Rs]

Rd

2

B/W/L

L

dsp:8[Rs]

Rd

3

B/W/L

L

dsp:16[Rs]

Rd

4

B/W/L

L

[Ri, Rb]

Rd

3

B/W/L

size

Rs

[Rd]

2

B/W/L

size

Rs

dsp:8[Rd]

3

B/W/L

size

Rs

dsp:16[Rd]

4

B/W/L

size

Rs

[Ri, Rb]

3

B/W/L

size

[Rs]

[Rd]

2

B/W/L

size

[Rs]

dsp:8[Rd]

3

B/W/L

size

[Rs]

dsp:16[Rd]

4

B/W/L

size

dsp:8[Rs]

[Rd]

3

B/W/L

size

dsp:8[Rs]

dsp:8[Rd]

4

B/W/L

size

dsp:8[Rs]

dsp:16[Rd]

5

B/W/L

size

dsp:16[Rs]

[Rd]

4

B/W/L

size

dsp:16[Rs]

dsp:8[Rd]

5

B/W/L

size

dsp:16[Rs]

dsp:16[Rd]

6

B/W/L

size

Rs

[Rd+]

3

B/W/L

size

Rs

[-Rd]

3

B/W/L

L

[Rs+]

Rd

3

B/W/L

L

[-Rs]

Rd

3

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

MOV.L #0, R2

MOV.L #128:8, R2

MOV.L #-128:8, R2

MOV.L R1, R2

MOV.L #0, [R2]

MOV.W [R1], R2

MOV.W R1, [R2]

MOV.W [R1, R2], R3

MOV.W R1, [R2, R3]

MOV.W [R1], [R2]

MOV.B R1, [R2+]

MOV.B [R1+], R2

MOV.B R1, [-R2]

MOV.B [-R1], R2