Help translating from assembly to C
Posted
by user324994
on Stack Overflow
See other posts from Stack Overflow
or by user324994
Published on 2010-05-06T05:39:15Z
Indexed on
2010/05/06
5:48 UTC
Read the original article
Hit count: 188
assembly
|translation
I have some code from a function
subl $24, %esp
movl 8(%ebp), %eax
cmpl 12(%ebp), %eax
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?
© Stack Overflow or respective owner