Assignment 5

Due November 1, 2002 in class

Write a NASM assembly language procedure with the prototype int isPrime(unsigned int), which returns 1 if the argument is a prime number, 0 otherwise. Place the assembly procedure in a file named isPrime.asm .  Test the isPrime procedure by calling it from the main function of a C program defined in a file named test.c. Turn in the source code for the assembly language procedure and some test results.