Question: Write a procedure named IsPrime that sets the Zero flag if the 32-bit integer passed in the EAX register is prime. Write a test program

Write a procedure named IsPrime that sets the Zero flag if the 32-bit integer passed in the EAX register is prime. Write a test program that prompts the user for an integer, calls IsPrime, and displays a message indicating whether or not the value is prime. Continue prompting the user for integers and calling IsPrime until the user enters -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
