diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-09-02 19:13:45 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-09-02 19:13:45 +0900 |
| commit | 253fece0b83f271eab60486dbd3f94bd72ce1cef (patch) | |
| tree | 3f47de36e389ca439ab4d5c1bd0290cf84865d7d | |
| parent | c0df3d3fbc7a08bcf3f2d916bad787d74507c4b6 (diff) | |
| download | mncore-challenge-253fece0b83f271eab60486dbd3f94bd72ce1cef.tar.gz mncore-challenge-253fece0b83f271eab60486dbd3f94bd72ce1cef.tar.zst mncore-challenge-253fece0b83f271eab60486dbd3f94bd72ce1cef.zip | |
05-Abs
| -rw-r--r-- | problems/05-Abs/04.vsm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/problems/05-Abs/04.vsm b/problems/05-Abs/04.vsm new file mode 100644 index 0000000..658b6c0 --- /dev/null +++ b/problems/05-Abs/04.vsm @@ -0,0 +1,39 @@ +# 22.times do |i| +# j = i * 4 +# puts "imax $ls0 $lm#{j}v $ln#{j}v $omr1" # max(0, x) +# puts "isub $ls0 $lm#{j}v $ln#{j}v/$imr1" # -x +# puts +# end + +imax $ls0 $lm0v $ln0v $omr1 +isub $ls0 $lm0v $ln0v/$imr1 + +imax $ls0 $lm8v $ln8v $omr1 +isub $ls0 $lm8v $ln8v/$imr1 + +imax $ls0 $lm16v $ln16v $omr1 +isub $ls0 $lm16v $ln16v/$imr1 + +imax $ls0 $lm24v $ln24v $omr1 +isub $ls0 $lm24v $ln24v/$imr1 + +imax $ls0 $lm32v $ln32v $omr1 +isub $ls0 $lm32v $ln32v/$imr1 + +imax $ls0 $lm40v $ln40v $omr1 +isub $ls0 $lm40v $ln40v/$imr1 + +imax $ls0 $lm48v $ln48v $omr1 +isub $ls0 $lm48v $ln48v/$imr1 + +imax $ls0 $lm56v $ln56v $omr1 +isub $ls0 $lm56v $ln56v/$imr1 + +imax $ls0 $lm64v $ln64v $omr1 +isub $ls0 $lm64v $ln64v/$imr1 + +imax $ls0 $lm72v $ln72v $omr1 +isub $ls0 $lm72v $ln72v/$imr1 + +imax $ls0 $lm80v $ln80v $omr1 +isub $ls0 $lm80v $ln80v/$imr1 |
