CS 2734
Computer Organization II
This laboratory is designed to help you review MIPS assembly language and to introduce you to the floating point operations.
Prior to the laboratory, you should do the following:
float vectornorm(float a[], float b[], int n)
{
int i;
float sum;
sum = 0.0;
for (i = 0; i < n; i++)
sum = sum + a[i]*b[i];
return sum;
}
read_array function from laboratory 4 to
read in an array of floats.
read_array to read in array1 and
array2.
sum after the call.
For checkoff: