Professional Documents
Culture Documents
Electrical & Electronic Engineering: Independent University, Bangladesh
Electrical & Electronic Engineering: Independent University, Bangladesh
Marks
Q. No. COs Marks Course Code EEE323, ECR209, ETE317
Obtained
1 CO3 5 Course Title Microprocessor and Interfacing
3 CO3 5 Test ●
CT2 Mid Final
Date 08 / 11 / 2021
N/A N/A N/A N/A
Instructor Mustafa Mohammad Shaky
Question 01 [3 + 2 = 5 points] [CO3]: (a) Write an assembly language program for the Intel
8086 microprocessor that multiplies two 16-bit words in the memory locations called MULTIPLICAND
and MULTIPLIER, respectively, and stores the result in a memory location PRODUCT?
In the assembly language program, make sure to properly define the different segments
using the appropriate assembler directives.
(b) Draw a diagram showing the data arrangement in memory for the multiply program you wrote
in section (a)?
Answer:
Question 02 [1 × 5 = 5 points] [CO3]: In the Intel 8086 microprocessor, suppose the register
AX contains the data 13CD H. What will be the contents of AX after executing the following
programs? Assume that the initial content on the Carry Flag (CF) is zero for all the calculations. You
MUST clearly show ALL your steps in obtaining your final result for getting full and/or partial credit.
Please present your final result in Hexadecimal format.
Answer:
Question 03 [1 × 5 = 5 points] [CO3]: Given below are the contents of several Intel 8086
registers and PHYSICAL memory addresses (ALL in hexadecimal):
Registers: Memory Locations [Physical Address] = Contents
SI = 0003 [03000] = 1111 [93000] = 5000 [9FFA5] = AB37
DS = 9000 [04000] = 2222 [94000] = 6000 [9FFA6] = AB44
DI = 3000 [05000] = 3300 [95000] = 367A [9FFA7] = DD00
BX = 3000 [06000] = 4444 [96000] = 6666 [9FFA8] = EC01
BP = C345 [07000] = 5555 [97000] = 10C5 [9FFA9] = CCCC
SP = 5600 [98000] = 1157 [99000] = 1218
For the following instructions, determine the contents of AX after the each of the instruction has been
executed:
Answer: You may fill the blank space above to show your answers.