I am making a beginning at MIPS and I am trying to write a simple code that is minimized Runs on the given array, compared to 10 cells, tells 9 cells, and prints the largest number on the screen.
I have written a code which resolves this problem, but I do not know how to change it (without Empice GCC) a working MIPS assembly code.
I wrote the code:
int n = 9, i = 0, largest = 0; Ent ARR [N] = -2, 3, 9, -1, 5, 6, 10, 52, 9; While (i & lt; = N) {if (arr [i] & gt; largest) largest = arr [i]; I ++; } Printf ("largest number:% d", largest); If any MIPS can write that code in the assembly, and explain it to me, then I will be more than happy.
Thank you!
I think you need Google "cross compiler"
Wiki
Here's a sample:
Comments
Post a Comment