COMSATS University Islamabad: Sahiwal Campus (Department of Computer Science)
COMSATS University Islamabad: Sahiwal Campus (Department of Computer Science)
Sahiwal Campus
(Department of Computer Science)
Course Title: MAL Course Code: CSC 321 Credit Hours: 3+1
Course Instructor: Maham Fatima Programme Name: BS Computer Science
Semester: 4th Batch Section: A,B Date: 5-7-2021
Time Allowed: : 3 hr Maximum Marks: 50
Student’s Name: Reg. No. CUI/ /SWL
Important Instructions / Guidelines:
Read the question paper carefully and answer the questions according to their statements.
Mobile phones are not allowed. Calculators must not have any data/equations etc. in their memory.
Q # 1. Find the result stored in AH register by performing RCL and RCR operation on following
instruction. [10]
a) RCL AH, CL
b) RCR AH, CL
Q # 2. Design a system interface of 8086 microprocessor with two 1KB RAM and two 8KBs ROM
by using 3*8 bit decoder (74LS138).
a) Write down memory maps (start, end) for each device (RAM, ROM). [10]
b) Reconstruct the schematic diagram for both devices and use separate decoder. [10]
Q #3. Assess the system reliability by carrying out test on your designed system in Q.no 2 and also
state system system’s strength and limitations. [6]
Q #4. Analyze and illustrate by constructing a machine code, how an 8086 microprocessor
interpret the following assembly language instructions. [3.5*4=14]
a) CMP CL, [BP]
b) Test DX, 9F0Ch
c) AND AX, 5h
d) MOV BH, BL
Page 1 of 3
Page 2 of 3
BEST OF LUCK
Page 3 of 3