Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MASM Assembly Programming Section Objectives: 1. Introduction to MASM assembly language 2. Defining variables (integer and string) 3. Using library procedures for I/O 4. Integer

MASM Assembly Programming Section Objectives: 1. Introduction to MASM assembly language

2. Defining variables (integer and string)

3. Using library procedures for I/O

4. Integer arithmetic Description: Write and test a MASM program to perform the following tasks:

1. Display your name and program title on the output screen.

2. Display instructions for the user.

3. Prompt the user to enter two numbers.

4. Calculate the sum, difference, product, (integer) quotient and remainder of the numbers.

5. Display a terminating message.

Requirements:

1. The main procedure must be divided into sections: introduction get the data calculate the required values display the results say goodbye

2. The results of calculations must be stored in named variables before being displayed.

3. The program must be fully documented. This includes a complete header block for identification, description, etc., and a comment outline to explain each section of code.

2. You are not required to handle negative input or negative results.

3. Find the assembly language instruction syntax in the lecture slides or the textbook.

4. Find help on using Irvine library procedures in the lecture slides or the textbook.

Example execution (user input is in italics):

Elementary Arithmetic by Wile E. Coyote Enter 2 numbers, and I'll show you the sum, difference, product, quotient, and remainder.

First number: 37 Second number: 5

37 + 5 = 42

37 - 5 = 32

37 x 5 = 185

37 5 = 7 remainder 2

Impressed? Bye!

Next step (original definition must be fulfilled):

1. Repeat until the user chooses to quit.

2. Validate the second number to be less than the first.

3. Calculate and display the quotient as a floating-point number, rounded to the nearest .001.

To ensure you receive credit you did, you must add one print statement to your program output which describes what you work on. You will not receive credit points unless you do this.

The statement must be formatted as follows...

--Program Intro-- **EC: DESCRIPTION --Program prompts, etc

For example, for extra credit option: Elementary Arithmetic by Wile E. Coyote **EC: Program verifies second number less than first. Enter 2 numbers, and I'll show you the sum, difference, product, quotient, and remainder. First number: 7 Second number: 9 The second number must be less than the first!

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

=+ (c) Show that the space is complete.

Answered: 1 week ago

Question

Describe the team dynamics at Facebook.

Answered: 1 week ago