The Wayback Machine - https://web.archive.org/web/20240810081530/https://www.geeksforgeeks.org/difference-between-register-and-buffer/
Open In App

Difference between Register and Buffer

Last Updated : 28 Aug, 2020
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

1. Register :
Registers are the smallest holding data elements that are built into processor itself. These are memory locations that can be directly accessible by processor. It holds small amount of data around 32-bits to 64-bits and may hold an instruction, a storage address or any kind of data such as a bit sequence or individual characters.

For example : Accumulator register, Program counter, Instruction register, Address register, etc.

2. Buffer :
Buffer is a temporary storage area, usually a block in memory, in which items are placed while waiting to be transferred from an input device or to an output device. It is mostly used for input/output processes. As an example, if you were to print a long document, you would not want your CPU waiting around asking your printer “Are you ready for another paragraph?” Instead, CPU will fill a memory buffer with document’s data, instruct printer to print buffer contents, and go back to its other business.



Difference Between Register and Buffer :

S.No. Register Buffer
1. Registers is a small amount of fast storage element into the processor. Buffer is used to compensate for difference in speed between two processes that exchange or use data.
2. It is located on the CPU. It is an area of RAM .
3. It is used to store and retrieve information from them. It is mostly used for input/output processes.
4. It holds operands or instruction that CPU is currently processing. It holds data for advance processing.
5. It is used to store data temporarily for processing and transfer. It is used to store data temporarily before using them.
6. It increase the accessing speed of CPU. It does not increase accessing time.
7. Loop counters is example of register. Streaming music or streaming video is example of buffer.



Similar Reads

Difference between Register Mode and Register Indirect Mode
Prerequisite - Addressing Modes 1. Register Mode: In register addressing mode, the operand is placed in one of the 8-bit or 16-bit general-purpose registers. The data is in the register that is specified by the instruction. Example: MOV R1, R2 Instruction has register R2 and R2 has operand. 2. Register Indirect Mode: In register indirect addressing
3 min read
8085 program to access and exchange the content of Flag register with register B
Problem - Write an assembly language program in 8085 microprocessor to access Flag register and exchange the content of flag register F with register B. Example - Assumptions - Initial values of flag register, register B and stack pointer are is 00, 3F, and 3FFF respectively. PSW stands for PROGRAM STATUS WORD. PSW combines accumulator A and flag r
3 min read
Difference between Memory based and Register based Addressing Modes
Prerequisite - Addressing Modes Addressing modes are the operations field specifies the operations which need to be performed. The operation must be executed on some data which is already stored in computer registers or in the memory. The way of choosing operands during program execution is dependent on addressing modes of instruction. "The address
4 min read
Difference between Static variables and Register variables in C
static variables Static variables have a property of preserving their value even after they are out of their scope! Hence, static variables preserve their previous value in their previous scope and are not initialized again in the new scope. Syntax: static data_type var_name = var_value; register variables Registers are faster than memory to access
2 min read
Difference between PC relative and Base register Addressing Modes
Prerequisite - Addressing Modes 1. PC relative addressing mode: PC relative addressing mode is used to implement the intra-segment transfer of control, In this mode effective address is obtained by adding displacement to the PC. EA = PC + Address field value PC = PC + Relative value 2. Base register addressing mode: Base register addressing mode is
2 min read
Difference between Register and Memory
1. Register : Registers are the smallest data holding elements that are built into the processor itself. These are the memory locations that are directly accessible by the processor. It may hold an instruction, a storage address, or any kind of data such as a bit sequence or individual characters. For example, an instruction may specify that the co
2 min read
Difference between Cache Memory and Register
1. Cache Memory: The cache is a smaller and fast memory component in the computer which is inserted between the CPU and the main memory. To make this arrangement effective. The cache needs to be much faster than the main memory. This approach is more economical than the use of fast memory devices to implement the entire main memory. 2. Register: Re
2 min read
Difference between Buffer and Cache
1. Buffer : Buffer is a temporary storage area, usually a block in memory, in which items are placed while waiting to be transferred from an input device or to an output device. It is mostly used for input/output processes. As an example, if you were to print a long document, you would not want your CPU waiting around asking your printer “Are you r
2 min read
Register content and Flag status after Instructions
Basically, you are given a set of instructions and the initial content of the registers and flags of 8085 microprocessor. You have to find the content of the registers and flag status after each instruction. Initially, Below is the set of the instructions: SUB A MOV B, A DCR B INR B SUI 01H HLT Assumption: Each instruction will use the result of th
3 min read
8085 program to count the number of ones in contents of register B
Problem: Write an assembly language program to count the number of ones in the contents of register B and store the result at memory location 3050. Example: Algorithm: Convert the decimal number in Accumulator to its binary equivalent.Rotate the digits of the binary number right without carry.Apply a loop till the count is not zero to change the va
4 min read
three90RightbarBannerImg