From c88ec3e4a8fc3c4ed8c9244e92e8ff3578c63ac1 Mon Sep 17 00:00:00 2001
From: Strozzi <laps15@inf.ufpr.br>
Date: Wed, 22 Jun 2016 22:42:29 -0300
Subject: [PATCH] sum to latex

---
 sum.asm | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/sum.asm b/sum.asm
index a24d0a4..ff1474c 100644
--- a/sum.asm
+++ b/sum.asm
@@ -1,15 +1,15 @@
-#	li $t1, 1
-#	li $t4, 2
-#	li $t0, 1
-#	li $t5, 6
-#	la $a0, xffff0000
-for:	beq $t4,$t5,fimfor
-	add $t1, $t1, $t4	
-	sw  $t1, 0($a0)
-	add $t4, $t4, $t0
-	j   for
-	sw  $t0, 0($a0)
-
-fimfor:	sw  $t1, 0($a0)
-	lw  $t1  0($a0)
-	sw  $t1  0($a0)
+#	 li $t1, 1
+#	 li $t4, 2
+#	 li $t0, 1
+#	 li $t5, 6
+#	 la $a0, 0x10010000
+for: beq $t4,$t5,end
+	 add $t1, $t1, $t4
+	 sw  $t1, 0($a0)
+	 add $t4, $t4, $t0
+	 j   for
+	 sw  $t0, 0($a0)
+	 
+end: sw  $t1, 0($a0)
+	 lw  $t1  0($a0)
+	 sw  $t1  0($a0)
-- 
GitLab