title: Why does leave do "mov esp,ebp" in x86 assembly?
body: <p>It's said that the <code>leave</code> instruction is the same as :</p>
  
  <pre><code>mov esp,ebp
  pop ebp
  </code></pre>
  
  <p>But what is <code>mov esp,ebp</code> here for? It doesn't seem valid to me...</p>