aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-11 22:53:22 +0900
committernsfisis <nsfisis@gmail.com>2024-09-11 22:53:22 +0900
commit20fde3e2a1c4575faf89c9ff564042d8d35b311a (patch)
treea0d7f7fa1ece57784cc2489153e2efb0c1445a3e
parent2b74275dc1edbfab125e0aae43b4ffda77aeccfd (diff)
downloadmncore-challenge-20fde3e2a1c4575faf89c9ff564042d8d35b311a.tar.gz
mncore-challenge-20fde3e2a1c4575faf89c9ff564042d8d35b311a.tar.zst
mncore-challenge-20fde3e2a1c4575faf89c9ff564042d8d35b311a.zip
18-Inversion-Small (incomplete)
-rw-r--r--problems/18-Inversion-Small/02.vsm51
1 files changed, 51 insertions, 0 deletions
diff --git a/problems/18-Inversion-Small/02.vsm b/problems/18-Inversion-Small/02.vsm
new file mode 100644
index 0000000..2b969fc
--- /dev/null
+++ b/problems/18-Inversion-Small/02.vsm
@@ -0,0 +1,51 @@
+imm i"1" $s3/1000
+imm i"2" $s5/1000
+imm i"3" $s7/1000
+imm i"4" $s9/1000
+imm i"5" $s11/1000
+imm i"6" $s13/1000
+imm i"7" $s15/1000
+imm i"8" $s17/1000
+imm i"9" $s19/1000
+imm i"10" $s21/1000
+imm i"11" $s23/1000
+imm i"12" $s25/1000
+imm i"13" $s27/1000
+imm i"14" $s29/1000
+imm i"15" $s31/1000
+
+lpackbit $mabid $ln0 $t
+lpassa $mabid $lr32
+lpassa $llm0v $llr0v
+lpassa $llm16v $llr16v
+
+lsub $mabid $ls0v $omr1
+lsub $lmt0 $lr0v $nowrite
+llnot $lr0v $lr0v $omr1/$imr1
+lpassa/$imr1 $ls2 $lr0v
+lsub $mabid $ls8v $omr1
+lsub $lmt0 $lr8v $omr1/$imr1
+llnot $lr0v $lr0v $omr1/$imr1
+lpassa/$imr1 $ls2 $lr8v
+lsub $mabid $ls16v $omr1
+lsub $lmt0 $lr16v $omr1/$imr1
+llnot $lr0v $lr0v $omr1/$imr1
+lpassa/$imr1 $ls2 $lr16v
+lsub $mabid $ls24v $omr1
+lsub $lmt0 $lr24v $omr1/$imr1
+llnot $lr0v $lr0v $omr1/$imr1
+lpassa/$imr1 $ls2 $lr24v
+
+l1bmrliadd $lr0v $lb0
+l1bmm $lbi $lm0v
+l1bmrliadd $lr8v $lb0
+l1bmm $lbi $lm8v
+l1bmrliadd $lr16v $lb0
+l1bmm $lbi $lm16v
+l1bmrliadd $lr24v $lb0
+l1bmm $lbi $lm24v
+
+lpackbit $mabid $ln0 $t
+nop
+l1bmrliadd $lmt0 $lb0
+l1bmm $lbi $ln0