Lecture2 Thirdmicroprocessorc
Lecture2 Thirdmicroprocessorc
Lecture Two
8086 Microprocessor
• BP - base pointer:
o Primarily used to access parameters passed via the stack
o Offset address relative to SS
• SP - stack pointer:
o Always points to top item on the stack
o Offset address relative to SS
o Always points to word (byte at even address)
o An empty stack will had SP = FFFEh
Physical address is obtained by shifting the segment address 4 bits to the left
and adding the offset address.
Question
The contents of the following registers are:
CS = 1111 H, DS = 3333 H ,
SS = 2526 H , IP = 1232 H ,
SP = 1100 H , DI = 0020 H
Calculate the corresponding physical addresses for the address
bytes in CS, DS and SS.
2. DS = 3333 H
3. SS = 2526 H