mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-11-18 12:00:11 -08:00
Update convention yet again
Doing stuff inspired by Timothy Lottes's fixing c vod
This commit is contained in:
1 parent
2f797bf9e2
commit
274e0f31f5
10 files changed
+327
-276
No files matched your search
@@ -58,6 +58,7 @@ main:
|
||||
idle:
|
||||
jump idle :: nop
|
||||
|
||||
|
||||
; args:
|
||||
; num: rarg_0
|
||||
.func factorial
|
||||
@@ -73,7 +74,7 @@ sum equ rtmp_3
|
||||
li sum, 0
|
||||
li id_product, 0
|
||||
loop_prod: branch_gt_equal id_product, id_term, break_loop_prod :: nop
|
||||
add_s sum, sum, term
|
||||
add_s sum, sum, term
|
||||
add_si id_product, id_product, 1
|
||||
jump loop_prod :: nop :: break_loop_prod:
|
||||
move term, sum
|
||||
|
||||
Reference in new issue
Block a user