| Endianness | ||||||||||||
| big-endian | ||||||||||||
| How do we store the value 01234567hex? | Address | Contents | ||||||||||
| One way: store the digits in order, | 1000 | 01 | ||||||||||
| starting with the lowest address. | 1001 | 23 | ||||||||||
| This is called big-endian, because the biggest-value | 1002 | 45 | ||||||||||
| byte is stored first. | 1003 | 67 | ||||||||||
| However, this means that the MOST-significant byte | 1004 | |||||||||||
| has the LOWEST address. | 1005 | |||||||||||
| Another way: | 1006 | |||||||||||
| Store the LEAST-significant byte in the lowest | 1007 | |||||||||||
| address. | ||||||||||||
| This is called little-endian. | ||||||||||||
| little-endian | ||||||||||||
| Address | Contents | |||||||||||
| 1000 | 67 | |||||||||||
| 1001 | 45 | |||||||||||
| 1002 | 23 | |||||||||||
| 1003 | 01 | |||||||||||
| 1004 | ||||||||||||
| 1005 | ||||||||||||
| 1006 | ||||||||||||
| 1007 | ||||||||||||