B-4
MPC8240 Integrated Processor User’s Manual
Big-Endian Mode
The following example demonstrates the operation of a system in big-endian mode starting
with a program that does the following:
store string (“hello, world”) at 0x000
store pointer (0xFEDCBA98) at 0x010
store half word (0d1234) at 0x00E
store byte (0x55) at 0x00D
If the data is stored into local memory, it appears as shown in Figure B-2.
Figure B-2. . Big-Endian Memory Image in Local Memory
Note that the stored data has big-endian ordering. The ‘h’ is at address 0x000.
Contents
‘h’
‘e’
‘l’
‘l’
‘o’
‘,’
‘ ’
‘w’
Address
00
01
02
03
04
05
06
07
Contents
‘o’
‘r’
‘l’
‘d’
0x55
12
34
Address
08
09
0A
0B
0C
0D
0E
0F
Contents
0xFE
0xDC
0xBA
0x98
Address
10
11
12
13
14
15
16
17
Summary of Contents for MPC8240
Page 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Page 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Page 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Page 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Page 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Page 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Page 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Page 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Page 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Page 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Page 516: ...16 14 Watchpoint Trigger Applications ...
Page 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Page 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Page 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...