hw2 - CSC 3210 Assignment 2 Spring 2011 due Thursday...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 3210 – Assignment 2 Spring 2011 due Thursday, February 17 th at 1:00 p.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:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/08/2011 for the course CSC 3210 taught by Professor Staff during the Spring '08 term at Georgia State.

Page1 / 2

hw2 - CSC 3210 Assignment 2 Spring 2011 due Thursday...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online