Basics of Intel 8086 Assembly Language Programming
Q1: Take two numbers X and Y as inputs, perform the following operations, and store the outputs in variable Z. Finally, you will print Z as output. Assume X,Y,Z to be within 0 and 9.
• Z = X − 2Y
• Z=25−(X+Y)
• Z = 2X − 3Y
•Z=Y−X+1
Q2: You will be given an uppercase letter as input and will have to
- print its previous letter in lowercase format. You need not handle corner cases (i.e., ‘A’ will not be given as input).
- print its one’s complement (e.g., G ⇒ ⃝c ).
While you are encouraged to talk to your peers, ask help from teachers, and search relevant resources from online, under no circumstances should you copy code from any source. If found out, you will receive full 100% negative marks.
Submission Deadline: 10 PM, March 6, 2021
1




