Question: Questions 1 ) Write an x 8 6 - series assembly language program, Lab 6 . asm, that prompts the user to input two single

Questions
1) Write an x86-series assembly language program, Lab6.asm, that prompts the user to input two single-digit num-
bers and calculates their sum. For this exercise, the user will only input numbers that ensure the result is a single-digit
number (at most 9). For example, if the first input number is 6, the second number can only be 0,1,2, or 3. Your
program should produce the following output:
Please insert number 1
6
Please insert number 2
3
Adding two numbers...
The answer is 9
Note: Remember that subroutine 01 reads a single integer as ASCII. Therefore, you need to adjust the offset to
obtain the numerical value. Similarly, subroutine 02 prints values in ASCII.
Evaluation:
Outputting just the sum without the strings will receive no marks. 5 marks will be awarded for string output with no
sum. 10 marks will be awarded for the complete solution. Comment extensively!
Submission instructions
Submit your laboratory solutions via Nexus.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!