blob: f2951660adce49b68a3661869a3a04b4bc0366a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# n = 6909045637428952499
# bin = n.to_s(2).rjust(64, '0')
# ds = bin.each_char.each_slice(8).map(&:join)
#
# puts n
# 8.times { |i| puts "[#{i}] = #{ds[i]}" }
# puts
# 8.times { |i| puts "[#{i}] = #{ds[8-i-1]}" }
# puts
# puts
imm s"8" $ls0v
imm i"16" $ls8v
imm i"32" $s17v2
sbsl $lm0v $ls0v $nowrite
ibsl $aluf $ls8v $nowrite
lbsl $aluf $ls16v $ln0v
|