You are on page 1of 2

Midterm Exam

Trimester: Fall, Year: 2022


Course: CSE331L
Microprocessor Interfacing & Embedded System Lab
Marks: 30, Time: 40 Minutes
There are five questions. Answer all the questions. Figures on the right hand margin indicate full marks. Submit .asm files for
Question 2 and 5 in Canvas

1. Suppose, we want to do 8-bit and 16-bit division. For these, which registers will store the remainder
and quotient for 8 and 16 bit respectively? [1.5]

2. Which register is used to store the result of 16-bit multiplication? [3]

Write an assembly code to find the sum of all elements of the following series. After finding the sum,
check whether the result is odd or even if off then print “The result is Odd” if even then “The result is
even
[10]

1+5+9+13+17+21
3. Write an assembly code to print the following pattern. After creating the star pattern, print a line
with your name and ID
[10]

You might also like