aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/05-Abs/03.vsm
blob: 57d4f97d9b24b1846a1348e090d1fad23fe0a2ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 22.times do |i|
#   j = i * 4
#   puts "imax $s0 $m#{j}v $n#{j}v $omr1"     # max(0, x)
#   puts "isub $s0 $m#{j}v $n#{j}v/$imr1"       # -x
#   puts
# end

imax $s0 $m0v $n0v $omr1
isub $s0 $m0v $n0v/$imr1

imax $s0 $m4v $n4v $omr1
isub $s0 $m4v $n4v/$imr1

imax $s0 $m8v $n8v $omr1
isub $s0 $m8v $n8v/$imr1

imax $s0 $m12v $n12v $omr1
isub $s0 $m12v $n12v/$imr1

imax $s0 $m16v $n16v $omr1
isub $s0 $m16v $n16v/$imr1

imax $s0 $m20v $n20v $omr1
isub $s0 $m20v $n20v/$imr1

imax $s0 $m24v $n24v $omr1
isub $s0 $m24v $n24v/$imr1

imax $s0 $m28v $n28v $omr1
isub $s0 $m28v $n28v/$imr1

imax $s0 $m32v $n32v $omr1
isub $s0 $m32v $n32v/$imr1

imax $s0 $m36v $n36v $omr1
isub $s0 $m36v $n36v/$imr1

imax $s0 $m40v $n40v $omr1
isub $s0 $m40v $n40v/$imr1

imax $s0 $m44v $n44v $omr1
isub $s0 $m44v $n44v/$imr1

imax $s0 $m48v $n48v $omr1
isub $s0 $m48v $n48v/$imr1

imax $s0 $m52v $n52v $omr1
isub $s0 $m52v $n52v/$imr1

imax $s0 $m56v $n56v $omr1
isub $s0 $m56v $n56v/$imr1

imax $s0 $m60v $n60v $omr1
isub $s0 $m60v $n60v/$imr1

imax $s0 $m64v $n64v $omr1
isub $s0 $m64v $n64v/$imr1

imax $s0 $m68v $n68v $omr1
isub $s0 $m68v $n68v/$imr1

imax $s0 $m72v $n72v $omr1
isub $s0 $m72v $n72v/$imr1

imax $s0 $m76v $n76v $omr1
isub $s0 $m76v $n76v/$imr1

imax $s0 $m80v $n80v $omr1
isub $s0 $m80v $n80v/$imr1

imax $s0 $m84v $n84v $omr1
isub $s0 $m84v $n84v/$imr1