Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CS401 Assignment No.

1 2020

Visit Our Website To get Latest VU Assignments, GDBs


http://www.vufirst1.site

Question No. 1: Calculate the physical address for the following set of segment offset pairs.
a) B2C0:FA12

Solution:

Segment address * 10 + offset address

B2C0H * 10H + FA12H

C2612H

b) A100:12BE

Solution:

Segment address * 10 + offset address

A100H * 10H + 12BEH

A22BEH

Visit Our Website To get Latest VU Assignments, GDBs


http://www.vufirst1.site

Question No. 2: Suppose Data Segment (DS) =6FA4h and offset = 238Fh.
a) Calculatethe lower and upper ranges for Data Segment.
Solution:

For Lower
Segment address * 10H + 0000H
6FA4h *10H
6FA40H

Upper range
Segment address * 10H + FFFFH
6FA4h * 10H
6FA40H + FFFFH
7FA3F4

b) Compute the logical address, and the physical address.


Solution:

Logical address
6FA4h : 238Fh
Physical address
Segment address * 10 + offset address
6FA4H * 10H + 238FH
71DCF4h

Visit Our Website To get Latest VU Assignments, GDBs


http://www.vufirst1.site

You might also like