georgi0u
December 2nd, 2008, 01:59 AM
does anyone know what the correct syntax is for cmpxchgl in at&t style assembly. I've been searching for an hour and im going to pull all of my hair out if i don't find it soon.
Im trying to use the instruction atomically but i don't know which operands do what.
if i do lock cmpxchgl a, b does it compare a to %eax and if == set a = b? I think this is how it works in intel, but I don't think its the same for at&t.
HELP!
Im trying to use the instruction atomically but i don't know which operands do what.
if i do lock cmpxchgl a, b does it compare a to %eax and if == set a = b? I think this is how it works in intel, but I don't think its the same for at&t.
HELP!