Beruflich Dokumente
Kultur Dokumente
Register Organization
THEORY
INTRODUCTION TO 8086
Register Organization:
In 8086 there are 2 types of registers
1) general purpose register
2) special purpose registers.
These registers, in general are 16 bit registers.
The general purpose registers can be used as 16 or 8 bit
registers.
General purpose registers are generally used for
1) holding data,
2) holding variables,
3) holding intermediate results temporarily for other
purposes like counter,
4) holding offset for some addressing modes.
Special purpose registers are used for
1) holding segment registers,
2) holding index registers,
3) holding offset storing registers for particular addressing
mode.
Registers are the four types of
1) general data registers
2) segment registers
3) pointer and index register and
4) flag registers.
Introduction to 8086
Register Organization
THEORY
Introduction to 8086
Register Organization
THEORY
Introduction to 8086
Register Organization
THEORY
Flags:
0101
0101
0100
0000
0100
0101
0001
0101
0101
0000
0101
0000
0101
PHYSICAL ADDRESS:
0101
0100
0110
0101
0101
Introduction to 8086
Register Organization
THEORY
Memory segmentation:
In this physical available memory is divided into logical
segments. Each segment is of size 64 kb. The 16 bit contents
of the segment register actually points to the starting
location of a particular segment.
And in order to address any location in the segment, we use
offsets, which is again 16 bit addresses.
So the base address is from 0000 h to F000 h.
Offset address is from 0000 h to FFFF h.
Physical address becomes 00000 h to FFFFF h.
Memory segments are actually of two types:1) non overlapping
2) overlapping.
Advantages of memory segmentation are as follows:
1) allows the memory capacity to be 1 MB (Although the
addresses handled are 16 bits).
2) allows the placing of code, data and stack portion of the
same program in different parts of memory, for code and
data protection.
3) Permits a program and/or its data to be put in different
areas of memory, each time the program is executed.