From e4f89099939c9f61818ecff2d3ca48580f461e61 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Tue, 7 May 2024 19:16:48 -0600 Subject: Condense all tests passed --- output/Factorial.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'output/Factorial.s') 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 -- cgit v1.2.3