The Need of Memory Segmentation
The Need of Memory Segmentation
1. The BIU (Bus Interfacing Unit) contains four special purpose registers called as
segment registers. These are Code Segment (CS) register, Stack Segment (SS)
register, Extra Segment (ES) register and Data Segment (DS) register.
3. The number of address lines in 8086 is 20. So the 8086 BIU will send out a 20 bit
address in order to access one of the 1,048,576 or 1MB memory locations.
4. But it is interesting to note that the 8086 does not work the whole 1MB memory at
any given time. However it works with only four 64 KB segments within the whole 1
MB memory.
5. The four segment registers actually contain the upper 16 bits of the starting
addresses of the four memory segments of 64 KB each with which the 8086 is
working at that instant of time.
9. Figure shows one of the possible ways to position the four 64 KB segments within
the 1 MB memory space of 8086.