title: The meaning of RET 2 in assembly
body: <p>I am very new to assembly, and I don't understand what it exactly means when, at the end of a proc, you write a number with the <code>ret</code> statement. </p>
  
  <p>Like this:</p>
  
  <pre><code>Function Proc
  push ax cx
  .
  ...body...
  .
  pop cx ax
  ret 2 
  Function endp
  </code></pre>
  
  <p>I understand it has something to do with where the stack pointer should return to at the end of the function? </p>
  
  <p>What does it do?</p>