aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/05-Abs/05.vsm
blob: 42466b2ea2bafd0a97c53c620e61b65ff3aca29b (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
# (88 / 8).times do |i|
#   j = i * 8
#   puts "isub $ls0 $lm#{j}v $nowrite"   # -x
#   puts "imax $aluf $lm#{j}v $ln#{j}v"   # max(-x, x)
#   puts
# end

isub $ls0 $lm0v $nowrite
imax $aluf $lm0v $ln0v
isub $ls0 $lm8v $nowrite
imax $aluf $lm8v $ln8v
isub $ls0 $lm16v $nowrite
imax $aluf $lm16v $ln16v
isub $ls0 $lm24v $nowrite
imax $aluf $lm24v $ln24v
isub $ls0 $lm32v $nowrite
imax $aluf $lm32v $ln32v
isub $ls0 $lm40v $nowrite
imax $aluf $lm40v $ln40v
isub $ls0 $lm48v $nowrite
imax $aluf $lm48v $ln48v
isub $ls0 $lm56v $nowrite
imax $aluf $lm56v $ln56v
isub $ls0 $lm64v $nowrite
imax $aluf $lm64v $ln64v
isub $ls0 $lm72v $nowrite
imax $aluf $lm72v $ln72v
isub $ls0 $lm80v $nowrite
imax $aluf $lm80v $ln80v