answersLogoWhite

0


Best Answer

Well, if your question is also "Why do we need registers?" then my answer would be that it quickens the mathamatical process of buying goods or services. If cashiers were good enough, and fast enough at math, there really wouldn't be a need.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Registers are an important part of any microprocessor or microcontroller. For any instruction to be executed, certain data has to be present and available so that the executions can be performed.

For example, adding two numbers requires the two numbers at 'hand.' This is where the registers come into picture. The two numbers to be added are saved on some registers. These are the memory that are available directly to the Arithmetic logic unit. So data (or memory location addresses) is directly read from these registers (accumulator A, B, C, D; generally) and the results are also saved on them, or the memory location pointed by them.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

A register is the lowest level of data storage in a computer. Registers also have the lowest read/write time of all types of memory in your computer, making them idea to perform small, repeated calculations.

Of course, each CPU has a limited number of registers, so they can only be used for very short term data storage while that data is being processed.

=====================================================================

Registers are areas of the CPU onto which data is loaded at the start or end of the computational processes undertaken by the CPU.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Registers are temporary storage areas in the CPU to use for doing work. Nearly everything you do with CPU instructions involve registers. Here are some of the types of registers and their purpose:

General purpose registers
- The majority of instructions involve general purpose registers. They are used for loading things into the CPU from memory and for writing to memory. They are used for arithmetic and logical operations. If you add, subtract, multiply, divide, compare, rotate, shift, etc., you are doing it to registers.

Instruction Pointer - This is not a user accessible register, but it is necessary since it keeps track of where the CPU is executing instructions.

Segment Registers - These registers are used for addressing memory. In real mode, they are necessary for specifying which chunk of memory you need to access. Real mode used 64k blocks of memory, so you had to tell it which 64k block to work with. In protected or virtual mode, they are used as selectors, and they are mostly off-limits to programmers while in those modes.

Flags Register - This is a register that contains the status flags for the various operations, and also denotes the CPU type and any error conditions. So if the result of a mathematical calculation overflows, is a negative number, if the result is equal, if carrying needs to be done, etc., this is where all that is recorded. If you do conditional jumps ("jump if equal," for instance), those instructions will look at the flags register to see if the execution needs to jump to the specified location. Conditional jumps are a bit like using IF, THEN, and GOTO together in BASIC, and the flags register makes them possible.

Stack Pointer - The system stack is a location of memory that is used for temporary storage. The PUSH instruction saves a general purpose register to the stack so the register can be freed up and used for something else, while maintaining what was there. The POP instruction moves the data back from the stack to a general purpose register. Each time something is copied to the stack the stack pointer moves down an address location. Each time something is copied from the stack, the stack pointer moves upward an address. The stack pointer determines where to read or write the stack data. In Real mode, the stack segment pointer is also used to determine the block of memory in which the stack pointer works.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

They provide the processor a quick area to store small amounts of information to use later on as relying on RAM or permanent storage may be much slower.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

to hold the data for execution unit

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What purpose do registers serve within the CPU?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How General register organization in CPU?

The registers in a CPU are organized according to their purpose. There are data registers and address registers. The address registers are in charge of pointing out where certain data stores are.


What are the instructions a CPU uses?

CPU is main part of computer,It processes the data using the registers inside the CPU. These are of different types and have different purpose of use. Due to these registers the CPU done processing.


What is a CPU registers?

¨Its provides internal storage within the CPU ¨It is a fastest type of storage ¨Its provides internal storage within the CPU ¨It is a fastest type of storage


What are the founction of the registers found in the CPU?

The registers are inside the CPU and await tasks you send to your compter from, The CPU picks these up and the registers then get to work to process them to give you an outcome. General Purpose Register (intel) gave these worktables names: AX, BX, CX & DX.


Where registers are located?

A register is a storage location within the CPU as part of Datapath. CPU consists of datapath and control unit. Datapath comprises of register file (which consists registers and logic ) ,ALU and memory.


What is the CPU use for?

CPU = Central Processing Unit This is where all the processing takes place inside the computer. CPU's are built in varying speeds - the higher the number the faster it is. Answer: It processes the data using the registers inside the CPU. These are of different types and have different purpose of use. Due to these registers the CPU done processing.


Where are registers located in computer?

registers are located in CPU.


What do registered provide for the CPU?

What do registers provide for the cpu?


What are the resistor in CPU?

Assuming you do indeed mean resistor, depending on the technology used to implement the CPU, resistors may be scattered everywhere throughout the CPU's circuits (e.g. vacuum tube logic, discrete transistor logic, TTL ICs) or there may be no resistors in the CPU's circuits at all (e.g. CMOS ICs).If instead you misspelled it and actually meant register, there are different places in a CPU where different registers may be implemented:general purpose registers are usually implemented in a small very high speed RAM easily accessible to the ALU and memory access circuitsvarious special purpose registers are implemented directly in the section of the CPU that uses them (e.g. a program status word register or the instruction register are probably part of the control unit, registers used to maintain the mapping of cache lines to main RAM will be in the cache units)if the CPU uses a single accumulator instead of general purpose registers the accumulator will be part of the ALU sectionetc.However there have been CPUs implemented with no internal registers. These CPUs mapped everything to reserved areas of RAM. These were very slow computers designed for extremely low cost.


Where would temporary data in a CPU be held?

in the registers


What are general purpose registers?

A GPR is a register which can hold EITHER data or instructions. Registers are dedicated memory storage areas inside the CPU itself and are used for carrying out immediate instructions, passing data, or receiving immediate results from a function.


What are the memory storage area built into the CPU called?

registers