Status Register - The Most Common Flags

The Most Common Flags

This is a list of the most common CPU status register flags, implemented in almost all modern processors.

Flag Name Description
Z Zero flag Indicates that the result of an arithmetic or logical operation (or, sometimes, a load) was zero.
C Carry flag Enables numbers larger than a single word to be added/subtracted by carrying a binary digit from a less significant word to the least significant bit of a more significant word as needed. It is also used to extend bit shifts and rotates in a similar manner on many processors (sometimes done via a dedicated X flag).
S / N Sign flag / Negative flag Indicates that the result of a mathematical operation is negative. In some processors, the N and S flags are distinct with different meanings and usage: One indicates whether the last result was negative whereas the other indicates whether a subtraction or addition has taken place.
V / O / W Overflow flag Indicates that the signed result of an operation is too large to fit in the register width using twos complement representation.
P Parity flag Indicates whether the number of set bits of the last result is odd or even.

Read more about this topic:  Status Register

Famous quotes containing the words the most, common and/or flags:

    “Those who talk about individuality the most are the ones who most object to deviation, and in a few years it may be the other way around. Some day everybody will just think what they want to think, and then everybody will probably be thinking alike; that seems to be what is happening.”
    —Andy Warhol (1928–1987)

    “To complain of the age we live in, to murmur at the present possessors of power, to lament the past, to conceive extravagant hopes of the future, are the common dispositions of the greatest part of mankind.”
    —Edmund Burke (1729–1797)

    “The flags are natures newly found.
    Rifles grow sharper on the sight.
    There is a rumble of autumnal marching,
    From which no soft sleeve relieves us.
    Fate is the present desperado.”
    —Wallace Stevens (1879–1955)