title: Do endians affect byte order in register or only in RAM?
body: <p>Consider the following code (x86-64):</p>
  <pre><code>MOV DWORD PTR [rbp-4], 43777  ; 43777 -&gt; 00 00 AB 01
  MOV EAX, DWORD PTR [rbp-4]
  </code></pre>
  <p>If we have little-endian, then <code>00 00 AB 01</code> will be stored in RAM as <code>01 AB 00 00</code>.</p>
  <p>But what about register <code>EAX</code>? Is it stores number as <code>00 00 AB 01</code> or as <code>01 AB 00 00</code>?</p>