The University of Lahore, CS & IT Department
Computer Organization & Assembly Language
Assignment # 1
Instructions
1. Understanding of the problems is part of the assignments.
2. You will get Zero marks if found any type of cheating.
3. 25% deduction of over marks on the one-day late submission after due date
4. 50% deduction of over marks on the two-day late submission after due date
5. No submission after two days.
1. Differentiate between microprocessors: 8086, 8088, 80186 and 80286.
2. In 8086 architectures, if a code segment = 1234 and Instruction pointer (IP) = 00AB
show (5)
a. The logical address
b. The offset address
And also calculate
c. The physical address
d. The lower range
e. The upper range of code segment
3. In a computer system that uses segmentation, if the segment register contains the
value 5AF8 and the offset register contains 00C3, what is the 16-bit physical
address? (3)
4. Using following information, calculate the physical address of each segment for
general computer 8086 architectures. CS = 1234h, DS = 2456H, SS = 5464H, SP =
1100H, IP = 1232H, DI = 0020H. (5)
5. Fill the below memory contents using your SAP ID digits but in binary form. For
example, sample id: 70141234 (12)
Address Sample Data
00F0 7 (00000111)
00F1 0 (00000000)
00F2 1 (00000001)
00F3 4 (00000100)
00F4 1 (00000001)
00F5 2 (00000010)
00F6 3 (00000011)
00F7 4 (00000100)
Using above information, answer the following questions:
Part a: What are the contents of
i) Memory word at address 00F2?
ii) memory word at address 00F5?
iii) memory word whose higher byte is at address 00F3?
iv) memory byte at address 00F0?
v) memory double word whose higher byte is at address 00F6?
vi) memory quad word whose higher byte is at address 00F7?
Part b: What is
i) Bit-5 of byte 00F4
ii) Bit-3 of byte 00F7
iii) Bit-2 of byte 00F1
iv) Low nibble of byte 00F2
v) High nibble of byte 00F5
vi) Bit-20 of double word at 00F6