mercredi 25 février 2015

How to write 2 Dimensional arrays in MIPS


Vote count:

0




Does anyone have a simple example of how to read in 2D arrays in MIPS? I'm currently using a 1D array throughout a lengthy program to do matrix multiplication, but it's becoming very tedious and confusing.


For example this is what I am trying to translate from C:



void read(int x[10][10], int m,int n)
{
printf("Enter Matrix Value Row by Row\n");
for (i=0;i<m;i++)
for(j=0;j<n;j++)
scanf("%d",&x[i][j]);

}


asked 48 secs ago







How to write 2 Dimensional arrays in MIPS

Aucun commentaire:

Enregistrer un commentaire