University of Salahaddin
College of Engineering
Software & Informatics Dep.
COMPUTER ARCHITECTURE
2 N D S TA G E
A S S I S TA N T L E C T U R E R : E S I L S E M I R K H U R S H E D
[ L e c 4]
2020 – 2019
How to calculate the physical address in 8086
mp?
• Physical address is obtained by shifting the
segment address one bit to the left and adding
the offset address.
logical address 2000:1000
• To calculate effective address of memory:
BIU uses the formula as:
Effective Address = starting address of segment + offset
The effective address of logical address 2000:1000
Example
• E.g.1: Calculate the effective address if
CS=1400H and IP=1200H
14000
1200 +
15200 H
• E.g.2.: Calculate the effective address if
SS=2000H and BP=3000H ? #HOME WORK
The content of the following registers are:
o CS=1111H
o DS= 3333H
o SS= 2325H
o IP= 1232H
o SP= 1100H
o SI= 0020H
Calculate the physical address for [CS,DS and SS].
Sol:
CS,DS and SS are segments.
IP, SP and SI are offsets.
CS= 1111H , IP= 1232H
E.A = 11110 H
1232 H +
12342 H 20 bit address
H.W \\Calculate the effective address for the [DS and SS].