# Endianness

Let's say  a hex string: 0x1122334455667788

In  Little Endian: 0x8877665544332211

In Big-Endian: 0x1122334455667788

<figure><img src="https://62284611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSvRnuhl_P5WCd1fZEn%2Fuploads%2Fi4VeYw1TIoIaESGBQkrj%2Fimage.png?alt=media&#x26;token=79d98986-1fc7-44ac-8bcd-a83d402c3b62" alt=""><figcaption></figcaption></figure>

x86 and x86-64 both use Little-Endian formats

Example

<figure><img src="https://62284611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSvRnuhl_P5WCd1fZEn%2Fuploads%2FcaeQrI4sM6et8PuyNUxr%2Fimage.png?alt=media&#x26;token=b5ebfe3f-d0a3-479d-9885-b12fa499285b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://62284611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSvRnuhl_P5WCd1fZEn%2Fuploads%2FqiqNMfuJJSO9FeD9k0hv%2Fimage.png?alt=media&#x26;token=2ef18a62-877e-42fb-9050-83d5971951d4" alt=""><figcaption></figcaption></figure>

We can now jump to next instruction and examine rax

<figure><img src="https://62284611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSvRnuhl_P5WCd1fZEn%2Fuploads%2Flj7kTqBw4RhfZiivh5yV%2Fimage.png?alt=media&#x26;token=8fd59e93-4334-46ae-82db-0f47c3f40536" alt=""><figcaption></figcaption></figure>

This concludes that the CPU I am using is little endian in nature.
