Hi there guys,

I am trying to understand how 2D arrays are implemented in MIPS assembly. Now I tried looking online for a few examples but they have no MIPS code so its hard for me to understand the logic behind implementing 2D arrays in MIPS.

Heres a random question I picked from a source.

On first glance, the question is easy to implement in C, C#, C++ and java however, when it comes to MIPS I get confused.

If someone can give me a sample code in MIPS then I would really appreciate it.

Cheers