Recursive function using MIPS assembly lang.

# int ack ( int m, int n )
# if ( m == 0 )
# return n + 1;
#else if ( n == 0 )
# return ack( m, n-1 ):
# return ack ( m-1, ack(m, n-1 );

I am trying to implement this high level recursive function using the MIPS assembly architecture. Im just using pcSpim to simulate the machine. My problem is with the third return. Im not exactly sure how to implement that double recursion using assembly. Any hints?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!