8 points of extra credit Test #2 Extra Credit:

Write and test the integer version of the power function:

pow(N,exp) = N^exp
int pow(int N, unsigned exp)

if exp=1 return N
if exp is even return pow(N, exp/2)2
Else return N*pow(N, exp-1)
Write a proper MIPS function following all register and stack conventions.
Include test cases showing that your function runs correctly.
(For an additional point add in support for exp=0)