When and why do we sign extend and use cdq with mul/div?
<p>I had a test todayand the only question I didn't understand involved converting a doubleword to a quad word.</p>

<p>That got me thinking, why/when do we sign extend for multiplication or division? In addition, when do we use instructions like cdq?</p>