Mips translating problems
问题 I am having trouble translating this pseudo code to mips assembly i have added the registers i am using to help understand what is going on # if (n == 1) # return 1 # else if (n == 2) # return 6 # else # return 2*hex(n-1) - hex(n-2) + 4 # (hex) Registers: # $a0 - n, the argument # $v0 - the result the n-th Hexamorphic number # $t0 - holds hex(n-2) # $t1 - holds constants 1 # $t2 - holds constant 2 here is where i am at in my code i feel confident about hex: and elseif: but the else: is where