The number 1 234 567 is stored as a 32bit word starting at a
The number 1, 234, 567 is stored as a 32-bit word starting at address 16. Show the address and contents of each byte of the 32-bit word on a (a) little-endian system, (b) big-endian system.
Solution
The number is 1,234,567 .Converting it into decimal we get, (1234567)10 = (12D687)16.
As we know in Hexa decimal notation each digit represents 4 bits.
32 bit word starting address is F04390016
a)LITTLE ENDIAN SYSTEM :
F04390016=87
F04390116=D6
F04390216=12
F04390316=00
b)BIG ENDIAN SYSTEM :
F04390016=00
F04390116=12
F04390216=D6
F04390316=87
