- Status register
A status register or flag register (also: condition code register, program status word, PSW, etc.) is a collection of flag bits for a processor. An example is the FLAGS register of the x86 architecture.
The status register is a hardware register which contains information about process state. Individual bits are implicitly or explicitly read and/or written by the machine code instructions executing on the processor. The status register in a traditional processor design includes at least three central flags: Zero, Carry, and Overflow, which are tested via the condition codes that are part of many machine code instructions. 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 a reserved area of memory.
The most common flags
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.
Wikimedia Foundation. 2010.
Look at other dictionaries:
status register — būsenos registras statusas T sritis automatika atitikmenys: angl. status register vok. Statusregister, n; Zustandsregister, n rus. регистр состояния, m pranc. registre d état, m … Automatikos terminų žodynas
Control/Status Register — Control and Status Register (CSR) is a register in many central processing units that are used as storage devices for information about instructions received from machines. The device is generally placed in the register address 0 or 1 in CPUs  … Wikipedia
Register renaming — In computer engineering, register renaming refers to a technique usedto avoid unnecessary serialization of program operations imposed by the reuseof registers by those operations.Problem definitionPrograms are composed of instructions which… … Wikipedia
Status of religious freedom by country — The status of religious freedom around the world varies from country to country.CountriesAfghanistanThe current government of Afghanistan has only been in place since 2002, following a U.S. led invasion which displaced the former Taliban… … Wikipedia
Register (Computer) — Als Register bezeichnet man in der Digital oder Computertechnik Speicherbereiche, die innerhalb eines Prozessors direkt mit der eigentlichen Recheneinheit verbunden sind und die unmittelbaren Operanden und Ergebnisse aller Berechnungen aufnehmen … Deutsch Wikipedia
Register office — In England and Wales, The Register Office is primarily the local office for the registration of births, deaths and marriages (BD M), and for the conducting of civil marriages. Set up by Act of Parliament in 1837, the statutory registration… … Wikipedia
Status — Verfassung; Konstitution; Stand; Befindlichkeit; Zustand; Konstellation; Lage; Kontext; Umstand; Lebenslage; Situation; Sachlage; … Universal-Lexikon
Status of same-sex marriage — The current status of same sex marriage changes nearly on a daily basis as legislation and legal action takes place around the world. Summarized in this article are the current trends and consensus of religions and political authorities… … Wikipedia
Processor register — In computer architecture, a processor register is a small amount of storage available as part of a CPU or other digital processor. Such registers are (typically) addressed by mechanisms other than main memory and can be accessed more quickly.… … Wikipedia
x86 debug register — On the x86 architecture, a debug register is a register used by a processor for program debugging. There are six debug registers, named DR0...DR7, with DR4 and DR5 as obsolete synonyms for DR6 and DR7. The debug registers allow programmers to… … Wikipedia