Q:

x86 cmpl and jne

I'm tracing some x86 code for an assignment, and I was wondering what exactly "cmpl" does and how to predict whether or not the "jne" will be met.
80484bf:    83 7d f0 07             cmpl   $0x7,-0x10(%ebp)
80484c3:    75 16                   jne    80484db

Also, this uses Intel syntax.
Thanks.

A:

cmpl  subtracts -0x10(%ebp) from $0x7 and modifies flags: AF CF OF PF SF ZF.

if -0x10(%ebp) which is one of your function arguments, equals 0x7 then the flag ZF is set.
jne 80484db means that if the two compared numbers are different (ZF=0), jump to  80484db

To summerize, your code is equivalent to :
compare A to B
jump into 80484db if they are different.

