0% found this document useful (0 votes)
17 views3 pages

05-10-2024 Assignment 1, Due by 11-10-2024

Uploaded by

samali8453
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

05-10-2024 Assignment 1, Due by 11-10-2024

Uploaded by

samali8453
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

The University of Lahore, CS&IT Department

Computer Organization & Assembly Language


Assignment # 1
Start Date: 05/10/2024 Section: I Total Marks: 50

Due Date: 11/10/2024 Program: BSCS


Instructions
1. No submission after deadline.
2. Assignment must be submitted individually.
3. Understanding of the problems is part of the assignments.
4. You will get Zero marks if found any type of cheating.
5. Upload the solved assignment (soft copy) at university portal before the deadline

1. Differentiate between microprocessors: 8086 and 8088, 80186 and 80286. (5)
2. In 8086 architectures, if a code segment = 1234H 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


6. Predict the output of the following lines of code, taking into account that all values
are in hexadecimal format. The variables VAR1 and VAR2 are both 8 bits long.
Execute the code in DOSBOX's debug mode or on EMU 8086, providing proper
screenshots. Additionally, if an error occurs, provide a brief explanation for the error.
In case of DOSBOX, student has assigned the first character of their name as a drive
letter while mounting. (20)

Serial # Instruction Values Before Values After


1 MOV DX,CX CX = 9234 H DX = 7654 H DH = ?
2 MOV AX,1234 AX = A3B5 H AL = ?
3 MOV BX, SI SI = ABDE H BH = ?
4 MOV DS, CS DS = A456 H CS = B890 H DS = ?
5 MOV DS, AX DS=FBE2 H AX=7DEF H AX = ?
6 MOV VAR1, AL VAR1 = 22 H AX = 6754 H VAR1 = ?
7 MOV VAR2, VAR1 VAR1 = CD H VAR2 = AB H VAR2 = ?
8 MOV AL,AH AX = DE34 H AX=?
9 MOV CL,SI CX = 2345 H SI=A0CF H CL = ?
10 MOV CS,CX CS = 0200 H CX = 0A00 H CS = ?

You might also like