CS401 Assignment No. 1 Announced

No Comments
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]
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment