CS401: Computer Architecture and Assembly Assignment Solution

Wednesday, April 13, 2011


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

Total Marks: 20

Due Date:18/04/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;

§         Basic concepts of Computer Architecture and Assembly language
§         Addressing in assembly language
§         Physical address calculation
§         Effective address calculation
§         Relationship between Address bits and Memory accessibility


Assignment


Question No. 1:

a)
Suppose your computer has a processor with 24-bit address lines. What is maximum amount of memory that can be attached in your system? (Show the step(s) for calculation of maximum addressable memory) (2.5 marks)

b)
How many address bits are required for accessing 1GB RAM? (Show the step(s) for calculation of required address bits) (2.5 marks)

Question No. 2:
What are the contents of memory locations 0151, 0152, 0153, ………….,0158 if 0151 is starting address for Label1. (1 mark for each location)

Label1:  dw  8494
         db  42
         dw  54
         dw  7500
         db  01
            

Question No. 3:

a)
Calculate physical address using the following segment offset pairs. (1 mark each)


  1. 00EA:02A4
  2. 0100:AA23
  3. D3B8:F222
  4. 00A0:1234
  5. 8FEf:0FFF

b)
What is effective address generated by the following instructions? Every instruction is independent of others. Initially bx = 0x0101, bp=0x0222, si=0x1234, var1=0x1771
(1 mark each)

  1. mov ax, [bx+si]
  2. mov ax, [bx+100] (100 is in decimal)
  3. mov ax, [bp+si]
  4. mov ax, [var1+bp]
  5. mov ax, [si+var1]






Related Posts by Categories



Comments

No response to “CS401: Computer Architecture and Assembly Assignment Solution”
Post a Comment | Post Comments (Atom)

Post a Comment

Related Posts Plugin for WordPress, Blogger...