title: How can i multiply two registers and store them in a different register?
body: <p>So I am attempting and failing to make a GCD program for assembly language(Intel x86, using NASM).  Where I keep getting compiler errors is when trying to multiply two registers.  I have users values stored in the registers ebx, ecx, and edx.  I want to multiply all 3
  &amp; store the product of ebx and ecx in ebx, then multiply ebx and edx, and store in ebx, and display the result.  Im attempting to do this by using this code
          <code>imul    ebx, ebx, ecx</code>
          <code>imul    ebx, ebx, edx</code>
  Is this not a valid way to multiply registers?</p>