Question: Exercise # 1 ( 5 pts ) : Categorizing ASCII codes Write an assembly program which repeatedly prompts the user to enter a signed integer

Exercise #1(5 pts): Categorizing ASCII codes
Write an assembly program which repeatedly prompts the user to enter a signed integer (recall that read_int reads in 4-byte values into eax). The program stops immediately if the integer is strictly negative. For each entered positive integer the program prints one of the following statements:
"It's the ASCII code for a white space." which is equal to 32
"It's the ASCII code for a digit." which is between 48 and 57
"It's some non-extended ASCII code." which is between 0 and 127
"It's some extended ASCII code." which is between 128 and 255
"It's not an ASCII code." which is greater than 255
You can assume that the user enters valid numbers. Here is an example interaction with the program, with user input in boldface:Exercise #2(5 pts): Identifying DivisorsWrite an assembly program which repeatedly prompts the user to enter a signed integer until the user has entered an integer that's strictly negative. At that point the program prints out how many of the entered integers are divisible by 2, how many of them are divisible by 3, and how many of them are divisible by 5. You can assume that the user enters valid numbers. Here is an example interaction with the program, with user input in boldface:
Exercise # 1 ( 5 pts ) : Categorizing ASCII codes

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!