What is the role of segment register?

Answer Posted / shabir gojree lpu, jalandhar

The segment register in the 80806/8088 microprocessor
contains the base address (divided by 16) of a region of
memory. Since the register is 16 bits in size, there are
65,536 possible segment base addresses, ranging from 00000H
to FFFF0H, in increments of 00010H.

After address translation at the instruction level, the
generated 16 bit offset is added to the selected segment
register times 16 to generate a physical address between
00000H and FFFFFH. (If the offset and base go past FFFFFH,
they wrap around back to 00000H.) Since the offset is also
16 bits in size, and since the overlap is only 4 bits
(times 16), then each 64 kb segment overlaps by 16 bytes.

There are four segment registers; CS, DS, ES, and SS,
standing for Code Segment, Data Segment, Extra Segment, and
Stack Segment.

CS is used for opcode fetches. DS is used for normal data.
ES is used for certain string operations as the destination
address. SS is used for stack and frame (BP) data.

The segment registers can be implicitly selected by
context, or they can be explicitly selected with a segment
prefix opcode.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various interrupts in 8086?

620


What is physical address?

624


How many hardware interrupts 8085 supports?

649


What location code memory space and data memory space begins?

1524


What is the purpose of the ale pin?

652






What is the function of ale and how does it works?

592


What all does a microprocessor comprise of?

600


Explain the instruction stream queue mechanism in the 8086?

565


Why stack is used in program?

661


What is base segment address?

641


If the crystal oscillator is operating at 15 MHz. What will be the PCLK output of 8284?

1158


What is the bhe signal? Explain its significance?

756


What is special purpose registers in 8086?

661


What type of memory is the stack?

621


What is 8051 microcontroller ?

631