diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-09-05 07:46:09 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-09-05 07:46:09 +0900 |
| commit | 0f08d4ee1f80e590f1066a04a79d27ac46ea3844 (patch) | |
| tree | 6d64ab055e33510d926c432a5ef95d97725ff809 | |
| parent | 6cccdc1f1f56fdd69c2d69888bc5e09cbf37e99b (diff) | |
| download | mncore-challenge-0f08d4ee1f80e590f1066a04a79d27ac46ea3844.tar.gz mncore-challenge-0f08d4ee1f80e590f1066a04a79d27ac46ea3844.tar.zst mncore-challenge-0f08d4ee1f80e590f1066a04a79d27ac46ea3844.zip | |
08-Lesseq
| -rw-r--r-- | problems/08-Lesseq/03.vsm | 16 | ||||
| -rw-r--r-- | problems/08-Lesseq/04.vsm | 15 |
2 files changed, 31 insertions, 0 deletions
diff --git a/problems/08-Lesseq/03.vsm b/problems/08-Lesseq/03.vsm new file mode 100644 index 0000000..6247a77 --- /dev/null +++ b/problems/08-Lesseq/03.vsm @@ -0,0 +1,16 @@ +imm f"-1.0" $ls0v +imm f"inf" $lr0v + +# (40 / 8).times do |i| +# j = i * 8 +# puts "fvadd $lm#{j}v $ls0v $nowrite" +# puts "frelu $mauf $lr0v $ln#{j}v" +# puts +# end + +fvadd $lm0v $ls0v $nowrite +frelu $mauf $lr0v $ln0v; fvadd $lm8v $ls0v $nowrite +frelu $mauf $lr0v $ln8v; fvadd $lm16v $ls0v $nowrite +frelu $mauf $lr0v $ln16v; fvadd $lm24v $ls0v $nowrite +frelu $mauf $lr0v $ln24v; fvadd $lm32v $ls0v $nowrite +frelu $mauf $lr0v $ln32v diff --git a/problems/08-Lesseq/04.vsm b/problems/08-Lesseq/04.vsm new file mode 100644 index 0000000..19375ff --- /dev/null +++ b/problems/08-Lesseq/04.vsm @@ -0,0 +1,15 @@ +# (40 / 8).times do |i| +# j = i * 8 +# puts "fvadd $lm#{j}v $ls0v $omr1" +# puts "inot $msb1 $ln#{j}v/$imr1" +# puts +# end + +imm f"-1.0" $ls0v + +fvadd $lm0v $aluf $omr1 +inot $msb1 $ln0v/$imr1; fvadd $lm8v $ls0v $omr1 +inot $msb1 $ln8v/$imr1; fvadd $lm16v $ls0v $omr1 +inot $msb1 $ln16v/$imr1; fvadd $lm24v $ls0v $omr1 +inot $msb1 $ln24v/$imr1; fvadd $lm32v $ls0v $omr1 +inot $msb1 $ln32v/$imr1 |
