Types of Instruction Register
The instruction register is of different kinds meant for particular operations. Examples of these are the MAR, the MBR, and GPR registers.
- General Purpose (GPR)
- Memory Address Register (MAR)
- Memory Buffer Register (MBR)
General Purpose (GPR)
GPR typically refers to a general purpose register that needs to have a duplicate of every current machine order issued by the CPU. Example: Suppose that every instruction was associated with some opcode having just one or more operands. The contents of the Instruction Register might look like this:
Diagram
Memory Address Register (MAR)
Many times “Instruction Register” means MAR that registers the address of the next instruction to be fetched. Example: Hence, if the other instructions are stored at the address 0x1000, then, the MAR will take up 0x1000.
Memory Buffer Register (MBR)
One more register which can be associated to the word “Instruction Register” is the memory buffer register (MBR). It holds items being loaded from or saved in the memory. Example: In some cases, the instruction itself can be kept in the MBR as the CPU reads it from memory.
Instruction Register
Do you ever wonder how your computer makes sense of your commands and responds accordingly? What is there to say? It is no magic, but a thing called the Instruction Register. “Fancier” is perhaps one way to say “It’s akin to the conductor at an orchestra where every note (instruction) should be perfect.”
Today in this article, we are going to explore about mystery that exists in the Instruction Register. Whether you are techie or just anyone who is interested in knowing what it actually does inside one’s computer; here comes our trip to unraveling these mysteries. Therefore, fasten you seat belts, come with me and allow us take a close look at the Instruction Register but in an easy-to-understand version.
- Central Processing Unit (CPU): These include a central processing unit (CPU) that is responsible for interpreting and following instructions from memory stored within various parts of a computing system. This unit has several parts which include the Instruction Register, ALU, and the Control Unit.
- Memory: Data and instructions are stored in memory in a computer system. Memory communicates with the CPU in the sense that it fetches, stores as well as processes the data.
Table of Content
- What is an Instruction Register?
- What is Program Counter?
- Difference Between Program Counter (PC) and Instruction Register (IR)
- How do Instruction Registers Work?
- Workflow Diagram of Instruction Register
- Types of Instruction Register
- Features of Instruction Register
- Importance of Instruction Register
Contact Us