From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Fri 29 Oct 1999 - 11:38:10 IST
Oops! Mistake... This is the correct one
factorial:
.mask ^<r5>
movl (ap), r0
bneq work_to_do
incl r0
ret
work_to_do:
movl r0, r5
decl r0
pushl r0
calls #1, factorial
mul2 r5, r0
ret
fact_test:
.mask ^<>
pushl #30
calls #1, factorial
; result in r0
Later,
Kenn
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:48 GMT