summaryrefslogtreecommitdiff
path: root/input/adjacent-adder-vector.asm
diff options
context:
space:
mode:
Diffstat (limited to 'input/adjacent-adder-vector.asm')
-rw-r--r--input/adjacent-adder-vector.asm24
1 files changed, 12 insertions, 12 deletions
diff --git a/input/adjacent-adder-vector.asm b/input/adjacent-adder-vector.asm
index a8fc55d..419e11c 100644
--- a/input/adjacent-adder-vector.asm
+++ b/input/adjacent-adder-vector.asm
@@ -3,16 +3,16 @@
;;; storing the result in place. Uses the vector type.
.data
- arr 1 2 3 4
- s 3
+ arr 1 2 3 4
+ s 3
.text
- load $4 s($0) ; set the vector-length register
- addi $5 $0 arr
- srdl $16 0($5)
- addi $5 $5 0x1
- srdl $17 0($6)
- addv $16 $16 $17
- srds $16 arr($0)
- nop
- nop
- nop
+ load $4 s($0) ; set the vector-length register
+ addi $5 $0 arr
+ srdl $16 $5 $16
+ addi $6 $5 0x1
+ srdl $17 $6 $16
+ addv $18 $18 $17
+ srds $18 $5 $15
+ nop
+ nop
+ nop