Talk:X86 Assembly/Control Flow

in the practice you will often see cmp eax,eax je whatever this jumps if eax equals zero to my research. We should explain that here. --ThorstenStaerk (discuss • contribs) 09:42, 27 November 2011 (UTC)

This page needs a few things
I would love to see examples that include the asymmetrical comparisons, such as the jl operation. It would also be great if "first" and "second" arguments could be more clearly defined. --Sbluen (discuss • contribs) 06:36, 6 December 2011 (UTC)


 * "First" seems to be arg1 and "second" is arg2, as placed in the CMP instruction syntax in the beginning.
 * Actually, on closer inspection, this is incorrect. As it stands, "first" refers to arg2 and "second" refers to arg1. Pretty confusing. I would prefer to have someone confirm this before making changes, but it would be good to just replace "first" by arg2 and "second" by arg1. 69.172.83.38 (discuss) 21:44, 12 December 2012 (UTC)
 * Those descriptions need a rewrite, it is on my todo list but please feel free to attempt one. I have been adding code examples in nasm or gas when possible since that can help to fill in holes. Here is a good control flow explanation for the mean time: Control Flow Examples and More Syaghmour (discuss • contribs) 15:13, 13 December 2012 (UTC)
 * Fixed the JL section and added an example, comments appreciated. Syaghmour (discuss • contribs) 03:31, 25 December 2012 (UTC)

JL instruction description is wrong
>>With respect to  and   there are several cases that fulfill this criterion:   >   and the operation has an overflow

0x7F > 0x80, but 0x7F - 0x80 = 0xFF, OF=1, SF=1, OF == SF 46.216.60.61 (discuss) 14:20, 7 July 2022 (UTC)