5 Results of comparison

Because a cmp instruction does not store the result, its sole purpose is to affect the flags so that other instructions can use the flags.

This section explains the meanings of the flags after a cmp instruction.

 5.1 the Z-flag
 5.2 the C-flag
 5.3 the S-flag
 5.4 the O-flag
 5.5 the L-flag