title: IA32 assembly code to Y86 assembly code: leal instruction
body: <p>I am studying how to convert IA32 assembly code to Y86 assembly code, and I am stuck in the following instruction which is in IA32 code:</p>
  
  <pre><code> leal(%edx, %eax), %eax
  </code></pre>
  
  <p>I cannot find the equivalent instructions for the Y86 code. I have though of two version as the following ones, but I am not sure which is right:</p>
  
  <p>Version 1:</p>
  
  <pre><code> mrmovl (%edx), %ebx
   mrmovl (%eax), %esi
   addl %ebx, %esi
   rrmovl %esi, 5eax
  </code></pre>
  
  <p>Version 2:</p>
  
  <pre><code> addl %edx, %eax
  </code></pre>
  
  <p>Does anyone have a better idea?</p>