Search for question
Question

3. Write an ARM program that implements the following recursive function that calculates the power of a number. Test the program by passing 2 to x and 10 to y. The result of pow should be stored in register R0. Take a screenshot of the content in RO after the program executes. (10 pt) int pow (int x, int y) { if (y == = 0) else return 1; return x * pow(x, y - 1); }

Fig: 1