Question: Write an assembly language program that repeatedly prompts the user to enter signed decimal integer numbers. The program should be run from the command prompt,

 Write an assembly language program that repeatedly prompts the user to

Write an assembly language program that repeatedly prompts the user to enter signed decimal integer numbers. The program should be run from the command prompt, output a text prompt to the screen, and then wait for the user to type in a number followed by the Enter key. (The legitimate range of user input values is any signed integer that can be represented in 32 bits.) After each number is entered, the program should determine and display the following information about the number: whether it is positive or negative; whether or not its absolute value is less than 10000; and whether or not it is evenly divisible by 8. For example, if the user entered the number +5, the output generated by the program should look similar to this +5 is a positive number The absolute value of +5 is less than 10000 +5 is not evenly divisible by 8. On the other hand, if the user entered -32768, the output would look like this 32768 is a negative number The absolute value of-32768 is greater than 10000 32768 is evenly divisible by 8. After determining and displaying the above information, the program should prompt the user to enter another number. This process should continue until the user enters the value 0 (which is neither positive nor negative) At that point, execution should terminate and return to the command prompt. Assemble, link, and test your program. Make sure to test it for each of the eight possible input cases (permutations of positive vs. negative, absolute value 10000 vs. 2 10000, evenly divisible by 8 vs. not evenly divisible by 8), as well as the ninth possibility (the special case of 0 which exits the program) When you are sure it is working, run it from the command prompt and capture a screen shot(s) of a test run that illustrates all nine possibilities and the corresponding outputs. Write an assembly language program that repeatedly prompts the user to enter signed decimal integer numbers. The program should be run from the command prompt, output a text prompt to the screen, and then wait for the user to type in a number followed by the Enter key. (The legitimate range of user input values is any signed integer that can be represented in 32 bits.) After each number is entered, the program should determine and display the following information about the number: whether it is positive or negative; whether or not its absolute value is less than 10000; and whether or not it is evenly divisible by 8. For example, if the user entered the number +5, the output generated by the program should look similar to this +5 is a positive number The absolute value of +5 is less than 10000 +5 is not evenly divisible by 8. On the other hand, if the user entered -32768, the output would look like this 32768 is a negative number The absolute value of-32768 is greater than 10000 32768 is evenly divisible by 8. After determining and displaying the above information, the program should prompt the user to enter another number. This process should continue until the user enters the value 0 (which is neither positive nor negative) At that point, execution should terminate and return to the command prompt. Assemble, link, and test your program. Make sure to test it for each of the eight possible input cases (permutations of positive vs. negative, absolute value 10000 vs. 2 10000, evenly divisible by 8 vs. not evenly divisible by 8), as well as the ninth possibility (the special case of 0 which exits the program) When you are sure it is working, run it from the command prompt and capture a screen shot(s) of a test run that illustrates all nine possibilities and the corresponding outputs

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