aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/05-Abs/05.vsm
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-04 06:33:38 +0900
committernsfisis <nsfisis@gmail.com>2024-09-04 06:33:38 +0900
commit2f4fee20f4cf07513a23329f49a649fc065742a6 (patch)
tree0842bbc9876971eccbd2258403552d75df890d60 /problems/05-Abs/05.vsm
parent90defb51a96e09028b3480680c54913805825ba0 (diff)
downloadmncore-challenge-2f4fee20f4cf07513a23329f49a649fc065742a6.tar.gz
mncore-challenge-2f4fee20f4cf07513a23329f49a649fc065742a6.tar.zst
mncore-challenge-2f4fee20f4cf07513a23329f49a649fc065742a6.zip
05-Abs
Diffstat (limited to 'problems/05-Abs/05.vsm')
-rw-r--r--problems/05-Abs/05.vsm29
1 files changed, 29 insertions, 0 deletions
diff --git a/problems/05-Abs/05.vsm b/problems/05-Abs/05.vsm
new file mode 100644
index 0000000..42466b2
--- /dev/null
+++ b/problems/05-Abs/05.vsm
@@ -0,0 +1,29 @@
+# (88 / 8).times do |i|
+# j = i * 8
+# puts "isub $ls0 $lm#{j}v $nowrite" # -x
+# puts "imax $aluf $lm#{j}v $ln#{j}v" # max(-x, x)
+# puts
+# end
+
+isub $ls0 $lm0v $nowrite
+imax $aluf $lm0v $ln0v
+isub $ls0 $lm8v $nowrite
+imax $aluf $lm8v $ln8v
+isub $ls0 $lm16v $nowrite
+imax $aluf $lm16v $ln16v
+isub $ls0 $lm24v $nowrite
+imax $aluf $lm24v $ln24v
+isub $ls0 $lm32v $nowrite
+imax $aluf $lm32v $ln32v
+isub $ls0 $lm40v $nowrite
+imax $aluf $lm40v $ln40v
+isub $ls0 $lm48v $nowrite
+imax $aluf $lm48v $ln48v
+isub $ls0 $lm56v $nowrite
+imax $aluf $lm56v $ln56v
+isub $ls0 $lm64v $nowrite
+imax $aluf $lm64v $ln64v
+isub $ls0 $lm72v $nowrite
+imax $aluf $lm72v $ln72v
+isub $ls0 $lm80v $nowrite
+imax $aluf $lm80v $ln80v