You are on page 1of 1

1, Define your problem: Find maximum number in the a vector Test

2, Algorithm
3, Data structure
-

Test: will be stored in 10 words in the memory. The start address of Test
will be given as an argument of the FindMax function (Register a0)
Max, t: variable to store the value of Test elements => Max, t are words
=> stored in registers: s0 (Max), to(t)
I= 0,.,9. And the address of Test[i] = 0, 4, , 36 => use index stored in
register s1 which get values 0.36
Return value stored in register v0.

4, Implementation
5, Testing (Experiment)
6, Extension

You might also like