diff options
Diffstat (limited to 'output/Factorial.s')
-rw-r--r-- | output/Factorial.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/output/Factorial.s b/output/Factorial.s index b86b54c..807d60e 100644 --- a/output/Factorial.s +++ b/output/Factorial.s @@ -83,7 +83,7 @@ Fac_ComputeFac: slt $s3 $a0 $t9 move $s4 $s3 move $s3 $s4 - beqz $s3 if9_else + blez $s3 if9_else if9_body: li $s3 1 move $s4 $s3 @@ -97,7 +97,7 @@ if9_else: li $s7 1 move $a0 $s2 move $t9 $s7 - sub $s1 $a0 $t9 + subu $s1 $a0 $t9 move $s7 $s1 lw $s5 0($s5) sw $t3 -44($fp) @@ -159,7 +159,7 @@ AllocArray: mul $s6 $a0 $t9 move $a0 $s6 li $t9 4 - add $s6 $a0 $t9 + addu $s6 $a0 $t9 move $a0 $s6 jal _heapAlloc move $s5 $v0 |