1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C to MIPS

Discussion in 'Assembly Language Programming (ALP) Forum' started by kyle01, Feb 19, 2016.

  1. kyle01

    kyle01 New Member

    Joined:
    Feb 19, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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:
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,010
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England

Share This Page