<P> A status register may often have other fields as well, such as more specialized flags, interrupt enable bits, and similar types of information . During an interrupt, the status of the thread currently executing can be preserved (and later recalled) by storing the current value of the status register along with the program counter and other active registers into the machine stack or some other reserved area of memory . </P> <P> This is a list of the most common CPU status register flags, implemented in almost all modern processors . </P> <Table> <Tr> <Th> Flag </Th> <Th> Name </Th> <Th> Description </Th> </Tr> <Tr> <Td> Z </Td> <Td> Zero flag </Td> <Td> Indicates that the result of an arithmetic or logical operation (or, sometimes, a load) was zero . </Td> </Tr> <Tr> <Td> </Td> <Td> Carry flag </Td> <Td> 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). </Td> </Tr> <Tr> <Td> S / N </Td> <Td> Sign flag Negative flag </Td> <Td> 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 . </Td> </Tr> <Tr> <Td> V / O / W </Td> <Td> Overflow flag </Td> <Td> Indicates that the signed result of an operation is too large to fit in the register width using two's complement representation . </Td> </Tr> </Table> <Tr> <Th> Flag </Th> <Th> Name </Th> <Th> Description </Th> </Tr>

What is the function of condition codes in cpu