Intermediate Assembly Language
Q85 / 100

What is the difference between JBE and JLE?

Correct! Well done.

Incorrect.

The correct answer is B) JBE (Jump if Below or Equal) is for unsigned comparison using CF and ZF; JLE (Jump if Less or Equal) is for signed comparison using SF, OF, ZF

B

Correct Answer

JBE (Jump if Below or Equal) is for unsigned comparison using CF and ZF; JLE (Jump if Less or Equal) is for signed comparison using SF, OF, ZF

Explanation

Use JBE/JAE/JA/JB for unsigned comparisons. Use JLE/JGE/JG/JL for signed comparisons. Mixing them after CMP produces incorrect results for negative numbers.

Progress
85/100