What is the purpose of segment registers in 8086?
There are 4 segment registers present in 8086. They are
1. Code Segment (CS ) register
2. Data Segment (DS ) register
3. Stack Segment (SS ) register
4. Extra Segment (ES ) register
The code segment register provides the address of the current code segment. I.e. it will points out where the instructions, to be implemented, are stored in the memory.
The data segment register points out where the operands are kept in the memory.
The stack segment registers points out the address of the current stack, which is used to keep the temporary results.
f the amount of data used is more the Extra segment register points out where the huge amount of data is stored in the memory.