Question: I'm working in assembly using nasm, and need to create a program that performs simple calculations. The prompt is below: Write a program that contains

I'm working in assembly using nasm, and need to create a program that performs simple calculations. The prompt is below:

Write a program that contains 4 procedures:

ADD

SUBTRACT

MULTIPLY

DIVIDE

Read expressions from the user, such as:

1 + 2

4 - 3

2 * 3

4 / 2

.

Execute every expression by calling the proper procedure.

The end of user input is a period: .

The output for the above code should be:

1 + 2 = 3

4 - 3 = 1

2 * 3 = 6

4 / 2 = 2

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!