Hi I have this code that i need to convert to MIPS Code: int i, j, M, N, count; int a[]; int b[]; for(i=0; i<M; i++) { for(j=0; j<N; j++) { if((a[i] > 0) && (b[j] > 0)) { count = count + 1; } } } can anyone help?:worried:
Looks easy enough; how far have you got and where are you stuck? Are you able to write the code for the simplified Code: for (i=0; i<M; i++) { /* intentionally empty */ } Found this online: https://en.wikipedia.org/wiki/MIPS_instruction_set