From 20fde3e2a1c4575faf89c9ff564042d8d35b311a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 11 Sep 2024 22:53:22 +0900 Subject: 18-Inversion-Small (incomplete) --- problems/18-Inversion-Small/02.vsm | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 problems/18-Inversion-Small/02.vsm 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 -- cgit v1.2.3-70-g09d2