aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/11-Square-Sum/07.vsm
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-09-14 23:52:40 +0900
committernsfisis <nsfisis@gmail.com>2024-09-15 00:02:09 +0900
commit396377f7d8a15a85524fce4937acc83236236636 (patch)
tree8844fcc690693512b7e50a8a53109f6d5cf196f7 /problems/11-Square-Sum/07.vsm
parent0cf9106fdfc1c1ea32a72b5eb7a6fc58cff22fe9 (diff)
downloadmncore-challenge-396377f7d8a15a85524fce4937acc83236236636.tar.gz
mncore-challenge-396377f7d8a15a85524fce4937acc83236236636.tar.zst
mncore-challenge-396377f7d8a15a85524fce4937acc83236236636.zip
11-Square-Sum
Diffstat (limited to 'problems/11-Square-Sum/07.vsm')
-rw-r--r--problems/11-Square-Sum/07.vsm11
1 files changed, 11 insertions, 0 deletions
diff --git a/problems/11-Square-Sum/07.vsm b/problems/11-Square-Sum/07.vsm
new file mode 100644
index 0000000..1cc0719
--- /dev/null
+++ b/problems/11-Square-Sum/07.vsm
@@ -0,0 +1,11 @@
+lpackbit $mabid $ln0 $t
+imm i"1" $s3v2
+dvmulu $lmt0v32 $lmt0v32 $nowrite ; iinc $aluf $s5v2
+dvfmad $lmt0v32 $lmt0v32 $mauf $nowrite ; iinc $aluf $s7v2
+dvfmau $lmt128v32 $lmt128v32 $mauf $nowrite
+dvfmad $lmt128v32 $lmt128v32 $mauf $nowrite; lxor $mabid $ls0v $omr1
+l1bmrdfadd $mauf $lbi
+l1bmm $lbi $lr0/$imr1
+nop
+l1bmrdfadd $lr[256,256,256,0] $lbi
+l1bmm $lbi $ln0