You are on page 1of 3

Assignment #3

Name :

Rizwan Ali

Roll No:

17-Arid-1395

Class:
BSCS 6c
Submitted to :

Sir Usman

Q1): Problem Descriptions


1. Determine the physical address of a memory location given by 0A51
:CD90h.?

Solution:

1) So the segments and offsets are : segment= OA51, Offset=CD90

Formula
Physical address = segment*10 + offset

= 0A51*10 + CD90
= 0A510 + CD90
Physical address = 172A0h Ans

2) A memory location has a physical address 4A37Bh. Compute

a. the offset address if the segment number is 40FFh.


b. the segment number if the offset address is 123Bh.?

a.

Given data

Physical address=4A37Bh ; Segment=40FFh;

Formula:
Physical address = segment*10 + offset

Find:
Offset=?

Solution:

Physical address = segment*10 + offset

4A37Bh = 40FFh*10 + offset


4A37Bh = 40FF0h +offset

4A37Bh - 40FF0h =offset

938Bh = offset

b.

Given data:

Physical address=4A37Bh ; Offset=123Bh ;

Formula:

Physical address = segment*10 + offset

Find:

Segments=?

Solution:

Physical address = segment*10 + offset

4A37Bh = segment*10 + 123Bh

4A37Bh – 123Bh = segment*10

49140h = segment*10

49140/10 = segment

4914h = segment

You might also like