summaryrefslogtreecommitdiff
path: root/output/LinearSearch.s
diff options
context:
space:
mode:
Diffstat (limited to 'output/LinearSearch.s')
-rw-r--r--output/LinearSearch.s42
1 files changed, 21 insertions, 21 deletions
diff --git a/output/LinearSearch.s b/output/LinearSearch.s
index 064e8cf..61b81d1 100644
--- a/output/LinearSearch.s
+++ b/output/LinearSearch.s
@@ -293,7 +293,7 @@ while55_test:
sw $t1 -92($fp)
sw $t0 -88($fp)
lw $t0 -88($fp)
- beqz $t0 while55_end
+ blez $t0 while55_end
sw $t0 -88($fp)
while55_body:
lw $t6 16($s6)
@@ -304,10 +304,10 @@ while55_body:
mul $s3 $a0 $t9
move $a0 $s3
li $t9 4
- add $s3 $a0 $t9
+ addu $s3 $a0 $t9
move $a0 $t5
move $t9 $s3
- add $s3 $a0 $t9
+ addu $s3 $a0 $t9
lw $s0 0($s3)
move $s1 $s0
move $s2 $s1
@@ -320,7 +320,7 @@ while55_body:
lw $t0 -68($fp)
move $a0 $t4
move $t9 $t0
- add $t3 $a0 $t9
+ addu $t3 $a0 $t9
sw $t0 -68($fp)
move $t7 $t3
move $s7 $t7
@@ -401,7 +401,7 @@ while83_test:
sw $t1 -196($fp)
sw $t0 -192($fp)
lw $t0 -192($fp)
- beqz $t0 while83_end
+ blez $t0 while83_end
sw $t0 -192($fp)
while83_body:
lw $t0 -140($fp)
@@ -426,7 +426,7 @@ while83_body:
lw $t1 -136($fp)
move $a0 $t1
li $t9 4
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t1 -136($fp)
sw $t0 -136($fp)
lw $t0 -136($fp)
@@ -434,7 +434,7 @@ while83_body:
lw $t2 -136($fp)
move $a0 $t1
move $t9 $t2
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t2 -136($fp)
sw $t1 -160($fp)
sw $t0 -136($fp)
@@ -464,7 +464,7 @@ while83_body:
lw $t2 -128($fp)
move $a0 $t1
move $t9 $t2
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t2 -128($fp)
sw $t1 -132($fp)
sw $t0 -120($fp)
@@ -506,7 +506,7 @@ while83_body:
sw $t1 -96($fp)
sw $t0 -108($fp)
lw $t0 -108($fp)
- beqz $t0 if101_else
+ blez $t0 if101_else
sw $t0 -108($fp)
if101_body:
lw $t0 -84($fp)
@@ -547,7 +547,7 @@ if101_else:
lw $t0 -92($fp)
move $a0 $t5
li $t9 0
- and $t0 $a0 $t9
+ seq $t0 $a0 $t9
sw $t0 -92($fp)
lw $t0 -224($fp)
lw $t1 -92($fp)
@@ -562,7 +562,7 @@ if101_else:
lw $t0 -228($fp)
move $t7 $t0
sw $t0 -228($fp)
- beqz $t7 if108_else
+ blez $t7 if108_else
if108_body:
li $s3 0
move $t3 $s3
@@ -615,7 +615,7 @@ if101_end:
lw $t2 -184($fp)
move $a0 $t1
move $t9 $t2
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t2 -184($fp)
sw $t1 -212($fp)
sw $t0 -220($fp)
@@ -692,7 +692,7 @@ LS_Init:
li $s7 1
move $a0 $s6
move $t9 $s7
- add $s3 $a0 $t9
+ addu $s3 $a0 $t9
move $s7 $s3
move $s3 $s7
while146_test:
@@ -728,7 +728,7 @@ while146_test:
sw $t1 -132($fp)
sw $t0 -144($fp)
lw $t0 -144($fp)
- beqz $t0 while146_end
+ blez $t0 while146_end
sw $t0 -144($fp)
while146_body:
lw $t0 -116($fp)
@@ -767,7 +767,7 @@ while146_body:
lw $t2 -96($fp)
move $a0 $t1
move $t9 $t2
- sub $t0 $a0 $t9
+ subu $t0 $a0 $t9
sw $t2 -96($fp)
sw $t1 -72($fp)
sw $t0 -108($fp)
@@ -803,7 +803,7 @@ while146_body:
lw $t1 -100($fp)
move $a0 $t1
li $t9 4
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t1 -100($fp)
sw $t0 -100($fp)
lw $t0 -100($fp)
@@ -811,7 +811,7 @@ while146_body:
lw $t2 -100($fp)
move $a0 $t1
move $t9 $t2
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t2 -100($fp)
sw $t1 -104($fp)
sw $t0 -100($fp)
@@ -830,7 +830,7 @@ while146_body:
lw $t2 -68($fp)
move $a0 $t1
move $t9 $t2
- add $t0 $a0 $t9
+ addu $t0 $a0 $t9
sw $t2 -68($fp)
sw $t1 -84($fp)
sw $t0 -88($fp)
@@ -844,14 +844,14 @@ while146_body:
li $t6 1
move $a0 $t5
move $t9 $t6
- add $s6 $a0 $t9
+ addu $s6 $a0 $t9
move $t3 $s6
move $s4 $t3
move $s0 $s3
li $s1 1
move $a0 $s0
move $t9 $s1
- sub $t4 $a0 $t9
+ subu $t4 $a0 $t9
move $t7 $t4
move $s3 $t7
j while146_test
@@ -891,7 +891,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