You are on page 1of 1

Shahjalal University of Science & Technology, Sylhet

Department of Electrical & Electronic Engineering


Session: 2017-18
EEE-333
Course Title: Microprocessor & Interfacing

1. Write assembly code for each of the following expressions. 3


(a)A=5×A −7
(b)B= (A−B) ×(B+10)
(c)A= 6−9×A
2. Write a code to sum in AX the odd numbers in array A. 4
A DB 1,2,3,4,5,6,7,8,9
3. Suppose AL=1000011b, CL=2 and CF=1.Give the new content of AL after each of the 5
following instructions is executed. Assume all the instructions are executed in sequence.
(a)Set 7th and 3rd bits of AL, leaving other bits unchanged.
(b)SAR AL, CL
(c)RCL AL, CL
(d)Complement AL
(e)Display the value of AL on screen.
4. Write a program that will prompt the users to enter a hex digit character (0-9 or A-F) display it 8
on the next line in decimal and ask if they want to repeat it. If the user types “y” or “Y” the
program repeats; if the user types anything else the program terminates. Is the user enters an
illegal character prompts the user to try again.

You might also like