Professional Documents
Culture Documents
CS401-Assignment No.1 Solution by M.junaid Qazi
CS401-Assignment No.1 Solution by M.junaid Qazi
Please Carefully Read the Following instructions before attempting the Assignment
Solution
NOTE
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file before submitting copy
paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment/GDB check your assignment requirement file.
Q No1: 15 Marks
Write an assembly language program to store your Roll Number(Number part only) and calculate their
sum. Print a message on the screen that shows that the received number is even or odd.
Answer:
Code:
CONTACT ON WHATSAPP
+923074960034
CONTACT ON WHATSAPP
+923074960034
Output:
CONTACT ON WHATSAPP
+923074960034
Q No 2: 05 Marks
Find the offset address where Physical address is 4A37Bh and the segment address is 40FFh
Answer:
Offset Address=570219
M.juniad Qazi
WHATSAPP +923074960034
CONTACT ON WHATSAPP
+923074960034