factorial variant 2
what goes wrong here?
registers not saved
fact: cmp arg1, #0
jump.ne recurse
load val, #1
rts
recurse: sub arg1, #1
jsr fact
mul val, arg1
rts
Previous slide
Next slide
Back to first slide
View graphic version