B-2 . Big-Endian Memory Image In Local Memory - Motorola MPC8240 User Manual

Integrated host processor with integrated pci
Table of Contents

Advertisement

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.
Contents
Address
Contents
Address
Contents
Address
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.
B-4
'h'
'e'
'l'
00
01
02
'o'
'r'
'l'
08
09
0A
0xFE
0xDC
0xBA
10
11
12
MPC8240 Integrated Processor User's Manual
'l'
'o'
','
03
04
05
'd'
0x55
0B
0C
0D
0x98
13
14
15
' '
'w'
06
07
12
34
0E
0F
16
17

Advertisement

Table of Contents
loading

Table of Contents