You are on page 1of 6

University of Salahaddin

College of Engineering
Software & Informatics Dep.

COMPUTER ARCHITECTURE
2 ND STA G E

ASSISTA NT LEC TU RER : ES IL SEM IR KHURSH E D

[Lec 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

Segment Offset Special Purpose

CS IP Instruction addressing

SS SP, BP Stack addressing

DS BX, DI, SI Data addressing

ES DI String Destination addressing


• 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 +
----------
15200H

• 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.

H.W \\ Calculate the effective address for the [DS and SS].

You might also like