summaryrefslogtreecommitdiff
path: root/output/ex41.s
diff options
context:
space:
mode:
Diffstat (limited to 'output/ex41.s')
-rw-r--r--output/ex41.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/output/ex41.s b/output/ex41.s
index 9e281c1..94bd88c 100644
--- a/output/ex41.s
+++ b/output/ex41.s
@@ -103,7 +103,7 @@ while13_test:
lw $t0 -72($fp)
move $s0 $t0
sw $t0 -72($fp)
- beqz $s0 while13_end
+ blez $s0 while13_end
while13_body:
while19_test:
lw $t0 -92($fp)
@@ -123,7 +123,7 @@ while19_test:
move $s4 $t0
sw $t0 -84($fp)
move $s2 $s4
- beqz $s2 while19_end
+ blez $s2 while19_end
while19_body:
lw $t0 -68($fp)
move $t4 $t0
@@ -131,7 +131,7 @@ while19_body:
li $t3 1
move $a0 $t4
move $t9 $t3
- add $s6 $a0 $t9
+ addu $s6 $a0 $t9
move $t5 $s6
lw $t0 -68($fp)
move $t0 $t5
@@ -145,7 +145,7 @@ while19_end:
lw $t0 -88($fp)
move $a0 $s1
move $t9 $t0
- add $t7 $a0 $t9
+ addu $t7 $a0 $t9
sw $t0 -88($fp)
move $t6 $t7
move $s7 $t6
@@ -188,7 +188,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