We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS401 Assignment 01 Fall 2020 Solution / Discussion


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 1096

Replies to This Discussion

Share the Assignment Questions & Discuss Here.... 

CS401_Assignment_No_01_Solution_Fall_2020

Click on the below link

CS401_Assignment_No_01_Solution_Fall_2020

***********

Attachments:

CS401 Assignment No.1 2020 Solution

Question No. 1: Calculate the physical address for the following set of segment offset pairs.
B2C0:FA12
Solution:
Segment address * 10 + offset address
B2C0H * 10H + FA12H
C2612H

A100:12BE
Solution:

Segment address * 10 + offset address
A100H * 10H + 12BEH
A22BEH

Question No. 2: Suppose Data Segment (DS) = 6FA4h and offset = 238Fh.

Calculate the 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

Compute the logical address, and the physical address.
Solution:
Logical address
6FA4h : 238Fh
Physical address
Segment address * 10 + offset address
6FA4H * 10H + 238FH
71DCF4h

***********

Computer Architecture and Assembly Language Programming (CS401)

Assignment # 01

Total marks = 20

Deadline Date

November 30, 2020

Please carefully read the following instructions before attempting assignment.

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

You should concern the recommended books to clarify your concepts as handouts are not sufficient.

You are supposed to submit your assignment in .doc or docx format.

Any other formats like scan images, PDF, zip, rar, ppt and bmp etc. will not be accepted.

Lectures covered: 1-6

Topics covered: Segmented Memory Model and Addressing Modes

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

If you find any mistake or confusion in the assignment (Question statement(s)), please contact your instructor before the deadline. After the deadline, no queries will be entertained in this regard.

For any query, feel free to email at cs401@vu.edu.pk

 

Q 1. Calculate the physical address for the following set of segment offset pairs.

  1. B2C0:FA12                                              
  2. A100:12BE

Note: Write all the intermediate steps in detail.                                             Marks (10)

 

Q 2. Suppose Data Segment (DS) = 6FA4h and offset = 238Fh.

  1. Calculate the lower and upper ranges for Data Segment.
  2. Compute the logical address, and the physical address.                      Marks (10)

*******

CS401 Assignment 1 Solution:

 

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                                             

 

Question No. 2: Suppose Data Segment (DS) = 6FA4h and offset = 238Fh.

 

a) Calculate the 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

 

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.