title: How to determine if the registers are loaded right to left or vice versa
body: <p>When reviewing gdb output and looking at the assembly calls, usually I can find a command using hard-coded values to determine whether the registers are being loaded right to left or vice versa. </p>
  
  <p>Usually something like the following:</p>
  
  <pre><code>  sub     rsp, 16
  </code></pre>
  
  <p>or</p>
  
  <pre><code>  sub     16, rsp 
  </code></pre>
  
  <p>But other times, no values like above are visible. 
  All I see are calls like the following :</p>
  
  <pre><code>(gdb) disassemble
   Dump of assembler code for function main:
   0x0000000100000f54 &lt;main+4&gt;:    mov    $rdi,%r15
   0x0000000100000f59 &lt;main+9&gt;:    mov    $rsi,%r14
   0x0000000100000f60 &lt;main+16&gt;:   mov    $rdx,%r13
   0x0000000100000f67 &lt;main+23&gt;:   mov    $ecx,$r12d
   End of assembler dump.
  </code></pre>
  
  <p>How does one determine if values are processed left to right or vice versa?</p>