summaryrefslogtreecommitdiff
path: root/output/ex52.s
diff options
context:
space:
mode:
Diffstat (limited to 'output/ex52.s')
-rw-r--r--output/ex52.s28
1 files changed, 14 insertions, 14 deletions
diff --git a/output/ex52.s b/output/ex52.s
index f8ee1fc..56664dc 100644
--- a/output/ex52.s
+++ b/output/ex52.s
@@ -80,14 +80,14 @@ Test_start:
sw $t9 0($s7)
move $s5 $s7
move $s7 $s5
- sw $s7 0($s6)
+ sw $s7 8($s6)
li $s7 1
move $s5 $s7
- sw $s5 0($s6)
- lw $s5 0($s6)
+ sw $s5 12($s6)
+ lw $s5 8($s6)
move $s7 $s5
lw $s5 0($s7)
- lw $s4 0($s5)
+ lw $s4 4($s5)
sw $t3 -44($fp)
sw $t4 -48($fp)
sw $t5 -52($fp)
@@ -104,12 +104,12 @@ Test_start:
lw $t8 -64($fp)
move $s5 $v0
move $s4 $s5
- sw $s4 0($s6)
- lw $s4 0($s6)
+ sw $s4 12($s6)
+ lw $s4 12($s6)
move $s6 $s4
move $a0 $s6
li $t9 0
-NULL $s4 $a0 $t9
+ and $s4 $a0 $t9
move $s6 $s4
move $s4 $s6
move $s6 $s4
@@ -164,25 +164,25 @@ Test_next:
move $s3 $s4
li $a0 1
move $t9 $s6
-NULL $s4 $a0 $t9
+ and $s4 $a0 $t9
li $a0 1
move $t9 $s3
-NULL $s6 $a0 $t9
+ and $s6 $a0 $t9
move $a0 $s4
move $t9 $s6
-NULL $s3 $a0 $t9
+ and $s3 $a0 $t9
move $s6 $s3
move $s3 $s6
- lw $s6 0($s7)
+ lw $s6 12($s7)
li $a0 1
move $t9 $s3
-NULL $s7 $a0 $t9
+ and $s7 $a0 $t9
li $a0 1
move $t9 $s6
-NULL $s3 $a0 $t9
+ and $s3 $a0 $t9
move $a0 $s7
move $t9 $s3
-NULL $s6 $a0 $t9
+ and $s6 $a0 $t9
move $s3 $s6
move $s6 $s3
move $s3 $s6