NZCV condition code flags

The N, Z, C and V (Negative, Zero, Carry and oVerflow) bits are known collectively as the condition code flags. They can be tested by most instructions to determine whether the instruction is to be executed.

The condition code flags are usually modified by:

In either case, the new condition code flags (after the instruction has been executed) usually mean:

N Is set to bit 31 of the result of the instruction. If this result is regarded as a 2’s complement signed integer, then N=1 if the result is negative and N=0 if it is positive or zero.

Z Is set to 1 if the result of the instruction is zero (which often indicates an equal result from a comparison), and to 0 otherwise.

C Is set in one of four ways:

V Is set in one of two ways: