How do I add the elements in a two-dimensional array and return the sum into register $v0? Thanks, Husslela
Here's the general procedure. A true array is contiguous in memory. Set the accumulator value ($v0, in this instance) to zero. Set an index register to the first element, add that element to the accumulator, increment the index, repeat for the entire length of the array (nRows * nColumns).
This may also help you to some extent. [thread=302]8085 Assembly language programming code for beginners[/thread].