Endianness, C6713cpu, 7 endianness – Kane Industries C6713CPU User Manual
Page 22
![background image](/manuals/161917/22/background.png)
H
ARDWARE
R
EFERENCE
G
UIDE
MICRO
-
LINE
®
C6713CPU
Date : 28 November 2005
Doc. no. : C6713CPU_HRG
Iss./Rev : 1.1
Page : 22
3.7 Endianness
When data is transferred between the C6713CPU board and external hardware over the micro-
line
®
connector it is important to know how data is stored in memory.
The C6713CPU is configured for little endian operation. This means, less significant bytes are
stored first (at lower addresses).
8 bit write to memory
Data to be stored
C-code
result in memory
12
*(char *)0x8000000 = 0x12
8000 0000h
12
16 bit write to memory
Data to be stored
C-code
result in memory
12
34
*(short *)0x8000000 = 0x1234
8000 0000h
34
8000
0001h
12
32 bit write to memory
Data to be stored
C-code
result in memory
12 34 56 78
*(int *)0x8000000 = 0x12345678
8000 0000h
78
8000
0001h
56
8000
0002h
34
8000
0003h
12
Figure 5: Data representation in memory in little endian configuration