


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
CS 401 Computer Architecture and Assembly Language Programming exercise solution
Typology: Exercises
1 / 4
This page cannot be seen from the preview
Don't miss anything!



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) Solution: – Accessible memory addresses = 2number of address bits 224 = 16777216 bytes 16777216 / 1024 = 16384 KB 16384 / 1024 = 16 MB b) How many address bits are required for accessing 1GB RAM? (Show the step(s) for calculation of required address bits) (2.5 marks) Solution: – As you know 1GB means 1024MB so we can write it as 1GB = 1024 x 1MB As you know that 1MB is 220
0BA23 = physical address 3) D3B8 0 0 F222 +
E2DA2 = physical address 4) 00A0 0 0 1234 +
01C34 = physical address 5) 8FEF 0 0 0FFF +
90EEF = physical address b) What is effective address generated by the following instructions? Every instruction is independent of others. vusolutions Initially bx = 0x0101, bp=0x0222, si=0x1234, var1=0x1771 (1 mark each)
_1. mov ax, [bx+si]