Search for question
Question

4. Write an ARM program that implements the following recursive function that calculates the n-th number in the Tribonacci sequence. Test the program by passing 10 to x. The result of tribonacci should be stored in register RO. Take a screenshot of the content in R0 after the program executes. (10 pt) int tribonacci (int n) { if (n == 1) return 1; else if (n == 2) return 1; else if (n == 3) else return 2; } return tribonacci(n - 1) + tribonacci(n-2) tribonacci (n = 3); +

Fig: 1