title: Push constant directly or Mov Eax and Push Eax
body: <p>There are a difference in push a constant value directly for call a function, instead of mov the value to eax and push eax.</p>
  
  <p>For example for do this in C:
  GetStdHandle(STD_OUTPUT_HANDLE);</p>
  
  <p>many compilers generate this:</p>
  
  <pre><code>;B8 F5 FF FF FF
  MOV EAX,-11
  
  ;50
  PUSH EAX
  
  CALL GetStdHandle
  </code></pre>
  
  <p>and manually I'm using;</p>
  
  <pre><code>;6A F5
  PUSH -11
  
  CALL GetStdHandle
  </code></pre>
  
  <p>There are wrong pushing the value directly instead load it on eax and push eax ?</p>