ARM Architecture - Subroutines and Stack
Identify the error in this recursive ARM assembly function snippet:
What is the main problem?
factorial:
CMP R0, #1
BLE end_factorial
SUB R0, R0, #1
BL factorial
MUL R0, R0, R1
end_factorial:
MOV R1, R0
BX LRWhat is the main problem?
