title: x86 Assembly Memory - What does the "add" instruction do?
body: <p>Memory Segment Below. </p>
  
  <p>On the first add instruction (add eax, 3), it moves the pointer for eax 3 spots to the right.</p>
  
  <p>Thus, EAX = 12, 17, A3, 00. (This I understand)</p>
  
  <p>But, on the second add instruction (add ebx, 5), it actually adds the value 5 to ebx, </p>
  
  <p>making EBX = 12, 17, A3, <strong>05</strong>.</p>
  
  <p>Why is that?</p>
  
  <p>(Little Endian)</p>
  
  <p><a href="https://i.stack.imgur.com/qr95M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qr95M.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/LQpwG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LQpwG.png" alt="enter image description here"></a></p>