previous | start | next

Condition Codes

Comparisons of x and y set the condition codes: cmpl y, x

Condition codes set if x compared to y Meaning
SF x < y
ZF x == y
(neither SF or ZF) x > y

Condition codes set after computing some value x. E.g.

Condition codes set when x is computed Meaning
SF x < 0
ZF x == 0
(neither SF or ZF) x > 0


previous | start | next