title: Help translating from assembly to C
body: <p>I have some code from a function</p>
  
  <pre><code>subl $24, %esp
  movl 8(%ebp), %eax
  cmpl 12(%ebp), %eax
  </code></pre>
  
  <p>Before the code is just the 'ENTER' command and afterwards there's an if statement to return 1 if ebp > eax or 0 if it's less. I'm assuming cmpl means compare, but I can't tell what the concrete values are. Can anyone tell me what's happening?</p>