aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-07 01:54:48 +0900
committernsfisis <nsfisis@gmail.com>2024-09-07 01:54:57 +0900
commit6e0091b99e1a092c5cc22de603177d5ff5a4b087 (patch)
treef32cbfee2372406fa82d33dedbc6423b6f610c15
parent2217bc325f923d28e22d016d2811975900d39173 (diff)
downloadmncore-challenge-6e0091b99e1a092c5cc22de603177d5ff5a4b087.tar.gz
mncore-challenge-6e0091b99e1a092c5cc22de603177d5ff5a4b087.tar.zst
mncore-challenge-6e0091b99e1a092c5cc22de603177d5ff5a4b087.zip
11-Square-Sum
-rw-r--r--problems/11-Square-Sum/03.vsm18
1 files changed, 18 insertions, 0 deletions
diff --git a/problems/11-Square-Sum/03.vsm b/problems/11-Square-Sum/03.vsm
new file mode 100644
index 0000000..a85e53c
--- /dev/null
+++ b/problems/11-Square-Sum/03.vsm
@@ -0,0 +1,18 @@
+imm i"4" $nowrite
+llsl $mabid $aluf $t # t=16*mab
+nop
+
+dvmulu $lmt0v $lmt0v $nowrite
+dvfmad $lmt0v $lmt0v $mauf $nowrite
+dvmulu $lmt8v $lmt8v $ls0v; l1bmrdfadd $mauf $lb0
+dvfmad $lmt8v $lmt8v $mauf $ls0v
+
+l1bmm $lbi $lm256v
+l1bmrdfadd $ls0v $lb0
+l1bmm $lbi $lm264v
+
+lpackbit $mabid $ls256 $t
+nop
+
+l1bmrdfadd $lmt256v $lb0
+l1bmm $lbi $ln0v