CSC 220 Program #1"Sending out an S.O.S" Program #1 is:
|
DescriptionYour mission is to implement a "sum of squares" algorithm in Intel assembly. This is the simple program I handed out in class as a MIPS example. Its the one that prints the sum of the squares of numbers from 1 to 100. Please make the following minor (ha!) modifications:
int sum_of_squares( int n) So, your program should query the user for "n", call sum_of_squares(), and then print the answer. So, the program should include a loop, a function call, an if statement, using scanf() and printf(), local variables, and more! This should be a nice start in our journey toward learning assembly language programming.
|
LogisticsPlease place your completed code in the k: drive. This should include:
You must comment your code. Uncommented programs will face fierce and heavy penalties. Tell me what each block of assembly code is meant to accomplish. Also, please use meaningful names for labels, so that your code is easier to follow. Of course, programs that don't even compile will face a very difficult judgment as well. And BTW, if we have any math-oriented smarty-pants types... please use a loop to figure the answer as in the sample program, and not a formula. Ha!
|