summaryrefslogtreecommitdiff
path: root/input/adjacent-adder-vector.asm
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-11 22:42:50 -0400
committerbd <bdunahu@operationnull.com>2025-05-11 22:42:50 -0400
commitbb7de0c564309a52ff34fed7a8904552c4616492 (patch)
tree4cc60cf326a744ac86b4367d3be0f77c1bfc56eb /input/adjacent-adder-vector.asm
parent0c81e5b481db57e14ccd0b2841b24baae15d30f9 (diff)
Convert tabs to spacesHEADmaster
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