I need this translated into MIPS Assembly (to work on Mars Assembler)
void mm ( double x[][], double y[][], double z[][], int n)
{
    int i,j;
    for (i=0; i !=n; i++)
        for (j=0; j !=n; j++)
            z[i][j] = 0.0;
    for (k=0; k !=n; k++)
        z[i][j] = z[i][j] + x[i][k] * y[k][j];
}