Write an assembly program to create a calculator that repeatedly takes a basic math operator (+, -, *, /), and two numbers all from user input, and have it print the result of the mathematical operation. The mathematical operations should be wrapped inside of procedures. The two input numbers should be passed to the procedure either using registers or stack (your choice), the return result should be returned and printed in the caller procedure. The program should stop when user enters e Note : You need to submit the source code and output

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 2E
icon
Related questions
Question

Write an assembly program to create a calculator that repeatedly takes a basic math
operator (+, -, *, /), and two numbers all from user input, and have it print the
result of the mathematical operation. The mathematical operations should be
wrapped inside of procedures.
The two input numbers should be passed to the procedure either using registers or
stack (your choice), the return result should be returned and printed in the caller
procedure.
The program should stop when user enters e
Note : You need to submit the source code and output

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage