Eonce register addressing -30 – Freescale Semiconductor StarCore SC140 User Manual

Page 96

Advertising
background image

2-64

SC140 DSP Core Reference Manual

Memory Interface

2.4.1.6 Memory Access Behavior in Big/Little Endian Modes

Table 2-27 shows the representation of the move instructions in big and little endian modes. In the
examples shown in this table, it is assumed that R0 points to address A0. Each alphanumeric A–H
represents one byte. Also, the memory contents may not exactly equal the register contents. For example,
in VSL instructions, the memory word (16 bits) is the register word shifted left by one bit. See Appendix A
for more detailed information.

Table 2-27. Move Instructions in Big and Little Endian Modes

Instruction

Register Operands

Big Endian

Little

Endian

MOVE.B

MOVEU.B

A0 = A

A0 = A

MOVE.W

MOVEU.W

A0 = A
A1 = B

A0 = B
A1 = A

MOVE.2W

A0 = A
A1 = B
A2 = C
A3 = D

A0 = B
A1 = A
A2 = D
A3 = C

MOVE.4W

A0 = A
A1 = B
A2 = C
A3 = D
A4 = E

A5 = F

A6 = G
A7 = H

A0 = B
A1 = A
A2 = D
A3 = C
A4 = F
A5 = E
A6 = H

A7 = G

MOVE.L

MOVEU.L
MOVES.L

A0 = A
A1 = B
A2 = C
A3 = D

A0 = D
A1 = C
A2 = B
A3 = A

0

39

8

A

D0 =

Example: MOVE.B D0,(R0)

0

39

16

A

B

Example: MOVE.W D0, (R0)

D0 =

0

39

16

A

B

C

D

Example: MOVE.2W D0:D1, (R0)

D0 =

D1 =

0

39

16

A

B

C

D

E

F

G

H

Example: MOVE.4W D0:D1:D2:D3, (R0)

D0 =

D1 =

D2 =

D3 =

0

39

32

A

B

C

D

Example: MOVE.L D0, (R0)

D0 =

Advertising