Beruflich Dokumente
Kultur Dokumente
CHAPTER 4
MEMORY ADDRESSING
real mode.
• Note that the first 1 M byte of memory is called either the real
o 8086/8088µP, via its 20-bit address bus, can address 2(20) = 1,048,576 bytes or (1
Mbyte) of memory locations.
o Thus the memory space of 8086µP is 1,048,576 bytes or 524,288 words. The
memory map of 8086µP as shown, where the whole memory space starting from
00000H to FFFFFH.
o The 8086µP operate in the Real mode memory addressing. Real mode operation
allows the microprocessor to address only the first 1 Mbyte of memory.
o Even though the 8086 has a 1 Mbyte address space, not all this memory is active
at one time.
o Actually, the 1 Mbytes of memory are partitioned into 64 Kbyte (65,536) segments.
The 8086µP allows four memory segments. The figure shows these memory
segments.
(figure)
Physical Address
Logical address, segment address and physical address are explained as follows:
o The logical address, also known as the effective address or offset address is
contained in the registers IP(instruction pointer), BP(base pointer), SP(stack
pointer), BX(16bit base register), SI(source index) or DI(destination index).
o The 16-bit content of one of the four segment registers (CS, DS, ES, SS) is
known as the base segment address.
o Offset and base segment address are combined to form a 20-bit physical
address (also called real address) that is used to access the memory.
1.MOV AX,[BP]
2.ADD DX [DI]
4.MOV [0405H],AX