This is what I see in the documentation Intel x86-64for the neg command, which is confusing.
" OF , SF , ZF , AF and PF flags are set according to the result.
I assume that sf = dest < 0, zf = dest == 0but cannot understand how other flags are set.
I see this “set according to expression” everywhere and I will be grateful for your help in understanding what it means for sure. I am working on a compiler, so the information is certainly important.
source
share