Ads

Pages

Sunday, April 17, 2011

Cs401 assignment no 1 spring 2011 idea solution

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)

00EA:02A4

0100:AA23

D3B8:F222

00A0:1234

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)

mov ax, [bx+si]

mov ax, [bx+100] (100 is in decimal)

mov ax, [bp+si]

mov ax, [var1+bp]

mov ax, [si+var1]

No comments:

Post a Comment