I'm searching for a code example, for comparing values with inline assembly in gcc. I need to asign values to the asm code. I've tried some examples, they didn't worked correctly. There is always an error or i don't understand the results.
I need just to compare two values and return a result.
movl my_val, %eax
cmpl %eax,$0xfffffffa
je equal
equal:
movl $0xfffffffa,my_val