exits successfully lol

This commit is contained in:
2026-06-12 13:28:10 -06:00
parent 30e73fcba1
commit c051b402dd
11 changed files with 38 additions and 19 deletions
+11
View File
@@ -0,0 +1,11 @@
function w $factorial (w %n, w %acc) {
@start
jnz %n, @nz, @z
@z
ret %acc
@nz
%n_next =w sub %n, 1
%acc_next =w mul %n, %acc
%r =w call $factorial (w %n_next, w %acc)
ret %r
}