aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/08-Lesseq
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-02 00:43:57 +0900
committernsfisis <nsfisis@gmail.com>2024-09-02 00:43:57 +0900
commitc0df3d3fbc7a08bcf3f2d916bad787d74507c4b6 (patch)
treeb678e56bc58eab8b78c3eb2bb02265eecbfc6764 /problems/08-Lesseq
parent38c0832e6def60861c3be00f65de5115e649eabf (diff)
downloadmncore-challenge-c0df3d3fbc7a08bcf3f2d916bad787d74507c4b6.tar.gz
mncore-challenge-c0df3d3fbc7a08bcf3f2d916bad787d74507c4b6.tar.zst
mncore-challenge-c0df3d3fbc7a08bcf3f2d916bad787d74507c4b6.zip
08-Lesseq
Diffstat (limited to 'problems/08-Lesseq')
-rw-r--r--problems/08-Lesseq/01.vsm2
-rw-r--r--problems/08-Lesseq/02.vsm16
2 files changed, 17 insertions, 1 deletions
diff --git a/problems/08-Lesseq/01.vsm b/problems/08-Lesseq/01.vsm
index 10e60da..cde1134 100644
--- a/problems/08-Lesseq/01.vsm
+++ b/problems/08-Lesseq/01.vsm
@@ -4,7 +4,7 @@ imm f"-1.0" $ls0v
# (40 / 8).times do |i|
# j = i * 8
# puts "fvadd $lm#{j}v $ls0v $omr1"
-# puts "imm f"inf" $ln#{j}v/$imr1"
+# puts "imm f\"inf\" $ln#{j}v/$imr1"
# puts
# end
diff --git a/problems/08-Lesseq/02.vsm b/problems/08-Lesseq/02.vsm
new file mode 100644
index 0000000..08685c6
--- /dev/null
+++ b/problems/08-Lesseq/02.vsm
@@ -0,0 +1,16 @@
+imm f"-1.0" $ls0v
+imm f"inf" $lr0v
+
+# (40 / 8).times do |i|
+# j = i * 8
+# puts "fvadd $lm#{j}v $ls0v $omr1"
+# puts "lpassa $lr0v $ln#{j}v/$imr1"
+# puts
+# end
+
+fvadd $lm0v $ls0v $omr1
+lpassa $lr0v $ln0v/$imr1; fvadd $lm8v $ls0v $omr1
+lpassa $lr0v $ln8v/$imr1; fvadd $lm16v $ls0v $omr1
+lpassa $lr0v $ln16v/$imr1; fvadd $lm24v $ls0v $omr1
+lpassa $lr0v $ln24v/$imr1; fvadd $lm32v $ls0v $omr1
+lpassa $lr0v $ln32v/$imr1