

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CSC 3210 – Assignment 2 Summer 2008 due Thursday, July 3rd^ at 10:00 a.m. Program Description: Write an assembly language program to find the maximum of y = x^6 – 14x^2 - 56x for the range -4 ≤ x ≤ 6, by stepping one by one through the range. During each iteration, print out a message stating the current value of x and the corresponding value of y. After all iterations, print out a final message stating the max value of y and the corresponding value of x that generated ymax. If there are multiple values of x that generate ymax , you only need to indicate one of them. Also, make sure to define the values of the coefficients 14 and 56 as constants a1 and a2 – the TA may change these values to further test your code. Try to eliminate as many nop instructions as possible and also try to minimize the length of your code. You may run the program using gdb to verify correctness. Make sure to pay close attention to the requirements above. Requirements: