Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Conditional Jump Statement?

Assume that EAX contains ff ff ff 51

and the doubleword referenced by value contains ff ff ff f1.

The conditional jump statement

cmp eax, value

jle dest

causes a jump to the label dest.

Is this true or false?

1 Answer

  • 1 month ago
    Favorite Answer

    True.  JLE interprets the CMP flag settings as a signed comparison, and EAX = -A5 is less than value = -F.  (-165 < -15)

    For what it's worth, the unsigned version (JBE or JNA) will also jump.  When  both argument to CMP have the same sign, the flags are the same.

Still have questions? Get your answers by asking now.