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 common and/or flags:
“We are the creatures of imagination, passion, and self- will, more than of reason or even of self-interest.... Even in the common transactions and daily intercourse of life, we are governed by whim, caprice, prejudice, or accident. The falling of a teacup puts us out of temper for the day; and a quarrel that commenced about the pattern of a gown may end only with our lives.”
—William Hazlitt (17781830)
“No doubt I shall go on writing, stumbling across tundras of unmeaning, planting words like bloody flags in my wake. Loose ends, things unrelated, shifts, nightmare journeys, cities arrived at and left, meetings, desertions, betrayals, all manner of unions, adulteries, triumphs, defeats ... these are the facts.”
—Alexander Trocchi (19251983)