Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Write a program (in assembly code 8086) 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 by 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

Problem: Evaluate the integral: I = 1- 1 dx 9

Answered: 1 week ago

Question

Describe the Indian constitution and political system.

Answered: 1 week ago

Question

Explain in detail the developing and developed economy of India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = X 52+7 - 1)(x+2) dx

Answered: 1 week ago

Question

LO4 Specify how to design a training program for adult learners.

Answered: 1 week ago