Question: Write a program in assembly code to read three numbers. Each number is between 0 and 9. Then, Divide the first two, then multiply the

Write a program in assembly code to read three numbers. Each number is between 0 and 9. Then, Divide the first two, then multiply the result by the third number. So if the input is:

4 2 2

The program should do this:

4 / 2 = 2

2 * 2 = 4

It should ONLY display the final result, which is 4, I do not need to see anything else other than the final value. So if I test it with input like:

9 2 3

it should display 12

Another example, if the input is:

9 1 3

the program should display 27

Input is always 3 numbers

Each input number is 2 bytes long. A space followed by a number. The number is between 0 and 9

NO DIVISION BY 0. SO THE SECOND NUMBER CAN NOT BE 0 DO NOT WORRY ABOUT THIS CASE (since we did not take if statement yet)

Note that 4 is 2 bytes, because it's space 4, and 2 is two bytes, because it's space 2 and 3 is space followed b

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 Databases Questions!