aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/18-Inversion-Small/02.vsm
blob: 2b969fc64388279af7c19cadc7637bde750d5241 (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
imm i"1" $s3/1000
imm i"2" $s5/1000
imm i"3" $s7/1000
imm i"4" $s9/1000
imm i"5" $s11/1000
imm i"6" $s13/1000
imm i"7" $s15/1000
imm i"8" $s17/1000
imm i"9" $s19/1000
imm i"10" $s21/1000
imm i"11" $s23/1000
imm i"12" $s25/1000
imm i"13" $s27/1000
imm i"14" $s29/1000
imm i"15" $s31/1000

lpackbit $mabid $ln0 $t
lpassa $mabid $lr32
lpassa $llm0v $llr0v
lpassa $llm16v $llr16v

lsub $mabid $ls0v $omr1
lsub $lmt0 $lr0v $nowrite
llnot $lr0v $lr0v $omr1/$imr1
lpassa/$imr1 $ls2 $lr0v
lsub $mabid $ls8v $omr1
lsub $lmt0 $lr8v $omr1/$imr1
llnot $lr0v $lr0v $omr1/$imr1
lpassa/$imr1 $ls2 $lr8v
lsub $mabid $ls16v $omr1
lsub $lmt0 $lr16v $omr1/$imr1
llnot $lr0v $lr0v $omr1/$imr1
lpassa/$imr1 $ls2 $lr16v
lsub $mabid $ls24v $omr1
lsub $lmt0 $lr24v $omr1/$imr1
llnot $lr0v $lr0v $omr1/$imr1
lpassa/$imr1 $ls2 $lr24v

l1bmrliadd $lr0v $lb0
l1bmm $lbi $lm0v
l1bmrliadd $lr8v $lb0
l1bmm $lbi $lm8v
l1bmrliadd $lr16v $lb0
l1bmm $lbi $lm16v
l1bmrliadd $lr24v $lb0
l1bmm $lbi $lm24v

lpackbit $mabid $ln0 $t
nop
l1bmrliadd $lmt0 $lb0
l1bmm $lbi $ln0