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
cmpl subtracts -0x10(%ebp) from $0x7 and modifies flags: AF CF OF PF SF ZF.
To summarize, your code is equivalent to :
compare A to 7
jump to 0x80484db if they are different.