Registers are memory size is very small with very high-speed access.
Registers used to store data and instructions are being processed, while
that data and other instructions waiting to be processed are stored in
main memory.
Registers in the CPU consists of:
A. Instruction Register (IR) is used to store instructions that are being processed.
B.
Program Counter (PC) is a register that is used to store the memory
address of the place that contains the currently running process. During the process, the content is converted to PC main memory address containing instructions
The next to be processed. This allows to keep track of the next instruction in memory location.
C.
General-purpose registers, the register that has many many functions
associated with the data being processed or are currently running. Example
if it is used to hold the processed result is called the accumulator.
D. Memory Data Register (MDR), which registers are used to contain data or contain data that
saved to main memory as a result of CPU processing.
E. Memory Address Register (MAR) is used to hold data or address
instructions on the main memory to be taken or to be placed.
So the conclusion for the function of memory registers:
1. to store the instruction being processed.
2. to store the address of the location of main memory containing the instruction being processed
3. to accommodate the processed
4. ntuk accommodate data
or instructions sent from main memory to the CPU
5. to hold data or address
instructions on the main memory to be taken or to be placed.
Tidak ada komentar:
Posting Komentar