Quote:

The amount of happiness that you have depends on the amount of freedom you have in your heart

Friday, 13 April 2012

CS401 Assignment 1 Spring 2012


Assignment No. 01
Semester: Spring 2012
CS401: Computer Architecture and Assembly Language Programming

Total Marks: 20

Due Date:16 April, 2011

Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:

§  The assignment is submitted after due date.
§  The submitted assignment does not open or file is corrupt.
§  Solution is copied from any other source.

Note: You have to upload only .doc file. Assignment in any other format (extension) will not be accepted.

Objective
The objective of this assignment is to enhance your knowledge about;

§  Physical address calculation
§  Branching


Assignment


Question No. 1:

Calculate physical address of your AFD window contains CS and IP register (segment offset pairs).
Explain each and every step for calculating the physical address.         
                                                                                                                                    (Calculation:4 marks
                                                                                                                                     Explanation:3 marks
                                                                                                                                     Snapshot:3 marks )

Note: Provide snapshot of your AFD window. Please give us this type of your AFD window and mention which segment register value and offset value you have used for calculating physical address. Please see below sample snapshot.


Question No. 2:


Write a program to add these 8 numbers (15, 20, 25, 30, 35, 40, 45, and 50) with using conditional jump. Explain each instruction of program in your own words.    
                                                                                                                                                                                                                                                   
                                                                                                                                    ( Program:5 marks
                                                                                                                                      Snapshot: 5 marks )

Note: Provide snapshot of your program which will be run in AFD window. It is strictly prohibited the copied assignment.




No comments:

Post a Comment

“You can't change the past, but you can ruin the present by worrying about the future”