title: Return value of a C function to ASM
body: <p>I'm trying to call a function from within ASM. I know how to call it, but i'm having trouble finding how to get the return value of this function. An example follows:</p>
  
  <p><strong>C code:</strong>  </p>
  
  <pre><code>int dummy() {  
      return 5;  
  }  
  </code></pre>
  
  <p><strong>(N)ASM code:</strong>  </p>
  
  <pre><code>dummyFunction:
      call dummy
      ;grab return into eax
      inc eax ; eax should be 6 now
      ret  
  </code></pre>
  
  <p>Any ideas?</p>