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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started