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

Explain what is microcontroller?

689


Define the architecture of the 8085 microprocessor?

640


Given a circuit, draw its exact timing response?

3307


What are the two major differences between intr and other interrupts (hardware)?

1115


What is the bus in a microcontroller?

638






What is the distinguishing feature of db and ab?

1334


What is 'daisy-chaining' in reference to the 8086?

810


In the instruction FADD, What does F stands for

876


How is the 8085 microprocessor different from the previous 8 series microprocessors?

735


Which interrupt is not level-sensitive in 8085?

726


Explain sim and rim instructions?

775


Where 8086 mostly used & tell application of 8086?

684


State the number and type of registers in the 8086?

593


The input/output signals are related to which pins?

707


Describe the aaa instruction with the help of an example?

615