iterative factorial variant
what must you add to make this code execute correctly?
fact: cmp arg1, #0
jump.ne next
load val, arg2
rts
next: mul arg2, arg1
sub arg1, #1
jsr fact
????
Previous slide
Next slide
Back to first slide
View graphic version