Introduction to 80x86 Assembly Language Programming and Computer Architecture by Richard Detmer, 2nd edition, page 207, number 1
-
Write a procedure discr that coulod be described in C/C++ by
int discr(int a, int b, int c)
// return the discriminant b*b-4*a*c
that is, its name is discr , it has three integer parameters, and it is a value-returning procedure.
Follow the cdecl protocol and write a short windows32 test-driver program to test the procedure.