title: How to create a assembly language that uses only the register to represent an identifiers?
body: <p>To clarify, the question:</p>
  
  <p>salary = reghours * 3 + overtimehours * 2 - benifit * 3</p>
  
  <p>It can not use variables (<code>.data</code>)...</p>
  
  <p>This is what I created so far:</p>
  
  <pre><code>    mov eax,3
      mov ebx,2
      mul ebx
      call dumpRegs
  
      mov ecx,2
      mov ebx,2
      mul ebx
      call dumpRegs
  
      mov edx,3
      mov ebx,5
      mul ebx
      call dumpRegs
  </code></pre>
  
  <p>okay, the two above instruction computation are correct by edx register continue to be zero?</p>
  
  <p>my question is, how to get the calculation for salary that will include the reg + reg - reg with total sum of a reg?</p>