Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Assembly MIPS Help!!

Name: someguy 2009-01-04 16:10

Guys i need help for this fastttt please!

Declare and initialize two arrays of 64 integers as part of the program.  The program:
1.    fills the array x using the formula x[i]=-(i-10)* (i-10)+1000, where i is the index: 0-63;
2.    finds the minimum element of the array x and displays it and its position to the terminal window;
3.    calculates the sum of the elements of array x and displays it to the terminal window;
4.    copies the array x to array y.
Each subtask should be written as a call of a user function.

Name: someguy 2009-01-04 16:53

In java is so easy to do but i don't know much about assembly yet ;[

 public static void main(String[] args)
 {
   int[] array = new int[64];
   for (int i=0;i<=63;i++)
   array[i] = -(i-10)*(i-10)+1000;
   System.out.println("The End! :)");
 }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List