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

Example: MOVE.B D0,(R0)

 

 

 

 

 

 

 

A0 = A

A0 = A

MOVEU.B

39

 

 

 

 

 

8

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D0 =

 

 

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVE.W

Example: MOVE.W D0, (R0)

 

 

 

 

 

 

 

A0 = A

A0 = B

MOVEU.W

 

 

 

 

 

 

 

A1 = B

A1 = A

39

 

 

 

16

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

D0 =

 

 

 

 

 

 

 

A

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVE.2W

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

 

 

 

 

 

A0 = A

A0 = B

 

 

 

 

 

 

A1 = B

A1 = A

 

39

 

 

 

16

 

0

 

 

 

 

 

 

 

 

 

A2 = C

A2 = D

 

D0 =

 

 

 

 

 

 

 

A

 

B

 

 

A3 = D

A3 = C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D1 =

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVE.4W

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

 

 

 

 

A0 = A

A0 = B

 

 

 

 

 

A1 = B

A1 = A

 

39

 

 

 

16

 

0

 

 

 

 

 

 

 

A2 = C

A2 = D

 

D0 =

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A

 

B

 

 

 

 

 

 

 

 

 

 

 

A3 = D

A3 = C

 

D1 =

 

 

 

 

 

 

 

 

 

 

 

 

A4 = E

A4 = F

 

 

 

 

 

 

 

 

C

 

D

 

 

 

 

 

 

 

 

 

 

 

A5 = F

A5 = E

 

 

 

 

 

 

 

 

 

 

 

 

D2 =

 

 

 

 

 

 

 

E

 

F

 

A6 = G

A6 = H

 

 

 

 

 

 

 

 

 

 

A7 = H

A7 = G

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D3 =

 

 

 

 

 

 

 

G

 

H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVE.L

Example: MOVE.L D0, (R0)

 

 

 

 

 

 

 

A0 = A

A0 = D

MOVEU.L

 

 

 

 

 

 

 

A1 = B

A1 = C

39

32

 

 

 

 

0

MOVES.L

 

 

 

 

A2 = C

A2 = B

 

D0 =

 

 

A

 

B

C

 

D

A3 = D

A3 = A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2-64

SC140 DSP Core Reference Manual

Page 96
Image 96
Freescale Semiconductor SC140 specifications Memory Access Behavior in Big/Little Endian Modes