long long Data Types (signed and unsigned)

Long long and unsigned long long data types are stored in an odd/even pair of registers (see Figure 8-6) and are always referenced as a pair in the format of odd register:even register (for example, A1:A0). In little-endian mode, the lower address is loaded into the even register and the higher address is loaded into the odd register; if data is loaded from location 0, then the byte at 0 is the lowest byte of the even register. In big-endian mode, the higher address is loaded into the even register and the lower address is loaded into the odd register; if data is loaded from location 0, then the byte at 0 is the highest byte of the odd register.

Figure 8-6 64-Bit Data Storage Format Signed 64-bit long
Odd register
MS
S I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I
31 0
Even register
LS
I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I
31 0
LEGEND: S = sign, U = unsigned integer, I = signed integer, X = unused, MS = most significant, LS = least significant
Figure 8-7 Unsigned 64-bit long
Odd register
MS
U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U
31 0
Even register
LS
U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U
31 0
LEGEND: S = sign, U = unsigned integer, I = signed integer, X = unused, MS = most significant, LS = least significant