What is an instruction register?

As far as computer hardware is concerned, the instruction register is an element in the central processing unit (CPU) of a computer or other device that holds a programming instruction that will be performed at the beginning of the next cycle of hours, as dictated by other parts of the CPU. Other CPU elements, such as the instructions decoder, rely on the instructions to keep this information so that they can be decoded, resolved and finally done. Some types of architecture of microprocessors may exist more than one instruction register, so more instructions can be processed simultaneously and create a style of assembly logic, known as a pipe. Generally, new instructions are provided by a register of instructions through another part of the CPU known as the program counter, which serves a very similar purpose, but can move forward to further instruction, while the information held by the instruction register is carried out.

The register is a number of physical switches on the microprocessor or circuit board that can be onNout or turn off, so each switch is a little equivalent. When several switches are connected, also called latchs, they are able to store binary data, such as numbers that can be transformed into memory addresses or instructions codes. Within the CPU, the instructions can hold either the address in the computer memory to perform the instruction that is performed or for efficiency, can hold the instruction itself. This information is transferred to the register through another register known as the program counter, which in most cases jumps forward for the next instruction to be carried out after the current instruction.

types of instructions processed registers are generally low -level assembly commands that are eventually converted to machine code or byte code. These differ significantly from the instructions in the higher -level language languages, as the assembly instructions work on a very small straight scale. One examples is a high -level code line that adds two numbers and stores resultsIn a variable that needs to be expressed only one line of code at a high level. When the code is compiled, a dozen or more instructions to complete the task could be generated, and each instruction is something simple, such as the mixing values ​​between the computer random access memory (RAM) and the tool register.

As soon as the instruction register is referred to the instruction, the instructions can be transferred to the instructions, so the instruction can be converted to a machine code. Links to memory sites that could contain variables or other information are resolved, and this information is sometimes placed in other registers. Finally, a real instructions will be performed. During this time, the CPU will increase the program counter to point to further instructions that will be according to the instruction register so that the process can repeat until the program is made.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?