Question: Write an assembly program to read integers from the user until they enter a 0. Determine the smallest of these numbers (not including the 0).

Write an assembly program to read integers from the user until they enter a 0. Determine the smallest of these numbers (not including the 0). Store the smallest number in a location labelled Smallest and display this value. Prompt the user for each entered integer.

Write an assembly program to read any number of 32-bit signed integers from the user. The user will enter a 0 when they are finished. Determine the smallest of these numbers (not including the 0). Store the smallest number in a location labelled Smallest and display this value. Prompt the user for each entered integer and label your output.

Submit the Following File(s):

Smallest.asm

Required Input:

A series of zero or more 32-bit signed integers, followed by a 0.

Required Output:

Your output should look something like the following example.

Enter an integer: 2873

Enter an integer: 2626

Enter an integer: 0857

Enter an integer: -4872

Enter an integer: 48735

Enter an integer: -5887

Enter an integer: -287

Enter an integer: 202

Enter an integer: 0

The smallest number is -5887




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 Programming Questions!