Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a simple integer calculator. You may either use Microsoft Visual Studio or the DOS command prompt window to assemble, link and execute the program.

Create a simple integer calculator.

You may either use Microsoft Visual Studio or the DOS command prompt window to assemble, link and execute the program. You need to submit a ZIP file that contains the assembly language source code (.ASM), the executable program (.EXE), and sample output from running the program. Optionally any other documentation you wish to provide that explains the program or problems you encountered.

The program should execute as follows:

Enter first number or 0 to exit:

Enter second number:

Enter operation: (+, -, *, /):

The answer is:

Loop to allow the user to perform another calculation.

You may use the functions ReadInt, ReadChar, WriteInt, WriteString, WriteHex and any other functions you find useful from Irvine32.lib. You do not need to use them if you prefer to write your own routines. The Irvine functions are documented in chapter 5.

A program that performs only the plus (+) and minus (-) functions successfully with be graded with a B. In order to be graded as an A, the program should also support the multiply (*) and divide (/) operations and display the quotient and remainder of the / (divide) operation, and display the answers in both decimal and hexadecimal.

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions