Posts

What is CPU Register?

Image
CPU Registers  -  Registers are used to quickly process the data which is currently used by the processor. A CPU contains a number of registers which are used to store the intermediate result, or temporary data produced during the execution of a program. Registers are used to quickly accept, store and transfer the data & instruction that are being used immediately by the processor. In a computer, a register is the fastest memory & that's why, the cost of registers are too expensive. Registers comes at the top of Memory Hierarchy Design. Types of Registers -  A CPU contains various types of registers whose number varies from processor to processor, some processors contain less registers & some more. On the basis of their specific functions, registers are classified into three parts. 1.General Purpose Register 2.Accumulator 3.Special Purpose Register 1. General Purpose Register -  These registers are used to store data and intermediate results produc

Flag Register in 8086 microprocessor

Image
Flag Register   :- Flag register or Status register is a type of special purpose register which contains a number of flags, either to indicate certain conditions(arising after ALU operations) or to control certain operations . The Flags which indicate certain conditions are called Condition/Status Flags . The Flags which indicate certain operations are called Control Flags . These flags are in bits, which is called as Flag Bits . It Changes from 0 to 1 or 1 to 0 (Depending upon the value of result after ALU operation). A flag is a flip-flop which is SET ( means 1 ) or RESET (means 0) by the processor  either to indicate certain conditions or SET(1)/RESET(0) by the programmers to control certain Operations. Intel 8086 microprocessor contains 16 bit flag register, in which only 9 are Valid/Active Flag bits, remaining 7 bits are undefined . Intel 8086 microprocessor contains 6 Status/Condition flags & 3 Control flags . Condition/Status Flag :-      1.Carry Fl