ARM Architecture - Subroutines and Stack
What is wrong with this recursive ARM function that calculates factorial?
fact:
CMP R0, #1
BLE end
PUSH {LR}
SUB R0, R0, #1
BL fact
MUL R0, R0, R0
POP {LR}
end:
BX LR